/* LADEKLAR – design system
   Layout: one container-queried app root (.lk). Wide: dark ink rail + light working canvas.
   Narrow (phone, demo phone frame): stacked screens with a bottom tab bar.
   Identity: night-asphalt ink, brass for the platform, the licensee's own colour as --brand,
   and the "route net" – thin lane lines between city nodes – as the recurring pattern. */
:root {
  --bg: #eef1f4; --bg-2: #e3e8ed; --surface: #ffffff; --surface-2: #f6f8fa; --surface-3: #edf1f5;
  --line: #dbe2e9; --line-2: #c5cfda;
  --text: #0b1622; --text-2: #34465a; --muted: #66768a;
  --ink: #0b1622; --ink-2: #111f33; --ink-3: #1a2c45; --on-ink: #e8eef5; --on-ink-2: #9fb0c3;
  --brass: #c8a45c; --brass-2: #e6cd92; --brass-ink: #1b1508;
  --brand: #0e7c7b; --brand-ink: #ffffff;
  --brand-soft: color-mix(in oklab, var(--brand) 12%, var(--surface));
  --brand-line: color-mix(in oklab, var(--brand) 35%, var(--line));
  --ok: #12804c; --ok-bg: #e2f4ea; --info: #2360d1; --info-bg: #e6eefc;
  --warn: #a86400; --warn-bg: #fcf0d9; --bad: #c42f2f; --bad-bg: #fce7e7;
  --shadow-1: 0 1px 2px rgba(11, 22, 34, .06), 0 2px 8px rgba(11, 22, 34, .05);
  --shadow-2: 0 2px 6px rgba(11, 22, 34, .06), 0 14px 38px rgba(11, 22, 34, .12);
  --shadow-3: 0 24px 80px rgba(6, 12, 20, .34);
  --f-display: 'Archivo', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: .75rem; --fs-sm: .845rem; --fs-base: .95rem; --fs-md: 1.06rem; --fs-lg: 1.25rem; --fs-xl: 1.6rem; --fs-2xl: 2.15rem; --fs-3xl: 2.9rem;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --net: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-10 70 C 60 60 90 120 160 110 S 280 40 370 60'/%3E%3Cpath d='M-10 250 C 70 230 110 290 190 270 S 300 200 370 230'/%3E%3Cpath d='M60 -10 C 70 80 30 150 80 220 S 100 320 90 370'/%3E%3Cpath d='M250 -10 C 230 70 280 140 260 210 S 220 310 240 370'/%3E%3Cpath d='M160 110 L 190 270' stroke-dasharray='2 6'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.16'%3E%3Ccircle cx='160' cy='110' r='2.6'/%3E%3Ccircle cx='190' cy='270' r='2.6'/%3E%3Ccircle cx='80' cy='220' r='2'/%3E%3Ccircle cx='262' cy='198' r='2'/%3E%3Ccircle cx='70' cy='62' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d15; --bg-2: #0a121c; --surface: #0e1825; --surface-2: #122030; --surface-3: #172839;
    --line: #1c2b3c; --line-2: #2a3d52; --text: #e8eef5; --text-2: #b8c5d3; --muted: #8495a8;
    --ok: #3fc483; --ok-bg: rgba(63, 196, 131, .13); --info: #6f9cf2; --info-bg: rgba(111, 156, 242, .14);
    --warn: #f0ad3c; --warn-bg: rgba(240, 173, 60, .14); --bad: #f07272; --bad-bg: rgba(240, 114, 114, .14);
    --brand-soft: color-mix(in oklab, var(--brand) 20%, var(--surface));
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 34px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070d15; --bg-2: #0a121c; --surface: #0e1825; --surface-2: #122030; --surface-3: #172839;
  --line: #1c2b3c; --line-2: #2a3d52; --text: #e8eef5; --text-2: #b8c5d3; --muted: #8495a8;
  --ok: #3fc483; --ok-bg: rgba(63, 196, 131, .13); --info: #6f9cf2; --info-bg: rgba(111, 156, 242, .14);
  --warn: #f0ad3c; --warn-bg: rgba(240, 173, 60, .14); --bad: #f07272; --bad-bg: rgba(240, 114, 114, .14);
  --brand-soft: color-mix(in oklab, var(--brand) 20%, var(--surface));
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 34px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 var(--fs-base)/1.5 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 60%, white); outline-offset: 2px; }

/* ---------- app root ---------- */
.lk { container: lk / inline-size; position: relative; min-height: 100%; height: 100%; background: var(--bg); color: var(--text); isolation: isolate; overflow: hidden; }
.lk.platform { --brand: var(--brass); --brand-ink: var(--brass-ink); }
.display { font-family: var(--f-display); font-stretch: 112%; letter-spacing: -.01em; }
.mono { font-family: var(--f-display); font-stretch: 88%; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1 { font: 800 var(--fs-2xl)/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
h2 { font: 750 var(--fs-xl)/1.15 var(--f-display); font-stretch: 108%; letter-spacing: -.015em; }
h3 { font: 700 var(--fs-lg)/1.25 var(--f-text); }
h4 { font: 700 var(--fs-md)/1.3 var(--f-text); }
p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); min-width: 0; }
.row { display: flex; align-items: center; gap: var(--gap, 10px); min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid { display: grid; gap: var(--gap, 14px); grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }

/* ---------- buttons ---------- */
.btn { --b: var(--surface); --bt: var(--text); --bl: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--bl); background: var(--b); color: var(--bt); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--text-2); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-primary { --b: var(--brand); --bt: var(--brand-ink); --bl: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 18px color-mix(in oklab, var(--brand) 32%, transparent); }
.btn-primary:hover { --b: color-mix(in oklab, var(--brand) 88%, black); border-color: transparent; }
.btn-ink { --b: var(--ink); --bt: var(--on-ink); --bl: transparent; }
.btn-ghost { --b: transparent; --bl: transparent; }
.btn-ghost:hover { --b: var(--surface-3); border-color: transparent; }
.btn-danger { --bt: var(--bad); --bl: color-mix(in oklab, var(--bad) 40%, var(--line)); }
.btn-ok { --b: var(--ok); --bt: #fff; --bl: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-xs); }
.btn-lg { min-height: 54px; padding: 0 22px; border-radius: 14px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.ibtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; transition: background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ibtn:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.ibtn:active { transform: scale(.94); }
.ibtn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 800 10px/17px var(--f-text); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.input::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); font-weight: 500; }
.input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in oklab, var(--bad) 14%, transparent); }
.fgrid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.fgrid .span2 { grid-column: span 2; } .fgrid .span3 { grid-column: span 3; } .fgrid .full { grid-column: 1 / -1; }
@container lk (max-width: 560px) { .fgrid { --cols: 2 !important; } .fgrid .span3 { grid-column: 1 / -1; } }
.switch { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; flex: none; width: 46px; height: 28px; border-radius: 20px; background: var(--line-2); position: relative; cursor: pointer; transition: background .25s; margin: 2px 0 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease-out); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.switch b { display: block; font-weight: 700; }
.switch small { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface-3); gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg .count { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--line); color: var(--text-2); }
.seg button[aria-pressed="true"] .count { background: var(--brand); color: var(--brand-ink); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.card.pad, .pad { padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { font-size: var(--fs-md); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 34px 18px; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; stroke-width: 1.5; color: var(--line-2); }
.empty b { color: var(--text); font-size: var(--fs-md); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: var(--fs-sm); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.info { background: var(--info-bg); color: var(--info); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner .grow { color: var(--text); font-weight: 600; }

/* ---------- pills, plates, avatars ---------- */
.pill { --pc: var(--muted); --pb: var(--surface-3); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--pb); color: var(--pc); font-weight: 800; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.pill.s-open { --pc: var(--warn); --pb: var(--warn-bg); }
.pill.s-accepted, .pill.s-arrived_pickup { --pc: var(--info); --pb: var(--info-bg); }
.pill.s-loaded, .pill.s-arrived_dropoff { --pc: color-mix(in oklab, var(--brand) 85%, var(--text)); --pb: var(--brand-soft); }
.pill.s-unloaded { --pc: #7a4bd1; --pb: color-mix(in oklab, #7a4bd1 13%, var(--surface)); }
.pill.s-delivered, .pill.ok { --pc: var(--ok); --pb: var(--ok-bg); }
.pill.s-cancelled { --pc: var(--muted); --pb: var(--surface-3); text-decoration: line-through; }
.pill.bad, .pill.prob { --pc: var(--bad); --pb: var(--bad-bg); }
.pill.warn { --pc: var(--warn); --pb: var(--warn-bg); }
.pill.info { --pc: var(--info); --pb: var(--info-bg); }
.pill.brand { --pc: var(--brand-ink); --pb: var(--brand); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
.plate { display: inline-flex; align-items: stretch; height: 28px; border-radius: 6px; border: 1.5px solid #1b1f24; background: #fbfbf7; color: #111; overflow: hidden; font: 700 15px/1 var(--f-display); font-stretch: 78%; letter-spacing: .04em; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); white-space: nowrap; }
.plate::before { content: "D"; display: grid; place-items: end center; width: 15px; padding-bottom: 3px; background: #1844b3; color: #fff; font: 700 8.5px var(--f-text); background-image: radial-gradient(circle at 50% 30%, #f5c400 0 1.1px, transparent 1.4px); background-size: 15px 13px; background-repeat: no-repeat; }
.plate span { display: grid; place-items: center; padding: 0 8px 0 7px; }
.plate.lg { height: 38px; font-size: 21px; border-width: 2px; border-radius: 7px; }
.plate.lg::before { width: 19px; font-size: 10px; background-size: 19px 18px; }
.plate.empty { opacity: .45; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: color-mix(in oklab, var(--brand) 80%, var(--text)); font: 800 13px var(--f-display); flex: none; }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 17px; }
.flag { font: 800 10.5px var(--f-text); letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); text-transform: uppercase; }
.logo-chip { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 5px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 14px rgba(0, 0, 0, .18); flex: none; }
.logo-chip img { height: 100%; width: auto; max-width: 168px; object-fit: contain; }

/* ---------- progress stepper ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; align-items: start; position: relative; }
.steps .st { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; position: relative; }
.steps .st::before { content: ""; position: absolute; top: 13px; right: 50%; width: calc(100% + 4px); height: 3px; background: var(--line); z-index: 0; }
.steps .st:first-child::before { display: none; }
.steps .st.done::before, .steps .st.now::before { background: var(--brand); transition: background .5s .1s; }
.steps .nd { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; color: var(--muted); transition: all .4s var(--ease-out); }
.steps .nd .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.steps .done .nd { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.steps .now .nd { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand) 18%, transparent); animation: ring 2.2s infinite; }
.steps .lb { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; max-width: calc(100% + 4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container lk (max-width: 480px) { .steps .lb { font-size: 9.5px; letter-spacing: -.015em; } .steps .tm { font-size: 9.5px; } }
@container lk (max-width: 560px) { .steps[style*="--n:6"] .st:not(.now) .lb { visibility: hidden; } .steps[style*="--n:6"] .st.now .lb { white-space: nowrap; overflow: visible; max-width: none; } .steps[style*="--n:6"] .st:first-child.now .lb { align-self: flex-start; } .steps[style*="--n:6"] .st:last-child.now .lb { align-self: flex-end; } }
.steps .done .lb, .steps .now .lb { color: var(--text); }
.steps .tm { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--brand); border-radius: inherit; transition: width .8s var(--ease-out); }
.bar.bad > i { background: var(--bad); }

/* ---------- shell (staff & licensor) ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; height: 100%; }
.rail { display: none; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); background: var(--ink); color: var(--on-ink); background-image: var(--net); background-size: 360px; position: relative; z-index: 3; }
.topbar .brandmark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .title { font: 800 var(--fs-md)/1.1 var(--f-display); font-stretch: 108%; }
.topbar .sub { font-size: var(--fs-xs); color: var(--on-ink-2); font-weight: 600; }
.topbar .search { display: none; }
.main { overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
.main > .page { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-h .lead { color: var(--muted); font-weight: 600; margin-top: 4px; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px max(4px, env(safe-area-inset-bottom, 0px)); z-index: 3; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 7px 2px 6px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; border-radius: 12px; position: relative; -webkit-tap-highlight-color: transparent; }
.tabbar button .ic { width: 23px; height: 23px; }
.tabbar button[aria-current="page"] { color: var(--brand); }
.tabbar button[aria-current="page"]::after { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar .dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; line-height: 16px; }
@container lk (min-width: 940px) {
  .shell { grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { display: flex; flex-direction: column; grid-row: 1 / -1; background: var(--ink); background-image: var(--net), radial-gradient(120% 60% at 0% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 60%); background-size: 360px, 100% 100%; color: var(--on-ink); padding: 18px 14px 14px; gap: 4px; overflow: auto; }
  .rail .brandmark { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
  .rail .brandmark .title { font: 800 var(--fs-md)/1.1 var(--f-display); font-stretch: 108%; }
  .rail .brandmark .sub { font-size: var(--fs-xs); color: var(--on-ink-2); font-weight: 600; }
  .rail .nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 0; background: none; color: var(--on-ink-2); font-weight: 700; cursor: pointer; text-align: left; position: relative; transition: background .2s, color .2s; }
  .rail .nav:hover { background: rgba(255, 255, 255, .05); color: var(--on-ink); }
  .rail .nav[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
  .rail .nav .count { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
  .rail .nav .count.bad { background: var(--bad); color: #fff; }
  .rail .foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 10px; }
  .rail .powered { font-size: 11px; color: var(--on-ink-2); display: flex; align-items: center; gap: 7px; letter-spacing: .04em; }
  .rail .powered b { color: var(--brass-2); font-family: var(--f-display); font-stretch: 112%; letter-spacing: .08em; }
  .topbar { background: var(--surface); background-image: none; color: var(--text); border-bottom: 1px solid var(--line); padding: 12px 24px; }
  .topbar .brandmark { display: none; }
  .topbar .search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 460px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface-3); color: var(--muted); }
  .topbar .search input { flex: 1; border: 0; background: transparent; outline: none; font-weight: 600; color: var(--text); min-width: 0; }
  .topbar .ibtn .dot { box-shadow: 0 0 0 2px var(--surface); }
  .main { padding: 26px 28px 40px; }
  .tabbar { display: none; }
}

/* ---------- KPI tiles ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container lk (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease), box-shadow .25s; font: inherit; color: inherit; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.kpi .k-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--kb, var(--surface-3)); color: var(--kc, var(--text-2)); margin-bottom: 6px; }
.kpi .k-v { font: 800 var(--fs-2xl)/1 var(--f-display); font-stretch: 105%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .k-l { font-weight: 700; color: var(--muted); font-size: var(--fs-sm); }
.kpi.warn { --kb: var(--warn-bg); --kc: var(--warn); }
.kpi.info { --kb: var(--brand-soft); --kc: var(--brand); }
.kpi.ok { --kb: var(--ok-bg); --kc: var(--ok); }
.kpi.bad { --kb: var(--bad-bg); --kc: var(--bad); }
.kpi.bad.hot { border-color: color-mix(in oklab, var(--bad) 50%, var(--line)); box-shadow: 0 0 0 4px var(--bad-bg); }
.kpi.dark { background: var(--ink); color: var(--on-ink); border-color: transparent; background-image: var(--net); background-size: 300px; }
.kpi.dark .k-l { color: var(--on-ink-2); }

/* ---------- tour cards & lists ---------- */
.tours { display: grid; gap: 12px; grid-template-columns: 1fr; }
@container lk (min-width: 1240px) { .tours.two { grid-template-columns: 1fr 1fr; } }
.tour { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; text-align: left; font: inherit; color: inherit; width: 100%; animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.tour:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tour.prob { border-color: color-mix(in oklab, var(--bad) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--bad); }
.tour .route { font: 800 var(--fs-lg)/1.15 var(--f-display); font-stretch: 105%; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour .route .arr { color: var(--brand); }
.tour .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; align-items: center; }
.tour .meta .ic { color: var(--muted); }
.flash { animation: flash 1.6s var(--ease-out); }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font: inherit; color: inherit; transition: background .15s; min-width: 0; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li .t1 { font-weight: 750; }
.li .t2 { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.li.unread { background: color-mix(in oklab, var(--brand) 6%, transparent); }
.li.unread .t1::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--brand); vertical-align: .15em; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- live feed ---------- */
.feed { display: flex; flex-direction: column; padding: 4px 0 8px; }
.fe { display: grid; grid-template-columns: 54px 30px 1fr; gap: 10px; align-items: start; padding: 9px 18px; animation: rise .45s var(--ease-out) both; }
.fe time { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; padding-top: 6px; font-variant-numeric: tabular-nums; }
.fe .fi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.fe .fi .ic { width: 15px; height: 15px; }
.fe .fi.ok { background: var(--ok-bg); color: var(--ok); } .fe .fi.bad { background: var(--bad-bg); color: var(--bad); } .fe .fi.brand { background: var(--brand-soft); color: var(--brand); }
.fe b { font-weight: 750; } .fe p { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }

/* ---------- sheet (drawer / bottom sheet) ---------- */
.sheet-bg { position: absolute; inset: 0; z-index: 40; background: rgba(4, 9, 15, .48); backdrop-filter: blur(3px); animation: fade .25s both; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 94%; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-3); animation: up .42s var(--ease-out) both; overflow: hidden; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line-2); }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 22px 20px 12px; }
.sheet-h h2 { font-size: var(--fs-lg); flex: 1; min-width: 0; }
.sheet-b { overflow: auto; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.sheet-f { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px max(14px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
@container lk (min-width: 940px) {
  .sheet { left: auto; top: 0; width: min(640px, 92%); max-height: none; border-radius: 26px 0 0 26px; animation: slidein .45s var(--ease-out) both; }
  .sheet.wide { width: min(880px, 94%); }
  .sheet::before { display: none; }
  .sheet-h { padding: 24px 26px 14px; } .sheet-b { padding: 4px 26px 24px; } .sheet-f { padding: 14px 26px; }
}
.section-t { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.section-t::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.place { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
.place .pin { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.place .pin.b { background: var(--ink); color: var(--brass-2); }
.place .pin .ic { width: 15px; height: 15px; }
.place b { font-weight: 800; }
.place .line { grid-column: 1; justify-self: center; width: 2px; min-height: 22px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 5px, transparent 5px 9px); }
.docs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.doc { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); cursor: zoom-in; padding: 0; max-width: 100%; }
.doc img { width: 100%; height: 100%; object-fit: cover; }
.doc .tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 7px; background: rgba(11, 22, 34, .78); color: #fff; font-size: 10.5px; font-weight: 800; }
.doc .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(11, 22, 34, .78); color: #fff; display: grid; place-items: center; cursor: pointer; }
.doc.add { display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed var(--brand-line); background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--fs-sm); cursor: pointer; }
.doc.add .ic { width: 30px; height: 30px; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 46px 24px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.tl::before { content: ""; position: absolute; left: 67px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl time { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl .tn { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); z-index: 1; }
.tl .tn .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.tl .tn.ok { background: var(--ok-bg); color: var(--ok); } .tl .tn.bad { background: var(--bad-bg); color: var(--bad); } .tl .tn.brand { background: var(--brand-soft); color: var(--brand); }
.tl b { font-weight: 750; font-size: var(--fs-sm); } .tl p { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.tl.undone { opacity: .45; } .tl.undone b { text-decoration: line-through; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { max-width: 86%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); font-size: var(--fs-sm); font-weight: 600; align-self: flex-start; }
.note.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--brand); color: var(--brand-ink); }
.note small { display: block; font-size: 10.5px; opacity: .7; font-weight: 700; margin-top: 2px; }
.suggest { position: relative; }
.suggest .menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; animation: rise .2s both; }
.suggest .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: var(--fs-sm); }
.suggest .menu button small { display: block; color: var(--muted); font-weight: 600; }
.suggest .menu button:hover { background: var(--surface-2); }

/* ---------- toasts (push-style banners) ---------- */
.toasts { position: absolute; z-index: 60; top: max(10px, env(safe-area-inset-top, 0px)); left: 50%; width: min(420px, calc(100% - 20px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@container lk (min-width: 940px) { .toasts { left: auto; right: 22px; top: 74px; transform: none; } }
.toast { pointer-events: auto; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 18px; background: color-mix(in oklab, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: drop .5s var(--ease-out) both; cursor: pointer; }
.toast.out { animation: lift .35s var(--ease) both; }
.toast .ti { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.toast .ti img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.toast b { display: block; font-weight: 800; font-size: var(--fs-sm); line-height: 1.25; }
.toast p { font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; line-height: 1.3; }
.toast.high { border-color: color-mix(in oklab, var(--bad) 55%, var(--line)); }
.toast.high .ti { background: var(--bad); color: #fff; }
.toast .act { border: 0; background: var(--surface-3); color: var(--text); font-weight: 800; font-size: var(--fs-xs); padding: 8px 11px; border-radius: 10px; cursor: pointer; }
.toast.plain { grid-template-columns: 24px 1fr auto; padding: 12px 14px; }
.toast.plain .ti { width: 24px; height: 24px; background: none; color: var(--ok); }
.toast.plain.err .ti { color: var(--bad); }

/* ---------- lightbox ---------- */
.lightbox { position: absolute; inset: 0; z-index: 70; background: rgba(4, 9, 15, .92); display: grid; grid-template-rows: auto 1fr; animation: fade .2s both; }
.lightbox .lb-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; padding: 0 12px 16px; animation: zoom .35s var(--ease-out) both; }

/* ---------- driver app ---------- */
.drv { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: var(--bg); }
.drv-top { position: relative; color: var(--on-ink); background: var(--ink); background-image: var(--net), radial-gradient(130% 120% at 100% 0%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 62%); background-size: 360px, 100% 100%; padding: max(12px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 14px max(14px, env(safe-area-inset-left, 0px)); z-index: 2; }
.drv-top .bar1 { display: flex; align-items: center; gap: 10px; }
.drv-top .logo-chip { height: 38px; }
.drv-top .hi { font: 800 var(--fs-lg)/1.15 var(--f-display); font-stretch: 106%; margin-top: 12px; }
.drv-top .hi small { display: block; font: 600 var(--fs-sm) var(--f-text); color: var(--on-ink-2); margin-top: 2px; }
.drv-top .vrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.vbtn { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--on-ink); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); }
.vbtn .ic { color: var(--brass-2); }
.drv-main { overflow: auto; overscroll-behavior: contain; padding: 14px max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; min-height: 0; }
@container lk (min-width: 700px) { .drv-solo { width: 100%; max-width: 720px; margin: 0 auto; } .drv-main { padding: 22px 24px 30px; } .drv-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; } }
.job { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; animation: rise .5s var(--ease-out) both; }
.job-h { padding: 16px 18px 6px; display: flex; align-items: center; gap: 10px; }
.job-route { padding: 6px 18px 14px; }
.job-route .cities { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.job-route .city { font: 850 clamp(1.05rem, 5.4cqi, 2.1rem)/1.04 var(--f-display); font-stretch: 104%; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.job-route .city.to { text-align: right; }
.job-route .city.long { font-size: clamp(1rem, 4.3cqi, 1.85rem); }
.job-route .city.xlong { font-size: clamp(.95rem, 3.6cqi, 1.6rem); }
.job-route .lane { align-self: center; width: clamp(40px, 16cqi, 140px); height: 22px; }
.job-route .lane path { stroke: var(--brand); stroke-width: 3; fill: none; stroke-dasharray: 6 7; animation: lane 1.6s linear infinite; }
.job-route .lane circle { fill: var(--brand); }
.job-route .when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 650; }
.job-route .when div:last-child { text-align: right; }
.job-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.fact { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 11px; background: var(--surface-3); font-weight: 750; font-size: var(--fs-sm); }
.fact .ic { color: var(--muted); }
.fact.adr { background: #ff8c1a; color: #111; } .fact.adr .ic { color: #111; }
.fact.cold { background: var(--info-bg); color: var(--info); } .fact.cold .ic { color: var(--info); }
.job-note { margin: 0 18px 14px; padding: 11px 13px; border-radius: 13px; background: var(--brand-soft); font-size: var(--fs-sm); font-weight: 650; display: flex; gap: 10px; }
.job-note .ic { color: var(--brand); margin-top: 2px; }
.job .steps { padding: 6px 14px 14px; }
.job-act { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.step-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; padding: 16px 20px; border: 0; border-radius: 22px; background: var(--brand); color: var(--brand-ink); cursor: pointer; text-align: left; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 30px color-mix(in oklab, var(--brand) 40%, transparent); transition: transform .18s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.step-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-120%); animation: shine 3.6s 1s infinite; pointer-events: none; }
.step-btn:active { transform: scale(.975); }
.step-btn .si { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.step-btn .si .ic { width: 32px; height: 32px; stroke-width: 2.2; }
.step-btn b { display: block; font: 850 clamp(1.15rem, 5cqi, 1.6rem)/1.08 var(--f-display); font-stretch: 104%; letter-spacing: -.01em; }
.step-btn small { display: block; font-weight: 650; opacity: .82; margin-top: 3px; font-size: var(--fs-sm); }
.step-btn .go { margin-left: auto; opacity: .7; }
.step-btn.ok { background: var(--ok); box-shadow: 0 12px 30px color-mix(in oklab, var(--ok) 40%, transparent); }
.step-btn.locked { filter: grayscale(.8); opacity: .6; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick button, .quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 750; font-size: 11.5px; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s; -webkit-tap-highlight-color: transparent; min-width: 0; }
.quick button:active, .quick a:active { transform: scale(.95); }
.quick .ic { width: 26px; height: 26px; color: var(--brand); }
.quick .warn .ic { color: var(--bad); }
.quick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.offer.mine { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.offer .route { font: 800 var(--fs-lg)/1.15 var(--f-display); font-stretch: 105%; }
.offer .take { min-height: 60px; border-radius: 16px; font-size: var(--fs-md); }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 118px; transition: transform .15s, border-color .2s, box-shadow .2s; position: relative; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.97); }
.tile[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.tile[disabled] { opacity: .45; cursor: not-allowed; }
.tile .tt { font-weight: 750; font-size: var(--fs-sm); color: var(--muted); }
.tile .ic.big { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.8; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pgrid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 10px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: var(--fs-sm); cursor: pointer; color: var(--text); text-align: center; }
.pgrid button .ic { width: 30px; height: 30px; color: var(--bad); }
.pgrid button[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-bg); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.stepper button { width: 54px; height: 54px; border: 0; background: var(--surface-3); font-size: 24px; font-weight: 800; cursor: pointer; color: var(--text); }
.stepper output { flex: 1; text-align: center; font: 800 var(--fs-xl) var(--f-display); font-variant-numeric: tabular-nums; }
.sig { width: 100%; height: 190px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface-2); touch-action: none; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; opacity: .7; }
.lang-chips button { border: 1px solid var(--line-2); background: var(--surface); padding: 10px 14px; border-radius: 20px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; color: var(--text); min-height: 44px; }
.lang-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip { border: 1px solid var(--line-2); background: var(--surface); padding: 9px 13px; border-radius: 20px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; color: var(--text); }
.chip:active { transform: scale(.96); }
.success { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 14px; background: color-mix(in oklab, var(--ok) 92%, black); color: #fff; text-align: center; animation: fade .2s both; padding: 20px; }
.success .burst { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); position: relative; animation: pop .6s var(--ease-out) both; }
.success .burst::before, .success .burst::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: wave 1.1s .1s var(--ease-out) both; }
.success .burst::after { inset: -34px; animation-delay: .25s; border-color: rgba(255, 255, 255, .25); }
.success .burst .ic { width: 64px; height: 64px; stroke-width: 2.6; }
.success .burst path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease-out) forwards; }
.success h2 { font-size: var(--fs-2xl); animation: rise .45s .2s var(--ease-out) both; }
.success p { font-weight: 650; opacity: .9; animation: rise .45s .3s var(--ease-out) both; }
.lockcover { position: absolute; inset: 0; z-index: 55; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; padding: 24px; background: rgba(6, 12, 20, .94); color: #fff; animation: fade .25s both; }
.lockcover .ic { width: 72px; height: 72px; color: var(--brass-2); stroke-width: 1.6; }
.offline { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--warn); color: #111; font-weight: 800; font-size: var(--fs-sm); }
.undo { position: absolute; z-index: 45; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-3); font-weight: 700; font-size: var(--fs-sm); animation: up .4s var(--ease-out) both; white-space: nowrap; max-width: calc(100% - 20px); }
.drv.has-undo .drv-main { padding-bottom: 92px; }
.btn.two-line { white-space: normal; justify-content: flex-start; text-align: left; padding-block: 10px; min-height: 64px; }
.btn.two-line > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btn.two-line small { font-size: var(--fs-sm); font-weight: 650; opacity: .88; font-variant-numeric: tabular-nums; }
.pwfirst .login-in { max-width: 520px; grid-template-columns: minmax(0, 1fr) !important; }
.danger-zone { border: 1px solid color-mix(in oklab, var(--bad) 40%, var(--line)); }
.undo button { border: 0; border-radius: 11px; padding: 10px 14px; background: var(--brass); color: var(--brass-ink); font-weight: 850; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.undo .ring { width: 22px; height: 22px; } .undo .ring circle { fill: none; stroke: var(--brass-2); stroke-width: 3; stroke-dasharray: 63; animation: countdown var(--dur, 120s) linear forwards; transform: rotate(-90deg); transform-origin: center; }

/* ---------- login & launcher ---------- */
.login { position: relative; height: 100%; overflow: auto; background: var(--ink); color: var(--on-ink); display: block; }
.login canvas.net { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone .login canvas.net, .pane .login canvas.net { position: absolute; }
.login-in { position: relative; z-index: 1; display: grid; gap: 28px; align-content: center; padding: max(28px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 28px max(18px, env(safe-area-inset-left, 0px)); min-height: 100%; width: 100%; max-width: 1180px; margin: 0 auto; }
@container lk (min-width: 940px) { .login-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 48px 48px; } }
.wordmark { display: flex; align-items: center; gap: 12px; font: 850 22px var(--f-display); font-stretch: 125%; letter-spacing: .14em; color: #fff; }
.wordmark .mk { width: 40px; height: 40px; }
.hero h1 { font-size: clamp(2.2rem, 7.5cqi, 4.4rem); line-height: .98; letter-spacing: -.035em; color: #fff; font-weight: 850; font-stretch: 112%; margin-top: 26px; }
.hero h1 em { font-style: normal; color: var(--brass-2); }
.hero .lead { margin-top: 18px; max-width: 34ch; color: var(--on-ink-2); font-size: var(--fs-md); font-weight: 600; }
.hero .proof { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero .proof div { font-size: var(--fs-sm); color: var(--on-ink-2); font-weight: 600; }
.hero .proof b { display: block; font: 800 var(--fs-xl) var(--f-display); color: #fff; font-stretch: 105%; }
.panel-glass { border-radius: 26px; padding: 22px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .11); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 16px; animation: rise .7s .1s var(--ease-out) both; }
.panel-glass .input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.panel-glass .input::placeholder { color: rgba(232, 238, 245, .45); }
.panel-glass .field > span { color: var(--on-ink-2); }
.panel-glass .seg { background: rgba(255, 255, 255, .07); }
.panel-glass .seg button { color: var(--on-ink-2); }
.panel-glass .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.panel-glass .btn-ghost { --bt: var(--on-ink); }
.panel-glass .muted { color: var(--on-ink-2); }
.pin { display: flex; gap: 8px; justify-content: center; }
.pin i { width: 42px; height: 52px; border-radius: 13px; border: 1.5px solid rgba(255, 255, 255, .22); display: grid; place-items: center; font: 800 24px var(--f-display); font-style: normal; color: #fff; background: rgba(255, 255, 255, .05); transition: border-color .2s, transform .2s; }
.pin i.f { border-color: var(--brass-2); transform: translateY(-2px); }
.pin.err { animation: shake .4s; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.keypad button { height: 60px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font: 750 24px var(--f-display); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.keypad button:active { background: rgba(255, 255, 255, .2); transform: scale(.96); }
.keypad button.fn { background: transparent; font-size: 15px; font-family: var(--f-text); }
.brandlogin { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.brandlogin .logo-chip { height: 64px; padding: 10px 16px; border-radius: 18px; }
.roles { display: grid; gap: 12px; }
.role { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; text-align: left; font: inherit; transition: background .2s, transform .2s var(--ease), border-color .2s; }
.role:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); border-color: rgba(255, 255, 255, .22); }
.role .ri { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--brass-2); }
.role .ri .ic { width: 24px; height: 24px; }
.role b { display: block; font-weight: 800; font-size: var(--fs-md); }
.role small { color: var(--on-ink-2); font-weight: 600; }
.role.feature { border-color: color-mix(in oklab, var(--brass) 60%, transparent); background: linear-gradient(120deg, rgba(200, 164, 92, .18), rgba(255, 255, 255, .04)); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs button { border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--on-ink-2); padding: 5px 10px; border-radius: 9px; font-weight: 700; font-size: 12px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--on-ink-2); }
.legal-links a { color: inherit; text-decoration: none; } .legal-links a:hover { color: #fff; }

/* ---------- licensor ---------- */
.mrr { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px; color: var(--on-ink); background: var(--ink); background-image: var(--net), radial-gradient(90% 140% at 100% 0%, rgba(200, 164, 92, .35), transparent 60%); background-size: 360px, 100% 100%; display: grid; gap: 18px; }
@container lk (min-width: 900px) { .mrr { grid-template-columns: 1.2fr 1fr 1fr 1fr; align-items: end; } }
.mrr .big { font: 850 clamp(2.2rem, 6cqi, 3.4rem)/1 var(--f-display); font-stretch: 108%; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.mrr .lbl { color: var(--on-ink-2); font-weight: 700; font-size: var(--fs-sm); }
.mrr .sm { font: 800 var(--fs-xl) var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.planbar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .1); gap: 2px; }
.planbar i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); font-weight: 700; color: var(--on-ink-2); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--c); }
.tlogo { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; padding: 4px; }
.tlogo img { width: 100%; height: 100%; object-fit: contain; }
.seats { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.seats .bar { flex: 1; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.plan.hl { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200, 164, 92, .18); }
.plan .price { font: 850 var(--fs-3xl)/1 var(--f-display); font-stretch: 105%; letter-spacing: -.03em; }
.plan .price small { font: 700 var(--fs-sm) var(--f-text); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.plan li { display: flex; gap: 8px; } .plan li .ic { color: var(--ok); width: 17px; height: 17px; margin-top: 2px; }
.secret { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: var(--ink); color: #fff; font: 800 var(--fs-lg) var(--f-display); font-stretch: 90%; letter-spacing: .1em; }
.secret .grow { overflow-wrap: anywhere; }
.qr { width: 168px; height: 168px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.preview-phone { width: 220px; height: 420px; border-radius: 34px; padding: 9px; background: #0a0f15; box-shadow: var(--shadow-2), inset 0 0 0 2px #2a3442; flex: none; }
.preview-phone .scr { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.preview-phone .ph-top { padding: 14px 12px 12px; background: var(--ink); background-image: radial-gradient(130% 120% at 100% 0%, color-mix(in oklab, var(--brand) 60%, transparent), transparent 62%); color: #fff; }
.preview-phone .ph-btn { margin: 10px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); padding: 14px; font: 800 14px var(--f-display); display: flex; gap: 8px; align-items: center; }

/* ---------- demo frame (split view) ---------- */
.demo-split { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr auto; background: #05090e; }
.demo-split > .pane { position: relative; min-width: 0; overflow: hidden; }
.demo-split > .pane.office { border-right: 1px solid #1a2636; }
.demo-split .phone-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 22px; background: radial-gradient(80% 60% at 50% 30%, #13233a, #05090e); }
.phone { width: 390px; height: min(844px, calc(100vh - 110px)); border-radius: 54px; padding: 12px; background: linear-gradient(145deg, #2b3542, #0d1218); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #3a4656; position: relative; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 112px; height: 30px; margin-left: -56px; border-radius: 20px; background: #000; z-index: 5; }
.phone > .screen { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: var(--bg); --sat: 44px; }
.phone .screen .drv-top, .phone .screen .login-in { padding-top: 54px; }
.phone-cap { color: #9fb0c3; font-size: 12px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.phone-cap select { background: #13233a; color: #fff; border: 1px solid #2a3c50; border-radius: 9px; padding: 6px 8px; font-weight: 700; }
@media (max-width: 980px) { .demo-split { grid-template-columns: 1fr; } .demo-split .phone-col { display: none; } }
.demo-pill { position: fixed; z-index: 90; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(11, 22, 34, .9); backdrop-filter: blur(12px); color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; max-width: calc(100% - 20px); overflow-x: auto; }
.demo-pill .tag { padding: 0 10px; color: var(--brass-2); letter-spacing: .1em; font-family: var(--f-display); font-stretch: 112%; }
.demo-pill button { border: 0; background: transparent; color: #dfe7f0; padding: 8px 11px; border-radius: 11px; cursor: pointer; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.demo-pill button:hover { background: rgba(255, 255, 255, .1); }

/* ---------- print (Abliefernachweis) ---------- */
.proof-doc { background: #fff; color: #111; padding: 28px; border-radius: 12px; font-size: 13px; }
.proof-doc h1 { font-size: 24px; color: #111; }
.proof-doc table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.proof-doc td, .proof-doc th { border-bottom: 1px solid #ddd; padding: 6px 4px; text-align: left; vertical-align: top; }
.proof-doc .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
@media print {
  body * { visibility: hidden; }
  .proof-doc, .proof-doc * { visibility: visible; }
  .proof-doc { position: absolute; inset: 0; padding: 0; }
}

/* ---------- legal pages ---------- */
.legal-doc { font-size: var(--fs-base); line-height: 1.65; color: var(--text); }
.legal-doc h1 { font-size: var(--fs-2xl); margin: 18px 0 10px; } .legal-doc h2 { font-size: var(--fs-lg); margin: 26px 0 8px; } .legal-doc h3 { font-size: var(--fs-md); margin: 18px 0 6px; }
.legal-doc p, .legal-doc li { margin: 0 0 10px; max-width: 72ch; } .legal-doc blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.legal-doc table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); display: block; overflow-x: auto; } .legal-doc td, .legal-doc th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }

/* ---------- skeleton ---------- */
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.3s infinite; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes lift { to { opacity: 0; transform: translateY(-16px) scale(.97); } }
@keyframes zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes wave { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--brand) 6%, transparent); } }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes lane { to { stroke-dashoffset: -26; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 55%, transparent); border-color: var(--brand); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes countdown { to { stroke-dashoffset: 63; } }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- client-driver ---- */
/* quick actions: long labels (tr, ru, uk) get two lines and a smaller size on narrow phones, never "…" */
.quick span { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 400px) { .quick button, .quick a { font-size: 10.5px; padding-left: 2px; padding-right: 2px; } }
/* a step on its way cannot be tapped twice */
.step-btn.is-busy { pointer-events: none; opacity: .75; }

/* ---- office-ui ---- */
/* language buttons (8 languages) wrap instead of scrolling sideways */
.seg.wrap { flex-wrap: wrap; overflow: visible; }
/* storage bar on the licence page: warning from 80 % */
.bar.warn > i { background: var(--warn); }
/* document type next to "Lieferschein & Fotos" in the delivery sheet */
.doc-kind { width: auto; min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-sm); }
/* 2FA secret for manual entry: long base32 text, smaller than a PIN */
.secret.small { font-size: var(--fs-sm); letter-spacing: .06em; }

/* ---- licensor-demo ---- */
/* phones 360–414 px (console and office): the topbar CTA shrinks to its icon (label stays for screen
   readers), titles ellipsize, tab labels and tour cards never widen the page */
@container lk (max-width: 520px) {
  .shell .topbar .btn-primary { padding-left: 12px; padding-right: 12px; }
  .shell .topbar .btn-primary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.shell .topbar .brandmark > div { min-width: 0; }
.shell .topbar .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .tabbar { grid-auto-columns: minmax(0, 1fr); }
.shell .tabbar button { min-width: 0; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.tours { grid-template-columns: minmax(0, 1fr); }
@container lk (min-width: 1240px) { .tours.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tour > .row > .row { flex-wrap: wrap; }
/* euro amounts in the console's KPI tiles fit two columns on a phone */
@container lk (max-width: 440px) { .lk.platform .kpi .k-v { font-size: var(--fs-xl); overflow-wrap: anywhere; } }
/* billing rules and over-limit details */
.bill-rules { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-weight: 600; }
/* 2FA hint: the button moves below the text on phones */
.banner.tfa-hint { flex-wrap: wrap; } .banner.tfa-hint .grow { flex: 1 1 220px; }
/* demo: the pill lives in a strip below the app, so it never covers tab bar, sheets or the undo bar */
#app > .demo-main { height: 100%; }
#app.demo-framed { --pill-h: calc(58px + env(safe-area-inset-bottom, 0px)); background: #05090e; }
#app.demo-framed > .demo-main { height: calc(100% - var(--pill-h)); min-height: 0; }
#app.demo-framed > .demo-split { bottom: var(--pill-h); }
#app.demo-framed .phone { height: min(844px, calc(100vh - 110px - var(--pill-h))); }
#app.demo-framed .tabbar { padding-bottom: 4px; }
#app.demo-framed .sheet-f { padding-bottom: 14px; }
#app.demo-framed .demo-pill { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
.demo-pill button.armed { background: var(--bad); color: #fff; }
@media (max-width: 520px) {
  .demo-pill { gap: 2px; padding: 4px; font-size: 11.5px; }
  .demo-pill .tag { display: none; }
  .demo-pill button { padding: 8px 8px; gap: 5px; }
  .demo-pill button.mini:not(.armed) span { display: none; }
}
.demo-note { position: fixed; z-index: 95; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 14px; background: rgba(11, 22, 34, .94); color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; cursor: pointer; animation: drop .4s both; }
.demo-note .ic { width: 18px; height: 18px; color: #e6cd92; flex: none; }
.demo-note b { display: block; } .demo-note small { color: #b9c6d4; }
