/* ==========================================================================
   REGARDO — Component System
   Shared across all three experiences. Personality comes from composition
   and density (see customer.css / workspace.css), not from redefining these.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-h: 42px;
  --btn-px: var(--s-5);
  --btn-fs: var(--t-body-s);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  height: var(--btn-h);
  padding-inline: var(--btn-px);
  font-size: var(--btn-fs);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-normal);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  position: relative;
  transition: background-color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out),
              transform var(--d-instant) var(--ease-out);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--primary {
  background: var(--brand); color: var(--brand-on);
  box-shadow: var(--sh-1);
}
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); box-shadow: var(--sh-2); }
.btn--primary:active:not(:disabled) { background: var(--brand-press); }

.btn--accent {
  background: var(--accent); color: var(--accent-on); box-shadow: var(--sh-1);
}
.btn--accent:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--sh-2); }

.btn--secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--sh-1);
}
.btn--secondary:hover:not(:disabled) { background: var(--n-50); border-color: var(--n-400); }

.btn--soft {
  background: var(--brand-soft); color: var(--ev-800); border-color: var(--brand-soft-br);
}
.btn--soft:hover:not(:disabled) { background: var(--ev-100); }

.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover:not(:disabled) { background: var(--n-100); color: var(--text); }

.btn--danger { background: var(--err-fg); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #8E1F16; }
.btn--danger-soft { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-br); }
.btn--danger-soft:hover:not(:disabled) { background: #FBDCD8; }

.btn--inverse { background: rgba(255,255,255,.12); color: var(--text-on-dark); border-color: var(--border-inverse); backdrop-filter: blur(8px); }
.btn--inverse:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.btn--white { background: #fff; color: var(--ev-900); box-shadow: var(--sh-3); }
.btn--white:hover:not(:disabled) { background: var(--n-50); }

.btn--link { height: auto; padding: 0; background: none; color: var(--ev-700); font-weight: var(--w-semibold); }
.btn--link:hover:not(:disabled) { color: var(--ev-800); text-decoration: underline; text-underline-offset: 3px; }

.btn--xs { --btn-h: 28px; --btn-px: var(--s-3); --btn-fs: var(--t-caption); border-radius: var(--r-sm); }
.btn--xs svg { width: 13px; height: 13px; }
.btn--sm { --btn-h: 34px; --btn-px: var(--s-4); --btn-fs: var(--t-meta); border-radius: var(--r-sm); }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { --btn-h: 50px; --btn-px: var(--s-7); --btn-fs: var(--t-body); }
.btn--xl { --btn-h: 58px; --btn-px: var(--s-8); --btn-fs: var(--t-body-l); border-radius: var(--r-lg); }
.btn--block { width: 100%; }

/* Icon-only */
.btn--icon { --btn-px: 0; width: var(--btn-h); }
.btn--icon.btn--xs { width: 28px; }
.btn--icon.btn--sm { width: 34px; }

/* Loading state */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--brand-on);
  animation: spin .6s linear infinite;
}
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after,
.btn--soft.is-loading::after { color: var(--text-secondary); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.btn-group .btn.is-active { background: var(--brand); color: var(--brand-on); border-color: var(--brand); z-index: 1; }

/* Segmented control — used for calendar views, chart ranges, table modes */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-sunken); border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}
.segmented__item {
  height: 30px; padding-inline: var(--s-3);
  font-size: var(--t-meta); font-weight: var(--w-semibold);
  color: var(--text-muted); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: all var(--d-fast) var(--ease-out);
}
.segmented__item:hover { color: var(--text); }
.segmented__item[aria-selected="true"], .segmented__item.is-active {
  background: var(--surface); color: var(--text); box-shadow: var(--sh-1);
}

/* ==========================================================================
   BADGES, CHIPS, PILLS, STATUS
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding-inline: var(--s-2);
  font-size: var(--t-micro); font-weight: var(--w-bold);
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  background: var(--n-100); color: var(--text-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--lg { height: 26px; padding-inline: var(--s-3); font-size: var(--t-caption); }
.badge--brand { background: var(--ev-50); color: var(--ev-700); border-color: var(--ev-100); }
.badge--accent { background: var(--clay-50); color: var(--clay-700); border-color: var(--clay-100); }
.badge--ok    { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-br); }
.badge--warn  { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-br); }
.badge--err   { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-br); }
.badge--info  { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-br); }
.badge--solid { background: var(--ev-900); color: #fff; }
.badge--glass {
  background: rgba(18,17,16,.62); color: #fff;
  backdrop-filter: blur(10px) saturate(1.2);
  border-color: rgba(255,255,255,.16);
}

/* Verification mark — a product signature, used on cards, detail, owner list */
.verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--t-micro); font-weight: var(--w-bold);
  color: var(--ev-700); letter-spacing: .02em;
}
.verified__mark {
  width: 15px; height: 15px; flex: none;
  color: var(--ev-600);
}

/* Status dot + label — one vocabulary everywhere */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-caption); font-weight: var(--w-semibold);
  color: var(--st-fg, var(--text-secondary));
  white-space: nowrap;
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}
.status--pill {
  height: 24px; padding-inline: var(--s-2) var(--s-3);
  background: var(--st-bg, var(--n-100));
  border: 1px solid var(--st-br, transparent);
  border-radius: var(--r-full);
}
.status--available { --st-fg: var(--st-available-fg); --st-bg: var(--st-available-bg); --st-br: var(--st-available-br); }
.status--held      { --st-fg: var(--st-held-fg);      --st-bg: var(--st-held-bg);      --st-br: var(--st-held-br); }
.status--pending   { --st-fg: var(--st-pending-fg);   --st-bg: var(--st-pending-bg);   --st-br: var(--st-pending-br); }
.status--confirmed { --st-fg: var(--st-confirmed-fg); --st-bg: var(--st-confirmed-bg); --st-br: var(--st-confirmed-br); }
.status--completed { --st-fg: var(--st-completed-fg); --st-bg: var(--st-completed-bg); --st-br: var(--st-completed-br); }
.status--cancelled { --st-fg: var(--st-cancelled-fg); --st-bg: var(--st-cancelled-bg); --st-br: var(--st-cancelled-br); }
.status--refunded  { --st-fg: var(--st-maint-fg);     --st-bg: var(--st-maint-bg);     --st-br: var(--st-maint-br); }
.status--blocked   { --st-fg: var(--st-blocked-fg);   --st-bg: var(--st-blocked-bg);   --st-br: var(--st-blocked-br); }
.status--maintenance { --st-fg: var(--st-maint-fg);   --st-bg: var(--st-maint-bg);     --st-br: var(--st-maint-br); }
.status--holiday   { --st-fg: var(--st-holiday-fg);   --st-bg: var(--st-holiday-bg);   --st-br: var(--st-holiday-br); }
.status--draft, .status--inactive { --st-fg: var(--n-500); --st-bg: var(--n-100); --st-br: var(--n-200); }
.status--paid      { --st-fg: var(--st-available-fg); --st-bg: var(--st-available-bg); --st-br: var(--st-available-br); }
.status--partial   { --st-fg: var(--st-pending-fg);   --st-bg: var(--st-pending-bg);   --st-br: var(--st-pending-br); }
.status--unpaid, .status--failed { --st-fg: var(--st-cancelled-fg); --st-bg: var(--st-cancelled-bg); --st-br: var(--st-cancelled-br); }
.status--published { --st-fg: var(--st-available-fg); --st-bg: var(--st-available-bg); --st-br: var(--st-available-br); }
.status--suspended { --st-fg: var(--st-cancelled-fg); --st-bg: var(--st-cancelled-bg); --st-br: var(--st-cancelled-br); }
.status--verified  { --st-fg: var(--st-confirmed-fg); --st-bg: var(--st-confirmed-bg); --st-br: var(--st-confirmed-br); }
/* Payment and payout lifecycles reuse the same colour language. */
.status--success   { --st-fg: var(--st-available-fg); --st-bg: var(--st-available-bg); --st-br: var(--st-available-br); }
.status--rejected, .status--expired { --st-fg: var(--st-cancelled-fg); --st-bg: var(--st-cancelled-bg); --st-br: var(--st-cancelled-br); }
.status--approved  { --st-fg: var(--st-confirmed-fg); --st-bg: var(--st-confirmed-bg); --st-br: var(--st-confirmed-br); }
.status--processing, .status--requested { --st-fg: var(--st-held-fg); --st-bg: var(--st-held-bg); --st-br: var(--st-held-br); }
.status--on_hold   { --st-fg: var(--st-maint-fg);     --st-bg: var(--st-maint-bg);     --st-br: var(--st-maint-br); }

/* Chips — filters, amenities, quick selections */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 34px; padding-inline: var(--s-4);
  font-size: var(--t-meta); font-weight: var(--w-medium);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer; white-space: nowrap;
  transition: all var(--d-fast) var(--ease-out);
}
.chip:hover { border-color: var(--n-400); color: var(--text); }
.chip svg { width: 14px; height: 14px; }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ev-800); border-color: var(--ev-800); color: #fff; font-weight: var(--w-semibold);
}
.chip--removable { padding-right: var(--s-2); }
.chip__x {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--n-100); color: var(--text-muted);
  transition: all var(--d-fast) var(--ease-out);
}
.chip__x:hover { background: var(--n-300); color: var(--text); }
.chip[aria-pressed="true"] .chip__x { background: rgba(255,255,255,.2); color: #fff; }
.chip--static { cursor: default; background: var(--n-50); }
.chip--static:hover { border-color: var(--border); color: var(--text-secondary); }
.chip--count { padding-right: var(--s-2); }
.chip__count {
  min-width: 18px; height: 18px; padding-inline: 5px;
  border-radius: var(--r-full); background: var(--n-100);
  font-size: var(--t-micro); font-weight: var(--w-bold);
  display: grid; place-items: center; color: var(--text-secondary);
}

.chip-row {
  display: flex; gap: var(--s-2); overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-block: 2px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row > * { flex: none; }

/* Touch devices get larger hit areas — 28px is fine for a mouse, not a thumb. */
@media (hover: none) {
  .chip { height: 38px; }
  .check { padding-block: 7px; }
  .footer__link, .crumbs a { padding-block: 3px; display: inline-block; }
  .chip--sm, .console__quick .chip { height: 34px; }
  .btn--xs { --btn-h: 34px; }
  .pager__item { min-width: 38px; height: 38px; }
  .menu__item { padding-block: 11px; }
}

/* ==========================================================================
   AVATAR
   ========================================================================== */
.avatar {
  --av: 36px;
  width: var(--av); height: var(--av); flex: none;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--ev-100); color: var(--ev-800);
  font-size: calc(var(--av) * .36); font-weight: var(--w-bold);
  letter-spacing: 0; overflow: hidden; user-select: none;
  border: 1px solid rgba(0,0,0,.04);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { --av: 24px; }
.avatar--sm { --av: 30px; }
.avatar--lg { --av: 48px; }
.avatar--xl { --av: 68px; }
.avatar--2xl { --av: 96px; }
.avatar--clay { background: var(--clay-100); color: var(--clay-700); }
.avatar--neutral { background: var(--n-200); color: var(--n-700); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -10px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ==========================================================================
   RATING
   ========================================================================== */
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-meta); }
.rating__score {
  font-weight: var(--w-bold); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rating__star { width: 14px; height: 14px; color: var(--clay-500); flex: none; }
.rating__count { color: var(--text-muted); }
.rating--lg { font-size: var(--t-body-s); }
.rating--lg .rating__star { width: 16px; height: 16px; }
.rating-bar {
  height: 6px; border-radius: var(--r-full);
  background: var(--n-200); overflow: hidden;
}
.rating-bar__fill { height: 100%; background: var(--clay-500); border-radius: inherit; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { display: block; }
.field + .field { margin-top: var(--s-4); }
.field__label {
  display: block; margin-bottom: var(--s-2);
  font-size: var(--t-meta); font-weight: var(--w-semibold);
  color: var(--text); letter-spacing: var(--tracking-normal);
}
.field__label .req { color: var(--err-fg); margin-left: 2px; }
.field__hint { margin-top: var(--s-2); font-size: var(--t-caption); color: var(--text-muted); }
.field__error {
  margin-top: var(--s-2); font-size: var(--t-caption); color: var(--err-fg);
  display: flex; align-items: center; gap: 5px; font-weight: var(--w-medium);
}
.field__error svg { width: 13px; height: 13px; flex: none; }

.input, .select, .textarea {
  display: block; width: 100%;
  min-height: 44px; padding: 11px var(--s-4);
  font-size: var(--t-body-s);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out),
              background-color var(--d-fast) var(--ease-out);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ev-600); box-shadow: var(--focus-ring); background: var(--surface);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--n-100); color: var(--text-muted); cursor: not-allowed; border-color: var(--border);
}
.input[readonly] { background: var(--n-50); }
.textarea { min-height: 108px; resize: vertical; line-height: var(--lh-normal); padding-block: var(--s-3); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid {
  border-color: var(--err-fg);
}
.is-invalid .input:focus, .input.is-invalid:focus { box-shadow: var(--focus-ring-err); }

.select {
  padding-right: var(--s-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23837D72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  cursor: pointer;
}

.input--sm, .select--sm { min-height: 36px; padding-block: 7px; font-size: var(--t-meta); border-radius: var(--r-sm); }
.input--lg { min-height: 52px; font-size: var(--t-body); }

/* Input with leading icon / trailing affix */
.input-wrap { position: relative; display: block; }
.input-wrap__icon {
  position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-faint); pointer-events: none;
  transition: color var(--d-fast) var(--ease-out);
}
.input-wrap:focus-within .input-wrap__icon { color: var(--ev-600); }
.input-wrap--icon .input { padding-left: calc(var(--s-4) * 2 + 17px); }
.input-wrap__affix {
  position: absolute; right: var(--s-4); top: 50%; transform: translateY(-50%);
  font-size: var(--t-meta); color: var(--text-muted); font-weight: var(--w-medium);
  pointer-events: none;
}
.input-wrap--affix .input { padding-right: var(--s-12); }
.input-wrap__prefix {
  position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%);
  font-size: var(--t-body-s); color: var(--text-muted); font-weight: var(--w-semibold);
  pointer-events: none;
}
.input-wrap--prefix .input { padding-left: var(--s-10); }

/* Checkbox & radio */
.check {
  display: flex; align-items: flex-start; gap: var(--s-3);
  cursor: pointer; user-select: none;
  font-size: var(--t-body-s); color: var(--text);
  padding-block: 3px;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px; background: var(--surface);
  display: grid; place-items: center;
  transition: all var(--d-fast) var(--ease-out);
}
.check__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.6); transition: all var(--d-fast) var(--ease-spring); }
.check input:checked + .check__box { background: var(--ev-800); border-color: var(--ev-800); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:indeterminate + .check__box { background: var(--ev-800); border-color: var(--ev-800); }
.check input:indeterminate + .check__box::after { content: ""; width: 9px; height: 2px; background: #fff; border-radius: 1px; }
.check input:focus-visible + .check__box { box-shadow: var(--focus-ring); }
.check input:disabled + .check__box { background: var(--n-100); border-color: var(--border); }
.check:hover .check__box { border-color: var(--n-400); }
.check--radio .check__box { border-radius: 50%; }
.check--radio input:checked + .check__box { background: var(--surface); border-color: var(--ev-800); border-width: 5.5px; }
/* A link that behaves like a chosen radio, without nesting a control inside an
   anchor — invalid HTML, and a control nobody can operate. */
.check--radio[data-checked] .check__box { background: var(--surface); border-color: var(--ev-800); border-width: 5.5px; }
.check--radio input:checked + .check__box svg { display: none; }
.check__text { min-width: 0; }
.check__title { font-weight: var(--w-medium); }
.check__desc { display: block; font-size: var(--t-caption); color: var(--text-muted); margin-top: 1px; }

/* Selectable card — used for spaces, slots, payment methods, plans */
.option-card {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: var(--s-4);
  transition: all var(--d-fast) var(--ease-out);
}
.option-card:hover { border-color: var(--n-400); box-shadow: var(--sh-2); }
.option-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-card:has(input:checked) {
  border-color: var(--ev-700); background: var(--ev-50);
  box-shadow: 0 0 0 1px var(--ev-700);
}
.option-card:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.option-card:has(input:disabled) { opacity: .5; cursor: not-allowed; background: var(--n-50); }
.option-card__check {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; transition: all var(--d-fast) var(--ease-out);
}
.option-card__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.option-card:has(input:checked) .option-card__check { background: var(--ev-700); border-color: var(--ev-700); }
.option-card:has(input:checked) .option-card__check svg { opacity: 1; }
/* Some cards select via a server-rendered link rather than a radio input
   (e.g. the venue's "which space?" step) — mirror the checked state here
   so the border, background and checkmark still respond. */
.option-card.is-selected {
  border-color: var(--ev-700); background: var(--ev-50);
  box-shadow: 0 0 0 1px var(--ev-700);
}
.option-card.is-selected .option-card__check { background: var(--ev-700); border-color: var(--ev-700); }
.option-card.is-selected .option-card__check svg { opacity: 1; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 40px; height: 23px; flex: none;
  background: var(--n-300); border-radius: var(--r-full);
  position: relative; transition: background-color var(--d-base) var(--ease-out);
}
.switch__track::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-2);
  transition: transform var(--d-base) var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--ev-700); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus-ring); }
.switch input:disabled + .switch__track { opacity: .5; }

/* Fieldset grouping used in the venue builder + settings */
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset + .fieldset,
.field-grid + .fieldset { margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--border-subtle); }
/* Fields and fieldsets that simply follow one another inside a form body
   (no section divider) still need breathing room — otherwise a field-grid
   placed straight after a fieldset sits flush against it. */
.field + .fieldset,
.fieldset + .field,
.fieldset + .field-grid,
.field + .field-grid,
.field-grid + .field,
.field-grid + .field-grid { margin-top: var(--s-6); }
.fieldset__head { margin-bottom: var(--s-5); }
.fieldset__title { font-size: var(--t-h4); font-weight: var(--w-semibold); }
.fieldset__desc { font-size: var(--t-meta); color: var(--text-muted); margin-top: 3px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.field-grid .field + .field { margin-top: 0; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid__full { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .field-grid, .field-grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
.card--flat { box-shadow: none; }
.card--raised { box-shadow: var(--sh-2); border-color: var(--border-subtle); }
.card--sunken { background: var(--surface-2); }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-5) 0;
}
.card__head--bordered { padding-bottom: var(--s-4); border-bottom: 1px solid var(--border-subtle); }
.card__title { font-size: var(--t-h4); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
.card__subtitle { font-size: var(--t-caption); color: var(--text-muted); margin-top: 2px; }
.card__body { padding: var(--s-5); }
.card__body--tight { padding: var(--s-4); }
.card__foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Metric — the KPI unit. Deliberately NOT a giant icon card. */
.metric { min-width: 0; }
.metric__label {
  font-size: var(--t-caption); color: var(--text-muted);
  font-weight: var(--w-medium); display: flex; align-items: center; gap: 5px;
}
.metric__value {
  font-size: 1.75rem; font-weight: var(--w-bold);
  letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.metric__value--sm { font-size: 1.375rem; }
.metric__foot { margin-top: var(--s-2); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.metric__delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--t-caption); font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums;
}
.metric__delta svg { width: 13px; height: 13px; }
.metric__delta--up { color: var(--ok-fg); }
.metric__delta--down { color: var(--err-fg); }
.metric__delta--flat { color: var(--text-muted); }
.metric__note { font-size: var(--t-caption); color: var(--text-faint); }

/* Metric strip — metrics share one surface, divided; not four floating boxes */
.metric-strip {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.metric-strip > * { padding: var(--s-5); border-left: 1px solid var(--border-subtle); }
.metric-strip > *:first-child { border-left: 0; }
@media (max-width: 1023.98px) {
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip > *:nth-child(odd) { border-left: 0; }
  .metric-strip > *:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 479.98px) {
  .metric-strip { grid-template-columns: minmax(0, 1fr); }
  .metric-strip > * { border-left: 0; }
  .metric-strip > * + * { border-top: 1px solid var(--border-subtle); }
}

/* Sparkline container */
.spark { display: block; width: 100%; height: 34px; overflow: visible; }

/* ==========================================================================
   TABS
   ========================================================================== */
.tabs {
  display: flex; gap: var(--s-6);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  position: relative; padding: var(--s-3) 0 var(--s-4);
  font-size: var(--t-body-s); font-weight: var(--w-medium);
  color: var(--text-muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: color var(--d-fast) var(--ease-out);
}
.tabs__item:hover { color: var(--text); }
.tabs__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ev-800); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}
.tabs__item[aria-selected="true"], .tabs__item.is-active { color: var(--text); font-weight: var(--w-semibold); }
.tabs__item[aria-selected="true"]::after, .tabs__item.is-active::after { transform: scaleX(1); }
.tabs__count {
  font-size: var(--t-micro); font-weight: var(--w-bold);
  background: var(--n-100); color: var(--text-secondary);
  padding: 1px 6px; border-radius: var(--r-full);
}
.tabs__item[aria-selected="true"] .tabs__count { background: var(--ev-100); color: var(--ev-700); }

/* ==========================================================================
   DATA GRID — modern table, not a Bootstrap table
   ========================================================================== */
.grid-toolbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.grid-toolbar__search { flex: 1 1 240px; min-width: 180px; max-width: 340px; }

.dgrid-wrap { overflow-x: auto; }
.dgrid {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: var(--t-body-s);
}
.dgrid thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2);
  padding: var(--s-3) var(--s-4);
  text-align: left; white-space: nowrap;
  font-size: var(--t-micro); font-weight: var(--w-bold);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.dgrid thead th.is-sortable { cursor: pointer; user-select: none; }
.dgrid thead th.is-sortable:hover { color: var(--text); }
.dgrid thead th .sort-ind { display: inline-block; width: 12px; margin-left: 4px; opacity: .4; }
.dgrid thead th[aria-sort] .sort-ind { opacity: 1; color: var(--ev-700); }
.dgrid tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.dgrid tbody tr { transition: background-color var(--d-instant) linear; }
.dgrid tbody tr:hover { background: var(--n-25); }
.dgrid tbody tr.is-selected { background: var(--ev-50); }
.dgrid tbody tr:last-child td { border-bottom: 0; }
.dgrid .cell-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dgrid .cell-tight { width: 1%; white-space: nowrap; }
.dgrid .cell-actions { width: 1%; white-space: nowrap; text-align: right; }
.dgrid__primary { font-weight: var(--w-semibold); color: var(--text); }
.dgrid__secondary { font-size: var(--t-caption); color: var(--text-muted); margin-top: 1px; }
.dgrid__id { font-family: var(--font-mono); font-size: var(--t-caption); color: var(--text-secondary); }
.dgrid tbody tr.is-clickable { cursor: pointer; }

.grid-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--t-meta); color: var(--text-muted); flex-wrap: wrap;
}

/* Bulk action bar appears over the toolbar when rows are selected */
.bulkbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--ev-900); color: var(--text-on-dark);
  border-radius: var(--r-md); margin: var(--s-3) var(--s-4) 0;
  font-size: var(--t-meta); font-weight: var(--w-medium);
  animation: bulkbar-in var(--d-base) var(--ease-out);
}
@keyframes bulkbar-in { from { opacity: 0; transform: translateY(-6px); } }

/* Mobile: rows become intelligent cards, never a squashed table */
.dgrid-cards { display: none; }
@media (max-width: 899.98px) {
  .dgrid-wrap { display: none; }
  /* An explicit 1fr track stops long cell content from widening the grid. */
  .dgrid-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); }
  /* Used at page level rather than inside a card, the page already pads it. */
  .page > .dgrid-cards, .page-shell > .dgrid-cards { padding-inline: 0; }
}
.rowcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-4);
  display: grid; gap: var(--s-3);
}
.rowcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.rowcard__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.rowcard__k { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: var(--w-bold); }
.rowcard__v { font-size: var(--t-meta); color: var(--text); font-weight: var(--w-medium); margin-top: 2px; }
.rowcard__foot { display: flex; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--border-subtle); }

/* Pagination */
.pager { display: flex; align-items: center; gap: 3px; }
.pager__item {
  min-width: 32px; height: 32px; padding-inline: var(--s-2);
  border-radius: var(--r-sm); display: grid; place-items: center;
  font-size: var(--t-meta); font-weight: var(--w-medium); color: var(--text-secondary);
  transition: all var(--d-fast) var(--ease-out);
}
.pager__item:hover:not([aria-disabled="true"]) { background: var(--n-100); color: var(--text); }
.pager__item[aria-current="page"] { background: var(--ev-800); color: #fff; font-weight: var(--w-bold); }
.pager__item[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pager__gap { color: var(--text-faint); padding-inline: 2px; }

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */
.menu {
  position: absolute; z-index: var(--z-drawer);
  min-width: 208px; padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-4);
  opacity: 0; transform: translateY(-4px) scale(.98);
  pointer-events: none;
  transition: opacity var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu--right { right: 0; }
.menu__item {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; padding: 8px var(--s-3);
  font-size: var(--t-meta); font-weight: var(--w-medium); color: var(--text);
  border-radius: var(--r-sm); text-align: left;
  transition: background-color var(--d-instant) linear;
}
.menu__item:hover { background: var(--n-100); }
.menu__item svg { width: 15px; height: 15px; color: var(--text-muted); flex: none; }
.menu__item--danger { color: var(--err-fg); }
.menu__item--danger svg { color: var(--err-fg); }
.menu__item--danger:hover { background: var(--err-bg); }
.menu__sep { height: 1px; background: var(--border-subtle); margin: 5px 0; }
.menu__label {
  padding: var(--s-2) var(--s-3) 5px; font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); font-weight: var(--w-bold);
}
.menu__kbd { margin-left: auto; font-size: var(--t-micro); color: var(--text-faint); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding-inline: 5px;
  font-family: var(--font-sans); font-size: var(--t-micro); font-weight: var(--w-semibold);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px; color: var(--text-secondary);
}

/* ==========================================================================
   SIDE PANEL (contextual inspector) — inspect without losing context
   ========================================================================== */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-panel);
  background: rgba(18, 17, 16, .38);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--d-base) var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-panel) + 1);
  width: min(var(--panel-w), 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--sh-5);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--d-panel) var(--ease-out);
}
.side-panel.is-open { transform: none; }
.side-panel__head {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-5); border-bottom: 1px solid var(--border-subtle);
}
.side-panel__eyebrow { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: var(--w-bold); }
.side-panel__title { font-size: var(--t-h3); font-weight: var(--w-semibold); margin-top: 3px; letter-spacing: var(--tracking-tight); }
.side-panel__body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.side-panel__foot {
  padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle);
  background: var(--surface-2); display: flex; gap: var(--s-3);
}
@media (max-width: 575.98px) {
  .side-panel { width: 100vw; top: auto; height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; border-left: 0; transform: translateY(100%); }
  .side-panel.is-open { transform: none; }
}

/* Definition list used inside panels and detail pages */
.dl { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: var(--s-3) var(--s-4); font-size: var(--t-meta); }
.dl dt { color: var(--text-muted); }
.dl dd { color: var(--text); font-weight: var(--w-medium); margin: 0; text-align: right; }
.dl--stacked { grid-template-columns: 1fr; gap: var(--s-4); }
.dl--stacked dd { text-align: left; }

.panel-section + .panel-section { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--border-subtle); }
.panel-section__title {
  font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-faint); font-weight: var(--w-bold); margin-bottom: var(--s-3);
}

/* ==========================================================================
   MODAL & BOTTOM SHEET
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--s-5);
  /* An `auto` column sizes to the dialog's max-content width, and the dialog's
     own `width: 100%` then resolves against that — so on a narrow screen, where
     the max-width cap is lifted, the column grew to fit the widest line inside
     the form and the sheet ran off the side of the viewport. Pinning the column
     to the container keeps 100% meaning "the screen". */
  grid-template-columns: minmax(0, 1fr);
  pointer-events: none;
}
.modal.is-open { pointer-events: auto; }
/* The shared .scrim component carries its own z-index (--z-panel: 90), meant
   for the side-panel/drawer contexts it was designed for, where the panel
   itself is given z-index: calc(--z-panel + 1) to sit above it. Reused here
   as a modal backdrop, that positive z-index otherwise outranks
   .modal__dialog below (which has no z-index of its own — it only relies on
   coming later in the DOM), so the scrim silently sits on top of and
   intercepts every click meant for the dialog's form fields, killing the
   whole "Find a venue" search. Neutralize it in this context and let the
   dialog's explicit z-index win instead. */
.modal .scrim { z-index: 0; }
/* A scrim placed inside a modal follows the modal open state. */
.modal.is-open > .scrim { opacity: 1; pointer-events: auto; }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: min(var(--modal-w, 520px), 100%);
  max-height: calc(100vh - var(--s-10));
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-5); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal--wide { --modal-w: 760px; }
.modal--full { --modal-w: 1080px; }
.modal__head { padding: var(--s-5) var(--s-5) 0; display: flex; align-items: flex-start; gap: var(--s-4); }
.modal__title { font-size: var(--t-h3); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
.modal__desc { font-size: var(--t-meta); color: var(--text-muted); margin-top: 4px; }
.modal__body { padding: var(--s-5); overflow-y: auto; }
.modal__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle); display: flex; gap: var(--s-3); justify-content: flex-end; }
@media (max-width: 575.98px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; transform: translateY(100%); }
  .modal.is-open .modal__dialog { transform: none; }
  .modal__foot { flex-direction: column-reverse; padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
  .modal__foot .btn { width: 100%; }
}

.sheet-handle {
  width: 38px; height: 4px; border-radius: var(--r-full);
  background: var(--n-300); margin: var(--s-3) auto var(--s-1);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast-stack {
  position: fixed; z-index: var(--z-toast);
  right: var(--s-5); bottom: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  width: min(380px, calc(100vw - var(--s-8)));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4); border-radius: var(--r-md);
  background: var(--n-950); color: var(--text-on-dark);
  box-shadow: var(--sh-5); pointer-events: auto;
  animation: toast-in var(--d-base) var(--ease-spring);
  font-size: var(--t-meta);
}
.toast.is-leaving { animation: toast-out var(--d-base) var(--ease-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
.toast__icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast--ok .toast__icon { color: #6EE7B7; }
.toast--err .toast__icon { color: #FCA5A5; }
.toast--warn .toast__icon { color: #FCD34D; }
.toast__title { font-weight: var(--w-semibold); }
.toast__msg { color: var(--text-on-dark-dim); margin-top: 2px; }
.toast__close { color: var(--text-on-dark-dim); flex: none; }
.toast__close:hover { color: #fff; }
@media (max-width: 575.98px) {
  .toast-stack { left: var(--s-4); right: var(--s-4); bottom: calc(var(--mobile-nav-h) + var(--s-4)); width: auto; }
}

/* Inline alert */
.alert {
  display: flex; gap: var(--s-3); padding: var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2); font-size: var(--t-meta);
  color: var(--text-secondary);
}
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.alert__title { font-weight: var(--w-semibold); color: var(--text); margin-bottom: 2px; }
.alert--ok   { background: var(--ok-bg); border-color: var(--ok-br); color: #17563B; }
.alert--ok svg { color: var(--ok-fg); }
.alert--warn { background: var(--warn-bg); border-color: var(--warn-br); color: #7A4A0C; }
.alert--warn svg { color: var(--warn-fg); }
.alert--err  { background: var(--err-bg); border-color: var(--err-br); color: #8C2118; }
.alert--err svg { color: var(--err-fg); }
.alert--info { background: var(--info-bg); border-color: var(--info-br); color: #143F79; }
.alert--info svg { color: var(--info-fg); }
.alert--ok .alert__title, .alert--warn .alert__title,
.alert--err .alert__title, .alert--info .alert__title { color: inherit; }

/* ==========================================================================
   SKELETONS
   ========================================================================== */
.sk {
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-200) 37%, var(--n-100) 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk--text { height: 11px; }
.sk--title { height: 17px; border-radius: var(--r-xs); }
.sk--img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.sk--circle { border-radius: 50%; }
.sk--w40 { width: 40%; } .sk--w60 { width: 60%; } .sk--w80 { width: 80%; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ==========================================================================
   EMPTY / ERROR / SUCCESS STATES
   ========================================================================== */
.state {
  display: grid; justify-items: center; text-align: center;
  padding: var(--s-16) var(--s-6); max-width: 440px; margin-inline: auto;
}
.state--compact { padding: var(--s-10) var(--s-5); }
.state__art {
  width: 76px; height: 76px; margin-bottom: var(--s-5);
  display: grid; place-items: center; border-radius: var(--r-xl);
  background: var(--ev-50); color: var(--ev-500);
  border: 1px solid var(--ev-100);
}
.state__art svg { width: 32px; height: 32px; }
.state__art--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-br); }
.state__art--err { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-br); }
.state__art--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-br); }
.state__title { font-size: var(--t-h3); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); }
.state__text { font-size: var(--t-body-s); color: var(--text-secondary); margin-top: var(--s-2); line-height: var(--lh-relaxed); }
.state__actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }

/* Success confirmation seal — used for booking confirmed / payment success */
.seal {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ok-bg); border: 1px solid var(--ok-br);
  display: grid; place-items: center; color: var(--ok-fg);
  animation: seal-in var(--d-slow) var(--ease-spring);
}
.seal svg { width: 38px; height: 38px; stroke-dasharray: 48; stroke-dashoffset: 48; animation: seal-draw 520ms var(--ease-out) 140ms forwards; }
@keyframes seal-in { from { transform: scale(.7); opacity: 0; } }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; } .seal svg { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   PROGRESS & STEPPER
   ========================================================================== */
.progress { height: 6px; background: var(--n-200); border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: var(--ev-700); border-radius: inherit; transition: width var(--d-slow) var(--ease-out); }
.progress--accent .progress__bar { background: var(--clay-500); }
.progress--ok .progress__bar { background: var(--ok-fg); }

.meter-row { display: grid; gap: var(--s-2); }
.meter-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--t-meta); }
.meter-row__label { color: var(--text-secondary); min-width: 0; }
.meter-row__val { font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }

.stepper { display: flex; align-items: center; gap: var(--s-2); }
.stepper__step { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.stepper__dot {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--t-caption); font-weight: var(--w-bold);
  background: var(--surface); color: var(--text-faint);
  border: 1.5px solid var(--border-strong);
  font-variant-numeric: tabular-nums;
  transition: all var(--d-base) var(--ease-out);
}
.stepper__label { font-size: var(--t-meta); color: var(--text-muted); font-weight: var(--w-medium); white-space: nowrap; }
.stepper__line { flex: 1; height: 1.5px; background: var(--border); min-width: 12px; }
.stepper__step.is-done .stepper__dot { background: var(--ev-700); border-color: var(--ev-700); color: #fff; }
.stepper__step.is-done .stepper__label { color: var(--text-secondary); }
.stepper__step.is-current .stepper__dot { background: var(--surface); border-color: var(--ev-700); color: var(--ev-800); box-shadow: 0 0 0 4px var(--ev-50); }
.stepper__step.is-current .stepper__label { color: var(--text); font-weight: var(--w-semibold); }

/* ==========================================================================
   TIMELINE (status history, activity feeds)
   ========================================================================== */
.timeline { position: relative; padding-left: var(--s-6); }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1.5px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: var(--s-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: calc(var(--s-6) * -1 + 3px); top: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline__item--done .timeline__dot { background: var(--ev-700); border-color: var(--ev-700); }
.timeline__item--current .timeline__dot { background: var(--surface); border-color: var(--ev-700); box-shadow: 0 0 0 3px var(--ev-50); }
.timeline__item--err .timeline__dot { background: var(--err-fg); border-color: var(--err-fg); }
.timeline__title { font-size: var(--t-meta); font-weight: var(--w-semibold); }
.timeline__meta { font-size: var(--t-caption); color: var(--text-muted); margin-top: 2px; }

/* Activity feed variant with avatars */
.feed__item { display: flex; gap: var(--s-3); padding: var(--s-3) 0; }
.feed__item + .feed__item { border-top: 1px solid var(--border-subtle); }
.feed__body { min-width: 0; flex: 1; }
.feed__text { font-size: var(--t-meta); color: var(--text-secondary); }
.feed__text strong { color: var(--text); font-weight: var(--w-semibold); }
.feed__time { font-size: var(--t-caption); color: var(--text-faint); margin-top: 2px; }
.feed__icon {
  width: 30px; height: 30px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--n-100); color: var(--text-secondary);
}
.feed__icon svg { width: 15px; height: 15px; }

/* ==========================================================================
   PRICE / MONEY BLOCKS
   ========================================================================== */
.money { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price-lines { font-size: var(--t-meta); }
.price-lines__row { display: flex; justify-content: space-between; gap: var(--s-4); padding: 7px 0; }
.price-lines__row dt, .price-lines__label { color: var(--text-secondary); min-width: 0; }
.price-lines__row dd, .price-lines__val { margin: 0; font-weight: var(--w-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lines__row--discount .price-lines__val, .price-lines__row--discount dd { color: var(--ok-fg); }
.price-lines__sep { height: 1px; background: var(--border-subtle); margin: var(--s-2) 0; }
.price-lines__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--border); margin-top: var(--s-2); }
.price-lines__total .price-lines__label { color: var(--text); font-weight: var(--w-semibold); font-size: var(--t-body-s); }
.price-lines__total .price-lines__val { font-size: var(--t-h2); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.price-lines__note { font-size: var(--t-caption); color: var(--text-faint); margin-top: 3px; }

/* Collapsible group inside price breakdown */
.disclose > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-meta); font-weight: var(--w-semibold); color: var(--ev-700);
  padding: var(--s-2) 0;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease-out); }
.disclose[open] > summary svg { transform: rotate(180deg); }

/* ==========================================================================
   TOOLTIP (CSS-only, accessible via title fallback)
   ========================================================================== */
.tip { position: relative; }
.tip__bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--n-950); color: #fff; font-size: var(--t-caption);
  padding: 6px var(--s-3); border-radius: var(--r-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: var(--z-drawer);
  box-shadow: var(--sh-3);
  transition: opacity var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.tip:hover .tip__bubble, .tip:focus-within .tip__bubble { opacity: 1; transform: translateX(-50%); }
/* A tooltip on one of the last cells in a strip would hang off the right edge
   and widen the page, so the final few anchor to their right instead. */
.tip:nth-last-child(-n+3) .tip__bubble,
.tip--end .tip__bubble { left: auto; right: 0; transform: translateY(4px); }
.tip:nth-last-child(-n+3):hover .tip__bubble,
.tip:nth-last-child(-n+3):focus-within .tip__bubble,
.tip--end:hover .tip__bubble,
.tip--end:focus-within .tip__bubble { transform: none; }

/* ==========================================================================
   COMMAND PALETTE (⌘K)
   ========================================================================== */
.cmdk {
  position: fixed; inset: 0; z-index: var(--z-command);
  display: grid; place-items: start center;
  padding: max(10vh, var(--s-10)) var(--s-5) var(--s-5);
  pointer-events: none;
}
.cmdk.is-open { pointer-events: auto; }
.cmdk__scrim {
  position: absolute; inset: 0; background: rgba(18,17,16,.44);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--d-base) var(--ease-out);
}
.cmdk.is-open .cmdk__scrim { opacity: 1; }
.cmdk__dialog {
  position: relative; width: 100%; max-width: 620px;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-5); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: min(560px, 76vh);
  opacity: 0; transform: translateY(-8px) scale(.985);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.cmdk.is-open .cmdk__dialog { opacity: 1; transform: none; }
.cmdk__search { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.cmdk__search svg { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.cmdk__input { flex: 1; border: 0; outline: 0; font-size: var(--t-body); background: none; min-width: 0; }
.cmdk__input::placeholder { color: var(--text-faint); }
.cmdk__list { overflow-y: auto; padding: var(--s-2); }
.cmdk__group { padding: var(--s-3) var(--s-3) var(--s-1); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: var(--w-bold); }
.cmdk__item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: 9px var(--s-3); border-radius: var(--r-sm); text-align: left;
  font-size: var(--t-body-s); color: var(--text);
}
.cmdk__item[aria-selected="true"] { background: var(--ev-50); }
.cmdk__item svg { width: 16px; height: 16px; color: var(--text-muted); flex: none; }
.cmdk__item-sub { font-size: var(--t-caption); color: var(--text-muted); }
.cmdk__foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border-subtle); background: var(--surface-2); display: flex; gap: var(--s-4); font-size: var(--t-caption); color: var(--text-muted); }
@media (max-width: 575.98px) { .cmdk { padding: 0; } .cmdk__dialog { max-height: 100vh; height: 100vh; border-radius: 0; } }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-meta); color: var(--text-muted); flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); transition: color var(--d-fast) var(--ease-out); }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { color: var(--text-faint); }
.crumbs [aria-current] { color: var(--text); font-weight: var(--w-medium); }

/* ==========================================================================
   IMAGE PRIMITIVES — every image in the product goes through these
   ========================================================================== */
.ph {
  position: relative; overflow: hidden;
  background: var(--n-100);
  border-radius: var(--r-lg);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(18,17,16,.06);
  border-radius: inherit; pointer-events: none;
}
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--d-slow) var(--ease-out), opacity var(--d-base) var(--ease-out);
}
.ph img[data-loaded="false"] { opacity: 0; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--3x2  { aspect-ratio: 3 / 2; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--5x4  { aspect-ratio: 5 / 4; }
.ph--21x9 { aspect-ratio: 21 / 9; }
.ph--portrait { aspect-ratio: 3 / 4; }

/* Scrim for text over imagery — consistent legibility contract */
.ph__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(7, 26, 24, .82) 0%,
    rgba(7, 26, 24, .48) 28%,
    rgba(7, 26, 24, .06) 62%,
    rgba(7, 26, 24, 0) 100%);
  pointer-events: none;
}
.ph__scrim--soft { background: linear-gradient(to top, rgba(7,26,24,.62) 0%, rgba(7,26,24,0) 58%); }
.ph__scrim--full { background: rgba(7, 26, 24, .38); }
.ph__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5); color: #fff; }

/* Pending-photography state: a composed brand surface, never a gray box.
   Used only until the venue's real photography is imported. */
.ph--pending { background:
  radial-gradient(120% 90% at 18% 8%, rgba(255,255,255,.10), transparent 60%),
  linear-gradient(146deg, var(--ph-a, #0B3B36) 0%, var(--ph-b, #114B46) 52%, var(--ph-c, #072A27) 100%);
}
.ph--pending .ph__mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.30);
}
.ph--pending .ph__mark svg { width: 34%; max-width: 92px; height: auto; }
.ph--pending .ph__note {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  font-size: var(--t-micro); letter-spacing: .06em; text-transform: uppercase;
  font-weight: var(--w-bold); color: rgba(255,255,255,.62);
}

/* ==========================================================================
   DIVIDERS & MISC
   ========================================================================== */
.divider { height: 1px; background: var(--border-subtle); }
.divider--strong { background: var(--border); }
.dot-sep { color: var(--text-faint); }
.dot-sep::before { content: "·"; }

.icon-tile {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--ev-50); color: var(--ev-700);
  border: 1px solid var(--ev-100);
}
.icon-tile svg { width: 18px; height: 18px; }
.icon-tile--clay { background: var(--clay-50); color: var(--clay-600); border-color: var(--clay-100); }
.icon-tile--neutral { background: var(--n-100); color: var(--text-secondary); border-color: var(--border-subtle); }
.icon-tile--sm { width: 30px; height: 30px; border-radius: var(--r-sm); }
.icon-tile--sm svg { width: 15px; height: 15px; }

/* Notification dot on icon buttons */
.has-dot { position: relative; }
.has-dot::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay-500); border: 2px solid var(--surface);
}

/* ---------------------------------------------------------------------------
   Option-card internals + variants
   The card itself is defined above; these are the pieces that live inside it,
   plus two densities: a compact grid tile and a wide row.
--------------------------------------------------------------------------- */
.option-card__body { display: block; padding-right: var(--s-8); }
.option-card__title {
  display: block; font-weight: var(--w-semibold); font-size: var(--t-body-s);
  color: var(--text); line-height: var(--lh-snug);
}
.option-card__text {
  display: block; margin-top: 3px; font-size: var(--t-caption);
  color: var(--text-muted); line-height: var(--lh-relaxed);
}
.option-card:has(input:checked) .option-card__text { color: var(--text-secondary); }
.option-card--sm { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.option-card--sm .option-card__body { padding-right: var(--s-4); }
.option-card--sm .option-card__text { margin-top: 2px; }
.option-card--wide .option-card__body { padding-right: 0; }

/* A chip that is really a checkbox — used for weekday pickers */
.chip--check { position: relative; padding-inline: var(--s-4); }
.chip--check input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip--check:has(input:checked) {
  background: var(--ev-800); border-color: var(--ev-800); color: #fff; font-weight: var(--w-semibold);
}
.chip--check:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* Checkbox rendered as a bordered block, for lists that need a hint line */
.check--block {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); align-items: flex-start;
  transition: border-color var(--d-fast) var(--ease-out);
}
.check--block:has(input:checked) { border-color: var(--ev-300); background: var(--ev-50); }
.check__hint {
  display: block; margin-top: 2px; font-size: var(--t-caption);
  color: var(--text-muted); line-height: var(--lh-relaxed);
}

.textarea--tall { min-height: 176px; }
.fieldset__hint { font-size: var(--t-meta); color: var(--text-muted); margin-top: 3px; }
.field-grid--tight { gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
@media (max-width: 479.98px) { .field-grid--tight { grid-template-columns: minmax(0, 1fr); } }

.input-wrap__suffix {
  position: absolute; right: var(--s-4); top: 50%; transform: translateY(-50%);
  font-size: var(--t-meta); color: var(--text-muted); pointer-events: none;
}
.input-wrap--suffix .input { padding-right: var(--s-10); }

.icon-tile--accent { background: var(--clay-50); color: var(--clay-600); border-color: var(--clay-100); }
.icon-tile--ok   { background: var(--ok-bg);   color: var(--ok-fg);   border-color: var(--ok-br); }
.icon-tile--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-br); }
.icon-tile--err  { background: var(--err-bg);  color: var(--err-fg);  border-color: var(--err-br); }
.icon-tile--lg { width: 48px; height: 48px; border-radius: var(--r-lg); }
.icon-tile--lg svg { width: 24px; height: 24px; }

/* Numbered explainer list */
.ordered { counter-reset: ord; display: grid; gap: var(--s-4); list-style: none; }
.ordered li {
  counter-increment: ord; position: relative; padding-left: var(--s-8);
  font-size: var(--t-meta); color: var(--text-secondary); line-height: var(--lh-relaxed);
}
.ordered li::before {
  content: counter(ord); position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--ev-50); color: var(--ev-700); border: 1px solid var(--ev-100);
  display: grid; place-items: center;
  font-size: 11px; font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.ordered li strong { color: var(--text); font-weight: var(--w-semibold); }

/* Alert-weighted tab count — for a tab that represents work, not a total. */
.tabs__count--alert { background: var(--err-bg); color: var(--err-fg); }
.tabs__item[aria-selected="true"] .tabs__count--alert,
.tabs__item.is-active .tabs__count--alert { background: var(--err-fg); color: #fff; }

/* ---------------------------------------------------------------------------
   Filter bar — one row of controls above a data grid.
   Wraps rather than scrolls, so nothing is hidden off the right edge.
--------------------------------------------------------------------------- */
.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-block: var(--s-4) var(--workspace-gap);
}
.filterbar__search { flex: 1 1 240px; min-width: 0; max-width: 340px; }
.filterbar__range { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; }
.filterbar__range .input { width: 9.5rem; }
/* The from/to labels are for screen readers on desktop, where the arrow says
   everything; on a narrow screen the range stacks and the labels do the work. */
.filterbar__rlabel {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.filterbar__arrow { color: var(--text-muted); flex: none; }
@media (max-width: 767.98px) {
  .filterbar__search { flex: 1 1 100%; max-width: none; }
  .filterbar__range { flex: 1 1 100%; }
  .filterbar__range .input { flex: 1 1 0; width: auto; min-width: 0; }
}
/* Below this a date input cannot shrink further without the picker clipping,
   so the range becomes two labelled rows instead of one squeezed line. */
@media (max-width: 519.98px) {
  .filterbar__range {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-2) var(--s-3); align-items: center;
  }
  .filterbar__rlabel {
    position: static; width: auto; height: auto; margin: 0; overflow: visible;
    clip-path: none; font-size: var(--t-meta); color: var(--text-muted);
  }
  .filterbar__arrow { display: none; }
  .filterbar__range .input { width: 100%; }
}

/* A row-card header must let its text column shrink and its pill hold its size. */
.rowcard__head > .min0 { flex: 1 1 auto; min-width: 0; }
.rowcard__head > .status { flex: none; }

/* A grid item's default min-width is auto, so a long unbroken value inside a
   row-card can push the card wider than the column it sits in. */
.rowcard { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.rowcard__facts > * { min-width: 0; }
.rowcard__v, .rowcard__k { overflow-wrap: anywhere; }

/* On the narrowest screens a long call to action should wrap rather than push
   the page sideways. The fixed height gives way to a minimum. */
@media (max-width: 479.98px) {
  .btn {
    white-space: normal; text-align: center;
    height: auto; min-height: var(--btn-h);
    padding-block: 8px; line-height: var(--lh-snug);
  }
}

/* -----------------------------------------------------------------------------
   Install / connection bar
   One bar, three possible messages, never more than one at a time. It sits
   above the mobile navigation rather than over it, so it can never cover the
   only way out of a page.
   -------------------------------------------------------------------------- */
.pwabar {
  position: fixed; z-index: calc(var(--z-toast) - 1);
  left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  display: flex; align-items: center; gap: var(--s-4);
  max-width: 520px; margin-inline: auto;
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--n-950); color: var(--text-on-dark);
  box-shadow: var(--sh-5);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-spring);
}
.pwabar.is-in { opacity: 1; transform: none; }
.pwabar__text { min-width: 0; flex: 1 1 auto; }
.pwabar__title { font-size: var(--t-meta); font-weight: var(--w-semibold); }
.pwabar__msg { font-size: var(--t-meta); color: var(--text-on-dark-dim); margin-top: 2px; }
.pwabar__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.pwabar__close { color: var(--text-on-dark-dim); display: grid; place-items: center; padding: var(--s-1); }
.pwabar__close:hover { color: #fff; }
.pwabar__close svg { width: 18px; height: 18px; }
.pwabar--offline { background: var(--clay-700); }
.pwabar--offline .pwabar__msg { color: rgba(255,255,255,.78); }
.pwabar--update .pwabar__title::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #6EE7B7; margin-right: var(--s-2); vertical-align: middle;
}
body.has-mobile-nav .pwabar { bottom: calc(var(--mobile-nav-h) + var(--s-3)); }
@media (max-width: 419.98px) {
  .pwabar { gap: var(--s-3); padding-left: var(--s-4); }
  .pwabar .btn { padding-inline: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  .pwabar { transition: opacity var(--d-fast) linear; transform: none; }
}

/* A command meant to be typed on the server. Scrolls rather than widening its
   card, because a long path must not push a layout sideways at 320px. */
.codeblock {
  font-family: var(--font-mono); font-size: var(--t-caption);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: var(--n-950); color: var(--text-on-dark);
  overflow-x: auto; max-width: 100%; white-space: pre;
}

/* ==========================================================================
   AUTH — split composition, not a centered Bootstrap box
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 46%; }
.auth__form-side { display: flex; flex-direction: column; padding: var(--s-8) var(--s-10); background: var(--surface); }
.auth__form { width: 100%; max-width: 400px; margin: auto; padding-block: var(--s-10); }
.auth__title { font-family: var(--font-display); font-size: var(--t-display-m); line-height: 1.1; letter-spacing: var(--tracking-display); }
.auth__sub { font-size: var(--t-body-s); color: var(--text-secondary); margin-top: var(--s-3); }
.auth__art { position: relative; overflow: hidden; background: var(--ev-950); }
.auth__art .ph { width: 100%; height: 100%; border-radius: 0; }
.auth__art-copy { position: absolute; inset: auto var(--s-10) var(--s-10); color: #fff; z-index: 2; }
.auth__quote { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.32; letter-spacing: var(--tracking-tight); }
.auth__divider { display: flex; align-items: center; gap: var(--s-4); margin-block: var(--s-6); color: var(--text-faint); font-size: var(--t-caption); }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.otp-row { display: flex; gap: var(--s-3); justify-content: space-between; }
.otp-input {
  width: 52px; height: 60px; text-align: center;
  font-size: var(--t-h2); font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface);
}
.otp-input:focus { outline: none; border-color: var(--ev-600); box-shadow: var(--focus-ring); }
@media (max-width: 899.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
  .auth__form-side { padding: var(--s-6) var(--gutter); }
}
@media (max-width: 399.98px) { .otp-input { width: 44px; height: 52px; font-size: var(--t-h3); } }

/* ---- Brand -------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: var(--s-3); flex: none; }
.brand__mark { width: 30px; height: 30px; color: var(--ev-800); flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1;
  letter-spacing: -0.012em; color: var(--text);
}
.brand__word em { font-style: normal; color: var(--clay-500); }
.brand--sm .brand__mark { width: 24px; height: 24px; }
.brand--sm .brand__word { font-size: 1.25rem; }
.brand--inverse .brand__mark, .brand--inverse .brand__word { color: var(--text-on-dark); }

/* Calendar — shared between the customer booking flow and the owner/admin
   workspace. Duplicated here (not moved) so it loads on the customer surface
   too — customer.css never pulled in workspace.css, which left the booking
   page's date picker completely unstyled. */
/* ==========================================================================
   CALENDAR — a core product experience, not a date grid
   ========================================================================== */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cal__toolbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cal__month { font-size: var(--t-h3); font-weight: var(--w-semibold); letter-spacing: var(--tracking-tight); min-width: 168px; }
.cal__dow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.cal__dow span {
  padding: var(--s-2) var(--s-3); font-size: var(--t-micro);
  text-transform: uppercase; letter-spacing: .07em; font-weight: var(--w-bold);
  color: var(--text-muted); text-align: left;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__day {
  min-height: 118px; padding: var(--s-2);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 3px;
  position: relative; text-align: left;
  transition: background-color var(--d-fast) var(--ease-out);
}
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day:hover { background: var(--n-25); }
.cal__day--out { background: var(--surface-2); }
.cal__day--out .cal__daynum { color: var(--text-faint); }
.cal__daynum {
  font-size: var(--t-caption); font-weight: var(--w-semibold);
  color: var(--text-secondary); font-variant-numeric: tabular-nums;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
}
.cal__day--today .cal__daynum { background: var(--ev-800); color: #fff; }
.cal__day--weekend { background: color-mix(in srgb, var(--clay-50) 42%, var(--surface)); }
.cal__day--blocked { background: repeating-linear-gradient(135deg, var(--n-100) 0 6px, var(--n-50) 6px 12px); }
.cal__daytop { display: flex; align-items: center; justify-content: space-between; }
.cal__dayprice { font-size: 10px; color: var(--text-faint); font-variant-numeric: tabular-nums; font-weight: var(--w-semibold); }

.cal-event {
  display: block; width: 100%; text-align: left;
  padding: 3px var(--s-2); border-radius: 4px;
  font-size: var(--t-micro); font-weight: var(--w-semibold);
  border-left: 2.5px solid var(--st-fg, var(--n-400));
  background: var(--st-bg, var(--n-100));
  color: var(--st-fg, var(--text-secondary));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.cal-event:hover { transform: translateX(1px); box-shadow: var(--sh-1); }
.cal-event__time { opacity: .72; font-weight: var(--w-medium); }
.cal-event--available { --st-fg: var(--st-available-fg); --st-bg: var(--st-available-bg); }
.cal-event--held      { --st-fg: var(--st-held-fg);      --st-bg: var(--st-held-bg); }
.cal-event--pending   { --st-fg: var(--st-pending-fg);   --st-bg: var(--st-pending-bg); }
.cal-event--confirmed { --st-fg: var(--st-confirmed-fg); --st-bg: var(--st-confirmed-bg); }
.cal-event--completed { --st-fg: var(--st-completed-fg); --st-bg: var(--st-completed-bg); }
.cal-event--cancelled { --st-fg: var(--st-cancelled-fg); --st-bg: var(--st-cancelled-bg); text-decoration: line-through; }
.cal-event--blocked   { --st-fg: var(--st-blocked-fg);   --st-bg: var(--st-blocked-bg); }
.cal-event--maintenance { --st-fg: var(--st-maint-fg);   --st-bg: var(--st-maint-bg); }
.cal-event--holiday   { --st-fg: var(--st-holiday-fg);   --st-bg: var(--st-holiday-bg); }
.cal__more { font-size: 10px; color: var(--text-muted); font-weight: var(--w-semibold); padding-left: var(--s-2); }

/* Week & day views use a time axis */
.cal-week { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); }
.cal-week__axis { border-right: 1px solid var(--border-subtle); }
.cal-week__hour {
  height: 52px; font-size: 10px; color: var(--text-faint);
  padding-right: var(--s-2); text-align: right;
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}
.cal-week__col { border-right: 1px solid var(--border-subtle); position: relative; }
.cal-week__cell { height: 52px; border-bottom: 1px solid var(--border-subtle); }
.cal-week__block {
  position: absolute; left: 3px; right: 3px;
  border-radius: var(--r-sm); padding: var(--s-2);
  font-size: var(--t-micro); font-weight: var(--w-semibold);
  background: var(--st-bg); color: var(--st-fg);
  border-left: 3px solid var(--st-fg); overflow: hidden;
}

/* Legend for calendar statuses */
.cal-legend { display: flex; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--border-subtle); background: var(--surface-2); }
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-caption); color: var(--text-secondary); }
.cal-legend__sw { width: 10px; height: 10px; border-radius: 3px; background: var(--st-bg); border-left: 2.5px solid var(--st-fg); }

@media (max-width: 899.98px) {
  .cal__day { min-height: 74px; padding: 4px; }
  .cal__dayprice { display: none; }
  .cal-event { font-size: 9px; padding: 2px 4px; }
  .cal__dow span { padding: var(--s-2) 4px; font-size: 9px; }
}
@media (max-width: 575.98px) {
  /* Mobile switches to an agenda list — a squeezed month grid is unusable */
  .cal--agenda-mobile .cal__dow, .cal--agenda-mobile .cal__grid { display: none; }
  .cal-agenda { display: block; }
}
.cal-agenda { display: none; }
.cal-agenda__day { padding: var(--s-4); border-bottom: 1px solid var(--border-subtle); }
.cal-agenda__date { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-3); }
.cal-agenda__dnum { font-size: var(--t-h3); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.cal-agenda__dname { font-size: var(--t-caption); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--w-bold); }
.cal-agenda__event {
  display: flex; gap: var(--s-3); width: 100%; text-align: left;
  padding: var(--s-3); border-radius: var(--r-md);
  background: var(--st-bg, var(--n-50)); border-left: 3px solid var(--st-fg, var(--n-400));
}
.cal-agenda__event + .cal-agenda__event { margin-top: var(--s-2); }
