:root {
  color-scheme: light dark;
  --bg: #f7f3ec;
  --bg-soft: #eef3ea;
  --viewport-bg: #f7f3ec;
  --ink: #181714;
  --muted: rgba(24, 23, 20, 0.62);
  --native-muted: rgba(0, 0, 0, 0.58);
  --card: rgba(255, 251, 244, 0.86);
  --native-card: rgba(255, 251, 244, 0.80);
  --native-field-border: rgba(24, 23, 20, 0.08);
  --line: rgba(255, 255, 255, 0.66);
  --accent: #405261;
  --sage: #788f73;
  --warm: #b48f6b;
  --danger: #8f4d4d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1115;
    --bg-soft: #161c20;
    --viewport-bg: #0d1115;
    --ink: #f8f5ee;
    --muted: rgba(248, 245, 238, 0.68);
    --native-muted: rgba(255, 255, 255, 0.68);
    --card: rgba(27, 31, 35, 0.72);
    --native-card: rgba(27, 31, 35, 0.58);
    --native-field-border: rgba(255, 255, 255, 0.10);
    --line: rgba(255, 255, 255, 0.10);
    --accent: #aebfcc;
    --sage: #93aa8d;
    --warm: #c4a17b;
    --danger: #d18484;
  }
}

* {
  box-sizing: border-box;
  touch-action: manipulation;
}

html {
  min-height: 100%;
  background: var(--viewport-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--viewport-bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px 20px 48px;
}

body.is-reading-shared .shell {
  min-height: 100svh;
  padding: calc(12px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
}

body.is-reading-shared .repere-card.is-reading {
  min-height: calc(100svh - 36px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-reading-shared .footer {
  display: none;
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 6%, rgba(120, 143, 115, 0.28), transparent 28rem),
    radial-gradient(circle at 9% 78%, rgba(180, 143, 107, 0.22), transparent 24rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
}

.landing-shell {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vh, 92px);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.landing-header p {
  margin: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.56fr);
  gap: clamp(64px, 10vw, 136px);
  align-items: center;
}

.landing-copy {
  min-width: 0;
  max-width: 640px;
}

.landing-copy h1 {
  margin: 0;
  max-width: 10.8ch;
  font-size: clamp(3rem, 6.4vw, 5.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.landing-lede {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.7vw, 1.36rem);
  line-height: 1.42;
  font-weight: 760;
}

.landing-note {
  max-width: 545px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
  font-weight: 600;
}

.phone-mockup {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  justify-self: end;
}

.phone-frame {
  position: relative;
  width: min(308px, 100%);
  aspect-ratio: 390 / 844;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 58px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #4b5054, #151b1f 46%, #080d10);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28), -18px 18px 80px rgba(120, 143, 115, 0.08);
}

.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #090d10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 12px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 70px 25px 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 47px;
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.20), transparent 12rem),
    linear-gradient(152deg, rgba(255, 255, 255, 0.14), transparent 42%),
    #11171b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 30%, transparent 72%, rgba(255, 255, 255, 0.04));
}

.preview-top,
.phone-screen h2,
.preview-steps {
  position: relative;
  z-index: 1;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(248, 245, 238, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phone-screen h2 {
  margin: 50px 0 0;
  color: #f8f5ee;
  font-size: clamp(1.85rem, 3vw, 2.32rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.preview-steps {
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.preview-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.preview-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--sage));
  font-size: 0.82rem;
  font-weight: 850;
}

.preview-steps p {
  margin: 0;
  color: #f8f5ee;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 690;
}

.landing-lede,
.landing-note,
.phone-screen h2,
.preview-steps p {
  overflow-wrap: break-word;
}

.repere-card,
.collection-index,
.empty-state,
.code-card,
.revoked-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.repere-card {
  overflow: visible;
  scroll-margin-top: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero {
  min-height: 230px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.42), transparent 7rem),
    radial-gradient(circle at 66% 35%, rgba(180, 143, 107, 0.22), transparent 9rem),
    linear-gradient(135deg, rgba(64, 82, 97, 0.82), rgba(120, 143, 115, 0.58));
}

.hero.has-image {
  padding: 0;
  min-height: auto;
}

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 251, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(64, 82, 97, 0.07), 0 10px 26px rgba(64, 82, 97, 0.08);
  font-size: 1.02rem;
  font-weight: 850;
}

.content {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.guide-overview-panel,
.step {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(64, 82, 97, 0.10), transparent 56%),
    rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 52px rgba(64, 82, 97, 0.08);
  backdrop-filter: blur(20px);
}

.guide-overview-panel {
  padding: clamp(26px, 6vw, 46px);
  border-radius: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.description {
  margin: 14px 0 0;
  color: var(--native-muted);
  font-size: clamp(1.12rem, 4vw, 1.46rem);
  line-height: 1.38;
  font-weight: 680;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.repere-actions {
  display: flex;
  margin-top: 30px;
}

.reader-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border-radius: 26px;
}

@media (prefers-color-scheme: dark) {
  .meta-pill {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .guide-overview-panel,
  .step {
    border-color: var(--native-field-border);
    background:
      linear-gradient(145deg, rgba(174, 191, 204, 0.10), transparent 56%),
      rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 1.12rem;
  font-weight: 850;
}

.step p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 4.2vw, 1.48rem);
  line-height: 1.18;
  font-weight: 850;
}

.step-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.step-video,
.reader-video {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(64, 82, 97, 0.14);
  border: 1px solid var(--line);
}

.reader-video {
  border-radius: 24px;
  margin-top: 16px;
}

.step-video iframe,
.reader-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.step .note {
  margin-top: 8px;
  color: var(--native-muted);
  font-size: clamp(1rem, 3.4vw, 1.14rem);
  line-height: 1.28;
  font-weight: 700;
}

.footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.empty-state,
.code-card,
.revoked-card {
  padding: 28px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: block;
  border-radius: 22px;
  margin-bottom: 22px;
  background: var(--card);
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-lockup .brand-mark-small {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .landing-page {
    background:
      radial-gradient(circle at 84% 6%, rgba(120, 143, 115, 0.20), transparent 28rem),
      radial-gradient(circle at 10% 80%, rgba(180, 143, 107, 0.12), transparent 24rem),
      linear-gradient(135deg, #0a0f13, var(--bg-soft));
  }
}

@media (max-width: 860px) {
  .landing-shell {
    gap: 54px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 58px;
  }

  .phone-mockup {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    padding: 20px 16px 48px;
    gap: 44px;
  }

  .landing-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .landing-copy h1 {
    max-width: 9.8ch;
    font-size: clamp(2.45rem, 11.2vw, 3.2rem);
    line-height: 1;
  }

  .landing-lede {
    margin-top: 26px;
    font-size: 1.12rem;
  }

  .landing-note {
    font-size: 1rem;
  }

  .phone-frame {
    width: min(284px, 100%);
    border-radius: 50px;
    padding: 10px;
  }

  .phone-frame::before {
    top: 19px;
    width: 78px;
    height: 24px;
  }

  .phone-screen {
    padding: 60px 22px 24px;
    border-radius: 40px;
  }

  .preview-top {
    gap: 10px;
    font-size: 0.62rem;
  }

  .phone-screen h2 {
    margin-top: 42px;
    font-size: 1.85rem;
  }

  .preview-steps li {
    padding: 15px 0;
  }

  .preview-steps p {
    font-size: 0.88rem;
  }
}

.code-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.code-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.44);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.primary-button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, #405261, #5f7380);
  font-weight: 800;
  cursor: pointer;
}

.secondary-button,
.plain-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  font-weight: 800;
  cursor: pointer;
}

.plain-button {
  min-height: 42px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

button:focus-visible,
input:focus-visible,
.toc-link:focus-visible,
.collection-back-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), white 28%);
  outline-offset: 3px;
}

.collection-index:focus,
.repere-card:focus,
.reader-panel:focus {
  outline: none;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.collection {
  display: grid;
  gap: 18px;
}

.collection .repere-card {
  display: none;
}

.collection .repere-card.is-selected,
.collection .repere-card:target {
  display: block;
}

.collection-index {
  padding: 34px 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.collection-index h1 {
  color: var(--ink);
}

.collection-index .description {
  color: var(--native-muted);
  font-weight: 660;
}

.toc-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.toc-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 18px 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--native-card);
}

.toc-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 1.12rem;
  font-weight: 850;
}

.toc-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.toc-title {
  color: var(--ink);
  font-size: clamp(1.2rem, 4.1vw, 1.46rem);
  font-weight: 850;
  line-height: 1.12;
}

.toc-description,
.toc-meta {
  color: var(--native-muted);
  font-size: clamp(1rem, 3.4vw, 1.14rem);
  line-height: 1.25;
}

.toc-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-meta {
  font-weight: 780;
}

.toc-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 251, 244, 0.72);
  font-weight: 850;
}

.collection-back-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 850;
}

@media (prefers-color-scheme: dark) {
  .toc-link {
    border-color: var(--native-field-border);
  }

  .toc-arrow,
  .collection-back-button {
    background: rgba(255, 255, 255, 0.08);
  }
}

.reader-panel {
  padding: 0;
  min-height: calc(100svh - 36px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  background: transparent;
}

@media (prefers-color-scheme: dark) {
  .reader-panel {
    background: transparent;
  }

  .secondary-button {
    background: rgba(255, 255, 255, 0.08);
  }
}

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reader-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reader-top-actions .collection-back-button {
  flex: 0 0 auto;
  margin: 0;
}

.reader-count {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  margin-left: auto;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 251, 244, 0.72);
  font-size: 1rem;
  font-weight: 850;
}

.reader-close-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 251, 244, 0.72);
  text-align: center;
}

.reader-button-symbol {
  display: inline-grid;
  place-items: center;
  font-size: 1.5em;
  line-height: 1;
}

.reader-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.86);
}

.reader-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--accent));
  transition: width 220ms ease;
}

.reader-stage {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(72px, 13.5svh, 126px);
  overflow: auto;
  scrollbar-width: none;
}

.reader-panel.is-finished .reader-stage {
  align-items: center;
  justify-content: center;
  padding-top: 0;
  overflow: visible;
}

.reader-stage::-webkit-scrollbar {
  display: none;
}

.reader-step,
.reader-finish {
  display: none;
  width: 100%;
}

.reader-step.is-active,
.reader-finish:not([hidden]) {
  display: block;
}

.reader-step-card {
  width: 100%;
  min-height: clamp(232px, 30svh, 322px);
  padding: clamp(26px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgb(var(--guide-tint-rgb) / 0.10), transparent 54%),
    rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 52px rgba(64, 82, 97, 0.08);
  backdrop-filter: blur(20px);
}

.reader-finish:not([hidden]) {
  display: grid;
  justify-items: center;
  padding: 18px 0 8px;
  text-align: center;
}

.reader-finish-emoji {
  width: min(154px, 44vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.20), transparent 52%),
    var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  font-size: clamp(4.25rem, 18vw, 4.9rem);
  line-height: 1;
}

.reader-step h2 {
  margin: 0;
  font-size: clamp(2.42rem, 10vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.reader-step-card .reader-image + h2,
.reader-step-card .reader-video + h2 {
  margin-top: clamp(24px, 6vw, 36px);
}

.reader-finish h2 {
  margin: clamp(46px, 10vw, 58px) 0 0;
  font-size: clamp(2.42rem, 10vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.reader-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 24px;
  margin-top: 18px;
}

.reader-note,
.reader-finish p:not(.eyebrow) {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 3vw, 1.4rem);
  line-height: 1.36;
  font-weight: 600;
}

.reader-finish p:not(.eyebrow) {
  margin: 18px auto 0;
}

.reader-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reader-controls.has-back {
  grid-template-columns: 64px minmax(0, 1fr);
}

.reader-controls .primary-button,
.reader-controls .secondary-button,
.repere-actions .primary-button {
  width: 100%;
}

.reader-controls .reader-back-icon {
  width: 64px;
  padding: 0;
}

.reader-controls .primary-button,
.reader-controls .secondary-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.24rem;
  font-weight: 850;
}

.reader-controls .reader-next-button {
  gap: 10px;
}

.reader-controls .secondary-button:disabled {
  opacity: 1;
}

@media (max-width: 560px) {
  .shell {
    padding: 18px 12px 34px;
  }

  .repere-card,
  .collection-index,
  .empty-state,
  .code-card,
  .revoked-card {
    border-radius: 26px;
  }

  .content,
  .collection-index {
    padding: 20px;
  }

  .collection-index {
    padding-top: 42px;
  }

  .toc-link {
    grid-template-columns: 40px minmax(0, 1fr) 42px;
    gap: 14px;
    min-height: 104px;
    padding: 16px;
  }

  .toc-arrow {
    width: 42px;
    height: 42px;
  }

  .reader-panel {
    min-height: calc(100svh - 36px);
  }

  .reader-top {
    align-items: center;
    gap: 12px;
  }

  .reader-top-actions {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-progress div {
    transition: none;
  }
}
