/*!
 * HEXAGON app styles: shared by sign-in, customer, employee and admin screens.
 *
 * Design: the brand's light showroom (platinum page, ink type, Instrument Sans) with
 * gloss-black "stage" cards for the live status of a car. Colour comes only from the
 * dashboard telltales: green = done / on, amber = needs attention, red = missed / off.
 * Shape rule: controls are pills, stages 28px, cards 20px, fields 14px.
 */

/* ---------- 1. Tokens ---------- */
:root {
  --platinum: #f2f3f5;
  --white: #ffffff;
  --mist: #e8eaed;
  --ink-0: #0a0b0d;
  --stage-0: #07080a;

  --bg: var(--platinum);
  --surface: var(--white);
  --surface-2: #f7f8f9;
  --sunken: var(--mist);
  --ink: var(--ink-0);
  --ink-2: #24272c;
  --text-2: #3b3f47;
  --text-3: #5f646d;
  --line: rgba(10, 11, 13, 0.09);
  --line-2: rgba(10, 11, 13, 0.16);
  --line-3: rgba(10, 11, 13, 0.3);
  --scrim: rgba(7, 8, 10, 0.48);

  --stage: var(--stage-0);
  --stage-2: #111317;
  --on-stage: #f4f5f7;
  --on-stage-2: rgba(244, 245, 247, 0.74);
  --on-stage-3: rgba(244, 245, 247, 0.56);
  --on-stage-line: rgba(244, 245, 247, 0.14);

  --go: #19d36e;
  --go-ink: #0a6e39;
  --go-soft: rgba(25, 211, 110, 0.14);
  --amber: #ffb020;
  --amber-ink: #8f5400;
  --amber-soft: rgba(255, 176, 32, 0.16);
  --stop: #ff3b30;
  --stop-ink: #c4231a;
  --stop-soft: rgba(255, 59, 48, 0.12);

  --btn-bg: var(--ink-0);
  --btn-fg: #ffffff;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.84375rem;
  --fs-md: 0.9375rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.625rem;
  --fs-h1: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
  --fs-num: clamp(3rem, 2.4rem + 3vw, 4rem);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 56px;
  --gutter: 16px;

  --r-stage: 28px;
  --r-card: 20px;
  --r-field: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(10, 11, 13, 0.04), 0 8px 24px -14px rgba(10, 11, 13, 0.14);
  --shadow-2: 0 2px 6px rgba(10, 11, 13, 0.05), 0 24px 60px -24px rgba(10, 11, 13, 0.26);
  --shadow-3: 0 30px 80px -20px rgba(7, 8, 10, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-press: 120ms;
  --t-quick: 220ms;
  --t-sheet: 420ms;
  --t-reveal: 700ms;

  --tabbar-h: 68px;
  --topbar-h: 60px;
  --app-w: 600px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --z-sticky: 20;
  --z-fab: 30;
  --z-tabbar: 40;
  --z-sheet: 60;
  --z-toast: 80;
  --z-skip: 90;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080a;
    --surface: #111317;
    --surface-2: #16191e;
    --sunken: #1c2026;
    --ink: #f4f5f7;
    --ink-2: #e2e4e8;
    --text-2: #c2c6cd;
    --text-3: #9499a2;
    --line: rgba(244, 245, 247, 0.09);
    --line-2: rgba(244, 245, 247, 0.16);
    --line-3: rgba(244, 245, 247, 0.3);
    --scrim: rgba(0, 0, 0, 0.62);
    --stage: #030405;
    --stage-2: #0c0e11;
    --go-ink: #3fe08c;
    --amber-ink: #ffc24d;
    --stop-ink: #ff6b62;
    --btn-bg: #f4f5f7;
    --btn-fg: #0a0b0d;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
    --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #07080a;
  --surface: #111317;
  --surface-2: #16191e;
  --sunken: #1c2026;
  --ink: #f4f5f7;
  --ink-2: #e2e4e8;
  --text-2: #c2c6cd;
  --text-3: #9499a2;
  --line: rgba(244, 245, 247, 0.09);
  --line-2: rgba(244, 245, 247, 0.16);
  --line-3: rgba(244, 245, 247, 0.3);
  --scrim: rgba(0, 0, 0, 0.62);
  --stage: #030405;
  --stage-2: #0c0e11;
  --go-ink: #3fe08c;
  --amber-ink: #ffc24d;
  --stop-ink: #ff6b62;
  --btn-bg: #f4f5f7;
  --btn-fg: #0a0b0d;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
canvas { display: block; max-width: 100%; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a,
button,
input,
select,
textarea,
label { touch-action: manipulation; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1,
h2,
h3,
h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; hyphens: none; }

p { margin: 0; text-wrap: pretty; }

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

.stage :focus-visible { outline-color: var(--on-stage); }

::selection { background: var(--go); color: var(--ink-0); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--t-quick) var(--ease);
}

.skip:focus { transform: none; }

[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- 3. Icons ---------- */
.ic {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.22em;
}

.ic--s { width: 1em; height: 1em; }
.ic--l { width: 1.6em; height: 1.6em; }
.ic--xl { width: 2.2em; height: 2.2em; }

.logo-mark {
  display: inline-block;
  width: 26px;
  aspect-ratio: 1498 / 1696;
  background: currentColor;
  -webkit-mask: url("../images/logo-mark.svg") center / contain no-repeat;
  mask: url("../images/logo-mark.svg") center / contain no-repeat;
}

.logo-word {
  display: inline-block;
  height: 14px;
  aspect-ratio: 3120 / 444;
  background: currentColor;
  -webkit-mask: url("../images/logo-wordmark.svg") center / contain no-repeat;
  mask: url("../images/logo-wordmark.svg") center / contain no-repeat;
}

/* ---------- 4. Telltale LEDs ---------- */
.led {
  --c: var(--go);
  --h: var(--go-soft);
  flex: none;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--h);
}

.led--amber { --c: var(--amber); --h: var(--amber-soft); }
.led--stop { --c: var(--stop); --h: var(--stop-soft); }
.led--off { --c: var(--line-3); --h: transparent; }
.stage .led { box-shadow: 0 0 10px var(--c), 0 0 2px var(--c); }
.stage .led--off { box-shadow: none; background: var(--on-stage-3); }
.led--live { animation: led-live 1.6s var(--ease-io) infinite; }

@keyframes led-live {
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ---------- 5. Type helpers ---------- */
.t-h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.025em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.02em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; }
.t-lead { font-size: var(--fs-lead); color: var(--text-2); }
.t-sm { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-muted { color: var(--text-3); }
.t-2 { color: var(--text-2); }
.t-go { color: var(--go-ink); }
.t-amber { color: var(--amber-ink); }
.t-stop { color: var(--stop-ink); }
.t-strong { font-weight: 600; }

.t-num {
  font-size: var(--fs-num);
  font-weight: 600;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}

.t-cond {
  font-stretch: 82%;
  font-variation-settings: "wdth" 82;
}

.label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease), background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), opacity var(--t-quick);
  user-select: none;
  touch-action: manipulation;
}

@media (hover: hover) {
  .btn:hover { box-shadow: 0 10px 24px -14px rgba(10, 11, 13, 0.55); transform: translateY(-1px); }
  .btn--soft:hover { background: var(--line-2); box-shadow: none; }
  .btn--ghost:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-3); }
  .btn--stage-ghost:hover { transform: none; box-shadow: inset 0 0 0 1px var(--on-stage-2); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
  .chip.is-on:hover,
  .chip[aria-pressed="true"]:hover { box-shadow: none; }
  .icon-btn:hover { background: var(--sunken); }
  a.list-row:hover,
  button.list-row:hover { background: var(--surface-2); border-radius: 12px; }
  .link-btn:hover,
  a:hover { text-decoration-thickness: 2px; }
}

.btn:active { transform: scale(0.97); }
.btn[disabled],
.btn.is-disabled { opacity: 0.42; pointer-events: none; }

.btn--soft { background: var(--sunken); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--go { background: var(--go); color: #04170c; }
.btn--danger { background: var(--stop-soft); color: var(--stop-ink); }
.btn--wa { background: #11803f; color: #ffffff; }
.btn--light { background: var(--on-stage); color: var(--ink-0); }
.btn--stage-ghost { background: rgba(244, 245, 247, 0.08); color: var(--on-stage); box-shadow: inset 0 0 0 1px var(--on-stage-line); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-sm); gap: 8px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-body); }

/* Trailing icon sits in its own small disc, nudges on hover. */
.btn__end {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform var(--t-quick) var(--ease);
}

.btn--soft .btn__end,
.btn--ghost .btn__end { background: var(--surface); }
.btn--go .btn__end { background: rgba(4, 23, 12, 0.12); }
.btn:hover .btn__end { transform: translateX(2px); }

.btn .spin { display: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy > :not(.spin) { opacity: 0; }
.btn.is-busy .spin { display: block; position: absolute; inset: 0; margin: auto; }

.spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.16;
  transform: scale(0);
  animation: ripple 560ms var(--ease) forwards;
  pointer-events: none;
}

@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-press) var(--ease), background-color var(--t-quick);
}

.icon-btn:active { transform: scale(0.92); }
.icon-btn--bare { background: transparent; box-shadow: none; }
.stage .icon-btn { background: rgba(244, 245, 247, 0.08); color: var(--on-stage); box-shadow: inset 0 0 0 1px var(--on-stage-line); }

.badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--stop);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
  animation: pop 420ms var(--ease-back);
}

@keyframes pop {
  from { transform: scale(0.2); }
  to { transform: scale(1); }
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- 7. Pills, chips, plates ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.pill--go { background: var(--go-soft); color: var(--go-ink); }
.pill--amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill--stop { background: var(--stop-soft); color: var(--stop-ink); }
.pill--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.stage .pill { background: rgba(244, 245, 247, 0.08); color: var(--on-stage); box-shadow: inset 0 0 0 1px var(--on-stage-line); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick), box-shadow var(--t-quick), transform var(--t-press);
}

.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"],
.chip.is-on { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.chip .count { opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Sindh-style number plate */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px 0 6px;
  border-radius: 6px;
  background: #fbfbfa;
  color: #0a0b0d;
  box-shadow: inset 0 0 0 1.5px #0a0b0d, 0 1px 0 rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
  font-stretch: 82%;
  font-variation-settings: "wdth" 82;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.plate::before {
  content: "KHI";
  display: inline-grid;
  place-items: center;
  height: 18px;
  padding: 0 4px;
  border-radius: 3px;
  background: #0b7a3f;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.plate--lg { height: 36px; font-size: 1.2rem; padding: 0 12px 0 8px; }
.plate--lg::before { height: 22px; font-size: 10px; }

/* ---------- 8. Cards and stages ---------- */
.card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: var(--s5);
}

.card--flat { box-shadow: inset 0 0 0 1px var(--line); }
.card--tap { cursor: pointer; transition: transform var(--t-press) var(--ease), box-shadow var(--t-quick) var(--ease); }
.card--tap:hover { box-shadow: var(--shadow-2); }
.card--tap:active { transform: scale(0.985); }

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.card__title { font-size: var(--fs-lead); font-weight: 600; }

/* The stage: a gloss-black plate set in a thin metal tray (double bezel). */
.stage-shell {
  padding: 6px;
  border-radius: calc(var(--r-stage) + 6px);
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.06), rgba(10, 11, 13, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
}

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-stage);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.11), transparent 60%),
    radial-gradient(60% 50% at 85% 110%, rgba(25, 211, 110, 0.07), transparent 70%),
    var(--stage);
  color: var(--on-stage);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-2);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask: linear-gradient(180deg, transparent, #000 40%, transparent);
  pointer-events: none;
}

.stage .t-muted { color: var(--on-stage-3); }
.stage .t-2 { color: var(--on-stage-2); }

/* ---------- 9. Forms ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field + .field,
.field + .row-2,
.row-2 + .field,
.row-2 + .row-2 { margin-top: var(--s4); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 1rem;
  transition: box-shadow var(--t-quick) var(--ease), background-color var(--t-quick);
  appearance: none;
}

.textarea { min-height: 96px; resize: vertical; line-height: 1.45; field-sizing: content; }

.select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-3); opacity: 1; }

.input:hover,
.select:hover,
.textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }

.input:focus,
.select:focus,
.textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { box-shadow: inset 0 0 0 2px var(--stop-ink); }

.field__hint { font-size: var(--fs-sm); color: var(--text-3); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--stop-ink);
  animation: shake 360ms var(--ease);
}

@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }

.input-wrap__btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.form-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: var(--stop-soft);
  color: var(--stop-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Segmented control */
.seg {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--sunken);
}

.seg__btn {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-quick);
}

.seg__btn[aria-pressed="true"] { color: var(--ink); }

.seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-sheet) var(--ease-spring), width var(--t-sheet) var(--ease-spring);
}

/* Option cards (radio-like) */
.options { display: grid; gap: 10px; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--t-quick) var(--ease), transform var(--t-press);
}

.option:active { transform: scale(0.985); }
.option[aria-checked="true"],
.option[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.option__tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-3);
  color: transparent;
  transition: background-color var(--t-quick), color var(--t-quick), box-shadow var(--t-quick);
}

.option[aria-checked="true"] .option__tick,
.option[aria-pressed="true"] .option__tick { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }

.option__tick .ic { width: 14px; height: 14px; }

/* Switch */
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--line-2);
  transition: background-color var(--t-quick) var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-quick) var(--ease-back);
}

.switch[aria-checked="true"] { background: var(--go); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- 10. Lists ---------- */
.list { display: grid; }

.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 4px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.list-row + .list-row { border-top: 1px solid var(--line); }
button.list-row,
a.list-row { transition: opacity var(--t-quick); }
button.list-row:active,
a.list-row:active { opacity: 0.6; }

.list-row__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--sunken);
  color: var(--ink-2);
}

.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-weight: 600; }
.list-row__meta { font-size: var(--fs-sm); color: var(--text-3); }
.list-row__end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--text-3); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 11. App shell (customer and employee) ---------- */
.app {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--tabbar-h) + var(--safe-b) + 56px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(var(--topbar-h) + var(--safe-t));
  margin: 0 calc(var(--gutter) * -1);
  padding: var(--safe-t) var(--gutter) 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow var(--t-quick);
}

.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.topbar__title { flex: 1; min-width: 0; }
.topbar__hello { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.2; }
.topbar__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.topbar__actions { display: flex; gap: 8px; }

.view {
  padding-top: var(--s3);
  view-transition-name: main-view;
}

.view-head { margin: var(--s4) 0 var(--s5); }
.view-head p { margin-top: 6px; color: var(--text-3); }

.section { margin-top: var(--s7); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--s3);
}

.section__title { font-size: var(--fs-lead); font-weight: 600; }

.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s5); }

/* Bottom tab bar */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  z-index: var(--z-tabbar);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: min(calc(100% - 24px), calc(var(--app-w) - 24px));
  height: var(--tabbar-h);
  padding: 6px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--stage) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -16px rgba(7, 8, 10, 0.6);
  transform: translateX(-50%);
}

.tabbar__thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: 18px;
  background: rgba(244, 245, 247, 0.1);
  box-shadow: inset 0 0 0 1px var(--on-stage-line);
  transition: transform var(--t-sheet) var(--ease-spring), width var(--t-sheet) var(--ease-spring);
  pointer-events: none;
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--on-stage-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--t-quick);
}

.tab .ic { width: 23px; height: 23px; transition: transform var(--t-quick) var(--ease-back); }
.tab[aria-current="page"] { color: var(--on-stage); }
.tab[aria-current="page"] .ic { transform: translateY(-1px) scale(1.06); }
.tab:focus-visible { outline-color: var(--on-stage); outline-offset: -4px; }

.tab .led {
  position: absolute;
  top: 9px;
  right: calc(50% - 18px);
  width: 7px;
  height: 7px;
}

/* Floating WhatsApp support button */
.wa-fab {
  position: fixed;
  right: max(16px, calc(50% - var(--app-w) / 2 + 16px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1fa855;
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(31, 168, 85, 0.7);
  transition: transform var(--t-quick) var(--ease-back);
}

.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(0.94); }
.wa-fab .ic { width: 26px; height: 26px; }
.wa-fab--plain { right: 20px; bottom: calc(20px + var(--safe-b)); }

/* WhatsApp as a round button inside a header, so nothing floats over the content */
.icon-btn--wa { background: #1fa855; color: #ffffff; box-shadow: 0 8px 18px -10px rgba(31, 168, 85, 0.8); }
.icon-btn--wa:hover { background: #1b9a4d; }
.auth__wa { position: absolute; top: 18px; right: 18px; z-index: 2; }

/* ---------- 12. Sheets, dialogs, toasts ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--t-sheet) var(--ease);
}

.scrim.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: calc(var(--z-sheet) + 1);
  display: flex;
  flex-direction: column;
  width: min(100%, var(--app-w));
  max-height: min(92dvh, 900px);
  border-radius: var(--r-stage) var(--r-stage) 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-3);
  transform: translate(-50%, 104%);
  transition: transform var(--t-sheet) var(--ease-spring);
  outline: none;
}

.sheet.is-open { transform: translate(-50%, 0); }
.sheet.is-dragging { transition: none; }

.sheet__grab {
  display: grid;
  place-items: center;
  height: 22px;
  flex: none;
  cursor: grab;
  touch-action: none;
}

.sheet__grab::before {
  content: "";
  width: 40px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--line-3);
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 20px 12px;
  flex: none;
}

.sheet__title { flex: 1; font-size: var(--fs-h3); font-weight: 600; }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px calc(24px + var(--safe-b));
}

.sheet__foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.sheet__foot .btn { flex: 1; }

@media (min-width: 720px) {
  .sheet {
    top: 50%;
    bottom: auto;
    width: min(calc(100% - 48px), 560px);
    max-height: min(86dvh, 860px);
    border-radius: var(--r-stage);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
    transition: transform var(--t-sheet) var(--ease-spring), opacity var(--t-quick) var(--ease);
  }

  .sheet.is-open { opacity: 1; transform: translate(-50%, -50%); }
  .sheet--wide { width: min(calc(100% - 48px), 760px); }
  .sheet__grab { height: 14px; }
  .sheet__grab::before { display: none; }
}

.toasts {
  position: fixed;
  top: calc(12px + var(--safe-t));
  left: 50%;
  z-index: var(--z-toast);
  display: grid;
  gap: 8px;
  width: min(calc(100% - 24px), 460px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;
  border-radius: 18px;
  background: var(--stage);
  color: var(--on-stage);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  font-size: var(--fs-md);
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in 520ms var(--ease-spring);
}

.toast.is-leaving { animation: toast-out 260ms var(--ease) forwards; }
.toast__icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(244, 245, 247, 0.1); }
.toast--go .toast__icon { background: var(--go); color: #04170c; }
.toast--stop .toast__icon { background: var(--stop); color: #ffffff; }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: 600; }
.toast__text { color: var(--on-stage-2); font-size: var(--fs-sm); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-120%) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-40%) scale(0.96); }
}

/* ---------- 13. Loading, empty, offline ---------- */
.skel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--sunken);
}

.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.4s var(--ease-io) infinite;
}

:root[data-theme="dark"] .skel::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.06) 50%, transparent 80%); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skel::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.06) 50%, transparent 80%); }
}

@keyframes shimmer { to { transform: translateX(100%); } }

.skel--line { height: 14px; border-radius: 8px; }
.skel--stage { height: 360px; border-radius: var(--r-stage); }
.skel--card { height: 96px; }

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: var(--s8) var(--s5);
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: var(--sunken);
  color: var(--text-2);
}

.empty__icon .ic { width: 30px; height: 30px; }
.empty__title { font-size: var(--fs-lead); font-weight: 600; }
.empty__text { max-width: 34ch; color: var(--text-3); font-size: var(--fs-md); }
.empty .btn { margin-top: 8px; }

.offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: calc(6px + var(--safe-t)) 12px 6px;
  background: var(--amber);
  color: #241500;
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform var(--t-quick) var(--ease);
}

.offline-bar.is-on { transform: none; }

.error-card {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--stop-soft);
  color: var(--stop-ink);
}

/* ---------- 14. Reveal and motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise 620ms var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }

::view-transition-old(main-view) { animation: vt-out 180ms var(--ease) both; }
::view-transition-new(main-view) { animation: vt-in 380ms var(--ease) both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 15. Signature components ---------- */

/* Hex ring gauge */
.hexring { position: relative; width: 100%; aspect-ratio: 1; }
.hexring__svg { width: 100%; height: 100%; overflow: visible; }
.hexring__track { fill: none; stroke: var(--on-stage-line); stroke-width: 5; }

.hexring__bar {
  fill: none;
  stroke: var(--go);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(25, 211, 110, 0.65));
  transition: stroke-dashoffset 1.6s var(--ease), stroke 0.4s;
}

.hexring--amber .hexring__bar { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 176, 32, 0.6)); }
.hexring--stop .hexring__bar { stroke: var(--stop); filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.6)); }
.hexring--work .hexring__bar { animation: hex-chase 2.4s linear infinite; }

@keyframes hex-chase { to { stroke-dashoffset: -100; } }

/* Car illustration */
.carart { width: 100%; height: auto; overflow: visible; }
.carart__shine { transform: translateX(-140%); }
.carart.is-clean .carart__shine { animation: shine 2.6s var(--ease-io) 0.5s 1 both; }
.carart__dust { opacity: 0; transition: opacity 1.2s var(--ease); }
.carart.is-dusty .carart__dust { opacity: 1; }
.carart__wheel { transform-box: fill-box; transform-origin: center; }
.carart.is-arriving { animation: car-arrive 1.4s var(--ease) both; }
.carart.is-arriving .carart__wheel { animation: wheel-spin 1.4s var(--ease) both; }

@keyframes shine {
  from { transform: translateX(-140%); }
  to { transform: translateX(140%); }
}

@keyframes car-arrive {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes wheel-spin {
  from { transform: rotate(-540deg); }
  to { transform: none; }
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  animation: sparkle 1.6s var(--ease) both;
  animation-delay: calc(0.9s + var(--d, 0s));
}

@keyframes sparkle {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  40% { opacity: 1; transform: scale(1) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(90deg); }
}

/* Timeline stepper */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-top: 18px;
  text-align: center;
}

.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-2);
}

.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step.is-done::before { background: var(--go); }
.step.is-current::before { background: linear-gradient(90deg, var(--go) 50%, var(--line-2) 50%); }

.step__dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line-3);
  transform: translateX(-50%);
}

.step.is-done .step__dot,
.step.is-current .step__dot { background: var(--go); box-shadow: 0 0 0 4px var(--go-soft); }
.step.is-current .step__dot { animation: led-live 1.6s var(--ease-io) infinite; }
.step.is-stop .step__dot { background: var(--stop); box-shadow: 0 0 0 4px var(--stop-soft); }
.step__label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.step__time { font-size: var(--fs-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Before / after comparison */
.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  background: var(--stage);
  user-select: none;
  touch-action: pan-y;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__after { clip-path: inset(0 0 0 var(--pos)); }

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0b0d;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform var(--t-quick) var(--ease-back);
}

.ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.1); }

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba__range:focus-visible + .ba__knob { outline: 3px solid var(--go); outline-offset: 3px; }

.ba__tag {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(7, 8, 10, 0.62);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }

/* Star rating */
.stars { display: flex; gap: 4px; }

.star {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--line-3);
  transition: transform var(--t-quick) var(--ease-back), color var(--t-quick);
}

.star .ic { width: 34px; height: 34px; }
.star.is-on { color: #f5b400; }
.star:hover { transform: scale(1.12); }
.star:active { transform: scale(0.9); }
.star.is-burst { animation: star-burst 520ms var(--ease-back); }

@keyframes star-burst {
  40% { transform: scale(1.35) rotate(-8deg); }
  100% { transform: none; }
}

.stars--sm .star { width: 22px; height: 22px; }
.stars--sm .star .ic { width: 16px; height: 16px; }
.stars--static .star { pointer-events: none; }

/* Slide to confirm */
.slide {
  --x: 0px;
  position: relative;
  height: 64px;
  border-radius: var(--r-pill);
  background: var(--stage);
  color: var(--on-stage);
  box-shadow: inset 0 0 0 1px var(--on-stage-line);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.slide__fill {
  position: absolute;
  inset: 0;
  width: calc(var(--x) + 60px);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(25, 211, 110, 0.05), rgba(25, 211, 110, 0.35));
}

.slide__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 52px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--on-stage-3) 0%, var(--on-stage) 45%, var(--on-stage-3) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slide-hint 2.4s linear infinite;
}

@keyframes slide-hint {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.slide__thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--go);
  color: #04170c;
  box-shadow: 0 0 18px rgba(25, 211, 110, 0.6);
  transform: translateX(var(--x));
  cursor: grab;
}

.slide.is-snapping .slide__thumb,
.slide.is-snapping .slide__fill { transition: transform 360ms var(--ease-spring), width 360ms var(--ease-spring); }
.slide.is-done .slide__label { animation: none; color: var(--go); background: none; }

/* Clock-in radar */
.radar {
  position: relative;
  display: grid;
  place-items: center;
  width: min(68vw, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.radar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--on-stage-line);
}

.radar__ring:nth-child(2) { inset: 16%; }
.radar__ring:nth-child(3) { inset: 32%; }

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(25, 211, 110, 0.32), transparent 22%);
  opacity: 0;
}

.radar.is-scanning .radar__sweep { opacity: 1; animation: spin 1.6s linear infinite; }

.radar__btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  align-content: center;
  width: 46%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--go);
  color: #04170c;
  font-weight: 700;
  box-shadow: 0 0 0 8px rgba(25, 211, 110, 0.14), 0 0 40px rgba(25, 211, 110, 0.45);
  transition: transform var(--t-quick) var(--ease-back), background-color var(--t-quick);
}

.radar__btn:active { transform: scale(0.94); }
.radar__btn .ic { width: 30px; height: 30px; }
.radar__btn--out { background: var(--on-stage); color: var(--ink-0); box-shadow: 0 0 0 8px rgba(244, 245, 247, 0.08), 0 0 30px rgba(244, 245, 247, 0.2); }

/* Calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal__dow {
  padding-bottom: 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
}

.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  aspect-ratio: 1 / 1.08;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-press) var(--ease), box-shadow var(--t-quick);
}

.cal__day:active { transform: scale(0.94); }
.cal__day.is-off { background: transparent; color: var(--text-3); box-shadow: none; font-weight: 500; }
.cal__day.is-blank { visibility: hidden; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal__day.is-selected { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.cal__day .led { width: 6px; height: 6px; box-shadow: none; }
.cal__day .cal__stars { font-size: 10px; font-weight: 700; line-height: 6px; color: #b07a00; letter-spacing: 0.02em; }
.cal__day.is-selected .cal__stars { color: #f5c542; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-xs); color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .led { width: 6px; height: 6px; box-shadow: none; }

/* Avatars */
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2e35, #0a0b0d);
  color: var(--on-stage);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }

.avatar__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--go);
  color: #04170c;
  box-shadow: 0 0 0 2px var(--surface);
}

.avatar__check .ic { width: 11px; height: 11px; }
.avatar--sm .avatar__check { right: 0; bottom: 0; width: 12px; height: 12px; }
.avatar--sm .avatar__check .ic { width: 8px; height: 8px; }

/* Metric tiles */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.metric {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.metric__value { font-size: 1.75rem; font-weight: 600; font-stretch: 80%; font-variation-settings: "wdth" 80; line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric__label { font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; overflow-wrap: anywhere; }
.stage .metric { background: rgba(244, 245, 247, 0.05); box-shadow: inset 0 0 0 1px var(--on-stage-line); }
.stage .metric__label { color: var(--on-stage-3); }

/* Callouts */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.callout__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--sunken);
}

.callout--amber { background: var(--amber-soft); box-shadow: none; }
.callout--amber .callout__icon { background: var(--amber); color: #241500; }
.callout--go { background: var(--go-soft); box-shadow: none; }
.callout--go .callout__icon { background: var(--go); color: #04170c; }
.callout--stop { background: var(--stop-soft); box-shadow: none; }
.callout--stop .callout__icon { background: var(--stop); color: #ffffff; }
.callout__title { font-weight: 600; }
.callout__text { font-size: var(--fs-md); color: var(--text-2); margin-top: 2px; }
.callout__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Quick actions grid */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.quick__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 112px;
  padding: 16px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-press) var(--ease), box-shadow var(--t-quick);
}

.quick__btn:hover { box-shadow: var(--shadow-2); }
.quick__btn:active { transform: scale(0.97); }
.quick__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sunken); transition: transform var(--t-quick) var(--ease-back); }
.quick__btn:hover .quick__icon { transform: rotate(-6deg) scale(1.06); }
.quick__label { font-weight: 600; }
.quick__meta { font-size: var(--fs-sm); color: var(--text-3); margin-top: -6px; min-width: 0; overflow-wrap: anywhere; }
.quick__meta--clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.quick__btn--stage { background: var(--stage); color: var(--on-stage); }
.quick__btn--stage .quick__icon { background: rgba(244, 245, 247, 0.1); }
.quick__btn--stage .quick__meta { color: var(--on-stage-3); }

/* Horizontal scroller */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 46%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
}

.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--stage);
  aspect-ratio: 4 / 3;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.thumb:hover img { transform: scale(1.04); }

/* Notifications */
.notif {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.notif + .notif { border-top: 1px solid var(--line); }
.notif__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sunken); }
.notif.is-unread .notif__title::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--go); vertical-align: 0.15em; }
.notif__title { font-weight: 600; }
.notif__body { font-size: var(--fs-md); color: var(--text-2); }
.notif__time { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-3); }

/* Key-value rows */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: var(--fs-md); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

.divider { height: 1px; margin: var(--s4) 0; background: var(--line); border: 0; }

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: var(--s6) 0 var(--s4);
  color: var(--text-3);
  font-size: var(--fs-xs);
  text-align: center;
}

.credit svg { width: 12px; height: 12px; fill: var(--stop); }
.credit a { color: inherit; }

/* ---------- 16. Sign-in page ---------- */
.auth {
  display: grid;
  min-height: 100dvh;
}

.auth__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 46dvh;
  padding: calc(24px + var(--safe-t)) 24px 28px;
  background: var(--stage-0);
  color: var(--on-stage);
}

.auth__hex { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.auth__brand { display: flex; align-items: center; gap: 12px; color: var(--on-stage); }
.auth__brand .logo-mark { width: 30px; }
.auth__brand .logo-word { height: 15px; }
.auth__headline { max-width: 15ch; font-size: clamp(2.1rem, 1.6rem + 3vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.auth__sub { max-width: 36ch; margin-top: 12px; color: var(--on-stage-2); font-size: var(--fs-lead); }
.auth__car { width: min(100%, 520px); margin: 0 auto; }

.auth__panel {
  display: grid;
  align-content: start;
  padding: 28px 20px calc(20px + var(--safe-b));
  margin-top: -24px;
  border-radius: var(--r-stage) var(--r-stage) 0 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.auth__form { width: 100%; max-width: 420px; margin: 0 auto; }
.auth__title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.02em; }
.auth__intro { margin: 6px 0 22px; color: var(--text-3); }
.auth__alt { margin-top: 18px; text-align: center; font-size: var(--fs-md); color: var(--text-3); }

@media (max-width: 899px) {
  .auth__stage { min-height: 0; gap: 16px; padding-bottom: 40px; }
  .auth__headline { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.6rem); }
  .auth__sub { margin-top: 8px; font-size: var(--fs-md); }
  .auth__car { width: min(80%, 340px); }
}

@media (min-width: 900px) {
  .auth { grid-template-columns: 1.15fr 1fr; }
  .auth__stage { min-height: 100dvh; padding: 40px 48px; }
  .auth__panel { margin: 0; border-radius: 0; align-content: center; padding: 48px; }
}

/* ---------- 17. Print (invoices, payslips) ---------- */
.print-root { display: none; }

@media print {
  @page { margin: 14mm; }
  body { background: #ffffff !important; color: #0a0b0d; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
}

/* ---------- Invoice and receipt document ---------- */
.doc {
  --doc-ink: #0a0b0d;
  --doc-2: #3a3f47;
  --doc-3: #6a6f78;
  --doc-line: #e6e8eb;
  --doc-soft: #f5f6f7;
  --doc-accent: #19d36e;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  color: var(--doc-ink);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 0 0 1px var(--doc-line), 0 28px 56px -36px rgba(10, 11, 13, 0.45);
}
.doc p { margin: 0; }
.doc__band { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 28px 30px 26px; background: #0a0b0d; color: #ffffff; overflow: hidden; }
.doc__band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--doc-accent), rgba(25, 211, 110, 0.35) 45%, transparent 80%); }
.doc__hex { position: absolute; right: -46px; top: -58px; width: 230px; height: 230px; fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.2; pointer-events: none; }
.doc__from,
.doc__kind { position: relative; z-index: 1; }
.doc__brand { display: flex; align-items: center; gap: 10px; }
.doc__brand .logo-mark { width: 30px; background: #ffffff; }
.doc__brand .logo-word { height: 15px; background: #ffffff; }
.doc__contact { margin-top: 12px !important; color: rgba(255, 255, 255, 0.6); font-size: 12px; line-height: 1.6; }
.doc__kind { text-align: right; }
.doc__kind-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--doc-accent); }
.doc__no { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.doc__body { padding: 26px 30px 28px; }
.doc__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--doc-3); }
.doc__hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--doc-line); }
.doc__amount { margin-top: 6px !important; font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-stretch: 85%; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.doc__status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.doc__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.doc__status--paid { background: #dcf7e8; color: #0a6e39; }
.doc__status--due { background: #fdf0d8; color: #8f5400; }
.doc__status--overdue { background: #fde3e1; color: #a8231b; }
.doc__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 22px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--doc-line); }
.doc__meta dd { margin: 4px 0 0; font-weight: 600; }
.doc__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 18px 0 24px; }
.doc__parties p + p { margin-top: 6px; color: var(--doc-2); }
.doc__parties strong { color: var(--doc-ink); }
.doc__items { width: 100%; border-collapse: collapse; }
.doc__items th { padding: 0 0 10px; border-bottom: 1.5px solid var(--doc-ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--doc-3); text-align: left; }
.doc__items td { padding: 14px 0; border-bottom: 1px solid var(--doc-line); vertical-align: top; }
.doc__items td + td { padding-left: 4px; }
.doc .doc__n { width: 34px; padding-top: 16px; color: var(--doc-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.doc .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc__items td.r { padding-left: 16px; font-weight: 600; }
.doc__totals { width: min(100%, 330px); margin: 16px 0 0 auto; }
.doc__totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 2px; color: var(--doc-2); }
.doc__discount { color: #0a6e39 !important; }
.doc__grand { margin-top: 8px; padding: 14px 18px !important; border-radius: 12px; background: #0a0b0d; color: #ffffff !important; }
.doc__grand span:first-child { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.doc__grand span:last-child { font-size: 22px; font-weight: 700; }
.doc__section { margin-top: 28px; }
.doc__pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.doc__pay-item { padding: 12px 14px; border-radius: 12px; background: var(--doc-soft); box-shadow: inset 0 0 0 1px var(--doc-line); color: var(--doc-2); font-size: 13px; overflow-wrap: anywhere; }
.doc__pay-item b { display: block; margin-bottom: 3px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--doc-3); }
.doc__pay-note { margin-top: 10px !important; font-size: 12.5px; color: var(--doc-2); }
.doc__received { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: #f0fbf5; box-shadow: inset 0 0 0 1px #c6eed8; color: #24272c; font-size: 13px; }
.doc__received-title { font-weight: 700; color: #0a6e39; font-size: 14px; }
.doc__seal { width: 50px; height: 50px; flex: none; fill: #0a6e39; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doc__seal path { fill: none; }
.doc__terms ol { margin: 10px 0 0; padding-left: 20px; color: var(--doc-2); font-size: 12px; line-height: 1.6; }
.doc__terms li { margin-bottom: 6px; padding-left: 4px; }
.doc__terms li::marker { color: var(--doc-3); font-weight: 600; }
.doc__terms strong { color: var(--doc-ink); }
.doc__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--doc-line); color: var(--doc-3); font-size: 12px; }
.doc__foot span:first-child { font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--doc-ink); }
@media screen and (max-width: 520px) {
  .doc { overflow-wrap: anywhere; }
  .doc__band { padding: 22px 18px 20px; }
  .doc__kind { width: 100%; text-align: left; }
  .doc__body { padding: 20px 18px 22px; }
  .doc__amount { font-size: 34px; }
  .doc__meta { grid-template-columns: 1fr 1fr; }
  .doc__parties { grid-template-columns: 1fr; gap: 14px; }
  .doc .doc__n { width: 26px; }
}
@media print {
  .doc { max-width: none; border-radius: 0; box-shadow: none; }
  .doc,
  .doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc__items tr,
  .doc__terms li { break-inside: avoid; }
  /* Compact enough for one A4 page. */
  .doc { font-size: 12.5px; line-height: 1.45; }
  .doc__band { padding: 20px 24px 18px; }
  .doc__body { padding: 18px 24px 16px; }
  .doc__amount { font-size: 34px; }
  .doc__hero { padding-bottom: 14px; }
  .doc__meta { padding: 12px 0; }
  .doc__parties { padding: 12px 0 14px; }
  .doc__items td { padding: 9px 0; }
  .doc__section { margin-top: 16px; }
  .doc__received { margin-top: 16px; }
  .doc__terms ol { font-size: 10.5px; line-height: 1.45; }
  .doc__terms li { margin-bottom: 2px; }
  .doc__foot { margin-top: 14px; padding-top: 10px; }
}

/* ---------- 18. Responsive and preferences ---------- */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .quick { grid-template-columns: 1fr; }
  .metric { padding: 12px 10px; }
  .metric__value { font-size: 1.4rem; }
  .row-2 { grid-template-columns: 1fr; }
  .star { width: 42px; height: 42px; }
}

@media (min-width: 640px) {
  :root { --gutter: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .carart__shine { display: none; }
  .slide__label { animation: none; color: var(--on-stage); background: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar { background: var(--bg); }
  .tabbar { background: var(--stage); }
}

@media (forced-colors: active) {
  .led,
  .step__dot { forced-color-adjust: none; }
  .btn,
  .chip,
  .option,
  .card { border: 1px solid CanvasText; }
}
.doc__foot a { color: inherit; text-decoration: none; }
.doc__foot a:hover { color: var(--doc-ink); text-decoration: underline; }

/* ---------- Pay breakdown (admin and employee) ---------- */
.paysum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.paysum__label { font-size: var(--fs-sm); color: var(--text-3); }
.paysum__net { font-size: 2rem; font-weight: 600; line-height: 1.1; font-stretch: 80%; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.payacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.paylines { display: grid; gap: 18px; }
.paylines__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.paylines__head span:last-child { color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.paylines__list { margin: 0; padding: 0; list-style: none; }
.payline { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payline__main { min-width: 0; flex: 1; }
.payline__label { font-weight: 600; }
.payline__detail { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }
.payline__waived { margin-top: 6px; font-size: var(--fs-sm); color: var(--go-ink); font-weight: 600; }
.payline__amt { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.payline__amt.is-minus { color: var(--stop-ink); }
.payline.is-waived .payline__label,
.payline.is-waived .payline__amt { color: var(--text-3); }
.payline__acts { display: flex; gap: 8px; margin-top: 8px; }
.payline__more { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.payline__more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.payline__more p { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.paylines__total,
.paylines__override { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--stage); color: var(--on-stage); font-weight: 700; font-variant-numeric: tabular-nums; }
.paylines__total span:first-child { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-stage-2); }
.paylines__total span:last-child,
.paylines__override > span { font-size: 1.3rem; }
.paylines__override { background: var(--go-soft); color: var(--ink); }
.paylines__override .payline__detail { color: var(--text-2); }
.paydetails summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
