:root{--mc-navy:#102228;--mc-red:#9d1c24;--mc-red-bright:#c4262f;--mc-red-tint:#fef0f0;--mc-panel-navy:#1f3540;--mc-slate-700:#3a4452;--mc-slate-500:#6b7684;--mc-gray-300:#c7cdd5;--mc-gray-200:#e1e5eb;--mc-gray-100:#f4f6f9;--mc-gray-50:#fafbfc;--mc-charcoal:#1a1a1a;--mc-white:#ffffff;--mc-font:'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif;--mc-size-display:56px;--mc-weight-display:900;--mc-lh-display:0.95;--mc-size-h1:32px;--mc-weight-h1:800;--mc-lh-h1:1.05;--mc-size-h2:22px;--mc-weight-h2:700;--mc-lh-h2:1.15;--mc-size-h3:15px;--mc-weight-h3:700;--mc-lh-h3:1.3;--mc-size-lede:15px;--mc-weight-lede:300;--mc-lh-lede:1.55;--mc-size-body:14px;--mc-weight-body:400;--mc-lh-body:1.55;--mc-size-eyebrow:10px;--mc-weight-eyebrow:700;--mc-lh-eyebrow:1.2;--mc-size-caption:11px;--mc-weight-caption:400;--mc-lh-caption:1.5;--mc-track-display:-0.025em;--mc-track-h1:-0.02em;--mc-track-h2:-0.015em;--mc-track-caps:0.2em;--bg:#0b171c;--bg-scrim:rgba(11,23,28,.92);--surface:#14242b;--surface-2:#1f3540;--surface-3:#102027;--text:#c8d3d8;--text-bright:#ffffff;--text-muted:#7e949c;--text-faint:#5f747d;--line:rgba(255,255,255,.07);--hair:rgba(255,255,255,.14);--accent:#9d1c24;--accent-hover:#c4262f;--accent-wash:rgba(157,28,36,.16);--accent-on:#e8949a;--status-blocked:#e8949a;--status-blocked-wash:rgba(157,28,36,.16);--status-warn:#e8b23a;--status-warn-wash:rgba(232,178,58,.15);--status-clear:#5fd08a;--status-clear-wash:rgba(95,208,138,.14);--status-info:#8fb8c9;--status-info-wash:rgba(143,184,201,.14);--status-idle:var(--text-faint);--bar:var(--text-bright);--bar-off:rgba(255,255,255,.10);--bgblur:var(--bg-scrim);--card:var(--surface);--tile:var(--surface-2);--row:var(--surface-3);--bright:var(--text-bright);--muted:var(--text-muted);--faint:var(--text-faint);--red:var(--accent);--bred:var(--accent-hover);--red-tint:var(--accent-wash);--red-on:var(--accent-on);--amber:var(--status-warn);--amber-tint:var(--status-warn-wash);--green:var(--status-clear);--green-tint:var(--status-clear-wash);--blue:var(--status-info);--blue-tint:var(--status-info-wash);--navy:var(--bg);--panel:var(--surface);--slate:var(--text-muted);--gray:var(--text);--st-blocked:var(--status-blocked);--st-blocked-w:var(--status-blocked-wash);--st-warn:var(--status-warn);--st-warn-w:var(--status-warn-wash);--st-clear:var(--status-clear);--st-clear-w:var(--status-clear-wash);--st-info:var(--status-info);--st-info-w:var(--status-info-wash);--st-idle:var(--status-idle)}
:root[data-theme=light]{--bg:#eef1f2;--bg-scrim:rgba(238,241,242,.92);--surface:#ffffff;--surface-2:#e8eef1;--surface-3:#f4f7f8;--text:#22343b;--text-bright:#102228;--text-muted:#54656c;--text-faint:#596e77;--line:rgba(16,34,40,.1);--hair:rgba(16,34,40,.18);--accent-wash:rgba(157,28,36,.09);--accent-on:#9d1c24;--status-blocked:#9d1c24;--status-blocked-wash:rgba(157,28,36,.09);--status-warn:#875e08;--status-warn-wash:rgba(232,178,58,.18);--status-clear:#1e8a52;--status-clear-wash:rgba(46,158,101,.13);--status-info:#2e6e8e;--status-info-wash:rgba(46,110,142,.11);--bar-off:rgba(16,34,40,.12)}
@media (prefers-color-scheme: light){:root:not([data-theme]){--bg:#eef1f2;--bg-scrim:rgba(238,241,242,.92);--surface:#ffffff;--surface-2:#e8eef1;--surface-3:#f4f7f8;--text:#22343b;--text-bright:#102228;--text-muted:#54656c;--text-faint:#596e77;--line:rgba(16,34,40,.1);--hair:rgba(16,34,40,.18);--accent-wash:rgba(157,28,36,.09);--accent-on:#9d1c24;--status-blocked:#9d1c24;--status-blocked-wash:rgba(157,28,36,.09);--status-warn:#875e08;--status-warn-wash:rgba(232,178,58,.18);--status-clear:#1e8a52;--status-clear-wash:rgba(46,158,101,.13);--status-info:#2e6e8e;--status-info-wash:rgba(46,110,142,.11);--bar-off:rgba(16,34,40,.12)}}

.fbar{display:inline-flex;flex-shrink:0;vertical-align:middle;--fbar-c:var(--status-idle)}
.fbar>i{display:block;background:var(--bar-off);transition:background-color .18s ease}
.fbar>i.on{background:var(--fbar-c)}
.fbar-h{align-items:flex-end;gap:3px;height:13px}
.fbar-h>i:nth-child(1){width:9px;height:5px}
.fbar-h>i:nth-child(2){width:13px;height:7px}
.fbar-h>i:nth-child(3){width:17px;height:9px}
.fbar-h>i:nth-child(4){width:21px;height:11px}
.fbar-h>i:nth-child(5){width:25px;height:13px}
.fbar-d{flex-direction:column;align-items:flex-start;gap:2px;width:var(--fbar-w,44px)}
.fbar-d>i{height:3px}
.fbar-d>i:nth-child(1){width:40%}
.fbar-d>i:nth-child(2){width:55%}
.fbar-d>i:nth-child(3){width:70%}
.fbar-d>i:nth-child(4){width:85%}
.fbar-d>i:nth-child(5){width:100%}
@media(prefers-reduced-motion:reduce){.fbar>i{transition:none}}


.mcpill{display:inline-block;font-family:var(--mc-font);font-size:9.5px;font-weight:700;line-height:1;letter-spacing:.1em;text-transform:uppercase;padding:5px 9px;border-radius:999px;white-space:nowrap;flex:none;vertical-align:middle}
.mcpill-blocked{color:var(--status-blocked);background:var(--status-blocked-wash)}
.mcpill-warn{color:var(--status-warn);background:var(--status-warn-wash)}
.mcpill-clear{color:var(--status-clear);background:var(--status-clear-wash)}
.mcpill-info{color:var(--status-info);background:var(--status-info-wash)}
.mcpill-idle{color:var(--status-idle);background:transparent;box-shadow:inset 0 0 0 1px currentColor}

.so{margin:0 0 18px}
.so.so-flat{margin-bottom:26px}
.so-eye{font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);line-height:var(--mc-lh-eyebrow);letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--accent-on)}
.so-eye.so-t-blocked{color:var(--status-blocked)}
.so-eye.so-t-warn{color:var(--status-warn)}
.so-eye.so-t-clear{color:var(--status-clear)}
.so-eye.so-t-info{color:var(--status-info)}
.so-eye.so-t-idle{color:var(--status-idle)}
.so-title{margin:6px 0 0;font-family:var(--mc-font);font-size:var(--mc-size-h2);font-weight:var(--mc-weight-h2);line-height:var(--mc-lh-h2);letter-spacing:var(--mc-track-h2);color:var(--text-bright)}
.so-rule{width:60px;height:3px;margin-top:12px;background:var(--accent-on)}


:root{--pnav-shadow:rgba(0,0,0,.34)}
:root[data-theme=light]{--pnav-shadow:rgba(16,34,40,.12)}
@media (prefers-color-scheme:light){:root:not([data-theme]){--pnav-shadow:rgba(16,34,40,.12)}}

.pnav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;align-items:stretch;gap:4px;width:calc(100vw - 32px);max-width:360px;padding:5px;font-family:var(--mc-font);background:var(--bg-scrim);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--line);border-radius:999px;box-shadow:0 6px 22px var(--pnav-shadow)}
.pnav-i{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;height:44px;padding:0 4px;border-radius:999px;color:var(--text-muted);text-decoration:none;transition:flex-grow .22s cubic-bezier(.4,0,.2,1),background-color .18s ease,color .18s ease}
.pnav-i.on{flex:2 1 0;background:var(--accent-wash);color:var(--text-bright)}
.pnav-i.on .mcgly{color:var(--accent-on)}
.pnav-i:focus-visible{outline:2px solid var(--accent-on);outline-offset:2px}
.pnav-i:active,.pnav-i.on:active{background:var(--surface-2)}
.pnav-i .mcgly{width:17px;height:17px;flex:none}
.pnav-l{display:none;font-size:var(--mc-size-caption);font-weight:700;line-height:1;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pnav-i.on .pnav-l{display:block}
.pnav-pad{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}

/* Hub Views D1 — the sub-nav. Same vocabulary as the bar: 44px segments,
   accent wash on the current one. NAV_JS parks it right after <header> and
   makes it sticky beneath it (top is set from the header's measured height). */
.psub{position:sticky;z-index:9;display:flex;gap:6px;padding:10px 16px;overflow-x:auto;scrollbar-width:none;font-family:var(--mc-font);background:var(--bg-scrim);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.psub::-webkit-scrollbar{display:none}
.psub[hidden]{display:none}
.psub-i{flex:none;display:flex;align-items:center;height:44px;padding:0 14px;border-radius:999px;background:var(--surface-3);border:1px solid var(--line);color:var(--text-muted);font-size:var(--mc-size-caption);font-weight:700;letter-spacing:-.01em;white-space:nowrap;text-decoration:none}
.psub-i.on{background:var(--accent-wash);border-color:transparent;color:var(--text-bright)}
.psub-i:focus-visible{outline:2px solid var(--accent-on);outline-offset:2px}
/* The All-tools door, injected by NAV_JS where the bar has no More: in the
   <header> before the theme toggle, else at the right end of the sub-nav. */
.pnav-all{width:36px;height:36px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--text-muted);display:flex;align-items:center;justify-content:center;flex-shrink:0;text-decoration:none}
.pnav-all .mcgly{width:17px;height:17px}
.pnav-all:hover{color:var(--text-bright);border-color:var(--text-muted)}
.psub .pnav-all{position:sticky;right:0;margin-left:auto;width:44px;height:44px;border-radius:999px;background:var(--surface-3);box-shadow:-12px 0 12px var(--bg)}
@media (prefers-reduced-motion:reduce){.pnav-i{transition:none}}

.apps{max-width:640px;margin:0 auto;padding:20px 22px calc(80px + env(safe-area-inset-bottom,0px));font-family:var(--mc-font)}
.app-o{margin:6px 0 26px}
.app-o-e{font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);line-height:var(--mc-lh-eyebrow);letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--accent-on)}
.app-o-t{margin:10px 0 0;font-size:var(--mc-size-h1);font-weight:var(--mc-weight-h1);line-height:var(--mc-lh-h1);letter-spacing:var(--mc-track-h1);color:var(--text-bright)}
.app-o-r{width:60px;height:3px;margin-top:14px;background:var(--accent);border-radius:2px}
.app-s{margin:30px 0 14px}
.app-s-e{font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);line-height:var(--mc-lh-eyebrow);letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--accent-on)}
.app-s-t{margin:8px 0 0;font-size:var(--mc-size-h2);font-weight:var(--mc-weight-h2);line-height:var(--mc-lh-h2);letter-spacing:var(--mc-track-h2);color:var(--text-bright)}
.app-s-r{width:60px;height:3px;margin-top:12px;background:var(--accent);border-radius:2px}
.app-l{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.app-t{display:flex;flex-direction:column;position:relative;padding:15px 14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:18px;text-decoration:none;transition:border-color .15s ease,background-color .15s ease}
a.app-t:hover{border-color:var(--text-muted);background:var(--surface-3)}
a.app-t:active{background:var(--surface-2)}
a.app-t:focus-visible{outline:2px solid var(--accent-on);outline-offset:2px}
.app-g{width:38px;height:38px;margin-bottom:13px;display:flex;align-items:center;justify-content:center;background:var(--surface-2);border-radius:12px;color:var(--text)}
a.app-t:hover .app-g{color:var(--text-bright)}
.app-g .mcgly{width:20px;height:20px}
.app-n{font-size:var(--mc-size-h3);font-weight:var(--mc-weight-h3);line-height:var(--mc-lh-h3);letter-spacing:-.01em;color:var(--text-bright)}
.app-d{margin-top:5px;font-size:var(--mc-size-caption);font-weight:var(--mc-weight-caption);line-height:var(--mc-lh-caption);color:var(--text-muted)}
.app-t.soon{background:var(--surface-3);border-style:dashed}
.app-t.soon .app-g{color:var(--status-idle)}
.app-p{position:absolute;top:14px;right:13px;padding:5px 9px;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);line-height:1;letter-spacing:var(--mc-track-caps);text-transform:uppercase;white-space:nowrap}
.app-e{margin:0;font-size:var(--mc-size-lede);font-weight:var(--mc-weight-lede);line-height:var(--mc-lh-lede);color:var(--text-muted)}
@media (min-width:560px){.app-l{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1000px){.apps{max-width:1080px;margin:0;padding:28px 28px 60px}.app-l{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}


/* Safety net: a navGlyph() svg dropped somewhere with no size rule fills its
   container (the People page Add button drew a ~1000px icon). Zero specificity,
   so every page's own .x .mcgly size still wins. */
:where(svg.mcgly){width:18px;height:18px;flex:none}
.dsk{display:none}
@media (min-width:1000px){
 /* FIXED, not a flex item. The first version made body a flex row and let the
    rail be its first child — which quietly turned EVERY other direct child of
    body into a column: the preview sandbox's banner, and any modal, sheet or
    dialog a page parks at body level. Taking the rail out of flow and paying
    for it with padding-left on body means the page's own layout is untouched
    and only the available width changes. */
 /* SCROLLS IN ONE PLACE ONLY: .dsk-nav. The rail used to carry
    overflow-y:auto itself, which reads as "it will scroll when it is too
    tall" and does not — .dsk-nav had no overflow of its own, so the tool
    list simply painted straight over .dsk-foot and the theme and sign-out
    buttons ended up sitting on top of the last two rows. The registry only
    ever grows, so that overlap is the default state of a full admin rail,
    not an edge case. Brand, filter box and footer are flex:none and the
    nav takes the slack; every new module lengthens the scroll area and
    moves nothing else. */
 .dsk{position:fixed;left:0;top:0;bottom:0;width:264px;z-index:30;
  display:flex;flex-direction:column;gap:2px;padding:18px 12px 14px;
  background:var(--surface);border-right:1px solid var(--line);
  font-family:var(--mc-font);overflow:hidden}
 .dsk-brand{flex:none;display:flex;align-items:center;gap:10px;padding:0 8px 16px;text-decoration:none}
 .dsk-brand img{width:30px;height:30px;border-radius:22%;display:block}
 .dsk-brand span{font-size:15px;font-weight:800;letter-spacing:-.02em;color:var(--text-bright)}

 .dsk-search{flex:none;position:relative;display:flex;align-items:center;gap:8px;margin:0 4px 14px;
  padding:0 10px;height:36px;background:var(--surface-3);border:1px solid var(--line);border-radius:10px}
 .dsk-search .mcgly{width:15px;height:15px;color:var(--text-faint);flex:none}
 .dsk-search input{flex:1;min-width:0;background:none;border:0;outline:none;
  font-family:inherit;font-size:13px;color:var(--text-bright);padding:0}
 .dsk-search input::placeholder{color:var(--text-faint)}
 .dsk-search input::-webkit-search-cancel-button{display:none}
 .dsk-search:focus-within{border-color:var(--accent-on);box-shadow:0 0 0 3px var(--accent-wash)}
 .dsk-k{flex:none;font-family:inherit;font-size:10.5px;font-weight:700;color:var(--text-faint);
  background:var(--surface-2);border:1px solid var(--line);border-radius:5px;padding:1px 6px;line-height:1.5}
 .dsk-search:focus-within .dsk-k{display:none}

 .dsk-nav{flex:1 1 auto;display:flex;flex-direction:column;gap:1px;min-height:0;
  padding-bottom:6px;overflow-y:auto;overscroll-behavior:contain}
 .dsk-s{margin:16px 0 4px;padding:0 10px;font-size:var(--mc-size-eyebrow);
  font-weight:var(--mc-weight-eyebrow);letter-spacing:var(--mc-track-caps);
  text-transform:uppercase;color:var(--text-faint);display:flex;align-items:center;gap:8px}
 .dsk-s .mcgly{width:12px;height:12px;flex:none}
 /* Hub Views: rows under a view are single-line so a full admin rail (17 rows
    in four sections) fits a 900px window without scrolling. The description
    stays in the markup for the filter box; it is only not painted. */
 .dsk-i.sub{padding:6px 10px 6px 37px}
 .dsk-i.sub .dsk-d{display:none}
 .dsk-s[hidden]{display:none}

 .dsk-i{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:9px;
  color:var(--text-muted);text-decoration:none;min-width:0;
  transition:background-color .14s ease,color .14s ease}
 .dsk-i[hidden]{display:none}
 .dsk-i .mcgly{width:17px;height:17px;flex:none}
 .dsk-t{display:flex;flex-direction:column;gap:1px;min-width:0}
 .dsk-n{font-size:13px;font-weight:600;line-height:1.35;color:var(--text-bright);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dsk-d{font-size:11px;line-height:1.35;color:var(--text-faint);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dsk-i:hover{background:var(--surface-2)}
 .dsk-i:hover .mcgly{color:var(--text)}
 .dsk-i:focus-visible{outline:2px solid var(--accent-on);outline-offset:-2px}
 .dsk-i.on{background:var(--accent-wash)}
 .dsk-i.on .mcgly{color:var(--accent-on)}
 .dsk-i.on .dsk-n{color:var(--text-bright)}
 .dsk-none{margin:10px;font-size:12px;color:var(--text-faint)}

 .dsk-foot{flex:none;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
 .dsk-user{display:flex;align-items:center;gap:9px;padding:8px 10px 4px;min-width:0}
 .dsk-av{flex:none;width:28px;height:28px;border-radius:50%;background:var(--accent);
  color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
 .dsk-user .dsk-d{text-transform:capitalize}
 .dsk-btns{display:flex;gap:8px;padding:6px 6px 0}

 /* The rail replaces the phone chrome rather than sitting alongside it. Both
    the sticky header and the floating pill bar go, on EVERY page that opts in
    — the legacy dashboard only ever did this for itself. */
 body.dsk-on{padding-left:264px}
 body.dsk-on > header,body.dsk-on .pnav,body.dsk-on .psub,body.dsk-on .pnav-all{display:none}
 /* Widen, but do not un-cap. Most pages ship max-width:640px, which is the
    actual "desktop is lacking" complaint; letting them run edge-to-edge on a
    1440px monitor just swaps one bad measure for another, so this caps at
    1180px and centres in whatever the rail leaves. */
 body.dsk-on > main,body.dsk-on > .wrap,body.dsk-on > .apps{
  min-width:0;margin-left:auto;margin-right:auto}
 /* .dsk-narrow keeps the page's OWN max-width, and is expressed as :not() on
    the widening rule rather than as an override that undoes it. Setting
    max-width:none here would out-specify the page's own 640px and make it
    FULL width — the opposite of narrow, and exactly the sort of CSS that looks
    right in review and is wrong on screen.

    The admin home (#7a) is the one page that wants this: its four time-of-day
    states were designed as a single triage column read top to bottom, and
    stretching that to 1180px is a different screen, not a wider one. Opt out
    rather than opt in, because every other admin page is a list or a board
    that genuinely wants the width. */
 body.dsk-on:not(.dsk-narrow) > main,
 body.dsk-on:not(.dsk-narrow) > .wrap,
 body.dsk-on:not(.dsk-narrow) > .apps{width:100%;max-width:1180px}
 /* .pnav-pad reserved 80px for a bar that is now hidden; give it back. */
 body.dsk-on.pnav-pad,body.dsk-on .pnav-pad{padding-bottom:0}
}

.mci{width:1em;height:1em;display:inline-block;vertical-align:-0.125em;flex-shrink:0}

/* stat block — big number, small label */
.sb{display:block;min-width:0;color:inherit;text-decoration:none;--sb-c:var(--text-bright);--sb-wash:var(--surface-2);--sb-line:var(--line);--sb-rule-base:var(--accent-hover);--sb-rule-c:var(--sb-rule-base);--sb-size:var(--mc-size-h1);--sb-wt:var(--mc-weight-h1);--sb-lh:var(--mc-lh-h1);--sb-tr:var(--mc-track-h1);--sb-usize:var(--mc-size-caption)}
.sb-display{--sb-size:var(--mc-size-display);--sb-wt:var(--mc-weight-display);--sb-lh:var(--mc-lh-display);--sb-tr:var(--mc-track-display);--sb-usize:var(--mc-size-body)}
/* Status sets --sb-rule-c directly; the light-theme blocks below only move
   --sb-rule-base, which nothing but the unstatused default reads. That is why
   the (0,3,0) theme selectors can no longer outrank these (0,2,0) ones — they
   are no longer setting the same custom property. */
.sb.st-clear{--sb-c:var(--status-clear);--sb-wash:var(--status-clear-wash);--sb-rule-c:var(--status-clear)}
.sb.st-warn{--sb-c:var(--status-warn);--sb-wash:var(--status-warn-wash);--sb-rule-c:var(--status-warn)}
.sb.st-blocked{--sb-c:var(--status-blocked);--sb-wash:var(--status-blocked-wash);--sb-rule-c:var(--status-blocked)}
.sb.st-info{--sb-c:var(--status-info);--sb-wash:var(--status-info-wash);--sb-rule-c:var(--status-info)}
.sb.st-idle{--sb-c:var(--status-idle);--sb-wash:var(--surface-2);--sb-rule-c:var(--text-faint)}
.sb-rule{display:block;width:28px;height:3px;border-radius:1px;background:var(--sb-rule-c);margin:0 0 12px}
.sb-n{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-width:0}
.sb-v{display:inline-block;color:var(--sb-c);font-family:var(--mc-font);font-size:var(--sb-size);font-weight:var(--sb-wt);line-height:var(--sb-lh);letter-spacing:var(--sb-tr);font-variant-numeric:tabular-nums}
.sb-none{font-size:var(--sb-usize);font-weight:700;letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--text-faint)}
.sb-u{font-size:var(--sb-usize);font-weight:700;color:var(--text-muted);white-space:nowrap}
.sb-d{font-size:var(--sb-usize);font-weight:600;color:var(--text-faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.sb-sl{color:var(--text-faint);opacity:.55;margin-right:4px}
.sb-l{display:block;margin-top:8px;font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);line-height:var(--mc-lh-eyebrow);letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--text-muted);overflow-wrap:break-word}
.sb-display .sb-l{margin-top:11px}
.sb-note{display:block;margin-top:5px;font-size:var(--mc-size-caption);font-weight:var(--mc-weight-caption);line-height:var(--mc-lh-caption);letter-spacing:0;text-transform:none;color:var(--text-faint)}
.sb-x{display:block;margin-top:11px}
.sb.c{text-align:center}
.sb.c .sb-n{justify-content:center}
.sb.c .sb-rule{margin-left:auto;margin-right:auto}
.sb.in{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.sb.in .sb-rule{width:20px;margin:0;align-self:center}
.sb.in .sb-l{margin-top:0}
.sb.in .sb-note{margin-top:0;width:100%}
.sb.in .sb-x{margin-top:0;width:100%}
.sb.pan{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 16px 18px}
.sb.wash{background:var(--sb-wash);border:1px solid var(--sb-line);border-radius:16px;padding:16px 16px 18px}
.sb.span{grid-column:1/-1}
a.sb{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,opacity .12s ease}
a.sb:active{transform:scale(.985);opacity:.9}
a.sb:focus-visible{outline:2px solid var(--text-bright);outline-offset:4px;border-radius:12px}
a.sb.pan:focus-visible,a.sb.wash:focus-visible{border-radius:16px}
:root[data-theme="light"] .sb{--sb-rule-base:var(--accent)}
@media (prefers-color-scheme:light){:root:not([data-theme]) .sb{--sb-rule-base:var(--accent)}}
@media (prefers-reduced-motion:reduce){a.sb{transition:none}a.sb:active{transform:none}}

/* stat grid — these run in rows of two, three or four.

   Dividers: statGrid marks every cell that STARTS a row with .sg-a (row start
   at the grid's declared column count) and .sg-b (row start once the grid has
   folded to two columns). Those marks are computed in JS from the item list,
   including full-width span items, so the hairline math cannot drift the way
   :nth-child() does the moment a cell spans or a caller drops a raw element in.
   Every fold below therefore only has to swap which mark is authoritative. */
.sg{display:grid;gap:var(--sg-gap,14px);align-items:start}
.sg-1{grid-template-columns:minmax(0,1fr)}
.sg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sg-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.sg.div{column-gap:0;row-gap:18px;--sg-rule:var(--bar-off,rgba(127,148,156,.32))}
.sg.div>.sb{padding-left:15px;padding-right:15px;border-left:1px solid var(--sg-rule)}
.sg.div>.sb.sg-a{padding-left:0;border-left:0}
.sg.div>.sb.span{padding-left:0;padding-right:0;border-left:0}

/* A four-across row cannot hold a 32px number and a 0.2em-tracked eyebrow on a
   phone: at 402px the cells are 89.5px wide and "Galleries waiting" breaks into
   four lines. Four columns are a tablet-and-up layout. Display-size numbers need
   more room still, so any grid carrying one folds to two at the same width. */
@media (max-width:719px){
.sg-4,.sg-3.sg-big{grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-4.div>.sb.sg-a,.sg-3.sg-big.div>.sb.sg-a{padding-left:15px;border-left:1px solid var(--sg-rule)}
.sg-4.div>.sb.sg-b,.sg-3.sg-big.div>.sb.sg-b{padding-left:0;border-left:0}
.sg-4.div>.sb.span,.sg-3.sg-big.div>.sb.span{padding-left:0;padding-right:0;border-left:0}
}
/* Tablet band, 720-959px: four columns survive the fold above, but four columns
   of a 900/56px DISPLAY number do not fit until desktop. "1,284" measures ~152px
   and a 959px four-column divided track is ~209px minus 31px of padding = 178px,
   which holds — but a wider value ($47,800, 100%) does not, and the cell has
   nowhere to go. Fold a display-carrying four-up to two here.

   Deliberately CSS-only. An earlier pass solved this by predicting Montserrat
   glyph advances in JS to pre-fold the grid; that table was calibrated on runs
   of repeated glyphs, which Montserrat kerns narrower than the glyph renders
   anywhere else, so it under-measured '%' and '/' and shipped the overflow it
   existed to prevent — while over-measuring words badly enough to drop a
   three-column grid to one. The grid already uses minmax(0,1fr) and min-width:0,
   so the track shrinks and the text wraps on its own. Let the browser measure. */
@media (min-width:720px) and (max-width:959px){
.sg-4.sg-big{grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-4.sg-big.div>.sb.sg-a{padding-left:15px;border-left:1px solid var(--sg-rule)}
.sg-4.sg-big.div>.sb.sg-b{padding-left:0;border-left:0}
.sg-4.sg-big.div>.sb.span{padding-left:0;padding-right:0;border-left:0}
}
/* Under 360px a 3-across row fractures its own labels mid-word
   ("GALLERIE / S WAITING") because the eyebrow's 0.2em tracking is fixed by
   the brand. Fold to two columns instead — big and legible one-handed beats
   three cramped columns. The divided rule's row-start math folds with it. */
@media (max-width:360px){
.sg-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-3.div>.sb.sg-a,.sg-3.sg-big.div>.sb.sg-a{padding-left:15px;border-left:1px solid var(--sg-rule)}
.sg-3.div>.sb.sg-b,.sg-3.sg-big.div>.sb.sg-b{padding-left:0;border-left:0}
.sg-3.div>.sb.span,.sg-3.sg-big.div>.sb.span{padding-left:0;padding-right:0;border-left:0}
}
/* A display number is 900/56px and it does not get smaller. Two columns of it
   stop fitting a phone below about 400px — "1,284" measures 152px in Montserrat
   900/56 and a 320px two-column track is 145px, so the two numbers collide. Any
   grid carrying a display number therefore goes single-column there. Last block
   in the file on purpose: it has to outrank the folds above it. */
@media (max-width:400px){
.sg.sg-big{grid-template-columns:minmax(0,1fr)}
.sg.sg-big.div>.sb,.sg.sg-big.div>.sb.sg-a,.sg.sg-big.div>.sb.sg-b,.sg.sg-big.div>.sb.span{padding-left:0;padding-right:0;border-left:0}
}


.iss-open{display:block;width:100%;margin-top:10px;background:transparent;border:1px solid var(--line);border-radius:12px;padding:11px;font:600 12px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);color:var(--text-muted);letter-spacing:-0.005em;cursor:pointer;-webkit-tap-highlight-color:transparent}
.iss-open:active{background:var(--surface-2);color:var(--text-bright)}
.iss-open-day{margin-top:0;border-style:dashed}
.iss-badge{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.iss-n{font-size:10.5px;font-weight:600;color:var(--text-faint)}
.iss-log{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:8px}
.iss-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;font-size:12px}
.iss-row-dead{opacity:.55}
.iss-time{font-weight:700;color:var(--text-bright);font-size:11.5px;min-width:64px}
.iss-reason{font-weight:600;color:var(--text)}
.iss-reason[data-cause="client"]{color:var(--status-warn)}
.iss-delay{font-weight:800;color:var(--status-blocked);font-size:11.5px}
/* An answered "on time" and an unanswered report must not read the same. The
   whole point of requiring the picker is that those two are distinguishable.
   (Wording note: avoid the word a-p-a-r-t here. This comment is emitted into
   the page, and test_day_view asserts the rendered HTML contains no such
   substring when a stop has only one GPS fix -- prose in a comment is enough
   to fail it, which it did.) */
.iss-delay-none{color:var(--text-faint);font-weight:600}
.iss-delay-unk{color:var(--text-faint);font-weight:600;font-style:italic}
.iss-req{font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-on);margin-left:6px}
.iss-reason-b[aria-disabled="true"]{opacity:.42;cursor:not-allowed}
.iss-corr{font:700 9.5px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);box-shadow:inset 0 0 0 1px var(--line);padding:4px 7px;border-radius:999px}
.iss-undeliv{font:700 9.5px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--status-blocked);background:var(--status-blocked-wash);padding:4px 7px;border-radius:999px}
.iss-note-txt{flex-basis:100%;font-size:12px;color:var(--text-muted);line-height:1.5;padding-left:72px}
.iss-sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.iss-sheet[hidden]{display:none}
.iss-scrim{position:absolute;inset:0;background:var(--bg-scrim);backdrop-filter:blur(3px)}
.iss-panel{position:relative;width:100%;max-width:520px;max-height:92vh;overflow-y:auto;background:var(--surface);border-top:1px solid var(--line);border-radius:22px 22px 0 0;padding:10px 22px calc(22px + env(safe-area-inset-bottom,0));box-shadow:0 -18px 48px rgba(0,0,0,.34);animation:iss-up .18s ease-out}
.iss-panel:focus{outline:none}
@keyframes iss-up{from{transform:translateY(18px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media (prefers-reduced-motion:reduce){.iss-panel{animation:none}}
.iss-grab{width:38px;height:4px;border-radius:999px;background:var(--line);margin:0 auto 16px}
.iss-scope{font-size:12.5px;color:var(--text-muted);line-height:1.45;margin-bottom:16px}
.iss-scope:empty{display:none}
.iss-sup{display:flex;align-items:center;gap:10px;margin:-6px 0 16px;font-size:12.5px;line-height:1.35;color:var(--text-muted);cursor:pointer}
.iss-sup[hidden]{display:none}
.iss-sup input{width:20px;height:20px;flex:none;accent-color:var(--accent);margin:0}
.iss-lbl{display:block;font:700 10px/1.2 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:var(--mc-track-caps,0.2em);text-transform:uppercase;color:var(--text-faint);margin-bottom:8px}
.iss-lbl-big{margin-top:20px;color:var(--text-muted)}
.iss-note{width:100%;box-sizing:border-box;background:var(--surface-3);border:1px solid var(--line);border-radius:12px;padding:13px 14px;font:400 16px/1.3 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);color:var(--text-bright);margin-bottom:18px}
.iss-note::placeholder{color:var(--text-faint)}
.iss-note:focus{outline:none;border-color:var(--status-info)}
.iss-delays{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.iss-delay-b{display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--surface-3);border:1px solid var(--line);border-radius:12px;padding:11px 4px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.iss-d-n{font:800 18px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:-0.02em;color:var(--text-bright)}
.iss-d-u{font:600 9.5px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint)}
.iss-delay-b[aria-pressed="true"]{background:var(--status-warn-wash);border-color:var(--status-warn)}
.iss-delay-b[aria-pressed="true"] .iss-d-n{color:var(--status-warn)}
.iss-delay-b[aria-pressed="true"] .iss-d-u{color:var(--status-warn)}
.iss-reasons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.iss-reason-b{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:62px;text-align:left;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:12px 13px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.iss-reason-b.wide{grid-column:1 / -1;min-height:52px}
.iss-reason-b:active{background:var(--accent-wash);border-color:var(--accent)}
.iss-r-l{font:700 14px/1.2 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);letter-spacing:-0.01em;color:var(--text-bright)}
.iss-r-h{font:400 11px/1.2 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);color:var(--text-faint)}
.iss-cancel{display:block;width:100%;margin-top:14px;background:transparent;border:0;padding:13px;font:600 12.5px/1 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);color:var(--text-faint);cursor:pointer}
.iss-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom,0));z-index:70;max-width:min(420px,calc(100vw - 28px));background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:11px 15px;font:600 12.5px/1.4 var(--mc-font,'Montserrat',-apple-system,BlinkMacSystemFont,sans-serif);color:var(--text-bright);box-shadow:0 12px 32px rgba(0,0,0,.32);text-align:center}
.iss-toast[hidden]{display:none}
.iss-toast.iss-t-warn{border-color:var(--status-warn);color:var(--status-warn)}
.iss-toast.iss-t-bad{border-color:var(--status-blocked);color:var(--status-blocked)}


#mcload{position:fixed;inset:0;z-index:99998;display:flex;flex-direction:column;
 align-items:center;justify-content:center;text-align:center;background:var(--bg);color:var(--text);
 padding:34px 26px calc(34px + env(safe-area-inset-bottom));
 opacity:0;visibility:hidden;pointer-events:none;
 transition:opacity .16s ease,visibility 0s linear .16s}
html[data-mcload] #mcload{opacity:1;visibility:visible;pointer-events:auto;
 transition:opacity .16s ease,visibility 0s linear 0s}
#mcload .mcl-mark{width:52px;height:52px;border-radius:22%;overflow:hidden;
 animation:mcl-pulse 1.8s ease-in-out infinite}
#mcload .mcl-mark img{width:100%;height:100%;display:block}
@keyframes mcl-pulse{0%,100%{opacity:1}50%{opacity:.45}}
#mcload .mcl-eyebrow{margin-top:18px;font-size:var(--mc-size-eyebrow);
 font-weight:var(--mc-weight-eyebrow);letter-spacing:var(--mc-track-caps);
 text-transform:uppercase;color:var(--text-faint)}
#mcload .mcl-dest{margin-top:7px;font-size:var(--mc-size-h2);font-weight:var(--mc-weight-h2);
 letter-spacing:var(--mc-track-h2);line-height:var(--mc-lh-h2);color:var(--text-bright)}
#mcload .mcl-bar{margin-top:22px;width:min(320px,70vw);height:3px;border-radius:2px;
 background:var(--bar-off);overflow:hidden}
#mcload .mcl-bar i{display:block;height:100%;width:36%;border-radius:2px;background:var(--accent);
 animation:mcl-slide 1.15s cubic-bezier(.65,.02,.35,1) infinite}
@keyframes mcl-slide{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
#mcload .mcl-tip{max-width:430px;margin-top:38px;padding-top:22px;border-top:1px solid var(--line)}
#mcload .mcl-tiplabel{font-size:var(--mc-size-eyebrow);font-weight:var(--mc-weight-eyebrow);
 letter-spacing:var(--mc-track-caps);text-transform:uppercase;color:var(--accent-on)}
#mcload .mcl-tipt{margin-top:11px;font-size:var(--mc-size-h3);font-weight:var(--mc-weight-h3);
 line-height:var(--mc-lh-h3);color:var(--text-bright)}
#mcload .mcl-tipb{margin-top:7px;font-size:var(--mc-size-body);font-weight:var(--mc-weight-lede);
 line-height:var(--mc-lh-lede);color:var(--text-muted)}
#mcload .mcl-slow{margin-top:26px;background:none;border:1px solid var(--hair);
 color:var(--text-muted);border-radius:12px;padding:9px 16px;font-size:12px;font-weight:600;cursor:pointer}
#mcload .mcl-slow:hover{color:var(--text-bright);border-color:var(--text-muted)}
#mcload .mcl-slow[hidden]{display:none}
/* The press state. Opacity only, on purpose: transform does nothing to an inline
   <a> and would break any position:fixed descendant, and this has to be safe on
   every element in the app without knowing which one it landed on. */
.mc-press{opacity:.55 !important;transition:none !important}
@media (prefers-reduced-motion:reduce){
 #mcload .mcl-mark{animation:none}
 #mcload .mcl-bar i{animation:none;width:100%;opacity:.55}}

*{box-sizing:border-box}
body{font-family:'Montserrat',-apple-system,sans-serif;background:var(--bg);color:var(--text);margin:0;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent;min-height:100vh}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.logobox{display:inline-block;text-decoration:none;cursor:pointer;line-height:0}.logobox img{height:38px;width:38px;display:block;border-radius:22%}
.btn{background:var(--red);color:#fff;border:0;padding:12px 18px;font-weight:600;font-size:13px;cursor:pointer;border-radius:12px;width:100%}
.btn:hover{background:var(--bred)}
.btn.alt{background:var(--tile);color:var(--bright)}.btn.alt:hover{background:var(--line)}
.btn:disabled{opacity:.5;cursor:default}
.iconbtn{width:36px;height:36px;border-radius:12px;background:var(--card);border:1px solid var(--line);color:var(--muted);font-size:17px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.iconbtn:hover{color:var(--bright);border-color:var(--muted)}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--red);color:#fff;font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
