/* The admin chrome: tokens from platform/viewer/shell.css, chrome from design/canvas-kit/admin.css
   (A1), layout from DESIGN_SYSTEM.md section 3. Light is the default. Nothing here carries a word,
   and no inline style reaches the page, because the policy refuses one. */
:root{
  color-scheme:light;
  --bg:#f6f7fb;--bg2:#ffffff;--sunk:#eef0f5;--border:#e6e8ef;
  --text:#0f172a;--text2:#475569;
  --blue:#4f46e5;--blue-t:#eef0fe;
  /* A client's accent (U27, DESIGN_SYSTEM §8b): a fill or a border on what a person acts on, never text. Unset, it is --blue. */
  --org-accent:var(--org-accent-light,var(--blue));--focus:var(--org-accent);
  --amber:#8b5905;--amber-t:#fdf1df;--amber-line:#c98a1b;
  --ok:#0a7a6c;--rose:#c02648;--on-brand:#ffffff;
  --veil:rgba(15,23,42,.45);--shadow:0 12px 32px rgba(15,23,42,.16);
  --radius:12px;--pill:999px;--gn:52px;--rail:220px;--pnav:56px;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#080c14;--bg2:#0d1220;--sunk:#141a2a;--border:rgba(255,255,255,.1);
  --text:#e8ecf4;--text2:#a2adc0;
  --blue:#818cf8;--blue-t:#1c2140;
  --org-accent:var(--org-accent-dark,var(--blue));
  --amber:#f0a94a;--amber-t:#33260f;--amber-line:#f0a94a;
  --ok:#2dd4bf;--rose:#fb7185;--on-brand:#0d1220;
  --veil:rgba(0,0,0,.6);--shadow:0 12px 32px rgba(0,0,0,.6);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.5 var(--sans);overflow-wrap:anywhere}
h1,h2,h3,p{margin:0}
ul{margin:0;padding:0;list-style:none}
button,select,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#page-title:focus{outline:none}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.a{display:grid;grid-template-rows:var(--gn) 1fr;min-height:100dvh}
.gn{position:relative;z-index:30;display:flex;align-items:center;gap:10px;padding:0 20px;background:var(--bg2);border-bottom:1px solid var(--border)}
.gn .sp{flex:1}
.brand{font-weight:700}
.ten{font-size:.85rem;color:var(--text2)}
.gb{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;background:var(--bg);border:1px solid var(--border);border-radius:8px;font-size:.8rem;font-weight:600}
.menu{display:none}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--blue-t);color:var(--blue);font-size:.75rem;font-weight:700;flex:none}
.who{position:relative}
.pop{position:absolute;right:0;top:40px;z-index:40;width:240px;padding:12px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}

.ab{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);min-height:0}
.rl{background:var(--bg2);border-right:1px solid var(--border);padding:8px 0;overflow-y:auto}
.rail-tenant{display:none}
.rs{padding:12px 16px 4px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text2)}
.ri{display:flex;justify-content:space-between;gap:8px;min-height:36px;align-items:center;padding:0 16px;border-left:3px solid transparent;color:var(--text2);font-size:.9rem;text-decoration:none}
.ri:hover{background:var(--sunk)}
.ri.on{background:var(--blue-t);border-left-color:var(--org-accent);color:var(--blue);font-weight:600}
.mn{min-width:0;display:flex;flex-direction:column}
.page{display:flex;flex-direction:column;min-height:100%}
.ph{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 24px;background:var(--bg2)}
.ph h1{font-size:1.15rem;font-weight:700}
.sub{margin-top:2px;font-size:.85rem;color:var(--text2)}
.cn{padding:16px 24px;min-width:0}
.tabs{display:flex;gap:4px;padding:0 24px;background:var(--bg2);border-bottom:1px solid var(--border);overflow-x:auto}
.tab{min-height:44px;padding:0 10px;background:none;border:0;border-bottom:2px solid transparent;color:var(--text2);font-size:.85rem;font-weight:600;white-space:nowrap}
.tab.sel{color:var(--blue);border-bottom-color:var(--org-accent)}
.tabpick{display:none}
/* W35: the seven project tabs, with the kind's tab after a divider, and the open tab's items beneath. */
.tabdiv{flex:none;align-self:center;width:1px;height:20px;margin:0 6px;background:var(--border)}
.subtabs{display:flex;gap:4px;padding:0 24px;background:var(--bg2);border-bottom:1px solid var(--border);overflow-x:auto}
.stab{flex:none;white-space:nowrap;min-height:40px;padding:0 12px;background:none;border:0;border-bottom:2px solid transparent;color:var(--text2);font:inherit;font-size:.85rem;font-weight:600}
.stab.sel{color:var(--text);border-bottom-color:var(--org-accent)}

.cd{padding:0 16px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}
.stc{max-width:420px;padding:12px 16px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.stc h2{font-size:.95rem;font-weight:700;margin-bottom:6px}
.stc p{font-size:.86rem;color:var(--text2)}
table.tb{width:100%;border-collapse:collapse;font-size:.9rem}
.tb th{padding:8px;text-align:left;font-size:.8rem;font-weight:600;color:var(--text2);border-bottom:1px solid var(--border)}
.tb td{padding:8px;text-align:left;border-bottom:1px solid var(--border);overflow-wrap:break-word}
.tb tr:last-child td{border-bottom:0}
.rowlink{text-decoration:none}
.rowlink:hover{text-decoration:underline}
.cards{display:none}
.lst{display:flex;flex-direction:column;gap:2px;padding:12px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);text-decoration:none}

.f{display:flex;flex-direction:column;gap:3px;min-width:0;margin-top:10px}
.f label,.lb{font-size:.78rem;font-weight:600;color:var(--text2)}
.ip{display:flex;align-items:center;min-height:36px;padding:6px 10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;font-size:.88rem;color:var(--text);min-width:0}
.ip[aria-invalid="true"]{border-color:var(--rose)}
.hp{font-size:.76rem;color:var(--text2)}
.stc p.hp{font-size:.76rem;margin-top:6px}
.err,.stc p.err{font-size:.78rem;color:var(--rose);font-weight:600;margin-top:6px}
.pl{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:var(--pill);border:1px solid var(--border);background:var(--bg);font-size:.72rem;font-weight:700;white-space:nowrap;color:var(--text2)}
.pl.ok{color:var(--ok);border-color:var(--ok)}
.pl.am{color:var(--amber);background:var(--amber-t);border-color:var(--amber-line)}
.pl.bl{color:var(--blue);background:var(--blue-t);border-color:var(--blue)}
.nt{padding:8px 12px;border-radius:8px;background:var(--blue-t);font-size:.85rem}
.nt.am{background:var(--amber-t);color:var(--text);border:1px solid var(--amber-line)}
.pri{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;background:var(--org-accent);border:1px solid var(--org-accent);border-radius:8px;color:var(--on-brand);font-size:.88rem;font-weight:600}
.pri[disabled]{background:var(--sunk);border-color:var(--border);color:var(--text2)}
.gh{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;background:var(--bg2);border:1px solid var(--border);border-radius:8px;font-size:.85rem;font-weight:600;text-decoration:none}
.gh[aria-pressed="true"]{background:var(--blue-t);border-color:var(--org-accent);color:var(--blue)}
.gh[disabled]{background:var(--sunk);color:var(--text2);cursor:not-allowed}
.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.row.sb{justify-content:space-between}
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filters .search{flex:1 1 240px;max-width:300px}
.filters select{max-width:200px}
.onphone{display:none}
.mt{margin-top:10px}
.sm{font-size:.8rem;color:var(--text2)}

.solo{grid-template-rows:var(--gn) 1fr}
.mid{display:flex;align-items:center;justify-content:center;padding:16px}
.signin{width:100%;display:flex;flex-direction:column}
.signin h1{font-size:1.15rem;font-weight:700;margin-bottom:6px}
.signin .pri{width:100%}

.veil{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--veil);overflow-y:auto}
.dialog{width:640px;max-width:100%;max-height:100%;margin:auto;padding:20px;overflow-y:auto;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.dialog h2{font-size:1.1rem;font-weight:700}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:12px}
.opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:76px;padding:10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;text-align:left}
.opt[aria-pressed="true"]{border:2px solid var(--org-accent)}
.fg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
textarea.ip{min-height:76px;resize:vertical}
.cd.pad{padding:12px 16px;overflow-x:visible}
.cd.pad h2{font-size:.95rem;font-weight:700}
.c2{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start}
.pairs{display:flex;flex-direction:column;gap:12px}
.tb td.nu{text-align:right}
.tb th.nu{white-space:nowrap}
.c2.even{grid-template-columns:repeat(2,minmax(0,1fr))}
.c2.lead{grid-template-columns:320px minmax(0,1fr)}
.c3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stack{display:flex;flex-direction:column;gap:12px;min-width:0}
.c2.stack{display:grid}
.pick{display:flex;flex-direction:column;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.pick li{padding:6px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.pick li:last-child{border-bottom:0}
.f.w{grid-column:1/-1}
.ip.ro{background:var(--sunk);color:var(--text2)}
.cks{grid-column:1/-1;display:flex;flex-direction:column;gap:2px;min-width:0;margin:10px 0 0;padding:0;border:0}
.ck,.f label.ck{display:flex;align-items:center;gap:8px;min-height:32px;font-size:.88rem;font-weight:400;color:var(--text)}
.cks legend{padding:0}
/* P5 p5g-14: a Viewer's screen, drawn whole and disabled, laid out as if the fieldset were not there. */
fieldset.ro{border:0;margin:0;padding:0;min-width:0}
fieldset.ro[disabled] :is(button,input,select,textarea){cursor:not-allowed}
.ck input{width:16px;height:16px;margin:0;flex:none}
details.cd summary{min-height:32px;cursor:pointer}
.save{min-width:96px}
.logo{display:block;max-width:100%;max-height:80px;margin-top:8px;object-fit:contain}
.plain{display:flex;flex-direction:column;gap:4px;font-size:.88rem}
.lk{align-self:flex-start;padding:0;background:none;border:0;color:var(--blue);font-size:.76rem;font-weight:600;text-decoration:underline}
.tl{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin:10px 0 0;padding:0;list-style:none}
.tl li{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;font-size:.78rem;color:var(--text2)}
.tl b{color:var(--text);font-size:.85rem}
.tl li.h{background:var(--amber-t);border-color:var(--amber-line);color:var(--text)}
.tl li.p{border-style:dashed}

.big,.stc p.big{font-size:1.5rem;color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.pnav{display:none}
.ico{width:22px;height:22px;background:currentColor;mask:var(--i) center/contain no-repeat}
.ico-home{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E")}
.ico-projects{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E")}
.ico-folders{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 7h6l2 2h10v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E")}
.ico-more{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='5' cy='12' r='1.5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='19' cy='12' r='1.5'/%3E%3C/svg%3E")}

.card{padding:12px 16px;margin-bottom:12px}
.card h2{font-size:.95rem;font-weight:700}
.scrollx{position:relative;overflow-x:auto}
.nmt{min-width:760px}
.gh.nb,.pri.nb{min-height:32px;padding:0 10px;font-size:.8rem}
.nw{margin:8px 0 0;padding:8px;background:var(--sunk);border-radius:8px;font:400 .78rem/1.5 var(--sans);white-space:pre-wrap;overflow-wrap:anywhere}
.vh:focus-visible + .filepick{outline:2px solid var(--focus);outline-offset:2px}
.filepick{cursor:pointer;white-space:nowrap}
.cd.card.drop{display:block;padding:32px 20px;text-align:center;border-style:dashed}
tr.marked td{background:color-mix(in srgb,var(--blue) 10%,transparent)}
tr.marked:focus{outline:2px solid var(--blue);outline-offset:-2px}
.filename{display:block;margin-top:4px;overflow-wrap:anywhere}
.block{display:block}
.steps{display:flex;gap:8px;margin:0 0 12px;padding:0;list-style:none;font-size:.85rem;color:var(--text2)}
.steps li{padding:3px 10px;border:1px solid var(--border);border-radius:var(--pill)}
.steps li.on{color:var(--blue);border-color:var(--blue);font-weight:700}
.steps.long{flex-wrap:wrap}
.mb{margin-bottom:12px}
.nu{text-align:right;font-variant-numeric:tabular-nums}
.tb th.nu,.tb td.nu{text-align:right}
.tb.nums th,.tb.nums td.nu{white-space:nowrap;overflow-wrap:normal}
.tb.nums tbody th{font-weight:600;color:var(--text)}
.tb.nums tbody tr:last-child th{border-bottom:0}
.nt.ro{background:var(--bg2);border:1px solid var(--rose)}
.nt.ro b{color:var(--rose)}
.pl.ro{color:var(--rose);border-color:var(--rose)}
.sectionhead{font-size:1rem;font-weight:700}
.ip.ro{background:var(--sunk);display:block}
.mapgrid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;align-items:start}
.maptable{min-width:980px}
.batchbar{margin-top:10px;padding:10px 12px;border:1px solid var(--blue);border-radius:8px;background:var(--blue-t)}
.batchfields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.maptable .cell{width:100%;min-width:104px;font-size:.8rem}
tr.unmapped{background:var(--amber-t)}
.asks{list-style:none}
.ask{padding:10px 0;border-bottom:1px solid var(--border)}
.ask:last-child{border-bottom:0}
.ask h3{font-size:.9rem;font-weight:700}
.side .card h2{margin-bottom:4px}
#decl-panel h3{font-size:.85rem;font-weight:700}
.rungs,.heldlist{list-style:none;margin-top:6px}
.rungs li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid var(--border);font-size:.88rem}
.rungs li:last-child{border-bottom:0}
.side .ip{width:100%}

.scrim{position:fixed;inset:0;z-index:40;width:100%;padding:0;border:0;background:var(--veil)}
.navscrim{z-index:20}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:50;display:flex;flex-direction:column;width:min(440px,100vw);background:var(--bg2);border-left:1px solid var(--border);box-shadow:var(--shadow)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--gn);padding:0 16px;border-bottom:1px solid var(--border)}
.drawer-head h2{font-size:1rem;font-weight:700}
.drawer-body{padding:8px 16px 24px;overflow-y:auto}
.drawer details{border-bottom:1px solid var(--border)}
.drawer summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.drawer details p{padding-bottom:12px;font-size:.88rem;color:var(--text2)}


.ct{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.ct:not(:has(.cts)){grid-template-columns:minmax(0,1fr)}
.ctm,.cts{display:flex;flex-direction:column;gap:12px;min-width:0}
.pad{padding:12px 16px}
.pad h2,.drop h2{font-size:.95rem;font-weight:700}
.pad h3{font-size:.85rem;font-weight:700}
.drop{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;background:var(--bg2);border:1px dashed var(--text2);border-radius:var(--radius)}
.drop input:focus-visible + label{outline:2px solid var(--focus);outline-offset:2px}
label.pri{cursor:pointer}
.linky{padding:0;background:none;border:0;color:var(--blue);font-weight:600;text-align:left;text-decoration:underline}
tr.cur td{background:var(--blue-t)}
.pl.bad{color:var(--rose);border-color:var(--rose)}
.nt.bad{background:var(--bg);color:var(--text);border:1px solid var(--rose)}
.meter{display:block;width:100%;height:8px;margin:8px 0 4px;accent-color:var(--blue)}
.chk{display:flex;align-items:center;gap:8px;min-height:36px;font-size:.88rem}
.chk input{width:18px;height:18px;margin:0;accent-color:var(--blue)}
.facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:10px 0 0;font-size:.85rem}
.facts dt{color:var(--text2)}
.facts dd{margin:0}
.hist{display:flex;flex-direction:column;gap:6px;font-size:.85rem}
.hist .sm{display:block}
.thm{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;gap:16px;align-items:start}
.thg{margin-top:12px;font-size:.78rem;font-weight:700;color:var(--text2)}
.thls{display:flex;flex-direction:column;list-style:none;margin:4px 0 0;padding:0}
.thl{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:4px 8px;background:none;border:0;border-left:2px solid transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.thl[aria-pressed="true"]{background:var(--blue-t);border-left-color:var(--blue)}
.thl span:last-child{flex:none}
.thks{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:10px}
.thk{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:var(--bg);border:1px solid var(--border);border-radius:8px}
.thk b{font-size:1.05rem}
.thq{display:flex;flex-direction:column;gap:10px;list-style:none;margin:10px 0 0;padding:0}
.thq p{overflow-wrap:anywhere}
.subs{display:flex;gap:4px;margin:0 0 12px;border-bottom:1px solid var(--border);overflow-x:auto}
.st{flex:none;white-space:nowrap;min-height:44px;padding:0 12px;background:none;border:0;border-bottom:2px solid transparent;color:var(--text2);font:inherit;font-weight:600}
.st.sel{color:var(--text);border-bottom-color:var(--blue)}
.player{display:block;width:100%}
.lns{list-style:none;margin:0;padding:0}
.ln{display:grid;grid-template-columns:64px 96px minmax(0,1fr) auto;gap:8px 12px;align-items:start;padding:8px 4px;border-bottom:1px solid var(--border);font-size:.88rem}
.ln:last-child{border-bottom:0}
.ln.cur{background:var(--blue-t)}
.tc{font-variant-numeric:tabular-nums}
/* Redaction (A4 frame 4) and an analysis as blocks (A9 frame 8). */
mark.sg{padding:0 2px;border-radius:2px;background:var(--amber-t);color:var(--text)}
.rm{padding:0 2px;border-radius:2px;background:var(--bg3);color:var(--text2);font-weight:600}
.ln-body .row{margin-top:4px}
.bsm{min-height:44px;padding:0 10px;font-size:.8rem}
.blks{display:flex;flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.blk{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--border);border-radius:var(--radius)}
.ln-who{color:var(--text2)}
.ln-body,.ln-edit{display:flex;flex-direction:column;gap:4px;min-width:0}
.ln-end{display:flex;flex-direction:column;align-items:flex-end;gap:6px}

.stack{display:flex;flex-direction:column;gap:12px}
/* A table stays a table on a desktop. No higher than .stack, so the phone's stacking still wins. */
:where(table).stack{display:table}
.db{display:block}
.grow{flex:1;min-width:0}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.8rem}
.shape-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.slot{min-width:0;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius)}
.slot.ok{border-color:var(--ok)}
.shape-many{height:auto}
@media (max-width:900px){.shape-slots{grid-template-columns:minmax(0,1fr)}}
.figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.fig{padding:12px 16px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.figs.four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.figs.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fig p{margin:0}.fig .big{margin:4px 0}
.cols2{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px;align-items:start}
.box{padding:12px 16px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.box h2,.eds h2{font-size:.95rem;font-weight:700}
.tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.tier{padding:8px 10px;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere}
.tier.win{border-color:var(--blue);background:var(--blue-t)}
.c2.texts{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.texts .side{align-self:start}
.tb tr.sel td{background:var(--blue-t)}
.li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.li:last-child{border-bottom:0}
tr[data-org] .lk{display:inline-flex;align-items:center}
tr.dp1 td:first-child{padding-left:24px}
tr.dp2 td:first-child{padding-left:44px}
tr.dp3 td:first-child{padding-left:64px}
.tl td{vertical-align:top}
.plain{border:0;padding:0;min-width:0}
.gridcell{min-height:36px;min-width:64px;padding:4px 8px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font:inherit;font-size:.85rem;cursor:pointer}
.gridcell[aria-pressed=true]{background:var(--blue-t);border-color:var(--org-accent)}
.rdrs{display:flex;flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.rdr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.rdr span{overflow-wrap:anywhere}
.wide-btn{width:100%}
.rrbar{align-items:flex-end;flex-wrap:wrap}
.ppl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
@media (min-width:1500px){.ppl{grid-template-columns:minmax(0,1fr) 340px}}
.structure td{vertical-align:top}
.structure td.deep{padding-left:24px}
.structure-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.structure-notes details{margin-top:8px}
@media (max-width:768px){.structure td.na{display:none}.structure td.deep{padding-left:0}}
/* P5 U9: the folder tree beside a folder's contents, stacked on a phone. */
.fold{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:12px;align-items:start}
.tree ul ul{padding-left:14px}
.tree li{padding:2px 0}
.tree .linky[aria-current="true"]{color:var(--text);text-decoration:none}
@media (max-width:768px){.fold{grid-template-columns:minmax(0,1fr)}}
.rp{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start}
.eds{display:flex;flex-direction:column;gap:8px}
.ed{display:flex;flex-direction:column;gap:4px;padding:10px;background:var(--bg2);border:1px solid var(--border);border-radius:10px;text-decoration:none}
.ed[aria-current="true"]{border:2px solid var(--org-accent)}
.vw{display:flex;flex-direction:column;gap:8px;min-width:0}
.rf{display:block;width:100%;height:calc(100dvh - 200px);min-height:520px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.onphoneonly{display:none}
a.pri{text-decoration:none}
.fl{display:flex;flex-direction:column;gap:8px}
.fnd{padding:12px 14px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.fnd.done{background:var(--bg)}
.fnd.op{border-color:var(--amber-line)}
.fnd h2{font-size:.92rem;font-weight:700}
.fnd p,.fnd li{font-size:.85rem;color:var(--text2)}
.fnr{align-items:flex-start;flex-wrap:nowrap;gap:14px}
.fnd .ans{flex:none;width:340px;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.fnd .ans .linky{align-self:flex-end}
.rl-list{margin:6px 0 0;padding-left:18px}
.mini{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 10px;background:var(--bg2);border:1px solid var(--border);border-radius:8px;font-size:.84rem;color:var(--text);text-align:left}
.mini .dotr{flex:none;width:12px;height:12px;border:1px solid var(--text2);border-radius:50%}
.mini[aria-pressed="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.mini[aria-pressed="true"] .dotr{background:var(--blue);border-color:var(--blue)}

/* Report Display, Preview and Distribution (A7). */
.stbar{display:flex;gap:4px;overflow-x:auto;padding-bottom:8px}
.stb{min-height:36px;padding:0 10px;background:none;border:1px solid transparent;border-radius:8px;color:var(--text2);font-size:.8rem;font-weight:600;white-space:nowrap}
.stb.sel{background:var(--bg2);border-color:var(--border);color:var(--text)}
.ol{margin-top:8px}
.olr{display:grid;grid-template-columns:22px minmax(0,1fr) auto 76px;align-items:center;gap:8px;min-height:44px;border-bottom:1px solid var(--border);font-size:.86rem}
.olr:last-child{border-bottom:0}
.olr .nr{font-size:.76rem;color:var(--text2);text-align:right}
.olr .mv{display:flex;gap:4px}
.olr .mv button{width:36px;height:32px;background:var(--bg);border:1px solid var(--border);border-radius:6px;font-size:.8rem}
.olr.off{color:var(--text2)}
.tgl{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0;background:none;border:0;font-size:.82rem;text-align:left}
.tgl[disabled]{cursor:not-allowed;color:var(--text2)}
.tg{display:inline-flex;align-items:center;width:38px;height:22px;padding:2px;border:1px solid var(--text2);border-radius:var(--pill);background:var(--bg);flex:none}
.tg i{display:block;width:16px;height:16px;border-radius:50%;background:var(--text2)}
.tg.on{justify-content:flex-end;background:var(--blue);border-color:var(--blue)}
.tg.on i{background:var(--on-brand)}
.hint{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--blue-t);border-radius:8px;font-size:.85rem}
.rf{display:block;width:100%;height:640px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}
.rf.offstage{position:absolute;left:-9999px;top:0;width:1024px;height:600px;visibility:hidden}
@media (max-width:768px){
  .olr{grid-template-columns:22px minmax(0,1fr) auto}
  .olr .mv{display:none}
  .stb,.tgl{min-height:44px}
  .rf{height:520px}
  .gn{padding:0 16px}
  .gb,.avatar,.ri,.gh,.pri,.opt,.gh.nb,.pri.nb{min-height:44px}
  .gb{min-width:44px;height:44px}
  .avatar{width:44px;height:44px}
  .menu{display:inline-flex}
  .ten{display:none}
  .barred .menu{display:none}
  .barred .ten{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .barred .gn .sp{flex:1 0 0}
  .barred .brand{flex:none}
  .barred .gn .gb,.barred .who{flex:none}
  .barred .ab{padding-bottom:var(--pnav)}
  .barred .rl{bottom:var(--pnav)}
  .pnav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;min-height:var(--pnav);padding-bottom:env(safe-area-inset-bottom);background:var(--bg2);border-top:1px solid var(--border)}
  .pn{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:0;background:none;border:0;color:var(--text2);font-size:.72rem;font-weight:600;text-decoration:none}
  .pn.on{color:var(--blue)}
  .ab{grid-template-columns:minmax(0,1fr)}
  .rl{position:fixed;top:var(--gn);left:0;bottom:0;z-index:30;width:min(280px,85vw);border-bottom:0;visibility:hidden;transform:translateX(-100%)}
  .rl.open{visibility:visible;transform:none}
  .rail-tenant{display:block;padding:8px 16px;font-size:.85rem;color:var(--text2)}
  .ph,.cn{padding-left:16px;padding-right:16px}
  .tabs,.subtabs,.wide,.seek,.ondesk{display:none}
  .onphone{display:inline-flex;width:100%}
  .filters{align-items:stretch;flex-direction:column}
  .filters .search,.filters select{max-width:none;flex:none}
  .fg,.c2,.c2.even,.c2.lead,.c3{grid-template-columns:minmax(0,1fr)}
  .ck,.f label.ck,.lk{min-height:44px}
  .save{width:100%}
  .veil{padding:0}
  .dialog{min-height:100%;border:0;border-radius:0}
  .tabpick{display:flex;flex-direction:column;gap:3px;padding:8px 16px;background:var(--bg2);border-bottom:1px solid var(--border)}
  .tabpick .ip{min-height:44px}
  .cards{display:flex;flex-direction:column;gap:10px}
  .stc{max-width:none}
  .ip{min-height:44px}
  .stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  table.stack,.stack tbody,.stack tr,.stack td{display:block;width:auto}
  .stack tr{padding:10px 0;border-bottom:1px solid var(--border)}
  .stack td{padding:3px 0;border:0}
  .slots thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .slots,.slots tbody,.slots tr,.slots th,.slots td{display:block;width:auto}
  .slots tr{padding:8px 0;border-bottom:1px solid var(--border)}
  .slots th,.slots td{padding:2px 0;border:0}
  .slots .filepick{display:inline-flex;align-items:center;white-space:normal}
  .mapgrid{grid-template-columns:minmax(0,1fr)}
  .ct{grid-template-columns:minmax(0,1fr)}
  .thm{grid-template-columns:minmax(0,1fr)}
  .thm .cts{order:0}
  .thl{min-height:44px}
  .cts{order:-1}
  .rv .cts{order:0}
  .ln{grid-template-columns:auto minmax(0,1fr)}
  .deskonly{display:none}
  .ln-body,.ln-edit{grid-column:1 / -1}
  .ln-end{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}
  .chk{min-height:44px}
  .c2.texts{grid-template-columns:minmax(0,1fr)}
  .texts .side{order:-1}
  .tiers{grid-template-columns:minmax(0,1fr)}
  .chk input{width:24px;height:24px}
  .linky{min-height:44px}
  .wide.err{display:none}
  .figs,.figs.four,.cols2,.rp{grid-template-columns:minmax(0,1fr)}
  .onphoneonly{display:inline-flex}
  .fmoves{width:100%}
  .fnr{flex-direction:column}
  .fnd .ans{width:100%}
  .mini{min-height:44px}
  .fl .fnd:not(.cur){display:none}
  .ph .row{width:100%}
  .search{width:100%;max-width:none}
  .ed{min-height:44px}
  .li{flex-wrap:wrap}
  .li .grow{flex-basis:100%}
  .tl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .tl,.tl tbody,.tl tr,.tl td{display:block;width:auto}
  .tl tr{padding:10px 0;border-bottom:1px solid var(--border)}
  .tl td{padding:2px 0;border:0}
  .eds{display:none}
  .eds.open{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;max-height:80dvh;overflow-y:auto;padding:16px;background:var(--bg2);border-top:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;box-shadow:var(--shadow)}
  .rf{height:calc(100dvh - 240px);min-height:420px}
}

/* Packs (A3 frame 4). */
.ip.num{width:80px}
.pk th,.pk td{overflow-wrap:normal}
.pk tbody th{min-width:96px}
.qth{font-size:.9rem;font-weight:700}
.ip.mon{width:104px}
details.tr{margin-top:8px}
details.tr summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:.85rem;font-weight:600}
details[data-restated-math] summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
details.tr ul{padding-left:18px}
.qt{margin:8px 0 0;padding:8px 12px;border-left:3px solid var(--blue);background:var(--sunk)}

/* Commentary and Audiences (A3 frames 3, 5, 6). The editor keeps its own children, and a chip inside it
   is one unit, so the caret steps over it and it cannot be typed into. */
.note-edit{display:block;min-height:96px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.note-edit:focus{outline:2px solid var(--focus,var(--blue));outline-offset:1px}
.note-edit .pl{user-select:all;white-space:nowrap}
.note-edit[aria-invalid="true"]{border-color:var(--rose)}
.figlist{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.figpick{display:flex;flex-direction:column;gap:2px;width:100%;min-height:36px;padding:6px 8px;background:none;border:0;border-radius:6px;color:var(--text);font-size:.85rem;text-align:left}
.figpick:hover{background:var(--sunk)}
.figpick b{font-weight:600}
.figpick span{color:var(--text2);font-size:.76rem}
.figpick .nu{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.85rem}
.gridcell{min-height:32px;padding:2px 10px;border-radius:999px;border:1px solid var(--border);background:none;color:var(--text2);font-size:.78rem;font-weight:600}
.gridcell[aria-pressed="true"]{color:var(--ok);border-color:var(--ok)}
.switch[aria-checked="true"]{color:var(--blue);border-color:var(--blue)}
@media (max-width:640px){
  .figpick,.gridcell{min-height:44px}
  .qtable .ck{min-height:44px}
  .phonelist{flex-direction:column;gap:8px}
}

/* A timed sheet's parts in order (W39-S2, A12 frame 7). Each part is one cell, so a long sheet wraps;
   the most named favourite and least favourite are marked by colour and named for a screen reader. */
.strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:4px;list-style:none;padding:0}
.strip li{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px;border-radius:6px;background:var(--sunk);border:1px solid var(--border);font-size:.82rem;overflow-wrap:anywhere}
.strip li.fav{background:var(--blue);border-color:var(--blue);color:var(--on-brand)}
.strip li.fav .sm{color:var(--on-brand)}
.strip li.least{background:var(--amber-t);border-color:var(--amber-line)}
.meter.am{accent-color:var(--amber)}

/* P5 U27: portal parity. The client's logo beside Piaza's mark; the second check; the licence agreement;
   My norms' two lists; branding's measured accent and its preview; the install banner. */
.orglogo{width:28px;height:28px;border-radius:6px;object-fit:contain;flex:none}
.orglogo.big{width:56px;height:56px;border:1px solid var(--border);background:var(--bg2)}
.signin .code{font-size:1.25rem;letter-spacing:.2em}
.signin .ways{flex-wrap:wrap}
.welcome{margin-bottom:12px;color:var(--text2)}
.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:3px;background:var(--sunk);border:1px solid var(--border);border-radius:10px}
.segb{min-height:36px;padding:0 12px;background:none;border:1px solid transparent;border-radius:8px;font-size:.85rem;font-weight:600;color:var(--text2)}
.segb[aria-pressed="true"]{background:var(--bg2);border-color:var(--org-accent);color:var(--text)}
.eula{align-items:flex-start;padding:24px 16px}
.eula-card{width:100%;max-width:760px}
.eula-org{font-weight:700}
.eula-meta{margin-top:8px}
.eula-text{max-height:48vh;overflow-y:auto;margin-top:12px;padding:12px 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}
.eula-text section+section{margin-top:12px}
.eula-text h2{font-size:.95rem}
.eula-changes{margin-top:12px;padding:12px 16px;border-left:3px solid var(--amber-line);background:var(--amber-t)}
.eula-changes h2{font-size:.95rem}
.eula-full{margin-top:12px}
.eula-full summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.eula-tick{display:flex;gap:10px;align-items:flex-start;min-height:44px;margin-top:16px;font-weight:600}
.eula-tick input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--org-accent)}
.eula-actions{justify-content:flex-end;flex-wrap:wrap}
.profile .ip{width:100%}
.brandprev{margin-top:12px;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text)}
.brandprev[data-theme="light"]{--bg:#f6f7fb;--bg2:#ffffff;--text:#0f172a;--text2:#475569;--border:#e6e8ef;--on-brand:#ffffff;--blue:#4f46e5;--amber:#8b5905;--amber-t:#fdf1df;--amber-line:#c98a1b;--ok:#0a7a6c;--rose:#c02648}
.brandprev[data-theme="dark"]{--bg:#080c14;--bg2:#0d1220;--text:#e8ecf4;--text2:#a2adc0;--border:rgba(255,255,255,.1);--on-brand:#0d1220;--blue:#818cf8;--amber:#f0a94a;--amber-t:#33260f;--amber-line:#f0a94a;--ok:#2dd4bf;--rose:#fb7185}
.brandprev .sample{cursor:default}
.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ct aside .cols{grid-template-columns:minmax(0,1fr)}
.swatch{width:44px;height:44px;padding:2px;border:1px solid var(--border);border-radius:8px;background:var(--bg2)}
.ip.hex{max-width:11ch;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media (max-width:768px){.cols{grid-template-columns:minmax(0,1fr)}.segb,.swatch{min-height:44px}.eula{padding:12px}}

