/* ==========================================================================
   IBI Text to Speech — The Reading Room
   A warm editorial interface for reading PDFs aloud, word by word.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("vendor/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("vendor/fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("vendor/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --topbar-h: 72px;
  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --bg: #f3ede2;
  --bg-deep: #e9e0d1;
  --surface: #fffdf8;
  --surface-2: #f8f1e6;
  --surface-3: #efe6d8;
  --ink: #181410;
  --ink-2: #3c342b;
  --muted: #786d5f;
  --faint: #9f9485;
  --line: #dcd1c1;
  --line-2: #c9bba6;
  --accent: #d94e2f;
  --accent-deep: #b63a1e;
  --accent-soft: rgba(217, 78, 47, 0.11);
  --accent-softer: rgba(217, 78, 47, 0.055);
  --teal: #11594f;
  --teal-soft: rgba(17, 89, 79, 0.09);
  --gold: #e7b45b;
  --gold-soft: rgba(231, 180, 91, 0.16);
  --paper-edge: #e2d6c4;
  --shadow-sm: 0 1px 2px rgba(36, 26, 14, 0.06), 0 4px 12px rgba(36, 26, 14, 0.04);
  --shadow-md: 0 2px 6px rgba(36, 26, 14, 0.06), 0 18px 44px rgba(36, 26, 14, 0.1);
  --shadow-lg: 0 4px 12px rgba(36, 26, 14, 0.05), 0 32px 80px rgba(36, 26, 14, 0.16);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-width: 720px;
  --focus: 0 0 0 3px rgba(217, 78, 47, 0.28);
  color-scheme: light;
}

html[data-theme="studio"] {
  --bg: #12110f;
  --bg-deep: #0c0b0a;
  --surface: #1b1916;
  --surface-2: #23201c;
  --surface-3: #2a2621;
  --ink: #f4ecdd;
  --ink-2: #d8cebf;
  --muted: #9d9283;
  --faint: #786e61;
  --line: #332e28;
  --line-2: #4a4238;
  --accent: #f06a45;
  --accent-deep: #d84d29;
  --accent-soft: rgba(240, 106, 69, 0.15);
  --accent-softer: rgba(240, 106, 69, 0.07);
  --teal: #62b5a6;
  --teal-soft: rgba(98, 181, 166, 0.1);
  --gold: #e7b45b;
  --gold-soft: rgba(231, 180, 91, 0.12);
  --paper-edge: #3b342c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.25), 0 18px 44px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3), 0 32px 80px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(240, 106, 69, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.workspace-open { overflow: hidden; }

::selection { background: var(--accent); color: #fff8ef; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, h4, blockquote { margin: 0; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-2);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 1px 0 var(--line);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ── Buttons and fields ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff9f0;
  box-shadow: 0 6px 18px rgba(217, 78, 47, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 24px rgba(217, 78, 47, 0.26); }
.btn-quiet {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--line-2); background: var(--surface); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 14.5px; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 12px; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.is-active { background: var(--accent-soft); color: var(--accent); }
.icon-btn.tiny { width: 30px; height: 30px; border-radius: 7px; }
.icon-btn.tiny svg { width: 15px; height: 15px; }
.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--topbar-h);
  padding: 0 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-type { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand-product {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.brand-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.topbar-doc {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin-left: 8px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.topbar-doc-name {
  overflow: hidden;
  max-width: 380px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-doc-meta { color: var(--faint); font-size: 10.5px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.topbar-search {
  width: auto;
  padding: 0 10px 0 11px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.topbar-search span { color: var(--muted); font-size: 11.5px; font-weight: 650; }
.topbar-search kbd { margin-left: 5px; background: transparent; box-shadow: none; border-color: transparent; padding: 0 2px; font-size: 9.5px; }
.topbar-site { width: auto; padding: 0 11px; gap: 5px; font-size: 10px; font-weight: 750; letter-spacing: 0.02em; }
.topbar-site svg { width: 13px; height: 13px; }
.icon-sun, .icon-moon { display: none; }
html[data-theme="paper"] .icon-moon { display: block; }
html[data-theme="studio"] .icon-sun { display: block; }

/* ── Landing ──────────────────────────────────────────────────────────── */

.landing { position: relative; overflow: hidden; }
.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 55% at 84% 6%, rgba(217, 78, 47, 0.13), transparent 68%),
    radial-gradient(ellipse 50% 46% at 6% 54%, rgba(17, 89, 79, 0.085), transparent 72%),
    linear-gradient(180deg, transparent 0%, transparent 72%, color-mix(in srgb, var(--bg-deep) 55%, transparent) 100%);
}
.landing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
html[data-theme="studio"] .landing-bg::after { mix-blend-mode: screen; opacity: 0.08; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  max-width: 1380px;
  min-height: calc(100svh - var(--topbar-h) - 20px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 82px) clamp(24px, 4.5vw, 64px) 42px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: rise 0.7s var(--ease) both;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--line-2); }
.eyebrow > span:last-child { color: var(--faint); letter-spacing: 0.09em; }
.hero h1 {
  margin: 23px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(58px, 7.6vw, 112px);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: -0.052em;
  text-wrap: balance;
  animation: rise 0.8s 0.04s var(--ease) both;
}
.hero h1 em {
  display: inline-block;
  color: var(--accent);
  font-weight: 420;
  letter-spacing: -0.04em;
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: 0.01em;
  height: 0.055em;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.28;
  transform-origin: left;
  animation: draw 1.1s 0.55s var(--ease) both;
}
.hero-lede {
  max-width: 545px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.72;
  animation: rise 0.8s 0.12s var(--ease) both;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 0.8s 0.2s var(--ease) both; }
.sample-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.sample-play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 1px; }
.sample-meta {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  animation: rise 0.8s 0.28s var(--ease) both;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  perspective: 1400px;
  animation: rise 1s 0.16s var(--ease) both;
}
.hero-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--line-2) 60%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one { width: 570px; height: 570px; }
.hero-orbit-two { width: 710px; height: 710px; border-style: dashed; opacity: 0.55; }
.issue-card {
  position: relative;
  z-index: 2;
  width: min(420px, 84%);
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--line-2) 76%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.6deg) translateY(-2px);
  transition: transform 0.8s var(--ease);
}
.issue-card:hover { transform: rotate(-0.8deg) translateY(-6px); }
.issue-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 5px 10px; }
.issue-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 0.16em; }
.issue-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
.issue-page { color: var(--muted); font-family: var(--font-display); font-size: 12px; }
.issue-page span { color: var(--faint); font-family: var(--font-ui); font-size: 9px; }
.issue-paper { position: relative; overflow: hidden; border-radius: 6px; background: #fbf8f1; }
.issue-paper img { width: 100%; height: 505px; object-fit: cover; object-position: top center; filter: saturate(0.92) contrast(0.98); }
.issue-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(50, 35, 20, 0.08), inset 0 -50px 70px rgba(50, 35, 20, 0.08);
  pointer-events: none;
}
.issue-highlight { position: absolute; z-index: 2; border: 1.5px solid rgba(217, 78, 47, 0.72); border-radius: 3px; background: rgba(217, 78, 47, 0.18); }
.issue-highlight-a { left: 4.2%; top: 17.5%; width: 51%; height: 3.4%; }
.issue-highlight-b { left: 57%; top: 23%; width: 11%; height: 2.2%; background: rgba(231, 180, 91, 0.28); border-color: rgba(231, 180, 91, 0.5); }
.issue-pointer {
  position: absolute;
  z-index: 3;
  left: 12%;
  top: 16.1%;
  width: 11px;
  height: 11px;
  border: 2px solid #fffaf1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(120, 30, 10, 0.35), 0 0 0 5px rgba(217, 78, 47, 0.16);
}
.issue-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 17px;
  background: linear-gradient(to top, rgba(217, 78, 47, 0.75), transparent);
}
.issue-player {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 5px 2px;
  color: var(--muted);
}
.mini-play { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; background: var(--ink); color: var(--surface); }
.mini-play svg { width: 12px; height: 12px; fill: currentColor; margin-left: 1px; }
.mini-wave { display: flex; align-items: center; gap: 2px; height: 17px; flex: 1; }
.mini-wave i, .floating-wave i { display: block; width: 2px; border-radius: 9px; background: var(--accent); opacity: 0.7; animation: wave 1.2s ease-in-out infinite alternate; }
.mini-wave i:nth-child(1), .floating-wave i:nth-child(1) { height: 4px; animation-delay: -0.9s; }
.mini-wave i:nth-child(2), .floating-wave i:nth-child(2) { height: 8px; animation-delay: -0.5s; }
.mini-wave i:nth-child(3), .floating-wave i:nth-child(3) { height: 13px; animation-delay: -0.2s; }
.mini-wave i:nth-child(4), .floating-wave i:nth-child(4) { height: 6px; animation-delay: -0.7s; }
.mini-wave i:nth-child(5), .floating-wave i:nth-child(5) { height: 10px; animation-delay: -0.1s; }
.mini-wave i:nth-child(6) { height: 5px; animation-delay: -0.6s; }
.mini-wave i:nth-child(7) { height: 11px; animation-delay: -0.3s; }
.mini-wave i:nth-child(8) { height: 7px; animation-delay: -0.8s; }
.mini-wave i:nth-child(9) { height: 4px; animation-delay: -0.4s; }
.mini-time { color: var(--faint); font-size: 8.5px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.mini-time span { opacity: 0.7; }
.floating-note {
  position: absolute;
  z-index: 4;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}
.floating-word {
  right: 1%;
  top: 18%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 13px 15px 14px;
  border-radius: 12px;
  transform: rotate(2.4deg);
}
.floating-kicker { color: var(--faint); font-size: 7.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.floating-word strong { font-family: var(--font-display); font-size: 23px; font-weight: 520; letter-spacing: -0.03em; color: var(--ink); }
.floating-wave { display: flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 3px; }
.floating-wave i { background: var(--gold); height: 6px; }
.floating-voice {
  left: -2%;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 9px 9px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.voice-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #f8f1e4; font-family: var(--font-display); font-size: 16px; }
.floating-voice span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
.floating-voice small { color: var(--faint); font-size: 7.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.floating-voice b { font-size: 10.5px; font-weight: 750; }
.voice-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 3px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.voice-check svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.feature-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: 30px 28px 36px 0;
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.feature:last-child { border-right: none; }
.feature + .feature { padding-left: 28px; }
.feature-num { position: absolute; right: 18px; top: 19px; color: var(--faint); font-family: var(--font-display); font-size: 11px; font-style: italic; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { max-width: 220px; font-family: var(--font-display); font-size: 20px; font-weight: 560; line-height: 1.1; letter-spacing: -0.028em; }
.feature p { max-width: 250px; margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }

.site-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px clamp(24px, 4.5vw, 64px) 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10.5px; font-weight: 650; }
.mini-mark { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 7px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-size: 11px; font-weight: 600; }
.site-foot p { font-family: var(--font-display); font-size: 13px; font-style: italic; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.foot-links a, .foot-links button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 10px; font-weight: 650; }
.foot-links a:hover, .foot-links button:hover { color: var(--accent); }
.foot-links span { color: var(--faint); }

/* ── Workspace shell ──────────────────────────────────────────────────── */

.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 384px;
  grid-template-rows: minmax(0, 1fr);
  height: calc(100svh - var(--topbar-h));
  background: var(--bg);
  overflow: hidden;
}
body.workspace-open .topbar { height: var(--topbar-h); }
body.workspace-open .topbar-search kbd { display: none; }
body.sidebar-collapsed .workspace { grid-template-columns: 0 minmax(0, 1fr) 384px; }
body.sidebar-collapsed .sidebar { display: none; }
@media (max-width: 1280px) {
  body.sidebar-collapsed .workspace { grid-template-columns: 0 minmax(0, 1fr) 350px; }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--bg));
  transition: margin-left 0.28s var(--ease), opacity 0.28s;
}
.sidebar-head { padding: 14px 13px 0; }
.doc-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 34px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.doc-badge-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-badge-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.doc-badge-text strong { overflow: hidden; font-size: 10.5px; font-weight: 750; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.doc-badge-text small { color: var(--faint); font-size: 8.5px; letter-spacing: 0.02em; }
.doc-badge .icon-btn { margin-left: auto; flex-shrink: 0; }
.side-tabs { display: flex; gap: 2px; margin-top: 13px; border-bottom: 1px solid var(--line); }
.side-tab {
  position: relative;
  padding: 8px 9px 9px;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-tab span { color: var(--accent); font-size: 8px; }
.side-tab::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 1.5px; border-radius: 2px; background: transparent; }
.side-tab.is-active { color: var(--ink); }
.side-tab.is-active::after { background: var(--accent); }
.sidebar-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 13px 10px 16px; }
.side-panel { min-height: 100%; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.page-thumb {
  position: relative;
  display: block;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.page-thumb:hover { border-color: var(--line); background: var(--surface); transform: translateY(-1px); }
.page-thumb.is-active { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 2px var(--accent-soft); }
.thumb-paper { position: relative; display: block; aspect-ratio: 0.628; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fbf8f1; }
.thumb-paper canvas { width: 100%; height: 100%; object-fit: cover; }
.thumb-paper .thumb-skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, #f0e9dc 30%, #faf6ee 46%, #f0e9dc 62%); background-size: 220% 100%; animation: shimmer 1.5s infinite; }
.thumb-paper .thumb-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-family: var(--font-display); font-size: 20px; }
.thumb-num { position: absolute; left: 8px; bottom: 7px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 18px; padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--surface); font-size: 8px; font-weight: 750; font-variant-numeric: tabular-nums; }
.page-thumb.is-active .thumb-num { background: var(--accent); color: #fff8ef; }
.thumb-ocr { position: absolute; right: 6px; top: 6px; z-index: 2; width: 6px; height: 6px; border: 1.5px solid var(--surface); border-radius: 50%; background: var(--gold); }
.thumb-ocr.is-done { background: var(--teal); }
.marks-list { display: flex; flex-direction: column; gap: 8px; }
.mark-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, transform 0.16s;
}
.mark-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.mark-card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 4px; background: var(--accent); }
.mark-page { display: block; color: var(--faint); font-size: 7.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.mark-text { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--ink-2); font-family: var(--font-display); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mark-remove { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: var(--faint); opacity: 0; }
.mark-card:hover .mark-remove { opacity: 1; }
.mark-remove:hover { background: var(--accent-soft); color: var(--accent); }
.empty-note { padding: 18px 8px; color: var(--faint); font-size: 10.5px; line-height: 1.7; }
.empty-note kbd { font-size: 9px; }
.sidebar-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.progress-block { margin-bottom: 10px; }
.progress-top { display: flex; justify-content: space-between; color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.progress { height: 3px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.35s var(--ease); }
.local-pill { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 8px; font-weight: 650; letter-spacing: 0.03em; }
.local-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* Stage */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.stage-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 3px; }
.toolbar-left { min-width: 0; }
.toolbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
.toolbar-right { margin-left: auto; }
.toolbar-divider { width: 1px; height: 20px; margin: 0 5px; background: var(--line); }
.page-stepper { display: flex; align-items: center; gap: 1px; }
.page-stepper-label { display: flex; align-items: baseline; gap: 3px; min-width: 48px; justify-content: center; color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.page-stepper-label b { color: var(--ink); font-size: 12px; font-weight: 750; }
.view-switch { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.view-switch button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.view-switch button:hover { color: var(--ink); }
.view-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.text-source-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; padding: 4px 9px 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.text-source-chip .chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.text-source-chip.is-ocr .chip-dot { background: var(--gold); }
.text-source-chip.is-missing .chip-dot { background: var(--accent); }
.zoom-label { min-width: 30px; color: var(--faint); font-size: 9px; font-weight: 700; text-align: center; }
#bookmarkBtn.is-marked { color: var(--accent); background: var(--accent-soft); }

.stage-body { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.ocr-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface));
  box-shadow: var(--shadow-sm);
}
.ocr-banner-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); color: var(--accent); flex-shrink: 0; }
.ocr-banner-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ocr-banner-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.ocr-banner-copy strong { font-size: 10.5px; font-weight: 750; }
.ocr-banner-copy span { color: var(--muted); font-size: 9px; }
.ocr-banner .btn { margin-left: auto; flex-shrink: 0; }
.ocr-banner .btn + .btn { margin-left: 0; }

.page-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 27px;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 45%, transparent) 0.65px, transparent 0.65px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  scroll-behavior: smooth;
}
.page-stage { display: flex; flex-direction: column; align-items: center; min-height: 100%; justify-content: flex-start; }
.page-frame {
  position: relative;
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  border-radius: 3px;
  background: #fffdf8;
  box-shadow: 0 0 0 1px rgba(61, 44, 25, 0.13), 0 18px 50px rgba(55, 40, 20, 0.16);
  transition: width 0.2s var(--ease);
}
html[data-theme="studio"] .page-frame { box-shadow: 0 0 0 1px rgba(255, 245, 225, 0.12), 0 20px 60px rgba(0, 0, 0, 0.55); }
.page-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
#pdfCanvas { width: 100%; height: auto; border-radius: 3px; background: #fffdf8; }
.page-frame.has-ocr #pdfCanvas { filter: saturate(0.92); }
.word-layer { position: absolute; inset: 0; z-index: 3; }
.word {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: transparent;
  font-family: var(--font-ui);
  font-size: 1px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s, opacity 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.word:hover { background: rgba(217, 78, 47, 0.1); box-shadow: inset 0 0 0 1px rgba(217, 78, 47, 0.45); }
.word.sentence { background: rgba(231, 180, 91, 0.14); }
.word.active {
  background: rgba(217, 78, 47, 0.23);
  box-shadow: inset 0 0 0 1.5px rgba(217, 78, 47, 0.72), 0 0 0 1px rgba(255, 250, 242, 0.55);
}
.word.low-confidence { border-bottom: 1px dotted rgba(217, 78, 47, 0.68); }
.page-frame.focus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: saturate(0.4);
  pointer-events: none;
}
.word-pointer {
  position: absolute;
  z-index: 5;
  width: 11px;
  height: 11px;
  border: 2px solid #fffaf2;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(120, 30, 10, 0.38), 0 0 0 5px rgba(217, 78, 47, 0.14);
  transform: translate(-50%, -50%);
  transition: left 0.14s var(--ease), top 0.14s var(--ease);
  pointer-events: none;
}
.word-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 18px;
  background: linear-gradient(to top, rgba(217, 78, 47, 0.8), rgba(217, 78, 47, 0));
}
.word-pointer::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(217, 78, 47, 0.5);
  border-radius: 50%;
  animation: pointerPulse 1.8s ease-out infinite;
}
.ocr-scan { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 3px; background: rgba(24, 20, 16, 0.18); backdrop-filter: blur(1px); }
.ocr-scan-line { position: absolute; left: 0; right: 0; top: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px rgba(217, 78, 47, 0.35); animation: scanLine 2.8s ease-in-out infinite; }
.ocr-scan-label { position: absolute; bottom: 14px; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); padding: 8px 12px; border-radius: 999px; background: rgba(24, 20, 16, 0.86); color: #f8f1e4; font-size: 9.5px; box-shadow: var(--shadow-md); white-space: nowrap; }
.ocr-scan-label b { font-weight: 700; }
.ocr-scan-label span:last-child { color: #e9b45b; font-variant-numeric: tabular-nums; }
.page-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--page-width), 100%); margin: 12px auto 0; color: var(--faint); font-size: 8px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.page-footnote span { display: inline-flex; align-items: center; gap: 7px; }
.page-footnote b { color: var(--muted); font-weight: 750; }
.footnote-rule { width: 18px; height: 1px; background: var(--line-2); }
.page-loading { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; gap: 10px; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(4px); color: var(--muted); font-size: 11px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner.small { width: 12px; height: 12px; border-width: 1.5px; border-color: rgba(248, 241, 228, 0.25); border-top-color: #f8f1e4; }

/* Flow reading view */
.flow-view { display: flex; justify-content: center; padding: 8px 0 40px; }
.flow-article {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(30px, 5vw, 64px) clamp(24px, 5vw, 62px) clamp(40px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(61, 44, 25, 0.06), 0 18px 50px rgba(55, 40, 20, 0.1);
}
.flow-kicker { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.flow-rule { width: 40px; height: 1px; background: var(--line-2); }
.flow-title { margin-top: 17px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 540; line-height: 0.98; letter-spacing: -0.045em; }
.flow-title::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 22px; background: var(--accent); }
.flow-text {
  margin-top: 28px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 380;
  line-height: 1.72;
  letter-spacing: -0.005em;
}
.flow-text p { margin: 0 0 0.85em; }
.flow-text p:last-child { margin-bottom: 0; }
.flow-word { padding: 1px 0; border-radius: 3px; cursor: pointer; transition: color 0.12s, background 0.12s; }
.flow-word:hover { background: var(--accent-soft); }
.flow-word.active { background: var(--accent); color: #fff8ef; box-shadow: 0 0 0 2px var(--accent); }
.flow-word.sentence { background: var(--gold-soft); }
.flow-word.active.sentence { background: var(--accent); }
.flow-word b { font-weight: 720; }
.flow-empty { margin-top: 24px; color: var(--muted); font-family: var(--font-ui); font-size: 13px; }

.stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, var(--surface));
}
.stage-arrow { display: inline-flex; align-items: center; gap: 6px; padding: 7px 6px; border: 0; background: transparent; color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; }
.stage-arrow:hover { color: var(--ink); }
.stage-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stage-bottom-center { display: flex; align-items: center; gap: 7px; }
.play-inline { min-height: 39px; padding: 0 19px; font-size: 11.5px; }
.play-inline svg { width: 15px; height: 15px; }
.play-inline svg.play-icon, .play-inline svg.pause-icon { fill: currentColor; stroke: none; }
.play-inline svg.play-icon { margin-left: 1px; }
.play-icon { display: block; }
.pause-icon { display: none; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }

/* ── Listening panel ──────────────────────────────────────────────────── */

.listen-panel { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 10px 15px 8px 18px; border-bottom: 1px solid var(--line); }
.panel-kicker { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.panel-head-actions { display: flex; align-items: center; gap: 6px; }
.sync-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); font-size: 7.5px; font-weight: 700; letter-spacing: 0.04em; }
.sync-pill i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.sync-pill.is-live { border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); color: var(--teal); }
.sync-pill.is-live i { background: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.sync-pill.is-estimated i { background: var(--gold); }
.now-card { margin: 15px 15px 0; padding: 15px 15px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.now-meta { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 8px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.equalizer { display: flex; align-items: center; gap: 2px; width: 20px; height: 13px; }
.equalizer i { width: 2px; height: 3px; border-radius: 2px; background: var(--accent); }
.is-playing .equalizer i { animation: eq 0.82s ease-in-out infinite alternate; }
.is-playing .equalizer i:nth-child(2) { animation-delay: -0.5s; }
.is-playing .equalizer i:nth-child(3) { animation-delay: -0.2s; }
.is-playing .equalizer i:nth-child(4) { animation-delay: -0.7s; }
.is-playing .equalizer i:nth-child(5) { animation-delay: -0.35s; }
.now-page { margin-left: auto; color: var(--muted); letter-spacing: 0.04em; }
.now-sentence {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.3em;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 420;
  line-height: 1.35;
  letter-spacing: -0.018em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.now-word-row { display: flex; align-items: center; gap: 7px; min-height: 25px; margin-top: 11px; }
.now-word-label { color: var(--faint); font-size: 8px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.now-word { max-width: 190px; overflow: hidden; padding: 2px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 13px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.now-word.is-empty { background: transparent; color: var(--faint); }
.now-word-conf { color: var(--faint); font-size: 7.5px; font-weight: 650; }
.now-progress { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--line); }
.now-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.2s linear; }
.now-times { display: flex; justify-content: space-between; margin-top: 5px; color: var(--faint); font-size: 7.5px; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; }
.transport-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.transport-btn:hover { background: var(--surface); color: var(--ink); }
.transport-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.transport-btn > span { position: absolute; font-size: 6px; font-weight: 800; bottom: 9px; left: 50%; transform: translateX(-50%); }
.transport-back > span { padding-left: 1px; }
.transport-fwd > span { padding-right: 1px; }
.transport-play { display: inline-flex; align-items: center; justify-content: center; width: 55px; height: 55px; margin: 0 5px; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); box-shadow: 0 7px 20px rgba(24, 20, 16, 0.18); transition: transform 0.18s var(--ease), background 0.18s; }
.transport-play:hover { transform: scale(1.04); background: var(--accent); }
.transport-play svg { width: 23px; height: 23px; }
.transport-play .play-icon { fill: currentColor; stroke: none; margin-left: 2px; }
.transport-play .pause-icon { fill: currentColor; stroke: none; }
.stop-link { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 9px auto 0; padding: 2px 0; border: 0; background: none; color: var(--faint); font-size: 8px; font-weight: 650; }
.stop-link span { width: 5px; height: 5px; border-radius: 1px; background: currentColor; }
.stop-link:hover { color: var(--accent); }

.panel-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 15px 18px; }
.control-section { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.control-section:last-child { border-bottom: 0; }
.control-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.control-head label, .control-head > span:first-child { color: var(--ink-2); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.control-sub { color: var(--faint); font-size: 8px; font-weight: 550; letter-spacing: 0.01em; text-transform: none; }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
}
.select-wrap select:hover { border-color: var(--line-2); }
.select-chevron { position: absolute; right: 10px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.control-note { margin-top: 6px; color: var(--faint); font-size: 7.5px; line-height: 1.5; }
.rate-output { color: var(--accent); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.range { width: 100%; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--range-progress, 25%), var(--line) var(--range-progress, 25%)); }
.range::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); appearance: none; }
.range::-moz-range-track { height: 3px; border-radius: 99px; background: var(--line); }
.range::-moz-range-progress { height: 3px; background: var(--accent); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); }
.rate-presets { display: flex; gap: 3px; margin-top: 4px; }
.rate-presets button { flex: 1; padding: 4px 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--faint); font-size: 8.5px; font-weight: 700; }
.rate-presets button:hover { color: var(--ink); background: var(--surface-2); }
.rate-presets button.is-active { border-color: var(--line); background: var(--surface-2); color: var(--accent); }
.toggle-list { display: flex; flex-direction: column; gap: 1px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; cursor: pointer; }
.toggle-row + .toggle-row { border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.toggle-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.toggle-copy b { color: var(--ink-2); font-size: 9.5px; font-weight: 700; }
.toggle-copy small { margin-top: 1px; color: var(--faint); font-size: 7.5px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 30px; height: 17px; flex-shrink: 0; border-radius: 99px; background: var(--line-2); transition: background 0.18s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.18s var(--ease); }
.toggle-row input:checked + .switch { background: var(--accent); }
.toggle-row input:checked + .switch::after { transform: translateX(13px); }
.toggle-row input:focus-visible + .switch { box-shadow: var(--focus); }
.toggle-row.compact { padding: 6px 0; }
.scope-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.scope-switch button { height: 27px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); font-size: 9px; font-weight: 700; }
.scope-switch button:hover { color: var(--ink); }
.scope-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.shortcuts-section { padding-bottom: 3px; }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 8.5px; }
.shortcut-text { color: var(--faint); font-size: 8px; font-style: italic; }

/* ── Mobile dock ──────────────────────────────────────────────────────── */

.mobile-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.dock-play { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); flex-shrink: 0; }
.dock-play svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.dock-play .play-icon { margin-left: 1px; }
.dock-info { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 2px 0 5px; border: 0; background: none; text-align: left; }
.dock-title { overflow: hidden; color: var(--ink); font-family: var(--font-display); font-size: 13px; font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.dock-sub { overflow: hidden; color: var(--faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.dock-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.dock-progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.dock-expand { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 42px; border: 0; background: none; color: var(--muted); }
.dock-expand svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Dialogs, toasts, drop overlay ────────────────────────────────────── */

dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(16, 12, 8, 0.48); backdrop-filter: blur(7px); }
.modal[open] { animation: modalIn 0.28s var(--ease) both; }
.modal-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 27px 28px 24px;
  border: 1px solid var(--line-2);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.modal-close { position: absolute; right: 15px; top: 15px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.modal-kicker { display: block; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.modal-card h2 { margin-top: 8px; font-family: var(--font-display); font-size: 34px; font-weight: 540; line-height: 1; letter-spacing: -0.04em; }
.modal-card > p { margin-top: 12px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.modal-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 117px; margin-bottom: 18px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.scan-sheet { position: relative; width: 82px; height: 98px; padding: 10px 9px; border: 1px solid var(--line-2); border-radius: 4px; background: #fbf8f1; box-shadow: var(--shadow-md); transform: rotate(-3deg); }
.scan-sheet span { display: block; height: 2px; margin-bottom: 6px; border-radius: 3px; background: #d8cdbd; }
.scan-sheet span:nth-child(1) { width: 55%; height: 5px; margin-bottom: 9px; background: #b9ab97; }
.scan-sheet span:nth-child(2) { width: 88%; }
.scan-sheet span:nth-child(3) { width: 72%; }
.scan-sheet span:nth-child(4) { width: 84%; }
.scan-sheet i { position: absolute; left: 4px; right: 4px; top: 48px; height: 1px; background: var(--accent); box-shadow: 0 0 8px 1px rgba(217, 78, 47, 0.45); }
.scan-badge { position: absolute; right: calc(50% - 64px); bottom: 17px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #f8f1e4; box-shadow: 0 4px 12px rgba(17, 89, 79, 0.28); }
.scan-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.modal-facts span { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; background: var(--surface-2); }
.modal-facts b { font-size: 10.5px; font-weight: 750; }
.modal-facts small { color: var(--faint); font-size: 7.5px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 19px; }
.modal-actions .btn { flex: 1; min-width: 150px; }
.modal-fine { color: var(--faint) !important; font-size: 8.5px !important; line-height: 1.6 !important; }
.search-modal .modal-card { width: min(690px, calc(100vw - 28px)); padding: 0; }
.search-card { overflow: hidden; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.search-bar > svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.search-bar input::placeholder { color: var(--faint); }
.search-meta { padding: 9px 17px 8px; color: var(--faint); font-size: 8.5px; }
.search-results { max-height: 50vh; overflow: auto; padding: 0 9px 10px; }
.search-result { display: block; width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); background: transparent; text-align: left; border-radius: 7px; }
.search-result:hover, .search-result:focus-visible { background: var(--surface-2); }
.search-result-page { color: var(--accent); font-size: 7.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.search-result-text { display: block; margin-top: 2px; color: var(--ink-2); font-family: var(--font-display); font-size: 13.5px; line-height: 1.4; }
.search-result-text mark { padding: 0 2px; border-radius: 2px; background: var(--gold-soft); color: inherit; }
.search-empty { padding: 25px 15px 30px; color: var(--faint); font-size: 10px; text-align: center; }
.help-modal .modal-card { width: min(650px, calc(100vw - 28px)); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.help-grid h3 { color: var(--ink-2); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.help-grid h3 + p { margin-top: 7px; margin-bottom: 17px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.key-list { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 9.5px; }
.key-list span { display: flex; align-items: center; gap: 4px; }
.help-privacy { display: flex; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.help-privacy svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.help-privacy p { color: var(--muted); font-size: 9px; line-height: 1.65; }
.help-privacy b { color: var(--ink-2); }
.toast-region { position: fixed; z-index: 120; left: 50%; bottom: 22px; display: flex; flex-direction: column-reverse; align-items: center; gap: 7px; width: min(430px, calc(100vw - 28px)); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; max-width: 100%; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 10px; font-weight: 600; line-height: 1.4; animation: toastIn 0.25s var(--ease) both; pointer-events: auto; }
.toast-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; }
.toast-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.toast.is-out { animation: toastOut 0.22s ease both; }
.toast svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.toast.is-error { background: var(--accent-deep); color: #fff8ef; }
.toast.is-ok { background: var(--teal); color: #f8f1e4; }
.drop-overlay { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; background: rgba(20, 15, 10, 0.46); backdrop-filter: blur(8px); }
.drop-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 36px 52px; border: 1.5px dashed rgba(248, 241, 228, 0.4); border-radius: 20px; background: rgba(24, 20, 16, 0.9); color: #f8f1e4; text-align: center; box-shadow: var(--shadow-lg); }
.drop-icon { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; margin-bottom: 7px; border-radius: 50%; background: var(--accent); color: #fff8ef; }
.drop-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-card strong { font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.drop-card span { color: rgba(248, 241, 228, 0.62); font-size: 10px; }

/* ── Motion ───────────────────────────────────────────────────────────── */

@keyframes rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes wave { from { transform: scaleY(0.55); opacity: 0.45; } to { transform: scaleY(1); opacity: 0.95; } }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes pointerPulse { 0% { transform: scale(0.7); opacity: 0.9; } 75%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes scanLine { 0%, 100% { top: 8%; opacity: 0.7; } 50% { top: 90%; opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .workspace { grid-template-columns: 210px minmax(0, 1fr) 350px; }
  .topbar { padding: 0 20px; gap: 14px; }
  .topbar-doc-name { max-width: 260px; }
  .brand-name { font-size: 17px; }
  .hero { gap: 30px; }
  .floating-word { right: -2%; }
  .floating-voice { left: -4%; }
}

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .sidebar { position: fixed; left: 0; top: var(--topbar-h); bottom: 0; z-index: 35; width: 238px; margin-left: -248px; opacity: 0; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { margin-left: 0; opacity: 1; }
  .page-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 560px; margin-top: 8px; }
  .hero h1 { font-size: clamp(58px, 10vw, 96px); }
  .feature-band { margin-top: 20px; }
}

@media (max-width: 880px) {
  :root { --topbar-h: 62px; }
  .workspace { grid-template-columns: minmax(0, 1fr); height: calc(100svh - var(--topbar-h)); }
  .listen-panel { position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 40; width: min(384px, 94vw); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(102%); transition: transform 0.28s var(--ease); }
  .listen-panel.is-open { transform: none; }
  .mobile-dock { display: flex; }
  body.workspace-open .stage-bottom { padding-bottom: 57px; }
  .stage-bottom { display: none; }
  .page-scroll { padding: 14px 12px 72px; }
  .stage-toolbar { gap: 5px; padding: 6px 9px; min-height: 49px; }
  .toolbar-center { display: none; }
  .toolbar-right .icon-btn:not(#focusBtn):not(#searchBtn2) { display: none; }
  .toolbar-right .zoom-label, .toolbar-right .toolbar-divider { display: none; }
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 15px; }
  .brand-product { font-size: 7px; }
  .topbar-search span, .topbar-search kbd, .topbar-site span { display: none; }
  .topbar-search { width: 38px; padding: 0; border-color: transparent; background: transparent; }
  .topbar-site { width: 38px; padding: 0; }
  .topbar-doc { display: none !important; }
  .ocr-banner { flex-wrap: wrap; margin: 9px 10px 0; }
  .ocr-banner-icon { order: 1; }
  .ocr-banner-copy { order: 2; flex: 1 0 100%; }
  .ocr-banner .btn { order: 3; margin-left: 0; flex: 1; }
  .hero { padding: 44px 22px 30px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { flex: 1 1 210px; }
  .hero-visual { min-height: 500px; }
  .issue-card { width: min(380px, 86%); }
  .issue-paper img { height: 430px; }
  .floating-word { right: 0; top: 12%; }
  .floating-voice { left: 0; bottom: 12%; }
  .feature-band { grid-template-columns: repeat(2, 1fr); padding: 0 22px; }
  .feature { padding: 24px 20px 28px 0; border-bottom: 1px solid var(--line); }
  .feature + .feature { padding-left: 0; }
  .feature:nth-child(2) { border-right: 0; padding-left: 20px; }
  .feature:nth-child(3) { padding-left: 0; }
  .feature:nth-child(4) { border-right: 0; padding-left: 20px; border-bottom: 0; }
  .site-foot { padding: 22px; }
  .site-foot p { display: none; }
  .help-grid { grid-template-columns: 1fr; gap: 4px; }
  .modal-card { padding: 24px 20px 20px; }
  .modal-card h2 { font-size: 28px; }
  .toast-region { bottom: 76px; }
}

@media (max-width: 560px) {
  .brand-type .brand-name { display: none; }
  .brand-sub, .brand-dot { display: none; }
  .brand-product { font-size: 7.5px; letter-spacing: 0.13em; max-width: 150px; overflow: hidden; white-space: nowrap; }
  .hero h1 { font-size: clamp(49px, 14vw, 70px); }
  .hero-lede { font-size: 14px; }
  .eyebrow > span:last-child { display: none; }
  .eyebrow-rule { width: 20px; }
  .hero-visual { min-height: 430px; }
  .issue-card { width: min(330px, 92%); }
  .issue-paper img { height: 360px; }
  .hero-orbit-one { width: 420px; height: 420px; }
  .hero-orbit-two { width: 520px; height: 520px; }
  .floating-word { right: -2%; top: 6%; padding: 9px 11px; min-width: 136px; }
  .floating-word strong { font-size: 19px; }
  .floating-voice { left: -2%; bottom: 7%; }
  .feature-band { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .feature:nth-child(2), .feature:nth-child(3), .feature:nth-child(4) { padding: 21px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .feature h2, .feature p { max-width: none; }
  .feature-num { top: 16px; }
  .side-tabs { margin-top: 10px; }
  .toolbar-left .toolbar-divider { display: none; }
  .view-switch button { width: 30px; padding: 0; justify-content: center; }
  .view-switch button span, .view-switch button:not(.is-active) { font-size: 0; gap: 0; }
  .view-switch button svg { width: 15px; height: 15px; }
  .page-stepper-label { min-width: 38px; }
  .page-scroll { padding: 8px 7px 72px; }
  .page-footnote { padding: 0 5px; font-size: 7px; }
  .view-switch button { width: 31px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .view-switch button svg { width: 15px; height: 15px; }
  .view-switch { padding: 2px; }
  .modal-facts { grid-template-columns: 1fr; }
  .modal-facts span { flex-direction: row; justify-content: space-between; padding: 8px 10px; }
  .modal-actions .btn { min-width: 100%; }
  .search-bar input { font-size: 17px; }
  .floating-note { backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .sidebar, .listen-panel, .stage-toolbar, .stage-bottom, .mobile-dock, .page-footnote, .ocr-banner { display: none !important; }
  .workspace { display: block; height: auto; }
  .page-scroll { overflow: visible; padding: 0; background: none; }
  .page-frame { box-shadow: none; }
}
