/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #fafbfc; --line: #e4e7ec; --line-2: #eef0f3;
  --text: #111827; --text-2: #4b5563; --text-3: #6b7280;
  --accent: #1d4ed8; --accent-2: #1e40af; --accent-soft: #eef2ff;
  --fail: #b91c1c; --fail-soft: #fdecec; --review: #b45309; --review-soft: #fdf3e2;
  --pass: #15803d; --pass-soft: #e8f5ec; --manual: #4b5563; --manual-soft: #eef0f3;
  --nav-bg: #0f172a; --nav-text: #cbd5e1; --nav-active: #1e293b;
  --r: 8px; --content-w: 1320px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17; --surface: #121826; --surface-2: #161d2c; --line: #263047; --line-2: #1d2538;
    --text: #e5e7eb; --text-2: #b8c0cf; --text-3: #8d97a9;
    --accent: #6d9cff; --accent-2: #4f7ee6; --accent-soft: #1a2440;
    --fail: #f08a84; --fail-soft: #3a1c1c; --review: #f0b561; --review-soft: #3a2b14;
    --pass: #6ccf93; --pass-soft: #14321f; --manual: #aab3c2; --manual-soft: #222b3d;
    --nav-bg: #0a0f1a; --nav-text: #9aa6bb; --nav-active: #16213a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 14px/1.5 Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }
.hint { color: var(--text-3); font-size: 12.5px; }
.error { color: var(--fail); background: var(--fail-soft); padding: 10px 14px; border-radius: var(--r); white-space: pre-wrap; font-size: 13px; }
.empty { color: var(--text-3); padding: 28px; text-align: center; margin: 0; }

/* ------------------------------------------------------------------ shell */
.app { min-height: 100vh; }
.topnav { background: var(--nav-bg); color: var(--nav-text); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.06); }
.topnav-inner { max-width: var(--content-w); margin: 0 auto; padding: 0 28px; height: 58px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #60a5fa, #1d4ed8); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 8px; border: 2px solid #fff; border-radius: 3px; border-right-color: transparent; }
.brand-text { font-weight: 600; font-size: 14px; line-height: 1.15; white-space: nowrap; }
.brand-text small { display: block; font-weight: 400; font-size: 11px; color: var(--nav-text); margin-top: 1px; }
.nav { display: flex; align-items: stretch; gap: 4px; height: 58px; }
.nav a { display: flex; align-items: center; padding: 0 12px; color: var(--nav-text); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom-color: #60a5fa; }
.nav-right { margin-left: auto; display: flex; gap: 18px; font-size: 12px; white-space: nowrap; }
.kv { display: inline-flex; gap: 6px; align-items: baseline; } .kv span { color: var(--nav-text); } .kv b { color: #e2e8f0; font-weight: 500; }
.main { max-width: var(--content-w); margin: 0 auto; padding: 28px 28px 48px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 14px; font-weight: 600; margin: 0; }
.sub { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.crumbs { font-size: 12.5px; color: var(--text-3); display: flex; gap: 8px; margin-bottom: 6px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel > .progress, .panel > .steps, .panel > .error { margin: 16px 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.search { flex: 1 1 260px; }
.search input { width: 100%; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ controls */
.btn { font: inherit; font-weight: 500; font-size: 13.5px; border-radius: 7px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #cfd4dc; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.input { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
.input.sm { padding: 6px 8px; font-size: 12.5px; }
.input:focus, .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { font: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
#page-filter { width: 76px; }
.count:not(:empty) { margin-left: 6px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.menu-wrap { position: relative; }
/* popovers are positioned on the viewport by script, so scrolling toolbars never clip them */
.menu { position: fixed; z-index: 200; min-width: 240px; max-height: min(70vh, 460px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16), 0 1px 2px rgba(15,23,42,.08); padding: 6px; display: none; }
.menu-wrap.open .menu { display: block; }
.menu-wrap.open > .btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.menu a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.menu a:hover { background: var(--surface-2); text-decoration: none; }
/* option rows: [check] label ........ count */
.opt { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.opt:hover { background: var(--surface-2); }
.opt.on { background: var(--accent-soft); }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.opt .n { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt .dot { margin-right: 6px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-head b { font-size: 12.5px; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 6px 2px; border-top: 1px solid var(--line-2); margin-top: 4px; }
/* buttons that show their current selection */
.btn.sel { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.btn .val { color: var(--text-2); font-weight: 400; margin-left: 6px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; display: inline-block; }
.btn.sel .val { color: var(--accent); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.active-filters:empty { display: none; }
.active-filters span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px 2px 10px; display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); }
.active-filters button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }

/* ------------------------------------------------------------------ upload */
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; }
.drop { border: 1px dashed #c9cfd8; border-radius: var(--r); min-height: 150px; display: grid; place-items: center; text-align: center; color: var(--text-3); cursor: pointer; background: var(--surface-2); transition: .12s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); outline: none; }
.drop b { color: var(--text); font-weight: 600; }
.upload-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 150px; overflow: auto; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; }
.file-list .tag { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); width: 34px; }
.file-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { margin-left: auto; color: var(--text-3); font-size: 12px; }
.file-list button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 15px; }
.actions { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ progress */
.progress-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.fill.indeterminate { width: 35%; animation: slide 1.2s infinite linear; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(380%); } }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.steps li { position: relative; font-size: 12.5px; color: var(--text-3); padding: 10px 12px 10px 36px; border-right: 1px solid var(--line-2); }
.steps li:last-child { border-right: 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; border: 1px solid var(--line); }
.steps li.active { color: var(--text); background: var(--surface-2); }
.steps li.active::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.doneStep { color: var(--text-2); }
.steps li.doneStep::before { content: "✓"; background: var(--pass-soft); border-color: transparent; color: var(--pass); }

/* ------------------------------------------------------------------ status */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.status i, .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.status.done i, .dot.pass, .dot.Pass { background: var(--pass); }
.status.running i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status.error i, .dot.fail, .dot.Fail { background: var(--fail); }
.dot.review, .dot.Review { background: var(--review); }
.dot.manual, .dot.Manual { background: var(--manual); }
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.st.Fail { color: var(--fail); } .st.Review { color: var(--review); } .st.Pass { color: var(--pass); } .st.Manual { color: var(--manual); }
.sev { font-size: 12.5px; color: var(--text-2); }
.sev.Critical { color: var(--fail); font-weight: 600; } .sev.Major { color: var(--review); font-weight: 600; }
.meta { font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; overflow: hidden; }
.metric { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.metric:last-child { border-right: 0; }
.metric .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.metric .v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.metric.fail .v { color: var(--fail); } .metric.review .v { color: var(--review); } .metric.pass .v { color: var(--pass); } .metric.manual .v { color: var(--manual); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow: auto; }
.table-wrap.flush { border-radius: 0 0 var(--r) var(--r); }
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th[data-sort] { cursor: pointer; user-select: none; }
.grid th.sorted::after { content: " ↑"; color: var(--accent); } .grid th.sorted.desc::after { content: " ↓"; }
.grid td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr.row:hover td, .grid tr.jrow:hover td { background: var(--surface-2); }
.grid tr.row, .grid tr.jrow { cursor: pointer; }
.grid .num { text-align: right; }
.grid.findings { min-width: 1100px; }
.grid.findings td.item { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.grid.findings td.issue { min-width: 360px; max-width: 600px; }
.grid.findings td.sc, .grid.findings td.ver, .grid.findings td.src { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.grid .chev { color: var(--text-3); font-size: 11px; width: 20px; }
tr.detail td { background: var(--surface-2); padding: 14px 18px 16px 44px; }
.detail-grid { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 13px; }
.detail-grid dt { color: var(--text-3); } .detail-grid dd { margin: 0; white-space: pre-wrap; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; gap: 8px; }
.pager-ctl { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.grid.jobs { min-width: 860px; }
.grid.jobs td.doc { font-weight: 500; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid.jobs td.doc small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.grid.jobs .mini { display: inline-block; width: 90px; height: 4px; background: var(--line-2); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-left: 8px; }
.grid.jobs .mini i { display: block; height: 100%; background: var(--accent); }

/* ------------------------------------------------------------------ viewer */
.viewer { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; grid-template-rows: 52px minmax(0, 1fr); }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.vbar-l, .vbar-c, .vbar-r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.vtitle { font-weight: 600; margin-left: 8px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.pg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin: 0 4px; }
.pg input { width: 64px; text-align: center; }
.vsep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.chk { font-size: 12.5px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.zoom-pct { font-size: 12.5px; color: var(--text-3); min-width: 42px; text-align: center; }
.legend { font-size: 12px; color: var(--text-3); display: inline-flex; gap: 10px; align-items: center; }
.legend .dot { margin-right: -4px; }
.vbody { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 0; }
.page-wrap { position: relative; overflow: auto; background: #e9ebef; padding: 24px; outline: none; }
@media (prefers-color-scheme: dark) { .page-wrap { background: #070a10; } }
.page-wrap:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.page-stage { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 2px 14px rgba(15,23,42,.18); }
.page-stage img { display: block; width: 100%; height: 100%; }
.overlay { position: absolute; inset: 0; }
.hl { position: absolute; border: 2px solid; border-radius: 2px; cursor: pointer; box-sizing: border-box; }
.hl.Fail { border-color: var(--fail); background: rgba(185,28,28,.14); }
.hl.Review { border-color: var(--review); background: rgba(180,83,9,.14); }
.hl.Pass { border-color: var(--pass); background: rgba(21,128,61,.14); }
.hl:hover { box-shadow: 0 0 0 3px rgba(29,78,216,.35); }
.hl.selected { box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px rgba(29,78,216,.25); z-index: 3; }
.hl .tag { position: absolute; top: -19px; left: -2px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px 3px 0 0; color: #fff; white-space: nowrap; }
.hl.Fail .tag { background: var(--fail); } .hl.Review .tag { background: var(--review); } .hl.Pass .tag { background: var(--pass); }
.page-loading { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text-3); font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.side { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.side-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.side-list { overflow: auto; min-height: 0; }
.frow { padding: 12px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.frow:hover { background: var(--surface-2); }
.frow.selected { background: var(--accent-soft); }
.frow .fh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.frow .fh b { font-weight: 600; font-size: 13.5px; }
.frow .ftext { margin-top: 4px; color: var(--text-2); font-size: 13px; }
.frow .fd { display: none; margin-top: 10px; font-size: 12.5px; }
.frow.selected .fd { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; }
.frow .fd dt { color: var(--text-3); } .frow .fd dd { margin: 0; white-space: pre-wrap; }
.side-empty { color: var(--text-3); font-size: 13px; padding: 28px 18px; text-align: center; }

/* viewer navigation filter: two-column panel */
.vmenu { width: 560px; max-width: calc(100vw - 24px); padding: 6px 8px 8px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.vgroup { padding: 4px 0 6px; }
.vg-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 6px 10px 4px; }
.vfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px 2px; border-top: 1px solid var(--line-2); margin-top: 6px; }
@media (max-width: 640px) { .vgrid { grid-template-columns: 1fr; } }

/* side panel tabs + manual checklist */
.side-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.side-tab { flex: 1; font: inherit; font-size: 13px; font-weight: 500; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-3); cursor: pointer; }
.side-tab:hover { color: var(--text); }
.side-tab.active { color: var(--text); border-bottom-color: var(--accent); background: var(--surface); }
.side-tab .n { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.manual { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.manual-progress { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.manual-progress .bar { flex: 1; }
.manual-progress .fill { background: var(--pass); }
.manual-list { overflow: auto; min-height: 0; }
.mrow { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.mrow input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--pass); cursor: pointer; }
.mrow .mt { font-weight: 600; font-size: 13.5px; cursor: pointer; }
.mrow.done .mt { color: var(--text-3); text-decoration: line-through; }
.mrow .msc { font-size: 12px; color: var(--accent); margin-top: 1px; }
.mrow .mw { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.mrow .mh { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.mrow .mh b { font-weight: 500; color: var(--text-2); }
.mrow textarea { grid-column: 2; margin-top: 8px; width: 100%; min-height: 34px; resize: vertical; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.mrow textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mrow .mmeta { grid-column: 2; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

@media (max-width: 1000px) {
  .topnav-inner { padding: 0 16px; gap: 16px; }
  .nav-right { display: none; }
  .brand-text small { display: none; }
  .main { padding: 20px 16px 40px; }
  .upload-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .vbody { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 40vh; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
}
