/* Traffic Control in the redesign (Hallmark: Rami approved the mockup on 2 November 2026, review/hallmark/traffic-rethink.html; built
   3 November 2026; public/traffic.js). The tags' and Who has room's colours stay cadence.css's (#tvPage .tv-tag, .tv-c); this file lays
   the page out again, scoped to .tv2. Cadence tokens only, so light and dark follow by themselves; a phone of 400px has no sideways
   scroll (the table's lines become cards, Who has room scrolls inside its own box); Arabic mirrors (logical properties). */
html body #tvPage .tv2:not(#_):not(#_){display:flex;flex-direction:column;gap:0;min-width:0;max-width:none}
html body #tvPage .tv2 .tv-head:not(#_):not(#_){margin:0 0 18px;padding:4px 0 14px;border-bottom:1px solid var(--border)}
html body #tvPage .tv2 .tv-head .hl-head-l:not(#_):not(#_){align-items:baseline;gap:6px 26px;flex-wrap:wrap}
html body #tvPage .tv2 .hl-title:not(#_):not(#_):not(#_){font-size:30px}
html body #tvPage .tv2 .tv-sub:not(#_):not(#_){font-size:14px;font-weight:600;color:var(--ink-muted)}
html body #tvPage .tv2 .tv-head .hl-more>summary:not(#_):not(#_):not(#_){width:38px;height:38px;min-height:38px;padding:0;display:inline-grid;place-items:center;font-size:18px}
html body #tvPage .tv2 .tv-mlead:not(#_):not(#_):not(#_){cursor:default}
html body #tvPage .tv2 .tv-msg:not(#_):not(#_){margin:-8px 0 14px}

/* the tiles: big number, what it counts; red or amber when there is any; pressing one narrows the list */
html body #tvPage .tv2 .tv-tiles:not(#_):not(#_){grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 20px}
html body #tvPage .tv2 .tv-tile:not(#_):not(#_){position:relative;align-items:flex-start;text-align:start;gap:6px;min-height:104px;padding:16px 18px;border:0;border-radius:14px;background:var(--surface-sunken);color:var(--c-ink);font:inherit;cursor:pointer;box-shadow:none}
html body #tvPage .tv2 .tv-tile0:not(#_):not(#_){cursor:default}
html body #tvPage .tv2 button.tv-tile:hover:not(#_):not(#_){box-shadow:inset 0 0 0 1.5px var(--border-strong,var(--border))}
html body #tvPage .tv2 .tv-tile.on:not(#_):not(#_){box-shadow:inset 0 0 0 2px var(--c-ink)}
html body #tvPage .tv2 .tv-tile.t-late:not(#_):not(#_){background:var(--status-stuck-bg)}
html body #tvPage .tv2 .tv-tile.t-risk:not(#_):not(#_){background:var(--status-working-bg)}
html body #tvPage .tv2 .tv-tile b:not(#_):not(#_){font:700 28px/1.1 var(--font-sans);letter-spacing:-.01em;color:var(--c-ink)}
html body #tvPage .tv2 .tv-tile b small:not(#_):not(#_){font-size:28px;font-weight:700;color:var(--c-ink)}
html body #tvPage .tv2 .tv-tile span:not(#_):not(#_){font-size:13px;font-weight:600;color:var(--c-ink);line-height:1.35}
html body #tvPage .tv2 .tv-tile>small:not(#_):not(#_){font-size:12.5px;color:var(--ink-muted)}

/* List / Who has room / Coming up, Person ▾, Type ▾, Flagged N, and the level picked from a tile */
html body #tvPage .tv2 .tv-bar:not(#_){display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px;min-width:0}
html body #tvPage .tv2 .tv-seg:not(#_){display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:var(--surface-sunken);max-width:100%;overflow-x:auto;scrollbar-width:none}
html body #tvPage .tv2 .tv-seg button:not(#_):not(#_){display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:var(--ink-muted);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
html body #tvPage .tv2 .tv-seg button.on:not(#_):not(#_){background:var(--surface);color:var(--c-ink);box-shadow:var(--shadow-raised,0 1px 2px rgba(0,0,0,.08))}
html body #tvPage .tv2 .tv-vsep:not(#_){width:1px;height:24px;background:var(--border);margin:0 4px}
html body #tvPage .tv2 .tv-flagb:not(#_):not(#_){height:38px;min-height:38px;padding:0 14px;font-weight:600}
html body #tvPage .tv2 .tv-flagb.on:not(#_):not(#_){background:var(--c-ink);color:var(--surface);border-color:var(--c-ink)}
html body #tvPage .tv2 .tv-chip:not(#_){display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 4px 0 12px;border-radius:999px;background:var(--c-ink);color:var(--surface);font-size:13px;font-weight:600}
html body #tvPage .tv2 .tv-chip button:not(#_):not(#_){width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:inherit;font-size:16px;cursor:pointer}

/* the list: one table, a heading row per level */
html body #tvPage .tv2 .tv-tw:not(#_){position:relative;max-width:100%;min-width:0;overflow-x:auto} /* a table wider than the page (the largest Text size: 1680px on 1440, the robot, 3 November 2026) scrolls in its own box, never the page; a line's ⋯ opens over it (traffic.js tvPlace) */
html body #tvPage .tv2 .tv-tbl:not(#_):not(#_){width:100%;border-collapse:collapse;font-size:14px;background:transparent}
html body #tvPage .tv2 .tv-tbl th:not(#_):not(#_){text-align:start;font-size:12.5px;font-weight:600;color:var(--ink-muted);padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap;background:transparent}
html body #tvPage .tv2 .tv-tbl td:not(#_):not(#_){padding:12px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--c-ink)}
html body #tvPage .tv2 .tv-tbl tr.tv-r:not(#_):not(#_){display:table-row;background:transparent;padding:0;border:0;box-shadow:none}
html body #tvPage .tv2 .tv-tbl tr.tv-r:hover>td:not(#_):not(#_){background:color-mix(in srgb,var(--surface-sunken) 55%,transparent)}
html body #tvPage .tv2 .tv-gr>td:not(#_):not(#_){padding:20px 12px 8px;border-bottom:1px solid var(--border)}
html body #tvPage .tv2 .tv-gr.tv-empty>td:not(#_):not(#_){padding:6px 12px 10px}
html body #tvPage .tv2 .tv-gr>td>b:not(#_){font-size:15px;font-weight:700;margin-inline-end:10px}
html body #tvPage .tv2 .tv-gr>td>small:not(#_){font-size:12.5px;color:var(--ink-muted)}
html body #tvPage .tv2 .tv-n:not(#_):not(#_){display:inline-grid;place-items:center;width:20px;height:20px;margin-inline-end:8px;border-radius:50%;background:var(--surface-sunken);color:var(--ink-muted);font:700 11px/1 var(--font-sans);vertical-align:1px}
html body #tvPage .tv2 .lv-fix .tv-n:not(#_):not(#_){background:var(--status-stuck-bg);color:var(--status-stuck-fg)}
html body #tvPage .tv2 .lv-week .tv-n:not(#_):not(#_){background:var(--status-working-bg);color:var(--status-working-fg)}
html body #tvPage .tv2 .tv-jc:not(#_):not(#_){min-width:200px;max-width:280px}
html body #tvPage .tv2 .tv-job:not(#_):not(#_){display:flex;flex-direction:column;gap:3px;color:var(--c-ink);text-decoration:none;min-width:0}
html body #tvPage .tv2 .tv-job b:not(#_){font-weight:600;font-size:14.5px;line-height:1.3}
html body #tvPage .tv2 .tv-job small:not(#_){font-size:12.5px;color:var(--ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #tvPage .tv2 .tv-job:hover b:not(#_){text-decoration:underline;text-underline-offset:3px}
html body #tvPage .tv2 .tv-wc:not(#_):not(#_){white-space:nowrap}
html body #tvPage .tv2 .tv-whoc:not(#_){display:inline-flex;align-items:center;gap:8px;font-weight:600;min-width:0}
html body #tvPage .tv2 .tv-av:not(#_){display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none;background:var(--accent-sky-soft,var(--surface-sunken));color:var(--accent-sky,var(--c-ink));font:700 9.5px/1 var(--font-sans)}
html body #tvPage .tv2 .tv-nonext:not(#_){display:block;margin-top:4px;font-size:12.5px;font-weight:700;color:var(--status-stuck-fg)}
html body #tvPage .tv2 .tv-pby:not(#_){display:block;margin-top:3px;font-size:12.5px;color:var(--ink-muted)}
html body #tvPage .tv2 .tv-lc:not(#_):not(#_){white-space:nowrap}
html body #tvPage .tv2 .tv-yc:not(#_):not(#_){min-width:220px;max-width:360px}
html body #tvPage .tv2 .tv-tags:not(#_):not(#_){display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px;justify-content:flex-start}
html body #tvPage .tv2 .tv-tag:not(#_):not(#_){border-radius:5px;padding:3px 8px}
html body #tvPage .tv2 .tv-tag.t-flag:not(#_):not(#_){background:var(--status-working-bg);color:var(--status-working-fg)}
html body #tvPage .tv2 .tv-why:not(#_):not(#_){display:block;font-size:13px;line-height:1.4;color:var(--ink-2,var(--c-ink))}
html body #tvPage .tv2 .tv-fl:not(#_):not(#_),html body #tvPage .tv2 .tv-done:not(#_):not(#_){display:block;margin-top:4px}
html body #tvPage .tv2 .tv-dc:not(#_):not(#_){white-space:nowrap}
html body #tvPage .tv2 .tv-due.late:not(#_){color:var(--status-stuck-fg);font-weight:600}
html body #tvPage .tv2 .tv-due small:not(#_){display:block;font-size:12.5px;font-weight:700}
html body #tvPage .tv2 .tv-none0:not(#_){color:var(--ink-muted)}
/* who has nobody, a line with no due day: a yellow block with ▾ (you set it right there) */
html body #tvPage .tv2 .tv-yel:not(#_):not(#_){display:inline-flex;align-items:center;justify-content:space-between;gap:10px;height:36px;min-width:104px;padding:0 12px;border:0;border-radius:8px;background:var(--status-working-bg);color:var(--status-working-fg);font:600 13.5px/1 var(--font-sans);cursor:pointer;white-space:nowrap}
html body #tvPage .tv2 .tv-yel:hover:not(#_):not(#_){filter:brightness(.97)}
html body #tvPage .tv2 .tv-car:not(#_){width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
html body #tvPage .tv2 .tv-ac:not(#_):not(#_){white-space:nowrap;width:1%}
html body #tvPage .tv2 .tv-ac .tv-b:not(#_):not(#_):not(#_){height:36px;min-height:36px;padding:0 12px;font-weight:600;margin-inline-start:6px;background:var(--surface);color:var(--c-ink);border:1px solid var(--ink-muted);border-radius:8px}
html body #tvPage .tv2 .tv-ac .tv-b:hover:not(#_):not(#_):not(#_){background:var(--surface-sunken)}
html body #tvPage .tv2 .tv-mc:not(#_):not(#_){width:40px;padding-inline:4px;text-align:end}
html body #tvPage .tv2 .tv-ib:not(#_):not(#_):not(#_){width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:8px;background:transparent;display:inline-grid;place-items:center;font-size:17px;color:var(--ink-muted);cursor:pointer;box-shadow:none}
html body #tvPage .tv2 .tv-ib:hover:not(#_):not(#_):not(#_){background:var(--surface-sunken);color:var(--c-ink)}
html body #tvPage .tv2 .tv-more:not(#_):not(#_){display:flex;flex-wrap:wrap;gap:8px 22px;margin:14px 0 0;padding:0;border:0;background:none}
html body #tvPage .tv2 .tv-mb:not(#_):not(#_){padding:0;border:0;background:none;font:inherit;font-size:13.5px;color:var(--ink-muted);cursor:pointer;text-align:start}
html body #tvPage .tv2 .tv-mb:hover:not(#_):not(#_){color:var(--c-ink)}
html body #tvPage .tv2 .tv-mb u:not(#_){color:var(--c-ink);font-weight:600;text-underline-offset:3px}

/* Who has room: a table, a cell per working day */
html body #tvPage .tv2 .tv-roomw:not(#_){max-width:100%;overflow-x:auto}
html body #tvPage .tv2 .tv-room:not(#_){border-collapse:collapse;width:100%;min-width:640px}
html body #tvPage .tv2 .tv-room th:not(#_):not(#_){font-size:12.5px;font-weight:600;color:var(--ink-muted);padding:8px 6px;border-bottom:1px solid var(--border);text-align:center;white-space:nowrap}
html body #tvPage .tv2 .tv-room th:first-child:not(#_):not(#_){text-align:start;padding-inline-start:0}
html body #tvPage .tv2 .tv-room td:not(#_):not(#_){padding:6px;border-bottom:1px solid var(--border)}
html body #tvPage .tv2 .tv-room td.tv-rmn:not(#_):not(#_){padding-inline-start:0;white-space:nowrap}
html body #tvPage .tv2 .tv-room .wk2:not(#_):not(#_){border-inline-start:2px solid var(--border)}
html body #tvPage .tv2 .tv-room .tv-c:not(#_):not(#_){width:100%;min-width:40px;height:34px;border:0;border-radius:8px;font:600 13px/1 var(--font-sans);cursor:pointer}
html body #tvPage .tv2 .tv-legend:not(#_):not(#_){gap:8px 18px;margin-top:14px;font-size:12.5px}

/* Who has room for everyone (3 November 2026, lib/trafficroom.js): a heading per team, the person's open and late under their name, a
   note (away, covering), Free and "also in"; the first column stays put while the days scroll sideways in their own box */
html body #tvPage .tv2 .tv-room th small:not(#_):not(#_){display:block;font-weight:500;color:var(--ink-subtle);font-size:11px;margin-top:2px}
html body #tvPage .tv2 .tv-room tr.tv-rg>th:not(#_):not(#_):not(#_){text-align:start;padding:20px 0 8px;font-size:14px;color:var(--c-ink);border-bottom:1px solid var(--border);white-space:normal}
html body #tvPage .tv2 .tv-room tr.tv-rg>th small:not(#_):not(#_):not(#_){display:inline;margin-inline-start:10px;font-size:12px;color:var(--ink-muted)}
html body #tvPage .tv2 .tv-room td.tv-rmn:not(#_):not(#_):not(#_){position:sticky;inset-inline-start:0;z-index:1;background:var(--c-bg);min-width:190px;max-width:240px;white-space:normal}
html body #tvPage .tv2 .tv-who:not(#_):not(#_){display:flex;align-items:flex-start;gap:10px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
html body #tvPage .tv2 .tv-who:hover b:not(#_):not(#_){text-decoration:underline;text-underline-offset:3px}
html body #tvPage .tv2 .tv-wn:not(#_):not(#_){display:flex;flex-direction:column;gap:2px;min-width:0}
html body #tvPage .tv2 .tv-wn b:not(#_):not(#_){font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #tvPage .tv2 .tv-wn small:not(#_):not(#_){font-size:12px;color:var(--ink-muted);display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
html body #tvPage .tv2 .tv-wn .tv-late:not(#_):not(#_){color:var(--status-stuck-fg);font-weight:600}
html body #tvPage .tv2 .tv-wn .tv-note:not(#_):not(#_){color:var(--ink-subtle)}
html body #tvPage .tv2 .tv-free:not(#_):not(#_){display:inline-block;padding:1px 8px;border-radius:999px;background:var(--accent-green-soft);color:var(--c-ink);font-weight:600;font-size:11px}
html body #tvPage .tv2 .tv-also:not(#_):not(#_){font-size:11px;color:var(--ink-subtle)}
html body #tvPage .tv2 .tv-room .tv-c.c-shoot:not(#_):not(#_):not(#_){box-shadow:inset 0 -3px 0 var(--c-ink)}
html body #tvPage .tv2 .tv-lsh:not(#_):not(#_){font-size:12.5px;color:var(--ink-muted);display:inline-flex;align-items:center;gap:6px}
html body #tvPage .tv2 .tv-lsh:not(#_):not(#_)::before{content:"";width:14px;height:10px;border-radius:3px;box-shadow:inset 0 -3px 0 var(--c-ink);background:var(--surface-sunken)}
html body #tvPage .tv2 .tv-counts:not(#_):not(#_),html body #tvPage .tv2 .tv-miss:not(#_):not(#_){margin-top:8px;font-size:12.5px}
html body #tvPage .tv2 .tv-find:not(#_):not(#_){width:200px;max-width:100%;min-height:34px}
/* their lines (the side panel) and each team's numbers */
html body .tv-whosheet .tv-kinds:not(#_){display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}
html body .tv-whosheet .tv-ws:not(#_){margin-top:16px}
html body .tv-whosheet .tv-ws h3:not(#_){margin:0 0 6px;font-size:13px;font-weight:700}
html body .tv-whosheet .tv-ws h3 small:not(#_){font-weight:500;color:var(--ink-muted);margin-inline-start:4px}
html body .tv-whosheet .tv-ws.on h3:not(#_){color:var(--c-ink)}
html body .tv-whosheet .tv-ws ul:not(#_){margin:0;padding:0;list-style:none;display:grid;gap:8px}
html body .tv-whosheet .tv-wl:not(#_){display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:10px;background:var(--surface-sunken);font-size:13.5px}
html body .tv-whosheet .tv-wl a:not(#_){color:var(--c-ink);font-weight:600;text-decoration:none}
html body .tv-whosheet .tv-wl a:hover:not(#_){text-decoration:underline}
html body .tv-whosheet .tv-wl small:not(#_){font-size:12px;color:var(--ink-muted)}
html body .tv-whosheet .tv-wl.late small:not(#_){color:var(--status-stuck-fg)}
html body .tv-sheet .tv-rset:not(#_){width:100%;border-collapse:collapse;margin:8px 0 4px}
html body .tv-sheet .tv-rset th:not(#_),html body .tv-sheet .tv-rset td:not(#_){padding:6px 4px;text-align:start;font-size:13px;border-bottom:1px solid var(--border)}
html body .tv-sheet .tv-rset input:not(#_){width:72px;min-height:34px}
@media (max-width:760px){
  html body #tvPage .tv2 .tv-room td.tv-rmn:not(#_):not(#_):not(#_){min-width:150px;max-width:170px}
  html body #tvPage .tv2 .tv-find:not(#_):not(#_){flex:1 1 100%;width:100%}
}

/* Coming up */
html body #tvPage .tv2 .tv-cups:not(#_){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html body #tvPage .tv2 .tv-cup:not(#_){padding:16px 18px;border-radius:14px;background:var(--surface-sunken);min-width:0}
html body #tvPage .tv2 .tv-cup h2:not(#_){margin:0 0 10px;font-size:15px;font-weight:700}
html body #tvPage .tv2 .tv-cup ul:not(#_){margin:0;padding:0;list-style:none;display:grid;gap:10px}
html body #tvPage .tv2 .tv-cup li:not(#_){font-size:13.5px;line-height:1.45}
html body #tvPage .tv2 .tv-cup li b:not(#_){font-weight:600}

/* a phone: the tiles two by two, each line a card */
@media (max-width:1100px){html body #tvPage .tv2 .tv-tiles:not(#_):not(#_){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
  html body #tvPage .tv2 .tv-tiles:not(#_):not(#_){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html body #tvPage .tv2 .tv-tile:not(#_):not(#_){min-height:0;padding:12px 14px}
  html body #tvPage .tv2 .tv-tile:last-child:not(#_):not(#_){grid-column:1/-1}
  html body #tvPage .tv2 .tv-tile b:not(#_):not(#_),html body #tvPage .tv2 .tv-tile b small:not(#_):not(#_){font-size:24px}
  html body #tvPage .tv2 .tv-vsep:not(#_){display:none}
  html body #tvPage .tv2 .tv-seg:not(#_){flex:1 1 100%}
  html body #tvPage .tv2 .tv-tbl:not(#_):not(#_),html body #tvPage .tv2 .tv-tbl tbody:not(#_){display:block;width:100%}
  html body #tvPage .tv2 .tv-tbl thead:not(#_){display:none}
  html body #tvPage .tv2 .tv-tbl tr:not(#_):not(#_):not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:14px 0;border-bottom:1px solid var(--border)}
  html body #tvPage .tv2 .tv-tbl tr.tv-gr:not(#_):not(#_):not(#_){display:block;padding:0;border:0}
  html body #tvPage .tv2 .tv-tbl td:not(#_):not(#_){display:block;padding:0;border:0;min-width:0;max-width:none;width:auto;text-align:start}
  html body #tvPage .tv2 .tv-tbl tr.tv-gr>td:not(#_):not(#_){padding:18px 0 6px;border-bottom:1px solid var(--border)}
  html body #tvPage .tv2 .tv-tbl tr.tv-r:hover>td:not(#_):not(#_){background:transparent}
  html body #tvPage .tv2 .tv-jc:not(#_):not(#_){order:1;flex:1 1 calc(100% - 50px)}
  html body #tvPage .tv2 .tv-mc:not(#_):not(#_){order:2;width:34px}
  html body #tvPage .tv2 .tv-lc:not(#_):not(#_){order:3}
  html body #tvPage .tv2 .tv-wc:not(#_):not(#_){order:4}
  html body #tvPage .tv2 .tv-dc:not(#_):not(#_){order:5}
  html body #tvPage .tv2 .tv-yc:not(#_):not(#_){order:6;flex:1 1 100%}
  html body #tvPage .tv2 .tv-ac:not(#_):not(#_){order:7;flex:1 1 100%;white-space:normal}
  html body #tvPage .tv2 .tv-ac .tv-b:not(#_):not(#_){margin:0 6px 0 0}
  html body #tvPage .tv2 .tv-job small:not(#_){white-space:normal}
  html body #tvPage .tv2 .tv-cups:not(#_){grid-template-columns:1fr}
  html body #tvPage .tv2 .tv-yc .tv-tags:not(#_):not(#_):not(#_):not(#_){justify-content:flex-start;justify-self:start}
}
