:root {
  color-scheme: light;
  --canvas: #f7f7ef;
  --paper: #fffefa;
  --ink: #162b31;
  --muted: #4f625f;
  --line: #dce1d7;
  --teal: #173e3c;
  --teal-deep: #102e2d;
  --teal-soft: #e4eee6;
  --acid: #d9eb78;
  --warm: #8a4a30;
  --warm-soft: #f7e9d9;
  --focus: #9a462c;
  --radius: 16px;
  --edge: clamp(1rem, 4vw, 2.75rem);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; background: var(--canvas); }
body { min-width: 0; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--teal); text-underline-offset: .2em; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5.1vw, 4.45rem); font-weight: 750; letter-spacing: -.065em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.18rem); font-weight: 750; letter-spacing: -.045em; }
h3 { font-size: 1.14rem; letter-spacing: -.022em; }
h4 { font-size: 1rem; }
ul, ol { padding-inline-start: 1.3rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .svg-library { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { display: inline-block; flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: .65rem .9rem; transform: translateY(-150%); border-radius: 8px; background: var(--paper); font-weight: 700; }
.skip-link:focus { transform: none; }
.print-only { display: none; }
.muted { color: var(--muted); }

.app-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar, .app-view, .app-footer { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--edge); }
.topbar { display: grid; min-height: 81px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand-mark { flex: none; width: 43px; height: 43px; }
.brand strong { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.065em; }
.brand strong span { color: #477451; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .73rem; font-weight: 650; white-space: nowrap; }
.bottom-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.nav-link { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; padding: .42rem .75rem; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 700; line-height: 1.16; text-decoration: none; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { background: var(--teal-soft); color: var(--teal); }
.nav-link[aria-current]:not([aria-current="false"]), .nav-link.active, .nav-link.is-active { background: var(--teal); color: var(--paper); }
.header-status { justify-self: end; min-width: 0; color: var(--muted); font-size: .75rem; font-weight: 650; text-align: right; }
.header-status::before { display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: #668958; content: ""; }
.app-view { min-height: calc(100vh - 155px); padding-block: clamp(1.1rem, 3vw, 2rem) 3.25rem; }
.app-view:focus { outline: 0; }
.app-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.app-footer > :not(:first-child)::before { margin-inline-end: .7rem; content: "·"; }
.footer-brand { color: var(--ink); font-weight: 800; }
.footer-status { display: none; }
.status { position: fixed; z-index: 10; right: 1rem; bottom: 1rem; width: max-content; max-width: calc(100% - 2rem); padding: .7rem .9rem; border: 1px solid #4b6961; border-radius: 10px; background: var(--teal); color: var(--paper); font-size: .9rem; box-shadow: 0 6px 24px #172e2734; }
.status:empty { padding: 0; border: 0; clip-path: inset(50%); }

.loading-state { display: grid; min-height: 54vh; align-content: center; justify-items: center; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: .5rem; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.eyebrow .icon { width: 15px; height: 15px; }
.page-intro { margin-bottom: 1.35rem; }
.page-intro > p:not(.eyebrow), .lede { max-width: 60ch; margin-top: .55rem; color: var(--muted); font-size: clamp(.96rem, 1.6vw, 1.1rem); }
.explore-hero { display: grid; min-height: 335px; grid-template-columns: 1.03fr 1fr; overflow: hidden; border-radius: 21px; background: var(--teal-deep); color: var(--paper); }
.hero-copy { position: relative; z-index: 1; display: grid; min-width: 0; align-content: center; justify-items: start; padding: clamp(1.45rem, 4.2vw, 3.5rem); }
.hero-copy .eyebrow { margin-bottom: .75rem; color: var(--acid); }
.hero-copy h1, .hero-copy h2 { max-width: 12ch; font-size: clamp(2.25rem, 5.2vw, 4.75rem); font-weight: 760; letter-spacing: -.066em; line-height: .98; }
.hero-copy > p:not(.eyebrow) { max-width: 39ch; margin-top: .9rem; color: #e2eee7; font-size: clamp(.93rem, 1.5vw, 1.07rem); }
.hero-copy .actions, .hero-copy > .button { margin-top: 1.1rem; }
.hero-art { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 190px; overflow: hidden; background: #395e53; object-fit: cover; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art:empty:not(img) { background: repeating-linear-gradient(135deg, #3c6658, #3c6658 1px, transparent 1px, transparent 18px), #274d45; }
.explore-hero .button-primary { border-color: var(--acid); background: var(--acid); color: var(--teal-deep); }
.explore-hero .button-primary:hover { border-color: #edf5b4; background: #edf5b4; }
.explore-hero .button-quiet, .explore-hero .button-secondary { color: var(--paper); }
.explore-hero .button-quiet:hover, .explore-hero .button-secondary:hover { background: #31564d; }
.explore-hero .button-secondary { border-color: #739285; background: transparent; }
.explore-hero :focus-visible { outline-color: var(--acid); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .55rem; }
.button { display: inline-flex; min-width: 0; min-height: 44px; max-width: 100%; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--teal); font-size: .89rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.button .icon { width: 17px; height: 17px; }
.button-primary { border-color: var(--teal); background: var(--teal); color: var(--paper); }
.button-primary:hover { border-color: #265b54; background: #265b54; }
.button-secondary { border-color: var(--line); background: var(--paper); }
.button-secondary:hover { border-color: #a9bdb2; background: var(--teal-soft); }
.button-quiet:hover { background: var(--teal-soft); }
.button[aria-pressed="true"], .button.is-active { border-color: #adbdad; background: var(--teal-soft); color: var(--teal); }
.icon-button { display: inline-grid; flex: none; width: 44px; height: 44px; min-height: 44px; place-items: center; padding: 0; }
.chip { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; padding: .22rem .51rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: .72rem; font-weight: 750; line-height: 1.2; }
.chip .icon { width: 14px; height: 14px; }
.chip-accent { background: var(--acid); color: var(--teal-deep); }
.chip-warm { background: var(--warm-soft); color: var(--warm); }
.notice { padding: .85rem 1rem; border: 1px solid #cdddcf; border-radius: 12px; background: #edf2e8; color: var(--ink); font-size: .94rem; }
.notice p + p { margin-top: .4rem; }
.notice-warning, .notice-warm, .notice-error { border-color: #ead0b7; background: var(--warm-soft); color: #693820; }
.empty-state { display: grid; justify-items: start; gap: .5rem; padding: clamp(1rem, 3vw, 1.65rem); border: 1px dashed #bccabc; border-radius: var(--radius); background: #eef2e8; }
.empty-state p { max-width: 60ch; color: var(--muted); }
.empty-state > .icon { width: 1.55rem; height: 1.55rem; color: var(--teal); }

.section { margin-top: clamp(1.3rem, 3.5vw, 2.2rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .85rem; }
.section-heading > p:not(.eyebrow) { color: var(--muted); }
.results-count { color: var(--muted); font-size: .85rem; font-weight: 700; }
.filter-panel { display: grid; gap: .72rem; margin-top: 1.05rem; padding: clamp(.7rem, 2vw, 1.12rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem); gap: .6rem; }
.search-field { position: relative; display: block; min-width: 0; }
.search-field > .icon { position: absolute; z-index: 1; top: 50%; left: .75rem; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; min-height: 46px; padding: .55rem .8rem .55rem 2.35rem; border: 1px solid #bac6bb; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 1rem; }
.search-field input::placeholder { color: #5a6b64; opacity: 1; }
.level-field select { width: 100%; min-width: 0; min-height: 46px; padding: .55rem .55rem .55rem .7rem; border: 1px solid #bac6bb; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 1rem; }
.category-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .34rem .42rem; }
.category-chip { min-height: 40px; flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--teal); font-size: .82rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.category-chip:hover { border-color: #b5c6b8; background: var(--teal-soft); }
.category-chip[aria-pressed="true"], .category-chip[aria-current="true"], .category-chip.active, .category-chip.is-active { border-color: var(--teal); background: var(--teal); color: var(--paper); }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1rem); }
.guide-card { position: relative; display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.guide-card:hover { border-color: #b2c3b7; }
.guide-card-media { display: block; width: 100%; aspect-ratio: 1.75; overflow: hidden; background: var(--teal-soft); object-fit: cover; }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-media:empty:not(img) { background: repeating-linear-gradient(135deg, #c9dcca, #c9dcca 1px, transparent 1px, transparent 16px), var(--teal-soft); }
.guide-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: .45rem; padding: clamp(.7rem, 2vw, 1rem); }
.guide-card-title { font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 750; letter-spacing: -.027em; line-height: 1.17; }
.guide-card-title a { color: inherit; text-decoration: none; }
.guide-card-title a:hover { text-decoration: underline; }
.guide-card-meta, .guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .42rem; color: var(--muted); font-size: .79rem; line-height: 1.32; }
.guide-card-meta .icon, .guide-meta .icon { width: 14px; height: 14px; }
.guide-card-body > p:not(.guide-card-title, .guide-card-meta, .eyebrow) { color: var(--muted); font-size: .9rem; }
.guide-card-body > .eyebrow { margin: 0; }
.guide-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; padding-top: .2rem; }
.guide-card-actions .button-quiet { margin-inline-start: -7px; padding-inline: 7px; }
.guide-card .icon-button[aria-pressed="true"] .icon { fill: var(--acid); }

.guide-header { display: grid; grid-template-columns: minmax(0, 1.11fr) minmax(0, .9fr); align-items: center; gap: 1rem clamp(1.25rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.guide-header > :not(.guide-cover, .guide-summary) { grid-column: 1 / -1; }
.guide-cover { grid-column: 2; grid-row: 1; width: 100%; height: auto; max-height: 345px; aspect-ratio: 1.55; overflow: hidden; border-radius: 17px; background: var(--teal-soft); object-fit: cover; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-summary { grid-column: 1; grid-row: 1; min-width: 0; }
.guide-summary h1 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.guide-summary > .button-quiet { margin: 0 0 .45rem -.6rem; padding-inline: .6rem; }
.guide-summary > p:not(.eyebrow) { max-width: 62ch; margin-top: .65rem; color: var(--muted); }
.guide-summary > .guide-meta, .guide-summary > .actions { margin-top: .7rem; }
.guide-summary .button { padding-inline: 10px; }
.chapter-nav { position: sticky; z-index: 3; top: 0; top: env(safe-area-inset-top); display: flex; gap: .32rem; align-items: center; overflow-x: auto; margin: .85rem 0; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); scrollbar-color: #b9cbbb transparent; scrollbar-width: thin; }
.chapter-nav ol { display: flex; gap: .32rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.chapter-nav :is(a, button) { display: inline-flex; flex: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 4px; padding: 5px 9px; border: 1px solid transparent; border-radius: 7px; background: var(--canvas); color: var(--teal); font-size: .81rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; }
.chapter-nav :is(a, button):hover { border-color: #b5c6b8; background: var(--teal-soft); }
.chapter-nav :is(a, button):focus-visible, .category-chips :focus-visible { outline-offset: -2px; }
.chapter-nav [aria-current]:not([aria-current="false"]), .chapter-nav [aria-pressed="true"], .chapter-nav .active, .chapter-nav .is-active { border-color: var(--teal); background: var(--teal); color: var(--paper); }
.chapter-nav button > span { display: grid; min-width: 1.3rem; min-height: 1.3rem; place-items: center; padding-inline: 2px; border-radius: 5px; background: var(--teal-soft); color: var(--teal); font-size: .71rem; }
.chapter-nav button[aria-current] > span { background: var(--acid); color: var(--teal-deep); }
.guide-panels { display: grid; gap: .8rem; }
.guide-panel { min-width: 0; padding: clamp(.9rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-margin-top: calc(72px + env(safe-area-inset-top)); }
.panel-heading { margin-bottom: .7rem; }
.panel-number { display: inline-flex; align-items: center; min-height: 1.55rem; margin-bottom: .65rem; padding-inline: .4rem; border-radius: 5px; background: var(--acid); color: var(--teal-deep); font-size: .71rem; font-weight: 800; letter-spacing: .065em; }
.panel-content { max-width: 77ch; }
.panel-content > * + * { margin-top: .75rem; }
.panel-content ul, .panel-content ol { margin-block: .55rem; }
.panel-content li + li { margin-top: .36rem; }
.panel-content li::marker { color: var(--teal); font-weight: 800; }
.panel-content blockquote { margin-inline: 0; padding: .55rem 0 .55rem .8rem; border-inline-start: 3px solid #6a8d69; color: var(--muted); }
.safety-note { border-color: #ead0b7; background: var(--warm-soft); color: #693820; }
.repair-steps { display: grid; gap: .7rem; padding-inline-start: 1.65rem; }
.repair-steps strong { color: var(--teal); }
.repair-steps p { margin-top: .22rem; }
.repair-steps small { display: block; margin-top: .25rem; color: var(--muted); font-size: .86rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .75rem; margin-top: .8rem; }
.pager > span { color: var(--muted); font-size: .81rem; font-weight: 700; }
.download-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.download-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .7rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.download-list li > a { font-weight: 700; }
.notice > h2 { margin-bottom: .42rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.notice > .actions { margin-top: .65rem; }

.storyboard { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.storyboard-stage { position: relative; overflow: hidden; min-height: 170px; background: var(--teal-deep); color: var(--paper); }
.storyboard-stage img { width: 100%; max-height: 360px; object-fit: cover; }
.storyboard-frame { display: grid; grid-template-columns: minmax(92px, .32fr) minmax(0, 1fr); align-items: stretch; gap: clamp(.75rem, 2vw, 1.2rem); }
@keyframes frame-in { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.storyboard-stage .storyboard-frame:not(img) { padding: clamp(.9rem, 3vw, 1.5rem); }
.scene-art { position: relative; display: grid; min-height: 120px; place-items: center; overflow: hidden; border: 1px solid #64877a; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 17px, #d4ede320 17px 18px), repeating-linear-gradient(0deg, transparent 0 17px, #d4ede320 17px 18px), #234c43; color: var(--acid); }
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .53; }
.scene-index { position: absolute; top: .3rem; left: .45rem; color: #d9e9da; font-size: .7rem; font-weight: 750; letter-spacing: .09em; }
.scene-symbol, .scene-copy { animation: frame-in .24s ease-out both; }
.scene-symbol { position: relative; display: grid; width: clamp(2.8rem, 6vw, 4.25rem); aspect-ratio: 1; place-items: center; border: 1px solid #b1cb9280; border-radius: 50%; background: #183e35; }
.scene-symbol .icon { width: 56%; height: 56%; stroke-width: 1.35; }
.storyboard-stage .eyebrow { color: var(--acid); }
.storyboard-stage h3 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.storyboard-stage p { margin-top: .5rem; }
.storyboard-stage .scene-copy .eyebrow { margin-top: 0; }
.storyboard-cue { padding: .45rem .6rem; border-inline-start: 2px solid var(--acid); background: #244b41; font-size: .86rem; }
.storyboard-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .55rem .7rem; }
.storyboard-steps { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: .3rem .7rem .7rem; list-style: none; }
.storyboard-step { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--teal); font-size: .84rem; font-weight: 750; }
.storyboard-step[aria-current]:not([aria-current="false"]), .storyboard-step[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--paper); }

@media (max-width: 900px) {
  .explore-hero { min-height: 270px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  :root { --edge: max(13px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  html { scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; min-height: 63px; padding-top: env(safe-area-inset-top); }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 1.28rem; }
  .brand small { margin-top: 2px; font-size: .69rem; }
  .header-status { margin-inline-start: auto; font-size: .69rem; }
  .bottom-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px max(7px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--paper); box-shadow: 0 -3px 20px #142e2311; }
  .nav-link { flex-direction: column; gap: 3px; min-height: 52px; padding: 4px 3px; overflow-wrap: anywhere; font-size: .73rem; text-align: center; }
  .nav-link[aria-current]:not([aria-current="false"]), .nav-link.active, .nav-link.is-active { background: var(--teal-soft); color: var(--teal); }
  .nav-link .icon { width: 20px; height: 20px; }
  .app-view { min-height: calc(100vh - 179px); padding-bottom: 1.55rem; }
  .app-footer { padding-bottom: calc(79px + env(safe-area-inset-bottom)); }
  .status { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .explore-hero { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .hero-copy { padding: 1.2rem 1rem 1.3rem; }
  .hero-copy h1, .hero-copy h2 { max-width: 15ch; font-size: clamp(2.22rem, 9.4vw, 3.85rem); }
  .hero-art { min-height: 0; height: auto; aspect-ratio: 2.15; }
  .hero-art img { height: 100%; }
  .filter-panel { margin-top: .75rem; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.15rem; padding: .1rem .15rem .25rem; scrollbar-color: #b9cbbb transparent; scrollbar-width: thin; }
  .category-chip { min-height: 44px; }
  .guide-header { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .guide-cover, .guide-summary { grid-column: 1; grid-row: auto; }
  .guide-cover { max-height: 235px; aspect-ratio: 2.05; }
  .guide-summary > .actions .button { padding-inline: 8px; font-size: .84rem; }
  .guide-card-body > p:not(.guide-card-title, .guide-card-meta, .eyebrow) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .filter-row { grid-template-columns: minmax(0, 1fr); }
  .storyboard-frame { grid-template-columns: minmax(65px, .28fr) minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .header-status { display: none; }
  .footer-status { display: inline; }
  .guide-card-media { aspect-ratio: 1.5; }
  .guide-card-body { padding: .65rem; }
  .guide-card-actions .button { padding-inline: 6px; font-size: .81rem; }
}

@media (max-width: 345px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-card-media { aspect-ratio: 1.82; }
  .storyboard-frame { grid-template-columns: minmax(0, 1fr); }
  .scene-art { min-height: 68px; }
}

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

@media print {
  @page { margin: 13mm; }
  html, body { min-height: auto; background: #fff; color: #111; }
  .app-view { width: 100%; min-height: 0; max-width: none; padding: 0; }
  .app-header, .app-footer, .skip-link, .status, .no-print, .actions, .chapter-nav, .pager, .storyboard-controls, .storyboard-steps, button, nav { display: none !important; }
  .print-only { display: revert; }
  .guide-header { display: block; margin: 0 0 1rem; }
  .guide-summary h1 { color: #111; font-size: 26pt; }
  .guide-cover { display: none; }
  .guide-panels { display: block; }
  .guide-panel, .guide-panel[hidden] { display: block !important; margin: .55rem 0; padding: .5rem 0; border: 0; border-top: 1px solid #aaa; border-radius: 0; background: #fff; }
  .panel-heading, h1, h2, h3 { break-after: avoid; }
  h2 { font-size: 15pt; }
  .panel-number, .chip, .notice, .storyboard-stage { background: #fff; color: #111; }
  .panel-number { min-width: 1.6rem; min-height: 1.6rem; border: 1px solid #aaa; }
  .storyboard, .notice, li { break-inside: avoid; }
  .storyboard-stage { min-height: 0; }
  a { color: #111; }
}
