/* ============================================================
   AI 漫剧存档库 — vault
   mode: Data UI / editorial showcase · single accent
   ============================================================ */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f5f3ef;
  --line: #e8e3da;
  --line-soft: #f1ede6;
  --ink: #14171e;
  --ink-2: #3b4252;
  --muted: #7d7a72;
  --accent: #f43f5e;
  --accent-ink: #b4123a;
  --accent-soft: rgba(244, 63, 94, 0.08);
  --dark: #17161d;
  --dark-2: #201f29;
  --dark-line: #2e2d3a;
  --dark-text: #eceaf0;
  --dark-muted: #9c98a8;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(20, 23, 30, 0.04);
  --shadow-lift: 0 10px 30px -12px rgba(20, 23, 30, 0.18);
  --sans: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 420px at 12% -6%, rgba(244, 63, 94, 0.05), transparent 70%),
    radial-gradient(680px 400px at 92% 2%, rgba(244, 63, 94, 0.04), transparent 70%);
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.prose { max-width: 660px; }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.22; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 23px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.lead { font-size: 16px; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 12.5px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec-head .label {
  display: flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.sec-head .label svg { width: 15px; height: 15px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 560px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 247, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.brand small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-size: 13.5px; color: var(--ink-2); padding: 7px 11px;
  border-radius: 8px; transition: background .18s, color .18s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav .pill {
  border: 1px solid var(--line); background: var(--surface); font-weight: 500;
  box-shadow: var(--shadow);
}
.nav .pill:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 40px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 18px 0 0; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 14px; max-width: 52ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat i { font-style: normal; font-size: 12px; color: var(--accent); margin-left: 3px; }

/* filmstrip */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 28px; }
.strip figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strip figure:hover img { transform: scale(1.06); }
.strip figcaption {
  position: absolute; inset: auto 0 0 0; padding: 14px 8px 6px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .06em; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); white-space: nowrap;
}
.pill.done { color: #047857; border-color: rgba(16, 185, 129, .34); background: rgba(16, 185, 129, .07); }
.pill.wip { color: #a16207; border-color: rgba(245, 158, 11, .38); background: rgba(245, 158, 11, .08); }
.pill.risk { color: var(--accent-ink); border-color: rgba(244, 63, 94, .32); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- project cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #ddd6ca; }
.card .cover { position: relative; aspect-ratio: 16 / 9; background: var(--dark-2); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover .pill { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(8px); background: rgba(255, 255, 255, .92); }
.card .cover .tagline {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
}
.card .body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .body h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .body h3 span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.card .body p { font-size: 13.5px; color: var(--ink-2); flex: 1; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.metrics div { background: var(--surface); padding: 8px 10px; }
.metrics dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.metrics dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 9px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: transform .16s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(20, 23, 30, .6); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

/* ---------- dark screening panel ---------- */
.theatre { background: var(--dark); color: var(--dark-text); border-radius: 18px; padding: 20px; margin-top: 20px; }
.theatre video { width: 100%; border-radius: 10px; display: block; background: #000; aspect-ratio: 16 / 9; }
.theatre .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; font-family: var(--mono); font-size: 11.5px; color: var(--dark-muted); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(16, 15, 21, .58); backdrop-filter: blur(4px);
  padding: 24px; overflow-y: auto;
}
.modal.open { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  max-width: 880px; margin: 0 auto; background: var(--bg); border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); overflow: hidden;
}
.sheet-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: rgba(250, 249, 247, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { flex: 1; }
.sheet-head .sub { font-size: 12.5px; color: var(--muted); }
.icon-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; transition: background .18s, border-color .18s;
}
.icon-btn:hover { border-color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
.sheet-body { padding: 20px; display: flex; flex-direction: column; gap: 22px; }

.block { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.block > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.block > header h4 { font-size: 13px; }
.block .inner { padding: 14px; }
.pre {
  white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.75; color: var(--ink-2); margin: 0; max-height: 380px; overflow-y: auto;
}
.takes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.takes li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.takes li::before { content: ''; flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

.qa { width: 100%; border-collapse: collapse; font-size: 13px; }
.qa th, .qa td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
.qa th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.qa td:last-child { color: #047857; font-family: var(--mono); font-size: 12px; }

.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frames figure { margin: 0; border-radius: 9px; overflow: hidden; background: var(--surface-2); position: relative; aspect-ratio: 16/10; cursor: zoom-in; }
.frames img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.frames figure:hover img { transform: scale(1.07); }
.frames figcaption {
  position: absolute; inset: auto 0 0 0; padding: 16px 8px 6px; font-size: 10.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); line-height: 1.35;
}

/* ---------- shot table ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); transition: all .18s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.shots { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; }
table.shots th {
  text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.shots td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: top; }
table.shots tr { cursor: pointer; transition: background .16s; }
table.shots tbody tr:hover { background: var(--surface-2); }
table.shots tbody tr.open { background: var(--accent-soft); }
table.shots .no { font-family: var(--mono); color: var(--accent); font-size: 12px; white-space: nowrap; }
table.shots th:first-child, table.shots td:first-child { padding-left: 14px; }
table.shots th:nth-child(1), table.shots td:nth-child(1) { width: 58px; }
table.shots .tc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
table.shots .desc { color: var(--ink-2); }
tr.detail > td { background: #fbfaf8; padding: 0; }
tr.detail .dwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
tr.detail h5 { margin: 0 0 5px; font-size: 11px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr.detail p { font-size: 13px; color: var(--ink-2); }
.shot-note { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 8px; }

/* ---------- style library ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lib-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow); text-align: left; padding: 0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #ddd6ca; }
.lib-card .thumb { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.lib-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lib-card:hover .thumb img { transform: scale(1.05); }
.lib-card .meta { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; }
.lib-card .top { display: flex; align-items: baseline; gap: 7px; }
.lib-card .top b { font-size: 14.5px; font-weight: 600; }
.lib-card .top em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lib-card .core { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.lib-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }

.kv { display: grid; grid-template-columns: 62px 1fr; gap: 10px 14px; margin: 0; }
.kv dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.62; }

/* ---------- pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pipe .node {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow);
}
.pipe .node b { display: block; font-size: 14px; margin-bottom: 4px; }
.pipe .node b i {
  font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-right: 6px;
}
.pipe .node p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.pipe .node::after {
  content: ''; position: absolute; top: 50%; right: -7px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line); z-index: 2;
}
.pipe .node:nth-child(4)::after, .pipe .node:last-child::after { display: none; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rules li { counter-increment: r; background: var(--surface); padding: 10px 14px 10px 42px; position: relative; font-size: 13.5px; color: var(--ink-2); }
.rules { counter-reset: r; }
.rules li::before {
  content: counter(r, decimal-leading-zero); position: absolute; left: 14px; top: 11px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
}
.gates { display: flex; flex-direction: column; gap: 8px; }
.gate { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.gate .lvl { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.gate[data-l='极强'] .lvl { color: var(--accent-ink); border-color: rgba(244, 63, 94, .3); background: var(--accent-soft); }
.gate[data-l='中'] .lvl { color: #a16207; border-color: rgba(245, 158, 11, .34); background: rgba(245, 158, 11, .08); }
.gate .who { font-weight: 600; font-size: 13.5px; }
.gate .what { font-size: 12.5px; color: var(--muted); margin-left: auto; text-align: right; }

/* ---------- local vault ---------- */
.vault-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 13.5px; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 74px; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mine { display: grid; gap: 10px; }
.mine-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow);
}
.mine-card .t { display: flex; align-items: center; gap: 9px; }
.mine-card .t b { font-size: 14.5px; }
.mine-card .t time { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }
.mine-card p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.mine-card .acts { display: flex; gap: 6px; margin-top: 9px; }
.mine-card pre {
  white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 9px 11px; margin: 9px 0 0;
  max-height: 150px; overflow: auto;
}
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- footer ---------- */
footer { padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
footer .f { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none; place-items: center;
  background: rgba(12, 11, 16, .92); padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 8px; }
.lightbox p { color: #cfcbd8; text-align: center; margin-top: 12px; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 140;
  background: var(--ink); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .pipe .node:nth-child(4)::after { display: block; }
  .pipe .node:nth-child(2n)::after { display: none; }
  .split, .vault-wrap { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  body { font-size: 14.5px; }
  section { padding: 34px 0; }
  .shell { padding: 0 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .lib-grid { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .pipe .node::after { display: none !important; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.pill) { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  tr.detail .dwrap { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .sheet { border-radius: 0; min-height: 100%; }
}
