/* builderGREENLIGHT staff app. Look from the approved direction (Daniel 2026-11-26, ARCHITECTURE 1a):
   grouped light sidebar on desktop, module tiles as Home, record pages with a module status strip.
   Phone: Home, Modules, Review, Search tabs. Archivo is served from /fonts (brand files), no outside font host. */
@font-face{font-family:"Archivo";src:url("/fonts/archivo-500.ttf") format("truetype");font-weight:400 600;font-display:swap}
@font-face{font-family:"Archivo";src:url("/fonts/archivo-800.ttf") format("truetype");font-weight:700 900;font-display:swap}
/* Inter (variable, SIL OFL, fonts/Inter-OFL.txt) for everything except the logo wordmark, which stays Archivo. Self-hosted. */
@font-face{font-family:"Inter";src:url("/fonts/inter-var-latin.woff2") format("woff2");font-weight:100 900;font-display:swap}
/* builderGREENLIGHT, modules first (Daniel 2026-11-26, ARCHITECTURE 1a): D grouped light sidebar, E module tiles as Home,
   F record page with a module status strip. Phone: Home, Modules, Review, Search tabs. Four brand colors plus asphalt neutrals. */
:root{
  --bg:#F3F4F2; --surface:#FFFFFF; --ink:#1D2327; --muted:#5D6668; --line:#E3E5E1; --line2:#ECEEEA; --shadow:#DADDD9;
  --brand:#1D2327; --brand-ink:#FFFFFF; --brand-soft:#ECEEEA; --cyan:#1E9E53; --cyan-soft:#BFE5CF;
  --yellow:#F5B700; --yellow-ink:#1D2327; --red:#9C1A20; --red-line:#E0262F; --red-soft:#FBE0E1; --green:#14673A; --green-soft:#DDF1E5; --ysoft:#FFF1C7; --yink:#7A5A00;
  --header:#FFFFFF; --header-sub:#5D6668; --tabbar:#FFFFFF; --side:#FAFAF9; --side-ink:#3A4246; --side-on:#1D2327; --side-on-ink:#FFFFFF; --faint:#8A9294;
  --display:"Inter",system-ui,-apple-system,sans-serif; --logo:"Archivo","Arial Narrow",system-ui,sans-serif; --body:"Inter",system-ui,-apple-system,sans-serif; --mono:ui-monospace,"SF Mono",Menlo,monospace;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#121517; --surface:#1B2023; --ink:#E8EBE8; --muted:#9AA3A5; --line:#2E3539; --line2:#262D31; --shadow:#0B0E0F;
  --brand:#1E9E53; --brand-ink:#0E1214; --brand-soft:#232A2E; --cyan:#2BB866; --cyan-soft:#1F4A33;
  --yellow:#F5B700; --yellow-ink:#1D2327; --red:#FF8A8F; --red-line:#E0262F; --red-soft:#40191B; --green:#5CD18E; --green-soft:#163A27; --ysoft:#3D3214; --yink:#F5C94A;
  --header:#1B2023; --header-sub:#9AA3A5; --tabbar:#171C1F; --side:#171C1F; --side-ink:#C9D0D1; --side-on:#E8EBE8; --side-on-ink:#121517; --faint:#6B7476; color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#121517; --surface:#1B2023; --ink:#E8EBE8; --muted:#9AA3A5; --line:#2E3539; --line2:#262D31; --shadow:#0B0E0F;
  --brand:#1E9E53; --brand-ink:#0E1214; --brand-soft:#232A2E; --cyan:#2BB866; --cyan-soft:#1F4A33;
  --yellow:#F5B700; --yellow-ink:#1D2327; --red:#FF8A8F; --red-line:#E0262F; --red-soft:#40191B; --green:#5CD18E; --green-soft:#163A27; --ysoft:#3D3214; --yink:#F5C94A;
  --header:#1B2023; --header-sub:#9AA3A5; --tabbar:#171C1F; --side:#171C1F; --side-ink:#C9D0D1; --side-on:#E8EBE8; --side-on-ink:#121517; --faint:#6B7476; color-scheme:dark }
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.4;font-feature-settings:"cv11","ss01";-webkit-font-smoothing:antialiased;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
body.signing{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--header)}
.side{display:none}
.wrap{max-width:560px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
[hidden]{display:none!important}

/* header */
.top{background:var(--header);border-bottom:1px solid var(--line);padding-top:calc(env(safe-area-inset-top,0px) + 10px);padding-bottom:0}
.top .wrap{display:flex;flex-direction:column;gap:3px;padding-bottom:10px}
.top .wrap:has(.subtabs){padding-bottom:0}
.brandrow{display:flex;align-items:center;gap:10px;min-height:24px;margin-bottom:4px}
.mini-logo{display:flex;align-items:center;gap:6px;font-family:var(--logo);font-weight:500;font-size:16px;color:var(--ink)}
.mini-logo b{color:#1E9E53;font-weight:800}
.mini-logo svg{width:18px;height:22px;flex:none}
.meta-r{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--header-sub);display:flex;align-items:center;gap:6px;white-space:nowrap}
.eyebrow{font-size:12px;font-weight:500;color:var(--muted)}
.modtag{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.dot{width:7px;height:7px;border-radius:50%;background:#8A9294;flex:none}.dot.on{background:#1E9E53}.dot.warn{background:var(--yellow)}
.back{color:var(--muted);background:none;border:0;font:inherit;font-weight:500;font-size:13px;padding:2px 0;cursor:pointer;display:block;text-align:left;align-self:flex-start}
.big{margin:0;font-family:var(--display);font-weight:700;font-size:22px;line-height:1.2;letter-spacing:-.02em;text-wrap:balance}
.hsub{font-size:13px;color:var(--muted)}
.titlerow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.searchbox{display:none;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:6px 12px;min-width:220px;color:var(--faint);font-size:13px;background:var(--surface);cursor:pointer;font-family:inherit}
.subtabs{display:flex;gap:20px;overflow-x:auto;margin-top:4px}
.subtabs button{font:inherit;font-size:14px;font-weight:500;background:none;border:0;padding:8px 0 9px;color:var(--muted);cursor:pointer;white-space:nowrap}
.subtabs button[aria-current="page"]{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 #1E9E53}
.ic{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chip{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:6px;white-space:nowrap}
.chip.g{background:var(--green-soft);color:var(--green)}.chip.y{background:var(--ysoft);color:var(--yink)}.chip.r{background:var(--red-soft);color:var(--red)}.chip.n{background:var(--brand-soft);color:var(--muted)}
/* tiles (Home) */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:4px;transition:border-color .12s,box-shadow .12s;text-align:left;font:inherit;color:inherit;cursor:pointer;min-width:0}
.tile:hover{border-color:var(--shadow);box-shadow:0 1px 3px rgba(29,35,39,.06)}
.tile .t{display:flex;align-items:center;gap:7px;font-family:var(--display);font-weight:600;font-size:14px}
.tile .bigN{font-family:var(--display);font-weight:700;font-size:26px;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tile .s{font-size:12px;color:var(--muted)}
.tile.dim{opacity:.55}
.meter{height:6px;border-radius:4px;background:var(--line2);display:flex;overflow:hidden}
.meter i{display:block;height:100%}
/* record strip */
.modstrip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.modstrip div{border-radius:8px;padding:8px 10px;font-size:13px;border:1px solid var(--line);background:var(--surface);min-width:0}
.modstrip div b{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin-bottom:1px}
.modstrip .ic{width:14px;height:14px}
.modstrip div.warn{border-color:var(--yellow);background:var(--ysoft)}
/* grouped module list (phone Modules tab) */
.grp{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);padding:8px 4px 0}
.mlist{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.mlist button{display:flex;align-items:center;gap:10px;width:100%;font:inherit;font-size:15px;background:none;border:0;border-bottom:1px solid var(--line2);padding:11px 14px;color:var(--ink);cursor:pointer;text-align:left}
.mlist button b{font-weight:500}
.mlist button:last-child{border-bottom:0}
.mlist button b{flex:1}
.mlist .later{color:var(--faint)}
.lrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line2);font-size:15px}
.lrow:last-child{border-bottom:0}
.lrow .r{color:var(--muted);font-size:13px;text-align:right}
.sbox{font:inherit;font-size:16px;width:100%;border:1px solid var(--shadow);border-radius:8px;padding:10px 12px;background:var(--surface);color:var(--ink)}

/* body */
main{display:flex;flex-direction:column;gap:10px;padding-block:12px 24px}
.label{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.card{background:var(--surface);border-radius:10px;border:1px solid var(--line);padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.card.flat{}
.card.ring{box-shadow:0 0 0 2px var(--ink)}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pill{font-weight:600;font-size:12px;border-radius:6px;padding:3px 8px;white-space:nowrap;background:var(--brand-soft);color:var(--ink)}
.pill.yellow{background:var(--ysoft);color:var(--yink)}.pill.red{background:var(--red-soft);color:var(--red)}.pill.green{background:var(--green-soft);color:var(--green)}
.mono{font-family:var(--mono);font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.ctitle{font-family:var(--display);font-weight:650;font-size:18px;line-height:1.2;letter-spacing:-.01em}
.h2{font-family:var(--display);font-weight:650;font-size:15px;letter-spacing:-.005em}
.muted{color:var(--muted);font-size:14px}
.note{font-size:13px;color:var(--muted)}
.btn{font:inherit;font-weight:600;border:none;border-radius:8px;min-height:44px;padding:10px 16px;cursor:pointer;background:var(--brand);color:var(--brand-ink);text-align:center;width:100%}
.btn.yellow{background:var(--yellow);color:var(--yellow-ink)}
.btn.ghost{background:transparent;color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.btn.big{min-height:52px;font-weight:700;font-size:16px;border-radius:10px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.saved:disabled{opacity:1;background:var(--cyan);color:#0E1214;cursor:default}
.btns{display:flex;gap:8px;flex-wrap:wrap}.btns .btn{flex:1 1 140px}
.link{background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:600;color:var(--brand);cursor:pointer;text-align:left}
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.tapcard{cursor:pointer;text-align:left;font:inherit;color:inherit;border:0;width:100%}

/* banner */
.banner{background:var(--yellow);color:var(--yellow-ink);border-radius:10px;padding:10px 14px;display:flex;align-items:center;gap:12px;border:0;font:inherit;text-align:left;cursor:pointer;width:100%}
.banner b{font-family:var(--display);font-weight:650;font-size:15px;display:block}
.banner .go{background:#1D2327;color:#fff;font-weight:600;font-size:13px;border-radius:7px;padding:7px 12px;flex:none}

/* review clock */
.clock{display:flex;flex-direction:column;gap:4px}
.bar{position:relative;height:12px;background:var(--bg);border-radius:6px}
.bar .fill{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:var(--cyan)}
.bar .fill.wait{background:repeating-linear-gradient(135deg,var(--cyan-soft) 0 6px,var(--brand-soft) 6px 12px)}
.bar .fill.yel{background:var(--yellow);box-shadow:inset 0 0 0 2px var(--ink)}
.bar .limit{position:absolute;left:75%;top:-3px;bottom:-3px;border-left:2px dashed var(--red-line)}

/* lists */
.hist{display:flex;flex-direction:column;gap:8px;font-size:14px;margin:0;padding:0;list-style:none}
.hist li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px}
.kv{display:flex;flex-direction:column;font-size:14px}
.kv div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line2)}
.kv div:last-child{border-bottom:0}
.kv span{color:var(--muted)}.kv b{text-align:right;font-weight:500}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.steps li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:start;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.steps .ic{font-weight:800;color:var(--cyan)}.steps .ic.stop{color:var(--yellow-ink);background:var(--yellow);border-radius:4px;text-align:center;font-size:11px;line-height:18px}
.steps .ic.err{color:var(--red)}
.steps time{font-family:var(--mono);font-size:11px;color:var(--muted)}
details.card>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px}
details.card>summary::-webkit-details-marker{display:none}
details.card>summary::after{content:"›";font-size:22px;color:var(--muted);transform:rotate(90deg);transition:transform .15s}
details.card[open]>summary::after{transform:rotate(-90deg)}
dl{margin:0;display:flex;flex-direction:column}
dl div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:7px 0;border-bottom:1px solid var(--line)}
dl div:last-child{border-bottom:0}
dt{font-size:12px;color:var(--muted);grid-column:1}
dd{margin:0;font-weight:500;font-size:14px;grid-column:1;min-width:0;overflow-wrap:anywhere}
.src{grid-column:2;grid-row:1/span 2;align-self:center;font-family:var(--mono);font-size:10px;background:var(--brand-soft);color:var(--brand);border-radius:4px;padding:2px 6px}
.trade{border-top:1px solid var(--line);padding:10px 0;display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:2px 10px;font-size:14px;align-items:center}
.trade:first-child{border-top:0;padding-top:0}
.trade b{font-size:15px}.trade .meta{color:var(--muted);font-size:13px;overflow-wrap:anywhere;grid-column:1}
.trade .sg{grid-column:2;grid-row:1/span 3;background:#fff;border-radius:6px;padding:3px;display:flex;align-items:center;justify-content:center;min-height:36px}
.trade .sg img{max-width:100%;max-height:32px}
.sigbox{background:#fff;border:1px solid var(--line);border-radius:10px;min-height:72px;display:flex;align-items:center;justify-content:center;padding:8px}
.sigbox img{max-height:64px;max-width:100%}
.filebtn{font:inherit;font-size:14px;font-weight:500;text-align:left;width:100%;min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--brand);padding:8px 12px;cursor:pointer}
.filebtn::before{content:"PDF";font-family:var(--mono);font-size:10px;font-weight:700;background:var(--brand);color:var(--brand-ink);border-radius:4px;padding:2px 5px;margin-right:8px;vertical-align:1px}
.files{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.shots{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.shots button{flex:none;border:1px solid var(--line);border-radius:8px;padding:0;background:var(--bg);width:132px;cursor:pointer;text-align:left;color:var(--ink)}
.shots img{display:block;width:132px;height:96px;object-fit:cover;object-position:top;border-radius:8px 8px 0 0}
.shots span{display:block;font-size:11px;padding:5px 7px;color:var(--muted)}

/* sign and file */
.check{display:flex;gap:10px;align-items:flex-start;font-weight:600;font-size:14px}
.check input{width:22px;height:22px;flex:none;margin:0;accent-color:var(--brand)}
.signame{font:inherit;width:100%;border:0;border-bottom:2px solid var(--ink);background:transparent;color:var(--ink);padding:4px 2px;font-family:var(--display);font-style:italic;font-size:24px;border-radius:0}
.certtext{font-size:13px;background:var(--bg);border-radius:8px;padding:10px 12px;margin:0}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:12;background:var(--bg);border-top:1px solid var(--line);padding-top:12px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
.dock .wrap{display:flex;flex-direction:column;gap:6px}
.dock .note{text-align:center;font-size:12px}

/* phone tab bar */
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:12;background:var(--tabbar);border-top:1px solid var(--line);padding:4px max(6px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px))}
nav.tabs .in{max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr)}
nav.tabs button{font:inherit;font-size:11px;font-weight:500;background:none;border:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 0 2px;cursor:pointer;min-height:44px}
nav.tabs button::before{content:"";width:22px;height:3px;border-radius:2px;margin-bottom:3px}
nav.tabs button[aria-current="page"]{color:var(--ink);font-weight:600}
nav.tabs button[aria-current="page"]::before{background:var(--yellow)}
/* overlays */
.sheet{position:fixed;inset:auto 0 0 0;z-index:20;background:var(--surface);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.25);padding-top:18px;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.sheet .wrap{display:flex;flex-direction:column;gap:12px}
.scrim{position:fixed;inset:0;z-index:15;background:rgba(17,21,23,.5)}
textarea{font:inherit;width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--bg);color:var(--ink)}
.docv{position:fixed;inset:0;z-index:30;background:#2E363B;display:flex;flex-direction:column}
.docv .bar2{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;background:#111517;color:#fff}
.docv .bar2 span{flex:1;min-width:0;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.docv .bar2 .btn{width:auto;min-height:40px;padding:8px 12px;color:#fff;box-shadow:inset 0 0 0 1px #fff;background:transparent}
.docv .pages{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:12px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.docv .pages img{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.docv.zoom .pages img{width:260%;max-width:none}
.viewer{position:fixed;inset:0;z-index:30;background:rgba(17,21,23,.92);display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));gap:8px}
.viewer img{flex:1;min-height:0;object-fit:contain;width:100%}
.viewer .row{color:#fff}
.viewer .btn{width:auto;min-height:40px;color:#fff;box-shadow:inset 0 0 0 1px #fff;background:transparent}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:40;background:var(--ink);color:var(--bg);padding:10px 14px;border-radius:10px;font-size:14px;max-width:90vw}
/* desktop and tablet: grouped light sidebar (option D). Three levels that read apart (Daniel 2026-12-01):
   top items (Home, Review, Settings) in semibold ink; group headings in small bold caps with a rule above;
   module items indented under their heading on a thin rail; modules not built yet faded. One line per item. */
@media (min-width:900px){
  body{padding-bottom:0;padding-left:244px;font-size:14px}
  nav.tabs{display:none}
  .side{display:flex;flex-direction:column;gap:0;position:fixed;top:0;bottom:0;left:0;width:244px;background:var(--side);border-right:1px solid var(--line);padding:calc(env(safe-area-inset-top,0px) + 14px) 10px 12px;overflow-y:auto;z-index:12}
  .side .mini-logo{margin:0 8px 12px;font-size:15px}
  .side button{display:flex;align-items:center;gap:9px;font:inherit;font-size:13.5px;line-height:1.25;background:none;border:0;border-radius:6px;padding:6px 8px;color:var(--side-ink);cursor:pointer;text-align:left;width:100%}
  .side button:hover{background:var(--line2)}
  .side button .ic{width:16px;height:16px;flex:none}
  .side > button{font-weight:600;color:var(--ink)}
  .side button i{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;color:var(--yink);background:var(--ysoft);border-radius:9px;padding:0 7px}
  .side button[aria-current="page"]{background:var(--side-on);color:var(--side-on-ink);font-weight:600}
  .side button[aria-current="page"] i{background:var(--yellow);color:#1D2327}
  .side .sgrp{display:flex;flex-direction:column;margin-top:6px;padding-top:7px;border-top:1px solid var(--line)}
  .side .grp{display:block;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink);margin:0 8px 3px;padding:0}
  .side .sgrp .items{display:flex;flex-direction:column;gap:1px;margin-left:15px;padding-left:4px;border-left:1px solid var(--line)}
  .side .sgrp .items button{font-size:13px;padding:4px 8px;white-space:nowrap}
  .side button span.lbl{overflow:hidden;text-overflow:ellipsis;min-width:0}
  .side .sgrp .items button .ic{width:15px;height:15px}
  .side button.later{color:var(--faint)}
  .side button.later .ic{opacity:.6}
  .side .solo{margin-top:6px;padding-top:7px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:1px}
  .side .foot{margin-top:auto;padding:12px 8px 0;font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:1px;line-height:1.3}
  .side .foot b{font-weight:600;color:var(--ink);display:flex;align-items:center;gap:6px}
  .top .brandrow{display:none}
  .top{padding-top:calc(env(safe-area-inset-top,0px) + 14px)}
  .top .wrap{padding-bottom:12px}
  .searchbox{display:flex}
  .wrap{max-width:1120px;margin-left:0;padding-left:32px;padding-right:32px}
  .tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
  .modstrip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dock{left:244px}
  .big{font-size:24px}
  main{padding-block:16px 32px;gap:12px}
  .btn{min-height:38px;padding:8px 14px;font-size:14px}
  .btns .btn{flex:0 1 auto;width:auto}
  .lrow{font-size:14px}
}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}

/* additions for the live app */
.vlist{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.vlist .vrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:8px 14px;border:0;border-bottom:1px solid var(--line2);background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%}
.vlist .vrow:last-child{border-bottom:0}
.vlist .vrow:hover{background:var(--bg)}
.vlist .vrow b{font-weight:500;overflow-wrap:anywhere}
.vlist .vrow .sub{grid-column:1;font-size:12px;color:var(--muted)}
.vlist .vrow .chip{grid-column:2;grid-row:1/span 2;align-self:center}
.field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.field input,.field select{font:inherit;font-size:15px;color:var(--ink);background:var(--surface);border:1px solid var(--shadow);border-radius:8px;padding:8px 11px}
.swatch{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-right:6px;border:1px solid var(--line)}
.perm{display:flex;flex-wrap:wrap;gap:6px}
.perm span{font-size:12px;background:var(--brand-soft);color:var(--ink);border-radius:6px;padding:2px 7px}
.err{background:var(--red-soft);color:var(--red);border-radius:10px;padding:12px 14px;font-size:14px}
.gate{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.gate .card{max-width:420px;width:100%;gap:14px}
body.bare{padding:0}
body.bare .side,body.bare nav.tabs,body.bare .top{display:none!important}
@media (min-width:900px){body.bare{padding:0}}
.lrow.tapcard{border-bottom:1px solid var(--line2);padding:9px 0;background:none}.lrow.tapcard:last-child{border-bottom:0}

/* Screen switching: the page being left fades (after a short pause, so quick loads never flicker) until the next one arrives. */
main.busy{opacity:.45;pointer-events:none;transition:opacity .15s ease .15s}
