/* weDance – design system. No framework, no external fonts. */

@layer reset, tokens, base, layout, components, utilities, print;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  table { border-collapse: collapse; }
  fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  legend { padding: 0; }
  /* components set display:flex etc. – the hidden attribute must still win */
  [hidden]:not([hidden="until-found"]) { display: none !important; }
}

@layer tokens {
  :root {
    color-scheme: light dark;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --bg: #f7f6fb;
    --surface: #ffffff;
    --surface-2: #f3f1f8;
    --surface-3: #ebe8f3;
    --border: #e6e2ef;
    --border-strong: #d3cde2;
    --text: #1d1a26;
    --text-2: #5b566b;
    --text-3: #8a8599;
    --accent: #6d28d9;
    --accent-hover: #5b21b6;
    --accent-soft: #f1ebff;
    --accent-text: #ffffff;
    --accent-ink: #5b21b6;
    --success: #15803d;
    --success-soft: #e7f6ec;
    --warning: #b45309;
    --warning-soft: #fdf3e2;
    --danger: #c42b3a;
    --danger-soft: #fdecee;
    --info: #1d4ed8;
    --info-soft: #e8efff;
    --focus: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);
    --shadow-sm: 0 1px 2px rgb(29 26 38 / .06);
    --shadow: 0 1px 2px rgb(29 26 38 / .05), 0 4px 16px rgb(29 26 38 / .06);
    --shadow-lg: 0 10px 40px rgb(29 26 38 / .18);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --sidebar: 252px;
    --gutter: clamp(16px, 3vw, 32px);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121018;
      --surface: #1a1722;
      --surface-2: #211d2b;
      --surface-3: #2a2536;
      --border: #2e2939;
      --border-strong: #3d3650;
      --text: #ece9f4;
      --text-2: #b4adc6;
      --text-3: #847d97;
      --accent: #8b5cf6;
      --accent-hover: #a78bfa;
      --accent-soft: #2a2042;
      --accent-ink: #c4b5fd;
      --success: #4ade80;
      --success-soft: #16301f;
      --warning: #fbbf24;
      --warning-soft: #33280f;
      --danger: #f87171;
      --danger-soft: #3a1a1f;
      --info: #93b4ff;
      --info-soft: #1a2440;
      --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
      --shadow-lg: 0 10px 40px rgb(0 0 0 / .5);
    }
  }
  :root[data-theme="dark"] {
    --bg: #121018; --surface: #1a1722; --surface-2: #211d2b; --surface-3: #2a2536;
    --border: #2e2939; --border-strong: #3d3650; --text: #ece9f4; --text-2: #b4adc6; --text-3: #847d97;
    --accent: #8b5cf6; --accent-hover: #a78bfa; --accent-soft: #2a2042; --accent-ink: #c4b5fd;
    --success: #4ade80; --success-soft: #16301f; --warning: #fbbf24; --warning-soft: #33280f;
    --danger: #f87171; --danger-soft: #3a1a1f; --info: #93b4ff; --info-soft: #1a2440;
  }
}

@layer base {
  body { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg); }
  a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a:hover { color: var(--accent); }
  h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
  h2 { font-size: 1.15rem; line-height: 1.3; font-weight: 620; }
  h3 { font-size: 1rem; font-weight: 620; }
  small, .small { font-size: .85rem; }
  code, kbd { font-family: var(--font-mono); font-size: .85em; }
  kbd { padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--text-2); }
  hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
  :focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
  ::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); }
  .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--accent-text); border-radius: var(--radius-sm); }
  .skip-link:focus { top: 12px; }
  .num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
}

/* ------------------------------------------------------------------ app shell */
@layer layout {
  .app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100dvh; }
  .sidebar {
    position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
    padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--border);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; color: var(--text); text-decoration: none; }
  .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-weight: 700; flex: none; overflow: hidden; }
  .brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
  .brand-text { display: flex; flex-direction: column; min-width: 0; }
  .brand-name { font-weight: 650; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { font-size: .75rem; color: var(--text-3); }
  .nav-search { margin: 0 4px 8px; }
  .nav-group { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
  .nav-label { padding: 8px 12px 4px; font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
  .nav-link {
    display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px;
    color: var(--text-2); text-decoration: none; font-weight: 500; position: relative;
  }
  .nav-link:hover { background: var(--surface-2); color: var(--text); }
  .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
  .nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
  .nav-button { border: 0; background: none; width: 100%; text-align: left; font: inherit; cursor: pointer; }
  .nav-count { margin-left: auto; font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
  .sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
  .user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
  .user-chip:hover { background: var(--surface-2); }
  .user-chip .meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .user-chip .meta span:last-child { font-size: .78rem; color: var(--text-3); }

  .main { min-width: 0; display: flex; flex-direction: column; }
  .nav-scrim { display: none; }
  .topbar { display: none; }
  .content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter) 64px; container-type: inline-size; }
  .banner { padding: 10px var(--gutter); font-size: .9rem; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
  .banner-warning { background: var(--warning-soft); color: var(--warning); }
  .banner-danger { background: var(--danger-soft); color: var(--danger); }
  .banner-info { background: var(--info-soft); color: var(--info); }

  @media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    .app[data-nav-open] .sidebar { transform: none; }
    .app[data-nav-open] .nav-scrim { display: block; }
    .nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgb(10 8 16 / .45); }
    .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
    .topbar .brand { padding: 0; }
    .content { padding-top: 20px; }
  }
}

/* ------------------------------------------------------------------ components */
@layer components {
  /* page header */
  .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .page-head .eyebrow { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-3); margin-bottom: 4px; }
  .page-head .eyebrow a { color: var(--text-3); text-decoration: none; }
  .page-head .eyebrow a:hover { color: var(--accent-ink); }
  .page-head p.lead { color: var(--text-2); margin-top: 4px; }
  .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

  /* buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 14px;
    border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text);
    font-weight: 560; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s;
  }
  .btn:hover { background: var(--surface-2); color: var(--text); }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
  .btn-danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 35%, var(--border)); }
  .btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
  .btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-sm { min-height: 30px; padding: 4px 10px; font-size: .84rem; border-radius: 7px; }
  .btn-icon { min-width: 34px; padding: 6px; }
  .btn-block { width: 100%; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
  .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
  form.inline { display: inline; }

  /* cards */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .card-head h2 { font-size: 1rem; }
  .card-body { padding: 20px; }
  .card-body.tight { padding: 8px 0; }
  .card-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .stack { display: flex; flex-direction: column; gap: 20px; }
  .grid { display: grid; gap: 20px; }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .split { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  @container (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

  /* stats */
  .stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
  .stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; display: block; }
  a.stat:hover { border-color: var(--border-strong); }
  .stat-label { font-size: .8rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
  .stat-value { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
  .stat-hint { font-size: .8rem; color: var(--text-2); }

  /* tables */
  .table-wrap { overflow-x: auto; }
  .table { width: 100%; font-size: .92rem; }
  .table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
  .table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .table tbody tr:last-child td { border-bottom: 0; }
  .table tbody tr:hover td { background: color-mix(in oklab, var(--surface-2) 70%, transparent); }
  .table .right, .table th.right { text-align: right; }
  .table .actions-cell { text-align: right; white-space: nowrap; }
  .table a.row-link { color: var(--text); font-weight: 560; text-decoration: none; }
  .table a.row-link:hover { color: var(--accent-ink); text-decoration: underline; }
  .table .sub { display: block; font-size: .8rem; color: var(--text-3); }
  .table th a { color: inherit; text-decoration: none; }
  .table th a[aria-sort] { color: var(--text); }
  tr.is-muted td { opacity: .6; }

  @container (max-width: 700px) {
    .table.responsive thead { display: none; }
    .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
    .table.responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .table.responsive td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .table.responsive td::before { content: attr(data-label); color: var(--text-3); font-size: .82rem; text-align: left; }
    .table.responsive td:first-child { font-size: 1rem; text-align: left; }
    .table.responsive td:first-child::before { content: none; }
    .table.responsive .actions-cell { justify-content: flex-end; padding-top: 8px; }
    .table.responsive .actions-cell::before { content: none; }
  }

  /* badges */
  .badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
  .badge-success { background: var(--success-soft); color: var(--success); }
  .badge-warning { background: var(--warning-soft); color: var(--warning); }
  .badge-danger { background: var(--danger-soft); color: var(--danger); }
  .badge-info { background: var(--info-soft); color: var(--info); }
  .badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
  .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--c, var(--accent)); flex: none; }
  button.badge { border: 0; cursor: pointer; }
  button.badge:hover { filter: brightness(.96); }

  /* forms */
  .form-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .form-grid > * { grid-column: span 12; }
  .form-grid > .span-6 { grid-column: span 6; }
  .form-grid > .span-4 { grid-column: span 4; }
  .form-grid > .span-3 { grid-column: span 3; }
  .form-grid > .span-8 { grid-column: span 8; }
  @container (max-width: 640px) { .form-grid > .span-6, .form-grid > .span-4, .form-grid > .span-3, .form-grid > .span-8 { grid-column: span 12; } }
  .form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
  .form-section h3 { margin-bottom: 4px; }
  .form-section > p { color: var(--text-2); font-size: .9rem; margin-bottom: 16px; }
  .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .field label, .label { font-size: .86rem; font-weight: 560; color: var(--text-2); }
  .field .req { color: var(--danger); }
  input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"],
  input[type="search"], input[type="tel"], input[type="url"], input[type="file"], select, textarea {
    width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px;
    background: var(--surface); color: var(--text); transition: border-color .12s, box-shadow .12s;
  }
  textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
  select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
  input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
  input[type="color"] { width: 56px; height: 40px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); }
  input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
  .field-hint { font-size: .8rem; color: var(--text-3); font-weight: 400; }
  .field-error { font-size: .82rem; color: var(--danger); }
  .field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
  .field-check label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; color: var(--text); padding-top: 1px; cursor: pointer; }
  .input-group { display: flex; gap: 8px; align-items: stretch; }
  .input-group > input { flex: 1; }
  .search-input { position: relative; }
  .search-input .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
  .search-input input { padding-left: 36px; }
  .search-input kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: .72rem; }

  /* toolbar */
  .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .toolbar .search-input { flex: 1 1 240px; max-width: 420px; }
  .segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
  .segmented a, .segmented button, .segmented label { padding: 5px 12px; border-radius: 7px; color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 550; border: 0; background: none; cursor: pointer; }
  .segmented a[aria-current="page"], .segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
  .segmented label { padding: 0; }
  .segmented label > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 5px 12px; border-radius: 7px; }
  .segmented input { position: absolute; opacity: 0; pointer-events: none; }

  /* tabs */
  .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
  .tabs a:hover { color: var(--text); }
  .tabs a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
  .tabs .count { font-size: .75rem; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }

  /* flash + toast */
  .flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid transparent; font-size: .93rem; }
  .flash-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in oklab, var(--success) 20%, transparent); }
  .flash-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 20%, transparent); }
  .flash-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in oklab, var(--warning) 20%, transparent); }
  .flash-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in oklab, var(--info) 20%, transparent); }
  .flash .icon { margin-top: 2px; }
  .toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
  .toast { padding: 12px 16px; border-radius: var(--radius); background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .18s ease-out; display: flex; gap: 10px; align-items: center; }
  .toast-error { background: var(--danger); color: #fff; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

  /* empty state */
  .empty { text-align: center; padding: 48px 24px; color: var(--text-2); }
  .empty > .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--text-3); stroke-width: 1.4; }
  .empty h3 { color: var(--text); margin-bottom: 4px; }
  .empty p { margin-bottom: 16px; }

  /* lists */
  .list { list-style: none; padding: 0; }
  .list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .list > li:last-child { border-bottom: 0; }
  .list .grow { flex: 1; min-width: 0; }
  .list .title { font-weight: 560; color: var(--text); text-decoration: none; }
  .list a.title:hover { color: var(--accent-ink); }
  .list .meta { font-size: .84rem; color: var(--text-3); }
  .date-tile { width: 46px; flex: none; text-align: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 0; line-height: 1.1; }
  .date-tile b { display: block; font-size: 1.05rem; }
  .date-tile span { font-size: .68rem; text-transform: uppercase; color: var(--text-3); letter-spacing: .04em; }
  .time-col { width: 56px; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
  .bar-color { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c, var(--accent)); flex: none; }

  /* definition lists */
  .facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .93rem; }
  .facts dt { color: var(--text-3); }
  .facts dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

  /* avatar */
  .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: .8rem; flex: none; overflow: hidden; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }

  /* progress */
  .capacity { display: flex; align-items: center; gap: 8px; min-width: 110px; }
  .capacity meter { width: 70px; height: 8px; }
  meter { appearance: none; border: 0; border-radius: 99px; background: var(--surface-3); }
  meter::-webkit-meter-bar { background: var(--surface-3); border: 0; border-radius: 99px; height: 8px; }
  meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 99px; }
  meter::-webkit-meter-suboptimum-value { background: var(--warning); border-radius: 99px; }
  meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 99px; }
  meter::-moz-meter-bar { background: var(--accent); border-radius: 99px; }

  /* dialog */
  dialog { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
  dialog::backdrop { background: rgb(10 8 16 / .5); backdrop-filter: blur(2px); }
  dialog[open] { animation: dialog-in .16s ease-out; }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
  .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .dialog-body { padding: 20px; overflow: auto; container-type: inline-size; }
  .dialog-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

  /* combobox */
  .combo { position: relative; }
  .combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
  .combo-list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
  .combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--accent-soft); color: var(--accent-ink); }
  .combo-list li small { color: var(--text-3); }
  .combo-selected { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); min-height: 40px; }
  .combo-selected button { margin-left: auto; }

  /* date chips editor */
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; font-variant-numeric: tabular-nums; }
  .chip button { border: 0; background: transparent; color: var(--text-3); padding: 0 2px; display: grid; place-items: center; border-radius: 50%; }
  .chip button:hover { color: var(--danger); }
  .chip.is-past { opacity: .55; }
  .dates-editor { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
  .dates-editor .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
  .dates-editor .row .field { flex: 1 1 140px; }
  .dates-editor .chips .chip { cursor: pointer; padding: 4px 10px; font: inherit; font-size: .85rem; color: inherit; }
  .dates-editor .chips .chip:hover { border-color: var(--accent); }
  .dates-editor .chips .chip.is-off { opacity: .55; text-decoration: line-through; background: transparent; border-style: dashed; }
  .dates-editor .chips .chip.is-holiday.is-off { background: var(--warning-soft); color: var(--warning); opacity: 1; }
  .dates-editor .segmented { align-self: flex-start; }

  /* calendar */
  .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--border); gap: 1px; }
  .week-day { background: var(--surface); min-height: 180px; display: flex; flex-direction: column; }
  .week-day header { padding: 8px 10px; font-size: .8rem; color: var(--text-3); display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .week-day header b { color: var(--text); font-size: .95rem; }
  .week-day.is-today header { background: var(--accent-soft); }
  .week-day.is-today header b { color: var(--accent-ink); }
  .week-day ul { list-style: none; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
  .cal-item { display: block; padding: 6px 8px; border-radius: 7px; background: color-mix(in oklab, var(--c, var(--accent)) 14%, var(--surface)); border-left: 3px solid var(--c, var(--accent)); color: var(--text); text-decoration: none; font-size: .8rem; line-height: 1.3; }
  .cal-item:hover { background: color-mix(in oklab, var(--c, var(--accent)) 22%, var(--surface)); color: var(--text); }
  .cal-item b { display: block; font-variant-numeric: tabular-nums; }
  .cal-item span { color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @container (max-width: 820px) {
    .week { grid-template-columns: minmax(0, 1fr); }
    .week-day { min-height: 0; }
    .week-day:not(:has(li)) ul::after { content: "–"; color: var(--text-3); padding: 0 6px; }
  }

  /* attendance grid */
  .attendance { overflow: auto; max-height: 75vh; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
  .attendance table { min-width: 100%; font-size: .88rem; }
  .attendance th, .attendance td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; text-align: center; }
  .attendance thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); padding: 8px 6px; font-weight: 600; white-space: nowrap; }
  .attendance th.name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 8px 12px; min-width: 180px; font-weight: 560; }
  .attendance thead th.name { z-index: 3; background: var(--surface-2); }
  .attendance td label { display: grid; place-items: center; width: 100%; height: 44px; min-width: 52px; cursor: pointer; }
  .attendance td input { width: 22px; height: 22px; }
  .attendance td.is-today, .attendance th.is-today { background: var(--accent-soft); }
  .attendance tfoot td { padding: 6px; font-weight: 600; background: var(--surface-2); }

  /* POS */
  .pos { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  @container (max-width: 900px) { .pos { grid-template-columns: minmax(0, 1fr); } }
  .pos-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .pos-item { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 84px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: left; font-weight: 600; box-shadow: var(--shadow-sm); }
  .pos-item:hover { border-color: var(--accent); }
  .pos-item:active { transform: scale(.98); }
  .pos-item span { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .pos-category { margin: 18px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
  .tab-list { display: flex; flex-direction: column; gap: 8px; }
  .tab-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .tab-card[aria-current="true"] { border-color: var(--accent); box-shadow: var(--focus); }
  .tab-card header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 8px; }
  .tab-card header button.select { all: unset; cursor: pointer; font-weight: 620; flex: 1; }
  .tab-card ul { list-style: none; padding: 0 14px 6px; font-size: .88rem; }
  .tab-card li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; }
  .tab-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }

  /* charts */
  .bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 8px 0 0; }
  .bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
  .bars .bar svg { width: 100%; max-width: 44px; flex: 1; }
  .bars .bar small { font-size: .72rem; color: var(--text-3); }
  .bar-paid { fill: var(--accent); }
  .bar-open { fill: color-mix(in oklab, var(--accent) 35%, var(--surface-3)); }
  .hbars { display: flex; flex-direction: column; gap: 10px; }
  .hbar { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
  .hbar svg { width: 100%; height: 10px; }
  .hbar rect.track { fill: var(--surface-3); }
  .hbar rect.value { fill: var(--accent); }
  .legend { display: flex; gap: 16px; font-size: .82rem; color: var(--text-2); }
  .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .legend .paid { background: var(--accent); }
  .legend .open { background: color-mix(in oklab, var(--accent) 35%, var(--surface-3)); }

  /* pagination */
  .pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }

  /* placeholder palette */

  /* misc additions */
  details.card > summary { list-style: none; cursor: pointer; }
  details.card > summary::-webkit-details-marker { display: none; }
  details.card:not([open]) > summary { border-bottom: 0; }
  details.card[open] > summary .faint { visibility: hidden; }
  .center-block { margin-inline: auto; }
  .input-group .prefix { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); white-space: nowrap; }
  .plan-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-2); margin-top: 12px; }
  .plan-features li { display: flex; gap: 8px; align-items: flex-start; }
  .plan-features .icon { color: var(--success); width: 16px; height: 16px; margin-top: 2px; }
  .logo-preview { max-height: 90px; max-width: 100%; object-fit: contain; align-self: flex-start; padding: 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: #fff; }
  .dates-editor label.field { font-size: .86rem; font-weight: 560; color: var(--text-2); }
  .dates-editor label.field input { font-weight: 400; color: var(--text); }
  @container (max-width: 560px) {
    .list > li { flex-wrap: wrap; row-gap: 8px; }
    .list > li .capacity { display: none; }
    .list > li > .grow { flex-basis: 40%; }
  }
  .embed-body { background: transparent; }
  fieldset.field { border: 0; padding: 0; margin: 0; }
  fieldset.field label.badge { cursor: pointer; padding: 6px 12px; }
  .table tr[hidden], .list li[hidden] { display: none; }

  .palette { display: flex; flex-wrap: wrap; gap: 6px; }
  .palette button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-2); }
  .palette button:hover { border-color: var(--accent); color: var(--accent-ink); }

  /* auth + platform */
  .auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background:
      radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, #7c3aed 16%, transparent), transparent 60%),
      radial-gradient(900px 500px at 110% 110%, color-mix(in oklab, #db2777 12%, transparent), transparent 60%), var(--bg); }
  .auth-card { width: min(420px, 100%); container-type: inline-size; }
  .auth-card .card-body { padding: 28px; }
  .auth-head { text-align: center; margin-bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .auth-head .brand-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
  .auth-head img.logo { max-height: 64px; max-width: 220px; object-fit: contain; }
  .auth-head p { color: var(--text-2); }
  .auth-foot { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--text-3); }
  .auth-foot a { color: var(--text-2); }
  .platform { max-width: 1080px; margin: 0 auto; padding: 32px var(--gutter) 64px; container-type: inline-size; }
  .platform-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 40px; }
  .hero { text-align: center; margin-bottom: 36px; }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .hero p { color: var(--text-2); font-size: 1.05rem; max-width: 620px; margin: 10px auto 0; }
  .plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-bottom: 32px; }
  .plan { position: relative; display: block; cursor: pointer; }
  .plan input { position: absolute; opacity: 0; }
  .plan .card { height: 100%; padding: 20px; transition: border-color .12s, box-shadow .12s; }
  .plan input:checked + .card { border-color: var(--accent); box-shadow: var(--focus); }
  .plan input:focus-visible + .card { box-shadow: var(--focus); }
  .plan .price { font-size: 1.8rem; font-weight: 700; margin: 8px 0 2px; }
  .plan ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-2); margin-top: 14px; }
  .plan li { display: flex; gap: 8px; align-items: flex-start; }
  .plan li .icon { color: var(--success); width: 16px; height: 16px; margin-top: 2px; }
  .plan .badge { position: absolute; top: -10px; right: 16px; }
  .slug-preview { font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); }
  .status-ok { color: var(--success); }
  .status-bad { color: var(--danger); }
  .spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* embed */
  .embed { padding: 16px; container-type: inline-size; background: transparent; }
  .embed .course { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
  .embed .course:last-child { border-bottom: 0; }
  .embed .course .btn { margin-top: 8px; }

  /* offers (admin) */
  .offer-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
  .offer-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .offer-card h2 { font-size: 1.05rem; }

  /* public booking */
  .pub { max-width: 1040px; margin: 0 auto; padding: 24px var(--gutter) 64px; container-type: inline-size; }
  .pub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: inherit; text-decoration: none; }
  .pub-head img.logo { max-height: 52px; max-width: 200px; object-fit: contain; }
  .pub-head .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
  .pub-head h1 { font-size: 1.2rem; }
  .pub-head p { color: var(--text-2); font-size: .9rem; }
  .pub-foot { margin-top: 40px; font-size: .85rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .pub-foot a { color: var(--text-2); }
  .pub h2.section { font-size: 1.1rem; margin: 28px 0 12px; }
  .offer { margin-bottom: 18px; overflow: hidden; }
  .offer-head { padding: 18px 20px 8px; display: flex; gap: 8px 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
  .offer-head h3 { font-size: 1.1rem; }
  .offer-desc { padding: 0 20px 14px; color: var(--text-2); font-size: .93rem; }
  .offer .list { border-top: 1px solid var(--border); }
  .price-tag { text-align: right; line-height: 1.3; }
  .price-tag b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .price-tag span { display: block; font-size: .8rem; color: var(--text-3); }
  .run-when { font-weight: 560; }
  .summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .93rem; }
  .summary .total { font-weight: 650; font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: 8px; }
  .pay-hint { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--text-2); }
  .pay-hint .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
  .result { text-align: center; padding: 40px 24px; }
  .result > .icon { width: 48px; height: 48px; margin: 0 auto 14px; }
  .result h2 { font-size: 1.35rem; margin-bottom: 6px; }
  .result p { color: var(--text-2); max-width: 520px; margin: 0 auto; }
  .contract-forms { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; }
  .contract-forms form { align-items: center; }
  .contract-forms select, .contract-forms input[type="date"] { width: auto; flex: 1 1 150px; min-width: 0; }
  .contract-label { flex-basis: 100%; font-size: .8rem; font-weight: 600; color: var(--text-2); }
  .mail-preview { white-space: pre-wrap; font: inherit; font-size: .95rem; line-height: 1.6; margin: 0; }
  progress { width: 100%; height: 10px; accent-color: var(--accent); }
  details.cancel-date { position: relative; }
  details.cancel-date > summary { list-style: none; }
  details.cancel-date > summary::-webkit-details-marker { display: none; }
  details.cancel-date[open] > summary { background: var(--surface-3); }
  .cancel-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: min(340px, 86vw); padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
  .date-tile.is-cancelled { background: var(--danger-soft); color: var(--danger); }
  /* attendance: tablet roll call + today */
  .roll-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
  .roll-head .search-input { flex: 1 1 220px; }
  .roll-count { font-size: 1.05rem; margin-left: auto; }
  .roll-count b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
  .roll { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .roll-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .12s, border-color .12s; }
  .roll-item input { position: absolute; opacity: 0; pointer-events: none; }
  .roll-item .avatar { width: 40px; height: 40px; flex: none; }
  .roll-name { flex: 1; font-weight: 560; font-size: 1.02rem; }
  .roll-state { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; flex: none; }
  .roll-state .icon { width: 18px; height: 18px; }
  .roll-item:has(input:checked) { background: var(--success-soft); border-color: color-mix(in oklab, var(--success) 40%, transparent); }
  .roll-item:has(input:checked) .roll-state { background: var(--success); border-color: var(--success); color: #fff; }
  .roll-item:has(input:focus-visible) { box-shadow: var(--focus); }
  .roll-item:has(input:disabled) { opacity: .6; }
  .today-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-height: 140px; }
  .today-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .today-card.is-now { border-color: var(--success); }
  .today-card.is-past { opacity: .65; }
  .today-card h2 { font-size: 1.15rem; }
  .today-time { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
  .today-count { margin-top: auto; display: flex; align-items: center; gap: 6px; font-weight: 560; }
  /* onboarding */
  .onboarding .card-head { align-items: flex-start; }
  .onboarding-bar { display: block; width: auto; margin: 0 20px; height: 8px; }
  .steps { list-style: none; padding: 8px 0; margin: 0; }
  .step { display: flex; gap: 14px; align-items: center; padding: 12px 20px; }
  .step + .step { border-top: 1px solid var(--border); }
  .step-body { flex: 1; min-width: 0; }
  .step .title { font-weight: 600; }
  .step p { margin-top: 2px; }
  .step-no { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--surface-3); color: var(--text-2); }
  .step-no .icon { width: 16px; height: 16px; }
  .step.is-done .step-no { background: var(--success-soft); color: var(--success); }
  .step.is-done .title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--border-strong); }
  .step.is-next { background: var(--accent-soft); }
  .step.is-next .step-no { background: var(--accent); color: #fff; }
  @media (max-width: 640px) {
    .step { flex-wrap: wrap; align-items: flex-start; padding: 12px 16px; }
    .step-body { flex-basis: calc(100% - 44px); }
    .step > .btn, .onboarding-hint > .btn { margin-left: 44px; }
    .onboarding-hint { flex-wrap: wrap; }
  }
  .onboarding-hint { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent); }
  .onboarding-hint .step-no { background: var(--accent); color: #fff; }
  .onboarding-hint .eyebrow { margin: 0; font-size: .75rem; }
  .onboarding-hint .title { font-weight: 650; }
  .onboarding-strip { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 8px 8px 16px; margin-bottom: 18px; border-radius: 12px; border: 1px dashed var(--border-strong); background: var(--surface); }

  /* guided tour */
  .tour { position: fixed; inset: 0; z-index: 1000; }
  .tour.is-center { background: rgb(15 10 30 / .55); }
  .tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(15 10 30 / .55), 0 0 0 3px var(--accent); transition: all .25s ease; pointer-events: none; }
  .tour-pop { position: fixed; width: min(360px, calc(100vw - 32px)); padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
  .tour-pop h2 { font-size: 1.05rem; margin-bottom: 6px; }
  .tour-pop p { color: var(--text-2); font-size: .95rem; }
  .tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
  .tour-foot .count { color: var(--text-3); font-size: .85rem; margin-right: auto; }
  .icon-link { display: inline-flex; align-items: center; gap: 6px; }
  .icon-link .icon { width: 16px; height: 16px; }
  .sepa-box { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
  .chip.is-cancelled { text-decoration: line-through; color: var(--danger); background: var(--danger-soft); }
  .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
}

@layer utilities {
  .muted { color: var(--text-2); }
  .faint { color: var(--text-3); }
  .danger { color: var(--danger); }
  .warning { color: var(--warning); }
  .success { color: var(--success); }
  .center { text-align: center; }
  .right { text-align: right; }
  .nowrap { white-space: nowrap; }
  .mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
  .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
  .gap-1 { gap: 8px; }
  .flex { display: flex; align-items: center; gap: 8px; }
  .flex-wrap { flex-wrap: wrap; }
  .between { justify-content: space-between; }
  .grow { flex: 1; min-width: 0; }
  .w-full { width: 100%; }
  .hidden { display: none !important; }
  .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .only-print { display: none; }
}

@layer print {
  @media print {
    :root { color-scheme: light; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .sidebar, .topbar, .actions, .no-print, .toasts, .tabs, .banner, .btn { display: none !important; }
    .app { display: block; }
    .content { max-width: none; padding: 0; }
    .card { border: 0; box-shadow: none; }
    .only-print { display: block; }
    .table th { position: static; }
    .print-sheet { font-size: 10pt; }
    .print-sheet table { width: 100%; border-collapse: collapse; }
    .print-sheet th, .print-sheet td { border: 1px solid #999; padding: 4px 6px; }
    a { color: #000; text-decoration: none; }
  }
}
