@font-face { font-family: Manrope; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: JBM; src: url('/fonts/jbmono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
    /* Sampled from the reference (behance 246669901): almost monochrome + one loud orange. */
    --canvas: #F5F5F5;
    --panel: #FFFFFF;
    --card: #FFFFFF;
    --card2: #F5F5F5;
    --ink: #111111;
    --ink2: #6B6B6B;
    --ink3: #9A9A9A;
    --line: rgba(17, 17, 17, .08);
    --line2: rgba(17, 17, 17, .14);
    --accent: #FB5C22;
    --accent-press: #EA4F16;
    --accent-soft: rgba(251, 92, 34, .12);
    --ok: #1FA65A; --ok-soft: rgba(31, 166, 90, .12);
    --warn: #B4740B; --warn-soft: rgba(180, 116, 11, .12);
    --bad: #E8443A; --bad-soft: rgba(232, 68, 58, .12);
    --grid: rgba(17, 17, 17, .12);
    --sh: 0 1px 2px rgba(17, 17, 17, .04), 0 18px 36px -30px rgba(17, 17, 17, .22);
    --sh-sm: 0 1px 2px rgba(17, 17, 17, .05);
    --darkpill: #FB5C22;
    --radius: 20px;
}
html[data-theme="dark"] {
    --canvas: #111111;
    --panel: #131313;
    --card: #181818;
    --card2: #1E1E1E;
    --ink: #FFFFFF;
    --ink2: #A1A1A1;
    --ink3: #6F6F6F;
    --line: rgba(255, 255, 255, .08);
    --line2: rgba(255, 255, 255, .16);
    --accent: #FB5C22;
    --accent-press: #EA4F16;
    --accent-soft: rgba(251, 92, 34, .16);
    --ok: #34C77B; --ok-soft: rgba(52, 199, 123, .14);
    --warn: #E0A32E; --warn-soft: rgba(224, 163, 46, .14);
    --bad: #F0705F; --bad-soft: rgba(240, 112, 95, .14);
    --grid: rgba(255, 255, 255, .14);
    --sh: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 46px -30px rgba(0, 0, 0, .9);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --darkpill: #FB5C22;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--canvas);
    color: var(--ink);
    font-family: Manrope, system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    letter-spacing: -.1px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: JBM, ui-monospace, monospace; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
html[dir="rtl"] .shell { grid-template-columns: 244px minmax(0, 1fr); }
.side {
    background: var(--panel);
    border-inline-end: 1px solid var(--line);
    padding: 18px 14px 22px;
    display: flex; flex-direction: column; gap: 22px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 0; }
.brand__mark {
    width: 34px; height: 34px; border-radius: 12px; flex: none;
    background: linear-gradient(150deg, #FF8B4E, var(--accent));
    color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 17px; letter-spacing: -1px;
    box-shadow: 0 8px 16px -8px rgba(244, 101, 31, .85);
}
.brand__name { font-weight: 800; font-size: 14.5px; letter-spacing: -.4px; line-height: 1; }
.brand__sub { font-family: JBM, monospace; font-size: 8px; letter-spacing: 1.7px; color: var(--ink3); margin-top: 5px; }

.nav { display: flex; flex-direction: column; gap: 18px; }
.nav__group { display: flex; flex-direction: column; gap: 3px; }
.nav__label {
    font-family: JBM, monospace; font-size: 8.5px; letter-spacing: 1.6px;
    color: var(--ink3); padding: 0 10px 6px; text-transform: uppercase;
}
.nav__link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 11px;
    font-size: 12.5px; font-weight: 700; color: var(--ink2);
}
.nav__link:hover { background: var(--card); color: var(--ink); }
.nav__link.active { background: var(--card); color: var(--ink); box-shadow: var(--sh-sm); }
.nav__link.active .nav__dot { background: var(--accent); }
.nav__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); flex: none; }
.nav__count {
    margin-inline-start: auto; font-family: JBM, monospace; font-size: 9.5px;
    background: var(--card2); border-radius: 5px; padding: 2px 5px; color: var(--ink2);
}
.nav__soon { margin-inline-start: auto; font-family: JBM, monospace; font-size: 8px; color: var(--ink3); letter-spacing: .8px; }

.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side__who { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; background: var(--card); box-shadow: var(--sh-sm); }
.side__avatar {
    width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: linear-gradient(135deg, #333940, #14171B); color: #fff; font-size: 10px; font-weight: 800;
}
.side__name { font-size: 11.5px; font-weight: 800; line-height: 1.2; }
.side__role { font-family: JBM, monospace; font-size: 8.5px; color: var(--ink3); margin-top: 3px; letter-spacing: .5px; }

/* ---------- main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
.top {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 22px; border-bottom: 1px solid var(--line);
    background: var(--panel); position: sticky; top: 0; z-index: 20;
}
.search {
    display: flex; align-items: center; gap: 9px; background: var(--card);
    border-radius: 999px; padding: 9px 12px 9px 15px; box-shadow: var(--sh-sm);
    width: 300px; max-width: 40vw; color: var(--ink3); font-size: 12.5px; font-weight: 600;
    border: 1px solid transparent;
}
.search input { border: 0; outline: 0; background: none; width: 100%; font-weight: 600; color: var(--ink); }
.search .kbd { font-family: JBM, monospace; font-size: 9.5px; border: 1px solid var(--line2); border-radius: 5px; padding: 2px 5px; color: var(--ink3); }
.top__right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card);
    box-shadow: var(--sh-sm); display: grid; place-items: center; cursor: pointer; color: var(--ink2);
}
.iconbtn:hover { color: var(--ink); }
.pill {
    border: 0; border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 800;
    background: var(--card); box-shadow: var(--sh-sm); cursor: pointer; color: var(--ink);
}
.pill:hover { box-shadow: var(--sh); }
.pill--dark { background: var(--darkpill); color: #fff; }
html[data-theme="dark"] .pill--dark { color: #14171B; }

.page { padding: 22px 22px 34px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow {
    font-family: JBM, monospace; font-size: 9.5px; letter-spacing: 2px; color: var(--ink3);
    display: flex; align-items: center; gap: 9px; margin-bottom: 11px; font-weight: 500; text-transform: uppercase;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3.5px var(--ok-soft); }
.live-dot.off { background: var(--bad); box-shadow: 0 0 0 3.5px var(--bad-soft); }
.live-dot.warn { background: var(--warn); box-shadow: 0 0 0 3.5px var(--warn-soft); }
h1.page__title { margin: 0; font-size: 40px; line-height: .98; letter-spacing: -1.9px; font-weight: 800; }
.page__tools { display: flex; align-items: center; gap: 8px; }
.page__stamp { font-family: JBM, monospace; font-size: 10px; color: var(--ink3); letter-spacing: .4px; }

/* ---------- cards ---------- */
.card {
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--sh);
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.kpi { padding: 16px 18px 14px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.kpi__label {
    font-size: 11px; font-weight: 800; color: var(--ink2); display: flex; align-items: center; gap: 7px;
    text-transform: uppercase; letter-spacing: .4px;
}
.kpi__sq { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.kpi__val { display: flex; align-items: baseline; gap: 8px; margin-top: 13px; }
.kpi__val b { font-size: 40px; line-height: .8; letter-spacing: -2px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi__val u { text-decoration: none; font-size: 11.5px; color: var(--ink3); font-weight: 700; }
.kpi__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 10.5px; color: var(--ink3); font-weight: 700; }

.chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800;
    padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--grey { background: var(--card2); color: var(--ink2); }

.gauge { display: flex; gap: 3px; margin-top: auto; padding-top: 13px; padding-bottom: 15px; }
.gauge i { flex: 1; height: 9px; border-radius: 3px; background: var(--card2); }
.gauge i.f { background: var(--accent); }
.gauge i.f.ok { background: var(--ok); }
.gauge i.f.warn { background: var(--warn); }

/* ---------- board ---------- */
.board { margin-top: 13px; padding: 17px 17px 18px; }
.board__head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 0 2px; flex-wrap: wrap; }
.board__head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
.seg { display: flex; background: var(--card2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button {
    border: 0; background: none; font-size: 11px; font-weight: 800; padding: 6px 12px;
    border-radius: 999px; color: var(--ink3); cursor: pointer;
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-sm); }
.board__right { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.sel {
    display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--ink2);
    border: 1px solid var(--line2); border-radius: 999px; padding: 7px 11px; background: none; cursor: pointer;
}

.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lane { display: flex; flex-direction: column; gap: 8px; }
.lane__head { display: flex; align-items: center; gap: 6px; padding: 0 3px 4px; }
.lane__dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.lane__name { font-size: 11.5px; font-weight: 800; }
.lane__count { font-family: JBM, monospace; font-size: 9px; background: var(--card2); color: var(--ink2); border-radius: 5px; padding: 2px 5px; }
.lane__lim { font-family: JBM, monospace; font-size: 8.5px; color: var(--ink3); margin-inline-start: auto; }

.order {
    background: var(--card2); border-radius: 13px; padding: 10px 11px 9px;
    border: 1px solid transparent; cursor: pointer; display: block;
}
.order:hover { border-color: var(--line2); }
.order.hot { background: var(--card); border-color: var(--line2); box-shadow: var(--sh-sm); }
.order.late { background: var(--bad-soft); border-color: rgba(193, 49, 37, .22); }
.order.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.order__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.order__id { font-family: JBM, monospace; font-size: 9px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order__age {
    font-family: JBM, monospace; font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums;
    padding: 2px 5px; border-radius: 5px; background: var(--card); color: var(--ink2); flex: none;
}
.order.late .order__age { background: var(--bad); color: #fff; }
.order__name { font-size: 12px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; letter-spacing: -.2px; }
.order__meta { font-size: 10.5px; color: var(--ink3); font-weight: 700; margin-bottom: 8px; }
.order__who {
    display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--ink2);
    background: var(--card); border-radius: 999px; padding: 3px 8px 3px 3px;
}
.order.late .order__who { background: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .order.late .order__who { background: rgba(0, 0, 0, .25); }
.init {
    width: 17px; height: 17px; border-radius: 50%; background: #22262B; color: #fff; display: grid;
    place-items: center; font-size: 7.5px; font-weight: 800; flex: none;
}
html[data-theme="dark"] .init { background: rgba(255, 255, 255, .16); }
.steps { display: flex; gap: 2.5px; margin-top: 8px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--grid); }
.steps i.f { background: var(--accent); }
.more {
    font-size: 10px; color: var(--ink3); font-weight: 800; border: 1px dashed var(--line2);
    border-radius: 13px; padding: 10px; text-align: center; background: none; cursor: pointer; width: 100%;
}
.empty { font-size: 11px; color: var(--ink3); font-weight: 700; padding: 10px 2px; }

/* restaurant grouping */
.rgroup { background: var(--card2); border-radius: 14px; padding: 10px; border: 1px solid transparent; }
.rgroup__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rgroup__name { font-size: 12px; font-weight: 800; letter-spacing: -.2px; }
.rgroup__n { font-family: JBM, monospace; font-size: 9px; background: var(--card); border-radius: 5px; padding: 2px 5px; color: var(--ink2); }
.rgroup__sum { margin-inline-start: auto; font-family: JBM, monospace; font-size: 9.5px; color: var(--ink3); }
.rgroup__row {
    display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line);
    font-size: 10.5px; font-weight: 700; color: var(--ink2);
}
.rgroup__row b { font-family: JBM, monospace; font-size: 9.5px; color: var(--ink); font-weight: 600; }
.rgroup__row .age { margin-inline-start: auto; }
.rgroup__items { font-family: JBM, monospace; font-size: 9px; color: var(--ink3); }

/* table (list views) */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th {
    text-align: start; font-family: JBM, monospace; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--ink3); font-weight: 500; padding: 0 10px 9px; border-bottom: 1px solid var(--line);
}
.table td { padding: 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.table tr:hover td { background: var(--card2); }
.table td b { font-weight: 800; }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--canvas); }
.auth__hero {
    background: linear-gradient(150deg, #FF7A38, var(--accent) 55%, #C6491A);
    color: #fff; padding: 46px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.auth__brand span { width: 34px; height: 34px; border-radius: 12px; background: #fff; color: var(--accent); display: grid; place-items: center; font-weight: 900; }
.auth__hero h2 { font-size: 42px; line-height: 1.02; letter-spacing: -1.8px; margin: 0 0 14px; max-width: 420px; }
.auth__hero p { margin: 0; font-size: 15px; opacity: .92; max-width: 400px; }
.auth__side { display: grid; place-items: center; padding: 30px; }
.auth__card { width: 100%; max-width: 380px; background: var(--card); border-radius: 26px; padding: 30px; box-shadow: var(--sh); border: 1px solid var(--line); }
.auth__card h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.8px; }
.auth__card p { color: var(--ink2); font-size: 12.5px; margin: 0 0 18px; line-height: 1.5; }
.field { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); margin-bottom: 10px; outline: 0; }
.field:focus { border-color: var(--accent); background: var(--card); }
.auth__btn {
    width: 100%; padding: 12px; border-radius: 12px; border: 0; background: var(--darkpill);
    color: #fff; font-weight: 800; cursor: pointer;
}
html[data-theme="dark"] .auth__btn { color: #14171B; }
.auth__link { background: none; border: 0; color: var(--ink2); font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0; margin-top: 12px; }
.auth__err { color: var(--bad); font-size: 11.5px; font-weight: 700; min-height: 16px; margin-top: 10px; }

@media (max-width: 1100px) {
    .lane { min-width: 0; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth { grid-template-columns: 1fr; }
    .auth__hero { display: none; }
}

/* ---------- list screens (orders, restaurants, drivers) ---------- */
.search--inline { width: 240px; }
.search--inline input { font-size: 12px; }
.views { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip-btn {
    border: 1px solid var(--line2); background: var(--card); border-radius: 999px;
    padding: 8px 13px; font-size: 11.5px; font-weight: 800; color: var(--ink2); cursor: pointer;
}
.chip-btn b { font-family: JBM, monospace; font-size: 10px; background: var(--card2); border-radius: 5px; padding: 2px 5px; margin-inline-start: 6px; }
.chip-btn.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip-btn.on b { background: rgba(255,255,255,.18); color: inherit; }
html[data-theme="dark"] .chip-btn.on { background: var(--accent); color: #14171B; border-color: var(--accent); }

.tablecard { padding: 16px 8px 8px; overflow-x: auto; }
.tablecard .table th:first-child, .tablecard .table td:first-child { padding-inline-start: 14px; }
.table tbody tr { cursor: pointer; }
.table tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
html[dir="rtl"] .table tr.is-late td:first-child { box-shadow: inset -3px 0 0 var(--bad); }
.lateflag { color: var(--bad); font-weight: 800; }
.muted { color: var(--ink3); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,12,15,.42); }
.drawer__panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw);
    background: var(--panel); border-inline-start: 1px solid var(--line);
    padding: 20px 20px 26px; overflow-y: auto; box-shadow: -24px 0 60px -40px rgba(0,0,0,.5);
}
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer__title { margin: 0; font-size: 22px; letter-spacing: -1px; font-family: JBM, monospace; }
.drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.drawer__row span { font-size: 11px; font-weight: 800; color: var(--ink3); text-transform: uppercase; letter-spacing: .5px; }
.drawer__row b { font-size: 12.5px; font-weight: 800; }
.timeline { margin: 18px 0; }
.tl { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.tl__dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.tl__dot.on { border-color: var(--accent); background: var(--accent); }
.tl__name { font-size: 11.5px; font-weight: 800; color: var(--ink2); }
.tl__time { margin-inline-start: auto; font-size: 11px; color: var(--ink3); }
.drawer__note { font-size: 11px; color: var(--ink3); line-height: 1.5; margin-top: 18px; }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.cards--drivers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rest { padding: 16px 17px 14px; }
.rest__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rest__name { font-size: 14px; font-weight: 800; letter-spacing: -.3px; }
.rest__stats { display: flex; gap: 18px; }
.rest__stat b { display: block; font-size: 22px; letter-spacing: -1px; font-weight: 800; line-height: 1; }
.rest__stat span { font-size: 10px; font-weight: 700; color: var(--ink3); display: block; margin-top: 5px; text-transform: uppercase; letter-spacing: .4px; }
.rest__bar { display: flex; gap: 3px; margin-top: 16px; }
.rest__bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--grid); }
.rest__bar i.f { background: var(--accent); }

.drv { padding: 15px 16px 13px; }
.drv__top { display: flex; align-items: center; gap: 10px; }
.drv__av {
    width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
    background: var(--card2); color: var(--ink2); font-size: 11px; font-weight: 800;
}
.drv__name { font-size: 12.5px; font-weight: 800; letter-spacing: -.2px; }
.drv__plate { font-size: 9.5px; color: var(--ink3); margin-top: 3px; }
.drv__top .chip { margin-inline-start: auto; }
.drv__foot { display: flex; gap: 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.drv__k b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.drv__k span { font-size: 9.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .4px; display: block; margin-top: 4px; }

@media (max-width: 1200px) {
    .cards, .cards--drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* LumenJS re-renders an expression only when it names state directly:
   a container switched with a class (never :if) keeps its children live. */
.is-hidden { display: none !important; }

/* ---------- narrow screens (2026-12-01) ----------
   Two measured faults at 390px: the Arabic board grew the document to 525px because
   `html[dir="rtl"] .shell` (specificity 0,2,1) keeps the 244px sidebar at every width, and the horizontal
   nav strip then pushed the page sideways. The RTL selector is repeated here so this wins on equal
   specificity, and under 700px the lanes stack and the title steps down. Only app.css is linked by
   index.html, so page-wide rules belong here (rx-admin.css is not served). */
@media (max-width: 980px) {
    .shell,
    html[dir="rtl"] .shell { grid-template-columns: minmax(0, 1fr); }
    .side { min-width: 0; max-width: 100vw; }
}
@media (max-width: 700px) {
    h1.page__title { font-size: 30px; letter-spacing: -1px; }
    .lanes { grid-template-columns: minmax(0, 1fr); }
    .board, .lanes, .lane { min-width: 0; }
    .page__head { flex-wrap: wrap; gap: 10px; }
    .kpis { gap: 10px; }
}
/* ---------- phone drawer (2026-12-01) ----------
   References: M3 navigation-drawer specs (modal drawer + scrim, dismissed by tapping the scrim) and Mobbin's drawer
   patterns. Measured before the change at 390px: the sidebar was a static wrapped strip, so a phone opened on five
   screens of links and the board began below the fold. Now the aside is an off-canvas panel behind a 44px menu
   button in a sticky top bar: the board is the first thing on screen and navigation opens on demand.
   Only app.css is linked by index.html, so these rules belong here. */
.navtoggle,
.side__close,
.side__scrim { display: none; }

@media (max-width: 980px) {
    .top { position: sticky; top: 0; z-index: 30; }
    .navtoggle {
        display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
        border: 1px solid var(--line2); border-radius: 14px; background: var(--card); color: var(--ink);
        cursor: pointer; margin-inline-end: 10px;
    }
    .navtoggle:focus-visible,
    .side__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    /* the off-canvas panel, from the inline start edge (the right in Arabic) */
    .side {
        position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50;
        width: min(300px, 86vw); height: 100vh; height: 100dvh; max-width: none;
        flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 22px;
        padding: 18px 14px calc(22px + env(safe-area-inset-bottom));
        overflow-y: auto; overflow-x: hidden;
        transform: translateX(-100%); visibility: hidden;
        /* visibility flips at once when opening (a discrete-property transition would keep the panel
           unfocusable for ~120 ms) and is delayed until the slide ends when closing */
        transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
        box-shadow: 24px 0 60px -40px rgba(10, 12, 15, .6);
        border-inline-end: 1px solid var(--line);
    }
    html[dir="rtl"] .side { transform: translateX(100%); box-shadow: -24px 0 60px -40px rgba(10, 12, 15, .6); }
    html[data-nav-open] .side {
        transform: translateX(0); visibility: visible;
        transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s;
    }

    .side .nav { flex-direction: column; flex-wrap: nowrap; gap: 18px; }
    .side .nav__group { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
    .side__foot { margin-block-start: auto; margin-inline: 0; margin-block-end: 0; }
    .side__close {
        display: inline-grid; place-items: center; position: absolute; top: 14px; inset-inline-end: 14px;
        width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2);
        background: var(--card); color: var(--ink2); cursor: pointer;
    }

    .side__scrim {
        display: block; position: fixed; inset: 0; z-index: 45;
        background: rgba(10, 12, 15, .46); opacity: 0; pointer-events: none;
        transition: opacity .18s ease;
    }
    html[data-nav-open] .side__scrim { opacity: 1; pointer-events: auto; }
    html[data-nav-open] { overflow: hidden; }
}
@media (max-width: 700px) {
    /* The bar keeps the menu button, the language switch and the two actions. The search field is a
       placeholder with no behaviour yet, and at 390px it took a third of the bar and showed "Search ord". */
    .search { display: none; }
    .top__right { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .side, .side__scrim { transition: none; }
}
/* =====================================================================================
   2026-12-02 · REFERENCE DESIGN LANGUAGE  (behance.com/gallery/246669901)
   One accent, hairline division instead of shadows, pill actions, 20px cards.
   Everything below either retunes an existing class to that language or adds a
   primitive the reference uses and the console was missing. Appended last on
   purpose: only index.html links app.css, and a later rule wins at equal
   specificity, so this file stays the single place a look can be changed.
   ===================================================================================== */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- buttons: primary is orange and a pill, secondary is a hairline pill ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px; padding: 11px 18px;
    font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.1px;
    cursor: pointer; white-space: nowrap; background: var(--card); color: var(--ink);
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 10px 22px -16px var(--accent);
}
.btn--primary:hover { background: var(--accent-press); }
.btn--outline { background: transparent; border-color: var(--line2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink3); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--sm { padding: 8px 13px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.pill { border: 1px solid var(--line2); border-radius: 999px; padding: 9px 15px; font-size: 12px; font-weight: 800; background: var(--card); box-shadow: none; color: var(--ink); }
.pill:hover { border-color: var(--ink3); box-shadow: none; }
.pill--dark,
html[data-theme="dark"] .pill--dark {
    background: var(--accent); color: #fff; border-color: transparent;
    box-shadow: 0 10px 22px -16px var(--accent);
}
.pill--dark:hover { background: var(--accent-press); }
html[data-theme="dark"] .pill--dark { color: #fff; }

/* ---- surfaces: hairline first, shadow only as a whisper ---- */
.card { box-shadow: var(--sh-sm); }
.kpis { gap: 12px; }
.kpi { padding: 18px 18px 16px; }
.kpi__val b { font-size: 42px; letter-spacing: -2.2px; }
.kpi__label { font-family: JBM, monospace; font-size: 9.5px; letter-spacing: 1.4px; color: var(--ink3); }
.board__head h2 { font-size: 17px; letter-spacing: -.6px; }

/* ---- chips: active is a solid orange pill (the reference's category row) ---- */
.chip-btn.on,
html[data-theme="dark"] .chip-btn.on {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.chip-btn.on b,
html[data-theme="dark"] .chip-btn.on b { background: rgba(255, 255, 255, .22); color: #fff; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }

/* ---- segmented control ---- */
.seg { background: transparent; border: 1px solid var(--line2); }
.seg button.on { box-shadow: none; color: var(--accent); background: var(--card); }

/* ---- tabs with an orange underline: the restaurant screen's Menu/About/Gallery/Review ---- */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs .tab {
    border: 0; background: none; cursor: pointer; padding: 10px 1px 11px;
    font-family: inherit; font-size: 12.5px; font-weight: 800; color: var(--ink3);
    box-shadow: inset 0 -2px 0 transparent; white-space: nowrap;
}
.tabs .tab.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs .tab b { font-family: JBM, monospace; font-size: 10px; background: var(--card2); border-radius: 5px; padding: 2px 5px; margin-inline-start: 6px; color: var(--ink2); }

/* ---- radio cards: for ≤4 exclusive choices, instead of a dropdown ---- */
.rcards { display: flex; flex-direction: column; gap: 8px; }
.rcard {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
    background: var(--card2); border: 1px solid transparent; border-radius: 16px;
    padding: 13px 15px; cursor: pointer; font-family: inherit; color: var(--ink);
}
.rcard__ic { width: 34px; height: 34px; border-radius: 12px; background: var(--card); display: grid; place-items: center; flex: none; color: var(--ink2); }
.rcard__t { font-size: 12.5px; font-weight: 800; }
.rcard__s { font-size: 11px; color: var(--ink3); font-weight: 600; margin-top: 2px; }
.rcard__end { margin-inline-start: auto; flex: none; }
.rcard__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); box-shadow: inset 0 0 0 3px transparent; }
.rcard.on { background: var(--accent-soft); border-color: rgba(251, 92, 34, .35); }
.rcard.on .rcard__radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }

/* ---- stepper (− n +) ---- */
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2);
    background: var(--card); color: var(--ink); font-weight: 800; cursor: pointer; display: grid; place-items: center;
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }

/* ---- stat row / score ---- */
.statrow { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 30px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .5px; }
.stat--accent b { color: var(--accent); }

/* ---- rating distribution bars ---- */
.bars { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.bar { display: flex; align-items: center; gap: 9px; font-size: 10.5px; color: var(--ink3); font-weight: 700; }
.bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.bar i u { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---- stage timeline with real stamps ---- */
.stamps { display: flex; flex-direction: column; }
.stamp { display: flex; align-items: center; gap: 11px; padding: 9px 0; position: relative; }
.stamp:not(:last-child)::before {
    content: ''; position: absolute; inset-inline-start: 4.5px; top: 24px; bottom: -2px; width: 1.5px; background: var(--line2);
}
.stamp__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid var(--line2); flex: none; z-index: 1; }
.stamp.on .stamp__dot { border-color: var(--accent); background: var(--accent); }
.stamp__n { font-size: 12px; font-weight: 800; color: var(--ink3); }
.stamp.on .stamp__n { color: var(--ink); }
.stamp__t { margin-inline-start: auto; font-family: JBM, monospace; font-size: 10.5px; color: var(--ink3); }

/* ---- bottom sheet (filters, confirmations) ---- */
.sheetwrap { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheetwrap__scrim { position: absolute; inset: 0; background: rgba(10, 12, 15, .46); }
.sheet {
    position: relative; background: var(--panel); border-radius: 24px 24px 0 0;
    border-top: 1px solid var(--line); padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    max-height: 86vh; overflow-y: auto; box-shadow: 0 -24px 60px -40px rgba(0, 0, 0, .6);
}
.sheet__grip { width: 40px; height: 4px; border-radius: 3px; background: var(--line2); margin: 6px auto 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet__head h3 { margin: 0; font-size: 18px; letter-spacing: -.7px; }
.sheet__foot { display: flex; gap: 10px; padding-top: 16px; }

/* ---- sticky action bar: the reference's "Proceed to Checkout" ---- */
.actionbar {
    position: sticky; bottom: 0; z-index: 12; display: flex; align-items: center; gap: 10px;
    padding: 12px 2px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--panel) 62%, transparent);
}

/* ---- empty / loading / error states (icon circle → heading → body → action) ---- */
.empty2 { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 22px; gap: 4px; }
.empty2__ic {
    width: 60px; height: 60px; border-radius: 50%; background: var(--card2); color: var(--ink2);
    display: grid; place-items: center; margin-bottom: 12px;
}
.empty2__h { font-size: 16.5px; font-weight: 800; letter-spacing: -.5px; }
.empty2__p { font-size: 12.5px; color: var(--ink3); font-weight: 600; line-height: 1.55; max-width: 40ch; margin: 3px 0 16px; }
.skel { background: linear-gradient(90deg, var(--card2) 25%, var(--line) 37%, var(--card2) 63%); background-size: 400% 100%; animation: skel 1.3s ease-in-out infinite; border-radius: 10px; min-height: 12px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---- toast ---- */
.toast {
    position: fixed; inset-inline: 0; bottom: 22px; margin-inline: auto; width: max-content; max-width: 90vw;
    background: var(--ink); color: var(--panel); border-radius: 999px; padding: 11px 20px;
    font-size: 12.5px; font-weight: 800; z-index: 80; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
}

/* ---- media grid (restaurant gallery, review photos) ---- */
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--card2); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- login: the reference's splash orange, a pill button, no heavy card shadow ---- */
.auth__hero { background: linear-gradient(155deg, #FF7A38, var(--accent) 55%, #D6480F); }
.auth__card { border-radius: 24px; box-shadow: none; border: 1px solid var(--line); padding: 28px; }
.auth__card h1 { font-size: 26px; letter-spacing: -1.1px; }
.auth__btn,
html[data-theme="dark"] .auth__btn {
    background: var(--accent); color: #fff; border-radius: 999px; padding: 14px;
    font-size: 13.5px; box-shadow: 0 14px 26px -18px var(--accent);
}
.auth__btn:hover { background: var(--accent-press); }
.field { border-radius: 14px; border-color: transparent; background: var(--card2); padding: 13px 15px; }
.field:focus { border-color: var(--accent); background: var(--card); }
.auth__link { color: var(--accent); }

/* ---- sidebar: the active item reads as a card, hairline only ---- */
.nav__link.active { box-shadow: none; border: 1px solid var(--line); }
.nav__link { border: 1px solid transparent; }
@media (max-width: 700px) {
    .auth__card { padding: 22px; border-radius: 20px; }
}

/* the plain "nothing here" line that lives inside tables and lanes: centred and calm instead of a stray
   sentence at the left edge. Screens that carry a real empty state use .empty2 instead. */
.empty { display: block; text-align: center; padding: 26px 12px; font-size: 12px; color: var(--ink3); font-weight: 700; }

/* ---- top-bar notifications (2026-12-02): the bell was inert, now it owns the open-alert queue ---- */
.bell { position: relative; display: flex; }
.bell__btn { position: relative; }
.bell__badge {
    position: absolute; top: -3px; inset-inline-end: -3px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800;
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--panel);
}
.bell__panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 40;
    width: min(340px, 84vw); background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--sh); padding: 12px;
}
.bell__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-size: 12px; }
.bell__head a { color: var(--accent); font-weight: 800; font-size: 11.5px; }
.bell__row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 10px; }
.bell__row:hover { background: var(--card2); }
.bell__t { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell__age { margin-inline-start: auto; font-size: 10px; color: var(--ink3); flex: none; }
.bell .empty { padding: 14px 6px; }

/* ---- phone: nothing may push the page sideways (2026-12-02) ----
   Measured at 390px before this rule: /reviews 411, /settings 404 and /reports 777 pixels of document width,
   i.e. the whole console could be dragged left/right on a phone (a wide report table took the page with it).
   The page itself is clipped now, and a wide table scrolls inside its own card instead. */
@media (max-width: 700px) {
    main { overflow-x: hidden; }
    .card, .tablecard, .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.table { min-width: 540px; }
}

/* ---- phone: the legacy `admin-*` screens (reviews, disputes, marketing, reports) ----
   Measured at 390px on /reviews: `.admin-page__tools` (304px wide) and `input.admin-search` (180px) sat side by
   side and pushed the document to 411px, so the page could be dragged sideways. Those classes are styled by an
   inline <style> inside each view, which lands after this file — hence the specificity and !important here. */
@media (max-width: 700px) {
    html, body { overflow-x: hidden; }
    main .admin-page__tools { flex-wrap: wrap !important; max-width: 100% !important; }
    main .admin-page__tools > * { min-width: 0; }
    main input.admin-search { max-width: 100% !important; width: auto !important; }
}

/* The reports page carries its own inline <style> after this file and set overflow-x back to visible, so on a phone
   the whole document could still be dragged sideways (measured: window.scrollTo(200,0) moved it). Specificity and
   !important are deliberate. Wide report tables scroll inside their own card, not the page. */
@media (max-width: 700px) {
    html, body { overflow-x: hidden !important; }
}

/* ---- the legacy `admin-*` screens (reviews, disputes, payouts, campaigns, marketing, templates) ----
   2026-12-02: these six were written against an older admin template: no <settings> block, no `.admin-*` CSS
   anywhere in the served stylesheet, so once they were given a menu link they rendered as raw HTML — an old
   "Talabat Ops / Sign out" pair stacked at the top and unstyled selects and tables. They now live in the app
   shell, and this block gives their markup the same language as the rest of the console. */
.admin-page { padding: 22px 22px 34px; }
.admin-page__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.admin-page__head h1 {
    margin: 0; font-size: 40px; line-height: .98; letter-spacing: -1.9px; font-weight: 800; color: var(--ink);
}
.admin-page__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-btn {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
    padding: 10px 16px; background: var(--accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800;
    cursor: pointer; box-shadow: 0 10px 22px -16px var(--accent);
}
.admin-btn:hover { background: var(--accent-press); }
.admin-select, .admin-search {
    border: 1px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 999px;
    padding: 10px 14px; font: inherit; font-size: 12.5px; font-weight: 700; outline: 0;
}
.admin-search { min-width: 220px; max-width: 100%; }
.admin-select:focus, .admin-search:focus { border-color: var(--accent); }
.admin-table {
    width: 100%; border-collapse: collapse; font-size: 12px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.admin-table th {
    text-align: start; font-family: JBM, monospace; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--ink3); font-weight: 500; padding: 12px; border-bottom: 1px solid var(--line); background: var(--card2);
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--card2); }
.admin-muted { color: var(--ink3); font-size: 12px; font-weight: 700; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800;
    padding: 4px 9px; border-radius: 999px; background: var(--card2); color: var(--ink2);
}
@media (max-width: 700px) {
    .admin-page { padding: 14px 14px 26px; }
    .admin-page__head h1 { font-size: 30px; letter-spacing: -1px; }
    .admin-page__tools { width: 100%; }
    .admin-search, .admin-select { width: 100%; min-width: 0; }
}


/* ============================================================================
   CONSOLE POLISH v2 — one authoritative layer (Engineer, round 1)
   The M1 append above re-tuned the same selectors as the base block, so the
   console read as two design languages fighting. Everything below is the
   single source of truth for rhythm, density and legibility. Values only;
   no view markup is touched by this block.
   ========================================================================= */

/* --- legibility floor: #6F6F6F on #181818 is ~3:1 at 10.5px. Text greys get
       one step lighter; hairlines keep the sampled value. --- */
html[data-theme="dark"] {
    --ink3: #8C8C8C;
    --ink2: #B4B4B4;
}

/* --- KPI cards: label, value and foot share one baseline across all four
       cards, and the foot is pinned to the bottom so a card with a gauge and
       a card without still close on the same line. --- */
.kpis { gap: 12px; align-items: stretch; }
.kpi {
    display: flex; flex-direction: column;
    min-height: 122px;
    padding: 15px 18px 14px;
}
.kpi__label {
    font-family: Manrope, system-ui, -apple-system, sans-serif;
    font-size: 10.5px; font-weight: 800; letter-spacing: .55px;
    color: var(--ink2); text-transform: uppercase;
}
.kpi__sq { width: 7px; height: 7px; border-radius: 2.5px; }
.kpi__val { margin-top: 9px; gap: 7px; }
.kpi__val b { font-size: 34px; line-height: 1; letter-spacing: -1.3px; font-weight: 800; }
.kpi__val u { font-size: 11px; font-weight: 700; color: var(--ink3); }
.kpi__foot {
    margin-top: auto; padding-top: 12px;
    font-size: 10.5px; font-weight: 700; color: var(--ink3);
    min-height: 15px;
}

/* --- gauge: it used to steal the bottom with margin-top:auto and leave a
       dead band under the foot row. It now sits under the foot, 6px bars. --- */
/* The gauge is decoration in the card's bottom band: taken out of flow so a
   card that has one and a card that does not close on the same baseline. */
.kpi { padding-bottom: 26px; }
.kpi .gauge { position: absolute; inset-inline: 18px; bottom: 11px; margin: 0; padding: 0; }
.gauge { gap: 3px; }
.gauge i { height: 6px; border-radius: 2px; }

/* --- segmented control: the reference keeps one accent, so the active
       segment is an orange tint pill, never an outline with orange text. --- */
.seg { background: var(--card2); border: 0; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 999px; color: var(--ink3); }
.seg button.on,
html[data-theme="dark"] .seg button.on {
    background: var(--accent); color: #fff; box-shadow: none;
}

/* --- sidebar: 19 rows daily operations read at 13px/34px, not 12.5/30 --- */
.nav { gap: 16px; }
.nav__link { padding: 9.5px 11px; font-size: 13px; border-radius: 12px; }
.nav__dot { width: 6px; height: 6px; }
.nav__label { font-size: 9px; letter-spacing: 1.5px; color: var(--ink3); }

/* --- page title: 40px/-1.9px is a landing-page headline, not a console H1 --- */
h1.page__title { font-size: 33px; line-height: 1.04; letter-spacing: -1.3px; }

/* ============================================================================
   LIST SCREENS v2 (Engineer, round 2) — orders / fleet / restaurants / drivers
   The chip row had no top margin and sat on the KPI cards; the table's
   initials were 9.5px on a 26px block; the order id was the loudest thing in
   the row. This block is the source of truth for every list screen.
   ========================================================================= */

/* --- filter row: a real band between the numbers and the table --- */
.views { margin: 18px 0 14px; gap: 8px; }
.chip-btn { padding: 8px 13px; font-size: 11.5px; border-radius: 999px; }
.chip-btn.on,
html[data-theme="dark"] .chip-btn.on {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.chip-btn.on b,
html[data-theme="dark"] .chip-btn.on b {
    background: rgba(255, 255, 255, .22); color: #fff;
}

/* --- table: 50px scan rows, initials you can read, id stepped back --- */
.tablecard { padding: 14px 10px 10px; }
.table { font-size: 12.5px; }
.table th {
    font-family: Manrope, system-ui, -apple-system, sans-serif;
    font-size: 9.5px; font-weight: 800; letter-spacing: .8px;
    padding: 0 12px 10px; color: var(--ink3);
}
.table td { padding: 11px 12px; vertical-align: middle; font-weight: 600; }
.table td b.mono { font-size: 10.5px; font-weight: 600; color: var(--ink2); letter-spacing: .2px; }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.table tbody tr:last-child td { border-bottom: 0; }

/* cell components (.o__av, .o__init, .o__steps) live in orders.view's own
   <style> because a view-local rule wins over this file — one copy, there. */

/* ============================================================================
   THEME LEAKS + EMPTY BLOCKS (Engineer, round 3)
   `.tracker-banner` is painted cream (255,246,234) in its own rule, so it
   stayed a light-mode island inside the dark console on /disputes and
   /marketing. A theme-prefixed selector wins on specificity whatever order the
   view's own <style> lands in.
   ========================================================================= */
.tracker-banner {
    background: var(--accent-soft); border: 1px solid rgba(251, 92, 34, .28);
    color: var(--ink); border-radius: 16px;
}
html[data-theme="dark"] .tracker-banner {
    background: rgba(251, 92, 34, .10); border-color: rgba(251, 92, 34, .30); color: var(--ink);
}
.tracker-banner a, .tracker-banner b, .tracker-banner strong { color: var(--ink); }

/* A list that can be empty says so in the reference's voice: centred, calm,
   with room around it — not a stray sentence floating under a table. */
.empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; padding: 38px 18px;
    font-size: 12.5px; font-weight: 600; color: var(--ink3); line-height: 1.55;
}
.empty b, .empty strong { color: var(--ink); font-size: 13px; font-weight: 800; }

/* ============================================================================
   BOARD BAND (Engineer, round 4) — the pipeline was the whole page, so a 1440
   screen was 55% empty. The band carries the two things an operator needs
   beside the lanes: where the load sits and who is actually on the road.
   ========================================================================= */
.band { display: grid; grid-template-columns: 1.55fr 1fr; gap: 13px; margin-top: 13px; align-items: stretch; }
.band .card { padding: 16px 18px 18px; }
.band__h { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.band__h h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.4px; }
.band__h .chip:first-of-type { margin-inline-start: auto; }

.load { display: flex; flex-direction: column; gap: 12px; }
.load__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 104px; align-items: center; gap: 12px; }
.load__name { font-size: 11.5px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.load__track { height: 8px; border-radius: 999px; background: var(--card2); overflow: hidden; display: block; }
.load__fill { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.load__val { font-family: JBM, monospace; font-size: 10.5px; color: var(--ink3); text-align: end; white-space: nowrap; }
.load__val b { font-weight: 600; }

.fleet { display: flex; flex-direction: column; }
.fleet__row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.fleet__row:last-child { border-bottom: 0; }
.fleet__n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet__row .chip { font-size: 9.5px; padding: 3px 7px; }
.fleet__p { margin-inline-start: auto; font-family: JBM, monospace; font-size: 9.5px; color: var(--ink3); white-space: nowrap; flex: none; }

@media (max-width: 1180px) { .band { grid-template-columns: 1fr; } }
