/* Oxleon WebValidator (Mobile Premium V2) - layout on top of oxleon-ds.css (tokens and .ox-* components only).
   No colour values of its own: every colour is a --ox-* token (light and dark follow the design system). */

[hidden] { display: none !important; }

.vx-body {
  --vx-nav-h: 64px;
  --vx-touch: 48px;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ox-page-bg);
  color: var(--ox-text-primary);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.vx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vx-sprite symbol { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vx-icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.vx-icon--sm { width: 14px; height: 14px; }
.vx-icon--lg { width: 24px; height: 24px; }
.vx-icon--xl { width: 36px; height: 36px; }

.vx-skip {
  position: absolute; left: var(--ox-space-2); top: -64px; z-index: 50;
  padding: var(--ox-space-2) var(--ox-space-3);
  background: var(--ox-surface); color: var(--ox-text-primary);
  border: 1px solid var(--ox-border); border-radius: var(--ox-radius-sm);
}
.vx-skip:focus { top: var(--ox-space-2); }
.vx-visually-hidden, .vx-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:where(.vx-body) :focus-visible { outline: 2px solid var(--ox-brand-cyan); outline-offset: 2px; }

/* ── Brand (Core: Instellingen → WebValidator-huisstijl) ──
   validator.js sets --vx-brand-* on <html> from the company's style in Core. Without a style every value falls
   back to the Oxleon design-system tokens below (navy + cyan), so the page looks exactly like the mock-up. */
.vx-body {
  --vx-primary: var(--vx-brand-primary, var(--ox-brand-cyan));
  --vx-accent: var(--vx-brand-accent, var(--ox-brand-cyan-hover));
  --vx-head: var(--vx-brand-header, var(--ox-brand-navy));
  --vx-head-2: color-mix(in srgb, var(--vx-head) 72%, var(--vx-primary));
  --vx-card: var(--vx-brand-card, var(--ox-surface));
  --vx-on-brand: var(--ox-primary-text);
  --vx-on-brand-soft: color-mix(in srgb, var(--vx-on-brand) 72%, transparent);
  --vx-teal: linear-gradient(135deg, var(--vx-primary) 0%, color-mix(in srgb, var(--vx-primary) 62%, var(--vx-head)) 100%);
  --vx-tint: color-mix(in srgb, var(--vx-primary) 12%, var(--vx-card));
  --vx-sheet-radius: 18px;
}
html[data-theme="dark"] .vx-body { --vx-card: var(--ox-surface); --vx-tint: color-mix(in srgb, var(--vx-primary) 18%, var(--ox-surface)); }
.vx-body.has-brand-bg { background-image: var(--vx-brand-bg-image); background-size: cover; background-attachment: fixed; background-position: center; }

/* ── Header (dark band, the work sheet overlaps it) ── */
.vx-header {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: var(--ox-space-3);
  padding: var(--ox-space-3) var(--ox-space-4) calc(var(--ox-space-4) + 22px);
  padding-top: max(var(--ox-space-3), env(safe-area-inset-top));
  padding-left: max(var(--ox-space-4), env(safe-area-inset-left));
  padding-right: max(var(--ox-space-4), env(safe-area-inset-right));
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--vx-primary) 28%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--vx-head-2) 0%, var(--vx-head) 70%);
  color: var(--vx-on-brand);
  box-sizing: border-box;
}
.vx-header__top { display: flex; align-items: center; gap: var(--ox-space-3); min-height: 44px; }
.vx-header__brand { display: flex; align-items: center; gap: var(--ox-space-3); min-width: 0; flex: 1; }
.vx-header__logo { height: 28px; width: auto; max-width: 34vw; object-fit: contain; flex: none; }
.vx-header__divider { width: 1px; height: 28px; background: color-mix(in srgb, var(--vx-on-brand) 28%, transparent); flex: none; }
.vx-header__product { display: inline-flex; align-items: center; gap: var(--ox-space-2); min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; }
.vx-header__appicon { width: 24px; height: 24px; color: var(--vx-primary); }
.vx-header__app { color: var(--vx-on-brand); overflow: hidden; text-overflow: ellipsis; }
.vx-header__actions { display: flex; align-items: center; gap: var(--ox-space-2); flex: none; }

.vx-header__pills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ox-space-2); }
.vx-conn, .vx-orgpill {
  display: flex; align-items: center; gap: var(--ox-space-2);
  min-height: 48px; min-width: 0; padding: 6px var(--ox-space-3);
  border-radius: 14px; box-sizing: border-box;
  background: color-mix(in srgb, var(--vx-on-brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--vx-on-brand) 14%, transparent);
  color: var(--vx-on-brand);
}
.vx-conn__dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%; color: var(--vx-on-brand);
}
.vx-conn__dot .vx-icon { width: 13px; height: 13px; stroke-width: 3; }
.vx-conn--online .vx-conn__dot { background: var(--ox-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ox-success) 25%, transparent); }
.vx-conn--reconnecting .vx-conn__dot { background: var(--ox-warning); }
.vx-conn--reconnecting .vx-conn__dot .vx-icon { animation: vx-spin 1.2s linear infinite; }
.vx-conn--offline .vx-conn__dot { background: var(--ox-danger); }
.vx-conn__lines { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vx-conn__text { font-size: 14px; font-weight: 700; }
.vx-conn__sub { font-size: 12px; color: var(--vx-on-brand-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes vx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vx-conn--reconnecting .vx-conn__dot .vx-icon { animation: none; } }

.vx-orgpick { position: relative; min-width: 0; }
.vx-orgpill { width: 100%; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.vx-orgpill:disabled { cursor: default; }
.vx-orgpill:not(:disabled):hover { background: color-mix(in srgb, var(--vx-on-brand) 14%, transparent); }
.vx-orgpill .vx-icon { width: 20px; height: 20px; }
.vx-orgpill__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-orgpill__chev { margin-left: auto; }
.vx-orgpill[aria-expanded="true"] .vx-orgpill__chev { transform: rotate(180deg); }
.vx-menu--org { left: auto; right: 0; width: 100%; min-width: 220px; }

/* user menu */
.vx-usermenu { position: relative; }
.vx-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 0; background: var(--vx-on-brand); color: var(--vx-head);
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: var(--ox-shadow-sm);
}
.vx-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--vx-primary) 55%, transparent); }
.vx-menu {
  position: absolute; right: 0; top: calc(100% + var(--ox-space-2)); z-index: 30;
  width: 260px; max-width: calc(100vw - 24px);
  padding: var(--ox-space-2);
  background: var(--ox-surface-elevated, var(--ox-surface));
  border: 1px solid var(--ox-border); border-radius: var(--ox-radius-md);
  box-shadow: var(--ox-shadow-md);
  box-sizing: border-box;
}
.vx-menu__who {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--ox-space-2) var(--ox-space-3) var(--ox-space-3);
  margin-bottom: var(--ox-space-1);
  border-bottom: 1px solid var(--ox-border);
}
.vx-menu__who strong { overflow-wrap: anywhere; }
.vx-menu__who span { color: var(--ox-text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.vx-menu__item {
  display: flex; align-items: center; gap: var(--ox-space-3); width: 100%;
  min-height: 44px; padding: 0 var(--ox-space-3);
  border: 0; border-radius: var(--ox-radius-sm); background: transparent;
  color: var(--ox-text-primary); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.vx-menu__item:hover, .vx-menu__item:focus-visible { background: var(--ox-surface-soft); }
.vx-menu__item .vx-icon { color: var(--ox-text-secondary); }
.vx-menu__value { margin-left: auto; color: var(--ox-text-secondary); font-weight: 600; font-size: 12px; }
.vx-menu__item--danger, .vx-menu__item--danger .vx-icon { color: var(--ox-danger); }

/* offline banner */
.vx-offline {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: var(--ox-space-2);
  padding: var(--ox-space-2) var(--ox-space-4);
  background: var(--ox-danger-bg); color: var(--ox-danger);
  border-bottom: 1px solid var(--ox-danger-border);
  font-weight: 600;
}

/* ── Main ── */
.vx-main {
  position: relative; z-index: 3;
  max-width: 680px; margin: -22px auto 0;
  padding: 0 var(--ox-space-4) var(--ox-space-4);
  padding-left: max(var(--ox-space-4), env(safe-area-inset-left));
  padding-right: max(var(--ox-space-4), env(safe-area-inset-right));
  padding-bottom: max(var(--ox-space-5), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--ox-space-4);
  outline: none; box-sizing: border-box;
}
.vx-has-nav .vx-main { padding-bottom: calc(var(--vx-nav-h) + var(--ox-space-4) + env(safe-area-inset-bottom)); }
.vx-work, .vx-pane { display: flex; flex-direction: column; gap: var(--ox-space-3); min-width: 0; }
.vx-main .ox-card { padding: var(--ox-space-4); border-radius: 16px; background: var(--vx-card); box-shadow: var(--ox-shadow-sm); min-width: 0; box-sizing: border-box; }


.vx-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; outline: none; }
.vx-pagehead__sub { margin: var(--ox-space-1) 0 0; color: var(--ox-text-secondary); }
.vx-section-title { margin: 0; font-size: 17px; font-weight: 700; }
.vx-subtitle {
  display: flex; align-items: center; gap: var(--ox-space-2);
  margin: 0 0 var(--ox-space-2); padding: 0;
  font-size: 13px; font-weight: 700; color: var(--ox-text-secondary); text-transform: none;
}
.vx-subtitle--spaced { margin-top: var(--ox-space-4); }
.vx-muted { color: var(--ox-text-secondary); margin: var(--ox-space-1) 0 var(--ox-space-3); }
.vx-hint { margin: var(--ox-space-2) 0 0; color: var(--ox-text-secondary); font-size: 13px; }
.vx-center { text-align: center; }

.vx-error {
  margin: var(--ox-space-3) 0 0;
  padding: var(--ox-space-2) var(--ox-space-3);
  color: var(--ox-danger); background: var(--ox-danger-bg);
  border: 1px solid var(--ox-danger-border); border-radius: var(--ox-radius-sm);
  font-weight: 600;
}
.vx-error p { margin: 0; }
.vx-error--action { display: flex; flex-direction: column; gap: var(--ox-space-2); align-items: flex-start; }

.vx-notice {
  display: flex; gap: var(--ox-space-2); align-items: flex-start;
  margin: var(--ox-space-3) 0 0; padding: var(--ox-space-2) var(--ox-space-3);
  border-radius: var(--ox-radius-sm); font-weight: 600;
}
.vx-notice .vx-icon { margin-top: 1px; }
.vx-notice--warning { color: var(--ox-warning); background: var(--ox-warning-bg); border: 1px solid var(--ox-warning-border); }
.vx-notice-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ox-space-2); }
.vx-notice-card p { margin: 0; font-weight: 600; }

.vx-row { display: flex; gap: var(--ox-space-2); align-items: center; margin-top: var(--ox-space-3); flex-wrap: wrap; }
.vx-grow { flex: 1; }
.vx-block { width: 100%; margin-top: var(--ox-space-3); }

/* touch targets: the DS fixes .ox-btn / .ox-input at 34px with !important */
.vx-main .ox-btn, .vx-modal .ox-btn,
.vx-main .ox-input, .vx-main .ox-select { min-height: 44px !important; height: auto !important; font-size: 15px !important; }
.vx-main .ox-btn { padding: 0 16px !important; border-radius: var(--ox-radius-md) !important; }
.vx-main .ox-input, .vx-main .ox-select { width: 100%; box-sizing: border-box; border-radius: var(--ox-radius-md) !important; }
.vx-btn-lg { min-height: var(--vx-touch) !important; }
.vx-btn-xl { min-height: 56px !important; font-size: 17px !important; font-weight: 800 !important; letter-spacing: .01em; }
.vx-btn-xl .vx-icon { width: 22px; height: 22px; }
.vx-input-xl { min-height: 52px !important; font-size: 18px !important; font-weight: 600; }
.vx-plate { text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.vx-main .ox-field-label { display: block; margin: var(--ox-space-3) 0 var(--ox-space-1); font-weight: 600; }
.vx-main .ox-field-help { margin-top: var(--ox-space-1); }
.vx-code { letter-spacing: .2em; font-size: 18px !important; }

/* ── Login ── */
.vx-login { max-width: 420px; width: 100%; margin: var(--ox-space-5) auto 0; box-sizing: border-box; overflow: hidden; }
.vx-main .vx-login { padding: 0; }
.vx-login__brand {
  display: flex; flex-direction: column; align-items: center; gap: var(--ox-space-2);
  padding: var(--ox-space-6) var(--ox-space-5) var(--ox-space-5);
  background: linear-gradient(160deg, var(--vx-head-2) 0%, var(--vx-head) 80%); border-bottom: 2px solid var(--vx-primary);
}
.vx-login__logo { width: 200px; max-width: 70%; height: auto; }
.vx-login__product { color: var(--vx-primary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.vx-login__form { padding: var(--ox-space-5); }

/* ── Work sheet: title, mode switch, scan area ── */
.vx-sheet, .vx-pagehead {
  background: var(--vx-card); border-radius: var(--vx-sheet-radius);
  box-shadow: var(--ox-shadow-card); border: 1px solid var(--ox-border-soft, var(--ox-border));
  padding: var(--ox-space-4); box-sizing: border-box; min-width: 0;
}
.vx-hero { display: flex; align-items: center; gap: var(--ox-space-3); margin-bottom: var(--ox-space-4); }
.vx-hero__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 44px; color: var(--vx-primary);
}
.vx-hero__icon .vx-icon { width: 44px; height: 44px; stroke-width: 1.8; }
.vx-hero__text { min-width: 0; }

/* ── Segmented mode switch ── */
.vx-segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ox-space-2); }
.vx-segment__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ox-space-2);
  min-height: 48px; padding: 0 6px; min-width: 0;
  border: 1px solid var(--ox-border-soft, var(--ox-border)); border-radius: 14px;
  background: var(--vx-card); box-shadow: var(--ox-shadow-sm);
  color: var(--ox-text-primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.vx-segment__btn .vx-icon { width: 20px; height: 20px; }
.vx-segment__btn span { overflow: hidden; text-overflow: ellipsis; }
.vx-segment__btn:hover { border-color: var(--vx-primary); }
.vx-segment__btn.is-active {
  background: var(--vx-teal); color: var(--vx-on-brand); border-color: transparent;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vx-primary) 30%, transparent), var(--ox-shadow-md);
}
.vx-mode { margin-top: var(--ox-space-3); }

/* ── Scan area ── */
.vx-cam {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 16 / 8; min-height: 170px; max-height: 46vh;
  border-radius: 16px;
  background:
    radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--vx-accent) 22%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, var(--vx-head-2) 0%, var(--vx-head) 80%);
  display: flex; align-items: center; justify-content: center;
}
.vx-cam.is-running { aspect-ratio: 4 / 3; background: var(--vx-head); }
.vx-cam__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-cam__idle {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ox-space-2);
  padding: var(--ox-space-4); border: 0; background: transparent; cursor: pointer;
  color: var(--vx-on-brand); font: inherit; text-align: center;
}
.vx-cam__idle strong { font-size: 18px; font-weight: 700; }
.vx-cam__sub { font-size: 12px; color: var(--vx-on-brand-soft); }
.vx-cam__idle:hover .vx-corners { transform: scale(1.03); }
.vx-cam__idle:focus-visible { outline: 3px solid var(--vx-primary); outline-offset: -6px; border-radius: 16px; }
.vx-corners {
  --c: var(--vx-on-brand); --l: 24px; --w: 3px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 108px; height: 96px; transition: transform .15s ease;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l) no-repeat;
}
.vx-cam__qr { width: 44px; height: 44px; color: var(--vx-on-brand); }
.vx-scanline {
  position: absolute; left: 8%; right: 8%; top: 42%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--vx-accent) 30%, var(--vx-on-brand) 50%, var(--vx-accent) 70%, transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--vx-accent) 60%, transparent);
  animation: vx-scan 2.6s ease-in-out infinite alternate;
}
@keyframes vx-scan { from { transform: translateY(-34px); } to { transform: translateY(34px); } }
@media (prefers-reduced-motion: reduce) { .vx-scanline { animation: none; } .vx-corners { transition: none; } }
.vx-cam__frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.vx-cam__frame .vx-corners {
  --l: 30px; width: min(62%, 240px); height: auto; aspect-ratio: 1;
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--vx-head) 45%, transparent);
}
.vx-cam__frame .vx-scanline { left: 22%; right: 22%; top: 50%; }
.vx-cam__hint { margin: var(--ox-space-2) 0 0; text-align: center; color: var(--ox-text-secondary); font-size: 13px; }
.vx-row--cam { margin-top: var(--ox-space-3); flex-wrap: nowrap; }
.vx-row--cam .ox-btn { min-width: 0; }

/* ── Flow after a ticket is found: option, status, actions ── */
.vx-flow { display: flex; flex-direction: column; gap: var(--ox-space-3); min-width: 0; }
.vx-main .vx-flow > .ox-card, .vx-main .vx-flow .ox-card { background: var(--vx-card); border-radius: 16px; }
.vx-cardtitle { display: flex; align-items: center; gap: var(--ox-space-2); margin: 0 0 var(--ox-space-3); font-size: 16px; font-weight: 700; }
.vx-cardtitle .vx-icon { width: 20px; height: 20px; color: var(--ox-text-primary); }

.vx-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--ox-space-2); }
.vx-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; min-width: 0; padding: var(--ox-space-2) 4px;
  border: 1px solid var(--ox-border-soft, var(--ox-border)); border-radius: 14px;
  background: var(--vx-card); box-shadow: var(--ox-shadow-sm);
  color: var(--ox-text-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vx-tile .vx-icon { width: 24px; height: 24px; }
.vx-tile__label { max-width: 100%; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.vx-tile:hover { border-color: var(--vx-primary); }
.vx-tile.is-active { background: var(--vx-tint); border: 2px solid var(--vx-primary); padding: calc(var(--ox-space-2) - 1px) 3px; }

.vx-kindfield {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px var(--ox-space-3);
  margin-top: var(--ox-space-3);
}
.vx-kindfield__label { font-weight: 600; padding-left: var(--ox-space-2); }
.vx-kindfield__name { grid-column: 2; text-align: center; color: var(--ox-text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.vx-stepper {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center;
  max-width: 260px; width: 100%; justify-self: end;
  border-radius: 999px; background: var(--ox-surface-soft); border: 1px solid var(--ox-border-soft, var(--ox-border));
}
.vx-stepper__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 44px; border-radius: 999px; padding: 0;
  border: 1px solid var(--ox-border-soft, var(--ox-border)); background: var(--vx-card); box-shadow: var(--ox-shadow-sm);
  color: var(--vx-primary); cursor: pointer;
}
.vx-stepper__btn .vx-icon { width: 20px; height: 20px; }
.vx-stepper__btn:disabled { color: var(--ox-text-muted); box-shadow: none; cursor: not-allowed; opacity: .55; }
.vx-stepper__value { text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vx-kindfield--single .vx-stepper__btn { visibility: hidden; }

.vx-options__list { display: flex; flex-direction: column; gap: var(--ox-space-2); margin-top: var(--ox-space-3); }
.vx-option {
  display: flex; align-items: center; gap: var(--ox-space-3);
  min-height: 52px; padding: var(--ox-space-2) var(--ox-space-3);
  border: 1px solid var(--ox-border); border-radius: 14px;
  background: var(--vx-card); cursor: pointer; box-sizing: border-box;
}
.vx-option:hover { border-color: var(--vx-primary); }
.vx-option input { width: 20px; height: 20px; accent-color: var(--vx-primary); margin: 0; flex: 0 0 auto; }
.vx-option__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: var(--ox-radius-sm);
  background: var(--vx-tint); color: var(--vx-primary);
}
.vx-option:has(input:checked) { border-color: var(--vx-primary); background: var(--vx-tint); box-shadow: inset 0 0 0 1px var(--vx-primary); }
.vx-option:has(input:focus-visible) { box-shadow: var(--ox-focus-ring); }
.vx-option__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vx-option__name { font-weight: 700; overflow-wrap: anywhere; }
.vx-option__value { color: var(--ox-text-secondary); font-size: 13px; }
.vx-option__tag { margin-left: auto; }
.vx-used { font-size: 12px; }

/* ticket status: "found and valid" is a light bar - "validated" is the big result card */
.vx-statuscard { padding: var(--ox-space-2) !important; }
.vx-eligibility {
  display: flex; align-items: center; gap: var(--ox-space-3);
  padding: var(--ox-space-3); border-radius: 14px; border: 1px solid transparent;
}
.vx-eligibility__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; color: var(--vx-on-brand);
}
.vx-eligibility__icon .vx-icon { width: 24px; height: 24px; stroke-width: 3; }
.vx-eligibility__lines { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.vx-eligibility__lines strong { font-size: 18px; font-weight: 800; color: var(--ox-text-primary); }
.vx-eligibility__lines span { color: var(--ox-text-secondary); font-weight: 600; overflow-wrap: anywhere; }
.vx-eligibility__more {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid var(--ox-border-soft, var(--ox-border)); background: var(--vx-card); color: var(--ox-text-secondary);
  cursor: pointer;
}
.vx-eligibility--success { background: var(--ox-success-bg); border-color: var(--ox-success-border); }
.vx-eligibility--success .vx-eligibility__icon { background: var(--ox-success); }
.vx-eligibility--warning { background: var(--ox-warning-bg); border-color: var(--ox-warning-border); }
.vx-eligibility--warning .vx-eligibility__icon { background: var(--ox-warning); }
.vx-eligibility--danger { background: var(--ox-danger-bg); border-color: var(--ox-danger-border); }
.vx-eligibility--danger .vx-eligibility__icon { background: var(--ox-danger); }

.vx-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--ox-space-3) 0 0; }
.vx-cols > div { min-width: 0; padding: 0 var(--ox-space-2); border-left: 1px solid var(--ox-border); }
.vx-cols > div:first-child { border-left: 0; }
.vx-cols dt { display: flex; align-items: center; gap: 4px; color: var(--ox-text-secondary); font-size: 12px; min-width: 0; }
.vx-cols dt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-cols dt .vx-icon { width: 16px; height: 16px; }
.vx-cols dd { margin: 4px 0 0; font-weight: 800; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vx-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--ox-space-3);
  margin: var(--ox-space-3) var(--ox-space-2) var(--ox-space-1); padding-top: var(--ox-space-2);
  border-top: 1px dashed var(--ox-border); color: var(--ox-text-secondary); font-size: 12px;
}
.vx-meta strong { color: var(--ox-text-primary); }
.vx-statuscard .vx-notice, .vx-statuscard .vx-hint, .vx-statuscard .vx-details { margin-left: var(--ox-space-2); margin-right: var(--ox-space-2); }
.ox-status-badge .vx-icon { margin-right: 4px; vertical-align: -2px; }
.ox-status-badge { display: inline-flex; align-items: center; }

.vx-actions { display: flex; flex-direction: column; gap: var(--ox-space-2); }
.vx-actions .vx-block { margin-top: 0; }
.vx-main .vx-btn-teal {
  background: var(--vx-teal) !important; color: var(--vx-on-brand) !important; border: 0 !important;
  box-shadow: var(--ox-shadow-md) !important; border-radius: 14px !important;
}
.vx-main .vx-btn-teal:hover:not(:disabled) { filter: brightness(1.06); }
.vx-main .vx-btn-teal:disabled { filter: grayscale(.6); opacity: .55; }
.vx-main .vx-clear {
  background: var(--vx-card) !important; color: var(--ox-text-secondary) !important;
  border: 1px solid var(--ox-border) !important; box-shadow: var(--ox-shadow-sm) !important;
  border-radius: 14px !important; font-weight: 700 !important; font-size: 16px !important;
}
.vx-main .vx-clear:hover { color: var(--ox-text-primary) !important; border-color: var(--ox-border-strong) !important; }
.vx-clear .vx-icon { width: 22px; height: 22px; }
/* ── Shared ticket blocks (Tickets pane, confirm, result) ── */
.vx-ticket__stage { display: flex; align-items: center; justify-content: space-between; gap: var(--ox-space-2); flex-wrap: wrap; }
.vx-stage {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ox-info); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
}
.vx-ticket__title { margin: var(--ox-space-2) 0 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.vx-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ox-space-3) var(--ox-space-4); margin: var(--ox-space-3) 0 0;
}
.vx-facts div { min-width: 0; }
.vx-facts dt { color: var(--ox-text-secondary); font-size: 12px; }
.vx-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vx-facts__amount dd { font-size: 22px; font-weight: 800; }
.vx-facts--confirm, .vx-facts--result { grid-template-columns: minmax(0, 1fr); gap: 0; }
.vx-facts--confirm div, .vx-facts--result div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--ox-space-3);
  padding: var(--ox-space-2) 0; border-bottom: 1px solid var(--ox-border);
}
.vx-facts--confirm div:last-child, .vx-facts--result div:last-child { border-bottom: 0; }
.vx-facts--confirm dd, .vx-facts--result dd { margin: 0; text-align: right; }
.vx-facts--result .vx-facts__amount dd { font-size: 18px; }

.vx-details { margin-top: var(--ox-space-3); border: 1px solid var(--ox-border); border-radius: var(--ox-radius-md); padding: 0 var(--ox-space-3); }
.vx-details summary {
  min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ox-text-secondary);
}
.vx-details summary::-webkit-details-marker { display: none; }
.vx-details summary::after { content: "+"; margin-left: auto; font-weight: 700; }
.vx-details[open] summary::after { content: "–"; }
.vx-details[open] { padding-bottom: var(--ox-space-3); }
.vx-details--quiet { border-style: dashed; }
.vx-details--quiet summary { font-weight: 600; font-size: 13px; }

.vx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ox-space-2); }
.vx-list li {
  display: flex; justify-content: space-between; gap: var(--ox-space-3);
  padding: var(--ox-space-2) var(--ox-space-3);
  background: var(--ox-surface-soft); border: 1px solid var(--ox-border-soft, var(--ox-border));
  border-radius: var(--ox-radius-sm); min-width: 0;
}
.vx-list li span:last-child { text-align: right; color: var(--ox-text-secondary); }
.vx-list .vx-empty { background: transparent; border-style: dashed; color: var(--ox-text-secondary); justify-content: center; }

.vx-summary {
  padding: var(--ox-space-3);
  border-radius: 14px; background: var(--vx-card); border: 1px solid var(--ox-border);
}
.vx-summary__rows { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vx-summary__rows div { display: flex; justify-content: space-between; gap: var(--ox-space-3); }
.vx-summary__rows dt { color: var(--ox-text-secondary); }
.vx-summary__rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vx-summary__total { padding-top: 6px; border-top: 1px solid var(--ox-border); }
.vx-summary__total dt { color: var(--ox-text-primary); font-weight: 700; }
.vx-summary__total dd { font-size: 17px; }
.vx-summary__note { margin: var(--ox-space-2) 0 0; font-size: 12px; color: var(--ox-text-secondary); }
.vx-restrictions { margin: 0; padding-left: var(--ox-space-4); color: var(--ox-text-secondary); font-size: 13px; }

/* ── Result ── */
.vx-result { outline: none; border-width: 1px; }
.vx-result__head { display: flex; align-items: flex-start; gap: var(--ox-space-3); }
.vx-result__icon { display: inline-flex; flex: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; }
.vx-result__title { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.vx-result__text { margin: var(--ox-space-1) 0 0; color: var(--ox-text-secondary); }
.vx-result--success { border-color: var(--ox-success-border); border-top: 4px solid var(--ox-success); }
.vx-result--success .vx-result__icon { color: var(--ox-success); background: var(--ox-success-bg); }
.vx-result--warning { border-color: var(--ox-warning-border); border-top: 4px solid var(--ox-warning); }
.vx-result--warning .vx-result__icon { color: var(--ox-warning); background: var(--ox-warning-bg); }
.vx-result--danger { border-color: var(--ox-danger-border); border-top: 4px solid var(--ox-danger); }
.vx-result--danger .vx-result__icon { color: var(--ox-danger); background: var(--ox-danger-bg); }
.vx-result__actions { display: flex; flex-direction: column; gap: var(--ox-space-2); margin-top: var(--ox-space-4); }
.vx-result__actions .ox-btn { width: 100%; }

/* ── Tickets / transactions / settings ── */
.vx-searchrow { display: flex; gap: var(--ox-space-2); align-items: stretch; }
.vx-searchrow .ox-input, .vx-searchrow .ox-select { flex: 1; min-width: 0; }
.vx-searchrow .ox-btn { flex: none; }

.vx-tx__filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--ox-space-2); }
.vx-tx__search { grid-column: 1 / -1; position: relative; }
.vx-tx__search .vx-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ox-text-muted); pointer-events: none; }
.vx-tx__search .ox-input { padding-left: 38px !important; }
.vx-iconbtn { width: 48px; padding: 0 !important; }
.vx-history-summary { margin: var(--ox-space-3) 0 var(--ox-space-2); color: var(--ox-text-secondary); font-weight: 600; font-size: 13px; }
.vx-history-summary:empty { display: none; }
.vx-list .vx-history__item { align-items: center; border-left-width: 3px; }
.vx-list .vx-history__item--validated { border-left-color: var(--ox-success); }
.vx-list .vx-history__item--refused { border-left-color: var(--ox-danger); }
.vx-list .vx-history__item.is-link { cursor: pointer; }
.vx-list .vx-history__item.is-link:hover { border-color: var(--ox-border-hover, var(--ox-border-strong)); }
.vx-history__main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.vx-history__title { font-weight: 700; overflow-wrap: anywhere; }
.vx-list li .vx-history__sub { color: var(--ox-text-secondary); overflow-wrap: anywhere; text-align: left; }
.vx-list li .vx-history__meta { color: var(--ox-text-muted); font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.vx-history__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.vx-list li .vx-history__time { color: var(--ox-text-secondary); font-size: 12px; white-space: nowrap; }

.vx-settings .vx-subtitle { color: var(--ox-text-primary); font-size: 14px; }
.vx-settings .vx-subtitle .vx-icon { color: var(--ox-brand-cyan); }
.vx-kv { margin: 0; display: flex; flex-direction: column; }
.vx-kv div { display: flex; justify-content: space-between; gap: var(--ox-space-3); padding: var(--ox-space-2) 0; border-bottom: 1px solid var(--ox-border); min-width: 0; }
.vx-kv div:last-child { border-bottom: 0; }
.vx-kv dt { color: var(--ox-text-secondary); flex: none; }
.vx-kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.vx-field .ox-field-label { margin-top: var(--ox-space-2); }

/* ── Footer ── */
.vx-footer {
  display: flex; align-items: center; justify-content: center; gap: var(--ox-space-2);
  margin-top: var(--ox-space-2); padding: var(--ox-space-2) 0;
  color: var(--ox-text-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
}
.vx-footer__logo { height: 14px; width: auto; opacity: .85; }

/* ── Bottom navigation (dark band, active item = teal pill) ── */
.vx-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  min-height: var(--vx-nav-h);
  padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: var(--vx-head); border-top: 1px solid color-mix(in srgb, var(--vx-on-brand) 10%, transparent);
  box-shadow: var(--ox-shadow-md); box-sizing: border-box;
}
.vx-nav__btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; min-width: 0; padding: 4px 2px;
  border: 0; border-radius: 14px; background: transparent;
  color: var(--vx-on-brand-soft); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.vx-nav__btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-nav__btn .vx-icon { width: 24px; height: 24px; }
.vx-nav__btn:hover { color: var(--vx-on-brand); }
.vx-nav__btn.is-active { color: var(--vx-on-brand); background: var(--vx-teal); font-weight: 700; }
.vx-nav__btn:focus-visible { outline-color: var(--vx-on-brand); }
/* ── Modal ── */
.vx-overlay { z-index: 40; }
.vx-modal { display: flex; flex-direction: column; border-radius: var(--ox-radius-lg); }
.vx-modal__body { padding: var(--ox-space-5); overflow-y: auto; }
.vx-modal__footer {
  display: flex; justify-content: space-between; gap: var(--ox-space-2);
  padding: var(--ox-space-3) var(--ox-space-5); border-top: 1px solid var(--ox-border);
}
.vx-modal__footer .ox-btn { flex: 1; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .vx-main { padding: 0 var(--ox-space-3) var(--ox-space-3); padding-left: max(var(--ox-space-3), env(safe-area-inset-left)); padding-right: max(var(--ox-space-3), env(safe-area-inset-right)); }
  .vx-header { padding-left: max(var(--ox-space-3), env(safe-area-inset-left)); padding-right: max(var(--ox-space-3), env(safe-area-inset-right)); }
  .vx-overlay { align-items: flex-end; padding: 0; }
  .vx-overlay .ox-modal { width: 100%; max-width: 100%; border-radius: var(--ox-radius-lg) var(--ox-radius-lg) 0 0; max-height: 92vh; }
  .vx-modal__body { padding: var(--ox-space-4); }
  .vx-modal__footer { padding: var(--ox-space-3) var(--ox-space-4); padding-bottom: max(var(--ox-space-3), env(safe-area-inset-bottom)); }
  .vx-list .vx-history__item { flex-wrap: wrap; }
  .vx-history__side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .vx-header__brand { gap: var(--ox-space-2); }
  .vx-header__logo { height: 22px; }
  .vx-header__product { font-size: 15px; }
  .vx-header__appicon { width: 20px; height: 20px; }
  .vx-conn, .vx-orgpill { padding: 6px var(--ox-space-2); }
  .vx-segment__btn { flex-direction: column; gap: 2px; font-size: 12px; min-height: 56px; }
  .vx-tiles[data-count="4"] { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-tile { min-height: 64px; }
  .vx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--ox-space-3); }
  .vx-cols > div:nth-child(3) { border-left: 0; }
  .vx-kindfield { grid-template-columns: minmax(0, 1fr); }
  .vx-kindfield__label { padding-left: 0; }
  .vx-kindfield__name { grid-column: 1; }
  .vx-stepper { justify-self: stretch; max-width: none; }
  .vx-hero__icon { width: 40px; }
  .vx-hero__icon .vx-icon { width: 36px; height: 36px; }
  .vx-hide-xs { display: none; }
  .vx-facts { gap: var(--ox-space-2) var(--ox-space-3); }
  .vx-title { font-size: 20px; }
}

@media (min-width: 1100px) {
  .vx-main { max-width: 720px; }
  .vx-header__top, .vx-header__pills { width: 100%; max-width: 720px; margin: 0 auto; box-sizing: border-box; }
  .vx-nav {
    left: 50%; right: auto; transform: translateX(-50%); bottom: var(--ox-space-3);
    width: 560px; border: 0; border-radius: 18px;
    padding: 6px;
  }
  .vx-has-nav .vx-main { padding-bottom: calc(var(--vx-nav-h) + var(--ox-space-6)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
