/* Central Executive Transfers — Command Centre
   Brand: Gold #FBBA2A, Black #0b0b0b, Inter. Self-contained (no build step)
   so it deploys cleanly to GoDaddy shared hosting. */

:root {
    --gold: #FBBA2A;
    --gold-dark: #d99a17;
    --black: #0b0b0b;
    --ink: #141414;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --white: #ffffff;
    --green: #1f9d55;
    --red: #d64545;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .05);

    /* ─ Theme variables (whole app tunes from here) ─ */
    --bg: #f5f5f4;                       /* clean light shell */
    --panel: rgba(17, 22, 36, .72);      /* glass panel (live surfaces) */
    --panel-solid: #121727;              /* fallback when backdrop-filter unsupported */
    --panel-line: rgba(255, 255, 255, .09);
    --panel-text: #e8ecf4;
    --panel-muted: #9aa3b2;
    --accent: var(--gold);
    --glow: 0 0 18px rgba(251, 186, 42, .28);
    --blur: 12px;
    --radius-lg: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Numbers & timestamps read technical: aligned digits everywhere. */
.mono, .kpi-n, .a-time, .tl-count, .ping-chip, td, .job-card .time { font-variant-numeric: tabular-nums; }

/* Glass panel primitive — solid fallback first, glass where supported. */
.glass { background: var(--panel-solid); border: 1px solid var(--panel-line);
    color: var(--panel-text); border-radius: var(--radius-lg); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: var(--panel); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
}
.glass .muted, .glass .hint { color: var(--panel-muted); }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- Public tracking page header (dark brand bar) ----- */
.track-topbar {
    background: var(--black);
    color: var(--white);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .3px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.brand span.gold { color: var(--gold); }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: #cfcfcf; font-size: 14px; font-weight: 500; }
.topnav a:hover, .topnav a.active { color: var(--gold); text-decoration: none; }

/* ----- Layout ----- */
.container { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.page-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.page-sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ----- Cards ----- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ----- Stat tiles ----- */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .n { font-size: 30px; font-weight: 700; color: var(--black); }
.stat .l { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ----- Forms ----- */
.field { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }
.req { color: var(--red); }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    background: #fbfbfa;
    color: var(--ink);
    transition: border-color .12s, box-shadow .12s, background .12s;
}
input:hover, select:hover, textarea:hover { border-color: #cfcfca; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(251, 186, 42, .18);
}
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error { color: var(--red); font-size: 12px; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
legend { font-weight: 700; font-size: 14px; padding: 0 8px; color: var(--gold-dark); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 3px; }
.checkbox-row label { font-weight: 400; margin: 0; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: none; border-radius: 11px;
    font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
    transition: transform .1s, box-shadow .12s, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #111; box-shadow: 0 6px 16px rgba(251,186,42,.28); }
.btn-primary:hover { background: #ffc844; text-decoration: none; box-shadow: 0 8px 22px rgba(251,186,42,.36); }
.btn-dark { background: #17181c; color: var(--white); }
.btn-dark:hover { background: #000; text-decoration: none; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfcfca; text-decoration: none; }
.btn-light { background: #f0f0ef; color: var(--ink); }
.btn-block { width: 100%; }

/* ----- Tables ----- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }

/* ----- Badges ----- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff4d6; color: #8a6d00; }
.badge-allocated { background: #e0ecff; color: #1d4ed8; }
.badge-accepted { background: #e3f0ff; color: #1e63c7; }
.badge-en_route { background: #fde9c8; color: #b25e00; }
.badge-collected { background: #e7e0ff; color: #5b2bc7; }
.badge-complete { background: #d9f3e2; color: #1f7a44; }
.badge-cancelled, .badge-no_show { background: #fbe0e0; color: #b32020; }

/* ----- Auth ----- */
.auth-wrap { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(1200px 600px at 50% -10%, #1a1b1f 0%, #0a0a0c 60%); padding: 24px; }
.auth-aura { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 620px; height: 620px;
    background: radial-gradient(closest-side, rgba(251,186,42,.16), transparent); filter: blur(4px); pointer-events: none; }
.auth-card { position: relative; background: rgba(22,23,27,.92); border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px; padding: 40px 36px; width: 100%; max-width: 400px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.auth-card label { color: #c9ccd1; }
.auth-card input { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
.auth-card input:hover { border-color: rgba(255,255,255,.25); }
.auth-card input:focus { background: rgba(255,255,255,.06); }
.auth-card .checkbox-row label { color: #9aa0a6; }
.auth-card .hint { color: #7f858c; }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-logo { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, #111, #17181c); border: 1px solid rgba(251,186,42,.4); box-shadow: 0 8px 24px rgba(251,186,42,.2); }
.auth-logo .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px 2px rgba(251,186,42,.7); }
.auth-brand .mark { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.auth-brand .mark .gold { color: var(--gold); }
.auth-brand .sub { color: #8b9096; font-size: 13px; margin-top: 4px; }

/* ----- Alerts ----- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d9f3e2; color: #1f7a44; border: 1px solid #b6e4c8; }
.alert-error { background: #fbe0e0; color: #b32020; border: 1px solid #f3c2c2; }

/* ----- Footer ----- */
.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--line); }
.site-footer .ico { font-weight: 600; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ----- Despatch board (Phase 2) ----- */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }
.board-col { background: #f1f1ef; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.board-col h3 { margin: 2px 4px 12px; padding: 7px 10px; border-radius: 10px; font-size: 11px; text-transform: uppercase;
    letter-spacing: .8px; color: #3a3a38; background: #fff; display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--col-c, var(--line)); border-left-width: 4px; }
.board-col h3 .count { color: var(--col-c, var(--muted)); font-weight: 800; }
.board-col[data-s="pending"]   { --col-c: #d64545; }
.board-col[data-s="allocated"] { --col-c: #FBBA2A; }
.board-col[data-s="accepted"]  { --col-c: #e0b445; }
.board-col[data-s="en_route"]  { --col-c: #4f8fe0; }
.board-col[data-s="arrived"]   { --col-c: #9a7ae0; }
.board-col[data-s="collected"] { --col-c: #38b271; }
.board-col[data-s="complete"]  { --col-c: #1f9d55; }
.board-col[data-s="cancelled"], .board-col[data-s="no_show"] { --col-c: #7a8090; }
.board-col h3 .count { background: #17181c; color: var(--gold); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
.job-card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 13px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .12s, box-shadow .12s; }
.job-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
/* Status-coloured left accent so a column reads at a glance */
.job-card.s-pending { border-left-color: #e0a500; }
.job-card.s-allocated { border-left-color: #1d4ed8; }
.job-card.s-accepted { border-left-color: #1e63c7; }
.job-card.s-en_route { border-left-color: #b25e00; }
.job-card.s-arrived { border-left-color: #9a4b00; }
.job-card.s-collected { border-left-color: #5b2bc7; }
.job-card.s-complete { border-left-color: #1f7a44; }
.job-card.s-cancelled, .job-card.s-no_show { border-left-color: #b32020; }
.job-card .time { font-weight: 800; font-size: 15px; }
.job-card .ref { font-size: 11px; color: var(--muted); }
.job-card .meta { font-size: 12.5px; color: #444; margin: 6px 0; }
.job-card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.job-card .actions form { display: inline; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; background: var(--black); color: #fff; font-weight: 600; }
.btn-xs.gold { background: var(--gold); color: var(--black); }
.btn-xs.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.inline-select { padding: 6px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }


/* ----- Driver app (mobile-first) ----- */
.filters { display: flex; gap: 8px; margin-bottom: 18px; }
.filters a { flex: 1; text-align: center; padding: 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.filters a.active { background: var(--gold); color: var(--black); border-color: var(--gold); }
.job-tile { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; color: var(--ink); }
.job-tile:hover { text-decoration: none; box-shadow: var(--shadow); }
.job-tile .top { display: flex; justify-content: space-between; align-items: center; }
.job-tile .big-time { font-size: 20px; font-weight: 800; }
.tap-actions { display: grid; gap: 10px; margin-top: 16px; }
.tap-actions button { padding: 16px; font-size: 16px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; }
.tap-accept { background: #1d4ed8; color: #fff; } .tap-go { background: var(--gold); color: var(--black); }
.tap-collect { background: #5b2bc7; color: #fff; } .tap-complete { background: var(--green); color: #fff; }
.tap-cancel { background: #fff; color: var(--red); border: 1px solid #f3c2c2 !important; }

/* ----- New driver statuses (Phase: iCabbi-style) ----- */
.badge-arrived { background: #fde2c8; color: #9a4b00; }
.tap-arrive { background: #b25e00; color: #fff; }

/* ===== ETO-style left sidebar shell (overrides earlier topbar) ===== */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 244px; background: linear-gradient(180deg, #0c0d10 0%, #0a0a0c 100%); color: #cfcfcf; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 50; border-right: 1px solid rgba(255,255,255,.05); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .3px; border-bottom: 1px solid rgba(255,255,255,.06); }
.side-brand:hover { text-decoration: none; }
.side-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(251,186,42,.25); }
.side-brand .gold { color: var(--gold); }
.side-nav { padding: 10px 12px 48px; }
.nav-group { margin-top: 10px; }
.nav-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #6f6f6f; padding: 6px 10px; }
.side-nav a { display: block; padding: 10px 12px; margin: 1px 0; color: #cfcfcf; font-size: 14px; border-radius: 10px; transition: background .12s, color .12s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-nav a.active { color: #111; background: var(--gold); font-weight: 700; box-shadow: 0 6px 16px rgba(251,186,42,.25); }

/* Collapsible sidebar groups — daily links stay on top, the rest fold away. */
.nav-fold { margin-top: 10px; }
.nav-fold summary { font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
    color: #6f6f6f; padding: 8px 20px; cursor: pointer; list-style: none;
    user-select: none; display: flex; align-items: center; gap: 6px; }
.nav-fold summary::-webkit-details-marker { display: none; }
.nav-fold summary::before { content: '▸'; font-size: 10px; transition: transform .15s; }
.nav-fold[open] summary::before { transform: rotate(90deg); }
.nav-fold summary:hover { color: #bbb; }
.nav-fold a { padding-left: 22px; font-size: 13.5px; }

/* Sidebar scrollbar — slim and dark */
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 8px; }

.content-area { margin-left: 240px; flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Repurpose .topbar as a thin white header inside the content area */
.topbar { background: #fff; height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.topbar-user .who { font-size: 13px; color: var(--muted); }
.topbar-user .role { background: #17181c; color: var(--gold); border-radius: 999px; padding: 2px 9px; font-size: 11px; margin-left: 4px; font-weight: 600; }

/* List page header (title left, search/actions right) */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

/* Modern data table — hover rows, gentle zebra, tidy header */
.table-modern { font-size: 13.5px; }
.table-modern thead th { position: sticky; top: 60px; background: #fafafa; z-index: 1; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table-modern tbody td { padding: 12px 14px; border-bottom: 1px solid #f0f0ef; vertical-align: middle; }
.table-modern tbody tr { transition: background .1s; }
.table-modern tbody tr:hover { background: rgba(251,186,42,.07); }
.table-modern tbody tr:last-child td { border-bottom: none; }
.table-modern a.mono { font-weight: 700; color: var(--gold-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px 16px; width: 100%; }
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }

.nav-burger { display: none; font-size: 22px; cursor: pointer; color: var(--ink); }
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 260px; box-shadow: 2px 0 18px rgba(0,0,0,.35); }
  .content-area { margin-left: 0; }
  .nav-burger { display: block; }
  .nav-toggle-cb:checked ~ .app-shell .sidebar { transform: translateX(0); }
  .nav-toggle-cb:checked ~ .app-shell .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
}

/* ===== ETO-style booking / quote forms ===== */
.eto-form { max-width: 860px; }
.eto-section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.eto-section > .head {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px;
    background: var(--black);
    color: #fff;
    font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
}
.eto-section > .head .ico { color: var(--gold); font-size: 15px; }
.eto-section > .head .grow { flex: 1; }
.eto-section > .body { padding: 18px; }
.eto-section > .body .field:last-child { margin-bottom: 0; }
.eto-section.collapsible > .head { cursor: pointer; user-select: none; }
.eto-section.collapsible > .head .chev { transition: transform .15s; }
.eto-section.collapsible.closed > .head .chev { transform: rotate(-90deg); }
.eto-section.collapsible.closed > .body { display: none; }

/* Location rows with a leading pin/marker, like ETO */
.loc-row { display: flex; align-items: flex-start; gap: 10px; }
.loc-row .pin { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 6px; font-size: 13px; color: #fff; }
.loc-row .pin.pickup { background: var(--green); }
.loc-row .pin.drop { background: var(--red); }
.loc-row .pin.via { background: var(--muted); }
.loc-row .grow { flex: 1; min-width: 0; }
.loc-row textarea, .loc-row input { min-height: 46px; }

/* Number stepper (passengers / luggage) */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button { width: 42px; height: 44px; border: none; background: #f4f4f3; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--ink); line-height: 1; }
.stepper button:hover { background: var(--gold); }
.stepper input { width: 58px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; height: 44px; font-weight: 700; font-size: 16px; }
.stepper input:focus { box-shadow: none; }
.stepper-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.stepper-field .lbl { font-size: 14px; font-weight: 600; color: #333; }
.stepper-field .lbl .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* ----- Pagination (custom, replaces the Tailwind default) ----- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white);
}
.pager-btn:hover { text-decoration: none; border-color: var(--gold); }
.pager-btn.active { background: var(--gold); color: var(--black); border-color: var(--gold); }
.pager-btn.disabled { color: #bbb; background: #f6f6f5; cursor: default; }
.pager-gap { padding: 0 4px; color: var(--muted); }

/* ----- Mobile: keep wide tables inside their card, not the whole page ----- */
@media (max-width: 720px) {
    .table-scroll, .card > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { font-size: 13px; }
    th, td { padding: 9px 8px; }
    .topbar-user .who { display: none; }        /* declutter the header */
    .page-title { font-size: 20px; }
}

/* Sticky total bar */
.total-bar {
    position: sticky; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--black); color: #fff;
    border-radius: var(--radius);
    padding: 14px 20px; margin-top: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.total-bar .total-label { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #bdbdbd; }
.total-bar .total-amount { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.total-bar .total-amount .basis { display: block; font-size: 11px; font-weight: 400; letter-spacing: .3px; color: #9a9a9a; text-transform: none; }
.total-bar .actions { display: flex; gap: 10px; }
@media (max-width: 560px) {
    .total-bar { flex-direction: column; align-items: stretch; }
    .total-bar .actions { flex-direction: column; }
}

/* ── Booking page hero + calendar panel ────────────────────────────────── */
.booking-hero { background: #111; color: #fff; border-radius: 14px; padding: 20px 22px;
    margin-bottom: 16px; }
.booking-hero .gold { color: var(--gold); }
.bh-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bh-when { font-size: 14px; letter-spacing: .4px; color: #cfcfcf; text-transform: uppercase; }
.bh-when .gold { font-size: 22px; font-weight: 800; letter-spacing: 0; }
.bh-who { font-size: 24px; font-weight: 800; margin-top: 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bh-refs { text-align: right; font-size: 13px; color: #bbb; }
.bh-refs .gold { color: var(--gold); }
.bh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bh-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    color: #eee; border-radius: 999px; padding: 5px 13px; font-size: 13px; white-space: nowrap; }
.bh-chip.ok { background: rgba(31,122,68,.35); border-color: rgba(70,200,120,.5); }
.bh-chip.warn { background: rgba(251,186,42,.18); border-color: rgba(251,186,42,.45); color: var(--gold); }
.bh-meta { margin-top: 12px; font-size: 12px; color: #8b8b8b; }
@media (max-width: 560px) { .bh-refs { text-align: left; } }

.cal-panel { border-left: 4px solid var(--gold); }
.cal-panel-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-weight: 700; margin-bottom: 8px; }
.cal-panel-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cal-panel-body { white-space: pre-line; font-size: 13.5px; line-height: 1.6;
    background: rgba(251,186,42,.06); border: 1px solid rgba(251,186,42,.25);
    border-radius: 10px; padding: 14px 16px; }

/* ═══ Driver app — clean, modern, dark-accent (scoped to driver pages) ═══ */
body.driver-app { background: #0e0f12; }
body.driver-app .content-area { background: #0e0f12; }
body.driver-app .topbar { background: #0e0f12; border-bottom: 1px solid rgba(255,255,255,.06); }
body.driver-app .container { max-width: 640px; }
body.driver-app .page-title, body.driver-app .page-sub { color: #f3f3f3; }

body.driver-app .da-back { color: #9aa0a6; font-size: 13px; display: inline-block; margin-bottom: 12px; }

/* Hero */
.da-hero { background: linear-gradient(150deg, #17181c 0%, #0f1013 100%);
    border: 1px solid rgba(251,186,42,.25); border-radius: 20px; padding: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5); margin-bottom: 16px; }
.da-hero-time { color: #b9bdc4; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.da-hero-time span { color: var(--gold); font-size: 30px; font-weight: 800; letter-spacing: 0; }
.da-hero-name { color: #fff; font-size: 24px; font-weight: 800; margin: 2px 0 10px; }
.da-hero-route { color: #cfd3d8; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-hero-route .arr { color: var(--gold); font-weight: 800; }
.da-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.da-chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    color: #e6e6e6; border-radius: 999px; padding: 5px 13px; font-size: 13px; }

/* Cards + tables go dark on driver pages */
body.driver-app .card { background: #16171b; border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.35); color: #e9e9ea; }
body.driver-app .card th { color: #8b9096; border-bottom-color: rgba(255,255,255,.07); }
body.driver-app .card td { border-bottom-color: rgba(255,255,255,.06); color: #e9e9ea; }
body.driver-app .card a { color: var(--gold); }
body.driver-app .muted { color: #9aa0a6; }

/* Navigate + flight buttons */
body.driver-app .btn-dark { background: var(--gold); color: #111; }
body.driver-app .btn-ghost { background: rgba(255,255,255,.06); color: #eee; border-color: rgba(255,255,255,.14); }

/* Live tracking pill */
body.driver-app #track-box { background: linear-gradient(150deg, #12241a, #0f1013);
    border: 1px solid rgba(70,200,120,.35); border-left: 4px solid #46c878 !important;
    border-radius: 16px; color: #eafff1; }

/* Filters (Today / Tomorrow / Week) */
body.driver-app .filters a { background: #16171b; border-color: rgba(255,255,255,.08); color: #cfd3d8; }
body.driver-app .filters a.active { background: var(--gold); color: #111; border-color: var(--gold); }

/* Job tiles */
body.driver-app .job-tile { background: #16171b; border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.3);
    transition: transform .12s, border-color .12s; }
body.driver-app .job-tile:active { transform: scale(.99); }
body.driver-app .job-tile .big-time { color: var(--gold); font-size: 22px; font-weight: 800; }
body.driver-app .job-tile .meta { color: #cdd1d6; }
body.driver-app .job-tile[data-offer] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 26px rgba(251,186,42,.18); }

/* Sticky action bar — the status buttons pinned to the thumb zone */
.da-actionbar { position: sticky; bottom: 0; z-index: 20; margin: 18px -24px -24px;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(14,15,18,0) 0%, #0e0f12 24%); }
.da-actionbar .tap-actions { margin: 0; grid-auto-rows: 1fr; }
.da-actionbar .tap-actions button { border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }

/* ═══ Dashboard — modern command deck ══════════════════════════════════════ */
.dash-hero { position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 18px;
    background: linear-gradient(120deg, #0f1013 0%, #17181c 60%, #1c1a12 100%);
    border: 1px solid rgba(251,186,42,.22); box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.dash-hero-glow { position: absolute; top: -60px; right: -40px; width: 260px; height: 260px;
    background: radial-gradient(closest-side, rgba(251,186,42,.35), transparent); filter: blur(8px); }
.dash-hero-inner { position: relative; display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.dash-greet { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
.dash-date { color: #9aa0a6; font-size: 13px; margin-top: 2px; }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 10px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #f0f0f0;
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dash-btn:hover { background: var(--gold); color: #111; border-color: var(--gold); text-decoration: none; }

.deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 900px) { .deck { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .deck { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; color: inherit; position: relative; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .12s, box-shadow .12s, border-color .12s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.10); text-decoration: none; border-color: rgba(251,186,42,.5); }
.kpi-ico { font-size: 18px; opacity: .9; }
.kpi-n { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; color: #17181c; }
.kpi-l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.kpi.warn { border-color: rgba(184,134,11,.45); background: linear-gradient(180deg, #fffdf6, #fff); }
.kpi.warn .kpi-n { color: #b8860b; }
.kpi.ok { border-color: rgba(31,122,68,.4); background: linear-gradient(180deg, #f6fef9, #fff); }
.kpi.ok .kpi-n { color: #1f7a44; }

/* Quote result hero */
.quote-hero { position: relative; overflow: hidden; text-align: center; border-radius: 20px;
    padding: 34px 24px; margin-bottom: 20px; color: #fff;
    background: linear-gradient(135deg, #0f1013 0%, #17181c 55%, #1d1a10 100%);
    border: 1px solid rgba(251,186,42,.25); box-shadow: 0 16px 44px rgba(0,0,0,.3); }
.quote-hero-glow { position: absolute; inset: -40% 30% auto -10%; height: 300px;
    background: radial-gradient(closest-side, rgba(251,186,42,.28), transparent); }
.quote-hero .q-ref { color: #9aa0a6; font-size: 12px; }
.quote-hero .q-price { font-size: 56px; font-weight: 900; letter-spacing: -1px; color: var(--gold);
    text-shadow: 0 6px 30px rgba(251,186,42,.25); line-height: 1.1; margin: 6px 0 2px; }
.quote-hero .q-sub { color: #cfd3d8; font-size: 14px; }

/* ═══ Compact page hero (forms, single screens) ════════════════════════════ */
.form-hero { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 20px;
    padding: 20px 24px; color: #fff;
    background: linear-gradient(120deg, #0f1013 0%, #17181c 62%, #1c1a12 100%);
    border: 1px solid rgba(251,186,42,.22); box-shadow: 0 12px 38px rgba(0,0,0,.26); }
.form-hero-glow { position: absolute; top: -70px; right: -30px; width: 240px; height: 240px;
    background: radial-gradient(closest-side, rgba(251,186,42,.30), transparent); filter: blur(6px); }
.form-hero .fh-eyebrow { position: relative; color: var(--gold); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px; }
.form-hero .fh-title { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0 2px; }
.form-hero .fh-sub { position: relative; color: #9aa0a6; font-size: 13px; }
.form-hero .fh-actions { position: relative; margin-top: 4px; }

/* ═══ Live fleet map ═══════════════════════════════════════════════════════ */
.fleet-hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.fleet-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(251,186,42,.12); border: 1px solid rgba(251,186,42,.32); color: #f5d98a;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.fleet-live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 0 0 rgba(251,186,42,.7); animation: fleetPulse 1.8s infinite; }
@keyframes fleetPulse { 0% { box-shadow: 0 0 0 0 rgba(251,186,42,.6); } 70% { box-shadow: 0 0 0 10px rgba(251,186,42,0); } 100% { box-shadow: 0 0 0 0 rgba(251,186,42,0); } }
#fleet-map { height: 460px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
    margin-bottom: 16px; background: #e9eaec; box-shadow: 0 8px 26px rgba(0,0,0,.08); }
.fleet-row { display: flex; gap: 12px; align-items: center; padding: 12px 4px;
    border-bottom: 1px solid rgba(128,128,128,.12); }
.fleet-row:last-child { border-bottom: 0; }
.fleet-row.stale { background: rgba(179,32,32,.045); }
.fleet-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(150deg, #17181c, #26241a); color: var(--gold); font-weight: 800; font-size: 13px;
    letter-spacing: .5px; border: 1px solid rgba(251,186,42,.28); }
.fleet-row.stale .fleet-avatar { background: #2a2426; color: #e6a0a0; border-color: rgba(179,32,32,.4); }
.fleet-main { flex: 1; min-width: 0; }
.fleet-main .who { font-weight: 700; font-size: 14px; }
.fleet-main .route { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-main .ping { font-size: 12px; margin-top: 2px; }
.fleet-main .ping.ok { color: var(--muted); }
.fleet-main .ping.stale { color: #b32020; font-weight: 600; }

/* ═══ Control-tower alerts feed + nav badge ════════════════════════════════ */
.alerts-panel { margin-bottom: 16px; }
.alert-row { display: flex; gap: 10px; align-items: baseline; padding: 7px 6px;
    border-bottom: 1px solid rgba(128,128,128,.10); border-radius: 8px; font-size: 13.5px; }
.alert-row:last-child { border-bottom: 0; }
.alert-row .a-time { color: var(--muted); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.alert-row .a-ico { flex: none; width: 18px; text-align: center; }
.alert-row .a-title { flex: 1; min-width: 0; }
.alert-row .a-title a { color: inherit; }
.alert-row.sev-info .a-ico { color: #1f7a44; }
.alert-row.sev-warning .a-ico { color: #b8860b; }
.alert-row.critical-live { background: rgba(179,32,32,.06);
    box-shadow: inset 3px 0 0 #b32020; animation: alertGlow 2s ease-in-out infinite; }
@keyframes alertGlow {
    0%, 100% { background: rgba(179,32,32,.05); }
    50% { background: rgba(179,32,32,.12); }
}
/* Neutral "Done" dismiss on every row; critical rows tint it red. */
.alert-row .ack-btn { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
    font: inherit; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; cursor: pointer; }
.alert-row .ack-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.alert-row.critical-live .ack-btn { border-color: rgba(179,32,32,.5); color: #b32020; }
.alert-row.critical-live .ack-btn:hover { background: #b32020; color: #fff; border-color: #b32020; }
/* Keep the live-alerts log from dominating the page — scroll past a few rows. */
#alerts-list { max-height: 300px; overflow-y: auto; }
.alert-row.slide-in { animation: alertIn .35s ease-out; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .alert-row.slide-in { animation: none; }
    .alert-row.critical-live { animation: none; background: rgba(179,32,32,.09); }
}
.alert-bell { position: relative; font-size: 17px; text-decoration: none; margin-right: 4px; flex: none; }
.alert-bell:hover { text-decoration: none; }
.alert-badge { position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: #b32020; color: #fff; font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* ═══ Ops room: timeline rail + live widgets ══════════════════════════════ */
.ops-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 980px) {
    /* Stacked (phone): show "Next 4 hours" ABOVE the live-alerts log. */
    .ops-grid { grid-template-columns: 1fr; }
    .ops-grid .timeline-rail { order: -1; }
    .ops-grid .timeline-rail { position: static; top: auto; margin-bottom: 16px; }
}

.timeline-rail { position: sticky; top: 76px; }
.timeline-rail h2 { color: var(--ink); font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tl-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px; margin-bottom: 6px;
    border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    border-left: 4px solid var(--tl-c, var(--line)); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
a.tl-item:hover { text-decoration: none; border-color: rgba(251,186,42,.6); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tl-item.s-pending { --tl-c: #d64545; }
.tl-item.s-allocated, .tl-item.s-accepted { --tl-c: #FBBA2A; }
.tl-item.s-en_route { --tl-c: #4f8fe0; }
.tl-item.s-arrived { --tl-c: #9a7ae0; }
.tl-item.s-collected { --tl-c: #38b271; }
.tl-time { flex: none; text-align: center; min-width: 46px; }
.tl-time .t { font-weight: 800; font-size: 15px; }
.tl-count { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .3px; }
.tl-count.soon { color: #b8860b; font-weight: 700; }
.tl-count.now { color: #b32020; font-weight: 700; }
.tl-main { flex: 1; min-width: 0; font-size: 13px; }
.tl-main .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-main .sub { color: var(--muted); font-size: 12px; }

/* Live ping-age chip (dispatch cards): green → amber → red as GPS stales. */
.ping-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; background: #eaf7ef; color: #1f7a44; }
.ping-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ping-chip.amber { background: #fdf3d8; color: #9a7108; }
.ping-chip.red { background: #fbe0e0; color: #b32020; }

/* Dispatch cards: colour sweep instead of a hard swap when the board refreshes. */
.job-card { transition: border-color .5s ease, box-shadow .5s ease, background .5s ease; }
.job-card.flash { animation: cardSweep 1.1s ease-out; }
@keyframes cardSweep {
    0% { box-shadow: 0 0 0 2px rgba(251,186,42,.65), var(--glow); }
    100% { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .job-card.flash { animation: none; }
    .job-card { transition: none; }
}

/* ═══ Dark mode (toggle in the topbar; light is the default) ═══════════════
   One switch: <html data-theme="dark">. Every text colour is explicitly
   lightened so NOTHING is ever dark-on-dark. The driver app keeps its own
   built-in dark styling either way. */
html[data-theme="dark"] body { background: #0b0f1a; color: #e8ecf4; }

html[data-theme="dark"] .card,
html[data-theme="dark"] .eto-section,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .job-tile,
html[data-theme="dark"] .filters a,
html[data-theme="dark"] .tl-item {
    background: #151b2c; border-color: rgba(255,255,255,.10); color: #e8ecf4;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
html[data-theme="dark"] .card h2, html[data-theme="dark"] .stat .n,
html[data-theme="dark"] .kpi-n, html[data-theme="dark"] .page-title,
html[data-theme="dark"] .timeline-rail h2, html[data-theme="dark"] .list-head h1 { color: #f2f5fa; }
html[data-theme="dark"] .muted, html[data-theme="dark"] .hint,
html[data-theme="dark"] .page-sub, html[data-theme="dark"] .stat .l,
html[data-theme="dark"] .kpi-l, html[data-theme="dark"] .tl-main .sub,
html[data-theme="dark"] .site-footer, html[data-theme="dark"] .tl-count { color: #9aa3b2; }
html[data-theme="dark"] label { color: #c9cfda; }

/* Tinted worklist panels (inline rgba backgrounds) sit over dark now — the
   light text above makes them readable; strengthen their borders a touch. */
html[data-theme="dark"] .card[style*="background:rgba"] { color: #e8ecf4; }

html[data-theme="dark"] table, html[data-theme="dark"] td { color: #dbe1ea; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] th { color: #9aa3b2; border-bottom-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .table-modern thead th { background: #111726; }
html[data-theme="dark"] .table-modern tbody td { border-bottom-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .table-modern tbody tr:hover { background: rgba(251,186,42,.08); }

html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background: #0f1420; border-color: rgba(255,255,255,.14); color: #e8ecf4;
}
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus {
    background: #121828; border-color: var(--gold);
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #6d7686; }

html[data-theme="dark"] .btn-ghost { background: transparent; border-color: rgba(255,255,255,.2); color: #dbe1ea; }
html[data-theme="dark"] .btn-light { background: #232b3f; color: #dbe1ea; }
html[data-theme="dark"] .btn-dark { background: var(--gold); color: #111; }

html[data-theme="dark"] .topbar { background: #0e1320; border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .topbar-title { color: #e8ecf4; }
html[data-theme="dark"] .topbar-user .who { color: #9aa3b2; }
html[data-theme="dark"] .nav-burger { color: #e8ecf4; }

html[data-theme="dark"] .board-col { background: #101626; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .board-col h3 { background: #151b2c; color: #dbe1ea; }
/* Dispatch job cards stay light in dark mode on purpose — maximum contrast
   for the info the operator scans fastest. */

html[data-theme="dark"] .eto-section > .head { background: #111726; color: #e8ecf4; border-bottom: 1px solid rgba(255,255,255,.08); }
html[data-theme="dark"] fieldset { border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .alert-success { background: rgba(31,157,85,.16); color: #7fe0a7; border-color: rgba(31,157,85,.4); }
html[data-theme="dark"] .alert-error { background: rgba(214,69,69,.14); color: #ff9d9d; border-color: rgba(214,69,69,.4); }
html[data-theme="dark"] .kpi.warn { background: linear-gradient(180deg, #241d0e, #151b2c); }
html[data-theme="dark"] .kpi.warn .kpi-n { color: #ffd479; }
html[data-theme="dark"] .kpi.ok { background: linear-gradient(180deg, #0e2418, #151b2c); }
html[data-theme="dark"] .kpi.ok .kpi-n { color: #6fdd9c; }
html[data-theme="dark"] a.kpi:hover { box-shadow: 0 12px 28px rgba(0,0,0,.5); }
html[data-theme="dark"] .fleet-row.stale { background: rgba(214,69,69,.10); }
html[data-theme="dark"] .alert-row.critical-live { background: rgba(214,69,69,.12); }
html[data-theme="dark"] .ack-btn { background: transparent; }

/* Theme toggle button (topbar) */
.theme-toggle { border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit;
    font: inherit; font-size: 15px; line-height: 1; padding: 7px 10px; border-radius: 999px;
    cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--gold); }
