:root {
  --bg: #0E0E10; --surface: #161619; --surface-2: #1F1F24; --sunk: #0A0A0C;
  --line: #26262C; --line-2: #37373F;
  --text: #FFFFFF; --muted: #A6A6B0; --faint: #8B8B95;
  --accent: #E8FF52; --accent-bg: #1B1F0B; --accent-line: #414A18;
  --good: #63D69A; --good-bg: #12301F; --good-line: #234C33;
  --warn: #F3823D; --warn-bg: #331F10; --warn-line: #57351B;
  --navy: #0C1B3C;
  --font-display: "Instrument Sans", "Inter", -apple-system, system-ui, sans-serif;
  --font: "Inter", -apple-system, system-ui, "Helvetica Neue", sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 26px 80px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14,14,16,0.9); backdrop-filter: blur(8px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 24px; display: block; border-radius: 3px; }
.glyph { width: 26px; height: 26px; border: 1.5px solid var(--text); border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.brand .nm { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 9px; }
.tag { font-weight: 500; }
.tag.client { color: #101010; border-color: var(--accent); background: var(--accent); }

.btn { font-family: var(--font); font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background .14s, border-color .14s, transform .08s; }
.btn:active { transform: scale(0.97); }
.btn:hover { background: #2A2A31; border-color: var(--line-2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #101010; font-weight: 600; }
.btn.primary:hover { background: #D6F03C; border-color: #D6F03C; }
.btn.primary:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--faint); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12px; }

h1 { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.026em; line-height: 1.05; margin: 0; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 30px 0 14px; }
.chero { padding: 14px 0 22px; }
.ceyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ctag { font-family: var(--font-display); font-size: clamp(38px, 8.5vw, 66px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.96; color: var(--text); text-wrap: balance; }
.ctag .pop { color: var(--accent); }
.ctagline { font-family: var(--font-display); font-size: clamp(17px, 3vw, 22px); font-weight: 600; letter-spacing: -0.012em; color: var(--muted); margin-top: 12px; }
.ctagline .pop { color: var(--accent); }
.report { font-family: var(--mono); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 14px; max-height: 300px; overflow: auto; color: var(--text); margin-top: 12px; }
.homestats { display: flex; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.hstat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; flex: 1; min-width: 150px; }
.hstat .hk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.hstat .hv { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin-top: 5px; line-height: 1; }
.hstat.alert { border-color: var(--accent-line); }
.hstat.alert .hv { color: var(--accent); }
.sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 5px; }
.back { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; margin-bottom: 16px; cursor: pointer; }
.back:hover { color: var(--text); }
.rowflex { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: border-color .14s, transform .14s; }
.pcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pcard .pn { font-size: 16px; font-weight: 500; }
.pcard .pc { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.pcard .bar { display: flex; height: 7px; border-radius: 100px; overflow: hidden; margin: 16px 0 10px; background: var(--sunk); }
.pcard .bar i { display: block; height: 100%; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; }
.miniacct { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.gate { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; padding: 4px 11px; border-radius: 100px; white-space: nowrap; }
.gate.locked { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.gate.ready { color: var(--good); background: var(--good-bg); border: 1px solid var(--good-line); }

.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.stat.g { background: var(--good-bg); border-color: var(--good-line); } .stat.w { background: var(--warn-bg); border-color: var(--warn-line); }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); }
.stat.g .k { color: var(--good); } .stat.w .k { color: var(--warn); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 36px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1; }
.stat.g .v { color: var(--good); } .stat.w .v { color: var(--warn); }

.gatebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.gatebar .acc { font-family: var(--mono); font-size: 13px; color: var(--muted); } .gatebar .acc b { color: var(--text); }

.nudge { display: flex; align-items: center; gap: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 16px; margin: 16px 0; color: var(--warn); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 8px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .14s, transform .14s; }
.asset:hover { border-color: var(--line-2); transform: translateY(-2px); }
.asset.flag { border-color: var(--warn-line); }
.thumb { aspect-ratio: 4/3; display: grid; place-items: center; font-family: var(--mono); font-size: 22px; color: #cfd6e6; position: relative; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #131316; color: var(--faint); }
.ph svg { width: 24px; height: 24px; opacity: 0.7; }
.ph .phtxt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.ph.big svg { width: 42px; height: 42px; }
.ph.big .phtxt { font-size: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset .info { padding: 11px 13px; }
.asset .an { font-size: 13.5px; }
.asset .av { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 100px; margin-top: 9px; }
.pill.approved { color: var(--good); background: var(--good-bg); border: 1px solid var(--good-line); }
.pill.needs { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.pill.pending { color: var(--muted); background: var(--sunk); border: 1px solid var(--line-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.filters { display: flex; gap: 8px; margin: 18px 0 4px; flex-wrap: wrap; }
.filters .f { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; background: transparent; }
.filters .f.active { color: #17170F; background: var(--accent); border-color: var(--accent); font-weight: 500; }

.overlay { position: fixed; inset: 0; background: rgba(6,8,12,0.72); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 40; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; width: min(680px, 100%); max-height: 88vh; overflow: auto; }
.modal .big { aspect-ratio: 16/10; display: grid; place-items: center; font-family: var(--mono); font-size: 48px; color: #cfd6e6; background: #121212; border-bottom: 1px solid var(--line); }
.modal .big img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal .mbody { padding: 20px 22px; }
.modal .mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.vhist { margin: 16px 0 0; border-top: 1px solid var(--line); }
.vrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.vrow .vout { margin-left: auto; color: var(--muted); }
textarea { width: 100%; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-family: var(--font); font-size: 14px; padding: 10px; resize: vertical; min-height: 70px; }
.mactions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.x { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: none; }
.x:hover { color: var(--text); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-family: var(--mono); font-size: 13px; padding: 11px 18px; border-radius: 100px; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.toast.good { border-color: var(--good-line); color: var(--good); }
.empty { color: var(--faint); font-family: var(--mono); font-size: 13px; padding: 20px 0; }
.welcome { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 10px 0 8px; }
.welcome h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.welcome ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.briefbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.briefbox.muted { color: var(--faint); }
.subtle { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.inp { width: 100%; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-family: var(--font); font-size: 14px; padding: 10px; }
.folderhead { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.folderhead .fcount { color: var(--faint); background: var(--sunk); border-radius: 100px; padding: 1px 8px; font-size: 11px; }
.pkg { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.pkghead { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.pkghead::-webkit-details-marker { display: none; }
.pkgleft { display: flex; align-items: center; gap: 10px; min-width: 0; }
.caret { display: inline-block; color: var(--faint); font-size: 11px; transition: transform .15s; }
.pkg[open] .caret { transform: rotate(90deg); }
.pkgname { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pkgcount { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pkgmeta { display: flex; align-items: center; gap: 12px; flex: none; }
.pkgbar { width: 84px; height: 6px; border-radius: 100px; background: var(--sunk); overflow: hidden; }
.pkgbar i { display: block; height: 100%; background: var(--good); }
.pkgnum { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pchip { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 100px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); white-space: nowrap; }
.pchip.done { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.pkg[open] .pkghead { border-bottom: 1px solid var(--line); }
.pkggrid { padding: 16px; }
.pkgtools { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.pkgsearch { flex: 1; max-width: 340px; }
.shottype { font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.shottype:not(:first-child) { margin-top: 22px; }
.shottype .stcount { color: var(--faint); background: var(--sunk); border-radius: 100px; padding: 1px 8px; }
@media (max-width: 620px) { .pkgbar { display: none; } .pkgname { font-size: 14px; } .pkgsearch { max-width: none; } }
.progress { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 16px 0 4px; }
.progress .ptop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress .pnum { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pbar { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--sunk); }
.pbar i { display: block; height: 100%; }
.plegend { display: flex; gap: 16px; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.plegend span { display: flex; align-items: center; gap: 6px; }
.checklist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check .box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--good); flex: none; }
.check.done .box { border-color: var(--good-line); background: var(--good-bg); }
.check.done .cname > span:first-child { color: var(--muted); }
.check .cname { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.check .coutstanding { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check .cnum { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.check .ctogo { font-family: var(--mono); font-size: 11px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 100px; padding: 2px 9px; white-space: nowrap; flex: none; }
.check .cst { font-family: var(--mono); font-size: 11px; color: var(--warn); flex: none; }
.cksummary { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.ckallgood { font-family: var(--mono); font-size: 13px; color: var(--good); padding: 14px 16px; border: 1px solid var(--good-line); background: var(--good-bg); border-radius: 10px; }
.ckcompleted { margin-top: 12px; }
.ckcompleted > summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 4px 0; }
.ckcompleted > summary::-webkit-details-marker { display: none; }
.ckcompleted > summary::before { content: "▸ "; color: var(--faint); }
.ckcompleted[open] > summary::before { content: "▾ "; }
.ckcompleted .check.done { opacity: 0.75; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.compare .pane { background: var(--sunk); }
.compare .cimg { aspect-ratio: 4/3; display: grid; place-items: center; background: #121212; }
.compare .cimg img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.compare .clab { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; padding: 7px; }
.vrow.clickable { cursor: pointer; }
.vrow.clickable:hover { color: var(--text); }
.cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.dlbtn { background: transparent; border: 1px solid var(--line-2); border-radius: 6px; width: 27px; height: 27px; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.dlbtn:hover { color: var(--text); background: var(--surface-2); }
.dlbtn:disabled { opacity: 0.3; cursor: not-allowed; }
.dlbtn:disabled:hover { background: transparent; color: var(--muted); }
.dlbtn svg { width: 14px; height: 14px; }
.bell { position: relative; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.bell:hover { background: #2A2A31; }
.bell svg { width: 17px; height: 17px; }
.bcount { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--accent); color: #17170F; border-radius: 100px; font-family: var(--mono); font-weight: 500; font-size: 10px; place-items: center; display: none; }
.notiflist { display: flex; flex-direction: column; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.notif { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.notif:first-child { border-top: 0; }
.notif.unread { background: var(--accent-bg); }
.notif .ntime { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.newtag { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #17170F; background: var(--accent); border-radius: 3px; padding: 1px 6px; vertical-align: 1px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 12px; padding: 14px 16px; margin: 6px 0 14px; }
.cta b { font-size: 15px; }
.sect { margin: 22px 0 0; }
.sect > summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary::before { content: "▸"; font-size: 11px; color: var(--faint); transition: transform .15s; }
.sect[open] > summary::before { transform: rotate(90deg); }
.pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); color: #0b0f1c; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.pin span, .pin { }
.pin.tmp { background: var(--warn); }
.big { position: relative; }
.big.pinnable { cursor: crosshair; }
.comments { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.clist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cmt { background: var(--sunk); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; }
.cmt .cmeta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.pinnum { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #0b0f1c; display: inline-grid; place-items: center; font-size: 10px; }
.cadd { display: flex; gap: 8px; }
.cadd .inp { flex: 1; }
.pinhint { margin-top: 8px; }
.pinhint a { color: var(--accent); cursor: pointer; text-decoration: underline; }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }
.spinner-overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(14,14,16,0.45); z-index: 90; }
.spinner-overlay.hidden { display: none; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .spinner { animation-duration: 1.6s; } }
@media (max-width: 620px) { .ledger { grid-template-columns: repeat(2,1fr); } .wrap { padding: 18px 16px 70px; } }

/* ---- Full-screen mobile review ---- */
body.rv-open { overflow: hidden; }
#reviewer { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rv-x { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer; }
.rv-count { font-variant-numeric: tabular-nums; }
.rv-proj { color: var(--faint); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.rv-stage { flex: 1; position: relative; background: #0a0a0a; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; user-select: none; }
.rv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; }
.rv-noimg { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #4a4a4a; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.rv-noimg svg { width: 46px; height: 46px; }
.rv-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.rv-dots i { width: 5px; height: 5px; border-radius: 50%; background: #3a3a3a; }
.rv-dots i.on { background: var(--accent); width: 16px; border-radius: 20px; }
.rvpin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); color: #0D0D0D; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.rvpin.tmp { opacity: 0.7; }
.rv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.45); border: 1px solid var(--line-2); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.rv-nav.prev { left: 10px; } .rv-nav.next { right: 10px; }
.rv-meta { padding: 13px 16px 0; }
.rv-nm { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.rv-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 3px; }
.rv-hint { font-size: 11px; color: var(--faint); margin-top: 10px; }
.rv-actions { display: flex; flex-direction: column; gap: 9px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 12px; }
.rv-req, .rv-app, .rv-send { width: 100%; height: 50px; border-radius: 13px; font-family: var(--font); font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; }
.rv-req { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.rv-app { background: var(--accent); color: #0D0D0D; }
.rv-req:active, .rv-app:active, .rv-send:active { transform: scale(0.99); }
.rv-sheetwrap { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.55); display: flex; align-items: flex-end; }
.rv-sheet { width: 100%; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
.rv-grab { width: 34px; height: 4px; border-radius: 20px; background: var(--line-2); margin: 0 auto 14px; }
.rv-sheet h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.rv-sh { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.rv-ta { width: 100%; height: 82px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 14px; padding: 10px; resize: none; }
.rv-send { margin-top: 10px; }
.rv-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.rv-check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #0D0D0D; display: grid; place-items: center; font-size: 30px; margin-bottom: 10px; }
.rv-done h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--text); margin: 0; }
.rv-done p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; max-width: 34ch; }
/* On wider screens, frame the reviewer like a centered phone */
@media (min-width: 760px) {
  #reviewer { max-width: 460px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
