:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: rgba(24, 27, 32, .82);
  --panel-solid: #171a1f;
  --line: rgba(255, 255, 255, .1);
  --muted: #9299a6;
  --text: #f7f4ee;
  --accent: #d7b779;
  --accent-bright: #ecd296;
  --accent-ink: #241d11;
  --danger: #ff8d8d;
  --radius: 18px;
  --dock-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { height: 100dvh; min-height: 540px; display: grid; grid-template-rows: 76px minmax(0, 1fr); }
.topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--accent-bright); border: 1px solid rgba(215, 183, 121, .35); border-radius: 13px;
  background: linear-gradient(145deg, rgba(215,183,121,.16), rgba(215,183,121,.03));
}
.brand-mark svg { width: 21px; height: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 2px; letter-spacing: .11em; text-transform: uppercase; }
.document-meta { min-width: 0; text-align: center; }
.document-meta strong, .document-meta span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.document-meta strong { font-size: 13px; font-weight: 650; }
.document-meta span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.icon-button, .page-arrow, .dock-button, .ghost-button, .primary-button {
  border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: transparent; color: #b6bbc3; }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.icon-button:active, .page-arrow:active, .primary-button:active, .ghost-button:active { transform: scale(.96); }
.icon-button[aria-pressed="true"] { color: var(--accent-bright); background: rgba(215,183,121,.12); }
.icon-button.small { width: 36px; height: 36px; border-radius: 10px; }
.icon-button.small svg { width: 19px; height: 19px; }
.icon-button:disabled, .page-arrow:disabled { opacity: .3; cursor: default; }
.primary-button, .ghost-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 12px; font-weight: 700; font-size: 13px; }
.primary-button { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-bright), #c9a461); box-shadow: 0 9px 30px rgba(201,164,97,.13); }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 34px rgba(201,164,97,.2); }
.primary-button svg { width: 18px; height: 18px; stroke-width: 2; }
.primary-button.large, .ghost-button.large { min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 14px; }
.ghost-button { color: #d9dce0; border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.ghost-button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

.reader { position: relative; min-height: 0; overflow: hidden; isolation: isolate; }
.reader::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(90, 77, 54, .2), transparent 50%),
    linear-gradient(145deg, #11151b 0%, #0b0d10 52%, #111317 100%);
}
.reader::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .15; pointer-events: none;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.ambient { position: absolute; z-index: -1; border-radius: 999px; filter: blur(90px); opacity: .12; pointer-events: none; }
.ambient-one { width: 28vw; height: 28vw; top: -12vw; left: -6vw; background: #a68043; }
.ambient-two { width: 35vw; height: 35vw; right: -15vw; bottom: -18vw; background: #526e85; }

.welcome { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px 42px; text-align: center; animation: reveal .7s ease both; }
.welcome-visual { height: clamp(120px, 20vh, 184px); margin-bottom: 6px; display: grid; place-items: center; perspective: 1000px; }
.demo-book { position: relative; width: 260px; height: 158px; transform: rotateX(54deg) rotateZ(-4deg); transform-style: preserve-3d; filter: drop-shadow(0 38px 25px rgba(0,0,0,.45)); }
.demo-page { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; border: 1px solid rgba(65,52,34,.22); background: #f3ecdc; color: #312b22; }
.demo-left { left: 0; display: grid; place-items: center; border-radius: 5px 0 0 5px; background: linear-gradient(135deg, #25313b, #10171e); color: #d9ba7e; font: 600 15px/1 Georgia, serif; letter-spacing: .2em; box-shadow: inset -16px 0 25px rgba(0,0,0,.35); }
.demo-right { right: 0; display: flex; flex-direction: column; gap: 10px; padding: 38px 24px; border-radius: 0 5px 5px 0; box-shadow: inset 16px 0 24px rgba(86,63,32,.12); }
.demo-right i { display: block; height: 3px; border-radius: 5px; background: #c9bfae; }
.demo-right i:nth-child(2) { width: 80%; }.demo-right i:nth-child(3) { width: 55%; }
.demo-right b { position: absolute; right: 16px; bottom: 12px; color: #aa8c56; font-size: 10px; }
.demo-fold { position: absolute; z-index: 3; top: -2px; right: -2px; width: 132px; height: 162px; transform-origin: left center; transform: rotateY(-32deg); border-radius: 0 6px 6px 0; background: linear-gradient(100deg, #b9ad98 0%, #f8f1e3 11%, #e7ddcc 70%, #d2c3aa 100%); box-shadow: -12px 6px 18px rgba(33,25,15,.22); animation: breathe-page 3.8s ease-in-out infinite; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
.welcome h1 { margin: 0; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5.1vw, 67px); font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.welcome h1 em { color: var(--accent-bright); font-weight: 400; }
.welcome-copy { max-width: 600px; margin: 18px auto 0; color: #a9afb8; font-size: clamp(13px, 1.4vw, 15px); line-height: 1.7; }
.welcome-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.drop-hint { width: min(400px, 80vw); display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: #737a84; font-size: 10px; }
.drop-hint::before, .drop-hint::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.08); }
.feature-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 15px; }
.feature-pills span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: rgba(255,255,255,.025); color: #858c96; font-size: 10px; }

.book-stage { width: 100%; height: calc(100% - var(--dock-height)); display: flex; align-items: center; justify-content: center; padding: 18px clamp(62px, 6vw, 100px) 8px; touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
.book-zoom-shell { position: relative; width: min(78vw, 1260px); height: min(calc(100% - 52px), 800px); flex: 0 0 auto; }
.book-perspective { position: relative; width: 100%; height: 100%; display: grid; place-items: center; perspective: 2100px; transform: scale(var(--book-zoom, 1)); transform-origin: top left; transition: transform .24s ease; will-change: transform; }
#book { width: 100%; height: 100%; filter: drop-shadow(0 25px 24px rgba(0,0,0,.35)); transition: transform .42s cubic-bezier(.2,.8,.2,1); }
#book.front-cover-mode { transform: translateX(-25%); clip-path: inset(0 0 0 50%); }
#book.back-cover-mode { transform: translateX(25%); clip-path: inset(0 50% 0 0); }
#book .stf__parent { margin: 0 auto; }
#book canvas { background: transparent !important; image-rendering: high-quality; touch-action: none; -webkit-user-select: none; user-select: none; }
#book.edge-ready canvas { cursor: grab; }
#book.edge-holding canvas { cursor: grabbing; }
.book-spine { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 3px; z-index: 2; transform: translateX(-50%); pointer-events: none; opacity: .6; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12), rgba(0,0,0,.35)); filter: blur(.3px); box-shadow: 0 0 15px rgba(0,0,0,.55); }
.page-arrow { position: absolute; z-index: 12; top: 50%; width: 48px; height: 68px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 16px; background: rgba(20,23,28,.62); color: #b3b8c1; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page-arrow:hover { color: var(--text); border-color: rgba(215,183,121,.35); background: rgba(36,37,38,.85); }
.page-arrow:active { transform: translateY(-50%) scale(.95); }
.page-arrow.prev { left: clamp(15px, 2.3vw, 38px); }.page-arrow.next { right: clamp(15px, 2.3vw, 38px); }
.gesture-tip { position: absolute; z-index: 5; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 12px; color: #858c95; font-size: 10px; white-space: nowrap; border-radius: 99px; background: rgba(12,14,17,.5); opacity: 1; transition: opacity .5s ease; pointer-events: none; }
.gesture-tip.fade { opacity: 0; }
.hd-badge { position: absolute; z-index: 15; top: 14px; right: 18px; min-width: 42px; height: 25px; display: grid; place-items: center; padding: 0 8px; border: 1px solid rgba(236,210,150,.35); border-radius: 999px; color: var(--accent-bright); background: rgba(20,23,28,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.book-stage.is-zoomed { align-items: flex-start; justify-content: flex-start; overflow: auto; overscroll-behavior: contain; scrollbar-color: rgba(215,183,121,.35) transparent; scrollbar-width: thin; cursor: grab; }
.book-stage.is-zoomed .book-zoom-shell { margin: 22px; }
.book-stage.is-zoomed #book canvas { cursor: grab; }
.book-stage.is-panning, .book-stage.is-panning #book canvas { cursor: grabbing; }
.book-stage.is-pinching .book-perspective { transition: none; }
.book-stage.is-pinching #book { transition: none; }

.control-dock { position: absolute; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); height: 58px; display: flex; align-items: center; gap: 4px; padding: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(20,23,28,.83); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 50px rgba(0,0,0,.34); }
.dock-group { height: 100%; display: flex; align-items: center; gap: 3px; padding: 0 5px; }
.dock-group + .dock-group { border-left: 1px solid rgba(255,255,255,.08); }
.dock-button { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 11px; background: transparent; color: #b8bdc5; font-size: 11px; }
.dock-button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.dock-button svg { width: 18px; height: 18px; }
.page-counter { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 8px; color: #858c96; font-size: 11px; }
.page-counter input { width: 38px; padding: 4px 2px; border: 0; border-radius: 7px; outline: none; background: rgba(255,255,255,.07); color: var(--text); text-align: center; -moz-appearance: textfield; }
.page-counter input::-webkit-inner-spin-button { display: none; }
.zoom-controls > span { min-width: 44px; color: #aeb3bb; font-size: 10px; text-align: center; }
.reset-zoom-button[hidden] { display: none !important; }
.reset-zoom-button { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-left: 3px; padding: 0 10px; border: 1px solid rgba(236,210,150,.35); border-radius: 10px; background: linear-gradient(135deg, rgba(178,141,79,.26), rgba(215,183,121,.12)); color: #f2d89e; font-size: 10px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.reset-zoom-button:hover { border-color: rgba(236,210,150,.65); background: linear-gradient(135deg, rgba(178,141,79,.38), rgba(215,183,121,.18)); color: #fff0c9; }
.reset-zoom-button:active { transform: scale(.96); }
.reset-zoom-button svg { width: 15px; height: 15px; }
.reset-zoom-button.attention { animation: reset-pulse .72s ease 2; }

.drop-overlay, .loading-overlay { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10,12,15,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.drop-overlay { opacity: 0; visibility: hidden; transition: .2s ease; border: 2px dashed transparent; }
.drop-overlay.active { opacity: 1; visibility: visible; border-color: rgba(215,183,121,.5); }
.drop-overlay > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop-overlay svg { width: 42px; height: 42px; margin-bottom: 8px; color: var(--accent-bright); }
.drop-overlay strong { font: 400 29px/1.2 Georgia, serif; }
.drop-overlay span { color: var(--muted); font-size: 12px; }
.loading-overlay { background: rgba(10,12,15,.94); }
.loading-overlay strong { margin-top: 18px; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.loading-overlay p { margin: 7px 0 17px; color: var(--muted); font-size: 12px; }
.loading-overlay small { margin-top: 9px; color: #8f969f; font-size: 10px; }
.progress-track { width: min(320px, 68vw); height: 3px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.09); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b28d4f, var(--accent-bright)); transition: width .2s ease; }
.loader-book { position: relative; width: 70px; height: 45px; perspective: 300px; }
.loader-book span { position: absolute; left: 50%; top: 0; width: 34px; height: 44px; transform-origin: left center; border-radius: 0 4px 4px 0; background: #eee4d0; box-shadow: inset 5px 0 8px rgba(58,43,22,.16); }
.loader-book span:nth-child(1) { transform: rotateY(180deg); }
.loader-book span:nth-child(2) { animation: loading-page 1.25s ease-in-out infinite; }
.loader-book span:nth-child(3) { animation: loading-page 1.25s .3s ease-in-out infinite; }

.thumbnail-drawer { position: fixed; z-index: 80; top: 0; left: 0; bottom: 0; width: min(390px, 90vw); display: grid; grid-template-rows: auto minmax(0,1fr); background: #14171c; border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .34s cubic-bezier(.2,.8,.2,1); box-shadow: 24px 0 80px rgba(0,0,0,.42); }
.thumbnail-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-header strong, .drawer-header span { display: block; }.drawer-header strong { font: 400 21px/1.2 Georgia, serif; }.drawer-header span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.thumbnail-grid { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding: 18px; scrollbar-color: #3a3e45 transparent; scrollbar-width: thin; }
.thumbnail { position: relative; align-self: start; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.thumbnail img { width: 100%; display: block; border-radius: 7px; background: #e9e6df; box-shadow: 0 7px 18px rgba(0,0,0,.24); transition: transform .2s ease, box-shadow .2s ease; }
.thumbnail span { display: block; margin-top: 7px; color: #878e98; font-size: 10px; text-align: center; }
.thumbnail:hover img { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.thumbnail.active img { outline: 2px solid var(--accent); outline-offset: 3px; }
.thumbnail.active span { color: var(--accent-bright); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s ease; }
.drawer-backdrop.show { opacity: 1; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 92px; max-width: min(440px, 86vw); padding: 11px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(27,30,35,.95); color: #e7e8ea; box-shadow: 0 14px 45px rgba(0,0,0,.4); font-size: 12px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.error { color: #ffd0d0; border-color: rgba(255,141,141,.3); }

.app-shell.immersive { grid-template-rows: minmax(0, 1fr); background: #080a0d; }
.app-shell.immersive .topbar { display: none; }
.app-shell.immersive .reader { height: 100dvh; }
.app-shell.immersive .book-stage { height: 100%; padding: 8px clamp(42px, 4vw, 74px) 58px; }
.app-shell.immersive .book-zoom-shell { width: min(92vw, 1800px); height: calc(100dvh - 70px); }
.app-shell.immersive .control-dock { bottom: max(7px, env(safe-area-inset-bottom)); opacity: .38; transition: opacity .22s ease, transform .22s ease; }
.app-shell.immersive .control-dock:hover,
.app-shell.immersive .control-dock:focus-within { opacity: 1; }
.app-shell.immersive .gesture-tip { bottom: 64px; }
.app-shell.immersive .hd-badge { top: 10px; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes breathe-page { 0%,100% { transform: rotateY(-28deg); } 50% { transform: rotateY(-44deg); } }
@keyframes loading-page { 0% { transform: rotateY(0deg); } 45%,100% { transform: rotateY(-180deg); } }
@keyframes reset-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,183,121,0); } 50% { box-shadow: 0 0 0 7px rgba(215,183,121,.18); } }

@media (max-width: 760px) {
  :root { --dock-height: 68px; }
  .app-shell { grid-template-rows: 66px minmax(0, 1fr); min-height: 500px; }
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 13px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand small, .document-meta { display: none; }
  .top-actions { gap: 3px; }
  .top-actions .primary-button { width: 42px; padding: 0; }
  .top-actions .primary-button span, .mobile-hidden { display: none !important; }
  .welcome { justify-content: center; padding: 18px 19px 34px; }
  .welcome-visual { height: 116px; transform: scale(.8); margin-bottom: -7px; }
  .welcome h1 { font-size: clamp(34px, 11vw, 48px); }
  .welcome-copy { font-size: 13px; line-height: 1.55; }
  .welcome-actions { width: min(360px, 100%); }
  .welcome-actions > button { flex: 1; padding-inline: 12px; }
  .feature-pills { display: none; }
  .book-stage { height: calc(100% - var(--dock-height)); padding: 12px 9px 3px; }
  .book-zoom-shell { width: 96vw; height: min(calc(100% - 40px), 800px); }
  .book-spine { display: none; }
  .page-arrow { display: none; }
  .gesture-tip { bottom: 5px; }
  .control-dock { height: 55px; bottom: max(9px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 18px); }
  .dock-group { padding-inline: 2px; }
  .dock-button { width: 38px; padding: 0; justify-content: center; }
  .zoom-controls > span { min-width: 34px; }
  .reset-zoom-button[hidden] { display: none !important; }
.reset-zoom-button { height: 36px; padding-inline: 8px; }
  .reset-zoom-button span { display: inline; }
  .app-shell.zoom-active .control-dock > .dock-group:first-child,
  .app-shell.zoom-active .fullscreen-control { display: none; }
  .thumbnail-grid { gap: 13px; padding: 15px; }
  .app-shell.immersive .book-stage { height: 100%; padding: 5px 7px 56px; }
  .app-shell.immersive .book-zoom-shell { width: 98vw; height: calc(100dvh - 60px); }
  .app-shell.immersive .control-dock { opacity: .75; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .app-shell.immersive .book-stage { padding: 3px 44px 48px; }
  .app-shell.immersive .book-zoom-shell { width: calc(100vw - 18px); height: calc(100dvh - 52px); }
  .app-shell.immersive .control-dock { height: 44px; bottom: 3px; padding-block: 3px; border-radius: 14px; }
  .app-shell.immersive .gesture-tip { display: none; }
  .app-shell.immersive .hd-badge { top: 5px; right: 7px; }
}

@media (max-height: 690px) and (min-width: 761px) {
  .welcome-visual { height: 110px; transform: scale(.78); margin-bottom: -5px; }
  .welcome h1 { font-size: 42px; }.welcome-copy { margin-top: 11px; }.welcome-actions { margin-top: 14px; }
  .drop-hint, .feature-pills { margin-top: 10px; }
}

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

@media (max-width: 360px) {
  .app-shell.zoom-active .page-navigation { display: none; }
  .app-shell.zoom-active .control-dock { max-width: calc(100vw - 12px); }
}
