/* Board, Routes tab (public/pages/board-routes.js), in the floating panel language Jay approved on 2026-11-17
   (docs/ui_2026-11-17/map_light_1440.png): a bold title over one grey status line, then calm 34 px rows split by
   hairlines, status as a small dot and a coloured word, no boxes inside the panel, small crisp type, generous side
   padding, a solid surface over the colour street map. Colours come only from the app.css theme properties, so light
   and dark follow document.documentElement.dataset.theme. Every class is rt-. */
.rt{container-type:inline-size;display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg);font-size:12.5px;line-height:1.3;color:var(--text);font-variant-numeric:tabular-nums}
.rt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rt-head,.rt-bar,.rt-sum,.rt-msg{flex:none}

/* title and its one grey line */
.rt-head{padding:18px 16px 2px}
.rt .rt-title{margin:0;font-size:17px;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:var(--text)}
.rt-sub{margin:3px 0 0;font-size:12.5px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-sub b{font-weight:600;color:var(--red-ink)}

/* controls: block, search, dispatcher */
.rt-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 16px 8px}
.rt-seg{flex:none;display:inline-flex;padding:2px;border-radius:8px;background:var(--card)}
.rt-seg button{min-width:36px;height:26px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:none;color:var(--text-2);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color 140ms ease,color 140ms ease}
.rt-seg button:hover{color:var(--text)}
.rt-seg button[aria-pressed="true"]{background:var(--bg);border-color:var(--line);color:var(--text)}
.rt-search{position:relative;flex:1 1 130px;min-width:0;display:block}
.rt-search .rt-ico{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:var(--text-2);pointer-events:none}
.rt-q{width:100%;height:30px;padding:0 8px 0 28px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:12.5px;outline:none}
.rt-q::placeholder{color:var(--text-2);opacity:.85}
.rt .rt-q:hover{border-color:var(--line-strong)}
.rt .rt-q:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.rt-q::-webkit-search-cancel-button{cursor:pointer}
.rt .rt-owner{flex:none;width:auto;max-width:150px;min-height:0;height:30px;line-height:28px;padding:0 26px 0 10px;border:1px solid var(--line);border-radius:8px;background-color:var(--bg);color:var(--text);font:inherit;font-size:12.5px;font-weight:500;cursor:pointer;appearance:none;-webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--text-2) 50%),linear-gradient(135deg,var(--text-2) 50%,transparent 50%);
  background-position:calc(100% - 13px) 50%,calc(100% - 9px) 50%;background-size:4px 4px,4px 4px;background-repeat:no-repeat;text-overflow:ellipsis}
.rt .rt-owner:hover{border-color:var(--line-strong)}
.rt .rt-owner:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.rt .rt-owner.rt-owner-on{border-color:var(--primary);background-color:var(--primary-tint);color:var(--primary-ink);font-weight:600}
.rt-owner option{background:var(--bg);color:var(--text)}

/* the counts: a number and a word per status; each one filters */
.rt-sum{display:flex;align-items:center;gap:0;padding:0 11px 8px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.rt-sum::-webkit-scrollbar{display:none}
.rt-chip{flex:none;display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 5px;border:1px solid transparent;border-radius:6px;background:none;color:var(--text-2);font:inherit;font-size:11.5px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background-color 140ms ease}
.rt-chip b{font-weight:650;color:var(--text)}
.rt-chip-red b{color:var(--red-ink)}
.rt-chip-amber b{color:var(--amber-ink)}
.rt-chip.rt-zero{opacity:.5}
.rt-chip.rt-zero b{color:var(--text-2)}
.rt-chip:hover{background:var(--row-hover)}
.rt-chip[aria-pressed="true"]{background:var(--primary-tint);color:var(--primary-ink);opacity:1}
.rt-chip[aria-pressed="true"] b{color:var(--primary-ink)}

/* quiet states: loading, not deployed yet, could not load */
.rt-msg:empty{display:none}
.rt-quiet{margin:0;padding:22px 16px;font-size:13px;color:var(--text-2)}
.rt-msg .rt-quiet-bad{padding:8px 16px;color:var(--red-ink);border-bottom:1px solid var(--line)}

/* the table */
.rt-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--bg)}
.rt-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.rt-table th,.rt-table td{padding:0 5px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.rt-table thead th{position:sticky;top:0;z-index:3;height:28px;background:var(--bg);border-bottom:1px solid var(--line);font-size:11.5px;font-weight:500;color:var(--text-2)}
.rt-table thead th button{display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
.rt-table thead th button:hover{color:var(--text)}
.rt-table thead th[aria-sort] button{color:var(--text)}
.rt-dir{font-size:10px}
.rt-table .num{text-align:right}
.rt-table .rt-c-route{width:70px;padding:0 3px 0 16px}
.rt-table .rt-c-status{width:104px;padding-left:2px}
.rt-table .rt-c-van{width:42px}
.rt-table .rt-c-prog{width:48px;padding-left:2px;text-align:right}
.rt-table .rt-c-next{width:88px;padding-left:9px}
.rt-table .rt-c-owner{width:70px;padding-right:16px}
.rt-table td{height:34px;border-bottom:1px solid var(--line);cursor:pointer}
.rt-row:hover td{background:var(--row-hover)}
.rt-row:focus{outline:none}
.rt-row:focus-visible td{box-shadow:inset 0 2px 0 var(--primary),inset 0 -2px 0 var(--primary)}
.rt-row:focus-visible td:first-child{box-shadow:inset 2px 2px 0 var(--primary),inset 0 -2px 0 var(--primary)}
.rt-row:focus-visible td:last-child{box-shadow:inset -2px 2px 0 var(--primary),inset 0 -2px 0 var(--primary)}
.rt-row.rt-sel td,.rt-row.rt-sel+.rt-why td{background:var(--row-hover)}
.rt-row.rt-sel td:first-child,.rt-row.rt-sel+.rt-why td{box-shadow:inset 2px 0 0 var(--primary)}
.rt-row.rt-open td{border-bottom-color:transparent}

.rt-code{font-weight:650;letter-spacing:.005em;color:var(--text)}
.rt-blk{margin-left:5px;font-size:10.5px;font-weight:600;color:var(--text-2)}
.rt-trunc{display:block;overflow:hidden;text-overflow:ellipsis}
.rt-c-owner{color:var(--text-2)}
.rt-none{color:var(--text-2);opacity:.75}
.rt-dim{color:var(--text-2);font-size:12px}

/* status: a small dot and the word; the word takes the colour when it needs eyes */
.rt-st{font-size:12px;font-weight:500;color:var(--text);white-space:nowrap}
.rt-st i{display:inline-block;width:7px;height:7px;margin:0 6px 0 0;vertical-align:1px;border-radius:50%;background:currentColor}
.rt-st-red{color:var(--red-ink);font-weight:600}
.rt-st-amber{color:var(--amber-ink);font-weight:600}
.rt-st-green i{background:var(--green-ink)}
.rt-st-grey{color:var(--text-2)}
.rt-st-grey i{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.rt-st-done{color:var(--text-2)}
.rt-st-done i{background:var(--line-strong)}
.rt-is-untracked .rt-st i{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}

/* van number: plain text that opens the van */
.rt-van{display:inline;max-width:100%;padding:0;border:0;background:none;color:var(--text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;text-underline-offset:3px;transition:color 140ms ease}
.rt-van:hover{color:var(--primary-ink);text-decoration:underline}
.rt-van-dark{color:var(--text-2)}

/* next stop: the usual time, and the estimate only when it moves */
.rt-next{display:inline-flex;align-items:baseline}
.rt-usual{color:var(--text)}
.rt-arrow{margin:0 3px;color:var(--text-2);font-size:11px}
.rt-eta{font-weight:650;color:var(--text)}
.rt-eta-amber{color:var(--amber-ink)}
.rt-eta-red{color:var(--red-ink)}

/* finished lines step back */
.rt-is-done td,.rt-is-done .rt-usual,.rt-is-done .rt-van{color:var(--text-2)}
.rt-is-done .rt-code{color:var(--text-2);font-weight:600}

/* the second line: why, then the facts */
.rt-why td{height:auto;padding:0 16px 11px;white-space:normal;overflow:visible;cursor:default;border-bottom:1px solid var(--line)}
.rt-why-text{margin:0;font-size:12.5px;line-height:1.4;color:var(--text)}
.rt-why-red .rt-why-text{color:var(--red-ink)}
.rt-why-amber .rt-why-text{color:var(--amber-ink)}
.rt-why-facts{margin:3px 0 0;font-size:11.5px;line-height:1.5;color:var(--text-2)}
.rt-sep{opacity:.6}

/* group labels: quiet text on the panel surface, sticky under the header */
.rt-grp th{position:sticky;top:28px;z-index:2;height:32px;padding:0 16px 6px;vertical-align:bottom;background:var(--bg);border-bottom:1px solid var(--line);font-size:11.5px;font-weight:600;color:var(--text-2);text-align:left;cursor:default}
.rt-grp-n{margin-left:6px;color:var(--text);font-weight:650}
.rt-grp-eyes .rt-grp-n{color:var(--red-ink)}

.rt-empty{padding:28px 16px!important;height:auto!important;text-align:center!important;white-space:normal!important;font-size:13px;color:var(--text-2);cursor:default!important}
.rt-link{padding:0;border:0;background:none;color:var(--primary-ink);font:inherit;font-weight:600;cursor:pointer}
.rt-link:hover{text-decoration:underline}

/* both blocks in a flat list: room for the block mark beside the code */
.rt-table.rt-flat.rt-both .rt-c-route{width:94px}

/* a narrow panel: the owner moves to the second line, the columns tighten */
@container (max-width:440px){
  .rt-table .rt-c-owner{width:0;padding:0;visibility:hidden}
  .rt-table .rt-c-next{width:94px;padding-right:16px}
  .rt-sum{flex-wrap:wrap;overflow:visible}
}
@container (max-width:400px){
  .rt-head{padding-left:14px;padding-right:14px}
  .rt-bar{padding-left:14px;padding-right:14px}
  .rt-table .rt-c-route{width:64px;padding:0 2px 0 14px}
  .rt-table.rt-flat.rt-both .rt-c-route{width:86px}
  .rt-table .rt-c-status{width:90px}
  .rt-min-u{display:none}
  .rt-table .rt-c-van{width:42px}
  .rt-table .rt-c-prog{width:40px;padding:0 2px 0 0}
  .rt-table .rt-c-next{width:96px;padding-right:14px}
  .rt-why td{padding:0 14px 11px}
  .rt-grp th{padding:0 14px 6px}
}
@media (prefers-reduced-motion:reduce){.rt *{transition:none!important}}
