/* 以暗金控制台和《墨渊》的雨夜剧照统一作品集的视觉语言。 */
:root {
  color-scheme: dark;
  --bg: #10100e;
  --band: #141410;
  --panel: #191915;
  --well: #10100d;
  --line: #38362d;
  --edge: #5b5140;
  --ink: #f3eee2;
  --muted: #bbb3a3;
  --gold: #e0b87e;
  --gold-dark: #a88352;
  --accent-surface: #2c2419;
  --heading: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", STSong, SimSun, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { color: #17120a; background: var(--gold); }

.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 48px, 1240px); margin-inline: auto; }
.mono { font: .75rem/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; z-index: 10; inset: 10px auto auto 10px; transform: translateY(-150%); padding: 8px 14px; background: var(--gold); color: var(--bg); }
.skip-link:focus { transform: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.actions.compact { gap: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px;
  font-size: .86rem; font-weight: 550; text-decoration: none; line-height: 1.25;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.button.primary { background: var(--gold); color: #19140e; border-color: var(--gold); }
.button.primary:hover { background: #f1ca92; border-color: #f1ca92; }
.button.outline, .icon-button { background: #1c1b16; color: var(--ink); border-color: var(--edge); }
.button.outline:hover:not(:disabled), .icon-button:hover { background: #342b1e; border-color: var(--gold-dark); }
.icon-button { width: 42px; padding: 0; }
.text-button { min-height: 33px; padding: 4px 8px; color: var(--gold); border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: .79rem; white-space: nowrap; }
.text-button:hover { background: var(--accent-surface); }
.text-button:disabled:hover { background: transparent; }

.site-header { position: sticky; z-index: 4; top: 0; background: #10100ef5; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 31px/.95 Georgia, serif; color: var(--ink); }
.brand-mark { display: grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; gap: 3px; transform: rotate(45deg); }
.brand-mark i { display: block; background: var(--gold); }
.brand-mark i:last-child { background: transparent; border: 1px solid var(--gold); }
.site-nav { display: flex; gap: clamp(12px, 3vw, 42px); align-items: center; }
.site-nav a { min-height: 42px; display: flex; align-items: center; text-decoration: none; font-size: .86rem; color: var(--muted); }
.site-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* 大幅剧照采用本地预告图作为底层，保证图片等待期间首屏仍可读。 */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image, .hero-image::after, .hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -1; background: #131b18 url("assets/videos/poster-01.jpg") 76% 37% / clamp(320px, 58vw, 870px) auto no-repeat; }
.hero-image img { object-fit: cover; object-position: 62% 48%; }
.hero-image::after {
  content: ""; pointer-events: none;
  background: linear-gradient(90deg, #100f0def 3%, #100f0de0 27%, #14110b66 54%, #15100a00 83%),
    linear-gradient(0deg, #100f0e 0%, #100f0ebb 19%, #12110e00 53%),
    radial-gradient(ellipse at 70% 32%, #9f681c25, transparent 68%);
}
.hero-layout { min-height: min(720px, calc(100svh - 66px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: center; gap: 28px; padding-block: clamp(60px, 8vw, 125px) 31px; }
.hero-copy { max-width: 720px; }
.case-slug, .meta-line { color: var(--gold); font-size: .83rem; font-weight: 550; }
.case-slug { display: flex; align-items: center; gap: 9px; }
.case-slug span { width: 18px; height: 1px; background: var(--gold); }
h1, h2 { font-family: var(--heading); font-weight: 600; line-height: 1.12; }
h1 { margin-block: 16px 20px; font-size: clamp(44px, 5.5vw, 79px); letter-spacing: -.045em; }
h1 span { display: block; }
h1 .hero-brand { color: var(--gold); font: 400 .57em/1.05 Georgia, serif; letter-spacing: -.025em; margin-bottom: .21em; }
.hero-lead { max-width: 34em; color: #e1d8c7; font-size: .96rem; line-height: 1.85; }
.hero-actions { margin-top: 24px; }
.hero-actions .button { min-height: 46px; padding-inline: 15px; }
.hero-actions .outline { background: #191710c9; }
.hero-credit { align-self: end; text-align: right; color: #f3e4cd; font-size: .78rem; line-height: 1.7; padding-bottom: 3px; white-space: nowrap; text-shadow: 0 1px 5px #000; }
.hero-credit span { display: inline-block; width: 12px; vertical-align: middle; margin-right: 6px; border-top: 1px solid var(--gold); }
.hero-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #726347a6; background: #171611df; border-radius: var(--radius); }
.hero-metrics > div { padding: 14px 22px; }
.hero-metrics > div + div { border-left: 1px solid var(--line); }
.hero-metrics dt { font-size: .76rem; color: var(--muted); }
.hero-metrics dd { color: var(--gold); font: 400 clamp(26px, 3.2vw, 43px)/1.15 Georgia, var(--heading); margin-top: 3px; font-variant-numeric: tabular-nums; }
.hero-metrics small { font: 500 .77rem/1.35 var(--body); color: var(--ink); white-space: nowrap; }

.section { padding-block: clamp(50px, 7.4vw, 101px); }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(23px, 3vw, 36px); }
.section-index { color: var(--gold); font: .82rem/1.4 var(--mono); margin-bottom: 12px; display: flex; gap: 11px; align-items: center; }
.section-index span { color: var(--muted); font: 500 .81rem/1.4 var(--body); border-inline-start: 1px solid var(--edge); padding-inline-start: 10px; }
.section-heading h2 { font-size: clamp(31px, 4.3vw, 52px); letter-spacing: -.035em; }
.section-heading > p { max-width: 25em; color: var(--muted); font-size: .9rem; line-height: 1.75; }
h3 { font-weight: 600; line-height: 1.4; }

.workbench { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius); }
.canvas-panel, .inspector { display: flex; flex-direction: column; min-width: 0; background: var(--panel); }
.inspector { border-left: 1px solid var(--edge); }
.panel-bar { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.panel-bar div { display: inline-flex; align-items: center; gap: 8px; }
.panel-bar strong { color: var(--ink); font-size: .85rem; font-weight: 550; }
.panel-bar .icon, .signal { color: var(--gold); }
.signal, .canvas-foot i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--gold); }
.graph {
  position: relative; flex: 1; display: grid; align-items: center; min-width: 0; min-height: 385px;
  padding: 28px; background: radial-gradient(circle, #4b4434 1px, transparent 1.2px) 0 0/20px 20px, #141510;
}
.graph-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.graph-links path { fill: none; stroke: #826a45; stroke-width: 1.5; }
.graph-links path.highlight { stroke: var(--gold); stroke-width: 2; }
.graph-nodes { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "n1 n2" "n4 n3" "n5 n6"; gap: 36px 39px; }
.graph-node { position: relative; padding: 12px 13px; min-height: 92px; display: grid; width: 100%; text-align: left; align-content: center; gap: 4px; background: #24231b; border: 1px solid #665539; border-radius: 7px; line-height: 1.28; transition: background-color .16s, border-color .16s; }
.graph-node:nth-child(1) { grid-area: n1; }
.graph-node:nth-child(2) { grid-area: n2; }
.graph-node:nth-child(3) { grid-area: n3; }
.graph-node:nth-child(4) { grid-area: n4; }
.graph-node:nth-child(5) { grid-area: n5; }
.graph-node:nth-child(6) { grid-area: n6; }
.graph-node:hover, .graph-node[aria-pressed="true"] { background: #31281b; border-color: var(--gold); }
.graph-node[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--gold); }
.node-meta { display: flex; align-items: center; gap: 8px; color: var(--gold); font: .71rem/1.25 var(--mono); }
.node-meta > :last-child { color: var(--muted); }
.graph-node strong { font-size: .91rem; font-weight: 600; }
.graph-node small { font-size: .74rem; color: var(--muted); }
.canvas-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.canvas-foot i { margin-right: 5px; }
.inspect-body { padding: 17px; }
.inspect-body h3 { font-size: 1.17rem; }
.inspect-body > p { margin-top: 4px; color: var(--muted); font-size: .82rem; min-height: 2.6em; }
.inspect-params { display: flex; flex-wrap: wrap; gap: 7px; align-items: start; margin-block: 8px 12px; }
.inspect-params > div { display: flex; align-items: baseline; gap: 5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: .72rem; }
.inspect-params dt { color: var(--muted); }
.inspect-params dd { color: var(--gold); }
.code-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--well); }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 2px 10px; border-bottom: 1px solid var(--line); gap: 4px; color: var(--muted); }
.code-toolbar > span { min-width: 0; overflow-wrap: anywhere; }
pre { margin: 0; tab-size: 2; }
pre, code, textarea { font: .77rem/1.65 var(--mono); }
.code-panel pre { height: clamp(156px, 17vw, 240px); overflow: auto; padding: 12px; }
.inspect-body .actions { margin-top: 12px; }
.syntax-key { color: #e8bd83; }
.syntax-string { color: #b2c6a0; }
.syntax-number { color: #e8a89b; }
.syntax-comment { color: #a29a88; }

.asset-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.asset-stack { display: grid; gap: 16px; }
.asset-card, .comparison, .repair-spec, .delivery-panel, .board, .reel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.asset-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #24251f; aspect-ratio: 1376 / 768; overflow: hidden; }
.asset-open:disabled { opacity: 1; }
.asset-open:focus-visible { outline-offset: -4px; }
.image-slot img, .compare-image img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; }
.image-state { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 12px; font-size: .83rem; background: #25251c; }
.studio-image:not(.is-ready), .hero-image img.is-missing { visibility: hidden; }
.expand-indicator { position: absolute; display: grid; place-items: center; right: 10px; bottom: 10px; width: 36px; height: 36px; border: 1px solid #baa57f9c; border-radius: 5px; background: #14130de8; color: #f7e5c6; }
.asset-open:hover .expand-indicator { border-color: var(--gold); }
.asset-open:disabled .expand-indicator { display: none; }
.asset-card figcaption { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: 13px 15px; color: var(--muted); font-size: .75rem; }
.asset-card h3 { margin-top: 2px; color: var(--ink); font-size: clamp(.98rem, 1.9vw, 1.2rem); }
.asset-id { display: inline-block; color: var(--gold); }
.character-notes { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 15px; }
.tag-list, .palette { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 4px 8px; border: 1px solid var(--edge); border-radius: 5px; font-size: .75rem; }
.palette { gap: 7px 15px; }
.palette span { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; color: var(--muted); }
.palette i { width: 17px; height: 17px; display: inline-block; border-radius: 50%; background: var(--swatch); border: 1px solid #9b8d75; }
.recipe { border-top: 1px solid var(--line); padding-top: 7px; }
.recipe summary { width: fit-content; padding-block: 7px; cursor: pointer; color: var(--gold); font-size: .86rem; }
.recipe p { font-size: .84rem; color: var(--muted); margin: 4px 0 12px; }
.scene-recipe { padding: 0 15px 8px; }

.repair-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.compare-stage { --position: 50%; position: relative; isolation: isolate; aspect-ratio: 1376 / 768; background: #20211b; }
.compare-stage:focus-within { outline: 2px solid var(--gold); outline-offset: -3px; }
.compare-image { position: absolute; inset: 0; }
.compare-image.before { z-index: 1; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare-label { position: absolute; z-index: 2; top: 10px; color: var(--ink); background: #13130ddd; border: 1px solid var(--edge); border-radius: 5px; padding: 3px 8px; font-size: .76rem; pointer-events: none; }
.compare-label.left { left: 9px; }
.compare-label.right { right: 9px; }
.compare-divider { pointer-events: none; z-index: 2; position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; transform: translateX(-50%); background: var(--gold); display: grid; place-items: center; }
.compare-divider span { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -19px; border: 1px solid var(--gold); border-radius: 50%; background: #1d1a14; color: var(--gold); font: 20px/1 var(--mono); }
.compare-stage input {
  appearance: none; -webkit-appearance: none; position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0;
  background: transparent; border: 0; border-radius: 0; cursor: ew-resize; touch-action: pan-y; outline: none;
}
.compare-stage input::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; background: transparent; }
.compare-stage input::-moz-range-thumb { width: 1px; height: 100%; background: transparent; border: 0; }
.comparison figcaption { padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .79rem; }
.comparison output { color: var(--gold); font: .76rem/1.65 var(--mono); }
.repair-spec { padding: clamp(14px, 2.2vw, 26px); }
.repair-spec h3, .delivery-panel h3 { font-family: var(--heading); font-size: clamp(19px, 2.6vw, 28px); margin-top: 5px; }
.repair-params { display: grid; gap: 0; margin-top: 12px; }
.repair-params div { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.repair-params div:last-child { border-bottom: 1px solid var(--line); }
.repair-params dt { color: var(--muted); font-size: .77rem; }
.repair-params dd { color: var(--gold); text-align: right; font: .78rem/1.55 var(--mono); }
.repair-spec p:not(.meta-line) { font-size: .8rem; color: var(--muted); margin: 10px 0 13px; }

.board-toolbar, .board-subbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.board-subbar { background: #1e1d17; }
.filter-buttons, .view-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.filter-buttons button, .view-toggle button { min-height: 40px; border: 1px solid transparent; border-radius: 5px; background: transparent; padding-inline: 9px; color: var(--muted); font-size: .82rem; }
.filter-buttons button:hover, .view-toggle button:hover { color: var(--ink); }
.filter-buttons button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { background: var(--accent-surface); border-color: var(--edge); color: var(--gold); }
.view-toggle { border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.view-toggle button { min-height: 34px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--edge); border-radius: 6px; padding-inline: 10px; background: var(--well); color: var(--muted); flex: 0 1 240px; }
.search:focus-within { border-color: var(--gold); }
.search input { width: 100%; min-width: 0; height: 40px; padding-inline: 2px; border: 0; background: transparent; font-size: max(1rem, .86rem); outline: none; color: var(--ink); }
.search input::placeholder { color: var(--muted); font-size: .83rem; }
.result-count { color: var(--gold); font-size: .82rem; }
.shot-results { min-height: 100px; }
.shot-results[aria-busy="true"] { background: linear-gradient(#24231d, #24231d) 16px 27px / min(70%, 590px) 10px no-repeat, linear-gradient(#24231d, #24231d) 16px 50px / min(50%, 490px) 10px no-repeat; }
.table-wrap { overflow-x: auto; }
.shot-table { border-collapse: collapse; width: 100%; min-width: 780px; text-align: left; font-size: .82rem; }
.shot-table th, .shot-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.shot-table th { color: var(--muted); white-space: nowrap; font-weight: 550; background: #1f1e18; }
.shot-table tbody tr:last-child td { border-bottom: 0; }
.shot-table tbody tr:hover, .shot-table tbody tr:focus-within { background: #232017; }
.shot-table .text-button { text-align: left; padding-left: 0; font-weight: 550; }
.shot-table .shot-open { white-space: normal; }
.shot-number { color: var(--gold); white-space: nowrap; }
.shot-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.shot-card { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #1e1e18; border-radius: 7px; }
.shot-card h3 { margin: 5px 0 6px; font-size: 1rem; }
.shot-card p { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.shot-card .actions { margin-top: 10px; }
.shot-card .text-button { border-color: var(--line); }
.empty-state { display: grid; justify-items: start; gap: 9px; padding: 20px 15px; color: var(--muted); }
.empty-state strong { color: var(--ink); font-weight: 550; }

.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.screen { aspect-ratio: 4 / 5; background: #0a0a08; }
.screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.reel-caption { padding: 13px; }
.reel-caption .mono { color: var(--gold); }
.reel-caption h3 { font-size: clamp(.92rem, 1.5vw, 1.06rem); margin-block: 4px 6px; }
.reel-caption a { color: var(--muted); font-size: .8rem; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 36px; }
.reel-caption a:hover { color: var(--gold); }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.delivery-panel { padding: 18px; }
.delivery-panel dl { margin-top: 13px; }
.delivery-panel dl > div { padding: 7px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(80px, 8rem) 1fr; gap: 10px; font-size: .83rem; }
.delivery-panel dt { color: var(--ink); }
.delivery-panel dd { color: var(--muted); }
.file-list { border-block: 1px solid var(--line); }
.file-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px 0; }
.file-row + .file-row { border-top: 1px solid var(--line); }
.file-row > div:first-child { display: grid; grid-template-columns: 57px minmax(0, 1fr); gap: 1px 10px; align-items: center; }
.file-format { grid-row: span 2; color: var(--gold); font: .79rem/1.6 var(--mono); border-right: 1px solid var(--line); }
.file-row h3 { font-size: .96rem; }
.file-row small { color: var(--muted); font-size: .77rem; }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding-block: 22px; color: var(--muted); font-size: .83rem; }
.footer a { margin-left: auto; color: var(--gold); text-underline-offset: 4px; }

body:has(dialog[open]) { overflow: hidden; }
.dialog { max-height: 90dvh; width: min(860px, 100% - 28px); padding: 0; border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); color: var(--ink); overflow: auto; }
.dialog::backdrop { background: #080806db; }
.dialog-head, .dialog-foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--panel); }
.dialog-head { position: sticky; top: 0; z-index: 1; flex-wrap: nowrap; }
.dialog-head h2 { font: 600 clamp(1rem, 3vw, 1.28rem)/1.4 var(--body); min-width: 0; overflow-wrap: anywhere; }
.dialog-foot { border-bottom: 0; border-top: 1px solid var(--line); justify-content: start; }
.dialog-foot output { color: var(--gold); font: .8rem/1.5 var(--mono); }
.dialog-code { background: var(--well); overflow: auto; min-height: 128px; max-height: 62dvh; padding: 14px; }
.lightbox { width: min(1420px, 100% - 24px); }
.lightbox-stage { max-height: calc(90dvh - 140px); overflow: auto; background: #10100c; scrollbar-color: var(--edge) var(--well); }
.lightbox-stage img { margin: auto; max-width: none; width: var(--art-width, 100%); max-height: none; height: auto; }
.lightbox-stage:focus-visible { outline-offset: -3px; }
.shot-detail { padding: 15px; }
.shot-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.shot-detail dl > div { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 5px; padding: 8px; font-size: .85rem; }
.shot-detail dt { color: var(--gold); font-size: .77rem; }
.shot-detail h3 { margin: 14px 0 7px; font-size: .98rem; }
.prompt-box { border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin-top: 8px; }
.prompt-box p { color: var(--muted); margin-bottom: 7px; font-size: .87rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.shot-detail pre { padding: 10px; overflow: auto; background: var(--well); border-radius: 6px; }
.copy-fallback { display: grid; gap: 8px; padding: 16px; }
.copy-fallback textarea { width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--edge); padding: 9px; border-radius: 5px; resize: vertical; }
.toast { position: fixed; z-index: 7; bottom: max(14px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); max-width: calc(100% - 28px); padding: 9px 14px; border: 1px solid var(--gold-dark); border-radius: 6px; background: #2c2419; color: var(--ink); font-size: .84rem; pointer-events: none; }
.toast:empty { opacity: 0; }

@media (max-width: 900px) {
  .hero-layout { min-height: 570px; }
  .graph { padding-inline: 17px; }
  .graph-nodes { gap: 32px 22px; }
  .graph-node { padding-inline: 9px; }
  .inspect-body { padding: 12px; }
  .repair-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { scroll-padding-top: 68px; }
  .shell { width: min(100% - 32px, 1240px); }
  .header-inner { min-height: 57px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 16px 12px; border-bottom: 1px solid var(--edge); background: #161610;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-inline: 8px; }
  .hero-layout { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 13px; padding-top: 188px; padding-bottom: 16px; }
  .hero-image img { object-position: 65% 15%; height: 370px; }
  .hero-image { background-size: 100% auto; background-position: 50% 0; }
  .hero-image::after { background: linear-gradient(0deg, #100f0e 7%, #100f0e 39%, #100f0edf 58%, #100f0e42 80%, #100f0e00); }
  .hero-copy { grid-row: 1; }
  .hero-credit { grid-row: 2; justify-self: end; padding: 0; }
  .hero-credit br { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics > div { padding: 9px 12px; }
  .hero-metrics > div:nth-child(odd) { border-left: 0; }
  .hero-metrics > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  h1 { font-size: clamp(35px, 9.4vw, 55px); margin-block: 9px 13px; }
  .hero-lead { font-size: .88rem; }
  .hero-actions { margin-top: 15px; }
  .section-heading { flex-direction: column; align-items: start; gap: 10px; }
  .section-heading > p { max-width: 34em; }
  .workbench, .asset-grid, .repair-grid, .delivery-grid { grid-template-columns: minmax(0, 1fr); }
  .inspector { border-left: 0; border-top: 1px solid var(--edge); }
  .asset-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .asset-stack figcaption { padding: 8px; flex-wrap: wrap; align-items: start; }
  .graph { min-height: 0; padding-block: 18px; }
  .graph-nodes { gap: 22px 19px; }
  .graph-node { min-height: 83px; }
  .shot-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-row .actions { margin-left: 67px; }
}
@media (max-width: 450px) {
  .header-package { min-height: 38px; }
  .board-toolbar, .board-subbar, .shot-card-grid { padding: 9px; }
  .filter-buttons { gap: 1px; }
  .filter-buttons button { padding-inline: 6px; }
  .search { flex-basis: 100%; }
  .shot-card-grid { grid-template-columns: minmax(0, 1fr); }
  .reel-grid { gap: 8px; }
  .reel-caption { padding: 9px; }
  .shot-detail dl { grid-template-columns: minmax(0, 1fr); }
  .repair-params div { gap: 6px; }
  .dialog-head, .dialog-foot { padding: 8px 10px; }
  .dialog-foot .button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
