/* ============================================================================
   rt-kit v0.1  |  Ride Time tool kit  |  2026-10-28
   One stylesheet for every staff tool (Pulse, Ignition, Frontline, Greenlight,
   Tow Hook, Dipstick, Turn Signal). Phone first: every rule is written for a
   375px screen, then widened at 600px and 1000px.
   Layout idea: a surface-coloured app bar, content in one column, a bottom tab
   bar on phones that becomes a left sidebar on desktop, one red floating action
   button, sheets that rise from the bottom on phones and slide in from the
   right on desktop. Red is the brand and the one accent; data is blue; status
   colours mean status and nothing else.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  color-scheme:light;
  /* surfaces + ink (cool-biased neutrals) */
  --rt-bg:#F2F3F6; --rt-surface:#FFFFFF; --rt-surface-2:#EDEFF3; --rt-surface-3:#E3E6EC;
  --rt-ink:#111318; --rt-ink-2:#4A5162; --rt-ink-3:#7B8395; --rt-line:#E2E5EB; --rt-line-2:#C9CED8;
  --rt-scrim:rgba(17,19,24,.45);
  /* brand */
  --rt-brand:#C8102E; --rt-brand-strong:#A50C25; --rt-brand-text:#B50E2A; --rt-brand-soft:#FBE8EB; --rt-on-brand:#FFFFFF;
  /* semantic (status only, never for data) */
  --rt-ok:#15803D; --rt-ok-soft:#DCFCE7; --rt-warn:#B45309; --rt-warn-soft:#FEF3C7; --rt-bad:#B91C1C; --rt-bad-soft:#FEE2E2;
  --rt-info:#1D4ED8; --rt-info-soft:#DBEAFE; --rt-hot:#AA1500; --rt-hot-soft:#FDE1DC;
  /* queue colours, Doug 2026-10-26: waiting for a reply = green, need a call = orange */
  --rt-wait:#047857; --rt-wait-soft:#D1FAE5; --rt-call:#C2410C; --rt-call-soft:#FFEDD5;
  /* conversation colours, Doug 2026-10-25 */
  --rt-msg-in:#D1FAE5; --rt-msg-in-ink:#064E3B; --rt-msg-out:#2563EB; --rt-msg-out-ink:#FFFFFF; --rt-msg-auto:#CFFAFE; --rt-msg-auto-ink:#164E63;
  --rt-msg-email:#7C3AED; --rt-msg-email-in:#EDE9FE; --rt-msg-email-in-ink:#3B0764; --rt-msg-note:#1F2937; --rt-msg-note-ink:#F9FAFB;
  /* data (validated 2026-10-28 with the dataviz checker, light surface) */
  --rt-data-1:#2A78D6; --rt-data-2:#EB6834; --rt-data-3:#1BAF7A; --rt-data-4:#EDA100;
  --rt-data-1-soft:rgba(42,120,214,.14); --rt-data-prev:#C9CED8; --rt-grid:#E8EAEF; --rt-axis:#C9CED8;
  /* type */
  --rt-font:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --rt-fs-xs:11px; --rt-fs-sm:12px; --rt-fs-md:13px; --rt-fs:15px; --rt-fs-lg:17px; --rt-fs-xl:20px; --rt-fs-2xl:24px; --rt-fs-3xl:32px; --rt-fs-4xl:44px;
  /* spacing (4px scale) */
  --rt-s1:4px; --rt-s2:8px; --rt-s3:12px; --rt-s4:16px; --rt-s5:20px; --rt-s6:24px; --rt-s8:32px; --rt-s10:40px;
  --rt-gutter:max(16px,env(safe-area-inset-left,0px));
  /* radius + elevation */
  --rt-r-sm:8px; --rt-r:12px; --rt-r-lg:16px; --rt-r-xl:20px; --rt-r-pill:999px;
  --rt-shadow:0 1px 2px rgba(17,19,24,.05),0 4px 14px rgba(17,19,24,.06); --rt-shadow-lg:0 16px 40px rgba(17,19,24,.18);
  --rt-focus:0 0 0 3px rgba(42,120,214,.35);
  /* shell sizes */
  --rt-bar-h:52px; --rt-tabs-h:60px; --rt-side-w:248px; --rt-tap:44px;
  --rt-ease:cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    color-scheme:dark;
    --rt-bg:#0C0E12; --rt-surface:#15181E; --rt-surface-2:#1C2029; --rt-surface-3:#252A35;
    --rt-ink:#ECEEF2; --rt-ink-2:#AEB4C0; --rt-ink-3:#7E8594; --rt-line:#262B34; --rt-line-2:#353B47; --rt-scrim:rgba(0,0,0,.6);
    --rt-brand-text:#FF5A6E; --rt-brand-soft:#3A1218;
    --rt-ok:#34D399; --rt-ok-soft:#0F2E1C; --rt-warn:#FBBF24; --rt-warn-soft:#3A2A0C; --rt-bad:#F87171; --rt-bad-soft:#3B1414;
    --rt-info:#60A5FA; --rt-info-soft:#16254A; --rt-hot:#FF6B5B; --rt-hot-soft:#3D120C;
    --rt-wait:#34D399; --rt-wait-soft:#064E3B; --rt-call:#FB923C; --rt-call-soft:#4A1D0A;
    --rt-msg-in:#065F46; --rt-msg-in-ink:#ECFDF5; --rt-msg-auto:#155E75; --rt-msg-auto-ink:#ECFEFF; --rt-msg-email-in:#4C1D95; --rt-msg-email-in-ink:#F5F3FF; --rt-msg-note:#E5E7EB; --rt-msg-note-ink:#111827;
    --rt-data-1:#4A92EE; --rt-data-2:#D95926; --rt-data-3:#199E70; --rt-data-4:#C98500; --rt-data-1-soft:rgba(74,146,238,.18); --rt-data-prev:#353B47; --rt-grid:#232834; --rt-axis:#353B47;
    --rt-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 6px 18px rgba(0,0,0,.32); --rt-shadow-lg:0 16px 40px rgba(0,0,0,.55);
  }
}
:root[data-theme=dark]{
  color-scheme:dark;
  --rt-bg:#0C0E12; --rt-surface:#15181E; --rt-surface-2:#1C2029; --rt-surface-3:#252A35;
  --rt-ink:#ECEEF2; --rt-ink-2:#AEB4C0; --rt-ink-3:#7E8594; --rt-line:#262B34; --rt-line-2:#353B47; --rt-scrim:rgba(0,0,0,.6);
  --rt-brand-text:#FF5A6E; --rt-brand-soft:#3A1218;
  --rt-ok:#34D399; --rt-ok-soft:#0F2E1C; --rt-warn:#FBBF24; --rt-warn-soft:#3A2A0C; --rt-bad:#F87171; --rt-bad-soft:#3B1414;
  --rt-info:#60A5FA; --rt-info-soft:#16254A; --rt-hot:#FF6B5B; --rt-hot-soft:#3D120C;
  --rt-wait:#34D399; --rt-wait-soft:#064E3B; --rt-call:#FB923C; --rt-call-soft:#4A1D0A;
  --rt-msg-in:#065F46; --rt-msg-in-ink:#ECFDF5; --rt-msg-auto:#155E75; --rt-msg-auto-ink:#ECFEFF; --rt-msg-email-in:#4C1D95; --rt-msg-email-in-ink:#F5F3FF; --rt-msg-note:#E5E7EB; --rt-msg-note-ink:#111827;
  --rt-data-1:#4A92EE; --rt-data-2:#D95926; --rt-data-3:#199E70; --rt-data-4:#C98500; --rt-data-1-soft:rgba(74,146,238,.18); --rt-data-prev:#353B47; --rt-grid:#232834; --rt-axis:#353B47;
  --rt-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 6px 18px rgba(0,0,0,.32); --rt-shadow-lg:0 16px 40px rgba(0,0,0,.55);
}

/* ---------- 2. Base ---------- */
.rt,.rt *,.rt *::before,.rt *::after{box-sizing:border-box}
.rt{background:var(--rt-bg);color:var(--rt-ink);font:var(--rt-fs)/1.45 var(--rt-font);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
.rt button,.rt input,.rt select,.rt textarea{font:inherit;color:inherit;margin:0}
.rt button{cursor:pointer}
.rt a{color:inherit;text-decoration:none}
.rt img,.rt svg,.rt video{max-width:100%;display:block}
.rt :focus-visible{outline:none;box-shadow:var(--rt-focus)}
.rt h1,.rt h2,.rt h3,.rt h4,.rt p{margin:0}
.rt h1{font-size:var(--rt-fs-2xl);font-weight:700;letter-spacing:-.02em;line-height:1.15;text-wrap:balance}
.rt h2{font-size:var(--rt-fs-lg);font-weight:700;letter-spacing:-.01em;line-height:1.2}
.rt h3{font-size:var(--rt-fs);font-weight:600;line-height:1.3}
.rt .rt-sub{color:var(--rt-ink-2);font-size:var(--rt-fs-md)}
.rt .rt-muted{color:var(--rt-ink-3)}
.rt .rt-eyebrow{font-size:var(--rt-fs-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--rt-ink-3)}
.rt .rt-num{font-variant-numeric:tabular-nums}
.rt .rt-ok{color:var(--rt-ok)}.rt .rt-warn{color:var(--rt-warn)}.rt .rt-bad{color:var(--rt-bad)}.rt .rt-info{color:var(--rt-info)}
.rt .rt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.rt *,.rt *::before,.rt *::after{transition:none!important;animation:none!important}}

/* ---------- 3. App shell ---------- */
/* <div class="rt rt-app"> <header class="rt-bar">..</header> <div class="rt-scroll"><main class="rt-main">..</main></div> <nav class="rt-tabs">..</nav> <button class="rt-fab"> </div> */
.rt-app{position:relative;height:100%;min-height:100%;display:flex;flex-direction:column;overflow:hidden}
.rt-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.rt-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:var(--rt-s2);height:calc(var(--rt-bar-h) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) var(--rt-s2) 0 var(--rt-s3);background:color-mix(in srgb,var(--rt-surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--rt-line)}
.rt-bar.rt-bar--flat{background:var(--rt-surface)}
.rt-tool{display:inline-flex;align-items:center;gap:var(--rt-s2);height:var(--rt-tap);padding:0 var(--rt-s2) 0 0;border:0;background:none;border-radius:var(--rt-r);font-weight:700;font-size:var(--rt-fs-lg);letter-spacing:-.01em;white-space:nowrap}
.rt-tool:active{background:var(--rt-surface-2)}
.rt-tool .rt-mark{width:30px;height:30px;border-radius:9px;background:var(--rt-brand);display:grid;place-items:center;flex:none}
.rt-tool .rt-mark svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rt-tool .rt-caret{width:14px;height:14px;color:var(--rt-ink-3);fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.rt-bar .rt-grow{flex:1;min-width:0}
.rt-bar-title{flex:1;min-width:0;font-weight:700;font-size:var(--rt-fs-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.rt-ibtn{width:var(--rt-tap);height:var(--rt-tap);border:0;background:none;border-radius:var(--rt-r);display:inline-flex;align-items:center;justify-content:center;color:var(--rt-ink);flex:none;position:relative}
.rt-ibtn:active{background:var(--rt-surface-2)}
.rt-ibtn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rt-ibtn .rt-dot{position:absolute;top:9px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--rt-brand);box-shadow:0 0 0 2px var(--rt-surface)}
.rt-avatar{width:32px;height:32px;border-radius:50%;background:var(--rt-surface-3);color:var(--rt-ink-2);font-weight:700;font-size:var(--rt-fs-md);display:inline-flex;align-items:center;justify-content:center;flex:none}
.rt-avatar--lg{width:44px;height:44px;font-size:var(--rt-fs)}
.rt-avatar--sm{width:26px;height:26px;font-size:var(--rt-fs-xs)}
.rt-main{padding:var(--rt-s4) var(--rt-gutter) calc(var(--rt-tabs-h) + env(safe-area-inset-bottom,0px) + 88px) var(--rt-gutter);padding-right:max(16px,env(safe-area-inset-right,0px));max-width:1100px;margin:0 auto;width:100%}
.rt-main--flush{padding-top:0}
.rt-page-h{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--rt-s3);margin:0 0 var(--rt-s4)}
.rt-page-h p{color:var(--rt-ink-2);font-size:var(--rt-fs-md);margin-top:2px}
/* bottom tab bar */
.rt-tabs{position:absolute;left:0;right:0;bottom:0;z-index:30;display:flex;height:calc(var(--rt-tabs-h) + env(safe-area-inset-bottom,0px));padding:0 var(--rt-s1) env(safe-area-inset-bottom,0px);background:color-mix(in srgb,var(--rt-surface) 92%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-top:1px solid var(--rt-line)}
.rt-tab{flex:1;min-width:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--rt-ink-3);font-size:var(--rt-fs-xs);font-weight:600;letter-spacing:.01em;position:relative;border-radius:var(--rt-r)}
.rt-tab span{white-space:nowrap}
.rt-tab svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s var(--rt-ease)}
.rt-tab.on{color:var(--rt-brand-text)}
.rt-tab.on svg{stroke-width:2.4}
.rt-tab:active svg{transform:scale(.92)}
.rt-tab .rt-badge{position:absolute;top:6px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:var(--rt-r-pill);background:var(--rt-brand);color:#fff;font-size:10.5px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--rt-surface)}
/* floating action button */
.rt-fab{position:absolute;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(var(--rt-tabs-h) + env(safe-area-inset-bottom,0px) + 14px);z-index:29;width:56px;height:56px;border-radius:18px;border:0;background:var(--rt-brand);color:#fff;box-shadow:0 10px 24px rgba(200,16,46,.38);display:flex;align-items:center;justify-content:center;transition:transform .15s var(--rt-ease)}
.rt-fab svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.rt-fab:active{transform:scale(.94)}
.rt-fab--label{width:auto;padding:0 18px 0 14px;gap:8px;font-weight:700;font-size:var(--rt-fs)}
/* sidebar (desktop) shares the tab items */
.rt-side{display:none}
@media (min-width:1000px){
  .rt-app{flex-direction:row}
  .rt-side{display:flex;flex-direction:column;width:var(--rt-side-w);flex:none;background:var(--rt-surface);border-right:1px solid var(--rt-line);padding:var(--rt-s3) var(--rt-s3) var(--rt-s4);gap:2px;overflow-y:auto}
  .rt-side .rt-tool{margin:2px 4px 14px}
  .rt-side .rt-sg{font-size:var(--rt-fs-xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--rt-ink-3);padding:14px 12px 6px}
  .rt-side .rt-tab{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;height:44px;padding:0 12px;font-size:var(--rt-fs);font-weight:600;color:var(--rt-ink-2)}
  .rt-side .rt-tab.on{background:var(--rt-brand-soft);color:var(--rt-brand-text)}
  .rt-side .rt-tab .rt-badge{position:static;margin-left:auto;box-shadow:none}
  .rt-side .rt-tab svg{width:22px;height:22px}
  .rt-side .rt-side-foot{margin-top:auto;padding:12px 8px 0;display:flex;align-items:center;gap:10px;font-size:var(--rt-fs-md);color:var(--rt-ink-2)}
  .rt-body{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}
  .rt-tabs{display:none}
  .rt-main{max-width:1440px;padding-bottom:var(--rt-s10)}
  .rt-fab{bottom:28px;right:28px}
}
.rt-body{display:contents}
@media (min-width:1000px){.rt-body{display:flex}}
/* 2026-11-12 premium pass (Doug: "improve the look of all the other tools to match"), every tool at once:
   a marker on the active bottom tab, desktop hover states, a sidebar that folds to icons, and a one-time entrance for the first content. */
.rt-tabs .rt-tab.on::before{content:"";position:absolute;top:0;left:50%;width:28px;height:3px;margin-left:-14px;border-radius:0 0 3px 3px;background:var(--rt-brand)}
.rt-side-min{display:none}
@media (min-width:1000px){
  .rt-side{transition:width .22s var(--rt-ease),padding .22s var(--rt-ease)}
  .rt-side-min{display:flex;align-items:center;gap:12px;flex:none;height:40px;margin-top:8px;padding:0 12px;border:0;background:none;border-radius:var(--rt-r);color:var(--rt-ink-3);font-size:var(--rt-fs-md);font-weight:600;white-space:nowrap}
  .rt-side-min svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s var(--rt-ease)}
  .rt-side:not(:has(.rt-side-foot)) .rt-side-min{margin-top:auto}
  .rt-side.rt-side--mini{width:88px;padding-left:8px;padding-right:8px;overflow-x:hidden}
  .rt-side--mini .rt-tool{flex:none;flex-direction:column;justify-content:center;gap:4px;height:auto;min-height:64px;padding:6px 0;margin:2px 0 10px;font-size:11px}
  .rt-side--mini .rt-tool .rt-caret{display:none}
  .rt-side--mini .rt-sg{font-size:0;height:1px;padding:0;margin:8px 12px;background:var(--rt-line);overflow:hidden}
  .rt-side--mini .rt-tab{flex-direction:column;align-items:center;justify-content:center;gap:5px;width:68px;height:60px;margin:3px auto;padding:6px 3px;font-size:11px;line-height:1.2;text-align:center;border-radius:12px;background:var(--rt-surface-2);border:1px solid var(--rt-line)}
  .rt-side--mini .rt-tab.on{background:var(--rt-brand-soft);border-color:transparent}
  .rt-side--mini .rt-tab>svg{width:20px;height:20px}
  .rt-side--mini .rt-tab>i,.rt-side--mini .rt-tab>.rt-sw{width:14px;height:14px;border-radius:4px}
  .rt-side--mini .rt-tab>svg,.rt-side--mini .rt-tab>.rt-sw{flex:none}
  .rt-side--mini .rt-side-label{display:block;flex:none;width:100%;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
  .rt-side--mini .rt-tab .rt-badge{position:absolute;top:3px;left:auto;right:4px;margin:0;font-size:10.5px;box-shadow:0 0 0 2px var(--rt-surface)}
  .rt-side--mini .rt-side-foot{flex-direction:column;padding:12px 0 0;font-size:11px;gap:6px;text-align:center}
  .rt-side--mini .rt-side-foot .rt-right{margin-left:0}
  .rt-side--mini .rt-side-min{flex-direction:column;justify-content:center;gap:4px;height:58px;padding:6px 0;font-size:11px;line-height:1.3}
  .rt-side--mini .rt-side-min svg{transform:rotate(180deg)}
}
@media (hover:hover){
  .rt-row,.rt-tab,.rt-ibtn,.rt-tool,.rt-chip,.rt-side-min{transition:background .12s,border-color .12s,color .12s}
  .rt-kpi{transition:transform .15s var(--rt-ease),border-color .15s}
  .rt-btn:hover:not(:disabled){filter:brightness(1.08)}
  .rt-btn--tonal:hover:not(:disabled){filter:none;background:var(--rt-surface-3)}
  .rt-btn--ghost:hover:not(:disabled){filter:none;background:var(--rt-surface-2)}
  .rt-chip:not(.on):hover{border-color:var(--rt-line-2);background:var(--rt-surface-2)}
  .rt-row.is-tap:hover{background:var(--rt-surface-2)}
  .rt-kpi.is-tap:hover{border-color:var(--rt-line-2);transform:translateY(-1px)}
  .rt-ibtn:hover,.rt-tool:hover,.rt-side-min:hover{background:var(--rt-surface-2)}
  .rt-side .rt-tab:not(.on):hover{background:var(--rt-surface-2);color:var(--rt-ink)}
  .rt-tabs .rt-tab:not(.on):hover{color:var(--rt-ink-2)}
  .rt-table tbody tr.is-tap:hover td{background:var(--rt-surface-2)}
}
@keyframes rtrise{from{opacity:0;transform:translateY(10px)}}
.rt-rise{animation:rtrise .45s var(--rt-ease) backwards}

/* ---------- 4. Cards, lists, rows ---------- */
.rt-card{background:var(--rt-surface);border:1px solid var(--rt-line);border-radius:var(--rt-r-lg);box-shadow:var(--rt-shadow);min-width:0}
.rt-card-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--rt-s3);padding:var(--rt-s4) var(--rt-s4) var(--rt-s2)}
.rt-card-h h2{font-size:var(--rt-fs);font-weight:700}
.rt-card-h small{color:var(--rt-ink-3);font-size:var(--rt-fs-sm);font-weight:500}
.rt-card-h a,.rt-card-h .rt-link{color:var(--rt-brand-text);font-weight:600;font-size:var(--rt-fs-md);white-space:nowrap}
.rt-card-b{padding:var(--rt-s2) var(--rt-s4) var(--rt-s4)}
.rt-card-b--flush{padding:0}
.rt-card-f{padding:var(--rt-s3) var(--rt-s4);border-top:1px solid var(--rt-line);display:flex;gap:var(--rt-s2);align-items:center}
.rt-stack{display:flex;flex-direction:column;gap:var(--rt-s3)}
.rt-grid{display:grid;grid-template-columns:1fr;gap:var(--rt-s3)}
@media (min-width:600px){.rt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-grid .rt-span{grid-column:1/-1}}
/* Desktop tracks follow the available content width, including nested cards. */
@media (min-width:1000px){
  .rt-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}
  .rt-grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
}
/* rows inside a card: 56px, thumb/avatar, two lines, trailing value */
.rt-list{display:flex;flex-direction:column}
.rt-row{display:flex;align-items:center;gap:var(--rt-s3);min-height:56px;padding:10px var(--rt-s4);border-top:1px solid var(--rt-line);background:none;border-left:0;border-right:0;border-bottom:0;width:100%;text-align:left;color:inherit;position:relative}
.rt-list>.rt-row:first-child{border-top:0}
.rt-row.is-tap:active{background:var(--rt-surface-2)}
.rt-t{flex:1;min-width:0}
.rt-t>b{display:block;font-weight:600;font-size:var(--rt-fs);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-t>span{display:block;color:var(--rt-ink-2);font-size:var(--rt-fs-md);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-t>span.wrap,.rt-t>span.rt-flex{white-space:normal;overflow:visible}
.rt-t>span.rt-flex{display:flex;flex-wrap:wrap}
.rt-row .rt-v{text-align:right;flex:none;font-weight:700;font-size:var(--rt-fs);font-variant-numeric:tabular-nums}
.rt-row .rt-v small{display:block;font-weight:500;color:var(--rt-ink-3);font-size:var(--rt-fs-xs)}
.rt-row .rt-chev{width:18px;height:18px;flex:none;color:var(--rt-line-2);fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;margin-right:-4px}
.rt-row--stripe{border-left:4px solid var(--rt-line-2);padding-left:12px}
.rt-row--stripe.ok{border-left-color:var(--rt-ok)}.rt-row--stripe.warn{border-left-color:var(--rt-warn)}.rt-row--stripe.bad{border-left-color:var(--rt-bad)}.rt-row--stripe.info{border-left-color:var(--rt-info)}
.rt-thumb{width:64px;height:46px;border-radius:9px;object-fit:cover;background:var(--rt-surface-3);flex:none}
.rt-thumb--lg{width:88px;height:64px;border-radius:var(--rt-r)}
.rt-bar-row{height:5px;border-radius:5px;background:var(--rt-surface-2);margin-top:5px;overflow:hidden}
.rt-bar-row i{display:block;height:100%;border-radius:5px;background:var(--rt-data-1)}
.rt-empty{padding:var(--rt-s8) var(--rt-s4);text-align:center;color:var(--rt-ink-3);font-size:var(--rt-fs-md)}
.rt-empty b{display:block;color:var(--rt-ink-2);font-size:var(--rt-fs);margin-bottom:4px}
.rt-sk{background:linear-gradient(90deg,var(--rt-surface-2) 25%,var(--rt-surface-3) 37%,var(--rt-surface-2) 63%);background-size:400% 100%;animation:rtsk 1.3s ease infinite;border-radius:var(--rt-r)}
@keyframes rtsk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ---------- 5. KPI tiles, hero numbers, queue cards ---------- */
.rt-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rt-s3)}
@media (min-width:600px){.rt-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
.rt-kpis--scroll{display:flex;gap:var(--rt-s3);overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--rt-gutter));padding:2px var(--rt-gutter) 6px;scroll-snap-type:x proximity}
.rt-kpis--scroll::-webkit-scrollbar{display:none}
.rt-kpis--scroll .rt-kpi{flex:0 0 150px;scroll-snap-align:start}
@media (min-width:1000px){.rt-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}.rt-kpis--scroll{display:grid;overflow:visible;margin:0;padding:0}.rt-kpis--scroll .rt-kpi{flex:none}}
.rt-kpi{background:var(--rt-surface);border:1px solid var(--rt-line);border-radius:var(--rt-r-lg);box-shadow:var(--rt-shadow);padding:12px 14px 10px;min-width:0;position:relative;overflow:hidden;text-align:left;color:inherit;display:block;width:100%}
.rt-kpi.is-tap:active{background:var(--rt-surface-2)}
.rt-kpi .rt-l{display:block;color:var(--rt-ink-2);font-size:var(--rt-fs-sm);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-kpi .rt-vv{display:block;font-size:var(--rt-fs-3xl);font-weight:700;letter-spacing:-.03em;line-height:1.05;margin:4px 0 2px}
.rt-kpi .rt-d{display:block;font-size:var(--rt-fs-sm);font-weight:600;color:var(--rt-ink-3);line-height:1.35}
.rt-kpi .rt-d.up{color:var(--rt-ok)}.rt-kpi .rt-d.down{color:var(--rt-bad)}
.rt-kpi .rt-d small{font-weight:500;color:var(--rt-ink-3);font-size:inherit}
.rt-kpi svg.rt-spark{display:block;width:calc(100% + 28px);height:28px;margin:6px -14px -10px;overflow:visible}
.rt-kpi--c .rt-vv{color:var(--rt-brand-text)}
.rt-hero{font-size:var(--rt-fs-4xl);font-weight:700;letter-spacing:-.04em;line-height:1}
/* queue card: one big number, a colour, a start button, per-person counts below */
.rt-queue{border-radius:var(--rt-r-lg);overflow:hidden;background:var(--rt-surface);border:1px solid var(--rt-line);box-shadow:var(--rt-shadow)}
.rt-queue-top{display:flex;align-items:center;gap:var(--rt-s4);padding:16px 18px;color:#fff;border:0;width:100%;text-align:left}
.rt-queue--wait .rt-queue-top{background:linear-gradient(135deg,#047857,#059669)}
.rt-queue--call .rt-queue-top{background:linear-gradient(135deg,#C2410C,#EA580C)}
.rt-queue--neutral .rt-queue-top{background:linear-gradient(135deg,#1F2937,#374151)}
.rt-queue-top .rt-hero{min-width:58px}
.rt-queue-top .rt-qt{display:block;font-weight:700;font-size:var(--rt-fs-lg)}
.rt-queue-top small{display:block;opacity:.85;font-size:var(--rt-fs-md)}
.rt-queue-top .rt-go{margin-left:auto;background:rgba(255,255,255,.18);border-radius:var(--rt-r-pill);padding:8px 14px;font-weight:700;font-size:var(--rt-fs-md);white-space:nowrap}
.rt-queue-people{display:flex;gap:var(--rt-s2);padding:12px 14px;overflow-x:auto;scrollbar-width:none}
.rt-queue-people::-webkit-scrollbar{display:none}
.rt-qp{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px 0 6px;border:1px solid var(--rt-line);border-radius:var(--rt-r-pill);background:var(--rt-surface);font-weight:600;font-size:var(--rt-fs-md)}
.rt-qp em{font-style:normal;font-weight:700;padding:2px 9px;border-radius:var(--rt-r-pill)}
.rt-queue--wait .rt-qp em{background:var(--rt-wait-soft);color:var(--rt-wait)}
.rt-queue--call .rt-qp em{background:var(--rt-call-soft);color:var(--rt-call)}

/* ---------- 6. Buttons, chips, segmented, pills, status ---------- */
.rt-btn,.rt .rt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--rt-tap);padding:0 18px;border:0;border-radius:var(--rt-r);background:var(--rt-brand);color:var(--rt-on-brand);font-weight:700;font-size:var(--rt-fs);white-space:nowrap;transition:transform .12s var(--rt-ease),background .15s;text-decoration:none}
.rt-btn:active{transform:scale(.97)}
.rt-btn:disabled{opacity:.45;cursor:default;transform:none}
.rt-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rt-btn--2,.rt .rt-btn--2{background:var(--rt-ink);color:var(--rt-bg)}
.rt-btn--tonal,.rt .rt-btn--tonal{background:var(--rt-surface-2);color:var(--rt-ink)}
.rt-btn--ghost,.rt .rt-btn--ghost{background:none;color:var(--rt-brand-text);border:1px solid var(--rt-line-2)}
.rt-btn--ok,.rt .rt-btn--ok{background:var(--rt-ok);color:#fff}
.rt-btn--danger,.rt .rt-btn--danger{background:var(--rt-bad-soft);color:var(--rt-bad)}
.rt-btn--sm{height:36px;padding:0 12px;font-size:var(--rt-fs-md);border-radius:10px}
.rt-btn--lg{height:52px;padding:0 22px;font-size:var(--rt-fs-lg)}
.rt-btn--full{width:100%}
.rt-btns{display:flex;gap:var(--rt-s2);flex-wrap:wrap}
.rt-btns--split .rt-btn{flex:1}
/* chips: filters, never navigation */
.rt-chips{display:flex;gap:var(--rt-s2);overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--rt-gutter));padding:2px var(--rt-gutter) 2px;scroll-snap-type:x proximity}
.rt-chips::-webkit-scrollbar{display:none}
.rt-chips--wrap{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
.rt-chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--rt-line);border-radius:var(--rt-r-pill);background:var(--rt-surface);color:var(--rt-ink);font-weight:600;font-size:var(--rt-fs-md);white-space:nowrap;scroll-snap-align:start}
.rt-chip.on{background:var(--rt-ink);color:var(--rt-bg);border-color:var(--rt-ink)}
.rt-chip em{font-style:normal;font-weight:700;color:var(--rt-ink-3);font-size:var(--rt-fs-sm)}
.rt-chip.on em{color:inherit;opacity:.75}
.rt-chip--sm{height:30px;padding:0 10px;font-size:var(--rt-fs-sm)}
/* segmented control */
.rt-seg{display:inline-flex;background:var(--rt-surface-2);border-radius:var(--rt-r);padding:3px;gap:2px;max-width:100%}
.rt-seg button{flex:1;min-width:0;border:0;background:none;border-radius:9px;height:34px;padding:0 12px;font-weight:600;font-size:var(--rt-fs-md);color:var(--rt-ink-2);white-space:nowrap}
.rt-seg button.on{background:var(--rt-surface);color:var(--rt-ink);box-shadow:var(--rt-shadow)}
.rt-seg--full{display:flex}
/* pills and status: one named set */
.rt-pill{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:var(--rt-r-pill);font-size:var(--rt-fs-xs);font-weight:700;letter-spacing:.02em;white-space:nowrap;background:var(--rt-surface-2);color:var(--rt-ink-2)}
.rt-pill--ok{background:var(--rt-ok-soft);color:var(--rt-ok)}.rt-pill--warn{background:var(--rt-warn-soft);color:var(--rt-warn)}.rt-pill--bad{background:var(--rt-bad-soft);color:var(--rt-bad)}.rt-pill--info{background:var(--rt-info-soft);color:var(--rt-info)}
.rt-pill--brand{background:var(--rt-brand);color:#fff}.rt-pill--hot{background:var(--rt-hot);color:#fff}.rt-pill--wait{background:var(--rt-wait-soft);color:var(--rt-wait)}.rt-pill--call{background:var(--rt-call-soft);color:var(--rt-call)}
.rt-pill--up{text-transform:uppercase;letter-spacing:.05em}
.rt-status{display:inline-flex;align-items:center;gap:7px;font-size:var(--rt-fs-md);font-weight:600;color:var(--rt-ink-2);white-space:nowrap}
.rt-status::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--rt-line-2);flex:none}
.rt-status--ok::before{background:var(--rt-ok)}.rt-status--warn::before{background:var(--rt-warn)}.rt-status--bad::before{background:var(--rt-bad)}.rt-status--info::before{background:var(--rt-info)}.rt-status--wait::before{background:var(--rt-wait)}.rt-status--call::before{background:var(--rt-call)}
.rt-status--live::before{background:var(--rt-ok);box-shadow:0 0 0 0 rgba(21,128,61,.55);animation:rtlive 1.6s infinite}
@keyframes rtlive{70%{box-shadow:0 0 0 7px rgba(21,128,61,0)}100%{box-shadow:0 0 0 0 rgba(21,128,61,0)}}
/* traffic light (Frontline + Greenlight) */
.rt-light{display:inline-flex;align-items:center;gap:6px;border-radius:var(--rt-r-pill);padding:2px 9px 2px 5px;font-size:var(--rt-fs-xs);font-weight:700;white-space:nowrap;background:var(--rt-surface-2);color:var(--rt-ink-2)}
.rt-light i{display:inline-flex;flex-direction:column;gap:1.5px;background:#111;border-radius:4px;padding:2px}
.rt-light i::before,.rt-light i::after,.rt-light i b{content:"";display:block;width:5px;height:5px;border-radius:50%;background:#444}
.rt-light--red{background:var(--rt-bad-soft);color:var(--rt-bad)}.rt-light--red i::before{background:#EF4444}
.rt-light--yellow{background:var(--rt-warn-soft);color:var(--rt-warn)}.rt-light--yellow i b{background:#FACC15}
.rt-light--green{background:var(--rt-ok-soft);color:var(--rt-ok)}.rt-light--green i::after{background:#22C55E}
/* step dots for recon steps */
.rt-step-ic{width:28px;height:28px;border-radius:50%;border:2px solid var(--rt-line-2);color:var(--rt-ink-3);display:inline-flex;align-items:center;justify-content:center;font-size:var(--rt-fs-sm);font-weight:700;flex:none}
.rt-step-ic.done{background:var(--rt-ok);border-color:var(--rt-ok);color:#fff}
.rt-step-ic.ready{border-color:var(--rt-ink);color:var(--rt-ink);box-shadow:0 0 0 4px var(--rt-ok-soft)}
.rt-step-ic.late{border-color:var(--rt-bad);color:var(--rt-bad);box-shadow:0 0 0 4px var(--rt-bad-soft)}

/* ---------- 7. Banners, toasts ---------- */
.rt-banner{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--rt-r);font-size:var(--rt-fs-md);font-weight:500;background:var(--rt-surface-2);color:var(--rt-ink)}
.rt-banner b{font-weight:700}
.rt-banner--ok{background:var(--rt-ok-soft);color:var(--rt-ok)}.rt-banner--warn{background:var(--rt-warn-soft);color:var(--rt-warn)}.rt-banner--bad{background:var(--rt-bad-soft);color:var(--rt-bad)}.rt-banner--info{background:var(--rt-info-soft);color:var(--rt-info)}.rt-banner--hot{background:var(--rt-hot);color:#fff}
.rt-banner svg{width:18px;height:18px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rt-toast{position:absolute;left:50%;bottom:calc(var(--rt-tabs-h) + env(safe-area-inset-bottom,0px) + 16px);transform:translateX(-50%) translateY(16px);background:var(--rt-ink);color:var(--rt-bg);padding:11px 16px;border-radius:var(--rt-r);font-weight:600;font-size:var(--rt-fs-md);opacity:0;transition:.2s var(--rt-ease);z-index:60;max-width:calc(100% - 32px);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-toast.on{opacity:1;transform:translateX(-50%)}
@media (min-width:1000px){.rt-toast{bottom:28px}}

/* ---------- 8. Forms ---------- */
.rt-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.rt-field label,.rt-label{font-size:var(--rt-fs-sm);font-weight:600;color:var(--rt-ink-2)}
.rt-field .rt-help{font-size:var(--rt-fs-sm);color:var(--rt-ink-3)}
.rt-field .rt-err{font-size:var(--rt-fs-sm);color:var(--rt-bad);font-weight:600}
.rt-in,.rt-sel,.rt-ta{width:100%;min-width:0;height:48px;padding:0 14px;border:1px solid var(--rt-line-2);border-radius:var(--rt-r);background:var(--rt-surface);color:var(--rt-ink);font-size:16px;transition:border-color .15s,box-shadow .15s}
.rt-ta{height:auto;min-height:96px;padding:12px 14px;resize:vertical;line-height:1.4}
.rt-in:focus,.rt-sel:focus,.rt-ta:focus{border-color:var(--rt-data-1);box-shadow:var(--rt-focus);outline:none}
.rt-in::placeholder,.rt-ta::placeholder{color:var(--rt-ink-3)}
.rt-in[aria-invalid=true]{border-color:var(--rt-bad)}
.rt-sel{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8395' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px}
.rt-in--sm,.rt-sel--sm{height:40px;font-size:var(--rt-fs)}
.rt-adorn{position:relative}
.rt-adorn>span{position:absolute;top:0;bottom:0;display:flex;align-items:center;color:var(--rt-ink-3);font-weight:600;pointer-events:none}
.rt-adorn--pre>span{left:14px}.rt-adorn--pre .rt-in{padding-left:30px}
.rt-adorn--post>span{right:14px}.rt-adorn--post .rt-in{padding-right:36px}
.rt-form-grid{display:grid;grid-template-columns:1fr;gap:var(--rt-s3)}
@media (min-width:600px){.rt-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rt-form-grid .rt-span{grid-column:1/-1}}
.rt-search{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border:1px solid var(--rt-line);border-radius:var(--rt-r-lg);background:var(--rt-surface);box-shadow:var(--rt-shadow)}
.rt-search svg{width:20px;height:20px;flex:none;color:var(--rt-ink-3);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.rt-search input{flex:1;min-width:0;border:0;background:none;height:100%;font-size:16px;color:var(--rt-ink);outline:none}
.rt-search input::placeholder{color:var(--rt-ink-3)}
.rt-search--sticky{position:sticky;top:calc(var(--rt-bar-h) + env(safe-area-inset-top,0px) + 8px);z-index:5}
.rt-switch{position:relative;width:48px;height:28px;border-radius:14px;background:var(--rt-line-2);border:0;flex:none;transition:background .15s}
.rt-switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s var(--rt-ease)}
.rt-switch[aria-checked=true]{background:var(--rt-ok)}
.rt-switch[aria-checked=true]::after{transform:translateX(20px)}
.rt-check{display:flex;align-items:center;gap:10px;min-height:var(--rt-tap);font-size:var(--rt-fs)}
.rt-check input{width:20px;height:20px;accent-color:var(--rt-brand);margin:0}
/* inline status select (lists act inline) */
.rt-inline-sel{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 8px 0 10px;border:1px solid var(--rt-line);border-radius:10px;background:var(--rt-surface);font-size:var(--rt-fs-md);font-weight:600;position:relative}
.rt-inline-sel select{appearance:none;-webkit-appearance:none;border:0;background:none;font:inherit;color:inherit;padding:0 16px 0 0;height:34px;outline:none}
.rt-inline-sel::after{content:"";position:absolute;right:9px;top:15px;border:4px solid transparent;border-top-color:var(--rt-ink-3)}

/* ---------- 9. Tables ---------- */
.rt-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 calc(-1*var(--rt-s4));padding:0 var(--rt-s4)}
.rt-table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--rt-fs-md);font-variant-numeric:tabular-nums}
.rt-table th{font-size:var(--rt-fs-xs);font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--rt-ink-3);text-align:right;padding:8px 10px;border-bottom:1px solid var(--rt-line);white-space:nowrap;background:var(--rt-surface);position:sticky;top:0}
.rt-table td{padding:10px;border-bottom:1px solid var(--rt-line);text-align:right;white-space:nowrap;vertical-align:middle}
.rt-table th:first-child,.rt-table td:first-child{text-align:left;position:sticky;left:0;background:var(--rt-surface);z-index:1}
.rt-table tr:last-child td{border-bottom:0}
.rt-table tbody tr.is-tap{cursor:pointer}.rt-table tbody tr.is-tap:active td{background:var(--rt-surface-2)}
.rt-table td b{font-weight:700}
.rt-table .rt-hl td{font-weight:700;background:var(--rt-surface-2)}
.rt-table th.sort{cursor:pointer;color:var(--rt-ink)}
/* Stacked on phones (Doug 2026-10-28: never a sideways scroll): every row becomes a block, the first cell is its title,
   every other cell is one "label  value" line (the label comes from data-l, filled from the column heading). */
@media (max-width:599px){
  .rt-tw--stack{overflow:visible;margin:0;padding:0}
  .rt-table--stack{display:block}.rt-table--stack thead{display:none}.rt-table--stack tbody{display:block}
  .rt-table--stack tr{display:block;padding:10px 0;border-top:1px solid var(--rt-line)}.rt-table--stack tbody tr:first-child{border-top:0}
  .rt-table--stack td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:2px 0;border:0;text-align:right;white-space:normal;position:static;background:none;font-size:var(--rt-fs-md);min-width:0}
  .rt-table--stack td:first-child{display:block;text-align:left;font-weight:700;font-size:var(--rt-fs);padding-bottom:4px}
  .rt-table--stack td:first-child::before{content:none}
  .rt-table--stack td[data-l]::before{content:attr(data-l);color:var(--rt-ink-3);font-weight:500;text-align:left;flex:1}
  .rt-table--stack td[colspan]{display:block;text-align:left;font-weight:700;color:var(--rt-ink-3);font-size:var(--rt-fs-xs);text-transform:uppercase;letter-spacing:.05em;padding:8px 0 0}
  .rt-table--stack td:empty{display:none}
  .rt-table--stack tr.sub td:first-child{font-weight:600;color:var(--rt-ink-2)}
  .rt-table--stack .rt-hl td{background:none}.rt-table--stack .rt-hl td:first-child{color:var(--rt-brand-text)}
}
.rt-kv{display:grid;grid-template-columns:minmax(100px,38%) 1fr;gap:6px 12px;font-size:var(--rt-fs)}
.rt-kv span{color:var(--rt-ink-3)}
.rt-kv b{font-weight:600;min-width:0;overflow-wrap:anywhere}

/* ---------- 10. Sheets, drawers, menus ---------- */
.rt-scrim{position:absolute;inset:0;background:var(--rt-scrim);z-index:40;opacity:0;pointer-events:none;transition:opacity .2s}
.rt-scrim.on{opacity:1;pointer-events:auto}
.rt-sheet{position:absolute;left:0;right:0;bottom:0;z-index:41;max-height:92%;background:var(--rt-surface);border-radius:var(--rt-r-xl) var(--rt-r-xl) 0 0;box-shadow:var(--rt-shadow-lg);transform:translateY(104%);transition:transform .26s var(--rt-ease);display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}
.rt-sheet.on{transform:none}
.rt-sheet-grip{width:40px;height:5px;border-radius:3px;background:var(--rt-line-2);margin:8px auto 0;flex:none}
.rt-sheet-h{display:flex;align-items:center;gap:var(--rt-s3);padding:10px var(--rt-s4) 10px;border-bottom:1px solid var(--rt-line);flex:none}
.rt-sheet-h h2{flex:1;min-width:0;font-size:var(--rt-fs-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-sheet-h .rt-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-sheet-b{flex:1;min-height:0;overflow-y:auto;padding:var(--rt-s4);-webkit-overflow-scrolling:touch}
.rt-sheet-f{flex:none;padding:12px var(--rt-s4);border-top:1px solid var(--rt-line);display:flex;gap:var(--rt-s2);background:var(--rt-surface)}
.rt-sheet--full{max-height:100%;height:100%;border-radius:0}
@media (min-width:1000px){
  .rt-sheet{left:auto;top:0;bottom:0;width:min(760px,100%);max-height:100%;border-radius:0;transform:translateX(104%);border-left:1px solid var(--rt-line)}
  .rt-sheet--wide{width:min(1100px,100%)}
  .rt-sheet-grip{display:none}
  .rt-sheet-h{padding-top:var(--rt-s4)}
}
.rt-menu{position:fixed;z-index:50;min-width:240px;max-width:calc(100vw - 24px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--rt-surface);border:1px solid var(--rt-line);border-radius:var(--rt-r-lg);box-shadow:var(--rt-shadow-lg);padding:6px;animation:rtpop .14s var(--rt-ease)}
@keyframes rtpop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.rt-menu a,.rt-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:8px 10px;border:0;border-radius:10px;background:none;color:inherit;text-align:left;font-weight:600;font-size:var(--rt-fs)}
.rt-menu a:active,.rt-menu button:active,.rt-menu a.cur{background:var(--rt-surface-2)}
.rt-menu small{display:block;font-weight:500;color:var(--rt-ink-3);font-size:var(--rt-fs-sm)}
.rt-menu .rt-sw{width:12px;height:12px;border-radius:4px;flex:none}
.rt-menu hr{border:0;border-top:1px solid var(--rt-line);margin:5px 6px}
.rt-menu em{margin-left:auto;font-style:normal;font-size:var(--rt-fs-xs);color:var(--rt-ink-3);font-weight:600}
/* action list inside a sheet (one tap per line) */
.rt-actions .rt-row{min-height:54px;font-weight:600}
.rt-actions .rt-row svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--rt-ink-2)}

/* ---------- 11. Conversation thread + composer (Ignition) ---------- */
.rt-thread{display:flex;flex-direction:column;gap:2px;padding:12px 12px 16px}
.rt-day{align-self:center;background:var(--rt-surface-2);color:var(--rt-ink-3);font-size:var(--rt-fs-sm);font-weight:600;border-radius:var(--rt-r-pill);padding:4px 12px;margin:12px 0 8px}
.rt-msg{display:flex;flex-direction:column;max-width:84%;margin:4px 0}
.rt-msg.in{align-self:flex-start;align-items:flex-start}.rt-msg.out{align-self:flex-end;align-items:flex-end}.rt-msg.mid{align-self:center;align-items:center;max-width:94%}
.rt-bub{padding:9px 13px;border-radius:18px;font-size:var(--rt-fs);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--rt-surface);border:1px solid var(--rt-line)}
.rt-msg.in .rt-bub{background:var(--rt-msg-in);color:var(--rt-msg-in-ink);border:0;border-bottom-left-radius:6px}
.rt-msg.in.email .rt-bub{background:var(--rt-msg-email-in);color:var(--rt-msg-email-in-ink)}
.rt-msg.out .rt-bub{background:var(--rt-msg-out);color:var(--rt-msg-out-ink);border:0;border-bottom-right-radius:6px}
.rt-msg.out.email .rt-bub{background:var(--rt-msg-email)}
.rt-msg.out.auto .rt-bub{background:var(--rt-msg-auto);color:var(--rt-msg-auto-ink)}
.rt-msg.out.held .rt-bub{background:none;border:1.5px dashed var(--rt-msg-out);color:var(--rt-ink)}
.rt-msg.mid.note .rt-bub{background:var(--rt-msg-note);color:var(--rt-msg-note-ink);border:0;border-radius:14px;text-align:left}
.rt-msg.mid.call .rt-bub{border-left:4px solid var(--rt-ok);border-radius:12px;text-align:left}
.rt-msg.mid.call.miss .rt-bub{border-left-color:var(--rt-bad)}
.rt-msg.mid.sys .rt-bub{background:none;border:0;color:var(--rt-ink-3);font-size:var(--rt-fs-sm);text-align:center;padding:2px 8px}
.rt-msg .rt-meta{font-size:var(--rt-fs-xs);color:var(--rt-ink-3);margin:3px 6px 0}
.rt-composer{flex:none;background:var(--rt-surface);border-top:1px solid var(--rt-line);padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
.rt-composer .rt-seg{margin-bottom:8px}
.rt-composer .rt-box{display:flex;align-items:flex-end;gap:6px;border:1.5px solid var(--rt-line-2);border-radius:22px;background:var(--rt-bg);padding:4px 4px 4px 14px}
.rt-composer .rt-box:focus-within{border-color:var(--rt-msg-out)}
.rt-composer textarea{flex:1;min-width:0;border:0;background:none;resize:none;min-height:40px;max-height:160px;padding:9px 0;font-size:16px;line-height:1.35;outline:none;color:var(--rt-ink)}
.rt-composer .rt-send{width:40px;height:40px;border-radius:50%;border:0;background:var(--rt-msg-out);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none}
.rt-composer .rt-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.rt-composer .rt-send:disabled{opacity:.35}
.rt-composer.email .rt-box:focus-within,.rt-composer.email .rt-send{border-color:var(--rt-msg-email);background:var(--rt-msg-email)}
.rt-composer.email .rt-box{background:var(--rt-bg)}
.rt-composer.note .rt-box{background:var(--rt-warn-soft);border-color:var(--rt-warn)}.rt-composer.note .rt-send{background:var(--rt-msg-note);color:var(--rt-msg-note-ink)}

/* ---------- 12. Charts (drawn by rt-kit.js) ---------- */
.rt-chart{width:100%;display:block;overflow:visible;touch-action:pan-y}
.rt-chart text{font-family:var(--rt-font);font-size:11px;fill:var(--rt-ink-3)}
.rt-chart .rt-grid{stroke:var(--rt-grid);stroke-width:1}
.rt-chart .rt-axis{stroke:var(--rt-axis);stroke-width:1}
.rt-chart .rt-b{fill:var(--rt-data-1);transition:opacity .15s}
.rt-chart .rt-b.prev{fill:var(--rt-data-prev)}
.rt-chart .rt-b.hi{fill:var(--rt-brand)}
.rt-chart .rt-b.dim{opacity:.45}
.rt-chart .rt-ln{fill:none;stroke:var(--rt-data-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.rt-chart .rt-ln.prev{stroke:var(--rt-data-prev)}
.rt-chart .rt-ar{fill:var(--rt-data-1-soft)}
.rt-chart .rt-pt{fill:var(--rt-data-1);stroke:var(--rt-surface);stroke-width:2}
.rt-chart .rt-vl{fill:var(--rt-ink);font-weight:700}
.rt-chart .rt-hit{fill:transparent}
.rt-readout{min-height:22px;display:flex;justify-content:space-between;gap:12px;font-size:var(--rt-fs-md);font-weight:600;color:var(--rt-ink-2);margin:4px 0 8px}
.rt-readout b{color:var(--rt-ink);font-size:var(--rt-fs)}
.rt-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:var(--rt-fs-sm);color:var(--rt-ink-2);margin-top:8px}
.rt-legend span{display:inline-flex;align-items:center;gap:6px}
.rt-legend i{width:12px;height:12px;border-radius:3px;background:var(--rt-data-1)}
.rt-legend i.prev{background:var(--rt-data-prev)}.rt-legend i.d2{background:var(--rt-data-2)}.rt-legend i.d3{background:var(--rt-data-3)}.rt-legend i.d4{background:var(--rt-data-4)}
.rt-spark .rt-ln{stroke-width:1.8}
.rt-spark .rt-ar{fill:var(--rt-data-1-soft)}
.rt-spark .rt-pt{r:3}
/* ranked horizontal bars (CSS, no JS) */
.rt-hbars{display:flex;flex-direction:column;gap:10px}
.rt-hbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;font-size:var(--rt-fs-md)}
.rt-hbar .rt-k{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-hbar .rt-n{font-weight:700;font-variant-numeric:tabular-nums}
.rt-hbar .rt-tr{grid-column:1/-1;height:8px;border-radius:4px;background:var(--rt-surface-2);overflow:hidden}
.rt-hbar .rt-tr i{display:block;height:100%;background:var(--rt-data-1);border-radius:4px 4px 4px 4px}
/* entrance (2026-11-11): rt-kit.js adds .rt-enter only on the first paint or right after a tap, never on timer refreshes */
@keyframes rtgrow{from{transform:scaleY(0)}}
@keyframes rtgrowx{from{transform:scaleX(0)}}
@keyframes rtfade{from{opacity:0}}
@keyframes rtwipe{from{clip-path:inset(-8px 100% -8px -8px)}to{clip-path:inset(-8px -8px -8px -8px)}}
.rt-chart.rt-enter .rt-b{transform-box:fill-box;transform-origin:50% 100%;animation:rtgrow .5s var(--rt-ease) backwards}
.rt-chart.rt-enter .rt-ln.prev,.rt-chart.rt-enter .rt-vl{animation:rtfade .4s .35s backwards}
.rt-chart.rt-enter.rt-wipe{animation:rtwipe .8s var(--rt-ease) backwards}
.rt-hbars.rt-enter .rt-tr i{transform-origin:0 50%;animation:rtgrowx .6s var(--rt-ease) backwards}
.rt-chart .rt-xl{stroke:var(--rt-ink-3);stroke-width:1}

/* ---------- 13. Login gate ---------- */
.rt-gate{min-height:100%;display:flex;align-items:center;justify-content:center;padding:var(--rt-s6) var(--rt-gutter)}
.rt-gate .rt-card{width:100%;max-width:380px;padding:var(--rt-s6) var(--rt-s5);text-align:center}
.rt-gate .rt-mark{width:56px;height:56px;border-radius:16px;background:var(--rt-brand);display:grid;place-items:center;margin:0 auto 14px}
.rt-gate .rt-mark svg{width:32px;height:32px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rt-gate h1{margin-bottom:6px}
.rt-gate p{color:var(--rt-ink-2);font-size:var(--rt-fs-md);margin-bottom:var(--rt-s4)}

/* ---------- 14. Utilities ---------- */
.rt-mt1{margin-top:var(--rt-s1)}.rt-mt2{margin-top:var(--rt-s2)}.rt-mt3{margin-top:var(--rt-s3)}.rt-mt4{margin-top:var(--rt-s4)}.rt-mt6{margin-top:var(--rt-s6)}
.rt-mb2{margin-bottom:var(--rt-s2)}.rt-mb3{margin-bottom:var(--rt-s3)}.rt-mb4{margin-bottom:var(--rt-s4)}
.rt-flex{display:flex;align-items:center;gap:var(--rt-s2)}.rt-between{justify-content:space-between}.rt-wrap{flex-wrap:wrap}
.rt-right{margin-left:auto}.rt-center{text-align:center}
.rt-hide-s{display:none}@media (min-width:600px){.rt-hide-s{display:initial}.rt-hide-w{display:none!important}}
.rt-sect{font-size:var(--rt-fs-md);font-weight:700;letter-spacing:.01em;color:var(--rt-ink-2);margin:var(--rt-s5) 0 var(--rt-s2);display:flex;align-items:baseline;justify-content:space-between}
.rt-sect a{font-weight:600;color:var(--rt-brand-text);font-size:var(--rt-fs-md)}
.rt-note{font-size:var(--rt-fs-sm);color:var(--rt-ink-3);line-height:1.45}
.rt-note b{color:var(--rt-ink-2)}
/* 2026-11-13 wide screens: Ignition queue cards (Waiting / Need a call) side by side */
@media (min-width:1400px){.rt-stack:has(> .rt-queue + .rt-queue){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}}
/* 2026-11-13 rail pass 2 (Doug): tool button on top = a tile like the tabs; this tool's tabs = filled tiles;
   other tools = lighter outline links so they read as "leave this tool"; roomier collapsed rail, narrower open menu. */
@media (min-width:1000px){
  :root{--rt-side-w:212px}
  .rt-side.rt-side--mini{width:104px;padding-left:10px;padding-right:10px;scrollbar-width:thin}
  .rt-side--mini .rt-tool{align-self:center;width:76px;min-height:68px;margin:2px auto 12px;padding:8px 3px;border-radius:14px;background:var(--rt-surface);border:1px solid var(--rt-line-2);box-shadow:var(--rt-shadow);font-size:11px;font-weight:700;letter-spacing:0;text-align:center}
  .rt-side--mini .rt-tool .rt-side-label{max-width:100%}
  .rt-side--mini .rt-tab{width:76px;height:62px}
  /* other tools, collapsed: no fill, dashed outline, coloured app square */
  .rt-side--mini #tools .rt-tab{height:54px;margin:4px auto;background:transparent;border:1px dashed var(--rt-line-2);color:var(--rt-ink-3);font-weight:600}
  .rt-side--mini #tools .rt-tab>i,.rt-side--mini #tools .rt-tab>.rt-sw{width:18px!important;height:18px!important;margin:0!important;border-radius:6px!important}
  .rt-side--mini #tools .rt-tab:hover{background:var(--rt-surface-2);border-style:solid;color:var(--rt-ink)}
  /* other tools, open menu: shorter, quieter rows */
  .rt-side:not(.rt-side--mini) #tools .rt-tab{height:36px;font-size:var(--rt-fs-md);font-weight:500;color:var(--rt-ink-3)}
  .rt-side:not(.rt-side--mini) #tools .rt-tab:hover{color:var(--rt-ink)}
}

/* Back arrow in the top bar (Doug 2026-11-19): only shows when there is a screen inside the tool to go back to */
.rt-bar .rt-navback{margin-left:calc(-1 * var(--rt-s2))}
.rt-bar .rt-navback[hidden]{display:none}
