/* ============================================================
   VIVTAG — surface layer.
   The old look came from one thing: every element was a white
   rectangle with a hard 1px grey border and a 10px radius. Here
   surfaces layer with elevation and hairline rings instead of
   boxing themselves off, chrome is glass, and the primary action
   carries light. Still zero dependencies.
   ============================================================ */

/* ---------- 1. chrome is glass ------------------------------ */
.vt-top, .vs-nav {
  background: var(--frost);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  height: 64px;
}
.vt-top.is-stuck, .vs-nav.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -12px rgba(11,13,18,.14);
}

/* ---------- 2. surfaces: elevation, not outlines ------------ */
.vp-stat, .vs-tile, .vs-aside__card, .vp-veh, .vp-doc, .vt-doc,
.vp-empty, .vt-review, .vp-table, .vc, .vs-card, .vt-callout,
.vs-stat, .vd-card, .vt-sheet__box {
  border-color: transparent;
  box-shadow: var(--ring), var(--sh-2);
}
.vp-stat, .vs-tile, .vs-aside__card, .vp-veh, .vp-doc, .vt-doc,
.vp-empty, .vt-review, .vp-table, .vc {
  border-radius: var(--r-lg);
  border: 0;
}
.vs-tile, .vp-stat, .vs-aside__card { border-radius: var(--r-lg); }
.vp-veh, .vp-doc, .vc, .vp-empty { border-radius: var(--r-xl); }

.vp-stat:hover, .vs-tile:hover, .vp-veh:hover, .vp-doc:hover, .vt-doc:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), var(--sh-3);
  transform: translateY(-3px);
}

/* tinted status surfaces rather than coloured outlines */
.vp-stat--warn { box-shadow: 0 0 0 1px rgba(201,130,15,.28), var(--sh-2); background:
  linear-gradient(180deg, rgba(253,243,221,.6), var(--card) 62%); }
.vp-stat--bad  { box-shadow: 0 0 0 1px rgba(229,72,77,.26), var(--sh-2); background:
  linear-gradient(180deg, rgba(253,236,236,.6), var(--card) 62%); }
.vp-doc[data-state="rejected"] { box-shadow: 0 0 0 1px rgba(229,72,77,.3), var(--sh-2); }
.vp-doc[data-state="verified"] { box-shadow: 0 0 0 1px rgba(6,166,107,.26), var(--sh-2); }

/* ---------- 3. the primary action carries light ------------- */
.vt-btn { border-radius: 11px; font-weight: 600; letter-spacing: -.005em; }
.vt-btn--go {
  background: var(--grad-accent);
  box-shadow: var(--sh-glow), 0 1px 0 rgba(255,255,255,.22) inset;
  border: 0;
}
.vt-btn--go:hover {
  background: var(--grad-accent);
  filter: brightness(1.07);
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 60%, transparent), 0 1px 0 rgba(255,255,255,.28) inset;
  transform: translateY(-1px);
}
.vt-btn--ok {
  background: linear-gradient(135deg, #08b877, #06a66b 60%, #059e77);
  box-shadow: 0 6px 18px -8px rgba(6,166,107,.6), 0 1px 0 rgba(255,255,255,.2) inset;
}
.vt-btn--line {
  background: var(--card); border: 0;
  box-shadow: var(--ring), var(--sh-1);
  color: var(--ink-700);
}
.vt-btn--line:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--sh-2); color: var(--ink-900); }
.vt-btn--bad { border: 0; box-shadow: 0 0 0 1px rgba(229,72,77,.35); }

/* ---------- 4. fields sit in the surface, not on it --------- */
.vt-input, .vt-select, .vt-textarea, .vt-doc__num, .vc__box, .vt-check {
  border: 0;
  border-radius: 11px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .16s ease, background .16s ease;
}
.vt-input:hover, .vt-select:hover, .vt-textarea:hover {
  background: color-mix(in srgb, var(--ink-900) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-900) 18%, transparent);
}
.vt-input:focus, .vt-select:focus, .vt-textarea:focus, .vc__box:focus-within {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.vt-field[data-invalid="1"] .vt-input,
.vt-field[data-invalid="1"] .vt-select {
  box-shadow: inset 0 0 0 1px var(--void), 0 0 0 4px rgba(229,72,77,.13);
}
.vt-check:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ind-300); background: var(--ind-100); }

/* ---------- 5. type gets more confidence -------------------- */
.vs-h1 { letter-spacing: -.045em; font-weight: 800; }
.vs-h2 { letter-spacing: -.038em; font-weight: 750; }
.vp-head h1, .va-h { letter-spacing: -.038em; font-weight: 750; }
.vp-stat dd, .vs-stat dd { letter-spacing: -.045em; font-weight: 800; }
.vt-block__h, .vs-aside__card h3 {
  font-size: 11px; letter-spacing: .1em; color: var(--ink-500);
  border-bottom: 0; padding-bottom: 0; margin-bottom: 13px;
}
.vt-block__h { padding-bottom: 10px; box-shadow: 0 1px 0 var(--line); }

/* ---------- 6. pills read as tinted glass ------------------- */
.vt-pill {
  border-radius: 8px; padding: 4px 9px; font-size: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 7. tables lose their cage ----------------------- */
.vp-table { border: 0; overflow: hidden; }
.vp-table th {
  background: var(--sunk); border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .09em;
}
.vp-table td { border-bottom: 1px solid var(--line-2); }
.vp-table tbody tr { transition: background .16s ease; }
.vp-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }

/* ---------- 8. bento: the first stat leads ------------------ */
.vp-stats { gap: 14px; }
.vp-stat { padding: 18px 20px; }
.vp-stat dd { font-size: 32px; margin-top: 6px; }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child {
  background: var(--grad-accent);
  box-shadow: var(--sh-glow);
}
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child dt { color: rgba(255,255,255,.72); }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child dd { color: #fff; }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child .vp-stat__foot { color: rgba(255,255,255,.66); }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child:hover { transform: translateY(-3px); filter: brightness(1.05); }

/* ---------- 9. callouts as tinted washes -------------------- */
.vt-callout {
  border: 0; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(122,90,248,.045));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
  grid-template-columns: 1fr;
}
.vt-callout::before { display: none; }
.vt-callout > div { padding: 15px 18px; }
.vt-callout--warn {
  background: linear-gradient(135deg, rgba(201,130,15,.09), rgba(201,130,15,.04));
  box-shadow: inset 0 0 0 1px rgba(201,130,15,.24);
}
.vt-callout--bad {
  background: linear-gradient(135deg, rgba(229,72,77,.09), rgba(229,72,77,.04));
  box-shadow: inset 0 0 0 1px rgba(229,72,77,.24);
}

/* ---------- 10. footer stops being a black slab ------------- */
.vs-foot {
  background: var(--grad-dk);
  color: #93a0b5;
  border-top: 1px solid rgba(255,255,255,.06);
}
.vs-foot__bar { border-top-color: rgba(255,255,255,.07); }
.vs-band {
  background: var(--grad-accent);
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); margin: 0 clamp(12px,3vw,32px) 0;
}
.vs-band::after {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.vs-band > * { position: relative; z-index: 1; }

/* ---------- 11. empty states feel intentional --------------- */
.vp-empty {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, transparent), rgba(255,255,255,0) 55%), var(--card);
  border: 0;
}
.vp-empty__icon { border-radius: 18px; background: linear-gradient(140deg, var(--ind-100), #fff); }

/* ---------- 12. sheets float ------------------------------- */
.vt-sheet { background: rgba(4,6,11,.55); backdrop-filter: blur(6px); }
.vt-sheet__box { border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.vt-sheet__head, .vt-sheet__foot { border-color: var(--line); }

/* ---------- 13. toasts ------------------------------------- */
.vt-toast {
  border-radius: 13px; backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -10px rgba(11,13,18,.5), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ---------- 14. the tabs and segmented control -------------- */
.vp-tabs a, .vt-seg { border-radius: 11px; }
.vt-seg { background: color-mix(in srgb, var(--ink-900) 6%, transparent); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.vt-seg button[aria-pressed="true"] { box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.vp-tabs a { border: 0; box-shadow: var(--ring), var(--sh-1); }
.vp-tabs a[aria-current="true"] { background: var(--grad-accent); box-shadow: var(--sh-glow); }

/* ---------- 15. the ring reads as a gauge ------------------- */
.vt-ring .track { stroke: rgba(11,13,18,.07); }
.vt-ring .bar   { filter: drop-shadow(0 2px 6px rgba(6,166,107,.35)); }
.vt-ring[data-tone="hold"] .bar { filter: drop-shadow(0 2px 6px rgba(201,130,15,.35)); }
.vt-ring[data-tone="bad"]  .bar { filter: drop-shadow(0 2px 6px rgba(229,72,77,.35)); }



/* ============================================================
   MODE TOGGLE + ACCENT SURFACES
   ============================================================ */
.vt-mode {
  position: relative; width: 62px; height: 32px; flex: 0 0 62px;
  border-radius: 99px; border: 0; cursor: pointer; padding: 0;
  background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.vt-mode__knob {
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--card); box-shadow: var(--sh-1), 0 0 0 1px var(--line);
  display: grid; place-items: center;
  transition: transform .38s cubic-bezier(.2,1.2,.35,1), background .3s ease;
}
[data-theme="dark"] .vt-mode__knob { transform: translateX(30px); }
.vt-mode svg { width: 15px; height: 15px; position: absolute; transition: opacity .25s ease, transform .35s ease; }
.vt-mode__sun  { opacity: 1;  transform: rotate(0) scale(1);      color: var(--h-amber); }
.vt-mode__moon { opacity: 0;  transform: rotate(-70deg) scale(.6); color: var(--h-indigo); }
[data-theme="dark"] .vt-mode__sun  { opacity: 0; transform: rotate(70deg) scale(.6); }
[data-theme="dark"] .vt-mode__moon { opacity: 1; transform: rotate(0) scale(1); }
.vt-mode:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.vt-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* dark mode wants slightly different surface treatment */
[data-theme="dark"] .vp-stat,
[data-theme="dark"] .vs-tile,
[data-theme="dark"] .vs-aside__card,
[data-theme="dark"] .vp-veh,
[data-theme="dark"] .vp-doc,
[data-theme="dark"] .vt-doc,
[data-theme="dark"] .vp-empty,
[data-theme="dark"] .vt-review,
[data-theme="dark"] .vp-table,
[data-theme="dark"] .vc,
[data-theme="dark"] .vo-card,
[data-theme="dark"] .vs-card { background: var(--card); }
[data-theme="dark"] .vp-empty {
  background: linear-gradient(160deg, var(--accent-soft), rgba(20,26,38,0) 55%), var(--card);
}
[data-theme="dark"] .vp-empty__icon { background: linear-gradient(140deg, var(--accent-soft), rgba(20,26,38,.5)); }
[data-theme="dark"] .vs-foot { background: #080b11; }
[data-theme="dark"] .vt-toast { background: #1c2432; box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); }
[data-theme="dark"] .vt-toast[data-kind="ok"]  { background: #0d3b36; }
[data-theme="dark"] .vt-toast[data-kind="bad"] { background: #47161d; }
[data-theme="dark"] .vc-msg__b { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
[data-theme="dark"] .vc-msg--sys .vc-msg__b { background: var(--sunk); }
[data-theme="dark"] .vc__day { background: var(--sunk); }
[data-theme="dark"] .vc-list { background: var(--card); }
[data-theme="dark"] .vw-view { background: #05070c; }
[data-theme="dark"] .plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px -6px rgba(0,0,0,.75); }
[data-theme="dark"] .vd { box-shadow: 0 2px 0 rgba(255,255,255,.1) inset, 0 40px 70px -24px rgba(0,0,0,.7); }
[data-theme="dark"] .va-side { background-image:
  radial-gradient(120% 100% at 100% 0%, #2b3550 0%, transparent 58%),
  linear-gradient(160deg, #161d2c 0%, #080b11 60%, #131a28 100%); }

/* the accent shows up where you navigate */
.vp-links a[aria-current], .vs-nav__links a[aria-current] {
  color: var(--accent); border-bottom-color: var(--accent);
}
.vt-brand b { color: var(--accent); }
.vp-tabs a[aria-current="true"] { background: var(--grad-accent); }
.vc-thread[aria-current="true"] { background: var(--grad-accent); }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child { background: var(--grad-accent); }
.vt-block__h { color: var(--ink-500); }
.vs-eyebrow { color: var(--accent); }
.vs-h1 em { color: var(--accent); }
.vt-code {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--h-violet) 10%, transparent));
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.vs-band { background: var(--grad-accent); }

/* a thin accent line under the chrome tells you which surface you are on */
.vt-top::after, .vs-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-accent); opacity: .9;
}
.vt-top, .vs-nav { position: sticky; }

/* ============================================================
   COLOUR IN THE CONTENT
   A toggle is only worth having if there is something to switch.
   Every card that reports a state now carries the colour of that
   state, with an icon, rather than being another white rectangle.
   ============================================================ */

.vt-i { flex: 0 0 auto; }

/* ---- hue utility: any surface can take one ---- */
[data-hue] { --h: var(--h-indigo); }
[data-hue="indigo"] { --h: var(--h-indigo); }
[data-hue="violet"] { --h: var(--h-violet); }
[data-hue="teal"]   { --h: var(--h-teal); }
[data-hue="cyan"]   { --h: var(--h-cyan); }
[data-hue="amber"]  { --h: var(--h-amber); }
[data-hue="rose"]   { --h: var(--h-rose); }

/* ---- stat tiles carry their own meaning ---- */
.vp-stat[data-hue] {
  position: relative; overflow: hidden;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--h) 11%, transparent) 0%,
                    color-mix(in srgb, var(--h) 2%, transparent) 46%, transparent 70%),
    var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 20%, transparent), var(--sh-2);
}
.vp-stat[data-hue]::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--h), color-mix(in srgb, var(--h) 35%, transparent));
}
.vp-stat[data-hue]:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 40%, transparent), var(--sh-3);
}
.vp-stat__ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--h) 15%, transparent);
  color: var(--h); margin-bottom: 11px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 22%, transparent);
}
.vp-stat[data-hue] dd { color: var(--h); }
.vp-stat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vp-stat__spark { width: 54px; height: 22px; opacity: .55; }
.vp-stat__spark path { stroke: var(--h); stroke-width: 2; fill: none; stroke-linecap: round; }

/* a zero reads calm but keeps its identity */
.vp-stat[data-quiet="1"] { background: var(--card); box-shadow: var(--ring), var(--sh-2); }
.vp-stat[data-quiet="1"]::before { opacity: .3; }
.vp-stat[data-quiet="1"] dd { color: var(--ink-300); }
.vp-stat[data-quiet="1"] .vp-stat__ico {
  background: var(--sunk); color: var(--ink-300); box-shadow: inset 0 0 0 1px var(--line);
}

/* the leading bento tile keeps the full gradient */
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child::before { display: none; }
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child .vp-stat__ico {
  background: rgba(255,255,255,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.vp-stats:not(.vp-stats--8) > .vp-stat:first-child dd { color: #fff; }

/* ---- marketing tiles get a hue each ---- */
.vs-tile[data-hue] {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--h) 9%, transparent) 0%,
                    transparent 55%), var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 18%, transparent), var(--sh-2);
}
.vs-tile[data-hue]:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 42%, transparent), var(--sh-3);
  transform: translateY(-4px);
}
.vs-tile__ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--h) 14%, transparent); color: var(--h);
  margin-bottom: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 22%, transparent);
  transition: transform .3s cubic-bezier(.2,1.2,.35,1);
}
.vs-tile:hover .vs-tile__ico { transform: scale(1.08) rotate(-4deg); }
.vs-tile[data-hue] .vs-tile__n { color: var(--h); }

/* ---- vehicle cards get a status rail ---- */
.vp-veh { position: relative; overflow: hidden; }
.vp-veh[data-state]::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
}
.vp-veh[data-state="verified"]::before { background: var(--h-teal); }
.vp-veh[data-state="rejected"]::before { background: var(--h-rose); }
.vp-veh[data-state="submitted"]::before,
.vp-veh[data-state="in_review"]::before { background: var(--h-amber); }
.vp-veh[data-state="verified"] { background: linear-gradient(160deg,
  color-mix(in srgb, var(--h-teal) 6%, transparent), transparent 50%), var(--card); }
.vp-veh[data-state="rejected"] { background: linear-gradient(160deg,
  color-mix(in srgb, var(--h-rose) 7%, transparent), transparent 50%), var(--card); }
.vp-veh[data-state="submitted"], .vp-veh[data-state="in_review"] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--h-amber) 7%, transparent), transparent 50%), var(--card); }

/* ---- document cards tinted by state ---- */
.vp-doc[data-state="verified"] { background: linear-gradient(160deg,
  color-mix(in srgb, var(--h-teal) 6%, transparent), transparent 45%), var(--card); }
.vp-doc[data-state="rejected"] { background: linear-gradient(160deg,
  color-mix(in srgb, var(--h-rose) 8%, transparent), transparent 45%), var(--card); }
.vp-doc[data-state="uploaded"], .vp-doc[data-state="in_review"] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--h-amber) 6%, transparent), transparent 45%), var(--card); }

/* ---- pills carry more weight ---- */
.vt-pill--ok   { background: color-mix(in srgb, var(--h-teal) 15%, transparent);  color: var(--stamp);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 26%, transparent); }
.vt-pill--hold { background: color-mix(in srgb, var(--h-amber) 16%, transparent); color: var(--hold);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-amber) 28%, transparent); }
.vt-pill--bad  { background: color-mix(in srgb, var(--h-rose) 14%, transparent);  color: var(--void);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-rose) 26%, transparent); }

/* ---- aside cards get a hue rail too ---- */
.vs-aside__card[data-hue] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--h) 8%, transparent), transparent 52%), var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 18%, transparent), var(--sh-2);
}
.vs-aside__card h3 .vt-i { color: var(--h, var(--accent)); vertical-align: -4px; margin-right: 7px; }

/* ---- section eyebrows get a dot ---- */
.vs-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block; margin-right: 9px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  vertical-align: 1px;
}

/* ---- process rail picks up the accent ---- */
.vs-steps::before { background: linear-gradient(180deg, var(--h-indigo), var(--h-violet), var(--h-teal)); }
.vs-step::before { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---- smooth scrolling everywhere ---- */
html { scroll-behavior: smooth; }
.vp-page--chat { padding-top: 18px; }
.vp-page--chat .vp-head { margin-bottom: 12px; }
.vp-page--chat .vp-head h1 { font-size: 21px; }
.vp-page--chat .vp-head .vt-hint { display: none; }
.vp-page--chat .vc-threads { margin-bottom: 10px; }
[id] { scroll-margin-top: 86px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* a slim progress bar showing how far down the page you are */
.vt-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 60;
  width: var(--p, 0%); background: var(--grad-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: width .1s linear; pointer-events: none;
}

/* ============================================================
   THE VIRTUAL VIVTAG CARD
   Credit-card proportions. Every vehicle gets one at registration.
   ============================================================ */
.vtc {
  position: relative; overflow: hidden;
  aspect-ratio: 1.586 / 1; width: 100%; max-width: 380px;
  border-radius: 18px; padding: 18px 20px;
  display: grid; grid-template-rows: auto 1fr auto;
  /* One card colour for every state. A real membership card does not
     change colour when a document lapses — the pill says that. Four
     bloom points over a base ramp give it depth. */
  background:
    radial-gradient(74% 62% at 4% -14%,  rgba(255,150,200,.62) 0%, transparent 58%),
    radial-gradient(66% 58% at 98% 4%,   rgba(255,120,140,.55) 0%, transparent 60%),
    radial-gradient(80% 74% at 92% 106%, rgba(120,50,220,.62)  0%, transparent 64%),
    radial-gradient(58% 54% at 16% 98%,  rgba(210,60,150,.45)  0%, transparent 62%),
    linear-gradient(140deg, #7d1352 0%, #a81b52 26%, #c2364b 48%, #9c2f8e 74%, #5f2fc4 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset,
              0 0 0 1px rgba(255,255,255,.11) inset,
              0 18px 40px -14px rgba(70,14,56,.62), 0 3px 10px -3px rgba(70,14,56,.44);
  isolation: isolate;
}
/* the pill carries the state, so it has to read on this ground */
.vtc__top .vt-pill {
  background: rgba(255,255,255,.22) !important; color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3) !important;
}
.vtc[data-state="verified"] .vt-pill { background: rgba(64,235,180,.32) !important; }
.vtc[data-state="rejected"] .vt-pill { background: rgba(20,10,20,.34) !important; }

/* the contactless mark, where it sits on a real card */
.vtc__nfc {
  position: absolute; top: 54px; right: 20px; z-index: 3;
  color: rgba(255,255,255,.66); line-height: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
.vtc__nfc svg { transform: rotate(180deg); }
.vtc:hover .vtc__nfc { animation: vtc-tap 1.5s ease-out infinite; }
@keyframes vtc-tap {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}

/* holographic foil across the upper third */
.vtc::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 92%;
  z-index: 1; pointer-events: none; opacity: .34;
  background: linear-gradient(104deg,
    transparent 26%, rgba(120,255,235,.5) 34%, rgba(150,190,255,.45) 41%,
    rgba(230,150,255,.5) 48%, rgba(255,190,160,.4) 55%, transparent 64%);
  filter: blur(9px);
  transform: translateX(-14%);
  transition: transform 1.3s cubic-bezier(.2,.7,.3,1);
}
.vtc:hover::before { transform: translateX(16%); }
.vtc__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .34;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.11) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(65deg,  rgba(255,255,255,.07) 0 1px, transparent 1px 19px);
  mask-image: radial-gradient(120% 100% at 100% 100%, #000 20%, transparent 72%);
}
.vtc__sheen {
  position: absolute; inset: -40% -60%; z-index: 2; pointer-events: none;
  background: linear-gradient(72deg, transparent 38%, rgba(255,255,255,.3) 48%,
              rgba(255,255,255,.06) 55%, transparent 62%);
  transform: translateX(-38%);
  transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
}
.vtc:hover .vtc__sheen { transform: translateX(38%); }
.vtc > *:not(.vtc__sheen):not(.vtc__grid):not(.vtc__nfc) { position: relative; z-index: 3; }
/* the embossed characters pick up the light they sit on */
.vtc__code span {
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.26),
              0 2px 6px -2px rgba(0,0,0,.42) !important;
}

.vtc__top { display: flex; align-items: center; gap: 10px; }
.vtc__brand { font-size: 14px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.vtc__brand b { color: rgba(255,255,255,.66); font-weight: 800; }
.vtc__top .vt-pill {
  background: rgba(255,255,255,.2) !important; color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.26) !important;
}
.vtc .vt-logo { filter: drop-shadow(0 2px 5px rgba(0,0,0,.3)); }

.vtc__code {
  align-self: center; display: flex; gap: clamp(3px, 1.4vw, 8px);
  font-family: var(--data); font-size: clamp(24px, 6.6vw, 33px); font-weight: 700;
  letter-spacing: 0; padding-left: 2px;
}
.vtc__code span {
  display: inline-grid; place-items: center;
  min-width: 1.05em; padding: 3px 0 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(0,0,0,.22),
              0 2px 5px -2px rgba(0,0,0,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.28);
  animation: vtc-emboss .5s cubic-bezier(.2,1.3,.35,1) both;
  animation-delay: calc(var(--n) * 65ms + 180ms);
}
@keyframes vtc-emboss {
  from { opacity: 0; transform: translateY(-8px) rotateX(55deg); }
  to   { opacity: 1; transform: none; }
}

.vtc__foot { display: flex; align-items: flex-end; gap: 12px; }
.vtc__plate { flex: 1; min-width: 0; max-width: 168px; }
.vtc__plate .plate { --plate-h: 30px; border-width: 1.5px; border-radius: 5px; }
.vtc__plate .plate__ind { flex-basis: 12px; padding: 2px 0; }
.vtc__plate .plate__chakra { width: 6px; height: 6px; }
.vtc__plate .plate__ind-txt { font-size: 4px; }
.vtc__plate .plate__chars { font-size: 10px; letter-spacing: .02em; }
.vtc__owner, .vtc__since { font-size: 11.5px; line-height: 1.35; }
.vtc__owner small, .vtc__since small {
  display: block; font-family: var(--data); font-size: 8px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.vtc-wrap { perspective: 1100px; }
.vtc-wrap .vtc { transition: transform .5s cubic-bezier(.2,1,.3,1); transform-style: preserve-3d; }
.vtc-wrap:hover .vtc { transform: rotateY(-7deg) rotateX(4deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .vtc__code span { animation: none; }
  .vtc-wrap:hover .vtc, .vtc:hover .vtc__sheen { transform: none; }
}

/* ============================================================
   NAVIGATION — the chrome was a row of plain links
   ============================================================ */
.vt-brand { gap: 10px; align-items: center; }
.vt-brand .vt-logo { transition: transform .45s cubic-bezier(.2,1.3,.35,1); }
.vt-brand:hover .vt-logo { transform: rotate(-8deg) scale(1.08); }
.vs-foot .vt-brand { gap: 11px; }

.vs-nav__links a, .vp-links a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  transition: color .18s ease, background .18s ease;
  border-bottom: 0 !important;
}
.vs-nav__links a::after, .vp-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .28s cubic-bezier(.2,1,.3,1), opacity .2s ease;
}
.vs-nav__links a:hover, .vp-links a:hover { color: var(--ink-900); background: var(--sunk); }
.vs-nav__links a:hover::after, .vp-links a:hover::after { transform: scaleX(1); opacity: .55; }
.vs-nav__links a[aria-current]::after,
.vp-links a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.vs-nav__links a[aria-current], .vp-links a[aria-current] {
  background: var(--accent-soft); color: var(--accent);
}
.vt-top, .vs-nav { gap: 6px; }

/* ---- everything on the site answers the cursor ---- */
.vs-row { transition: background .2s ease, padding-left .2s ease; border-radius: 8px; }
.vs-row:hover { background: var(--sunk); padding-left: 8px; }
.vs-step { transition: transform .3s cubic-bezier(.2,1,.3,1); }
.vs-step:hover { transform: translateX(6px); }
.vs-step:hover::before { background: var(--accent-soft); transform: scale(1.12); }
.vs-step::before { transition: transform .3s cubic-bezier(.2,1.3,.35,1), background .2s ease; }
.vs-stat { transition: background .25s ease, transform .3s cubic-bezier(.2,1,.3,1); }
.vs-stat:hover { background: var(--accent-soft); transform: translateY(-3px); }
.vs-checks li { transition: transform .25s ease, color .2s ease; }
.vs-checks li:hover { transform: translateX(5px); color: var(--ink-900); }
.vs-foot a { position: relative; transition: color .18s ease, padding-left .2s ease; }
.vs-foot a:hover { color: #fff; padding-left: 5px; }
.vt-code { transition: transform .3s cubic-bezier(.2,1.3,.35,1), box-shadow .25s ease; }
.vt-code:hover { transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), var(--sh-2); }
.plate { transition: transform .4s cubic-bezier(.2,1,.3,1), box-shadow .3s ease; }
a:hover > .plate, .vp-veh:hover .plate { transform: translateY(-2px) rotate(-.6deg); }
.vs-faq summary { transition: color .18s ease, padding-left .2s ease; }
.vs-faq summary:hover { padding-left: 6px; }
.vd { cursor: default; }
.vt-btn { position: relative; overflow: hidden; }
.vt-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--rx, 50%) var(--ry, 50%),
              rgba(255,255,255,.22), transparent 60%);
  opacity: 0; transition: opacity .22s ease;
}
.vt-btn--go:hover::after, .vt-btn--ok:hover::after { opacity: 1; }
.vt-btn:active { transform: translateY(1px) scale(.99); }

/* ============================================================
   CINEMATIC HERO
   The page assembles itself once, in order, rather than arriving
   fully formed. The noun in the headline keeps typing itself.
   ============================================================ */
.vs-hero--cine [data-cine] {
  opacity: 0; transform: translateY(20px);
  animation: cine-in .82s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
[data-cine="1"] { --d: 80; }  [data-cine="2"] { --d: 220; }
[data-cine="3"] { --d: 360; } [data-cine="4"] { --d: 500; }
[data-cine="5"] { --d: 640; }
@keyframes cine-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.vs-art [data-cine="2"] { animation-name: cine-plate-a; }
.vs-art [data-cine="3"] { animation-name: cine-plate-b; }
@keyframes cine-plate-a {
  from { opacity: 0; transform: translate(46px, -30px) rotate(6deg) scale(.9); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes cine-plate-b {
  from { opacity: 0; transform: translate(56px, 20px) rotate(-5deg) scale(.9); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* the noun types itself */
.vs-type { display: inline-flex; align-items: baseline; }
.vs-type__in { color: var(--accent); }
.vs-type__caret {
  display: inline-block; width: 3px; height: .82em; margin-left: 4px;
  background: var(--accent); border-radius: 2px;
  animation: cine-caret 1.05s steps(1) infinite;
  transform: translateY(.04em);
}
@keyframes cine-caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* a slow bloom behind the artwork */
.vs-art { position: relative; }
.vs-art__glow {
  position: absolute; inset: -14% -8% -10% 2%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 40% at 68% 22%, color-mix(in srgb, var(--h-indigo) 30%, transparent), transparent 70%),
    radial-gradient(40% 38% at 34% 78%, color-mix(in srgb, var(--h-violet) 26%, transparent), transparent 72%);
  filter: blur(28px); opacity: .55;
  animation: cine-bloom 13s ease-in-out infinite alternate;
}
@keyframes cine-bloom {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .42; }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); opacity: .68; }
}

/* the scan line sweeps continuously, and a hit row lights up */
.vs-card__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--h-teal) 22%, transparent) 70%, transparent);
  animation: cine-sweep 3.4s cubic-bezier(.5,0,.5,1) infinite;
  pointer-events: none; border-radius: inherit;
}
@keyframes cine-sweep {
  0%   { transform: translateY(-46%); opacity: 0; }
  12%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { transform: translateY(214%); opacity: 0; }
}
.vs-row.is-hit {
  background: color-mix(in srgb, var(--h-teal) 13%, transparent);
  box-shadow: inset 2px 0 0 var(--h-teal);
}
.vs-card h4 { display: flex; align-items: center; gap: 8px; }
.vs-card h4 .vt-i { color: var(--h-teal); }

@media (prefers-reduced-motion: reduce) {
  .vs-hero--cine [data-cine] { animation: none; opacity: 1; transform: none; }
  .vs-type__caret, .vs-art__glow, .vs-card__scan { animation: none; }
}

/* ============================================================
   OPERATIONS DASHBOARD
   ============================================================ */
.va-work {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 14px; margin-bottom: 4px;
}
.va-work__c {
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  gap: 2px 13px; align-items: center; padding: 17px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, color-mix(in srgb, var(--h) 13%, transparent) 0%,
              color-mix(in srgb, var(--h) 2%, transparent) 50%, transparent 72%), var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 22%, transparent), var(--sh-2);
  transition: transform .3s cubic-bezier(.2,1,.3,1), box-shadow .25s ease;
}
.va-work__c::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--h), color-mix(in srgb, var(--h) 30%, transparent));
}
.va-work__c:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 48%, transparent), var(--sh-3);
}
.va-work__c:hover i { transform: translateX(4px); color: var(--h); }
.va-work__ico {
  grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: var(--h);
  background: color-mix(in srgb, var(--h) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 24%, transparent);
}
.va-work__c b { font-size: 27px; font-weight: 800; letter-spacing: -.04em; color: var(--h); line-height: 1.05; }
.va-work__c span { grid-column: 2; font-size: 12.8px; color: var(--ink-500); }
.va-work__c i { grid-row: 1 / 3; color: var(--ink-300); transition: transform .25s ease, color .2s ease; }
.va-work__c[data-quiet="1"] {
  background: var(--card); box-shadow: var(--ring), var(--sh-1);
}
.va-work__c[data-quiet="1"] b { color: var(--ink-300); }
.va-work__c[data-quiet="1"] .va-work__ico { background: var(--sunk); color: var(--ink-300);
  box-shadow: inset 0 0 0 1px var(--line); }
.va-work__c[data-quiet="1"]::before { opacity: .25; }

.va-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 22px; align-items: start;
}
.va-panel--wide { grid-column: span 2; }
@media (max-width: 780px) { .va-panel--wide { grid-column: span 1; } }
.va-panel {
  border-radius: var(--r-lg); padding: 16px 18px 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--h) 7%, transparent), transparent 48%), var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--h) 17%, transparent), var(--sh-2);
}
.va-panel > header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 13px;
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
}
.va-panel > header h2 {
  flex: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-500);
  display: flex; align-items: center; gap: 8px;
}
.va-panel > header h2 .vt-i { color: var(--h); }
.va-panel > header a, .va-panel > header .vt-hint {
  font-size: 11.5px; color: var(--ink-500); text-decoration: none;
}
.va-panel > header a:hover { color: var(--h); }
.va-panel > header b { color: var(--ink-900); }
.va-none { font-size: 13px; color: var(--ink-300); padding: 12px 0 4px; }

.va-list { display: grid; gap: 1px; }
.va-list li { list-style: none; }
.va-list a {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 9px 10px; margin-inline: -10px; border-radius: 9px;
  text-decoration: none; color: inherit; font-size: 13.2px;
  transition: background .16s ease, padding-left .18s ease;
}
.va-list a:hover { background: color-mix(in srgb, var(--h) 9%, transparent); padding-left: 14px; }
.va-list a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-list small {
  display: block; font-size: 10.5px; color: var(--ink-300); font-family: var(--data);
}
.va-list em {
  font-style: normal; font-family: var(--data); font-size: 11px;
  color: var(--ink-500); white-space: nowrap;
}
.va-list em.is-late {
  color: var(--void); background: var(--void-100); padding: 2px 7px; border-radius: 99px; font-weight: 700;
}

.va-bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; padding-top: 8px; }
.va-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; }
.va-bar__stack { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 3px; }
.va-bar__in, .va-bar__done {
  flex: 1; border-radius: 5px 5px 2px 2px; min-height: 3px;
  height: var(--h); animation: va-grow .8s cubic-bezier(.16,1,.3,1) both;
  transition: filter .2s ease;
}
.va-bar__in   { background: linear-gradient(180deg, var(--h-indigo), color-mix(in srgb, var(--h-indigo) 45%, transparent)); }
.va-bar__done { background: linear-gradient(180deg, var(--h-teal),   color-mix(in srgb, var(--h-teal) 45%, transparent)); }
.va-bar:hover .va-bar__in, .va-bar:hover .va-bar__done { filter: brightness(1.18); }
@keyframes va-grow { from { height: 0; opacity: 0; } to { height: var(--h); opacity: 1; } }
.va-bar small { font-family: var(--data); font-size: 10px; color: var(--ink-300); }
.va-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11.5px; color: var(--ink-500); }
.va-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

.va-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.va-totals dt { font-size: 11px; color: var(--ink-500); letter-spacing: .04em; }
.va-totals dd { font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-top: 1px; }
.va-feed { max-height: 260px; overflow-y: auto; }
.vtc__plate--none { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.vtc__plate--none small {
  display: block; font-family: var(--data); font-size: 8px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.vp-idcard {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: center;
}
@media (max-width: 820px) { .vp-idcard { grid-template-columns: 1fr; gap: 20px; } }

/* the card on the marketing page sits opposite the copy */
.vs-split--card { grid-template-columns: 400px minmax(0,1fr); gap: 52px; align-items: center; }
.vs-split--card .vtc { max-width: 400px; }
@media (max-width: 920px) {
  .vs-split--card { grid-template-columns: 1fr; gap: 30px; }
  .vs-split--card .vtc { max-width: 380px; }
}

/* ============================================================
   SCAN RESULT — what someone actually sees when they tap a tag.
   A verdict first, then how much life is left in each paper.
   ============================================================ */
.vs-scan {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--r-xl);
  padding: 18px; display: grid; gap: 14px;
  box-shadow: var(--ring), var(--sh-3);
}
.vs-scan__head { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; }
.vs-scan__nfc {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--h-teal) 15%, transparent); color: var(--h-teal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 26%, transparent);
  animation: vs-scan-tap 2.6s ease-in-out infinite;
}
@keyframes vs-scan-tap {
  0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 26%, transparent), 0 0 0 0 color-mix(in srgb, var(--h-teal) 35%, transparent); }
  55%      { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 26%, transparent), 0 0 0 10px transparent; }
}
.vs-scan__head p {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-300);
}
.vs-scan__head b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; font-family: var(--data); }

.vs-scan__verdict { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.vs-scan__verdict span { position: absolute; color: var(--h-teal); line-height: 0; }
.vs-scan__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.vs-scan__ring .tr  { fill: none; stroke: var(--line); stroke-width: 3.4; }
.vs-scan__ring .bar {
  fill: none; stroke: var(--h-teal); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 113; stroke-dashoffset: 113;
  animation: vs-ring 1.6s cubic-bezier(.16,1,.3,1) .5s forwards;
}
@keyframes vs-ring { to { stroke-dashoffset: 9; } }

.vs-scan__ok {
  font-size: 13px; font-weight: 600; color: var(--stamp);
  background: color-mix(in srgb, var(--h-teal) 12%, transparent);
  padding: 8px 12px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 22%, transparent);
}

.vs-scan__rows { display: grid; gap: 3px; }
.vs-scan .vs-row {
  position: relative; display: grid;
  grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 10px 11px; border-radius: 10px; background: none;
}
.vs-scan .vs-row:hover { background: var(--sunk); padding-left: 10px; }
.vs-scan .vs-row i {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  color: var(--h-teal); background: color-mix(in srgb, var(--h-teal) 12%, transparent);
}
.vs-scan .vs-row[data-tone="hold"] i { color: var(--hold); background: color-mix(in srgb, var(--h-amber) 15%, transparent); }
.vs-scan .vs-row span { font-size: 13.5px; color: var(--ink-700); }
.vs-scan .vs-row em {
  font-style: normal; font-family: var(--data); font-size: 11.5px;
  font-weight: 700; color: var(--stamp);
}
.vs-scan .vs-row[data-tone="hold"] em { color: var(--hold); }
.vs-scan .vs-row__bar {
  grid-column: 2 / -1; height: 3px; border-radius: 2px;
  background: var(--line-2); position: relative; margin-top: 7px;
}
.vs-scan .vs-row__bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p);
  border-radius: 2px; background: var(--h-teal);
  animation: vs-bar 1.1s cubic-bezier(.16,1,.3,1) .7s both;
}
.vs-scan .vs-row[data-tone="hold"] .vs-row__bar::after { background: var(--h-amber); }
@keyframes vs-bar { from { width: 0; } to { width: var(--p); } }

.vs-scan__foot {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-300); padding-top: 2px;
}
.vs-scan__foot .vt-i { color: var(--ink-300); }
.vs-scan .vs-row.is-hit { background: color-mix(in srgb, var(--h-teal) 12%, transparent); }

/* status bar glyphs sit at the right size inside the frames */
.vd-sb { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-900); }
.vd-sb svg { height: 8px; width: auto; }
.vd-time { font-family: var(--ui); font-weight: 650; font-size: 9px; letter-spacing: -.01em; }
.vd__status { padding: 0 14px; }

/* the in-device portal */
.vd-bar .vt-logo { margin-right: 1px; }
.vd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.vd-stat {
  background: var(--card); border-radius: 7px; padding: 6px 7px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.vd-stat span { display: block; font-size: 5.4px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-500); }
.vd-stat b { font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.vd-stat--lead { background: var(--grad-accent); box-shadow: none; }
.vd-stat--lead span { color: rgba(255,255,255,.72); }
.vd-stat--lead b { color: #fff; }
.vd-stat[data-hue="amber"] b { color: var(--h-amber); }
.vd-stat[data-hue="cyan"] b  { color: var(--h-cyan); }

/* The miniature must keep real card proportions, or it reads as a
   banner rather than the object it is showing. */
.vd-tagcard {
  aspect-ratio: 1.586 / 1;
  border-radius: 9px; padding: 8px 9px;
  display: grid; grid-template-rows: auto 1fr auto;
  gap: 4px; position: relative; overflow: hidden;
  background:
    radial-gradient(74% 62% at 4% -14%,  rgba(255,150,200,.6) 0%, transparent 58%),
    radial-gradient(66% 58% at 98% 4%,   rgba(255,120,140,.5) 0%, transparent 60%),
    radial-gradient(80% 74% at 92% 106%, rgba(120,50,220,.6)  0%, transparent 64%),
    linear-gradient(140deg, #7d1352 0%, #a81b52 26%, #c2364b 48%, #9c2f8e 74%, #5f2fc4 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 4px 10px -3px rgba(70,14,56,.5);
}
.vd-tagcard::after {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 1px, transparent 1px 8px);
  mask-image: radial-gradient(120% 100% at 100% 100%, #000 20%, transparent 72%);
}
.vd-tagcard > * { position: relative; z-index: 1; }
.vd-tagcard__top { display: flex; align-items: center; gap: 4px; font-size: 7px; font-weight: 800; }
.vd-tagcard__top b i { font-style: normal; color: rgba(255,255,255,.72); }
.vd-tagcard__top .vd-pill {
  margin-left: auto; background: rgba(255,255,255,.24); color: #fff;
  font-size: 4.6px; padding: 1.5px 4px;
}
.vd-tagcard__code { display: flex; gap: 2.5px; align-self: center; }
.vd-tagcard__code i {
  font-style: normal; flex: 1; text-align: center; font-family: var(--data);
  font-size: 13px; font-weight: 700; line-height: 1.15; padding: 3px 0 4px;
  border-radius: 3.5px;
  background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.24);
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.vd-tagcard__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  font-size: 6.4px; line-height: 1.3;
}
.vd-tagcard__foot small {
  display: block; font-family: var(--data); font-size: 4.4px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.vd-tagcard__nfc { color: rgba(255,255,255,.6); line-height: 0; }
.vd-tagcard__nfc svg { width: 9px; height: 9px; transform: rotate(180deg); }

.vd-ref { font-family: var(--data); font-size: 7px; font-weight: 700; }
.vd-track { display: grid; gap: 4px; }
.vd-track__row { display: flex; align-items: center; gap: 6px; font-size: 6.4px; color: var(--ink-300); }
.vd-track__row i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line); flex: 0 0 6px;
}
.vd-track__row[data-done="1"] i { background: var(--h-teal); box-shadow: none; }
.vd-track__row[data-done="1"] span { color: var(--ink-700); }
.vd-track__row[data-now="1"] i { background: var(--h-indigo); box-shadow: 0 0 0 2px color-mix(in srgb, var(--h-indigo) 25%, transparent); }
.vd-track__row[data-now="1"] span { color: var(--ink-900); font-weight: 600; }

/* payment outcome */
.vp-pay {
  text-align: center; padding: 44px 30px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%), var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), var(--sh-2);
  display: grid; gap: 14px; justify-items: center; margin-top: 30px;
}
.vp-pay__ico {
  width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.vp-pay[data-state="pending"] .vp-pay__ico { animation: vo-pulse 2s ease-out infinite; }
.vp-pay h1 { font-size: 25px; font-weight: 750; letter-spacing: -.03em; }
.vp-pay p { font-size: 14.5px; color: var(--ink-500); line-height: 1.65; max-width: 46ch; }
.vp-pay .vt-btn { text-decoration: none; margin-top: 6px; }
.vp-paybar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 15px 18px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--h-teal) 12%, transparent),
              color-mix(in srgb, var(--h-cyan) 7%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 24%, transparent);
}
.vp-paybar b { font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.vp-paybar span { display: block; font-size: 12.8px; color: var(--ink-500); margin-top: 2px; }

/* The action button sits on a white plate inside a blue bubble, so it
   must never inherit the bubble's white link colour. */
.vc-card__cta,
.vc-msg--me .vc-card__cta {
  color: var(--ind) !important;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(11,13,18,.28);
}
.vc-card__cta:hover { color: var(--ind-700) !important; }
[data-theme="dark"] .vc-card__cta { background: #f2f4fa; }

/* ============================================================
   MESSAGING — receipts, presence, edits, formatting
   ============================================================ */

/* a 1:1 thread gets a dot, not a count; the staff inbox keeps counts */
.vc-thread__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--h-teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-teal) 25%, transparent);
}
.vc-thread[aria-current="true"] .vc-thread__dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }

/* sent -> delivered -> read */
.vc-tick { font-size: 11px; letter-spacing: -2px; margin-left: 2px; }
.vc-tick--sent      { color: var(--ink-300); }
.vc-tick--delivered { color: var(--ink-300); }
.vc-tick--read      { color: var(--h-teal); }
.vc-msg--me .vc-tick--sent, .vc-msg--me .vc-tick--delivered { color: rgba(255,255,255,.55); }
.vc-msg--me .vc-tick--read { color: #7ff0d0; }
.vc-edited {
  font-style: italic; opacity: .7;
  font-size: 10px;
}
.vc-edited::before { content: "\00b7 "; }

/* hover actions, so they never compete with the message */
.vc-acts { display: inline-flex; gap: 6px; margin-left: 6px; opacity: 0; transition: opacity .16s ease; }
.vc-msg:hover .vc-acts, .vc-msg:focus-within .vc-acts { opacity: 1; }
.vc-act {
  font-family: var(--ui); font-size: 10.5px; font-weight: 600; color: var(--ink-500);
  background: none; border: 0; padding: 1px 5px; border-radius: 5px; cursor: pointer;
}
.vc-act:hover { background: var(--sunk); color: var(--ink-900); }
.vc-msg--me .vc-act { color: rgba(255,255,255,.7); }
.vc-msg--me .vc-act:hover { background: rgba(255,255,255,.18); color: #fff; }
.vc-act--go { color: var(--accent); }
.vc-msg--me .vc-act--go { color: #fff; }

.vc-editbox {
  width: 100%; min-height: 62px; resize: vertical; border: 0; border-radius: 9px;
  padding: 8px 10px; font: inherit; font-size: 14px;
  background: rgba(255,255,255,.16); color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.vc-msg:not(.vc-msg--me) .vc-editbox {
  background: var(--sunk); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line);
}
.vc-editrow { display: flex; gap: 8px; margin-top: 7px; }

.vc-msg--gone .vc-msg__b {
  font-style: italic; opacity: .55; background: var(--sunk) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink-500) !important;
}

/* formatting inside a message */
.vc-msg__b b { font-weight: 700; }
.vc-msg__b .vc-inline {
  font-family: var(--data); font-size: .88em; padding: 1px 5px; border-radius: 5px;
  background: rgba(255,255,255,.2);
}
.vc-msg:not(.vc-msg--me) .vc-msg__b .vc-inline { background: var(--sunk); }
.vc-code {
  margin: 7px 0 2px; padding: 10px 12px; border-radius: 10px; overflow-x: auto;
  background: rgba(0,0,0,.26); font-family: var(--data); font-size: 12.4px; line-height: 1.55;
}
.vc-msg:not(.vc-msg--me) .vc-code { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.vc-code code { white-space: pre; }
.vc-ul { margin: 5px 0 2px; padding-left: 18px; }
.vc-ul li { list-style: disc; margin: 2px 0; }
.vc-msg__b a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- the chat fills whatever screen it is given ---- */
@media (max-width: 980px) {
  .vp-page--chat { height: auto; display: block; overflow: visible; padding-bottom: 0; }
  .vs-support { display: block; }
  /* --vc-used is measured in motion.js: nav + heading + thread tabs.
     A fixed offset breaks the moment the nav wraps. */
  .vp-page--chat .vc {
    height: calc(100dvh - var(--vc-used, 210px) - 16px);
    min-height: 340px;
  }
  .vs-aside { margin-top: 16px; }
}
@media (max-width: 640px) {
  .vp-page--chat { padding-inline: 0; }
  .vp-page--chat .vp-head { padding-inline: 16px; }
  .vp-page--chat .vc-threads { padding-inline: 16px; scroll-padding-inline: 16px; }
  .vp-page--chat .vc {
    border-radius: 0; box-shadow: none;
    border-top: 1px solid var(--line);
    height: calc(100dvh - var(--vc-used, 178px) - 8px);
    min-height: 320px;
  }
  .vp-page--chat .vs-aside { padding-inline: 16px; }
  .vc__scroll { padding: 14px 12px 6px; }
  .vc-msg { max-width: 88%; }
  .vc-msg--card { max-width: 94%; }
  .vc__foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .vc-acts { opacity: 1; }          /* no hover on touch */
  .vc-card__qr { width: 150px; height: 150px; }
  .vc-quick { justify-content: flex-start; }
  .vc-quick__b { font-size: 12px; padding: 7px 11px; }
}
@media (max-width: 400px) {
  .vc-msg { max-width: 94%; }
  .vc-msg__b { font-size: 14px; }
}
/* "… is typing", three dots that actually move */
.vc-typing {
  display: flex; align-items: center; gap: 4px;
  align-self: flex-start; margin: 2px 0 4px;
  font-size: 11.5px; color: var(--ink-300);
}
.vc-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-300);
  animation: vc-bounce 1.25s ease-in-out infinite;
}
.vc-typing i:nth-child(2) { animation-delay: .16s; }
.vc-typing i:nth-child(3) { animation-delay: .32s; }
.vc-typing span { margin-left: 5px; }
@keyframes vc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .vc-typing i { animation: none; } }

/* ---- the app chrome has to fit a tablet, not just a laptop ---- */
@media (max-width: 1000px) {
  .vt-top { gap: 6px; }
  .vt-brand span { display: none; }            /* section chip, repeated below */
  .vp-links a, .vs-nav__links a { padding: 8px 10px; font-size: 13.5px; }
  .vt-user { padding: 5px 9px; }
  .vt-user small { display: none; }            /* role list */
}
@media (max-width: 860px) {
  /* Two rows: identity on top, navigation underneath. Nothing is
     allowed to wrap on its own, which is what looked broken. */
  .vt-top {
    flex-wrap: wrap; row-gap: 6px; align-items: center;
    height: auto; padding-block: 9px;
  }
  .vt-top__spacer { display: none; }
  .vt-brand { flex: 1 1 auto; min-width: 0; }
  .vp-who {
    max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    order: 1;
  }
  .vt-exit { order: 2; margin-left: 2px; white-space: nowrap; }
  .vp-links { order: 3; }
  .vp-page { padding-top: 16px; }
}
@media (max-width: 460px) {
  .vp-who { display: none; }                   /* the toggle and exit matter more */
  .vt-brand b { font-size: inherit; }
}

/* the sender sees state, not a button they cannot press */
.vc-state {
  display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; margin-top: 4px;
  background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line);
}
.vc-state b { font-size: 13px; font-weight: 700; }
.vc-state span { font-size: 11.8px; color: var(--ink-500); line-height: 1.45; }
.vc-state--ok   { background: color-mix(in srgb, var(--h-teal) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-teal) 26%, transparent); }
.vc-state--ok b { color: var(--stamp); }
.vc-state--hold { background: color-mix(in srgb, var(--h-amber) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-amber) 28%, transparent); }
.vc-state--hold b { color: var(--hold); }
.vc-state--bad  { background: color-mix(in srgb, var(--h-rose) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-rose) 26%, transparent); }
.vc-state--bad b { color: var(--void); }
.vc-state--idle b { color: var(--ink-500); }

/* The staff card sits on a blue bubble, so the status plate needs its
   own light ground — the light-mode tokens vanish against it. */
.vc-msg--me .vc-state {
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  border-left: 3px solid rgba(255,255,255,.5);
}
.vc-msg--me .vc-state b,
.vc-msg--me .vc-state span { color: #fff; }
.vc-msg--me .vc-state span { color: rgba(255,255,255,.8); }
.vc-msg--me .vc-state--ok   { border-left-color: #6ff0cd; background: rgba(60,235,190,.2); }
.vc-msg--me .vc-state--hold { border-left-color: #ffd486; background: rgba(255,196,90,.2); }
.vc-msg--me .vc-state--bad  { border-left-color: #ff9d9d; background: rgba(255,120,120,.24); }
.vc-msg--me .vc-state--idle { border-left-color: rgba(255,255,255,.4); }
.vc-state { border-left: 3px solid transparent; }
.vc-state--ok   { border-left-color: var(--h-teal); }
.vc-state--hold { border-left-color: var(--h-amber); }
.vc-state--bad  { border-left-color: var(--h-rose); }

/* ============================================================
   ALERTS — a toast that counts itself down, a bell that tallies
   ============================================================ */
.vt-alerts {
  /* clear of the chrome, so a toast never covers the bell it came from */
  position: fixed; top: 76px; right: 16px; z-index: 90;
  display: grid; gap: 9px; width: min(348px, calc(100vw - 28px));
  pointer-events: none;
}
.vt-alert {
  pointer-events: auto; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: start;
  padding: 12px 12px 14px; border-radius: 13px;
  background: var(--card); box-shadow: var(--ring), var(--sh-3);
  animation: vt-alert-in .34s cubic-bezier(.16,1,.3,1) both;
}
.vt-alert.is-out { animation: vt-alert-out .26s ease forwards; }
@keyframes vt-alert-in  { from { opacity: 0; transform: translateX(22px) scale(.97); } }
@keyframes vt-alert-out { to   { opacity: 0; transform: translateX(22px) scale(.97); } }
.vt-alert.is-link { cursor: pointer; }
.vt-alert.is-link:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--sh-3); }
.vt-alert__i {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.vt-alert--paid .vt-alert__i, .vt-alert--verify .vt-alert__i {
  background: color-mix(in srgb, var(--h-teal) 16%, transparent); color: var(--stamp); }
.vt-alert--reject .vt-alert__i {
  background: color-mix(in srgb, var(--h-rose) 16%, transparent); color: var(--void); }
.vt-alert--payment .vt-alert__i {
  background: color-mix(in srgb, var(--h-amber) 18%, transparent); color: var(--hold); }
.vt-alert__m b { display: block; font-size: 13.4px; font-weight: 650; line-height: 1.35; }
.vt-alert__m p {
  font-size: 12.2px; color: var(--ink-500); margin-top: 2px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vt-alert__x {
  background: none; border: 0; cursor: pointer; color: var(--ink-300);
  font-size: 17px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.vt-alert__x:hover { background: var(--sunk); color: var(--ink-900); }
.vt-alert__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform-origin: left; background: var(--grad-accent);
  animation: vt-alert-bar linear forwards;
}
.vt-alert--paid .vt-alert__bar   { background: var(--h-teal); }
.vt-alert--reject .vt-alert__bar { background: var(--h-rose); }
@keyframes vt-alert-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* the bell */
.vt-bellwrap { position: relative; }
.vt-bell {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink-500);
  box-shadow: var(--ring); border: 0;
}
.vt-bell:hover { color: var(--ink-900); background: var(--sunk); }
.vt-bell.has-new { color: var(--accent); }
.vt-bell.is-ring .vt-i { animation: vt-ring .7s cubic-bezier(.36,.07,.19,.97); transform-origin: top center; }
@keyframes vt-ring {
  0%,100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }  30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }   60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
.vt-bell__n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  background: var(--h-rose); color: #fff;
  font-family: var(--data); font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
  animation: vt-pop .3s cubic-bezier(.2,1.4,.35,1);
}
@keyframes vt-pop { from { transform: scale(.4); opacity: 0; } }
.vt-bell__panel {
  position: absolute; top: 46px; right: 0; width: min(340px, calc(100vw - 24px));
  background: var(--card); border-radius: 14px; z-index: 70;
  box-shadow: var(--ring), var(--sh-3); overflow: hidden;
  animation: vt-alert-in .22s cubic-bezier(.16,1,.3,1) both;
}
.vt-bell__panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.vt-bell__panel header b { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.vt-bell__mute {
  background: none; border: 0; cursor: pointer; color: var(--ink-300);
  padding: 4px; border-radius: 7px; line-height: 0;
}
.vt-bell__mute[aria-pressed="true"] { color: var(--void); opacity: .6; text-decoration: line-through; }
.vt-bell__list { max-height: 340px; overflow-y: auto; }
.vt-bell__row {
  display: block; padding: 11px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
}
.vt-bell__row:last-child { border-bottom: 0; }
.vt-bell__row:hover { background: var(--sunk); }
.vt-bell__row.is-fresh { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.vt-bell__row b { display: block; font-size: 13px; font-weight: 600; }
.vt-bell__row p { font-size: 11.8px; color: var(--ink-500); margin-top: 2px; }
.vt-bell__row time { font-family: var(--data); font-size: 10.5px; color: var(--ink-300); }
.vt-bell__none { padding: 22px 14px; text-align: center; font-size: 13px; color: var(--ink-300); }
@media (max-width: 860px) { .vt-alerts { top: 108px; } }
@media (max-width: 560px) { .vt-alerts { top: 104px; right: 10px; left: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) {
  .vt-alert, .vt-bell__n, .vt-bell__panel { animation: none; }
  .vt-bell.is-ring .vt-i { animation: none; }
}

/* the verifier types three things, not twelve */
.vw-more {
  margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px;
}
.vw-more summary {
  cursor: pointer; font-size: 12.5px; color: var(--ink-500);
  list-style: none; display: flex; align-items: center; gap: 7px;
  padding: 5px 0; user-select: none;
}
.vw-more summary::-webkit-details-marker { display: none; }
.vw-more summary::before {
  content: "+"; width: 17px; height: 17px; border-radius: 5px;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: var(--sunk); color: var(--ink-500); box-shadow: inset 0 0 0 1px var(--line);
}
.vw-more[open] summary::before { content: "\2212"; }
.vw-more summary:hover { color: var(--ink-900); }
.vw-more > .vt-grid { margin-top: 10px; }
.vt-field.is-key .vt-label::after {
  content: "needed"; margin-left: 7px; font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; font-family: var(--data);
  color: var(--hold); background: color-mix(in srgb, var(--h-amber) 16%, transparent);
  padding: 1px 5px; border-radius: 4px; vertical-align: 1px;
}
.vc-card__alt {
  display: block; text-align: center; margin-top: 8px;
  font-size: 12px; color: rgba(255,255,255,.8); text-decoration: underline;
}
.vc-msg:not(.vc-msg--me) .vc-card__alt { color: var(--ink-500); }

/* ---- verify: the document fits the space it is given ---- */
/* A percentage max-height cannot resolve inside an auto-sized grid
   track — that is why a phone photo rendered at 1140x1520 in an 834px
   panel and had to be scrolled. Positioning the image absolutely makes
   the containing block the canvas box, which IS definite. */
.vw-view { min-height: 0; }
.vw-canvas {
  position: relative; min-height: 0; min-width: 0; overflow: hidden;
  background:
    linear-gradient(45deg, var(--sunk) 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(-45deg, var(--sunk) 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, var(--sunk) 75%) 0 0/16px 16px,
    linear-gradient(-45deg, transparent 75%, var(--sunk) 75%) 0 0/16px 16px,
    var(--bg);
}
.vw-canvas #page {
  position: absolute; inset: 18px; margin: auto;
  max-width: calc(100% - 36px)  !important;
  max-height: calc(100% - 36px) !important;
  width: auto; height: auto;
  object-fit: contain; display: block;
  box-shadow: 0 10px 34px -10px rgba(11,13,18,.55);
  background: #fff; border-radius: 3px;
  transform-origin: center center;
}

/* page number on each thumbnail, and on the bar */
.vw-film { counter-reset: pg; }
.vw-film button { position: relative; counter-increment: pg; }
.vw-film button::after {
  content: counter(pg);
  position: absolute; bottom: 3px; right: 4px;
  font-family: var(--data); font-size: 9px; line-height: 1;
  padding: 2px 4px; border-radius: 4px;
  background: rgba(11,13,18,.72); color: #fff;
}
.vw-count {
  font-family: var(--data); font-size: 11.5px; color: var(--ink-300);
  margin-left: 2px; white-space: nowrap;
}
.vc-card__warn {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.5;
  background: rgba(255,196,90,.22); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,196,90,.4);
}
.vc-msg:not(.vc-msg--me) .vc-card__warn {
  background: color-mix(in srgb, var(--h-amber) 15%, transparent); color: var(--hold);
}
/* one clear action on a payment card */
.vc-card__cta--big { display: block; padding: 12px 18px; font-size: 14px; }
.vp-pay[data-state="lapsed"] .vp-pay__ico,
.vp-pay[data-state="error"] .vp-pay__ico { animation: none; }
.vp-pay .vs-cta { margin-top: 6px; flex-wrap: wrap; }
.vp-pay .vt-btn { text-decoration: none; }
/* a one-off receipt: money in, nothing to track */
.vc-card--receipt .vc-card__k { color: var(--stamp); }
.vc-msg--me .vc-card--receipt .vc-card__k { color: #7ff0d0; }
/* search in a console header */
.vp-search { position: relative; display: flex; align-items: center; min-width: min(360px, 100%); }
.vp-search .vt-i { position: absolute; left: 12px; color: var(--ink-300); pointer-events: none; }
.vp-search .vt-input { padding-left: 38px; padding-right: 32px; }
.vp-search__x {
  position: absolute; right: 10px; color: var(--ink-300); text-decoration: none;
  font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 5px;
}
.vp-search__x:hover { background: var(--sunk); color: var(--ink-900); }
.vp-tabs__n {
  font-family: var(--data); font-size: 10.5px; margin-left: 5px;
  padding: 1px 5px; border-radius: 99px; background: var(--sunk); color: var(--ink-500);
}
.vp-tabs a[aria-current="true"] .vp-tabs__n { background: rgba(255,255,255,.24); color: #fff; }

/* the VIVTAG number as one strip, so vehicles are not pushed under it */
.vp-idbar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 16px 20px; border-radius: 15px; margin-bottom: 22px;
  background: var(--card); box-shadow: var(--ring), var(--sh-1);
}
.vp-idbar__code { display: grid; gap: 3px; }
.vp-idbar__code small {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-300);
}
.vp-idbar__code b {
  font-family: var(--data); font-size: 23px; font-weight: 700; letter-spacing: .1em;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vp-idbar p { font-size: 13px; color: var(--ink-500); line-height: 1.6; max-width: 62ch; }
.vp-idbar__act { display: flex; gap: 8px; white-space: nowrap; }
.vp-idcard-hide { margin-bottom: 22px; max-width: 420px; }
@media (max-width: 900px) {
  .vp-idbar { grid-template-columns: 1fr; gap: 12px; }
  .vp-idbar__act { flex-wrap: wrap; }
  .vp-idbar__act .vt-btn { flex: 1 1 auto; justify-content: center; }
}
/* which document you are on, next to the fields you are filling */
.vw-now {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 0 0; margin: 0;
}
.vw-now b { font-size: 15px; font-weight: 650; }
.vw-now span { font-family: var(--data); font-size: 11px; color: var(--ink-300); }
.vw-now[data-s="verified"] b { color: var(--stamp); }
.vw-now[data-s="rejected"] b { color: var(--void); }

/* look at a chosen file before sending it */
.vt-side__eye, .vt-side__x {
  width: 30px; height: 30px; min-width: 30px;   /* a real touch target */
  display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 8px; font-size: 16px; line-height: 1;
  background: rgba(255,255,255,.18); color: #fff;
}
.vt-side__eye:hover { background: rgba(255,255,255,.34); }
.vt-side__x:hover   { background: var(--h-rose); color: #fff; }
.vt-prev {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px; background: rgba(11,13,18,.82); backdrop-filter: blur(6px);
  animation: vt-fade .18s ease both;
}
@keyframes vt-fade { from { opacity: 0; } }
.vt-prev__box {
  display: flex; flex-direction: column; max-width: min(940px, 100%); max-height: 100%;
  background: var(--card); border-radius: 15px; overflow: hidden; box-shadow: var(--sh-3);
}
.vt-prev__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.vt-prev__head b { font-size: 14px; }
.vt-prev__x {
  width: 32px; height: 32px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--sunk); color: var(--ink-900); font-size: 20px; line-height: 1;
}
.vt-prev__x:hover { background: var(--h-rose); color: #fff; }
.vt-prev__img { max-width: 100%; max-height: 74vh; object-fit: contain; display: block; background: #fff; }
.vt-prev__pdf { width: min(880px, 86vw); height: 74vh; border: 0; }
.vt-prev__foot {
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-family: var(--data); font-size: 11.5px; color: var(--ink-500);
}
@media (max-width: 560px) { .vt-prev { padding: 10px; } .vt-prev__img { max-height: 66vh; } }
/* what is lapsing, and when */
.vp-exp { display: grid; gap: 3px; justify-items: start; }
.vp-exp small { font-family: var(--data); font-size: 10.5px; color: var(--ink-500); white-space: nowrap; }
/* move between documents and their pages, from the panel you work in */
.vw-move {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 2px; min-width: 0;
}
/* The two arrows belong together — one at each end of the row read as
   unrelated controls. */
.vw-move__pair { display: flex; gap: 4px; flex: 0 0 auto; }
.vw-move__b {
  width: 30px; height: 28px; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--sunk); color: var(--ink-900); font-size: 15px; line-height: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}
.vw-move__b:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.vw-move__b:disabled { opacity: .35; cursor: default; }
.vw-move__pages { display: flex; gap: 5px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.vw-move__pages::-webkit-scrollbar { display: none; }
.vw-move__pg {
  padding: 5px 11px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  font-family: var(--data); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  background: var(--sunk); color: var(--ink-500); box-shadow: inset 0 0 0 1px var(--line);
}
.vw-move__pg:hover { color: var(--ink-900); }
.vw-move__pg[aria-current="true"] { background: var(--grad-accent); color: #fff; box-shadow: none; }
.vp-exp__more { color: var(--void) !important; }
.vp-exp__help {
  font-size: 11.5px; color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; margin-top: 1px;
}
.vp-exp__row { display: grid; gap: 2px; justify-items: start; }
.vp-exp__row + .vp-exp__row { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); }

/* something that needs acting on now, versus something worth knowing */
.vt-alert--loud {
  box-shadow: var(--ring), var(--sh-3), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.vt-alert--loud.vt-alert--paid {
  box-shadow: var(--ring), var(--sh-3), 0 0 0 3px color-mix(in srgb, var(--h-teal) 22%, transparent);
}
.vt-alert--loud.vt-alert--reject {
  box-shadow: var(--ring), var(--sh-3), 0 0 0 3px color-mix(in srgb, var(--h-rose) 22%, transparent);
}
.vt-alert--loud .vt-alert__m b { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .vt-alert__bar { animation-duration: 0s; } }

/* The mark is a flex item. The console nav carries more links than the
   portal, so without this it was squeezed from 30px to 8px and read as
   a sliver rather than a logo. */
.vt-brand > svg, .vt-brand .vt-logo { flex: 0 0 auto; }
.vt-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.vt-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; }

/* paging */
.vp-pager {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.vp-pager__n {
  font-family: var(--data); font-size: 11.5px; color: var(--ink-500); margin-right: auto;
}
.vp-pager__b {
  min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px;
  display: grid; place-items: center; text-decoration: none;
  font-family: var(--data); font-size: 12.5px;
  color: var(--ink-900); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
a.vp-pager__b:hover { background: var(--accent-soft); color: var(--accent); }
.vp-pager__b[aria-current="page"] { background: var(--grad-accent); color: #fff; box-shadow: none; font-weight: 700; }
.vp-pager__b[aria-disabled="true"] { opacity: .3; }
.vp-pager__gap { color: var(--ink-300); padding: 0 2px; }
.vp-page__count { font-family: var(--data); font-size: 11.5px; color: var(--ink-300); margin-top: 14px; }

/* a PDF gets a frame, not an image tag */
.vw-canvas #pagePdf {
  position: absolute; inset: 14px;
  width: calc(100% - 28px); height: calc(100% - 28px);
  border: 0; border-radius: 4px; background: #fff;
  box-shadow: 0 10px 34px -10px rgba(11,13,18,.55);
}
.vw-canvas #pagePdf[hidden], .vw-canvas #page[hidden] { display: none; }
.vw-tool:disabled { opacity: .35; cursor: default; }

/* the four least-used console sections, behind one button */
.vt-more { position: relative; }
.vt-more__b {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 11px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  background: none; color: var(--ink-500); white-space: nowrap;
}
.vt-more__b:hover { color: var(--ink-900); background: var(--sunk); }
.vt-more__b[aria-current="page"] { color: var(--accent); font-weight: 600; }
.vt-more__b span { font-size: 9px; opacity: .7; }
.vt-more__menu {
  position: absolute; top: 40px; left: 0; min-width: 168px; z-index: 70;
  display: grid; padding: 6px; border-radius: 12px;
  background: var(--card); box-shadow: var(--ring), var(--sh-3);
}
.vt-more__menu a {
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  font-size: 13.5px; color: var(--ink-900); white-space: nowrap;
}
.vt-more__menu a:hover { background: var(--sunk); }
.vt-more__menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Just the name. Only one staff role exists now, and the header
   already says STAFF CONSOLE — stacking "ADMIN" under it was noise. */
.vt-top .vp-who {
  /* The live dot is absolutely positioned at left:11px, so the text
     needs to start clear of it — otherwise the first letter sits
     underneath and "viv@admin12" reads as "iv@admin12". */
  position: relative;
  display: flex; align-items: center; max-width: 190px; height: 34px;
  padding: 0 13px 0 26px; border-radius: 10px;
  background: var(--card); box-shadow: var(--ring);
  font-size: 13px; font-weight: 600; line-height: 1;
}
@media (max-width: 1200px) {
  /* Below this the row still overflowed by ~19px. The name is the thing
     that can shrink without losing meaning — the roles stay. */
  .vt-top .vp-who { max-width: 140px; padding: 0 10px 0 24px; font-size: 12.5px; }
  .vp-links a, .vt-more__b { padding-left: 9px; padding-right: 9px; font-size: 13px; }
  .vt-brand span { display: none; }   /* "Staff console" — the logo says it */
}
.vt-top .vp-who b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}

/* password fields: reveal, and say whether it will be accepted */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; color: var(--ink-300); font-size: 15px; line-height: 1;
}
.pw-eye:hover { background: var(--sunk); color: var(--ink-900); }
.pw-eye--on { color: var(--accent); }
.pw-meter { margin-top: 8px; }
.pw-meter[data-on="0"] { display: none; }
.pw-meter__bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pw-meter__bar i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .22s ease, background .22s ease; }
.pw-meter[data-tone="bad"]  .pw-meter__bar i { background: var(--h-rose); }
.pw-meter[data-tone="hold"] .pw-meter__bar i { background: var(--h-amber, #C77700); }
.pw-meter[data-tone="ok"]   .pw-meter__bar i { background: var(--h-teal); }
.pw-meter__say { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-500); }
.pw-meter[data-tone="bad"] .pw-meter__say { color: var(--h-rose); }
.pw-meter[data-tone="ok"]  .pw-meter__say { color: var(--h-teal); }
