/* Taxi Virtual Queue · company portal
   --brand and --accent come from the company's branding (set on .shell). */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* TripVQ look: a calm, light working area with a dark "night console" rail, crisp type and a single electric accent.
   --brand and --accent come from the customer's branding; --glow is TripVQ's own. */
:root {
  --ink: #0f1626;
  --ink-2: #3c4760;
  --muted: #667089;
  --line: #e2e6ef;
  --line-2: #eef1f7;
  --bg: #f3f5fa;
  --panel: #ffffff;
  --brand: #1F4E8C;
  --accent: #F2B705;
  --glow: #21d4fd;
  --rail: #0b1222;
  --rail-2: #141d33;
  --rail-ink: #c6cfe3;
  --ok: #157a4b;
  --ok-bg: #e3f5ec;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --error: #b3261e;
  --error-bg: #fdeceb;
  --info-bg: #e8f1fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 22, 38, .04), 0 8px 24px -12px rgba(15, 22, 38, .12);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1 { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 26px; font-weight: 650; margin: 0; letter-spacing: -0.02em; }
h1:focus { outline: none; }
h2 { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 16px; font-weight: 650; margin: 0 0 12px; letter-spacing: -0.005em; }
a { color: var(--brand); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-warn { color: var(--warn); font-weight: 600; }
.text-error { color: var(--error); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: radial-gradient(120% 60% at 0% 0%, #1a2747 0%, var(--rail) 60%); border-right: 1px solid #1c2640; color: var(--rail-ink); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 4px 8px 16px; font-weight: 650; }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #6f7b98; padding: 14px 10px 4px; }
.sidebar nav a { color: var(--rail-ink); text-decoration: none; padding: 7px 10px; border-radius: 9px; display: flex; align-items: center; gap: 9px; transition: background .15s, color .15s; }
.sidebar nav a:hover { background: var(--rail-2); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, color-mix(in srgb, var(--glow) 22%, transparent), transparent); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--glow); }
.sidebar { min-width: 0; }
.who { border-top: 1px solid #1f2a45; padding: 12px 10px 0; min-width: 0; }
/* A long name or email stays inside the panel: cut with "…", the full text on hover. */
.who-name, .who-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name { font-weight: 600; font-size: 14px; color: #fff; }
.who-role { color: #8792ad; font-size: 12px; margin-bottom: 4px; }
.content { padding: 24px 32px 48px; min-width: 0; }

.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head h1 { margin-right: auto; }
.page-head + p { margin-top: 0; }
.page-message { padding: 40px; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.cards .card { margin: 0; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.stat-value.small-value { font-size: 20px; padding: 6px 0; }
.stat-note { color: var(--muted); font-size: 12px; }
.stat.brand { border-color: color-mix(in srgb, var(--brand) 35%, white); background: color-mix(in srgb, var(--brand) 5%, white); }
.stat.brand .stat-value { color: var(--brand); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.two-col > .card { margin: 0; }
/* Grid items default to min-width:auto, which lets a wide table push past its column and slide under the next one.
   With min-width:0 the column keeps its size and the card scrolls its table sideways instead. */
.two-col > * { min-width: 0; }
.two-col > .card { overflow-x: auto; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
/* A list on the left and a fixed-width side panel (e.g. Drivers: table + company code / QR). */
.two-col.side-panel { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1250px) { .two-col.side-panel { grid-template-columns: 1fr; } }
.narrow { max-width: 560px; }
.settings-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1200px; }
.settings-cols > .card { margin: 0; max-width: none; }
@media (max-width: 1100px) { .settings-cols { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- tables ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr.muted td { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.actions > * + * { margin-left: 8px; }
/* Row buttons that wrap (one under another) when the table is short of room, instead of running past the card. */
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.actions .row-actions > * + * { margin-left: 0; }
.table-wrap { overflow-x: auto; }
/* A wide table in a narrow card: headings may wrap and cells are tighter, so every column (buttons too) fits. */
table.grid.compact th { white-space: normal; }
table.grid.compact th, table.grid.compact td { padding-left: 7px; padding-right: 7px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.error { background: var(--error-bg); color: var(--error); }
.badge.brand { background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); }
.badge.muted { background: var(--line-2); color: var(--muted); }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 8px 10px; border: 1px solid #cfd5df; border-radius: 7px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, white); outline-offset: 0; border-color: var(--brand); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; }
input:disabled { background: var(--line-2); color: var(--muted); }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
legend { font-weight: 650; padding: 0 6px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.field-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 46px; padding: 2px; height: 38px; }
.color-field input:not([type=color]) { width: 110px; }

button, .button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 7px; border: 1px solid #cfd5df; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .button:hover { background: var(--line-2); }
button:disabled { opacity: .5; cursor: default; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .button.primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
button.danger { color: var(--error); border-color: color-mix(in srgb, var(--error) 35%, white); }
button.danger:hover { background: var(--error-bg); }
.modal-actions button.danger { background: var(--error); color: #fff; border-color: var(--error); }
button.small, .button.small { padding: 4px 10px; font-size: 13px; }
button.link { background: none; border: none; padding: 0; color: var(--brand); font-weight: 500; font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; }
.filters label { min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }
.filters .quick { display: flex; gap: 6px; padding-bottom: 2px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; }

/* ---------- alerts, modal ---------- */
.alert { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.alert.error { background: var(--error-bg); color: var(--error); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--info-bg); color: #1d3d6e; }
.gate-alert { margin: 0 0 14px; padding-right: 110px; } /* room for the Help button */
.gate-alert .mono { margin: 4px 0; word-break: break-word; }
.gate-alert a { color: inherit; font-weight: 600; }
.callout { background: var(--line-2); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
code.block { display: block; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; word-break: break-all; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: grid; place-items: center; z-index: 2000; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: min(460px, 92vw); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal h2 { font-size: 17px; margin: 0; }
.modal { max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 14px; margin: 6px 0 0; }
.modal p { margin: 0; color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- map ---------- */
.map-wrap { display: flex; flex-direction: column; gap: 8px; }
.map-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-tools .spacer { flex: 1; }
.map { width: 100%; border-radius: 8px; border: 1px solid var(--line); z-index: 0; }
.map.placing { cursor: crosshair; }
.legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.swatch { width: 18px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.swatch.dashed { border: 2px dashed #5b6475; }
.swatch.brand { background: color-mix(in srgb, var(--brand) 30%, white); border: 2px solid var(--brand); }
.swatch.pinzone { background: color-mix(in srgb, #B26A00 12%, white); border: 2px dashed #B26A00; }

/* ---------- setup checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; max-width: 760px; counter-reset: step; }
.checklist li { counter-increment: step; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.checklist li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; }
.checklist li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li > div { flex: 1; display: flex; flex-direction: column; }

/* ---------- branding preview ---------- */
.phone { width: 270px; margin: 8px auto; border-radius: 28px; border: 8px solid #1b2230; overflow: hidden; background: #fff; }
.phone-head { background: var(--p); color: #fff; display: flex; align-items: center; gap: 10px; padding: 16px; font-weight: 650; }
.phone-head img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 6px; }
.phone-head .brand-mark { background: rgba(255,255,255,.2); }
.phone-body { padding: 18px 16px 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.phone-label { color: var(--muted); font-size: 12px; }
.phone-big { font-size: 46px; font-weight: 800; color: var(--p); line-height: 1; }
.phone-sub { color: var(--ink-2); font-size: 12px; }
.phone-button { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 600; font-size: 13px; }
.phone-chip { align-self: center; background: var(--a); color: #1b2230; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }

/* ---------- sign-in pages ---------- */
.account-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.account-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.account-card h1 { margin-bottom: 4px; }
.account-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 22px; color: var(--ink-2); }
.account-card button.primary { justify-content: center; }

#blazor-error-ui { background: var(--warn-bg); bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 3000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 16px; }
}

/* Company code on the Drivers page */
.join-code { font-size: 34px; font-weight: 700; letter-spacing: 0.22em; padding: 14px 18px; border: 2px dashed var(--line); border-radius: 10px; text-align: center; color: var(--brand); user-select: all; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin-right: auto; }
.card-toolbar { justify-content: flex-end; margin-bottom: 10px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar input[type=search] { flex: 1; }
.join-qr { width: 220px; max-width: 100%; margin: 8px auto; }
.join-qr svg { width: 100%; height: auto; display: block; }

/* Printable driver poster */
.poster-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.poster { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; }
.poster header { background: var(--brand); color: #fff; padding: 28px 24px; }
.poster header img { max-height: 70px; max-width: 260px; background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 10px; }
.poster header h1 { margin: 0; font-size: 34px; color: #fff; }
.poster header p { margin: 8px 0 0; font-size: 18px; opacity: .92; }
.poster-qr { width: 330px; margin: 28px auto 8px; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-scan { font-size: 22px; font-weight: 700; margin: 0 24px 12px; }
.poster ol { text-align: left; font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto 12px; }
.poster-code { font-size: 16px; padding: 12px 24px 26px; border-top: 4px solid var(--accent); margin: 16px 0 0; }
.poster-code strong { font-family: ui-monospace, Menlo, monospace; letter-spacing: .15em; font-size: 22px; }

@media print {
    .sidebar, .no-print, #blazor-error-ui { display: none !important; }
    .shell, .content { display: block !important; padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .poster { border: none; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { margin: 12mm; }
}

/* Two-way switch (e.g. drawing the waiting area or its PIN zone) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.segmented button { border: 0; border-radius: 0; background: transparent; padding: 6px 14px; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.selected { background: var(--brand); color: var(--on-brand, #fff); }

/* Driver messages editor */
.message-template textarea { width: 100%; font: inherit; resize: vertical; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.placeholder-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.preview { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; }
.preview p { margin: 4px 0 0; }
.field-error { color: var(--error); margin: 0; }

/* Password reset dialog: the temporary password, large enough to read out or copy. */
.temp-password { font-size: 1.4rem; letter-spacing: 0.08em; padding: 0.5rem 0.75rem; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; user-select: all; }

/* Roles page */
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--bg); }
tr.selected td { background: color-mix(in srgb, var(--brand) 8%, white); }
.perm-group { gap: 8px; }
.perm-group legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.perm-group label.check { align-items: flex-start; }
.perm-group label.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; }

/* Simulator */
.text-ok { color: var(--ok); font-weight: 600; }
.sim-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.sim-toolbar > label { min-width: 160px; }
.sim-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.sim-count { width: 110px; }
.sim-count input { width: 100%; }
.sim-options { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.sim-layout { grid-template-columns: minmax(0, 1fr) 320px 330px; }
@media (max-width: 1440px) { .sim-layout { grid-template-columns: minmax(0, 1fr) 320px; } .sim-phone-col { grid-column: 2; } }
@media (max-width: 1100px) { .sim-layout { grid-template-columns: 1fr; } .sim-phone-col { grid-column: auto; } }
.sim-map { height: calc(100vh - 290px); min-height: 460px; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0 4px; }
.sim-legend button:first-of-type { margin-left: auto; }
.sim-side { display: flex; flex-direction: column; gap: 16px; }
.sim-selected h2 { margin: 0 0 2px; font-size: 18px; }
.sim-selected p { margin: 6px 0; }
.sim-pin { font-size: 15px; }
.sim-pin strong { font-size: 20px; letter-spacing: 2px; margin: 0 6px; }
.sim-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sim-steps button { text-align: left; }
.sim-list tbody tr { cursor: pointer; }
/* The driver list scrolls inside its card (headings stay put) instead of making the page one long list. */
.sim-list-card { padding-top: 10px; }
.sim-list-head { padding: 0 2px 8px; }
/* A long table scrolls inside its card, with its headings staying put. */
.table-scroll { max-height: min(560px, 65vh); overflow: auto; overscroll-behavior: contain; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.sim-list-scroll { max-height: min(460px, 55vh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.sim-list thead th { position: sticky; top: 0; z-index: 1; background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.sim-list { table-layout: fixed; width: 100%; font-size: 13px; }
.sim-list th:nth-child(1) { width: 2.4em; }
.sim-list .sim-place { vertical-align: top; padding-top: 7px; }
.sim-row-name, .sim-row-stage { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-row-stage { margin-top: 2px; }
.sim-row-stage .badge { font-size: 11px; padding: 1px 7px; }
.sim-list td:first-child, .sim-list th:first-child { padding-left: 2px; padding-right: 4px; text-align: right; }
.sim-list td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 6px; padding-bottom: 6px; }
.sim-list td .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.sim-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.leaflet-tooltip.sim-speed { padding: 1px 5px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-list .sim-place { width: 2.5em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.sim-list tr.selected td { background: color-mix(in srgb, var(--brand) 8%, white); }
.sim-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: #9CA3AF; }
.sim-car { width: 34px; height: 34px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; background: #9CA3AF; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); font: 700 10px/1 system-ui, sans-serif; cursor: grab; }
.sim-car span { margin-top: -1px; }
.sim-car.selected { outline: 3px solid #111827; outline-offset: 1px; }
.sim-car.phone-off { opacity: .55; border-style: dashed; }
.st-none { background: #9CA3AF; }
.st-queue { background: #2563EB; }
.st-called { background: #D97706; }
.st-waiting { background: #059669; }
.st-removed { background: #DC2626; }
.sim-gate { font: 700 10px/18px system-ui, sans-serif; letter-spacing: .5px; text-align: center; width: 34px; height: 18px; color: #fff; background: #111827; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sim-area-label { background: rgba(255,255,255,.85); border: 0; box-shadow: none; color: #1F4E8C; font-weight: 700; padding: 1px 6px; }
.sim-area-label::before { display: none; }

/* Simulator: the driver's phone */
.sim-phone-card { display: flex; flex-direction: column; align-items: center; }
.sim-phone-card .small-head { align-self: flex-start; margin: 0 0 4px; font-size: 15px; }
.sim-phone { width: 290px; position: relative; font-size: 13px; }
.phone-status { display: flex; justify-content: space-between; padding: 4px 14px; background: #111827; color: #fff; font-weight: 600; }
.phone-head-sub { font-weight: 500; opacity: .85; font-size: 12px; }
.phone-title { font-weight: 700; font-size: 16px; }
.phone-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: left; font-weight: 600; }
button.phone-button { display: block; width: 100%; background: #fff; color: inherit; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-align: center; }
button.phone-button:disabled { opacity: .6; cursor: default; }
.phone-card .phone-button { margin-top: 8px; }
.phone-button.primary { background: var(--p); color: #fff; border-color: var(--p); }
.phone-button.danger { color: #B42318; border-color: #F4C7C3; }
.phone-sub.warn { color: #92400E; }
.phone-turn { background: #FEF3C7; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.phone-turn-title { font-size: 22px; font-weight: 800; }
.phone-pin { font: 800 30px/1.1 ui-monospace, monospace; letter-spacing: 1px; color: #111827; white-space: nowrap; }
.phone-pin.big { font-size: 34px; color: var(--p); }
.phone-warning { background: #FDE68A; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.phone-notification { position: absolute; top: 30px; left: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.97); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: 8px 10px; text-align: left; font-size: 12px; }
.phone-notification-app { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.phone-offline { position: absolute; inset: 26px 0 0 0; z-index: 3; background: rgba(17,24,39,.82); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.phone-error { background: #FEE4E2; color: #B42318; border-radius: 10px; padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; }

/* Languages */
/* Top-right tools on every page: the language dropdown beside Help. */
.page-tools { position: absolute; top: 18px; right: 24px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.page-tools.on-account { position: fixed; }
.page-tools .language-picker { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; margin: 0; font-size: 13px; font-weight: normal; color: var(--ink); }
.page-tools .language-picker select { font-size: 13px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print { .language-picker { display: none; } }

/* Help for each screen */
.content { position: relative; }
.help-button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.help-button span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; }
.help-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 50; background: #fff; border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(0,0,0,.12); padding: 20px 22px; overflow-y: auto; }
.help-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
.help-text p, .help-text li { line-height: 1.55; }
.help-text h3 { font-size: 15px; margin: 16px 0 4px; }
.help-text ul, .help-text ol { padding-left: 22px; }
.help-text ol > li { margin-bottom: 4px; }
/* Commands and settings to copy, in help and the System overview. */
.help-text code { font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; font-size: .92em; background: var(--line-2, #f1f3f6); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.help-text pre.help-code { background: #0f1b2d; color: #e6edf6; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; white-space: pre; }
.help-text pre.help-code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.help-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.page-head { padding-right: 300px; }

/* Translations */
.tr-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.tr-search { flex: 1; min-width: 220px; }
.segmented button { border: 0; border-radius: 0; background: #fff; padding: 8px 14px; }
.segmented button.on { background: var(--brand); color: #fff; }
.tr-row { border-bottom: 1px solid var(--line); padding: 12px 0; }
.tr-row.needs-review { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 7%, white), white 30%); }
.tr-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .tr-cols { grid-template-columns: 1fr; } }
.tr-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.tr-text { white-space: pre-wrap; line-height: 1.5; }
.tr-edit textarea { width: 100%; font: inherit; line-height: 1.5; }
.tr-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

/* System overview */
.guide-toc ol { columns: 2; margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
.guide-section { scroll-margin-top: 16px; }
.guide-body.with-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .guide-body.with-diagram { grid-template-columns: 1fr; } }
.guide-text p, .guide-text li { line-height: 1.6; }
.guide-diagram { margin: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.diagram { width: 100%; height: auto; font-family: inherit; }
.diagram text { text-anchor: middle; }
.d-box { fill: #fff; stroke: #c9ced8; stroke-width: 1.5; }
.d-box.brand { fill: var(--brand); stroke: var(--brand); }
.d-box.ok { fill: #ecfdf3; stroke: #12b76a; }
.d-box.removed { fill: #fef3f2; stroke: #f04438; stroke-dasharray: 5 4; }
.d-title { font-size: 14px; font-weight: 700; fill: #1d2433; }
.d-title.light, .d-note.light { fill: #fff; }
.d-title.removed { fill: #b42318; }
.d-note { font-size: 11px; fill: #5b6476; }
.d-note.left, .d-label { text-anchor: start !important; }
.d-small { font-size: 11px; fill: #344054; }
.d-label { font-size: 14px; font-weight: 700; fill: #475467; }
.d-label.pin { fill: #b54708; } .d-label.waiting { fill: var(--brand); text-anchor: middle !important; }
.d-line { stroke: #5b6475; stroke-width: 1.6; fill: none; }
.d-line.removed { stroke: #f04438; stroke-dasharray: 4 3; }
.d-line.ok { stroke: #12b76a; }
.d-lane { stroke: #c9ced8; stroke-width: 2; stroke-dasharray: 2 4; }
.d-zone.service { fill: #f8fafc; stroke: #98a2b3; stroke-width: 1.5; stroke-dasharray: 7 6; }
.d-zone.pin { fill: #fffaeb; stroke: #f79009; stroke-width: 1.5; stroke-dasharray: 5 5; }
.d-zone.waiting { fill: color-mix(in srgb, var(--brand) 14%, white); stroke: var(--brand); stroke-width: 2; }
.d-gate { font-size: 10px; font-weight: 700; fill: #fff; }
.d-car { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.d-car.called { fill: #d97706; }
@media print {
  .sidebar, .page-tools, .help-button, .help-panel, .guide-links, .page-head button { display: none !important; }
  .shell { display: block; } .content { padding: 0; } .card { break-inside: avoid; box-shadow: none; }
}


/* ================= TripVQ additions ================= */
.sidebar nav a .ico { width: 18px; text-align: center; font-style: normal; opacity: .7; font-size: 13px; }
.sidebar nav a.active .ico { opacity: 1; color: var(--glow); }
.sidebar .who form button.link { color: #9fb0d6; }
.brand-mark { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--glow))); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px -6px var(--glow); }
.card { backdrop-filter: saturate(1.1); }
.stat .stat-value { font-family: "Space Grotesk", "Inter", sans-serif; }
.stat.warn { border-color: #f1d08a; background: var(--warn-bg); }
button.primary, .button.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, white), var(--brand)); box-shadow: 0 6px 16px -8px var(--brand); }
.quick button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form-row > label { flex: 1 1 160px; }
.strike { text-decoration: line-through; }
.code-input { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .35em; text-align: center; }

/* page tools: Test mode / language / help */
.page-tools { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: -8px 0 8px; }
.uat-toggle { border-radius: 999px; font-size: 13px; padding: 5px 12px; }
.uat-toggle.on { background: #1b1033; color: #e9dcff; border-color: #6b4bd8; box-shadow: 0 0 0 3px rgba(107,75,216,.18); }

/* Test mode panel */
.uat-panel { position: fixed; right: 16px; top: 64px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid #d9d0f7;
  border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(40, 20, 90, .35); z-index: 900; overflow-y: auto; padding: 14px 16px; }
.uat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.uat-run { background: #f6f2ff; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.uat-card { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.uat-title { display: flex; gap: 8px; align-items: center; }
.uat-steps { padding-left: 20px; margin: 6px 0; }
.uat-steps li { margin: 0 0 12px; }
.uat-steps li.done > div:first-child { color: var(--muted); }
.uat-step-tools { display: flex; gap: 6px; align-items: center; margin: 4px 0; flex-wrap: wrap; }
.uat-buttons { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.uat-buttons .ok { color: var(--ok); border-color: #b5dfc8; }
.uat-buttons .bad { color: var(--error); border-color: #f1c4c0; }
.uat-comment { min-width: 160px; flex: 1; padding: 4px 8px; font-size: 13px; }
.uat-overall { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uat-script { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.uat-script summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uat-highlight { outline: 3px solid #8b5cf6 !important; outline-offset: 3px; border-radius: 8px; animation: uat-pulse 1.2s ease-in-out infinite; position: relative; z-index: 850; }
@keyframes uat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,.55); } 50% { box-shadow: 0 0 0 10px rgba(139,92,246,0); } }
.uat-pointer { position: absolute; z-index: 1000; background: #6b4bd8; color: #fff; font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  box-shadow: 0 10px 24px -10px #6b4bd8; pointer-events: none; animation: uat-bob 1s ease-in-out infinite; }
@keyframes uat-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.uat-missing { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 1000; }
.progress { display: flex; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 140px; }
.progress span { display: block; height: 100%; }
.p-pass { background: #22a06b; } .p-fail { background: #e5484d; } .p-block { background: #f5a524; }
tr.selected td { background: #f6f2ff; }

/* support access */
.support-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff7e0; border: 1px solid #f1d08a;
  border-radius: 12px; padding: 8px 14px; margin-bottom: 14px; font-size: 14px; }
.support-banner.inside { background: #1b1033; color: #efe7ff; border-color: #6b4bd8; }
.shell.support-mode .sidebar { box-shadow: inset -3px 0 0 #8b5cf6; }

/* link tiles, packages */
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--glow); transform: translateY(-1px); }
.tile span { color: var(--muted); font-size: 13px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.package { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; text-decoration: none; color: #fff; min-height: 150px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--glow) 40%, transparent), transparent 60%), linear-gradient(160deg, #142142, var(--rail)); }
.package strong { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.package .muted { color: #9fb0d6; }
.package-kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }

/* sell / wallet */
.pick-list { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.pick-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.pick-list li.picked { background: color-mix(in srgb, var(--brand) 8%, white); }
.wallet-strip { display: flex; gap: 20px; padding: 10px 12px; background: var(--line-2); border-radius: 10px; }
.wallet-strip > div { display: flex; flex-direction: column; }
.receipt { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }

/* reports */
.bars { display: flex; align-items: end; gap: 3px; height: 160px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; min-width: 6px; }
.bar span { width: 100%; background: linear-gradient(180deg, var(--glow), var(--brand)); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar em { font-style: normal; font-size: 10px; color: var(--muted); margin-top: 3px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; }
.ai-card { border-color: #d9d0f7; }
.ai-answer { background: #f8f6ff; border-radius: 10px; padding: 10px 14px; }

/* health */
.health-hero { display: flex; gap: 32px; align-items: center; padding: 18px 22px; border-radius: 18px; color: #fff; margin: 12px 0;
  background: linear-gradient(135deg, #0e1a33, #142a52); }
.health-hero .stat-label { color: #9fb0d6; }
.health-hero .stat-value { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; }
.health-hero .pulse { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: hpulse 2s infinite; }
.health-hero.warn .pulse { background: #f5a524; } .health-hero.bad .pulse { background: #e5484d; }
@keyframes hpulse { 70% { box-shadow: 0 0 0 14px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.check-tile { background: #fff; border: 1px solid var(--line); border-left: 4px solid #22c55e; border-radius: 12px; padding: 10px 12px; }
.check-tile.sev-1 { border-left-color: #f5a524; } .check-tile.sev-2 { border-left-color: #e5484d; }
.check-name { font-weight: 600; }
.check-value { font-family: "Space Grotesk", sans-serif; font-size: 20px; }

/* deployments */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; position: relative; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; box-shadow: var(--shadow); }
.stage:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 18px; color: var(--muted); font-size: 16px; }
.stage.h-ok { border-top: 3px solid #22c55e; } .stage.h-warn { border-top: 3px solid #f5a524; } .stage.h-bad { border-top: 3px solid #e5484d; }
.stage.locked { opacity: .65; }
.stage-head { display: flex; gap: 8px; align-items: baseline; }
.stage-head strong { font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.stage-version { font-size: 20px; font-weight: 600; }
.stage-links, .stage-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.running { display: flex; gap: 8px; align-items: center; color: var(--brand); font-weight: 600; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .pipeline { grid-template-columns: 1fr 1fr; } .stage::after { display: none; } }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.docs-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 40px); overflow-y: auto; }
.docs-nav a { color: var(--ink-2); text-decoration: none; padding: 5px 8px; border-radius: 7px; font-size: 14px; }
.docs-nav a.active, .docs-nav a:hover { background: var(--line-2); color: var(--ink); }
.docs-body { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 36px; position: relative; }
.docs-tools { position: absolute; right: 20px; top: 16px; }
.docs-toc { float: right; width: 220px; margin: 30px 0 16px 24px; padding: 10px 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.docs-toc a { color: var(--muted); text-decoration: none; }
.markdown { max-width: 860px; }
.markdown h1 { margin-bottom: 14px; }
.markdown h2 { font-size: 20px; margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.markdown h3 { font-size: 16px; margin-top: 20px; }
.markdown table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.markdown th { background: var(--line-2); }
.markdown pre { background: #0d1424; color: #d6e2ff; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.markdown code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--glow); background: #f2fbff; border-radius: 0 10px 10px 0; }

/* sign-in */
.account-shell { background: #0a1020 url("img/signin-bg.jpg") center / cover no-repeat; }
.account-brand { display: flex; align-items: center; gap: 10px; }
.account-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.account-brand small { color: var(--muted); font-weight: 400; font-size: 12px; }
.account-mark { width: 40px; height: 40px; border-radius: 10px; }
.powered { color: #6f7b98; display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 11px; }
.powered img { height: 22px; border-radius: 4px; }
.account-card { box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04); border-radius: 20px; }

@media print {
  .sidebar, .page-tools, .no-print, .docs-nav, .uat-panel, .support-banner { display: none !important; }
  .shell { display: block; }
  .docs { display: block; }
  .docs-body { border: 0; padding: 0; }
  .content { padding: 0; }
}

/* ---------- white label: a customer's own sign-in page and branding settings ---------- */
.account-shell.branded { background: #0a1020 var(--signin-bg, none) center / cover no-repeat; }
.account-shell.branded .primary, .account-shell.branded button.primary { background: var(--brand); border-color: var(--brand); }
.account-logo { max-height: 44px; max-width: 200px; object-fit: contain; }
.account-support { margin-top: 18px; text-align: center; }
.account-powered { margin-top: 6px; text-align: center; opacity: .7; }
.image-slot { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.image-slot:first-of-type { border-top: 0; }
.image-slot-preview { width: 96px; height: 72px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.image-slot-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.signin-preview { border-radius: 12px; min-height: 260px; display: grid; place-items: center; padding: 20px;
  background: #0a1020 var(--bg) center / cover no-repeat; }
.signin-preview-card { background: #fff; border-radius: 12px; padding: 18px; width: 220px; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.signin-preview-card img { max-height: 36px; max-width: 160px; object-fit: contain; }
.signin-preview-card .fake-input { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 8px; }
.signin-preview-card .fake-button { width: 100%; text-align: center; background: var(--p); color: #fff; border-radius: 8px; padding: 6px 0; font-weight: 600; font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
