/* Venurix components — framework-free CSS, MOBILE FIRST. Load after tokens.css.
   Base rules target a phone (touch, one column). Enhance upward only with
   min-width queries: md = 768px (tablet), lg = 1024px (desktop, Manager).
   Every value is a token; class prefix vx-. Works as-is in Blazor (.razor markup). */

/* ---------- Base ---------- */
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1024px) { body { font-size: 15px; line-height: 22px; } }
*, *::before, *::after { box-sizing: border-box; }
:where(a) { color: var(--accent-text); text-underline-offset: 3px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.vx-num { font-variant-numeric: tabular-nums; }
.vx-overline { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.vx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vx-page { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--space-4); }
/* functional pages (grids, tables, dashboards): the full width beside the side nav; phones and tablets unchanged */
.vx-page--wide { max-width: none; }
/* forms and reading blocks inside a wide page keep a readable measure */
.vx-measure { max-width: 720px; }
@media (min-width: 768px) { .vx-page { padding: var(--space-6); } }
@media (min-width: 1024px) { .vx-page { padding: var(--space-8); } }

/* ---------- Button ---------- */
/* phone: 48px touch target; desktop: 40px */
.vx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: var(--control-lg); height: var(--control-lg); padding: 0 var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-full);
  font: 500 15px/20px var(--font-sans); white-space: nowrap;
  cursor: pointer; text-decoration: none; touch-action: manipulation;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.vx-btn svg { width: 20px; height: 20px; flex: none; }
.vx-btn--primary { background: var(--action); color: var(--on-action); }
.vx-btn--accent { background: var(--accent); color: var(--on-accent); }
.vx-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.vx-btn--ghost { background: transparent; color: var(--ink); }
.vx-btn--danger { background: var(--danger); color: var(--on-danger); }
.vx-btn--primary:active { background: var(--action-hover); }
.vx-btn--accent:active { background: var(--accent-hover); }
.vx-btn--secondary:active, .vx-btn--ghost:active { background: var(--surface-raised); }
.vx-btn--danger:active { background: var(--danger-hover); }
@media (hover: hover) {
  .vx-btn--primary:hover { background: var(--action-hover); }
  .vx-btn--accent:hover { background: var(--accent-hover); }
  .vx-btn--secondary:hover, .vx-btn--ghost:hover { background: var(--surface-raised); }
  .vx-btn--danger:hover { background: var(--danger-hover); }
}
.vx-btn--sm { min-width: var(--control-md); height: var(--control-md); padding: 0 var(--space-4); font-size: 14px; }
.vx-btn--icon { width: var(--control-lg); padding: 0; }
.vx-btn--sm.vx-btn--icon { width: var(--control-md); }
.vx-btn--block { display: flex; width: 100%; }
.vx-btn:disabled, .vx-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
@media (min-width: 1024px) {
  .vx-btn { min-width: 0; height: var(--control-md); padding: 0 var(--space-5); font-size: 14px; }
  .vx-btn svg { width: 18px; height: 18px; }
  .vx-btn--sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: 13px; }
  .vx-btn--icon { width: var(--control-md); padding: 0; }
  .vx-btn--sm.vx-btn--icon { width: var(--control-sm); }
  .vx-btn--lg { height: var(--control-lg); padding: 0 var(--space-6); font-size: 15px; }
}
/* action bar: buttons stack full-width on phones (main action on top), inline from md */
.vx-actions { display: flex; flex-direction: column-reverse; gap: var(--space-3); }
.vx-actions > .vx-btn { width: 100%; }
@media (min-width: 768px) {
  .vx-actions { flex-direction: row; justify-content: flex-end; }
  .vx-actions > .vx-btn { width: auto; }
}

/* ---------- Text field / select ---------- */
/* phone: 48px high, 16px text (prevents iOS zoom on focus) */
.vx-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.vx-field__label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.vx-field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vx-field__error { font-size: 13px; line-height: 18px; color: var(--danger-text); display: flex; gap: 6px; align-items: center; }
.vx-field__error svg { width: 16px; height: 16px; flex: none; }
.vx-input, .vx-select {
  width: 100%; height: var(--control-lg); padding: 0 var(--space-4);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font: 400 16px/24px var(--font-sans);
}
.vx-input::placeholder { color: var(--ink-subtle); }
.vx-input:focus-visible, .vx-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.vx-input[aria-invalid="true"] { border-color: var(--danger-text); }
.vx-input:disabled, .vx-select:disabled { background: var(--surface-sunken); color: var(--ink-subtle); cursor: not-allowed; }
@media (hover: hover) { .vx-input:hover, .vx-select:hover { border-color: var(--ink-muted); } }
.vx-select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
textarea.vx-input { height: auto; min-height: 112px; padding: var(--space-3) var(--space-4); }
/* form layout: one column on phones, two from md */
/* a form keeps a readable measure, also on a wide page: 720px, two columns 960px */
.vx-form { display: grid; gap: var(--space-5); max-width: 720px; }
@media (min-width: 768px) { .vx-form--2col { grid-template-columns: 1fr 1fr; max-width: 960px; } }
@media (min-width: 1024px) {
  .vx-input, .vx-select { height: var(--control-md); padding: 0 var(--space-3); font-size: 15px; line-height: 22px; }
  .vx-select { padding-right: 36px; background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; }
  textarea.vx-input { min-height: 96px; padding: var(--space-2) var(--space-3); }
}

/* ---------- Badge ---------- */
.vx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: var(--radius-full);
  font: 500 12px/16px var(--font-sans); letter-spacing: 0.02em; white-space: nowrap;
  background: var(--surface-raised); color: var(--ink-muted);
}
.vx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vx-badge--plain::before { display: none; }
.vx-badge--success { background: var(--success-soft); color: var(--success-text); }
.vx-badge--warning { background: var(--warning-soft); color: var(--warning-text); }
.vx-badge--danger { background: var(--danger-soft); color: var(--danger-text); }
.vx-badge--info { background: var(--info-soft); color: var(--info-text); }
/* category chips: brand fill, dark text; never red with text */
.vx-badge--cat-green { background: var(--brand-green); color: var(--on-brand); }
.vx-badge--cat-blue { background: var(--brand-blue); color: var(--on-brand); }
.vx-badge--cat-yellow { background: var(--brand-yellow); color: var(--on-brand); }
.vx-badge--cat-green::before, .vx-badge--cat-blue::before, .vx-badge--cat-yellow::before { display: none; }

/* ---------- Alert ---------- */
/* phone: action drops under the text; md: action on the right */
.vx-alert {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2) var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--info-soft); color: var(--ink);
}
.vx-alert > :nth-child(3) { grid-column: 2; justify-self: start; }
.vx-alert > svg { width: 20px; height: 20px; margin-top: 2px; color: var(--info-text); }
.vx-alert__title { font-weight: 600; margin: 0; }
.vx-alert__body { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.vx-alert--success { background: var(--success-soft); }
.vx-alert--success > svg { color: var(--success-text); }
.vx-alert--warning { background: var(--warning-soft); }
.vx-alert--warning > svg { color: var(--warning-text); }
.vx-alert--danger { background: var(--danger-soft); }
.vx-alert--danger > svg { color: var(--danger-text); }
@media (min-width: 768px) {
  .vx-alert { grid-template-columns: 20px 1fr auto; }
  .vx-alert > :nth-child(3) { grid-column: 3; }
}

/* ---------- Card ---------- */
.vx-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
}
.vx-card__header { display: flex; align-items: start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.vx-card__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.vx-card__meta { margin: 2px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
/* interactive card: works on <a> and <button> */
.vx-card--interactive {
  display: block; width: 100%; margin: 0; color: inherit; text-decoration: none; text-align: start;
  font: inherit; appearance: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.vx-card--interactive:active { background: var(--surface-raised); }
@media (hover: hover) { .vx-card--interactive:hover { background: var(--surface-raised); border-color: var(--border-strong); } }
.vx-card--interactive[aria-current="true"], .vx-card--interactive[aria-pressed="true"], .vx-card--interactive[aria-selected="true"] {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.vx-card--row { display: flex; align-items: center; gap: var(--space-3); }
.vx-card__body { flex: 1; min-width: 0; }
.vx-card__chevron { width: 20px; height: 20px; flex: none; color: var(--ink-muted); }
.vx-card-list { display: grid; gap: var(--space-3); }
@media (min-width: 768px) {
  .vx-card-list--2col { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .vx-card-list--auto { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }
}
.vx-stat__value { font: 600 24px/28px var(--font-sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin: var(--space-1) 0 0; }
.vx-stat__delta { font-size: 13px; line-height: 18px; color: var(--success-text); }
.vx-stat__bar { display: block; height: 4px; width: 32px; margin-bottom: var(--space-3); border-radius: 0 var(--radius-full) var(--radius-full) 0; }
/* card grid: 2-up KPIs on phones, then as many 220px columns as fit; auto-fit, so a few cards fill the row */
.vx-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vx-grid > .vx-grid__wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .vx-card { padding: var(--space-6); }
  .vx-card__header { margin-bottom: var(--space-4); }
  .vx-stat__value { font-size: 28px; line-height: 32px; }
  .vx-grid { gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .vx-grid > .vx-grid__wide { grid-column: auto; }
}

/* ---------- App bar + bottom navigation (member app, phones) ---------- */
.vx-appbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 56px; padding: env(safe-area-inset-top) var(--space-2) 0 var(--space-4);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.vx-appbar__title { flex: 1; margin: 0; font: 600 18px/24px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-appbar img { height: 24px; width: auto; }
.vx-bottomnav {
  position: sticky; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(var(--vx-tabs, 4), 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.vx-bottomnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 64px; color: var(--ink-muted); text-decoration: none;
  font: 500 12px/16px var(--font-sans); position: relative;
}
.vx-bottomnav__item svg { width: 24px; height: 24px; }
.vx-bottomnav__item[aria-current="page"] { color: var(--ink); }
.vx-bottomnav__item[aria-current="page"] svg { color: var(--accent-text); }
.vx-bottomnav__item[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 32px; margin-left: -16px; height: 3px;
  border-radius: 0 0 var(--radius-full) var(--radius-full); background: var(--accent);
}
@media (min-width: 1024px) { .vx-bottomnav { display: none; } }

/* ---------- Side navigation (Manager) ---------- */
/* phone/tablet: off-canvas drawer, open with [data-open]; lg: fixed column */
.vx-sidenav {
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  width: min(var(--sidebar-width), 86vw); background: var(--surface-sunken); border-right: 1px solid var(--border);
  padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1);
  overflow-y: auto; transform: translateX(-100%); transition: transform 200ms ease;
}
.vx-sidenav[data-open] { transform: none; box-shadow: var(--shadow-lg); }
.vx-sidenav-scrim { position: fixed; inset: 0; z-index: 89; background: var(--scrim); }
.vx-sidenav__brand { display: flex; align-items: center; justify-content: space-between; padding: var(--space-1) var(--space-1) var(--space-4) var(--space-3); }
.vx-sidenav__brand img { height: 26px; width: auto; }
.vx-sidenav__section { padding: var(--space-4) var(--space-3) var(--space-1); }
.vx-sidenav__item {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--control-lg); padding: 0 var(--space-3); border-radius: var(--radius-md);
  color: var(--ink-muted); text-decoration: none; font: 500 15px/20px var(--font-sans);
  /* also valid on <button> (e.g. sign-out in a POST form) */
  width: 100%; margin: 0; border: 0; background: transparent; text-align: start; cursor: pointer; appearance: none;
}
.vx-sidenav__item svg { width: 20px; height: 20px; flex: none; }
.vx-sidenav__form { display: contents; }
.vx-sidenav__account { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-1); }
.vx-sidenav__org { padding: var(--space-1) var(--space-3) var(--space-2); min-width: 0; }
.vx-sidenav__org-name { display: block; margin-top: 2px; font: 600 15px/20px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.vx-sidenav__org-role { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vx-sidenav__item[aria-current="page"] { background: var(--surface-raised); color: var(--ink); }
.vx-sidenav__item[aria-current="page"] svg { color: var(--accent-text); }
.vx-sidenav__count { margin-left: auto; font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .vx-sidenav__item:hover { background: var(--surface-raised); color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .vx-sidenav { transition: none; } }
@media (min-width: 1024px) {
  .vx-sidenav, .vx-sidenav[data-open] { position: sticky; top: 0; height: 100vh; width: var(--sidebar-width); transform: none; box-shadow: none; z-index: auto; }
  .vx-sidenav-scrim, .vx-sidenav__close, .vx-appbar__menu { display: none; }
  .vx-sidenav__brand { padding: var(--space-2) var(--space-3) var(--space-5); }
  .vx-sidenav__item { min-height: 40px; font-size: 14px; }
  .vx-sidenav__item svg { width: 18px; height: 18px; }
}

/* ---------- Data table ---------- */
/* phone: each row is a card, cells labelled via data-label; md: real table */
.vx-table-wrap { border-radius: var(--radius-lg); }
.vx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.vx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vx-table, .vx-table tbody, .vx-table tr, .vx-table td { display: block; }
.vx-table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
.vx-table td { padding: 6px 0; text-align: right; overflow-wrap: anywhere; }
.vx-table td::before { content: attr(data-label); float: left; margin-right: var(--space-4); color: var(--ink-muted); font-size: 13px; text-align: left; }
.vx-table td::after { content: ""; display: table; clear: both; }
.vx-table td[data-primary] { display: block; text-align: left; padding: 0 0 var(--space-2); margin-bottom: var(--space-1); border-bottom: 1px solid var(--border); font-weight: 600; }
.vx-table td[data-primary]::before { display: none; }
.vx-table .vx-num, .vx-table td[data-align="end"] { font-variant-numeric: tabular-nums; }
.vx-table__sub { display: block; color: var(--ink-muted); font-size: 13px; line-height: 18px; font-weight: 400; }
@media (min-width: 768px) {
  .vx-table-wrap { background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
  .vx-table { display: table; font-size: 14px; }
  .vx-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .vx-table tbody { display: table-row-group; }
  .vx-table tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .vx-table th {
    text-align: left; padding: 10px var(--space-4); background: var(--surface-raised);
    font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted);
    border-bottom: 1px solid var(--border); white-space: nowrap;
  }
  .vx-table td, .vx-table td[data-primary] { display: table-cell; padding: var(--space-3) var(--space-4); margin: 0; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; font-weight: 400; }
  .vx-table td::before, .vx-table td::after { display: none; }
  .vx-table tr:last-child td { border-bottom: 0; }
  .vx-table td[data-align="end"], .vx-table th[data-align="end"] { text-align: right; }
}
@media (min-width: 768px) and (hover: hover) { .vx-table tbody tr:hover td { background: var(--surface-raised); } }

/* ---------- Booking grid ---------- */
/* phone: scrolls sideways with the resource column pinned; 48px touch slots */
.vx-booking { display: grid; gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: var(--space-1); }
.vx-booking__row { display: grid; grid-template-columns: 96px repeat(var(--vx-slots, 8), 72px); gap: var(--space-1); align-items: stretch; width: max-content; }
.vx-booking__row > :first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); padding-right: var(--space-2); }
.vx-booking__row > * + * { scroll-snap-align: start; scroll-margin-left: 100px; }
.vx-booking__resource { display: flex; flex-direction: column; justify-content: center; font: 500 14px/18px var(--font-sans); }
.vx-booking__resource small { color: var(--ink-muted); font-weight: 400; font-size: 12px; }
.vx-booking__time { font-size: 12px; line-height: 16px; color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.vx-slot {
  height: var(--control-lg); border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: 500 12px/16px var(--font-sans);
  cursor: pointer; padding: 0 6px; overflow: hidden; white-space: nowrap; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
}
.vx-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vx-slot--booked { background: var(--surface-raised); border-color: var(--border); color: var(--ink-muted); cursor: default; }
.vx-slot--blocked {
  border-color: var(--border); color: var(--ink-subtle); cursor: not-allowed;
  background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 6px, var(--surface) 6px 12px);
}
@media (hover: hover) { .vx-slot:not(.vx-slot--booked):not(.vx-slot--blocked):not([aria-pressed="true"]):hover { background: var(--surface-raised); } }
.vx-booking__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 13px; color: var(--ink-muted); position: sticky; left: 0; }
.vx-booking__legend span { display: inline-flex; align-items: center; gap: 6px; }
.vx-booking__legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface); }
@media (min-width: 1024px) {
  .vx-booking { overflow-x: auto; }
  .vx-booking__row { width: auto; grid-template-columns: 112px repeat(var(--vx-slots, 8), minmax(56px, 1fr)); }
  .vx-slot { height: 44px; }
}

/* ---------- Access pass (mobile) ---------- */
.vx-pass {
  width: 100%; max-width: 360px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.vx-pass__band { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.vx-pass__band i:nth-child(1) { background: var(--decor-1); }
.vx-pass__band i:nth-child(2) { background: var(--decor-2); }
.vx-pass__band i:nth-child(3) { background: var(--decor-3); }
.vx-pass__band i:nth-child(4) { background: var(--decor-4); }
.vx-pass__body { padding: var(--space-5); display: grid; gap: var(--space-4); }
.vx-pass__venue { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.vx-pass__name { margin: 0; font: 600 22px/28px var(--font-sans); }
.vx-pass__code {
  justify-self: center; width: min(240px, 100%); aspect-ratio: 1; padding: 12px; border-radius: var(--radius-md);
  background: #ffffff; /* QR codes need a white quiet zone in every theme */
}
.vx-pass__code svg { width: 100%; height: 100%; display: block; }
.vx-pass__meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0; }
.vx-pass__meta dt { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vx-pass__meta dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.vx-pass__test { text-align: center; font-size: 12px; color: var(--warning-text); background: var(--warning-soft); padding: 6px; border-radius: var(--radius-sm); }

/* ---------- Logo theme swap ---------- */
.vx-logo--on-light { display: none; }
[data-theme="light"] .vx-logo--on-dark { display: none; }
[data-theme="light"] .vx-logo--on-light { display: inline-block; }

/* ---------- Dialog ---------- */
/* phone: bottom sheet, full width; md: centred modal */
.vx-dialog-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.vx-dialog {
  width: 100%; max-height: calc(100dvh - 24px); overflow: auto; margin: 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
dialog.vx-dialog { max-width: 100%; inset: auto 0 0 0; }
.vx-dialog::backdrop { background: var(--scrim); }
.vx-dialog__grabber { display: block; width: 40px; height: 4px; margin: var(--space-2) auto 0; border-radius: var(--radius-full); background: var(--border-strong); }
.vx-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) 0; }
.vx-dialog__title { margin: 0; font: 600 20px/26px var(--font-sans); }
.vx-dialog__body { padding: var(--space-3) var(--space-4) var(--space-4); color: var(--ink-muted); }
.vx-dialog__body p { margin: 0 0 var(--space-3); }
.vx-dialog__footer {
  display: flex; flex-direction: column-reverse; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--border); background: var(--surface-raised);
}
.vx-dialog__footer > .vx-btn { width: 100%; }
.vx-summary { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; padding: var(--space-3) var(--space-4); background: var(--surface-sunken); border-radius: var(--radius-md); }
.vx-summary dt { color: var(--ink-muted); font-size: 13px; }
.vx-summary dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .vx-dialog-backdrop { align-items: center; padding: var(--space-4); }
  .vx-dialog { max-width: 480px; max-height: calc(100dvh - 32px); border-bottom: 1px solid var(--border); border-radius: var(--radius-lg); padding-bottom: 0; }
  dialog.vx-dialog { inset: 0; margin: auto; max-width: 480px; }
  .vx-dialog--wide, dialog.vx-dialog--wide { max-width: 720px; }
  .vx-dialog__grabber { display: none; }
  .vx-dialog__header { padding: var(--space-6) var(--space-6) 0; }
  .vx-dialog__title { font-size: 22px; line-height: 28px; }
  .vx-dialog__body { padding: var(--space-4) var(--space-6) var(--space-6); }
  .vx-dialog__footer { flex-direction: row; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-6); }
  .vx-dialog__footer > .vx-btn { width: auto; }
}

/* ---------- Tabs ---------- */
.vx-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.vx-tabs::-webkit-scrollbar { display: none; }
.vx-tab {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2); flex: none;
  height: var(--control-lg); padding: 0; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 15px/20px var(--font-sans); color: var(--ink-muted); touch-action: manipulation;
}
.vx-tab[aria-selected="true"] { color: var(--ink); }
.vx-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); border-radius: var(--radius-full) var(--radius-full) 0 0;
}
@media (hover: hover) { .vx-tab:hover { color: var(--ink); } }
.vx-tab__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink-muted); font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
/* segmented: fills the width on phones */
.vx-segmented { display: flex; width: 100%; padding: 4px; gap: 4px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-full); }
.vx-segmented .vx-tab { flex: 1; justify-content: center; height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-full); }
.vx-segmented .vx-tab[aria-selected="true"], .vx-segmented .vx-tab[aria-checked="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.vx-segmented .vx-tab[aria-selected="true"]::after { display: none; }
@media (min-width: 768px) {
  .vx-tabs { gap: var(--space-6); }
  .vx-segmented { display: inline-flex; width: auto; }
  .vx-segmented .vx-tab { flex: none; }
}
@media (min-width: 1024px) {
  .vx-tab { height: 44px; font-size: 14px; }
  .vx-segmented .vx-tab { height: 32px; }
}

/* ---------- Date picker ---------- */
/* phone: full width inline or in a bottom sheet, 44px day targets */
.vx-datepicker { width: 100%; padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.vx-datepicker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); padding-left: var(--space-1); }
.vx-datepicker__month { font: 600 16px/24px var(--font-sans); }
.vx-datepicker__nav { display: flex; gap: var(--space-1); }
.vx-datepicker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.vx-datepicker__dow { height: 28px; font-size: 12px; line-height: 28px; font-weight: 500; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.vx-day {
  height: 44px; border: 1px solid transparent; border-radius: var(--radius-full); background: none; cursor: pointer;
  font: 400 15px/20px var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; position: relative; touch-action: manipulation;
}
.vx-day--outside { color: var(--ink-subtle); }
.vx-day[aria-current="date"] { border-color: var(--border-strong); font-weight: 600; }
.vx-day[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.vx-day:disabled { color: var(--ink-subtle); text-decoration: line-through; cursor: not-allowed; background: none; }
.vx-day--busy::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--warning-text); }
.vx-day[aria-selected="true"].vx-day--busy::after { background: var(--on-accent); }
@media (hover: hover) { .vx-day:not(:disabled):not([aria-selected="true"]):hover { background: var(--surface-raised); } }
.vx-datepicker__foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-muted); }
@media (min-width: 768px) {
  .vx-datepicker { width: 320px; padding: var(--space-4); box-shadow: var(--shadow-md); }
  .vx-day { height: 40px; font-size: 14px; }
}

/* ---------- Toast ---------- */
/* phone: full width above the bottom nav; md: bottom-right stack */
.vx-toast-region {
  position: fixed; z-index: 200; left: var(--space-3); right: var(--space-3);
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom) + var(--vx-bottom-offset, 0px));
  display: grid; gap: var(--space-2);
}
.vx-toast {
  display: grid; grid-template-columns: 20px 1fr auto; gap: var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4);
  background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.vx-toast > svg { width: 20px; height: 20px; margin-top: 2px; color: var(--info-text); }
.vx-toast--success > svg { color: var(--success-text); }
.vx-toast--warning > svg { color: var(--warning-text); }
.vx-toast--danger > svg { color: var(--danger-text); }
.vx-toast__title { margin: 0; font-weight: 600; font-size: 15px; line-height: 20px; }
.vx-toast__body { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vx-toast__actions { display: flex; align-items: center; gap: var(--space-1); margin: -6px 0; }
@media (min-width: 768px) {
  .vx-toast-region { left: auto; right: var(--space-6); bottom: var(--space-6); width: 380px; gap: var(--space-3); }
  .vx-toast__title { font-size: 14px; }
  .vx-toast__body { font-size: 13px; line-height: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .vx-toast { animation: vx-toast-in 200ms ease; }
  @keyframes vx-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Split layout (list + detail) ---------- */
/* phone: stacked; lg: 3:2 with a sticky detail pane */
.vx-split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 1024px) {
  .vx-split { grid-template-columns: 3fr 2fr; gap: var(--space-6); }
  .vx-split__aside { position: sticky; top: var(--vx-sticky-top, calc(var(--appbar-height) + var(--space-4))); }
}

/* ---------- Tree ---------- */
/* WAI-ARIA tree: focus sits on li[role=treeitem] (roving tabindex); the ring is drawn on its row only */
.vx-tree, .vx-tree__group { list-style: none; margin: 0; padding: 0; }
.vx-tree__item { --tree-level: 1; }
.vx-tree__item:focus { outline: none; }
.vx-tree__row {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--control-lg); padding: var(--space-1) var(--space-3) var(--space-1) calc(var(--space-1) + (var(--tree-level) - 1) * var(--space-6));
  border-radius: var(--radius-md); color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.vx-tree__item:focus-visible > .vx-tree__row { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.vx-tree__item[aria-selected="true"] > .vx-tree__row { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
@media (hover: hover) { .vx-tree__row:hover { background: var(--surface-raised); color: var(--ink); } }
.vx-tree__toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin: -8px -8px -8px 0; border-radius: var(--radius-full); color: var(--ink-muted);
}
.vx-tree__toggle svg { width: 18px; height: 18px; transition: transform 120ms ease; }
.vx-tree__item[aria-expanded="true"] > .vx-tree__row .vx-tree__toggle svg { transform: rotate(90deg); }
.vx-tree__item[aria-expanded="false"] > .vx-tree__group { display: none; }
.vx-tree__name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.vx-tree__meta { flex: none; font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; }
.vx-tree__item--inactive > .vx-tree__row .vx-tree__name { color: var(--ink-muted); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .vx-tree__toggle svg { transition: none; } }
@media (min-width: 1024px) {
  .vx-tree__row { min-height: var(--control-md); padding-top: 0; padding-bottom: 0; }
  .vx-tree__toggle { width: 24px; height: 24px; margin: 0; }
  .vx-tree__toggle svg { width: 16px; height: 16px; }
}

/* ---------- Checkbox ---------- */
/* native input kept (accessible), drawn box next to it; label clickable */
.vx-check { position: relative; display: grid; grid-template-columns: 20px 1fr; column-gap: var(--space-3); align-items: start; padding: 14px 0; cursor: pointer; touch-action: manipulation; }
.vx-check__input { position: absolute; left: -12px; top: 2px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.vx-check__box {
  grid-column: 1; grid-row: 1; width: 20px; height: 20px; display: grid; place-items: center;
  border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--on-accent);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.vx-check__box svg { width: 14px; height: 14px; display: none; }
.vx-check__input:checked + .vx-check__box, .vx-check__input:indeterminate + .vx-check__box { background: var(--accent); border-color: var(--accent); }
.vx-check__input:checked + .vx-check__box .vx-check__tick { display: block; }
.vx-check__input:indeterminate + .vx-check__box .vx-check__tick { display: none; }
.vx-check__input:indeterminate + .vx-check__box .vx-check__dash { display: block; }
.vx-check__input:focus-visible + .vx-check__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vx-check__input[aria-invalid="true"] + .vx-check__box { border-color: var(--danger-text); }
.vx-check__text { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 20px; color: var(--ink); }
.vx-check__hint { grid-column: 2; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vx-check:has(.vx-check__input:disabled) { cursor: not-allowed; }
.vx-check__input:disabled { cursor: not-allowed; }
.vx-check__input:disabled + .vx-check__box { background: var(--surface-sunken); border-color: var(--border); }
.vx-check__input:disabled:checked + .vx-check__box { background: var(--border); }
.vx-check__input:disabled ~ .vx-check__text, .vx-check__input:disabled ~ .vx-check__hint { color: var(--ink-subtle); }
@media (hover: hover) { .vx-check:hover .vx-check__input:not(:disabled):not(:checked) + .vx-check__box { border-color: var(--ink-muted); } }
/* group */
.vx-checkgroup { margin: 0; padding: 0; border: 0; min-width: 0; }
.vx-checkgroup > legend { padding: 0; margin-bottom: var(--space-1); font: 500 14px/20px var(--font-sans); color: var(--ink); }
.vx-checkgroup__hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vx-checkgroup__list { display: flex; flex-direction: column; }
.vx-checkgroup .vx-field__error { margin-top: var(--space-1); }
@media (min-width: 768px) { .vx-checkgroup--inline .vx-checkgroup__list { flex-direction: row; flex-wrap: wrap; column-gap: var(--space-6); } }
@media (min-width: 1024px) {
  .vx-check { padding: 10px 0; }
  .vx-check__input { top: -2px; }
  .vx-check__text { font-size: 15px; }
}

/* ---------- Switch ---------- */
/* for settings that apply immediately; label left, switch right */
.vx-switch { position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: var(--control-lg); cursor: pointer; touch-action: manipulation; }
.vx-switch__text { flex: 1; min-width: 0; font-size: 16px; line-height: 20px; color: var(--ink); }
.vx-switch__hint { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vx-switch__input { position: absolute; right: -4px; top: 50%; width: 52px; height: 44px; margin: -22px 0 0; opacity: 0; cursor: pointer; }
.vx-switch__track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--radius-full);
  background: var(--surface-sunken); border: 2px solid var(--border-strong); transition: background-color 150ms ease, border-color 150ms ease;
}
.vx-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-muted); transition: transform 150ms ease, background-color 150ms ease;
}
.vx-switch__input:checked + .vx-switch__track { background: var(--accent); border-color: var(--accent); }
.vx-switch__input:checked + .vx-switch__track::after { transform: translateX(18px); background: var(--on-accent); }
.vx-switch__input:focus-visible + .vx-switch__track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vx-switch__input:disabled { cursor: not-allowed; }
.vx-switch__input:disabled + .vx-switch__track { opacity: 0.45; }
.vx-switch:has(.vx-switch__input:disabled) .vx-switch__text { color: var(--ink-subtle); }
@media (prefers-reduced-motion: reduce) { .vx-switch__track, .vx-switch__track::after { transition: none; } }
@media (min-width: 1024px) { .vx-switch { min-height: var(--control-md); } .vx-switch__text { font-size: 15px; } }

/* ---------- Empty state ---------- */
.vx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-8) var(--space-4); }
.vx-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-2); border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink-muted); }
.vx-empty__icon svg { width: 24px; height: 24px; }
.vx-empty__title { margin: 0; font: 600 18px/24px var(--font-sans); color: var(--ink); }
.vx-empty__text { margin: 0; max-width: 40ch; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.vx-empty__actions { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-3); }
.vx-empty__actions > .vx-btn { width: 100%; }
.vx-empty--filter { padding-block: var(--space-6); }
.vx-empty--filter .vx-empty__icon { width: 44px; height: 44px; background: none; border: 1px solid var(--border); }
@media (min-width: 768px) {
  .vx-empty { padding: var(--space-12) var(--space-6); }
  .vx-empty__actions { flex-direction: row; justify-content: center; width: auto; }
  .vx-empty__actions > .vx-btn { width: auto; }
}

/* ---------- Brand elements: band, marker, icon tile ---------- */
/* band: the four pieces of the mark side by side; top of the shell, dialogs, sign-in card; 8px on the pass */
.vx-band { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; flex: none; }
.vx-band--lg { height: 8px; }
.vx-band > i:nth-child(1) { background: var(--decor-1); }
.vx-band > i:nth-child(2) { background: var(--decor-2); }
.vx-band > i:nth-child(3) { background: var(--decor-3); }
.vx-band > i:nth-child(4) { background: var(--decor-4); }
/* in the shell: inside the sticky app bar (stays on top, below the safe area) and along the top of the side nav; from
   1024px a page with a side nav shows only the side nav band, so the top edge carries one band */
.vx-appbar > .vx-band { position: absolute; top: env(safe-area-inset-top); left: 0; right: 0; }
.vx-sidenav > .vx-band { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-3)) var(--space-3); }
@media (min-width: 1024px) { .vx-appbar:has(.vx-appbar__menu) > .vx-band { display: none; } }
/* marker: one piece of the mark, a quarter disc; colour (--1..--4) and rounded corner (--tl/--tr/--bl/--br) apart */
.vx-marker { display: inline-block; width: 24px; height: 24px; flex: none; background: var(--decor-3); border-radius: 0 0 0 var(--radius-full); }
.vx-marker--sm { width: 16px; height: 16px; }
/* icon tile: a 20px icon in on-decor on a quarter disc; colours 2-4 only (nothing on red) */
.vx-icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; background: var(--decor-3); color: var(--on-decor); border-radius: 0 0 0 var(--radius-full);
}
.vx-icon-tile svg { width: 20px; height: 20px; transform: translate(3px, -3px); }
.vx-marker--1, .vx-stat__bar--1, .vx-bars--1 > i { background: var(--decor-1); }
.vx-marker--2, .vx-icon-tile--2, .vx-stat__bar--2, .vx-bars--2 > i { background: var(--decor-2); }
.vx-marker--3, .vx-icon-tile--3, .vx-stat__bar--3, .vx-bars--3 > i { background: var(--decor-3); }
.vx-marker--4, .vx-icon-tile--4, .vx-stat__bar--4, .vx-bars--4 > i { background: var(--decor-4); }
.vx-marker--tl, .vx-icon-tile--tl { border-radius: var(--radius-full) 0 0 0; }
.vx-marker--tr, .vx-icon-tile--tr { border-radius: 0 var(--radius-full) 0 0; }
.vx-marker--bl, .vx-icon-tile--bl { border-radius: 0 0 0 var(--radius-full); }
.vx-marker--br, .vx-icon-tile--br { border-radius: 0 0 var(--radius-full) 0; }
/* the optical centre of a quarter disc sits ~3px from its square corner, away from the round one */
.vx-icon-tile--tl svg { transform: translate(3px, 3px); }
.vx-icon-tile--tr svg { transform: translate(-3px, 3px); }
.vx-icon-tile--br svg { transform: translate(-3px, -3px); }

/* ---------- Bars: a small column chart in a card ---------- */
.vx-bars { display: flex; align-items: flex-end; gap: var(--space-1); height: 120px; }
.vx-bars > i { flex: 1; height: var(--h); min-height: 2px; background: var(--decor-3); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.vx-bars > i[data-peak] { background: var(--decor-4); }
/* light: green and yellow are under 3:1 on white, so every bar gets a border-strong edge */
[data-theme="light"] .vx-bars > i { box-shadow: inset 0 0 0 1px var(--border-strong); }
.vx-bars__axis { display: flex; justify-content: space-between; margin-top: var(--space-2); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .vx-bars { height: 160px; gap: var(--space-2); } }

/* ---------- Booking grid in colour: label colours ---------- */
.vx-slot--c1 { --slot: var(--label-1); --slot-soft: var(--label-1-soft); }
.vx-slot--c2 { --slot: var(--label-2); --slot-soft: var(--label-2-soft); }
.vx-slot--c3 { --slot: var(--label-3); --slot-soft: var(--label-3-soft); }
.vx-slot--c4 { --slot: var(--label-4); --slot-soft: var(--label-4-soft); }
.vx-slot--c5 { --slot: var(--label-5); --slot-soft: var(--label-5-soft); }
.vx-slot--c6 { --slot: var(--label-6); --slot-soft: var(--label-6-soft); }
.vx-slot--c7 { --slot: var(--label-7); --slot-soft: var(--label-7-soft); }
.vx-slot--c8 { --slot: var(--label-8); --slot-soft: var(--label-8-soft); }
.vx-slot[class*="vx-slot--c"], .vx-booking__legend i[class*="vx-slot--c"] {
  background: var(--slot-soft); border-color: var(--slot); box-shadow: inset 3px 0 0 var(--slot);
}
.vx-slot--booked[class*="vx-slot--c"] { color: var(--ink); justify-content: flex-start; padding-left: 10px; }
/* a request that is not confirmed yet: same colour, dashed edge, no stripe */
.vx-slot--requested, .vx-booking__legend i.vx-slot--requested { border-style: dashed; box-shadow: none; }
.vx-booking__legend i.vx-slot--booked { background: var(--surface-raised); border-color: var(--border); }
.vx-booking__legend i.vx-slot--blocked { background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 3px, var(--surface) 3px 6px); border-color: var(--border); }
.vx-booking__legend i.vx-slot--selected { background: var(--accent); border-color: var(--accent); }
a.vx-slot { text-decoration: none; }

/* ---------- Swatches: pick one label colour ---------- */
.vx-swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.vx-swatches > legend { padding: 0; margin-bottom: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; }
.vx-swatch {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-lg);
  padding: 0 var(--space-3) 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-full);
  cursor: pointer; font-size: 14px; line-height: 20px; touch-action: manipulation;
}
.vx-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vx-swatch i { width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--slot, transparent); border: 1px solid var(--border-strong); }
.vx-swatch:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vx-swatch:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) { .vx-swatch:hover { background: var(--surface-raised); } }
@media (min-width: 1024px) { .vx-swatch { min-height: var(--control-md); } }
