:root{
  --blue:#219DBF; --blue-deep:#17809d; --blue-soft:#cfe9f2; --slate:#6A7E96;
  --bg:#f4f8fa; --surface:#ffffff; --ink:#1b2a36; --muted:#5d6f80;
  --line:#d6e2ea; --err:#c62828; --err-bg:#fdecec;
  --radius:14px;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0f1a22; --surface:#172631; --ink:#e7f0f5; --muted:#9fb1c0;
    --line:#2a3d4b; --err:#ef6b6b; --err-bg:#3a1c1f; --blue-deep:#5cc0dd; --blue-soft:#1d4a5a;
  }
}
:root[data-theme="dark"]{
  --bg:#0f1a22; --surface:#172631; --ink:#e7f0f5; --muted:#9fb1c0;
  --line:#2a3d4b; --err:#ef6b6b; --err-bg:#3a1c1f; --blue-deep:#5cc0dd; --blue-soft:#1d4a5a;
}
*,*::before,*::after{box-sizing:inherit}
html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);
  font-family:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased}
.app{max-width:520px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}
header{background:var(--blue);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  position:sticky;top:env(safe-area-inset-top,0px);z-index:5}
header .title{font-weight:700;font-size:18px;cursor:pointer}
header .who{font-size:14px;text-align:right}
header .role{display:inline-block;background:#fff;color:var(--blue-deep);border-radius:999px;padding:0 8px;font-size:12px;font-weight:700;margin-left:4px}
header button{background:rgba(255,255,255,.18);color:#fff;border:0;border-radius:8px;padding:5px 10px;font:inherit;font-size:13px;cursor:pointer;margin-top:3px}
header .left{display:flex;align-items:center;gap:10px}
header .back{margin-top:0;font-size:16px;font-weight:700;padding:6px 12px 6px 8px}
header .back[hidden]{display:none}
main{flex:1;padding:22px 18px 40px}
h1{font-size:26px;line-height:1.2;margin:4px 0 6px}
h2{font-size:19px;margin:28px 0 10px}
p.lead{color:var(--muted);margin:0 0 22px}
label{display:block;font-weight:700;margin:18px 0 6px}
input,select,textarea{width:100%;font:inherit;color:var(--ink);background:var(--surface);border:2px solid var(--line);border-radius:10px;padding:12px 14px}
textarea{min-height:80px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue)}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.btn{display:block;width:100%;font:inherit;font-weight:700;font-size:18px;border:0;border-radius:var(--radius);padding:16px;cursor:pointer;margin-top:14px;background:var(--blue);color:#fff}
.btn:active{transform:translateY(1px)}
.btn.secondary{background:transparent;color:var(--blue-deep);border:2px solid var(--line)}
.btn.error{background:var(--err);color:#fff}
.btn .sub{display:block;font-weight:400;font-size:14px;opacity:.85}
.weeks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.week{aspect-ratio:1/0.8;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:var(--radius);font:inherit;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.week b{font-size:44px;line-height:1;color:var(--blue-deep)}
.week span{color:var(--muted);font-size:15px}
.week:hover{border-color:var(--blue)}
.chip{display:inline-block;background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:4px 12px;font-size:14px;margin-right:6px}
.stats{display:flex;gap:10px;margin:4px 0 6px}
.stat{flex:1;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.stat b{display:block;font-size:28px;line-height:1.1}
.stat span{font-size:14px;color:var(--muted)}
.stat.errs b{color:var(--err)}
.initials{font-size:32px;letter-spacing:.2em;text-transform:uppercase;text-align:center;font-weight:700;padding:14px}
.hint{font-size:14px;color:var(--muted);margin-top:6px}
.errcard{background:var(--err-bg);border-left:4px solid var(--err);border-radius:10px;padding:12px 14px;margin-bottom:10px}
.errcard .top{display:flex;justify-content:space-between;gap:10px;font-weight:700}
.errcard .meta{font-size:14px;color:var(--muted);margin-top:2px}
.errcard .note{margin-top:6px}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%) translateY(20px);
  background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:999px;font-weight:700;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:20;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.banner{background:var(--surface);border:1px dashed var(--slate);color:var(--muted);font-size:13px;border-radius:10px;padding:8px 12px;margin-bottom:18px}
.empty{color:var(--muted);font-size:15px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px}
/* trend */
.trend{display:flex;align-items:flex-end;gap:8px;height:170px;padding-top:22px}
.tcol{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.tbar{width:100%;max-width:46px;background:var(--blue-soft);border-radius:6px 6px 0 0;position:relative;min-height:4px}
.tcol.sel .tbar{background:var(--blue)}
.tval{position:absolute;top:-21px;left:0;right:0;text-align:center;font-size:13px;font-weight:700}
.tlab{font-size:13px;color:var(--muted);margin-top:6px}
.tcol.sel .tlab{color:var(--ink);font-weight:700}
/* people */
.ptable{width:100%;border-collapse:collapse;font-size:16px}
.ptable th{text-align:left;font-size:13px;color:var(--muted);font-weight:700;padding:0 0 6px}
.ptable th.n,.ptable td.n{text-align:right;width:56px}
.ptable td{padding:9px 0;border-top:1px solid var(--line);vertical-align:middle}
.ptable tr.click{cursor:pointer}
.ptable tr.click:hover td{background:var(--bg)}
.ptable tr.active td{font-weight:700}
.pbar{height:6px;background:var(--blue);border-radius:3px;margin-top:4px}
.wrow{display:flex;align-items:center;gap:10px;margin:8px 0}
.wrow .wl{width:62px;font-size:15px}
.wrow .wb{flex:1;background:var(--bg);border-radius:4px;height:22px;overflow:hidden}
.wrow .wb div{height:100%;background:var(--blue)}
.wrow .wv{width:30px;text-align:right;font-weight:700}
.filterbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.linkbtn{background:none;border:0;color:var(--blue-deep);font:inherit;font-weight:700;cursor:pointer;padding:4px 0}
.delta{font-size:14px;color:var(--muted)}
@media (prefers-reduced-motion: reduce){.toast{transition:none}}
/* stage 1 additions */
.staffrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.staffrow:first-child{border-top:0}
.staffrow .sname{font-weight:700}
.staffrow .smeta{font-size:14px;color:var(--muted)}
.staffrow.off .sname{color:var(--muted);text-decoration:line-through}
.soon{font-size:14px;color:var(--muted);text-align:center;margin-top:8px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.formerr{color:var(--err);font-weight:700;margin-top:12px;min-height:1em}
/* stage 2a additions */
.chip{margin-bottom:6px}
.boxcard{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:10px}
.boxcard .top{display:flex;justify-content:space-between;gap:10px;font-weight:700;margin-bottom:6px}
.boxcard .errcard{margin:8px 0 0}
.boxacts{display:flex;gap:18px;flex-wrap:wrap}
.errpanel{border:2px solid var(--err);border-radius:var(--radius);padding:14px 16px;margin-top:18px;background:var(--surface)}
.errcard.click{cursor:pointer}
.errcard .linkbtn{margin-top:6px}
.feedback{margin-top:8px;padding:8px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--line);font-size:15px}
header .back,header .title{white-space:nowrap}
header .who{min-width:0;overflow-wrap:anywhere}
@media (max-width:400px){header .title{font-size:16px}header{padding:12px 14px}}
/* stage 2b additions */
.seg{display:flex;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:none;font:inherit;font-size:15px;font-weight:700;color:var(--muted);padding:8px 2px;border-radius:9px;cursor:pointer;min-width:0}
.seg button.on{background:var(--blue);color:#fff}
.plot{position:relative;height:150px;margin-top:24px;display:flex;align-items:flex-end;gap:3px;border-bottom:1px solid var(--line)}
.bcol{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;background:none;border:0;padding:0;min-width:0;font:inherit;color:inherit}
button.bcol{cursor:pointer}
.bcol .bar{position:relative;width:100%;max-width:40px;min-height:2px;background:var(--blue-soft);border-radius:4px 4px 0 0}
.bcol.sel .bar{background:var(--blue)}
.bval{position:absolute;top:-21px;left:50%;transform:translateX(-50%);font-size:13px;font-weight:700;white-space:nowrap;color:var(--ink)}
.refline{position:absolute;left:0;right:0;height:0;pointer-events:none}
.refline.avg{border-top:2px dotted var(--ink)}
.refline.tgt{border-top:2px solid var(--err)}
.xlabels{display:flex;gap:3px;margin-top:5px}
.xlabels span{flex:1;min-width:0;text-align:center;font-size:12px;color:var(--muted);white-space:nowrap;overflow:visible}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-top:10px}
.legend i{display:inline-block;width:22px;height:0;vertical-align:middle;margin-right:6px}
.legend i.avg{border-top:2px dotted var(--ink)}
.legend i.tgt{border-top:2px solid var(--err)}
.ptable td.over{color:var(--err);font-weight:700}
.sesrow{padding:10px 0;border-top:1px solid var(--line)}
.sesrow:first-child{border-top:0;padding-top:0}
.sesrow .top{display:flex;justify-content:space-between;font-weight:700}
.sesrow .meta{font-size:14px;color:var(--muted)}
.switch{display:flex;align-items:center;gap:12px;font-weight:400;margin:14px 0;cursor:pointer}
.switch input{width:24px;height:24px;flex:none;accent-color:var(--blue)}
.mysum{font-size:18px}
/* ---------- functions + box sheets ---------- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.status{font-size:15px;color:var(--muted);min-height:1.4em;margin:10px 0 0}
.status.err{color:var(--err);font-weight:700}
.btn.camera{min-height:96px;display:flex;align-items:center;justify-content:center;font-size:21px;margin-top:6px}
.btn.camera.disabled{opacity:.5;pointer-events:none}
.btn.small{display:inline-block;width:auto;font-size:15px;padding:10px 14px;margin:0;min-height:44px}
.bspaste{margin-top:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.bspaste summary{font-weight:700;cursor:pointer;min-height:28px;color:var(--blue-deep)}
.bspaste textarea{min-height:140px;font-size:16px}
#bsEmpty{display:block;margin:14px 0 0;min-height:44px}
.bsrow{display:flex;gap:12px;flex-wrap:wrap}
.bsrow>div{flex:1 1 150px;min-width:0}
.bscount{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 8px;color:var(--muted)}
.bslist{display:grid;gap:6px}
.bspt{display:grid;grid-template-columns:minmax(0,1fr) 68px 44px;gap:6px;align-items:center}
.bspt input,.bspt select{padding:10px;font-size:16px;min-height:44px}
.bspt select{padding:10px 4px}
.bsx{font:inherit;font-size:26px;line-height:1;border:0;background:transparent;color:var(--muted);height:44px;width:44px;border-radius:8px;cursor:pointer}
.bsx:hover{color:var(--err)}
.draftcard{display:block;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;cursor:pointer;min-height:44px}
.draftcard:hover{border-color:var(--blue)}
.draftcard .top{display:flex;justify-content:space-between;font-weight:700}
.draftcard .meta{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.askpanel{background:var(--blue-soft);border:2px solid var(--blue);border-radius:var(--radius);padding:14px 16px;margin-bottom:14px}
.askbtns{display:flex;gap:10px;flex-wrap:wrap}
.askbtns .btn{flex:1 1 160px}
#bsPdf{display:block;margin:10px auto 0;font-size:15px;min-height:44px}
.accesswrap{overflow-x:auto;padding:10px 12px}
.ptable.access th.ac,.ptable.access td.ac{text-align:center;width:76px;font-size:13px}
.ptable.access small{font-weight:400}
.acbox{width:24px;height:24px;accent-color:var(--blue);cursor:pointer}
.smeta{font-size:13px;color:var(--muted)}
/* Shop computer: editor and A4 preview side by side */
body.wide .app{max-width:1180px}
.draftgrid{display:grid;gap:24px}
@media (min-width:900px){.draftgrid{grid-template-columns:minmax(0,420px) minmax(0,1fr);align-items:start}.draftprint{position:sticky;top:90px}}
/* Sheet: preview is drawn at A4 width and scaled to fit */
.sheetbox{overflow:hidden;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.2);background:#fff}
.sheetbox .sheet{transform-origin:top left}
.sheet{background:#fff;color:#111;width:760px;padding:22px 26px 30px;font-family:Arial,Helvetica,sans-serif}
.sdates{display:grid;grid-template-columns:30px repeat(4,1fr);gap:2px 10px;font-size:13px;margin:0 0 6px 6px;color:#1d4ed8}
.sheet table{width:100%;border-collapse:collapse;font-size:11.5px;table-layout:fixed}
.sheet th,.sheet td{border:1px solid #9aa4ab;padding:2px 5px;height:19px;overflow:hidden}
.sheet th{font-weight:700;text-align:center}
.sheet th.swk{font-size:13px}
.sheet col.cp{width:27%}
.sheet col.cd{width:6%}
.sheet col.cc{width:11%}
.sheet .sp{text-align:left;white-space:nowrap;text-overflow:ellipsis}
.sheet .sd{text-align:center}
#printArea{display:none}
/* Print: only the sheet, on A4 */
@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{background:#fff!important;padding:0!important}
  body>*:not(#printArea){display:none!important}
  #printArea{display:block!important}
  #printArea .sheet{width:auto;padding:0;transform:none}
  #printArea .sdates{font-size:10pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #printArea table{font-size:9pt}
  #printArea th,#printArea td{height:6.2mm;padding:0 1.5mm;border-color:#666}
  #printArea thead{display:table-header-group}
  #printArea tr{break-inside:avoid}
}
@media print{#printArea table{width:99.5%}}
/* ---------- My errors: picking (coral) vs dispensing (deep red) ---------- */
:root{--pick:#ec8b78;--disp:#a3201c}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--pick:#f2a091;--disp:#d9443d}}
:root[data-theme="dark"]{--pick:#f2a091;--disp:#d9443d}
.errcard.pick{border-left:6px solid var(--pick)}
.errcard.disp{border-left:6px solid var(--disp)}
.errcard.pick .top span:first-child,.errcard.disp .top span:first-child{font-weight:700}
.wrow .wl.wide{width:142px;font-size:15px}
.wrow .wb{position:relative}
.wrow .wb div.pick{background:var(--pick)}
.wrow .wb div.disp{background:var(--disp)}
.wrow .wb .mark{position:absolute;top:-3px;bottom:-3px;width:0;margin-left:-1px;pointer-events:none}
.wrow .wb .mark.avg{border-left:2px dotted var(--ink)}
.wrow .wb .mark.tgt{border-left:2px solid var(--ink)}
.wrow .wb{overflow:visible}
.wrow .wb>div{border-radius:4px}
.pbar2{display:flex;gap:2px;height:6px;margin-top:4px}
.pbar2 span{display:block;height:100%;border-radius:3px}
.pbar2 .pick{background:var(--pick)}
.pbar2 .disp{background:var(--disp)}
.legend i.sw{width:12px;height:12px;border-radius:3px;border:0}
.legend i.sw.pick{background:var(--pick)}
.legend i.sw.disp{background:var(--disp)}
@media (max-width:380px){.wrow .wl.wide{width:112px;font-size:14px}}
.ptable th.n,.ptable td.n{width:84px;padding-left:8px}
/* ---------- error types: picking (coral), dispensing (deep red), unclassified (grey) ----------
   Checked with the palette validator for light and dark mode, including colour-blind
   simulation. Every bar and card also carries its text label, so colour is never the only cue. */
:root{--pick:#ec8b78;--disp:#a3201c;--uncl:#6b7682;--uncl-bg:#eef1f4}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--pick:#d6765e;--disp:#bb2a34;--uncl:#66737f;--uncl-bg:#1f2c36}}
:root[data-theme="dark"]{--pick:#d6765e;--disp:#bb2a34;--uncl:#66737f;--uncl-bg:#1f2c36}
.errcard.pick{border-left:6px solid var(--pick)}
.errcard.disp{border-left:6px solid var(--disp)}
.errcard.uncl{border-left:6px solid var(--uncl);background:var(--uncl-bg)}
.typetag{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--ink);margin-bottom:4px}
.typetag::before{content:"";width:10px;height:10px;border-radius:2px;background:var(--err)}
.errcard.pick .typetag::before{background:var(--pick)}
.errcard.disp .typetag::before{background:var(--disp)}
.errcard.uncl .typetag::before{background:var(--uncl)}
.wrow .wb div.uncl,.pbar2 .uncl,.legend i.sw.uncl{background:var(--uncl)}
.typelegend{margin-top:8px}
.ptable td.muted{color:var(--muted)}
.opt{font-weight:400;color:var(--muted);font-size:15px}
.unclbar{display:block;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--uncl-bg);border:2px solid var(--uncl);border-radius:var(--radius);padding:12px 14px;margin:6px 0 14px;cursor:pointer;min-height:44px}
.unclbar b{display:block;font-size:17px}
.unclbar span{display:block;font-size:14px;color:var(--muted)}
.unclitem{margin-bottom:18px}
.unclitem .errcard{margin-bottom:8px}
.unclbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.unclbtns .btn{width:100%;margin:0;color:#fff;line-height:1.25}
.unclbtns .btn .sub{font-size:13px}
.unclbtns .pickbtn{background:#b8452f}
.unclbtns .dispbtn{background:var(--disp)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .unclbtns .pickbtn{background:#a8432f}}
/* box sheets: lines the photo reader couldn't read as names */
.unread{margin-top:18px;background:var(--surface);border:1px dashed var(--slate);border-radius:var(--radius);padding:4px 14px 12px}
.unreadrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-family:ui-monospace,Menlo,monospace;font-size:14px}
.unreadrow:first-of-type{border-top:0}
.unreadrow span{min-width:0;overflow-wrap:anywhere}
/* Phone: keep the draft columns to the screen width so the A4 preview scales down instead of overflowing */
@media (max-width:899px){.draftgrid{grid-template-columns:minmax(0,1fr)}}
.draftedit,.draftprint{min-width:0}
/* ---------- box sheets: waiting list delete (swipe on phones, button on computers) ---------- */
.draftrow{position:relative;margin-bottom:10px;border-radius:12px;overflow:hidden;background:var(--err)}
.draftrow .swipedel{position:absolute;top:0;right:0;bottom:0;width:96px;border:0;background:var(--err);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.draftslide{position:relative;display:flex;align-items:stretch;background:var(--bg);transition:transform .2s ease}
.draftrow.swiped .draftslide{transform:translateX(-96px)}
.draftslide .draftcard{margin:0;flex:1;min-width:0}
.draftslide .draftdel{flex:none;align-self:center;margin-left:8px;color:var(--err);font-size:15px;min-height:44px;padding:0 10px}
.delconfirm{background:var(--surface);border:2px solid var(--err);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.delconfirm .askbtns{margin-top:10px}
.delconfirm .btn{margin:0}
.touchonly{display:none}
@media (hover:none) and (pointer:coarse){
  .draftslide .draftdel{display:none}
  .touchonly{display:inline}
}
@media (hover:hover){.draftrow .swipedel{display:none}.draftrow{background:transparent}}
@media (prefers-reduced-motion:reduce){.draftslide{transition:none}}
/* one row of week-commencing dates across the top of the sheet */
.sdates{grid-template-columns:40px repeat(4,1fr)}
/* ---------- home redesign ---------- */
:root{--tile-sub:#3d4f60;--sec:#4a5b6b;--today-bg:#e3f2f7}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--tile-sub:#c5d2dc;--sec:#a9bac8;--today-bg:#163a47}}
:root[data-theme="dark"]{--tile-sub:#c5d2dc;--sec:#a9bac8;--today-bg:#163a47}
/* slim header: one line */
header{padding:10px 16px}
header .who{display:flex;align-items:center;gap:8px;font-size:15px;text-align:left}
header .who .role{margin-left:0}
header .who button{margin-top:0;padding:6px 10px;min-height:32px}
@media (max-width:360px){header .wrole{display:none}}
/* greeting + today strip */
.greet{font-size:19px;font-weight:700;margin:0 0 10px}
.today{background:var(--today-bg);color:var(--ink);border-radius:12px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.4}
.today .tlabel{display:inline-block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-right:6px}
/* sections */
.hsec{margin-top:14px}
.sec{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--sec);margin:0 0 8px}
.hsec .btn{margin-top:8px}
.hsec .btn:first-of-type{margin-top:0}
.btn.primary{background:var(--blue);color:#fff;font-size:19px}  /* 19px bold = large text: white on #219DBF passes AA */
.btn.sbtn{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 16px}
.btn.sbtn .ico{width:24px;height:24px;flex:none}
.finishlink{display:block;margin:4px 0 6px;min-height:40px}
/* tiles: 2-column grid */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tiles.one{grid-template-columns:1fr}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pair .hsec{margin-top:14px}
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 12px 13px;min-height:96px;cursor:pointer}
.tile:hover{border-color:var(--blue)}
.tile:active{transform:translateY(1px)}
.tile .ico{width:26px;height:26px;color:var(--blue-deep);margin-bottom:2px}
.tile .tt{font-weight:700;font-size:16px;line-height:1.2}
.tile .ts{font-size:13.5px;line-height:1.3;color:var(--tile-sub)}
/* other screens' buttons with subtitles get the stronger subtitle colour too */
.btn.secondary .sub{color:var(--tile-sub);opacity:1}
.resumehint{font-size:14px;color:var(--tile-sub);margin:6px 0 4px}
.resumehint .linkbtn{padding:0;min-height:0;font-size:14px}
/* header contrast on brand blue: big bold title passes as large text; small items sit in white pills */
header .title{font-size:19px}
header .who .wname{background:#fff;color:#0f5a70;border-radius:999px;padding:3px 10px;font-weight:700;font-size:14px}
header .who .wrole{font-weight:400}
header .who button,header .back{background:#fff;color:#0f5a70;font-weight:700}
header .back{padding:6px 12px 6px 9px;font-size:15px}
header .who .wname,header .who button,header .back{white-space:nowrap}
/* phones, inner screens: Back replaces the title and the role is dropped, so the header stays one line */
@media (max-width:520px){body.inner header .title{display:none}body.inner header .wrole{display:none}}
