/* Enrica · "The Flow": cream paper, navy ink, tinted stage panels, conveyor lanes, lorry glyphs.
   The shell and the building blocks of flow.js. Taken over unchanged from the approved prototype (its app.css); what
   the real board needs on top of it is at the end of this file. Page styles live in each page's own .css file.
   Colour roles (chart colours checked with the dataviz palette validator on the card surface #fffdf9):
   blue = cases made, kraft = the cartons themselves, green / amber / red = a state, always next to a word or an icon. */
:root{
  --paper:#f2ede2; --card:#fffdf9;
  --ink:#17212e; --ink-2:#465163; --ink-3:#5d6777; --navy:#24364d; --night:#0f1722;
  --hair:rgba(23,33,46,.10); --grid:#ebe6da; --axis:#cdc6b6;
  --flow:#2a78d6; --flow-soft:#86b6ef; --pipe:#c6daf6;
  --carton:#b9833e; --belt:#eae2d1;
  --good:#0ca30c; --warn:#fab219; --crit:#d03b3b;
  --ref:#8d96a3;
  --c-change:#1baf7a; --c-slow:#eda100; --c-stop:#e34948;
  --b-lines:#fdf9f0; --b-godown:#f6ead3; --b-lorries:#e5edf8; --b-gate:#e2eedf;
  --display:'Bricolage Grotesque',sans-serif; --body:'Instrument Sans',sans-serif;
  --box:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18'%3E%3Crect x='17.5' y='3.5' width='11' height='11' rx='3' fill='%23b9833e' stroke='%23fffdf9' stroke-width='1.5'/%3E%3Cpath d='M23 5v8' stroke='%23e6cba3' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --box-off:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18'%3E%3Crect x='17.5' y='3.5' width='11' height='11' rx='3' fill='%23a3abb7' stroke='%23fffdf9' stroke-width='1.5'/%3E%3C/svg%3E");
  --shadow:0 0 0 1px var(--hair),0 22px 34px -28px rgba(23,33,46,.55);
}
.t-lines{--tint:var(--b-lines)} .t-godown{--tint:var(--b-godown)} .t-lorries{--tint:var(--b-lorries)} .t-road{--tint:var(--b-gate)} .t-paper{--tint:var(--card)}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
html.no-scroll{overflow:hidden}
body{font:14px/1.4 var(--body);color:var(--ink);min-height:100vh;
  background:
    radial-gradient(1200px 520px at 12% -8%,rgba(255,255,255,.75),transparent 70%),
    radial-gradient(circle at 1px 1px,rgba(23,33,46,.075) 1px,transparent 1.5px) 0 0/22px 22px,
    var(--paper);
  -webkit-font-smoothing:antialiased}
ul,ol{list-style:none}
button,input,select{font:inherit;color:inherit}
a{color:inherit}
.num{font-family:var(--display);font-weight:700;letter-spacing:-.02em}
.tn{font-variant-numeric:tabular-nums}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:2px solid var(--flow);outline-offset:2px}
.ic{display:inline-flex;flex:none;align-items:center;justify-content:center}
.ic svg{display:block}
.skip{position:absolute;left:16px;top:-60px;z-index:100;padding:10px 14px;border-radius:12px;background:var(--ink);color:#fff;font-weight:600;text-decoration:none}
.skip:focus{top:10px}
#page{outline:0}

/* ---------- top strip: the name · the day in three figures · the shift · the clock, each a small label over its value ---------- */
.top{display:flex;align-items:center;margin:12px 16px 0;padding:11px 22px 11px 14px;
  background:var(--card);border-radius:20px;box-shadow:0 0 0 1px var(--hair),0 14px 30px -22px rgba(23,33,46,.45)}
.brand{display:flex;align-items:center;gap:11px;padding-right:24px;text-decoration:none;border-radius:12px}
.brand svg{width:36px;height:36px;flex:none}
.brand b{display:block;font:800 21px/1 var(--display);letter-spacing:-.03em}
.tks{display:flex;align-items:stretch;min-width:0}
.tk{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;padding:1px 26px;border-left:1px solid var(--hair)}
.tk-l{font-size:12.5px;line-height:1;color:var(--ink-3);white-space:nowrap}
.tk-v{display:flex;align-items:center;gap:7px;white-space:nowrap}
.tk-v b{font:800 21px/1 var(--display);letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.tk-v i{font-style:normal;font-size:13px;line-height:1;color:var(--ink-3);align-self:flex-end;padding-bottom:2px}
.tk-ring{flex:none;width:21px;height:21px;transform:rotate(-90deg)}
.tk-ring circle{fill:none;stroke-width:3.6}
.tk-ring .t{stroke:var(--belt)}
.tk-ring .a{stroke:var(--good);stroke-linecap:round;transition:stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1),stroke .3s}
.tk-ring[data-tone=amber] .a{stroke:var(--c-slow)}.tk-ring[data-tone=orange] .a{stroke:#f97316}.tk-ring[data-tone=crit] .a{stroke:var(--crit)}
.shift{flex:none;width:248px;margin-left:auto;padding:1px 26px;border-left:1px solid var(--hair)}
.shift-l{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:12.5px;line-height:1;color:var(--ink-3);white-space:nowrap}
.shift-l b{color:var(--ink);font-weight:600}
.shift-bar{position:relative;height:6px;margin:13px 0 2px;border-radius:3px;background:var(--belt);overflow:hidden}
.shift-bar i{position:absolute;inset:0;border-radius:3px;background:var(--ink);transform-origin:0 50%;transform:scaleX(0);transition:transform .9s linear}
.clockbox{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;padding:1px 0 1px 26px;border-left:1px solid var(--hair)}
.livebox{display:flex;align-items:center;gap:9px}
.upd{font-size:12.5px;line-height:1;color:var(--ink-3);white-space:nowrap}
.upd b{font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.live{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;line-height:1;font-weight:600;color:var(--ink-2)}
.live i{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 0 0 rgba(12,163,12,.5);animation:ping 2.2s ease-out infinite}
#clock{font:800 21px/1 var(--display);letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.acct{flex:none;width:52px;height:52px;border:0;border-radius:18px;background:var(--card);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px var(--hair),0 12px 20px -18px rgba(23,33,46,.55);font:800 18px/1 var(--display);cursor:pointer;display:grid;place-items:center;transition:transform .15s}
.acct:hover{transform:translateY(-1px)}
.acct[aria-current],.acct[aria-expanded=true]{box-shadow:0 0 0 2px var(--ink)}
.acct-m{display:none}

/* ---------- the journey bar: the navigation is the journey of a case ---------- */
.journey{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:12px;padding:10px 16px 12px}
.journey::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(242,237,226,.84);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);-webkit-mask-image:linear-gradient(#000 74%,transparent);mask-image:linear-gradient(#000 74%,transparent)}
.jn{position:relative;display:flex;align-items:center;gap:9px;min-width:0;height:52px;padding:0 15px 0 10px;border-radius:18px;text-decoration:none;color:var(--ink);
  background:var(--tint,var(--card));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1px var(--hair),0 12px 20px -18px rgba(23,33,46,.55);transition:transform .15s,box-shadow .15s}
.jn:hover{transform:translateY(-1px)}
.jn[aria-current]{box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 2px var(--ink),0 14px 22px -14px rgba(23,33,46,.6)}
.jn[aria-current]::after{content:"";position:absolute;left:50%;bottom:-8px;width:10px;height:10px;margin-left:-5px;border-radius:2px;background:var(--ink);transform:rotate(45deg)}
.jn .st-num{width:28px;height:28px;font-size:14px}
.jn-ic{width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff}
.jn-ic svg{width:16px;height:16px}
.jn-t{min-width:0}
.jn-t b{display:block;font:800 17px/1 var(--display);letter-spacing:-.025em;white-space:nowrap}
.jn-t>i,.jn-live{display:block;font-style:normal;font-size:13px;line-height:1.15;color:var(--ink-2);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jn-t em{font:700 13.5px/1 var(--display);font-style:normal;color:var(--ink)}
.jn.has-stop .jn-t>i::before{content:"";display:inline-block;width:9px;height:9px;margin-right:5px;background:var(--crit);clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
.jn-over{flex:none}
.jn-stops{flex:1;display:flex;align-items:center;min-width:0}
.jn-li{flex:1 1 0;min-width:0}
.jn-li .jn{width:100%}
.jn-gap{flex:none;width:34px;display:grid;place-items:center}
.jn-pipe svg{display:block}
.jn-pipe .bg{fill:none;stroke:var(--pipe);stroke-width:6;stroke-linecap:round}
.jn-pipe .dots{fill:none;stroke:var(--flow);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:.1 7.9;animation:hdots 1.1s linear infinite}
.jn-pipe .head{fill:none;stroke:var(--flow);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.jn-tools{flex:none;display:flex;align-items:center;gap:10px}
.jn-cam{background:var(--ink);color:#fff;box-shadow:0 12px 20px -14px rgba(23,33,46,.8);padding-right:16px}
.jn-cam .jn-ic{background:rgba(255,255,255,.14)}
.jn-cam .jn-ic svg{width:17px;height:14px}
.jn-cam .jn-live{color:#c5cfdc;display:flex;align-items:center;gap:6px}
.jn-cam .jn-live i{font-style:normal}
.jn-cam[aria-current]{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--ink)}
.jn-cam[aria-current]::after{bottom:-10px}
.cam-dot{width:8px;height:8px;border-radius:50%;background:#6c7a8c;flex:none}
.cam-dot.on{background:#ff5b4c;animation:blink 1.6s ease-in-out infinite}

/* ---------- a page: tinted header, then the body ---------- */
.page{margin:4px 16px 0}
.ph{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:end;padding:16px 20px 14px;border-radius:24px;background:var(--tint);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),var(--shadow);animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
.ph-eye{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
.ph-eye b{font:700 14px/1 var(--display);color:var(--ink)}
.ph-eye b+span::before{content:"·";margin-right:8px;color:var(--axis);font-weight:700}
.ph h1{font:800 36px/1 var(--display);letter-spacing:-.04em;margin-top:9px}
.ph-sub{font-size:15px;line-height:1.35;color:var(--ink-2);margin-top:7px;max-width:86ch;text-wrap:pretty}
.ph-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-self:end}
.tabs{grid-column:1/-1;display:flex;gap:6px;margin-top:12px;overflow-x:auto;scrollbar-width:none;padding:2px;margin-inline:-2px}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;display:inline-flex;align-items:center;height:36px;padding:0 15px;border-radius:18px;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap;background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 1px var(--hair);transition:background .15s}
.tab:hover{background:#fff}
.tab[aria-current]{background:var(--ink);color:#fff;box-shadow:none}
.pb{display:flex;flex-direction:column;gap:16px;margin-top:14px}
.ph+.pb>*{animation:rise .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:80ms}

/* ---------- panels ---------- */
.stage{position:relative;border-radius:24px;padding:14px 14px 16px;min-width:0;background:var(--tint,var(--card));--ring:var(--tint,var(--card));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),var(--shadow)}
.panel{background:var(--card);border-radius:24px;padding:16px 20px 18px;min-width:0;box-shadow:0 0 0 1px var(--hair),0 22px 34px -28px rgba(23,33,46,.5);--ring:var(--card)}
.pn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin-bottom:12px}
.pn-head+.chart-host>.legend,.pn-head+.chart>.legend{margin-top:0}
.pn-t{display:flex;align-items:center;gap:10px;min-width:0}
.pn-head h2,.panel>h2{font:800 19px/1.1 var(--display);letter-spacing:-.025em}
.pn-sub,.panel>p{font-size:13px;color:var(--ink-3);margin-top:3px}
.pn-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.st-num{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font:700 15px/1 var(--display)}
.st-num.sm{width:22px;height:22px;font-size:12.5px}
.st-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;align-items:center;min-height:38px;margin-bottom:10px}
.st-head .st-num{grid-row:1/3}
.st-head h2{grid-column:2;grid-row:1;align-self:end;font:800 22px/1 var(--display);letter-spacing:-.03em}
.st-head h2 a{text-decoration:none;display:inline-flex;align-items:center;gap:2px;border-radius:6px}
.st-go{opacity:0;transform:translateX(-4px);transition:opacity .15s,transform .15s;color:var(--ink-3)}
.st-head h2 a:hover .st-go,.st-head h2 a:focus-visible .st-go{opacity:1;transform:none}
.st-head p{grid-column:2/4;grid-row:2;align-self:start;font-size:13px;line-height:1.2;color:var(--ink-3);margin-top:3px}
.st-side{grid-column:3;grid-row:1;display:flex;align-items:center;gap:8px}
.st-fig{grid-column:3;grid-row:1/3;text-align:right}
.st-fig b{display:block;font:800 32px/1 var(--display);letter-spacing:-.035em}
.st-fig span{display:block;font-size:13px;color:var(--ink-3);margin-top:2px}
.s-lines .st-head p{grid-column:2}
.card{background:var(--card);border-radius:16px;padding:11px 12px 12px;box-shadow:0 0 0 1px var(--hair);--ring:var(--card)}
.card+.card{margin-top:10px}
.card h3,.sec{font:600 13px/1.2 var(--body);color:var(--ink-2)}
a.card{display:block;text-decoration:none;transition:box-shadow .15s}
a.card:hover{box-shadow:0 0 0 1.5px rgba(23,33,46,.3)}
.gr{display:grid;gap:16px;align-items:start}
.gr-2{grid-template-columns:repeat(2,minmax(0,1fr))} .gr-3{grid-template-columns:repeat(3,minmax(0,1fr))} .gr-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gr-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr)} .gr-1-2{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}

/* ---------- buttons and small controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap;cursor:pointer;transition:transform .15s,background .15s}
.btn:hover{background:var(--navy);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.2)}
.btn.ghost:hover{background:rgba(23,33,46,.06)}
.btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:11px}
.btn[disabled]{opacity:.4;pointer-events:none}
.ib{flex:none;width:36px;height:36px;border:0;border-radius:11px;display:grid;place-items:center;background:transparent;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.18);cursor:pointer}
.ib:hover{background:rgba(23,33,46,.06)}
.ib[disabled]{opacity:.35;pointer-events:none}
.seg{display:inline-flex;padding:3px;border-radius:13px;background:rgba(23,33,46,.07);box-shadow:inset 0 0 0 1px var(--hair)}
.seg-b{display:inline-flex;align-items:center;gap:6px;min-width:34px;height:32px;padding:0 11px;border:0;border-radius:10px;background:transparent;font-weight:600;font-size:13px;white-space:nowrap;justify-content:center;cursor:pointer;transition:background .15s}
.seg-b:hover{background:rgba(255,255,255,.6)}
.seg-b[aria-pressed=true]{background:var(--ink);color:#fff}
.seg-dark{background:rgba(255,255,255,.1);box-shadow:none}
.seg-dark .seg-b{color:#dfe6ee}.seg-dark .seg-b:hover{background:rgba(255,255,255,.12)}
.seg-dark .seg-b[aria-pressed=true]{background:#fff;color:var(--ink)}
.badge{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px 0 5px;border-radius:12px;font-size:13px;font-weight:600;white-space:nowrap;background:rgba(23,33,46,.06)}
.badge .ic svg{width:14px;height:14px}
.b-crit{background:#fbe9e4}.b-good,.b-run{background:#e4f3e1}.b-warn,.b-slow{background:#fdf1d2}.b-info{background:#e5edf8}
.pill{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;font:700 13px/1 var(--display);white-space:nowrap;background:#fff;box-shadow:0 0 0 1px var(--hair)}
.pill-soft{font:500 13px/1 var(--body);color:var(--ink-2);background:rgba(23,33,46,.06);box-shadow:none}
.pill-ink{background:var(--navy);color:#fff;box-shadow:none}
.chips{display:inline-flex;flex:none;gap:4px}
.chip{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 7px 0 4px;border:0;border-radius:7px;background:#fff;box-shadow:0 0 0 1px var(--hair);font:700 13px/1 var(--display);color:var(--ink);white-space:nowrap}
.chip .ic svg{width:13px;height:13px}
.chip i{font:400 13px/1 var(--body);font-style:normal;color:var(--ink-3)}
.chip.is-crit{background:#fbe9e4;box-shadow:inset 0 0 0 1px rgba(208,59,59,.3)}
.chip.is-mute{color:var(--ink-3)}
button.chip{cursor:pointer;height:30px;padding:0 10px 0 7px;border-radius:9px}
button.chip:hover{box-shadow:0 0 0 1.5px rgba(23,33,46,.35)}
button.chip[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:none}
.sw{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 4px;border:0;background:transparent;font-size:13px;font-weight:600;cursor:pointer;border-radius:10px}
.sw i{position:relative;width:36px;height:22px;border-radius:11px;background:rgba(23,33,46,.2);transition:background .2s;flex:none}
.sw i::after{content:"";position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(23,33,46,.35);transition:transform .2s cubic-bezier(.3,1.4,.5,1)}
.sw[aria-checked=true] i{background:var(--ink)}
.sw[aria-checked=true] i::after{transform:translateX(14px)}
/* the camera button of a place */
.cb{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 8px;border:0;border-radius:14px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,transform .15s}
.cb:hover{background:var(--navy);transform:translateY(-1px)}
.cb .ic svg{width:15px;height:12px}
.cb.is-quiet{width:28px;padding:0;justify-content:center;background:#fff;color:var(--ink);box-shadow:0 0 0 1px rgba(23,33,46,.16)}
.cb.is-quiet:hover{background:var(--ink);color:#fff}
.cb.is-bare{background:transparent;box-shadow:none;color:var(--ink-3)}
.cb.is-bare:hover{background:var(--ink);color:#fff}
.live-count{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border-radius:11px;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px var(--hair);font-size:13px}
.live-count b{font:700 14px/1 var(--display)}
.live-count i{width:8px;height:8px;border-radius:50%;background:var(--ref)}
.live-count.on i{background:var(--crit);animation:blink 1.6s ease-in-out infinite}
.pager{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
.pager .ib{width:32px;height:32px;background:rgba(255,255,255,.6)}

/* ---------- stat, progress, empty ---------- */
.stat{min-width:0}
.stat-l{font:600 13px/1.2 var(--body);color:var(--ink-2)}
.stat-f{display:flex;align-items:baseline;gap:6px;margin-top:4px}
.stat-v{font:800 28px/1 var(--display);letter-spacing:-.035em}
.stat.is-big .stat-v{font-size:44px}
.stat-u{font-size:13px;color:var(--ink-2)}
.stat-n{font-size:13px;line-height:1.3;color:var(--ink-3);margin-top:4px}
.pg{position:relative;height:12px;margin:8px 0 4px}
.pg-clip{position:absolute;inset:0;border-radius:6px;overflow:hidden;background:var(--belt)}
.pg-fill{position:absolute;inset:0;background:var(--flow);border-radius:0 4px 4px 0;transform:translateX(-100%);transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.pg-mark{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;border-radius:1px;background:var(--ink);box-shadow:0 0 0 1.5px var(--ring,var(--card));transition:left 1s cubic-bezier(.2,.7,.2,1)}
.pg-thin{height:8px}
.empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:34px 20px;text-align:center}
.empty h3{font:800 19px/1.15 var(--display);letter-spacing:-.025em}
.empty p{font-size:14px;color:var(--ink-2);max-width:44ch}
.empty .btn{margin-top:10px}
.empty-ic svg{width:30px;height:30px}
.empty-art{display:flex;gap:5px;align-items:flex-end;height:34px;margin-bottom:4px}
.empty-art i{width:16px;height:16px;border-radius:5px;border:1.5px dashed var(--axis)}
.empty-art i:nth-child(2){height:26px}

/* ---------- table ---------- */
.tbw{min-width:0;overflow-x:auto}
.tb{width:100%;border-collapse:collapse;font-size:14px}
.tb th,.tb td{padding:9px 10px;text-align:left;vertical-align:middle}
.tb thead th{font:600 13px/1.2 var(--body);color:var(--ink-2);border-bottom:1px solid var(--axis);white-space:nowrap}
.tb tbody td,.tb tbody th{border-top:1px solid var(--hair);font-weight:400}
.tb tbody tr:first-child>*{border-top:0}
.tb .num{text-align:right;font-variant-numeric:tabular-nums}
.tb .tb-title{font-weight:600}
.tb tbody tr.is-link{cursor:pointer}
.tb tbody tr:hover>*{background:rgba(42,120,214,.06)}
.tb tbody tr.is-sel>*{background:#e9f1fc}
.tb tbody tr.is-sel>*:first-child{box-shadow:inset 3px 0 0 var(--flow)}
.tb tfoot td{border-top:2px solid var(--ink);font:700 15px/1.2 var(--display);padding-top:10px}
.th-b{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;padding:2px 0;border-radius:6px}
.th-b .ic{opacity:.45}
[aria-sort=ascending] .th-b .ic,[aria-sort=descending] .th-b .ic{opacity:1;color:var(--ink)}
[aria-sort=ascending] .s-dn,[aria-sort=descending] .s-up{opacity:.2}
th.num .th-b{flex-direction:row-reverse}
.tb-sort{display:none;align-items:center;gap:8px;font-size:13px;color:var(--ink-2);margin-bottom:4px}
.tb-sort select{height:40px;padding:0 10px;border-radius:11px;border:0;background:#fff;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.18);font-weight:600;flex:1;min-width:0}

/* ---------- tooltip, sheet, menu ---------- */
.tip{position:fixed;left:0;top:0;z-index:120;pointer-events:none;max-width:290px;background:var(--ink);color:#fff;border-radius:13px;padding:10px 13px 11px;font-size:13px;line-height:1.35;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 16px 34px -12px rgba(23,33,46,.6)}
.tip h4{font:600 13px/1.25 var(--body);color:#c5cfdc;margin-bottom:5px}
.tip .r{display:flex;align-items:baseline;gap:7px}
.tip .r b{font:700 14px/1.3 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.tip .r span{color:#c5cfdc}
.tip .key{flex:none;align-self:center;width:12px;height:2px;border-radius:1px}
.tip .key.dot{background:radial-gradient(circle,#8fbcf4 0 1px,transparent 1.3px) 0 50%/4px 2px repeat-x!important}
.tip .note{margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.16);color:#e6ebf2}
.tip h4:only-child{margin:0}.tip h4+.note{margin-top:0;padding-top:0;border:0}
.scrim{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(15,23,34,.46);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:fade .2s both}
.sheet{width:min(520px,100%);max-height:min(86vh,760px);display:flex;flex-direction:column;background:var(--card);color:var(--ink);border-radius:24px;box-shadow:0 30px 70px -20px rgba(15,23,34,.7);animation:rise .3s cubic-bezier(.2,.7,.2,1) both}
.sheet.is-wide{width:min(860px,100%)}
.sheet-h{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 18px 10px 22px}
.sheet-h h2{font:800 22px/1.1 var(--display);letter-spacing:-.03em}
.sheet-h p{font-size:13px;color:var(--ink-3);margin-top:4px}
.sheet-b{padding:4px 22px 18px;overflow-y:auto}
.sheet-f{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px 16px;border-top:1px solid var(--hair)}
.menu{position:fixed;z-index:90;min-width:210px;padding:8px;border-radius:16px;background:var(--card);box-shadow:0 0 0 1px var(--hair),0 22px 40px -18px rgba(23,33,46,.6);animation:rise .2s both}
.menu-who{padding:6px 10px 9px;border-bottom:1px solid var(--hair);margin-bottom:6px}
.menu-who b{display:block;font:700 15px/1.2 var(--display)}
.menu-who span{font-size:13px;color:var(--ink-3)}
.menu a{display:flex;align-items:center;gap:9px;min-height:40px;padding:0 10px;border-radius:10px;text-decoration:none;font-weight:600}
.menu a:hover{background:rgba(23,33,46,.06)}
.cid{flex:none;font:700 13px/1 var(--display);text-align:center;min-width:42px;padding:5px 6px;border-radius:7px;background:var(--ink);color:#fff}
.wl li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:50px}
.wl li+li{border-top:1px solid var(--hair)}
.wl-n{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- charts ---------- */
.chart{position:relative;min-width:0}
.chart-host{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.chart-plot{position:relative;flex:1 1 auto;min-height:var(--chart-h,250px)}
.chart-plot svg{position:absolute;left:0;top:0;display:block;overflow:visible;touch-action:pan-y;outline-offset:4px;border-radius:8px}
.chart-bar svg{display:block;width:100%;height:auto;overflow:visible}
.chart text{font:13px var(--body);fill:var(--ink-3)}
.chart .tick{font-variant-numeric:tabular-nums}
.chart .lab{fill:var(--ink-2)}
.chart .labv{font:700 14px var(--display);fill:var(--ink)}
.chart .bar{transition:filter .15s}
.chart .bar.hot{filter:brightness(1.14) saturate(1.1)}
.legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:10px 0 2px;font-size:13px;color:var(--ink-2)}
.legend li{display:inline-flex;align-items:center;gap:7px}
.legend b{color:var(--ink);font:700 14px/1 var(--display);font-variant-numeric:tabular-nums}
.lk{width:16px;height:2px;border-radius:1px;flex:none}
.lk.dot{background:radial-gradient(circle,var(--c,var(--flow)) 0 1px,transparent 1.3px) 0 50%/5px 2px repeat-x}
.lk.box{width:10px;height:10px;border-radius:3px}
.lk.tick{width:14px;height:2px}
.big-line{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.big-line b{font:800 30px/1 var(--display);letter-spacing:-.035em}
.big-line span{font-size:13px;color:var(--ink-2)}
.tl{margin-top:8px}
.tl li{display:flex;align-items:center;gap:8px;min-height:28px;font-size:13px;border-radius:8px;cursor:default}
.tl i{width:10px;height:10px;border-radius:3px;flex:none}
.tl span{flex:1;min-width:0}
.tl b{font-weight:600;font-variant-numeric:tabular-nums}
.sgm{transition:opacity .2s}
.dim .sgm:not(.hot){opacity:.45}
.hbars{display:flex;flex-direction:column;gap:2px}
.hb{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);align-items:center;gap:10px;min-height:28px;padding:0 4px;margin:0 -4px;border-radius:8px;font-size:13px;text-decoration:none}
.hb:hover{background:rgba(42,120,214,.07)}
.hb-l{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-l b{font-weight:600}
.hb-l i{font-style:normal;color:var(--ink-3);margin-left:5px}
.hb-t{position:relative;height:12px;min-width:0;margin-right:var(--hb-room,62px)}
.hb-bar{position:absolute;left:0;top:0;bottom:0;min-width:2px;border-radius:0 4px 4px 0;background:var(--flow);transition:width .8s cubic-bezier(.2,.7,.2,1)}
.hb-v{position:absolute;top:50%;transform:translateY(-50%);margin-left:8px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;transition:left .8s cubic-bezier(.2,.7,.2,1)}
.hb-mark{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:var(--ink);box-shadow:0 0 0 1.5px var(--ring,var(--card))}
.spark{display:block;overflow:visible;border-radius:6px}

/* ---------- the Overview: the flow ---------- */
.flow{position:relative;display:grid;grid-template-columns:minmax(0,1.68fr) 46px minmax(0,.66fr) 28px minmax(0,1fr) 26px minmax(0,.45fr);align-items:stretch}
.pipes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}
.pipes .bg{fill:none;stroke:var(--pipe);stroke-linecap:round;stroke-linejoin:round}
.pipes .dots{fill:none;stroke:var(--flow);stroke-linecap:round;stroke-dasharray:.1 11.9}
.pipes .nub{fill:var(--card);stroke:var(--flow);stroke-width:2}
.pipes .head{fill:none;stroke:var(--flow);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.flow>.stage{animation:rise .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i)*90ms)}
.s-lines{background:var(--b-lines);--ring:var(--b-lines);--i:0;grid-column:1}
.s-godown{background:var(--b-godown);--ring:var(--b-godown);--i:1;grid-column:3}
.s-lorries{background:var(--b-lorries);--ring:var(--b-lorries);--i:2;grid-column:5;container-type:inline-size}
.s-gate{background:var(--b-gate);--ring:var(--b-gate);--i:3;grid-column:7;padding-inline:12px}
.s-gate .card{padding:10px 10px 11px}
.s-gate .st-head{column-gap:8px}
.s-gate .st-head p{white-space:nowrap}
.link{display:none}

/* lanes */
.lanes-key,.lane{display:grid;grid-template-columns:32px minmax(112px,190px) minmax(84px,1fr) 46px 46px 26px;column-gap:8px;align-items:center}
.lanes-key{padding:0 6px;font-size:13px;color:var(--ink-3);margin-bottom:2px}
.lanes-key .ks{grid-column:1/4;display:flex;flex-wrap:wrap;gap:2px 14px}
.lanes-key .k{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.lanes-key .kc{text-align:right}
.lanes-key .kcam{display:flex;justify-content:center;color:var(--ink-3)}
.lanes-key .kcam svg{width:15px;height:12px}
.k-fill{width:16px;height:8px;border-radius:0 3px 3px 0;background:var(--flow)}
.k-mark{width:2px;height:14px;border-radius:1px;background:var(--ink)}
.k-box{width:10px;height:10px;border-radius:3px;background:var(--carton)}
.hall+.hall{margin-top:6px}
.hall-head{display:flex;align-items:baseline;gap:10px;padding:5px 6px 3px;border-top:1px solid var(--hair)}
.hall-head h3{font:800 15px/1 var(--display);letter-spacing:-.02em}
.hall-head span{font-size:13px;color:var(--ink-3)}
.lane{grid-template-areas:"id what track cases speed cam";min-height:29px;padding:0 6px;border-radius:10px;position:relative}
.lane:hover{background:rgba(42,120,214,.07)}
.ln-id{grid-area:id;height:22px;display:grid;place-items:center;border-radius:7px;background:#fff;box-shadow:0 0 0 1px var(--hair);font:700 13px/1 var(--display)}
.ln-what{grid-area:what;display:flex;gap:6px;min-width:0;font-size:13px;white-space:nowrap;text-decoration:none}
a.ln-what::after{content:"";position:absolute;inset:0;border-radius:10px}
a.ln-what:focus-visible{outline:0}
a.ln-what:focus-visible::after{outline:2px solid var(--flow);outline-offset:1px}
.ln-what b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.ln-what i{font-style:normal;color:var(--ink-3);flex:none}
.track{grid-area:track;position:relative;height:18px;overflow-x:clip}
.clip{position:absolute;inset:0;border-radius:9px;overflow:hidden;background:var(--belt) repeating-linear-gradient(90deg,rgba(23,33,46,.07) 0 1px,transparent 1px 7px)}
.fill{position:absolute;inset:0;background:var(--flow);border-radius:0 4px 4px 0;transform:translateX(-100%);transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.belt{position:absolute;top:0;bottom:0;left:-46px;right:0;background:var(--box) 0 50%/46px 18px repeat-x;will-change:transform}
.mark{position:absolute;inset:-4px 0;pointer-events:none;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.mark::before{content:"";position:absolute;left:-1px;top:0;bottom:0;width:2px;border-radius:1px;background:var(--ink);box-shadow:0 0 0 1.5px var(--ring)}
.ln-cases{grid-area:cases;text-align:right;font:700 15px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ln-eff{grid-area:eff;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.ln-eff[data-tone=warn]{color:#8a5a00}
.ln-eff[data-tone=crit]{color:#b42323;font-weight:600}
.ln-speed{grid-area:speed;display:flex;justify-content:flex-end;align-items:center;gap:3px;font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.ln-speed svg{display:none;flex:none}
.ln-speed.is-slow svg{display:block}
.ln-speed.is-slow b{color:var(--ink)}
.ln-speed b{font-weight:500}
.ln-cam{grid-area:cam;display:flex;justify-content:center}
.ln-cam .cb{width:26px;height:24px;border-radius:8px;background:transparent;box-shadow:none;color:var(--ink-3)}
.ln-cam .cb:hover,.lane:hover .ln-cam .cb:hover{background:var(--ink);color:#fff}
.lane:hover .ln-cam .cb{color:var(--ink);background:#fff;box-shadow:0 0 0 1px rgba(23,33,46,.16)}
.ln-stop{display:none;grid-area:stop;align-items:center;gap:6px;font-size:13px;line-height:1.2;padding-bottom:1px;min-width:0}
.ln-stop b{font-weight:600;word-spacing:.08em}
.ln-stop .cb{margin-left:auto;height:26px;background:var(--crit)}
.ln-stop .cb:hover{background:#b22f2f}
.lane.is-stopped{grid-template-areas:"id what track cases speed cam" ". stop stop stop stop stop";row-gap:3px;padding-top:4px;padding-bottom:5px;margin:3px 0;background:#fbe9e4;box-shadow:inset 0 0 0 1px rgba(208,59,59,.28)}
.is-stopped .ln-stop{display:flex}
.is-stopped .ln-cam{visibility:hidden}
.is-stopped .ln-id{background:var(--crit);color:#fff;box-shadow:none}
.is-stopped .belt{background-image:var(--box-off)}
.is-stopped .fill{background:#7f9cc4}
.is-stopped .mark::before{box-shadow:0 0 0 1.5px #fbe9e4}
.lane.is-idle{min-height:22px;color:var(--ink-3)}
.is-idle .ln-id{background:transparent;box-shadow:inset 0 0 0 1px var(--hair);color:var(--ink-3);height:18px;font-weight:600}
.is-idle .ln-what b{font-weight:400}
.is-idle .track{height:8px}
.is-idle .clip{background:none;border:1px dashed var(--axis)}
.is-idle .fill,.is-idle .belt,.is-idle .mark{display:none}
.is-idle .ln-cam .cb{height:20px}

/* godown */
.intake{display:flex;align-items:center;gap:9px;margin-bottom:10px;padding:8px 12px;border-radius:14px;background:var(--flow);color:#fff;font-size:13px;line-height:1.15;box-shadow:0 10px 18px -12px rgba(42,120,214,.9)}
.intake b{font:800 30px/1 var(--display);letter-spacing:-.03em}
.store-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.store-top b{font:800 24px/1 var(--display);letter-spacing:-.03em}
.keys{display:flex;flex-wrap:wrap;gap:1px 12px;font-size:13px;color:var(--ink-3);margin-top:6px}
.keys span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.k-bar{width:14px;height:8px;border-radius:0 4px 4px 0;background:var(--flow)}
.k-crate{width:9px;height:9px;border-radius:2.5px;background:var(--carton)}
.sg{display:block;padding:6px 4px 4px;margin:6px -4px 0;border-top:1px solid var(--hair);border-radius:6px;text-decoration:none}
.sg:hover{background:rgba(42,120,214,.07)}
.sg-b{font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:6px;height:18px;font-size:13px}
.sr-row .s{color:var(--ink-3);white-space:nowrap}
.sr-row .m{display:flex;align-items:center;min-width:0;height:10px;overflow:hidden}
.sr-row .m svg{display:block;flex:none}
.sr-row .v{font-variant-numeric:tabular-nums;text-align:right;min-width:38px}
.sr-row.today .v{font-weight:600}

/* lorries */
.lead{font:600 20px/1.16 var(--display);letter-spacing:-.02em;text-wrap:balance;margin-bottom:2px}
.lead b{font-weight:800;font-size:28px;letter-spacing:-.035em}
.sec{display:flex;align-items:center;gap:7px;margin:12px 0 6px}
.lorry{display:block;width:100%;height:auto;overflow:visible}
.cargo{fill:#fff;stroke:var(--ink);stroke-width:1.6}
.cab,.chassis{fill:#24364d}
.wheel{fill:#24364d;stroke:var(--ring,#fff);stroke-width:1.8}
.win{fill:#cfe0f5}.hub{fill:#fff}
.cr{fill:transparent}
.cr.hollow{fill:none;stroke:var(--ink-2);stroke-width:1.1;stroke-dasharray:2.2 1.6}
.lorry-ready .cr.on{fill:var(--good)}
.lorry-ready .cr.soft{fill:var(--good);opacity:.24}
.lorry-nearly .cr.on{fill:var(--warn)}
.lorry-waiting .cr.on{fill:#8795a9}
.lorry-road .cr.on{fill:var(--flow)}
.cr.pop{animation:pop .5s cubic-bezier(.3,1.6,.5,1) both;transform-box:fill-box;transform-origin:50% 100%}
.beacon,.halo{display:none}
.lorry-ready .beacon{display:block;fill:var(--good)}
.lorry-ready .halo{display:block;fill:var(--good);opacity:0;transform-box:fill-box;transform-origin:center;animation:halo 2.4s ease-out infinite}
.ord{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:14px;padding:6px 10px 6px 8px;box-shadow:0 0 0 1px var(--hair);--ring:var(--card);text-decoration:none;transition:box-shadow .15s,transform .15s}
.ord:hover,.wt:hover{box-shadow:0 0 0 1.5px rgba(23,33,46,.32)}
.ord+.ord{margin-top:6px}
.ord .lorry{width:78px;flex:none}
.ord-t{min-width:0;font-size:13px;line-height:1.28}
.ord-t b{font-weight:600}
.ord-t .m{color:var(--ink-3)}
.need{display:flex;gap:5px;margin-top:2px}
.need svg{flex:none;margin-top:1px}
.need b{font-weight:600}
.bays{display:grid;grid-template-columns:var(--cols,repeat(4,minmax(0,1fr)));gap:6px}
.bay{position:relative;background:var(--card);border-radius:14px;padding:7px 6px 8px;box-shadow:0 0 0 1px var(--hair);--ring:var(--card);font-size:13px;line-height:1.25;text-align:center;min-width:0}
.bay .pt{display:inline-block;white-space:nowrap;font:700 13px/1 var(--display);color:#fff;background:#24364d;border-radius:6px;padding:3px 7px 4px;margin-bottom:6px;text-decoration:none}
a.pt::after{content:"";position:absolute;inset:0;border-radius:14px}
.bay:has(a.pt:hover){box-shadow:0 0 0 1.5px rgba(23,33,46,.32)}
.bay-top{display:flex;align-items:center;justify-content:space-between;gap:2px;margin:-2px -1px 5px 1px}
.bay-top .pt{margin:0}
.bay .cb{width:26px;height:24px;border-radius:8px;flex:none}
.bay .ld{white-space:nowrap}
.bay .ld b{font:700 14px/1.2 var(--display)}
.bay .ld span{color:var(--ink-3)}
.bay .lorry{width:88%;margin:0 auto 4px}
.bay .dp{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bay .st{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-weight:600}
.bay.is-free{background:transparent;box-shadow:none;border:1.5px dashed rgba(23,33,46,.22);color:var(--ink-3);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:7px 0 6px}
.bay.is-free .pt{background:transparent;color:var(--ink-3);box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.22);padding:3px 5px 4px}
.bay.is-free .cb{margin-top:6px}
.bay.is-go .lorry{animation:nudge 2.6s ease-in-out infinite}
.wait{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
.wt{display:flex;align-items:center;gap:8px;min-height:38px;font-size:13px;line-height:1.25;border-radius:10px;min-width:0;text-decoration:none;padding:0 4px;margin:0 -4px}
.wt .lorry{width:62px;flex:none}
.wt b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt span{color:var(--ink-3)}
.wt>div{min-width:0}
@container (max-width:300px){      /* a small laptop: the lorries column is narrow, so names get a full row */
  .bays{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bay.is-free{min-height:70px}
  .wait{grid-template-columns:minmax(0,1fr)}
}

/* gate */
.gate-art{display:block;width:100%;max-width:150px;height:auto;margin:0 auto 4px;overflow:visible}
.gate-art .arm{transform-box:view-box;transform-origin:30px 30px;transition:transform 1.1s cubic-bezier(.3,1.3,.5,1)}
.gate-art.open .arm{transform:rotate(-30deg)}
.gate-art .lamp{fill:var(--ref)}
.gate-art.open .lamp{fill:var(--good)}
.gate-art .glow{fill:var(--good);opacity:0;transform-box:fill-box;transform-origin:center}
.gate-art.open .glow{animation:halo 2.4s ease-out infinite}
.gate-say{display:flex;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:600}
.gate-txt{display:flex;flex-direction:column;align-items:center;gap:7px;margin-bottom:10px}
.g-fig{display:flex;align-items:baseline;gap:6px;margin-top:2px}
.g-fig b{font:800 28px/1 var(--display);letter-spacing:-.035em}
.g-fig span{font-size:13px;line-height:1.2;color:var(--ink-2)}
.g-list{margin-top:6px;font-size:13px;line-height:1.25}
.g-list li{padding:5px 0;border-top:1px solid var(--hair)}
.g-list .t{display:flex;justify-content:space-between;gap:6px;text-decoration:none;border-radius:5px}
.g-list a.t:hover b{text-decoration:underline}
.g-list b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-list i{font-style:normal;font-variant-numeric:tabular-nums;flex:none}
.g-list span{color:var(--ink-3);display:block}
.g-note{font-size:13px;line-height:1.3;color:var(--ink-2);margin-top:5px}
.g-road{display:flex;align-items:baseline;gap:4px;margin-top:6px;padding-top:7px;border-top:1px solid var(--hair);font-size:13px;line-height:1.2;color:var(--ink-2)}
.g-road b{font:800 18px/1 var(--display);color:var(--ink)}
.road{position:absolute;left:12px;bottom:16px;width:calc(100% - 24px);height:44px;display:none}
.s-gate.has-room .road{display:block}

/* the two panels under the flow */
.panels{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
.p-out{display:flex;flex-direction:column}
.p-out .chart-plot{min-height:292px}
.stops{margin-top:10px;padding-top:10px;border-top:1px solid var(--hair)}
.stops h3{font:600 13px/1.2 var(--body);color:var(--ink-2);margin-bottom:4px}
.stops li{display:grid;grid-template-columns:34px minmax(0,1fr) auto 26px;gap:8px;align-items:center;min-height:30px;font-size:13px}
.stops .id{font:700 13px/1 var(--display);text-decoration:none}
.stops .id:hover{text-decoration:underline}
.stops .still{display:inline-flex;align-items:center;gap:4px;font-weight:600;vertical-align:-3px;margin-left:2px}
.stops .from{color:var(--ink-3)}
.stops .mn{font-variant-numeric:tabular-nums;color:var(--ink-2)}
.stops .cb{width:26px;height:24px;border-radius:8px}
.stops-all{margin-top:8px}

/* ---------- "coming next" ---------- */
.cn{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:34px;align-items:center;padding:30px 34px 32px}
.cn-belt{position:relative;height:210px;border-radius:20px;background:rgba(255,255,255,.5);box-shadow:inset 0 0 0 1px var(--hair);overflow:hidden}
.cn-belt::before{content:"";position:absolute;left:0;right:0;bottom:62px;height:22px;background:var(--belt) repeating-linear-gradient(90deg,rgba(23,33,46,.09) 0 1px,transparent 1px 11px);box-shadow:inset 0 2px 0 rgba(23,33,46,.14),inset 0 -2px 0 rgba(23,33,46,.1)}
.cn-belt::after{content:"";position:absolute;left:12%;right:12%;bottom:22px;height:40px;background:linear-gradient(90deg,var(--navy) 0 6px,transparent 6px) 0 0/50% 100% repeat-x;opacity:.5}
.cn-run{position:absolute;left:-120px;right:0;bottom:84px;height:44px;animation:cnrun 4.2s linear infinite;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Crect x='38' y='2' width='42' height='42' rx='8' fill='%23b9833e'/%3E%3Cpath d='M59 4v38' stroke='%23e6cba3' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0/120px 44px repeat-x}
.cn-tag{position:absolute;left:50%;top:24px;transform:translateX(-50%);padding:7px 13px 8px;border-radius:11px;background:var(--ink);color:#fff;font:700 15px/1 var(--display);white-space:nowrap}
.cn-tag::after{content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;margin-left:-5px;background:var(--ink);transform:rotate(45deg);border-radius:2px}
.cn-eye{font:700 13px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.cn h2{font:800 34px/1.02 var(--display);letter-spacing:-.04em;margin-top:8px;text-wrap:balance}
.cn-p{font-size:15px;color:var(--ink-2);margin-top:10px}
.cn-l{margin-top:10px}
.cn-l li{display:flex;gap:9px;align-items:flex-start;font-size:15px;line-height:1.35;padding:5px 0}
.cn-l .ic{margin-top:2px}
.cn-b{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* =====================================================================================================================
   CAMERAS
   ===================================================================================================================== */
/* the picture box */
.sc{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;color:#fff;isolation:isolate;container-type:inline-size;
  background:radial-gradient(120% 90% at 30% 20%,#34465d 0,#1c2735 60%,#141c27 100%)}
.sc::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 4px)}
.sc::after{content:"";position:absolute;inset:9px;border-radius:7px;pointer-events:none;
  background:linear-gradient(#fff,#fff) 0 0/12px 1.5px,linear-gradient(#fff,#fff) 0 0/1.5px 12px,linear-gradient(#fff,#fff) 100% 0/12px 1.5px,linear-gradient(#fff,#fff) 100% 0/1.5px 12px,
    linear-gradient(#fff,#fff) 0 100%/12px 1.5px,linear-gradient(#fff,#fff) 0 100%/1.5px 12px,linear-gradient(#fff,#fff) 100% 100%/12px 1.5px,linear-gradient(#fff,#fff) 100% 100%/1.5px 12px;
  background-repeat:no-repeat;opacity:.3}
.sc[data-state=live]::before,.sc[data-state=live]::after,.sc[data-state=live] .sc-art{display:none}
/* a faint drawing of the kind of place, so an idle wall is not all the same */
.sc-art{position:absolute;left:6%;bottom:9%;width:34%;aspect-ratio:2/1;opacity:.16;background:50% 100%/contain no-repeat;pointer-events:none}
.sc[data-kind=prod] .sc-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='32' width='90' height='12' rx='6'/%3E%3Ccircle cx='14' cy='38' r='1.6'/%3E%3Ccircle cx='34' cy='38' r='1.6'/%3E%3Ccircle cx='54' cy='38' r='1.6'/%3E%3Ccircle cx='74' cy='38' r='1.6'/%3E%3Cpath d='M16 28V14l2-3V5h4v6l2 3v14zM40 28V14l2-3V5h4v6l2 3v14zM64 28V14l2-3V5h4v6l2 3v14z'/%3E%3C/svg%3E")}
.sc[data-kind=load] .sc-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='58' height='28' rx='4'/%3E%3Cpath d='M65 34V16h12l10 11v7zM3 34h86'/%3E%3Ccircle cx='18' cy='39' r='5'/%3E%3Ccircle cx='48' cy='39' r='5'/%3E%3Ccircle cx='76' cy='39' r='5'/%3E%3Cpath d='M12 14h10v8H12zM27 14h10v8H27zM42 14h10v8H42z'/%3E%3C/svg%3E")}
.sc[data-kind=store] .sc-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='26' width='20' height='19' rx='3'/%3E%3Crect x='30' y='26' width='20' height='19' rx='3'/%3E%3Crect x='54' y='26' width='20' height='19' rx='3'/%3E%3Crect x='18' y='4' width='20' height='19' rx='3'/%3E%3Crect x='42' y='4' width='20' height='19' rx='3'/%3E%3Cpath d='M16 26v6M40 26v6M64 26v6M28 4v6M52 4v6'/%3E%3C/svg%3E")}
.sc[data-kind=gate] .sc-art{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='18' width='9' height='27' rx='3'/%3E%3Cpath d='M19 26 88 8M3 45h90M36 21.500l3 5M54 16.800l3 5M72 12.200l3 5'/%3E%3Ccircle cx='14.500' cy='10' r='3.500'/%3E%3C/svg%3E")}
.vf .sc-art{display:none}
.sc-cv{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .6s}
.sc[data-state=live] .sc-cv{opacity:1}
.sc-top{position:absolute;left:14px;top:13px;z-index:2;display:flex;align-items:center;gap:6px}
.sc-id{font:700 13px/1 var(--display);padding:4px 7px;border-radius:7px;background:rgba(255,255,255,.14)}
.sc[data-state=live] .sc-id{background:rgba(12,18,26,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.sc-live{display:none;align-items:center;gap:5px;font:700 12px/1 var(--display);letter-spacing:.07em;padding:4px 7px 4px 6px;border-radius:7px;background:var(--crit)}
.sc[data-state=live] .sc-live{display:inline-flex}
.sc-live i{width:6px;height:6px;border-radius:50%;background:#fff;animation:blink 1.4s ease-in-out infinite}
.sc-mid{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:30px 14px 10px;text-align:center;pointer-events:none}
.sc-mid>*{pointer-events:auto}
.sc-play{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px 0 16px;border:0;border-radius:21px;background:#fff;color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;box-shadow:0 12px 26px -10px rgba(0,0,0,.75);transition:transform .15s}
.sc-play:hover{transform:scale(1.04)}
.sc-wait{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:#c9d2de}
.spin{width:24px;height:24px;border-radius:50%;border:2.5px solid rgba(255,255,255,.22);border-top-color:#fff;animation:spin .8s linear infinite}
.sc-no{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:30ch;font-size:13px;line-height:1.3;color:#e6ebf2}
.sc-no p{font-weight:600;text-wrap:balance}
.sc-link{border:0;background:transparent;color:#fff;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px 6px;border-radius:6px}
.sc-ctl{position:absolute;right:10px;bottom:10px;z-index:2;display:flex;gap:6px}
.sc-b{height:34px;min-width:34px;padding:0;border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#fff;background:rgba(12,18,26,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);font-size:13px;font-weight:600;cursor:pointer;transition:background .15s}
.sc-b:hover{background:rgba(255,255,255,.26)}
.sc-b:not(.sc-max){display:none}
.sc[data-state=live] .sc-b:not(.sc-max),.sc[data-state=connecting] .sc-b:not(.sc-max){display:inline-flex}
.sc-max span{display:none}
.sc:hover .sc-max,.sc-max:focus-visible{padding:0 11px 0 9px}
.sc:hover .sc-max span,.sc-max:focus-visible span{display:inline}
@container (max-width:330px){
  .sc:hover .sc-max,.sc-max:focus-visible{padding:0}.sc:hover .sc-max span,.sc-max:focus-visible span{display:none}
  .sc-no{font-size:13px;gap:3px}.sc-no .ic{display:none}
}
@container (max-width:215px){
  .sc-play{width:42px;padding:0;justify-content:center}.sc-play span:not(.ic){display:none}
  .sc-top{left:8px;top:8px}.sc-ctl{right:6px;bottom:6px;gap:4px}
  .sc-b{height:30px!important;min-width:30px!important;border-radius:9px}
}
/* the tile */
.ct{display:flex;flex-direction:column;min-width:0}
.ct .sc{transition:box-shadow .2s}
.ct.is-alert .sc{box-shadow:0 0 0 2px var(--ring,var(--card)),0 0 0 4px var(--crit)}
.ct-cap{position:relative;padding:8px 2px 0;min-width:0;container-type:inline-size}
.ct-r1{display:flex;align-items:center;gap:8px;min-width:0}
.ct-name{flex:1;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-r2{display:flex;align-items:center;gap:5px;min-width:0;margin-top:4px;font-size:13px;line-height:1.3;color:var(--ink-2)}
.ct-r2 .ic svg{width:14px;height:14px}
.ct-say{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct.is-alert .ct-say{color:var(--ink);font-weight:600}
.ct.is-new .sc{animation:newstop 1.2s ease-out 3}
@container (max-width:250px){.ct-r1{flex-wrap:wrap;gap:5px 8px}.ct-name{flex:1 0 100%}}
.ct-pin{display:none;position:absolute;right:0;bottom:-3px;align-items:center;gap:5px;height:26px;padding:0 8px;border:0;border-radius:8px;background:var(--card);box-shadow:0 0 0 1px var(--hair);font-size:13px;font-weight:600;cursor:pointer}
.has-big .ct:not(.is-big):hover .ct-pin,.has-big .ct:not(.is-big) .ct-pin:focus-visible{display:inline-flex}
/* the Live view band */
.bd-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bd-count{font-size:13px;color:var(--ink-2)}
/* the wall */
.wall-bar{position:sticky;top:66px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:9px 12px;background:rgba(255,253,249,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:18px;box-shadow:0 0 0 1px var(--hair),0 16px 26px -22px rgba(23,33,46,.5)}
.wall-find{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.16);flex:1 1 230px;max-width:330px;color:var(--ink-3)}
.wall-find:focus-within{box-shadow:inset 0 0 0 2px var(--flow)}
.wall-q{flex:1;min-width:0;height:100%;border:0;background:transparent;outline:0;font-size:14px;color:var(--ink)}
.wall-q::placeholder{color:var(--ink-3)}
.wall-view{margin-left:auto;display:flex;align-items:center;gap:10px}
.wall-l{font-size:13px;color:var(--ink-2)}
.wall{display:flex;flex-direction:column;gap:14px}
.wall-sec{padding:14px 16px 16px}
.wall-head{margin-bottom:12px}
.wall-head .st-side{grid-row:1/3}
.wall-head p{grid-column:2}
.wall-grid{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:16px 14px}
.wall-grid .ct{--ring:var(--tint)}
.ct.is-big{grid-column:span 2;grid-row:span 2;align-self:start}

/* the viewer (theatre) */
.vw{position:fixed;inset:0;z-index:110;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#eef2f6;opacity:0;transition:opacity .22s;
  background:radial-gradient(1000px 500px at 30% -10%,rgba(60,90,130,.28),transparent 70%),radial-gradient(circle at 1px 1px,rgba(255,255,255,.05) 1px,transparent 1.5px) 0 0/22px 22px,var(--night)}
.vw.is-in{opacity:1}
.vw-h{display:flex;align-items:center;gap:16px;padding:12px 16px 12px;min-width:0}
.vw-ttl{display:flex;align-items:center;gap:11px;min-width:0}
.vw-ttl .st-num{width:30px;height:30px;font-size:15px;background:var(--tint);color:var(--ink)}
.vw-ttl b{display:block;font:800 22px/1 var(--display);letter-spacing:-.03em;white-space:nowrap}
.vw-ttl span:not(.st-num){display:block;font-size:13px;color:#aeb9c6;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vw-ttl>div{min-width:0}
.vw-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.vw-count{font-size:13px;color:#c9d2de;margin-right:6px;white-space:nowrap}
.vw-lay{display:inline-flex;align-items:center;gap:8px}
.vw-lay em{font-style:normal;font-size:13px;color:#aeb9c6}
.vb{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:0;border-radius:11px;background:rgba(255,255,255,.1);color:#fff;font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer;transition:background .15s}
.vb:hover{background:rgba(255,255,255,.2)}
.vb-ic,.vb-x{width:38px;padding:0;justify-content:center}
.vb-ghost{background:transparent;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22)}
.vw-main{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:14px;padding:0 16px;min-height:0}
.vw-stage{container-type:size;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:12px;min-width:0;min-height:0;--strip:0px}
.vs{width:min(100cqw,calc((100cqh - var(--strip)) * 16 / 9));min-width:0}
.vw[data-layout="2"] .vw-stage,.vw[data-layout="4"] .vw-stage{--strip:44px}
.vw[data-layout="2"] .vs{width:min(calc((100cqw - 12px) / 2),calc((100cqh - var(--strip)) * 16 / 9))}
.vw[data-layout="4"] .vs{width:min(calc((100cqw - 12px) / 2),calc(((100cqh - 12px) / 2 - var(--strip)) * 16 / 9))}
.vs .sc{border-radius:16px;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 30px 60px -30px #000}
.vs.is-sel .sc{box-shadow:0 0 0 2px #fff,0 30px 60px -30px #000}
.vs .sc-id{font-size:14px;padding:5px 8px}
.vs-strip{display:none;align-items:center;gap:8px;height:36px;margin-top:8px;padding:0 6px 0 10px;border-radius:11px;background:rgba(255,255,255,.08);font-size:13px;white-space:nowrap;min-width:0;cursor:pointer}
.vs-strip .ic svg{width:15px;height:15px}
.vs-strip b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis}
.vs-strip b{flex:1 1 auto}
.vs-fig{flex:none;color:#c0cad6;padding-left:6px;font-variant-numeric:tabular-nums}
.vs-long{display:none;color:#c0cad6;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.vs-strip em{font:700 13px/1 var(--display);font-style:normal;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.12)}
.vw[data-layout="2"] .vs-strip,.vw[data-layout="4"] .vs-strip{display:flex}
/* two pictures: each gets two lines of numbers */
.vw[data-layout="2"] .vw-stage{--strip:72px}
.vw[data-layout="2"] .vs-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ic say id" ". long long";gap:3px 9px;height:64px;padding:8px 8px 8px 12px;align-content:center;border-radius:14px}
.vw[data-layout="2"] .vs-strip b{grid-area:say;font:700 16px/1.2 var(--display);letter-spacing:-.01em}
.vw[data-layout="2"] .vs-strip .ic{grid-area:ic}.vw[data-layout="2"] .vs-strip em{grid-area:id}
.vw[data-layout="2"] .vs-fig{display:none}
.vw[data-layout="2"] .vs-long{display:block;grid-area:long}
.vw[data-layout="2"] .vw-main,.vw[data-layout="4"] .vw-main{grid-template-columns:minmax(0,1fr)}
.vw[data-layout="2"] .vw-rail,.vw[data-layout="4"] .vw-rail{display:none}
/* the rail: the place's live numbers, on paper */
.vw-rail{overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;border-radius:18px}
.rl{display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.rl-h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:18px;background:var(--tint)}
.rl-h h3{font:800 22px/1 var(--display);letter-spacing:-.03em}
.rl-h p{font-size:13px;line-height:1.25;color:var(--ink-2);margin-top:3px}
.rl-pick{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px 7px 14px;border-radius:14px;background:rgba(255,255,255,.1);color:#dfe6ee;font-size:13px}
.rl-state{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:16px;background:var(--card)}
.rl-state .ic svg{width:22px;height:22px}
.rl-state b{display:block;font:800 19px/1.1 var(--display);letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.rl-state span{display:block;font-size:13px;color:var(--ink-2);margin-top:2px}
.rl-state.is-crit{background:#fbe9e4;box-shadow:inset 0 0 0 1.5px rgba(208,59,59,.4)}
.rl-state.is-good,.rl-state.is-run{background:#eaf5e7}
.rl-state.is-slow,.rl-state.is-warn{background:#fdf3d8}
.rl-card{background:var(--card);border-radius:16px;padding:11px 14px 12px;--ring:var(--card)}
.rl-l{font:600 13px/1.2 var(--body);color:var(--ink-2)}
.rl-f{display:flex;align-items:baseline;gap:7px;margin-top:4px}
.rl-f b{font:800 28px/1 var(--display);letter-spacing:-.035em}
.rl-f span{font-size:13px;line-height:1.2;color:var(--ink-2)}
.rl-n{font-size:13px;line-height:1.3;color:var(--ink-3);margin-top:3px}
.rl-n:empty{display:none}
.rl-list{margin-top:4px;font-size:13px}
.rl-list li{display:flex;align-items:baseline;gap:8px;padding:5px 0;border-top:1px solid var(--hair)}
.rl-list li:first-child{border-top:0}
.rl-why{flex:1;min-width:0}
.rl-list b{font-weight:600}
.rl-list li.is-open .rl-why{font-weight:600;color:var(--crit)}
.rl-lorry{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center}
.rl .rl-go{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22);justify-content:space-between}
.rl .rl-go:hover{background:rgba(255,255,255,.2)}
.rl .hb{min-height:26px;grid-template-columns:minmax(0,56%) minmax(0,1fr)}
.rl .hbars{margin-top:4px;--hb-room:50px}
/* the strip of related cameras */
.vw-film{position:relative;padding:10px 16px 14px;min-width:0}
.vf-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.vf-tt{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vf-tt b{font:800 17px/1.2 var(--display);letter-spacing:-.02em}
.vf-tt span{font-size:13px;color:#aeb9c6;margin-left:10px}
.vf-nav{display:flex;align-items:center;gap:6px;flex:none}
.vf-l{display:flex;gap:14px;overflow-x:auto;padding:3px;margin:-3px;scrollbar-width:none}
.vf-l::-webkit-scrollbar{display:none}
.vf{position:relative;flex:none;width:164px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:0;border-radius:12px}
.vf .sc{border-radius:11px;opacity:.72;transition:opacity .15s,box-shadow .15s}
.vf:hover .sc{opacity:1}
.vf.is-on .sc{opacity:1;box-shadow:0 0 0 2px var(--night),0 0 0 4px #fff}
.vf .sc-top,.vf .sc-ctl,.vf .sc-play,.vf .sc-wait span,.vf .sc::after{display:none}
.vf .sc[data-state=idle] .sc-mid{padding:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Crect x='1.5' y='5' width='22' height='16' rx='4.5' fill='none' stroke='%23aeb9c6' stroke-width='1.8'/%3E%3Cpath d='m23.5 11 7.6-4.2a.6.6 0 0 1 .9.5v11.4a.6.6 0 0 1-.9.5L23.5 15z' fill='none' stroke='%23aeb9c6' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50%/30px auto no-repeat}
.vf-t{display:block;margin-top:7px;min-width:0}
.vf-t b{display:block;font:700 14px/1.1 var(--display)}
.vf-t i{display:block;font-style:normal;font-size:13px;color:#aeb9c6;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.is-walk .vf+.vf::before{content:"";position:absolute;left:-14px;top:46px;width:14px;height:2px;background:#52627a}
.vw-places{position:absolute;right:16px;bottom:calc(100% - 46px);z-index:6;width:min(620px,calc(100vw - 32px));padding:12px 14px 14px;border-radius:18px;background:var(--card);color:var(--ink);box-shadow:0 30px 60px -20px #000;animation:rise .2s both}
.vp-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;align-items:start;padding:7px 0}
.vp-row+.vp-row{border-top:1px solid var(--hair)}
.vp-n{display:flex;align-items:center;gap:8px;font:700 14px/1 var(--display);min-height:30px}
.vp-c{display:flex;flex-wrap:wrap;gap:6px}
/* full screen: the picture as large as the screen allows, a slim strip of numbers under it */
.vw.is-fs{grid-template-rows:minmax(0,1fr);background:#06090d}
.vw.is-fs .vw-film,.vw.is-fs .vw-rail{display:none}
.vw.is-fs .vw-main{grid-template-columns:minmax(0,1fr);padding:0}
.vw.is-fs .vw-stage{--strip:44px;gap:8px}
.vw.is-fs .vs-strip{display:flex;margin-top:6px;height:38px;background:rgba(255,255,255,.1)}
.vw.is-fs .vs .sc{border-radius:0;box-shadow:none}
.vw.is-fs[data-layout="1"] .vs.is-sel .sc{box-shadow:none}
.vw.is-fs .vw-h{position:absolute;left:0;right:0;top:0;z-index:5;padding-bottom:30px;background:linear-gradient(rgba(6,9,13,.96) 40%,transparent);opacity:0;pointer-events:none;transition:opacity .25s}
.vw.is-fs.ui .vw-h{opacity:1;pointer-events:auto}
.vw.is-fs .sc-top{transition:opacity .25s}
.vw.is-fs.ui .sc-top{opacity:0}
/* the mini player */
.mini{position:fixed;right:18px;bottom:18px;z-index:70;width:340px;border-radius:16px;overflow:hidden;background:var(--night);color:#fff;cursor:grab;touch-action:none;user-select:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.14),0 26px 50px -18px rgba(10,16,24,.8);animation:rise .3s cubic-bezier(.2,.7,.2,1) both}
.mini.is-drag{cursor:grabbing;transition:none}
.mini .sc{border-radius:0}
.mini-bar{display:flex;align-items:center;gap:7px;height:44px;padding:0 5px 0 12px;font-size:13px}
.mini-bar>span:not(.ic){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dfe6ee}
.mini-bar .ic svg{width:14px;height:14px}
.mini-bar .vb{height:34px;width:34px;background:transparent}
.mini-bar .vb:hover{background:rgba(255,255,255,.16)}

/* ---------- the phone bar (hidden on a computer) ---------- */
.tabbar,.camfab{display:none}

/* ---------- motion ---------- */
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
@keyframes fade{from{opacity:0}}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(12,163,12,.5)}70%,100%{box-shadow:0 0 0 8px rgba(12,163,12,0)}}
@keyframes halo{0%{opacity:.45;transform:scale(.5)}80%,100%{opacity:0;transform:scale(1.7)}}
@keyframes pop{from{transform:scale(.2);opacity:0}}
@keyframes nudge{0%,60%,100%{transform:translateX(0)}75%{transform:translateX(4px)}88%{transform:translateX(1px)}}
@keyframes vdots{to{stroke-dashoffset:-10}}
@keyframes hdots{to{stroke-dashoffset:-8}}
@keyframes blink{50%{opacity:.35}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes cnrun{to{transform:translateX(120px)}}
@keyframes newstop{0%{box-shadow:0 0 0 2px var(--ring,var(--card)),0 0 0 4px var(--crit),0 0 0 4px rgba(208,59,59,.5)}100%{box-shadow:0 0 0 2px var(--ring,var(--card)),0 0 0 4px var(--crit),0 0 0 18px rgba(208,59,59,0)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- narrower than a desktop ---------- */
@media (max-width:1320px){
  .jn-over .jn-t>i{display:none}
  .jn{padding-right:12px}
  .vw-lay em,.vw-count{display:none}
}
@media (max-width:1179px){
  .top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand clock" "tks shift";gap:13px 0;padding:12px 18px 14px 14px}
  .brand{grid-area:brand;padding-right:0}
  .clockbox{grid-area:clock;flex-direction:row;align-items:center;gap:12px;padding:0;border-left:0}
  .tks{grid-area:tks}
  .tk:first-child{padding-left:2px;border-left:0}
  .shift{grid-area:shift;margin-left:0;padding-right:0}
  .journey{overflow-x:auto;scrollbar-width:none}
  .journey::-webkit-scrollbar{display:none}
  .jn-t>i,.jn-cam .jn-live{display:none}
  .jn-li{flex:none}.jn-gap{width:26px}
  .flow{display:flex;flex-direction:column;max-width:760px;margin-inline:auto}
  .pipes,.intake{display:none}
  .link{display:flex;align-items:center;justify-content:center;gap:10px;height:54px;font-size:14px;color:var(--ink-2)}
  .link svg{flex:none}
  .link .bg{stroke:var(--pipe);stroke-width:8;stroke-linecap:round;fill:none}
  .link .dots{stroke:var(--flow);stroke-width:3;stroke-linecap:round;stroke-dasharray:.1 9.9;fill:none;animation:vdots 1s linear infinite}
  .link b{font:800 20px/1 var(--display);letter-spacing:-.03em;color:var(--ink)}
  .panels{grid-template-columns:minmax(0,1fr);max-width:760px;margin-inline:auto}
  .band{max-width:760px;margin-inline:auto;width:100%}
  .bd-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wait{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gate-top{display:flex;align-items:center;gap:16px}
  .gate-art{margin:0;flex:none;width:130px}
  .gate-say{margin:0;justify-content:flex-start}
  .gate-txt{align-items:flex-start;margin:0}
  .gate-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
  .gate-cards .card{margin-top:0}
  .s-gate .road{display:none}
  .gr-3,.gr-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-2-1,.gr-1-2{grid-template-columns:minmax(0,1fr)}
  .wall-grid{grid-template-columns:repeat(min(var(--cols,4),3),minmax(0,1fr))}
  .cn{grid-template-columns:minmax(0,1fr)}
  .vw-main{grid-template-columns:minmax(0,1fr) 300px}
  .vb:not(.vb-ghost) span:not(.ic){display:none}
  .vb:not(.vb-ghost){width:38px;padding:0;justify-content:center}
}

/* the top strip on a narrow screen: the shift gets its own line under the three figures */
@media (max-width:860px){
  .top{grid-template-areas:"brand clock" "tks tks" "shift shift";gap:12px 0}
  .tks .tk{flex:1 1 0}
  .shift{width:auto;padding:0;border-left:0}
  body:not(.is-home) .top{row-gap:10px}
}

/* ---------- the phone ---------- */
@media (max-width:640px){
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .top{margin:10px 10px 0;border-radius:18px;gap:11px 10px;padding:12px 14px 14px}
  body:not(.is-home) .tks{display:none}
  .tk{padding:0 14px}
  .tk-v{flex-wrap:wrap;gap:3px 6px}
  .tk-v b{font-size:20px}
  .tk-v i{flex-basis:100%;padding-bottom:0}
  .tk-ring{width:19px;height:19px}
  /* the clock with the time of the last data under it; "Live" at its left, the account button at its right */
  .clockbox{display:grid;grid-template-columns:auto auto auto;grid-template-areas:"live clock acct" ". upd acct";align-items:center;gap:3px 9px}
  .livebox{display:contents}
  .clockbox .live{grid-area:live}
  #clock{grid-area:clock;justify-self:end}
  .upd{grid-area:upd;justify-self:end;font-size:11px}
  .acct-m{grid-area:acct;display:grid;width:38px;height:38px;border-radius:13px;font-size:15px;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.16)}
  .journey{display:none}
  .page{margin:10px 10px 0}
  .ph{grid-template-columns:minmax(0,1fr);padding:14px 14px 12px;border-radius:22px}
  .ph h1{font-size:30px}
  .ph-eye span{display:none}
  .ph-tools{justify-content:flex-start;margin-top:8px}
  .tabs{margin:12px -14px 0;padding:2px 14px;scroll-snap-type:x proximity}
  .tab{height:40px;scroll-snap-align:center}
  .pb{gap:12px;margin-top:10px}
  .stage{padding:14px 12px 14px;border-radius:22px}
  .panel{padding:16px 14px 18px;border-radius:22px}
  .gr,.gr-2,.gr-3,.gr-4{grid-template-columns:minmax(0,1fr);gap:12px}
  .btn{min-height:44px}
  .btn.sm{min-height:40px}
  .seg-b{height:38px;min-width:40px}
  .seg-range{display:flex;width:100%}.seg-range .seg-b{flex:1}
  /* table -> cards */
  .tb-sort{display:flex}
  .tb-cards .tb thead{display:none}
  .tb-cards .tb,.tb-cards tbody,.tb-cards tfoot,.tb-cards tr,.tb-cards td,.tb-cards th{display:block}
  .tb-cards tbody tr,.tb-cards tfoot tr{background:var(--card);border-radius:16px;box-shadow:0 0 0 1px var(--hair);padding:10px 12px 8px;margin-top:8px}
  .tb-cards tbody tr.is-sel{box-shadow:0 0 0 2px var(--flow)}
  .tb-cards .tb tbody td,.tb-cards .tb tfoot td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0;border:0;text-align:right;background:transparent!important;font:inherit}
  .tb-cards .tb td::before{content:attr(data-label);flex:none;color:var(--ink-3);font:400 13px/1.3 var(--body);text-align:left}
  .tb-cards .tb .tb-title{font:700 17px/1.2 var(--display);padding:0 0 7px;margin-bottom:3px;border:0;border-bottom:1px solid var(--hair);background:transparent!important;box-shadow:none!important}
  .tb-cards tfoot tr{box-shadow:0 0 0 2px var(--ink)}
  .tb-cards .tb tfoot td{font-weight:700}
  .tb-cards .tb td.is-blank{display:none}
  .hide-phone{display:none!important}
  /* the flow */
  .flow{margin:0}
  .st-fig{grid-column:2/4;grid-row:3;text-align:left;margin-top:6px}
  .st-fig b{font-size:30px}
  .lanes-key{display:block;padding:0 2px;margin-bottom:6px}
  .lanes-key .kc{display:none}
  .hall-head{padding:9px 2px 5px}
  .lane{grid-template-columns:36px minmax(0,1fr) 36px auto;grid-template-areas:"id what what cases" "track track cam speed";row-gap:7px;min-height:0;padding:8px 6px 9px}
  .lane.is-stopped{grid-template-areas:"id what what cases" "track track track speed" "stop stop stop stop";row-gap:7px;padding:8px 6px 9px}
  .lane.is-idle{grid-template-areas:"id what cam cam";min-height:40px;padding:4px 6px}
  .is-idle .ln-cam{justify-content:flex-start}
  .is-stopped .ln-cam{display:none}
  .is-idle .track,.is-idle .ln-cases,.is-idle .ln-speed,.is-idle .ln-eff{display:none}
  .ln-cases{font-size:16px}
  .ln-cases::after{content:" cases";font:400 13px/1 var(--body);color:var(--ink-3);letter-spacing:0}
  .ln-speed{min-width:86px}
  .ln-speed::after{content:"speed";color:var(--ink-3);margin-left:2px}
  .ln-cam .cb,.is-idle .ln-cam .cb{width:36px;height:30px;color:var(--ink);background:#fff;box-shadow:0 0 0 1px rgba(23,33,46,.16)}
  .ln-stop{flex-wrap:wrap}
  .ln-stop .cb{height:34px;padding:0 12px 0 10px}
  .cb{height:34px}.cb.is-quiet{width:36px}
  .sg{padding:8px 4px 7px}
  .sr-row{height:22px}
  .lead{font-size:21px}.lead b{font-size:30px}
  .bays{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bay.is-free{min-height:84px}
  .bay .lorry{width:92px}
  .bay .cb{width:36px;height:32px}
  .wait{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wt{min-height:44px}
  .gate-top{gap:12px}
  .gate-art{width:104px}
  .gate-cards{grid-template-columns:minmax(0,1fr)}
  .panels{gap:12px}
  .tl li{min-height:40px}
  .p-out .chart-plot{min-height:224px}
  .stops li{min-height:42px;grid-template-columns:34px minmax(0,1fr) auto 36px}
  .stops .cb{width:36px;height:32px}
  .cn{padding:18px 16px 22px;gap:18px}
  .cn-belt{height:170px}
  .cn h2{font-size:28px}
  /* cameras */
  .band .pn-tools{width:100%;justify-content:space-between}
  .band .pn-tools .btn{display:none}
  .bd-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -14px;padding:4px 14px 6px;scrollbar-width:none}
  .bd-row::-webkit-scrollbar{display:none}
  .bd-row .ct{flex:0 0 84%;scroll-snap-align:center}
  .sc-b{height:38px;min-width:38px}
  .wall-bar{position:static;padding:10px}
  .wall-find{flex-basis:100%;max-width:none;height:44px}
  .seg-stage{display:flex;width:100%;overflow-x:auto;scrollbar-width:none}
  .seg-stage::-webkit-scrollbar{display:none}
  .seg-stage .seg-b{flex:none}
  .wall-view{margin-left:0;width:100%;flex-wrap:wrap;gap:8px 10px}
  .wall-view .seg{flex:1}.wall-view .seg-b{flex:1;padding:0 4px;min-width:0}
  .wall-sec{padding:14px 12px}
  .wall-grid{grid-template-columns:repeat(min(var(--cols,2),2),minmax(0,1fr));gap:14px 10px}
  .wall-grid[style*="--cols: 2"],.wall-grid[style*="--cols:2"]{grid-template-columns:minmax(0,1fr)}
  .wall-head{grid-template-columns:auto minmax(0,1fr)}
  .wall-head .st-side{grid-column:1/3;grid-row:3;margin-top:10px;justify-content:space-between}
  .wall-head p{grid-column:2}
  .ct-name{font-size:13.5px}
  .ct-pin span{display:none}
  .has-big .ct:not(.is-big) .ct-pin{display:inline-flex}
  /* the viewer: a full-screen sheet; picture on top, then the related cameras, then the numbers */
  .vw{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;background:var(--night)}
  .vw-h{position:sticky;top:0;z-index:6;background:var(--night);padding:10px 10px 8px;gap:8px}
  .vw-ttl .st-num{width:26px;height:26px;font-size:13px}
  .vw-ttl b{font-size:18px}
  .vw-tools{gap:5px}
  .vb{height:40px}.vb-ic,.vb-x,.vb:not(.vb-ghost){width:40px}
  .seg-dark .seg-b{min-width:32px;height:34px;padding:0 6px}
  .vw-main{display:contents}
  .vw-stage{container-type:normal;order:1;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;flex:none}
  .vs,.vw[data-layout="2"] .vs,.vw[data-layout="4"] .vs{width:100%}
  .vw[data-layout="4"] .vw-stage{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 6px}
  .vw[data-layout="4"] .vs-fig,.vw[data-layout="4"] .vs-strip em{display:none}
  .vs .sc{border-radius:0;box-shadow:none}
  .vw[data-layout="4"] .vs .sc{border-radius:10px}
  .vs-strip{margin:6px 8px 0}
  .vw[data-layout="4"] .vs-strip{margin:6px 0 0}
  .vw-film{order:2;padding:12px 12px 4px}
  .vf{width:132px}
  .is-walk .vf+.vf::before{top:37px}
  .vf-tt span{display:block;margin:2px 0 0}
  .vf-nav .vb-ic{display:none}
  .vw-rail,.vw[data-layout="2"] .vw-rail,.vw[data-layout="4"] .vw-rail{display:block;order:3;overflow:visible;padding:10px 12px 26px;flex:none}
  .vw-places{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-height:70vh;overflow-y:auto}
  .vp-row{grid-template-columns:minmax(0,1fr)}
  .vw.is-fs{display:grid}
  .vw.is-fs .vw-stage{container-type:size;display:flex}
  .vw.is-fs .vs{width:min(100cqw,calc((100cqh - 44px) * 16 / 9))}
  .mini{width:206px;left:10px;right:auto;bottom:calc(84px + env(safe-area-inset-bottom))}
  .mini-bar{height:40px;padding-left:8px}
  .mini-bar>span:not(.ic){font-size:13px}
  .sheet{border-radius:24px 24px 0 0;max-height:88vh;width:100%}
  .scrim{place-items:end center;padding:0}
  /* the five places, and the camera button */
  .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:45;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:7px 6px calc(7px + env(safe-area-inset-bottom));
    background:rgba(255,253,249,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 -1px 0 var(--hair),0 -16px 30px -24px rgba(23,33,46,.55)}
  .tb-i{display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px 0 2px;border-radius:14px;text-decoration:none;color:var(--ink-3);font-size:13px;font-weight:600;line-height:1.15;--tb:var(--card)}
  .tb-ic{width:50px;height:30px;border-radius:15px;transition:background .2s}
  .tb-i[aria-current]{color:var(--ink)}
  .tb-i[aria-current] .tb-ic{background:var(--tint);box-shadow:inset 0 0 0 1.5px var(--ink);--tb:var(--tint)}
  .tb-i.t-paper[aria-current] .tb-ic{background:var(--ink);color:#fff}
  .camfab{position:fixed;right:14px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:44;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;box-shadow:0 0 0 3px var(--paper),0 16px 28px -10px rgba(23,33,46,.75)}
  .camfab .ic svg{width:23px;height:18px}
  .camfab[aria-current]{background:var(--flow)}
  .camfab b{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:11px;background:var(--crit);font:700 13px/22px var(--display);text-align:center;box-shadow:0 0 0 2px var(--paper)}
}
/* a phone on its side: the picture fills the screen */
@media (orientation:landscape) and (max-height:520px){
  .vw{display:block;overflow:hidden}
  .vw-film,.vw-rail{display:none!important}
  .vw-h,.vw.is-fs .vw-h{position:absolute;left:auto;right:0;top:0;bottom:0;z-index:6;width:calc((100vw - 100dvh * 16 / 9) / 2);min-width:52px;padding:8px 6px;background:none;opacity:1;pointer-events:auto;justify-content:center;align-items:flex-start}
  .vw-ttl,.vw-lay,.vw-count{display:none}
  .vw-tools{flex-direction:column;margin:0;gap:8px}
  .vs-fig,.vs-long{display:none!important}
  .vw-main{display:block;padding:0;height:100dvh}
  .vw-stage{container-type:size;height:100dvh;display:flex;gap:6px;--strip:0px!important}
  .vs,.vw[data-layout] .vs{position:relative;width:min(100cqw,calc(100cqh * 16 / 9))}
  .vw[data-layout="2"] .vs,.vw[data-layout="4"] .vs{width:min(calc((100cqw - 6px) / 2),calc(100cqh * 16 / 9))}
  .vw[data-layout="4"] .vs{width:min(calc((100cqw - 6px) / 2),calc((100cqh - 6px) / 2 * 16 / 9))}
  .vs .sc{border-radius:0;box-shadow:none}
  .vs-strip,.vw[data-layout] .vs-strip,.vw.is-fs .vs-strip{display:flex;position:absolute;left:auto;right:10px;top:auto;bottom:10px;max-width:60%;margin:0;height:34px;padding:0 6px 0 10px;border-radius:11px;background:rgba(8,12,18,.7)}
  .vw[data-layout] .vs-strip b{font:600 13px/1.2 var(--body)}
  .vs .sc-ctl{bottom:52px}
}

/* ---------- which days: Day · Week · Month · Year · All time, and the "Pick dates" calendar ---------- */
.rg{display:flex;align-items:center;gap:8px;min-width:0}
.rg-dates{display:inline-flex;align-items:center;height:38px;border-radius:13px;background:rgba(255,255,255,.66);box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.2);transition:background .15s}
.rg-pick{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px 0 12px;border:0;border-radius:13px;background:transparent;font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer;font-variant-numeric:tabular-nums}
.rg-dates:not(.is-on):hover{background:#fff}
.rg-pick[aria-expanded=true]{box-shadow:inset 0 0 0 2px var(--ink)}
.rg-dates.is-on{background:var(--ink);color:#fff;box-shadow:none}
.rg-dates.is-on .rg-pick{padding-right:8px}
.rg-dates.is-on .rg-pick[aria-expanded=true]{box-shadow:inset 0 0 0 2px var(--flow-soft)}
.rg-x{flex:none;display:grid;place-items:center;width:28px;height:28px;margin-right:5px;border:0;border-radius:9px;background:rgba(255,255,255,.16);color:#fff;cursor:pointer}
.rg-x:hover{background:rgba(255,255,255,.3)}
.rg-x svg{width:13px;height:13px}
.rg-dates.is-on :focus-visible{outline-color:#fff;outline-offset:-3px}

.cal{background:var(--card);color:var(--ink)}
.cal-pop{position:absolute;z-index:95;width:max-content;max-width:calc(100vw - 24px);border-radius:24px;box-shadow:0 0 0 1px var(--hair),0 34px 60px -24px rgba(15,23,34,.62);animation:rise .22s cubic-bezier(.2,.7,.2,1) both}
.cal-h{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 16px 4px 20px}
.cal-h h2{font:800 20px/1.1 var(--display);letter-spacing:-.03em}
.cal-h p{font-size:13px;color:var(--ink-3);margin-top:4px}
.cal-b{padding:10px 14px 4px}
.cal-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 6px 12px}
.cal-q{height:32px;padding:0 12px;border:0;border-radius:16px;background:rgba(23,33,46,.06);box-shadow:inset 0 0 0 1px var(--hair);font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer;transition:background .15s}
.cal-q:hover{background:rgba(23,33,46,.11)}
.cal-q[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:none}
.cal-grid{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:4px}
.cal-nav{margin-top:1px;width:34px;height:34px;box-shadow:none;background:rgba(23,33,46,.06)}
.cal-nav:hover{background:rgba(23,33,46,.12)}
.cal-months{display:flex;gap:26px;justify-content:center}
.cal-m h3{font:700 16px/36px var(--display);letter-spacing:-.02em;text-align:center}
.cal-m table{border-collapse:collapse;margin-top:2px}
.cal-m th{width:40px;height:26px;font:600 13px/1 var(--body);color:var(--ink-3);text-align:center}
.cal-m td{padding:1px 0;width:40px;height:38px}
.cal-d{position:relative;display:grid;place-items:center;width:100%;height:36px;border:0;border-radius:11px;background:transparent;font:600 14px/1 var(--body);font-variant-numeric:tabular-nums;cursor:pointer}
.cal-d span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:9px}
.cal-d:not(:disabled):hover{background:rgba(23,33,46,.08)}
.cal-d.is-hol{color:var(--ink-3);font-weight:400}
.cal-d.is-today span{box-shadow:inset 0 0 0 1.5px currentColor}
.cal-d:disabled{cursor:default;color:var(--axis);font-weight:400}
.cal-d.is-before span{background:repeating-linear-gradient(135deg,rgba(23,33,46,.07) 0 2px,transparent 2px 5px);color:var(--ref)}
.cal-d.is-pre{background:rgba(42,120,214,.13);border-radius:0}
.cal-d.is-in{background:var(--pipe);border-radius:0;color:var(--ink)}
.cal-d.is-a,.cal-d.is-b,.cal-d.is-one,.cal-d.is-a:hover,.cal-d.is-b:hover,.cal-d.is-one:hover{background:var(--ink);color:#fff;font-weight:700}
.cal-d.is-a{border-radius:11px 0 0 11px}.cal-d.is-b{border-radius:0 11px 11px 0}.cal-d.is-a.is-b{border-radius:11px}
td:first-child>.cal-d.is-in,td:first-child>.cal-d.is-pre{border-radius:11px 0 0 11px}td:last-child>.cal-d.is-in,td:last-child>.cal-d.is-pre{border-radius:0 11px 11px 0}
.cal-d:focus-visible{outline:2px solid var(--flow);outline-offset:1px;z-index:1}
.cal-f{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;padding:12px 16px 16px 20px;margin-top:8px;border-top:1px solid var(--hair)}
.cal-say{font-size:14px;line-height:1.35;color:var(--ink-2);min-height:20px;max-width:46ch}
.cal-say b{color:var(--ink);font-weight:700}
.cal-btns{display:flex;gap:8px;margin-left:auto}
.cal-btns .btn{min-height:38px}
@media (max-width:900px){
  .ph:has(.has-rg){grid-template-columns:minmax(0,1fr)}
  .ph:has(.has-rg) .ph-tools{justify-content:flex-start;margin-top:8px}
}
@media (max-width:640px){
  .ph-tools.has-rg{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .ph-tools.has-rg>*{justify-self:start}
  .rg{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;width:100%;justify-self:stretch!important}
  .rg .seg-range{display:flex;width:100%}
  .rg .seg-range .seg-b{flex:1 1 0;min-width:0;padding:0 2px;height:38px}
  .rg-dates{display:flex;height:42px;border-radius:14px}
  .rg-pick{flex:1;justify-content:center;height:42px;font-size:14px}
  .rg-dates.is-on .rg-pick{justify-content:flex-start;padding-left:14px}
  .rg-x{width:40px;height:34px;margin-right:4px;border-radius:11px}
  .cal-sheet{animation:rise .3s cubic-bezier(.2,.7,.2,1) both}
  .cal-h{padding:16px 14px 2px 18px}
  .cal-b{padding:10px 12px 2px;overflow-y:auto}
  .cal-quick{padding:0 2px 10px}
  .cal-q{height:40px;padding:0 14px;border-radius:20px;font-size:14px}
  .cal-grid{grid-template-columns:minmax(0,1fr);position:relative}
  .cal-nav{position:absolute;top:0;width:44px;height:44px;border-radius:14px}
  .cal-nav:first-child{left:0}.cal-nav:last-child{right:0}
  .cal-months{display:block}
  .cal-m h3{font-size:18px;line-height:44px}
  .cal-m table{width:100%;table-layout:fixed}
  .cal-m th{width:auto;height:30px}
  .cal-m td{width:auto;height:46px;padding:1px 0}
  .cal-d{height:44px;font-size:16px;border-radius:13px}
  .cal-d span{min-width:34px;height:34px;border-radius:11px}
  .cal-d.is-a{border-radius:13px 0 0 13px}.cal-d.is-b{border-radius:0 13px 13px 0}.cal-d.is-a.is-b{border-radius:13px}
  .cal-f{padding:12px 14px calc(14px + env(safe-area-inset-bottom)) 18px;margin-top:4px}
  .cal-say{flex:1 1 100%;min-height:38px}
  .cal-btns{width:100%}
  .cal-btns .btn{flex:1;min-height:46px}
}

/* Labels only (the owner, 26 Nov 2026): explanations, hints and rule notes under headings are not shown. The words stay in the page
   files; take a class out of this list to bring its line back. Figures and their notes, colour keys and sentences made of numbers stay. */
.ln-x-sub,.l2-note,.l2-rule,.l2-rulebox,.rd-hint,.rd-rule,.rd-ld-sub,.lo-lead-sub,.lo-foot,.ac-say,.ac-si-tag{display:none!important}

/* The page header as one slim row: tabs left, date filter and controls right (the owner, 26 Nov 2026) */
.ph{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 14px}
.ph>.tabs{flex:1 1 300px;min-width:0;margin:0;padding:2px}
.ph h1{font-size:26px;margin:0}
.ph-main:not(.sr){flex:1 1 auto;min-width:0;padding:4px 6px}
.ph-tools{margin-left:auto;align-self:center}
.sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:640px){
  .ph{padding:10px 12px;gap:8px}
  .ph>.tabs{flex:1 1 100%;margin:0 -12px;padding:2px 12px}
  .ph-tools{margin:0;width:100%;justify-content:flex-start}
  .ph h1{font-size:24px}
}

/* =====================================================================================================================
   THE REAL BOARD: what the prototype did not need — the states of real data, sections, the sign-in gate, sign-out
   ===================================================================================================================== */
/* motion off for screenshots (?still=1 in the address): the same as the reader's own "less motion" setting */
html.is-still *,html.is-still *::before,html.is-still *::after{animation:none!important;transition:none!important}

/* the "Live" mark tells the truth: green and beating only while today's numbers are fresh */
.live[data-state=stale] i{background:var(--warn);box-shadow:0 0 0 1px rgba(23,33,46,.3);animation:none}
.live[data-state=loading] i{background:var(--ref);box-shadow:none;animation:none}
.live[data-state=error] i{background:var(--crit);box-shadow:none;animation:none}
.live[data-state=stale],.live[data-state=error]{color:var(--ink)}
.live{white-space:nowrap}

/* a line that is finished for the day: its day stays on the track, the cartons no longer move */
.lane.is-done .belt{display:none}
/* "lunch", "quiet", "done" in the speed column are words, not a speed: the phone's unit word stays away */
.ln-speed.is-word::after{content:none}

/* a stop, a tab or a place of a section this account cannot see: in its place, dimmed, saying so */
.jn.is-shut{opacity:.55}
.tab.is-shut{opacity:.6}
.tab .ic{margin-left:6px}
.tab .ic svg{width:13px;height:13px}
.tb-i.is-shut{opacity:.45}

/* the account menu: sign out */
.menu button{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:transparent;font-weight:600;text-align:left;cursor:pointer}
.menu button:hover{background:rgba(23,33,46,.06)}
.menu-out{position:relative;margin-top:7px}
.menu-out::before{content:"";position:absolute;left:2px;right:2px;top:-4px;border-top:1px solid var(--hair)}

/* ---------- the state of a piece of data ---------- */
.slot{min-width:0}
/* no access, or a call that failed with nothing older to show: one calm line in the block's place */
.st{display:flex;align-items:center;gap:10px;padding:13px 16px;border-radius:16px;background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 1px var(--hair);font-size:14px;line-height:1.4;color:var(--ink-2)}
.st p{flex:1;min-width:0;overflow-wrap:anywhere}
.st b{color:var(--ink);font-weight:600}
.st>.ic{color:var(--ink-3)}
.st-err{background:#fbe9e4;box-shadow:inset 0 0 0 1px rgba(208,59,59,.28)}
.st .btn{flex:none}
/* first load: a quiet skeleton in the block's own shape */
.sk{display:grid;gap:12px;padding:6px 0;min-width:0}
.sk i,.sk b{display:block;min-width:0;border-radius:7px;background:linear-gradient(90deg,var(--belt) 0 38%,#f6f1e7 50%,var(--belt) 62% 100%) 0 0/300% 100%;animation:sk 1.7s linear infinite}
@keyframes sk{from{background-position:100% 0}to{background-position:0 0}}
.sk-rows i{height:14px}
.sk-rows i:nth-child(3n+1){width:92%}.sk-rows i:nth-child(3n+2){width:76%}.sk-rows i:nth-child(3n){width:85%}
.sk-chart i{height:var(--chart-h,250px);border-radius:14px;opacity:.6}
.sk-stats i,.sk-cards i,.sk-lanes i{background:none;animation:none;display:grid;gap:8px}
.sk-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px 28px}
.sk-stats b:first-child{height:12px;width:58%}.sk-stats b:last-child{height:28px;width:82%}
.sk-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.sk-cards i{padding:14px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--hair)}
.sk-cards b:first-child{height:14px;width:50%}.sk-cards b:last-child{height:44px}
.sk-lanes{gap:9px}
.sk-lanes i{grid-template-columns:32px minmax(0,1fr);align-items:center}
.sk-lanes b:first-child{height:22px}.sk-lanes b:last-child{height:18px;border-radius:9px}
/* the last call failed and older data is still shown: a small mark with the time of that data */
.fm{gap:6px;padding-right:3px}
.fm-b{height:20px;padding:0 7px;border:0;border-radius:8px;background:rgba(23,33,46,.08);font:inherit;font-weight:700;cursor:pointer}
.fm-b:hover{background:rgba(23,33,46,.16)}

/* ---------- the sign-in gate (the look of the prototype's sign-in screen) ---------- */
.gt{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:28px 20px}
.gt-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);width:min(1040px,100%);border-radius:30px;overflow:hidden;background:var(--card);box-shadow:0 0 0 1px var(--hair),0 50px 80px -44px rgba(23,33,46,.7);animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
.gt-a{position:relative;display:flex;flex-direction:column;padding:34px 34px 0;background:var(--ink);color:#fff;min-height:560px;
  background-image:radial-gradient(520px 300px at 0 0,rgba(106,166,238,.22),transparent 70%),radial-gradient(circle at 1px 1px,rgba(255,255,255,.07) 1px,transparent 1.5px);background-size:auto,22px 22px}
.gt-brand{display:flex;align-items:center;gap:11px}
.gt-mark{display:inline-flex}
.gt-brand svg{width:40px;height:40px;flex:none}
.gt-brand b{display:block;font:800 24px/1 var(--display);letter-spacing:-.03em}
.gt-brand div span{display:block;font-size:13px;color:#c5cfdc;margin-top:3px}
.gt-a h1{font:800 46px/.98 var(--display);letter-spacing:-.045em;margin-top:46px;text-wrap:balance}
.gt-a p{font-size:15px;line-height:1.45;color:#c5cfdc;margin-top:14px;max-width:34ch}
.gt-j{display:flex;flex-wrap:wrap;align-items:center;gap:8px 6px;margin-top:26px}
.gt-j>svg{flex:none}
.gt-sec{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 4px;border-radius:15px;background:var(--tint);color:var(--ink);font:600 13px/1 var(--body);white-space:nowrap}
.gt-sec i{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font:700 13px/1 var(--display);font-style:normal}
.gt-belt{position:relative;height:96px;margin:auto -34px 0;overflow:hidden}
.gt-belt::before{content:"";position:absolute;left:0;right:0;bottom:22px;height:18px;background:#24364d repeating-linear-gradient(90deg,rgba(255,255,255,.1) 0 1px,transparent 1px 11px);box-shadow:inset 0 2px 0 rgba(255,255,255,.12)}
.gt-belt i{position:absolute;left:-110px;right:0;bottom:40px;height:36px;animation:gt-belt 4.4s linear infinite;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='36'%3E%3Crect x='37' y='1' width='35' height='35' rx='7' fill='%23b9833e'/%3E%3Cpath d='M54.5 3v31' stroke='%23e6cba3' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0/110px 36px repeat-x}
@keyframes gt-belt{to{transform:translateX(110px)}}
.gt-b{padding:38px 38px 30px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.gt-b h2{font:800 32px/1 var(--display);letter-spacing:-.04em}
.gt-b>p{font-size:14px;line-height:1.45;color:var(--ink-2);margin-top:8px}
.gt-form{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.gt-say:empty{display:none}
.gt-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.gt-fl{font:600 13px/1.2 var(--body);color:var(--ink-2)}
.gt-in{width:100%;height:44px;padding:0 13px;border:0;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.2);font-size:15px;outline:0;transition:box-shadow .15s}
.gt-in::placeholder{color:#8a93a1}
.gt-in:hover{box-shadow:inset 0 0 0 1.5px rgba(23,33,46,.4)}
.gt-in:focus{box-shadow:inset 0 0 0 2px var(--flow)}
.gt-in[aria-invalid=true]{box-shadow:inset 0 0 0 2px var(--crit)}
.gt-pw{position:relative}
.gt-pw .gt-in{padding-right:74px}
.gt-pw button{position:absolute;right:5px;top:5px;height:34px;padding:0 11px;border:0;border-radius:9px;background:rgba(23,33,46,.07);font-size:13px;font-weight:600;cursor:pointer}
.gt-pw button:hover{background:rgba(23,33,46,.13)}
.gt-b .btn{width:100%;min-height:48px;font-size:15px}
.gt-msg{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.4;padding:10px 12px;border-radius:12px;background:var(--b-lorries)}
.gt-msg.is-bad{background:#fbe9e4}
.gt-msg .ic{margin-top:1px}
.gt-msg span:last-child{min-width:0;overflow-wrap:anywhere}
.gt-help{margin-top:22px;padding:14px 16px 15px;border-radius:16px;background:var(--paper);font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.gt-help b{display:block;font:700 15px/1.25 var(--display);color:var(--ink);margin-bottom:3px}
.gt-help p+b{margin-top:10px}
@media (max-width:820px){
  .gt{display:block;padding:14px 12px 22px}
  .gt-card{grid-template-columns:minmax(0,1fr);border-radius:26px;margin-inline:auto}
  .gt-a{min-height:0;padding:22px 22px 0}
  .gt-a h1{font-size:32px;margin-top:22px}
  .gt-a p{display:none}
  .gt-j{margin-top:16px}
  .gt-belt{height:66px;margin:16px -22px 0}
  .gt-belt::before{bottom:12px}.gt-belt i{bottom:30px;height:30px;background-size:92px 30px;left:-92px;animation-name:gt-belt-s}
  @keyframes gt-belt-s{to{transform:translateX(92px)}}
  .gt-b{padding:24px 20px 22px}
  .gt-b h2{font-size:28px}
}
@media (max-width:640px){
  .gt-in{height:48px;font-size:16px}
  .gt-pw button{top:4px;height:40px}
  .st{flex-wrap:wrap;padding:12px 14px}
  .st p{flex:1 1 200px}
}
