/* Colours follow the Journey Builder design system (Travelheart Family 2026 brand guide):
   Sand canvas, Travelheart green in front, peach for warnings. One light theme, no dark variant.
   Green is the functional primary (buttons, links, focus, active states). The brand family a
   page is about only tints identity surfaces through --accent*, which app.js sets. */
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/DMSans-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Travelheart'; src: url('assets/fonts/Travelheart.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: only light;

  /* Same faces as the Journey Builder: DM Sans for text, Travelheart for the wordmark and big figures. */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Travelheart', 'DM Sans', Georgia, serif;

  --brand: #00534a;
  --brand-strong: #013c35;
  --brand-hover: #014b43;
  --brand-ink: #ffffff;
  --brand-soft: rgba(0, 83, 74, .08);
  --brand-tint: #e7efed;
  --brand-ring: rgba(0, 83, 74, .18);
  --aqua: #aae3d2;
  --peach: #f09a7a;

  --accent: #00534a;
  --accent-strong: #013c35;
  --accent-soft: rgba(0, 83, 74, .12);

  --bg: #f2ebe6;
  --bg-grad: radial-gradient(1100px 540px at 100% -8%, rgba(170, 227, 210, .22) 0%, transparent 60%),
             radial-gradient(980px 520px at -8% 108%, rgba(0, 83, 74, .05) 0%, transparent 58%);
  --surface: #ffffff;
  --surface-2: #f6f1e9;
  --surface-3: #ece5da;
  --border: #e7e0d4;
  --border-strong: #d8cfc1;
  --text: #122019;
  --text-2: #34423c;
  --muted: #5c6b65;

  --success: #0c8a5c;
  --success-bg: rgba(12, 138, 92, .12);
  --warn: #b15a1e;
  --warn-ink: #b15a1e;
  --warn-bg: rgba(240, 154, 122, .20);
  --danger: #c5453b;
  --danger-bg: rgba(197, 69, 59, .12);
  --purple: #6f5bd0;
  --purple-soft: rgba(111, 91, 208, .12);

  --shadow-sm: 0 1px 2px rgba(78, 56, 40, .05), 0 2px 6px rgba(78, 56, 40, .04);
  --shadow: 0 1px 2px rgba(78, 56, 40, .05), 0 6px 20px rgba(78, 56, 40, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3 { margin: 0; letter-spacing: -.01em; color: var(--brand); }
a { color: var(--brand); }
::selection { background: var(--accent-soft); }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 16px; }
p { margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  transition: background .25s;
}

.monogram {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--m-bg, var(--brand));
  color: var(--m-ink, var(--brand-ink));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.monogram-lg { width: 56px; height: 56px; font-size: 19px; }

.switcher { position: relative; }

.switcher-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  max-width: 320px;
}

.switcher-button:hover { border-color: var(--accent); }

.switcher-text { display: grid; text-align: left; min-width: 0; line-height: 1.2; }
.switcher-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.switcher-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { color: var(--muted); flex: none; }

.switcher-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.switcher-list { overflow: auto; }

.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.group-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--m-bg); }

.agency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.agency-option:hover, .agency-option:focus-visible { background: var(--surface-2); outline: none; }
.agency-option[aria-current="true"] { background: var(--brand-soft); }
.agency-option .monogram { width: 28px; height: 28px; font-size: 11px; }
.agency-option-text { display: grid; min-width: 0; line-height: 1.25; }
.agency-option-name { font-weight: 550; }
.agency-option-meta { font-size: 12px; color: var(--muted); }
.agency-option .check { margin-left: auto; color: var(--brand); }

.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder { color: #8a958f; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.button:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.button:focus-visible, .link-button:focus-visible, .tab:focus-visible, .category:focus-visible, .payment-link:focus-visible, summary:focus-visible, .chip-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.button-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.button-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button.is-busy:disabled { cursor: progress; }
.button.is-busy svg { animation: spin 1s linear infinite; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; }

.state { display: grid; place-items: center; gap: 12px; padding: 80px 0; color: var(--muted); }

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.picker-head { max-width: 560px; margin-bottom: 24px; }
.picker-head p { margin-top: 8px; color: var(--muted); }

.picker-group { margin-bottom: 28px; }
.picker-group .group-label { padding: 0 0 10px; }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.picker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.picker-card:hover, .picker-card:focus-visible {
  border-color: var(--m-bg);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}

.brand-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.brand-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); }
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: 14px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.campaign {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.campaign.is-missing {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}

.campaign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.campaign-head > div { display: grid; gap: 2px; max-width: 640px; }
.campaign-fields { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.campaign-fields .field { min-width: 120px; }
.campaign-actions { display: flex; gap: 8px; }

.campaign-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.campaign.is-missing .campaign-status {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value-sm { font-size: 16px; font-weight: 600; padding-top: 6px; }
.stat-label { font-size: 13px; color: var(--muted); }

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty p { max-width: 460px; color: var(--muted); }
.empty .button { margin-top: 8px; }
.empty-art { color: var(--brand); opacity: .8; }

.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.catalog > * { min-width: 0; }

.categories, .products {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.categories { position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.categories-head { padding: 14px 16px 8px; }
.category-list { overflow: auto; padding: 0 8px 8px; }

.category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category:hover { background: var(--surface-2); }
.category[aria-current="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.category-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.count {
  flex: none;
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.category[aria-current="true"] .count { background: var(--brand); color: var(--brand-ink); }

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.products-head p { font-size: 13px; margin-top: 2px; }
.search { max-width: 280px; }

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; }

.table th {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.product-name { font-weight: 550; }

.code {
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}

.none { color: var(--muted); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.no-results { padding: 32px 16px; text-align: center; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.toast { background: var(--brand-strong); color: #fff; }
.toast.is-error { background: var(--danger); color: #fff; }

.topbar { justify-content: flex-start; }
.switcher { margin-left: auto; }

.tabs { display: flex; gap: 4px; margin-left: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-current="page"] { color: var(--brand); background: var(--brand-tint); font-weight: 700; }

.umbrella-icon { flex: none; color: var(--brand); }

.category-main { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 2px; }
.category-main .category-name { max-width: 100%; }
.category .umbrella-icon + .count { margin-left: 6px; }

.discount-tag {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.umbrella-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
}

.page-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div { flex: 1 1 420px; min-width: 0; }
.page-head p { max-width: 680px; margin-top: 6px; }

.create-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field { display: grid; gap: 6px; min-width: 200px; }
.field-grow { flex: 1; min-width: 240px; }
.field label { font-size: 13px; font-weight: 600; }
.field-caption { font-size: 13px; font-weight: 600; }

.warning-box {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  font-size: 14px;
}

.umbrella-list { display: grid; gap: 16px; }

.umbrella-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.umbrella-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.umbrella-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.umbrella-title h2 { font-size: 18px; }
.umbrella-id { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.umbrella-description { margin-top: 4px; color: var(--muted); font-size: 14px; }

.coverage { display: grid; gap: 6px; min-width: 180px; }
.coverage-text { font-size: 13px; color: var(--muted); text-align: right; }
.coverage-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.coverage-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.umbrella-actions { display: flex; gap: 8px; }
.button-sm { padding: 6px 12px; font-size: 13px; }
.button-danger { color: var(--danger); }
.button-danger:hover { border-color: var(--danger); }

.edit-row { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.edit-row .input { flex: 1; min-width: 200px; }

.mapping-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.mapping-group { padding: 12px 16px 16px; border-right: 1px solid var(--border); }
.mapping-group:last-child { border-right: 0; }
.mapping-group .group-label { padding: 0 0 8px; }

.mapping {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.mapping:first-of-type { border-top: 0; }
.mapping .monogram { width: 26px; height: 26px; font-size: 10px; }
.mapping-text { display: grid; min-width: 0; line-height: 1.25; }
.mapping-agency { font-weight: 550; font-size: 14px; }
.mapping-category { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mapping-category.is-mapped { color: var(--text); }
.mapping-actions { margin-left: auto; display: flex; gap: 2px; flex: none; }
.link-button { font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.link-button:hover { background: var(--brand-soft); }
.link-button.is-muted { color: var(--muted); }
.mapping { align-items: flex-start; }
.mapping .monogram { margin-top: 2px; }
.mapping-actions { padding-top: 1px; }
.mapping-text { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.mapping-group { min-width: 0; }
.mapping-discount { font-weight: 600; color: var(--success); }
.mapping-warning { color: var(--danger); font-weight: 600; }
.mapping-select { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; margin-top: 6px; }
.mapping-select select { flex: 1; min-width: 0; width: 100%; max-width: 100%; text-overflow: ellipsis; padding: 6px 8px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.discount-badge.is-none { background: var(--surface-2); color: var(--muted); font-weight: 600; }

.discount-editor {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}

.discount-editor .field { min-width: 0; }

.discount-editor-tiers { display: grid; gap: 10px; align-items: stretch; }
.discount-editor-head { display: grid; gap: 2px; }
.discount-editor-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tier-row {
  display: grid;
  grid-template-columns: 70px auto auto;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.tier-name { font-weight: 650; font-size: 14px; }

@media (max-width: 560px) {
  .tier-row { grid-template-columns: 1fr; gap: 6px; }
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.segmented label {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--brand); color: var(--brand-ink); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }

.amount-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.amount-input:focus-within { border-color: var(--brand); }
.amount-input input { width: 96px; padding: 8px 10px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.amount-input input:focus { outline: none; }
.amount-input span { padding: 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; border-left: 1px solid var(--border); align-self: stretch; display: grid; place-items: center; background: var(--surface-2); }
.amount-row { display: flex; gap: 8px; flex-wrap: wrap; }
.discount-hint { font-size: 12px; color: var(--muted); }

.rules-at {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rules-at-result {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.rules-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rules-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.rules-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.rules-table tr:last-child td { border-bottom: 0; }

.history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--kind, var(--border));
  border-radius: 10px;
  background: var(--surface);
}

.timeline-item[data-kind="Added"] { --kind: var(--success); }
.timeline-item[data-kind="Changed"] { --kind: var(--brand); }
.timeline-item[data-kind="Removed"] { --kind: var(--danger); }

.timeline-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-body { display: grid; gap: 4px; min-width: 0; }
.timeline-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.timeline-values { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.timeline-values .after { color: var(--text); font-weight: 600; }
.timeline-values .before { text-decoration: line-through; }

.kind-badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: color-mix(in srgb, var(--kind) 15%, transparent);
  color: var(--kind);
}

@media (max-width: 760px) {
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .tabs { order: 3; width: 100%; margin: 4px 0 0; }
  .topbar { flex-wrap: wrap; }
  .coverage { min-width: 0; width: 100%; }
  .coverage-text { text-align: left; }
  .mapping-group { border-right: 0; border-top: 1px solid var(--border); }

  .topbar { padding: 10px 16px; }
  .wordmark span:last-child { display: none; }
  main { padding: 20px 16px 48px; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .categories { position: static; max-height: none; }
  .category-list { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 12px; }
  .category { width: auto; flex: none; border: 1px solid var(--border); }
  .col-category { display: none; }
  .search { max-width: none; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-value { font-size: 20px; }
  .hero-actions, .hero-actions .button { width: 100%; }
}

.page-head > .button { align-self: flex-start; flex: none; }

.benefit-form, .benefit-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.benefit-form-grid { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.benefit-form-grid select.input { min-width: 180px; }
.benefit-form-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-basis: 100%; }
.discount-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.benefit-card h2 { display: flex; align-items: center; gap: 8px; }
.benefit-rows td { vertical-align: top; }
.benefit-rows tr.is-history td { color: var(--muted); }
.benefit-rows .row-actions { white-space: nowrap; text-align: right; }
.benefit-action-row td { background: var(--surface-2); }
.benefit-action { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

.status-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status-active { background: var(--success-bg); color: var(--success); }
.status-upcoming { background: var(--purple-soft); color: var(--purple); }
.status-existingmembersonly { background: var(--warn-bg); color: var(--warn-ink); }

.benefit-box { background: var(--brand-soft); }
.benefit-box a { color: var(--brand-strong); font-weight: 600; }

.mapping-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.mapping-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.mapping-chip.is-missing { color: var(--danger); }
.chip-remove { border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 6px; }
.chip-remove:hover { color: var(--danger); }

.member-card { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 14px; }
.member-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tier-badge { padding: 4px 12px; border-radius: 999px; font-weight: 750; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.tier-badge.tier-friend { background: var(--brand-soft); color: var(--brand-strong); }
.tier-badge.tier-family { background: var(--brand); color: var(--brand-ink); }
.member-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.member-facts div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.member-facts dt { font-size: 12px; color: var(--muted); }
.member-facts dd { margin: 2px 0 0; font-weight: 650; }
.member-section { margin: 6px 0 8px; font-size: 14px; }
.member-brands { display: grid; gap: 12px; }
.member-brand { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.member-brand-head { display: flex; align-items: center; gap: 10px; }
.member-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

#heroBrand { min-width: 200px; }
.booking-card { gap: 10px; }
.booking-title { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.booking-totals { display: grid; gap: 2px; text-align: right; font-size: 13px; }
.loyalty-total { color: var(--success); }
.rules-table tr.is-loyalty td { background: color-mix(in srgb, var(--success) 8%, transparent); }
.rules-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.campaign-panel { display: grid; gap: 10px; }
.campaign-row { display: grid; grid-template-columns: 150px 130px minmax(130px, 1fr) minmax(220px, 2fr) 64px 84px; gap: 8px; align-items: center; }
.campaign-unset { justify-self: start; background: var(--danger-bg); color: var(--danger); }
.campaign-row .mapping-warning { grid-column: 2 / -1; }
.campaign-brand { font-weight: 650; }
@media (max-width: 900px) { .campaign-row { grid-template-columns: 1fr 1fr; } }

.plan-form { display: grid; gap: 14px; }
.plan-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-choice { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; position: relative; }
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice:hover { border-color: var(--muted); }
.plan-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.plan-choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-title { font-weight: 650; }
.plan-text { font-size: .88em; opacity: .75; }
.plan-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.plan-fields [hidden] { display: none; }
.plan-preview { display: grid; gap: 3px; margin: 0; padding: 10px 14px; border-left: 3px solid var(--brand); border-radius: 6px; background: var(--brand-tint); }
.plan-preview-label { font-size: .75em; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.benefit-rows tr.is-continued td { border-top-style: dashed; }
@media (max-width: 760px) { .plan-choices { grid-template-columns: 1fr; } }

.booking-accordions { display: grid; gap: 8px; }
.booking-accordion { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.booking-accordion > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; cursor: pointer; list-style: none; }
.booking-accordion > summary::-webkit-details-marker { display: none; }
.booking-accordion > summary::before { content: '\25B8'; opacity: .6; transition: transform .15s; }
.booking-accordion[open] > summary::before { transform: rotate(90deg); }
.booking-summary-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; flex: 1; }
.booking-accordion-body { display: grid; gap: 8px; padding: 0 16px 14px; }

.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.tier-card { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.tier-value { color: var(--brand); }
.tier-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-name { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.tier-card-status { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tier-value { font-size: 24px; font-weight: 750; line-height: 1.2; }
.tier-who { font-weight: 550; }
.tier-meta { font-size: 13px; color: var(--muted); }
.campaign-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); opacity: .85; white-space: nowrap; }
.campaign-chip.is-missing { border-color: currentColor; color: var(--danger); background: var(--danger-bg); opacity: 1; font-weight: 700; }
.campaign-chip.is-partial { border-color: currentColor; color: var(--warn-ink); background: var(--warn-bg); opacity: 1; font-weight: 700; }
.tier-older { margin-top: 4px; }
.tier-older > summary { cursor: pointer; font-size: 13px; opacity: .8; }
.tier-older ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tier-older li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--border) 35%, transparent); font-size: 13px; }
.tier-older li.is-ended { opacity: .6; }
.tier-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.tier-card-actions .button[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.benefit-action-panel { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--surface, transparent); border: 1px solid var(--border); }
.benefit-card .tier-cards:has(.benefit-action-panel) { grid-template-columns: 1fr; }

.ended-banner { display: grid; gap: 2px; margin-bottom: 14px; padding: 12px 16px; border-radius: 10px; border: 1px dashed var(--border); background: color-mix(in srgb, var(--border) 25%, transparent); }
.ended-banner span { opacity: .75; font-size: 14px; }
.benefit-card.is-ended-view { opacity: .85; }
.ended-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ended-list li { display: grid; grid-template-columns: 80px minmax(120px, auto) 1fr auto; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.ended-when { opacity: .65; white-space: nowrap; }
@media (max-width: 760px) { .ended-list li { grid-template-columns: 1fr 1fr; } }

.tier-badge.tier-household { background: var(--purple); color: #fff; }
.tier-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.tier-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tier-pill.tier-friend { background: rgba(170, 227, 210, .45); color: var(--brand); }
.tier-pill.tier-family { background: var(--warn-bg); color: var(--warn-ink); }
.tier-card.tier-accent-friend { border-top: 3px solid var(--aqua); }
.tier-card.tier-accent-family { border-top: 3px solid var(--peach); }
.covered-passengers { display: grid; gap: 6px; margin: 6px 0 10px; }
.covered-passengers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.covered-passengers li { display: inline-flex; gap: 8px; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }

.companion-edit-row td { background: var(--surface-2); }
.companion-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }

.member-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
div.companion-edit-row { padding: 12px; border-radius: 10px; background: var(--surface-2); margin: 8px 0; }
.check-field { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 8px; white-space: nowrap; }

.member-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.member-summary li { display: grid; gap: 2px; font-weight: 600; }
.member-summary .muted { font-size: 12px; font-weight: 500; }
.member-panel { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.member-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.member-panel-head h3 { margin: 0; font-size: 15px; }
.member-panel-head h3 .muted { font-weight: 500; font-size: 13px; margin-left: 6px; }
.soft-note { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text-2); background: var(--warn-bg); border-left: 3px solid var(--peach); }
.benefit-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.benefit-lines li { display: grid; grid-template-columns: minmax(120px, 220px) auto 1fr; gap: 12px; align-items: baseline; padding: 6px 0; }
.companion-list { list-style: none; margin: 0; padding: 0; display: grid; }
.companion-item { display: grid; grid-template-columns: minmax(180px, 1.2fr) 1fr auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.companion-item:last-child { border-bottom: 0; }
.companion-item > .companion-edit-row { grid-column: 1 / -1; }
.companion-main { display: grid; gap: 2px; }
.companion-main .muted { font-size: 13px; }
.companion-status { font-size: 13px; font-weight: 600; }
.companion-status.is-in { color: var(--purple); }
.companion-status.is-out { color: var(--muted); font-weight: 500; }
.companion-actions { display: flex; gap: 14px; justify-content: flex-end; }
.member-history { padding-top: 14px; border-top: 1px solid var(--border); }
.member-history > summary { cursor: pointer; font-weight: 650; font-size: 15px; margin-bottom: 8px; }
@media (max-width: 700px) { .companion-item { grid-template-columns: 1fr; } .companion-actions { justify-content: flex-start; } }
.locked-readonly { display: inline-block; padding: 8px 0; font-weight: 600; opacity: .8; }

.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--warn-bg); color: var(--warn-ink); }
.tab-count[hidden] { display: none; }
.tab-count.is-overdue { background: var(--danger); color: #fff; }

.payment-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.payment-summary:empty { display: none; }
.payment-stat { --tone: var(--success); padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border)); background: color-mix(in srgb, var(--tone) 8%, var(--surface)); display: grid; gap: 2px; }
.payment-stat strong { font-size: 26px; line-height: 1; color: var(--tone); }
.payment-stat span { font-size: 13px; color: var(--muted); }

.payment-row { --tone: var(--success); display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--border); border-left: 6px solid var(--tone); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.payment-stat.is-soon, .payment-row.is-soon { --tone: var(--warn); }
.payment-stat.is-overdue, .payment-row.is-overdue { --tone: var(--danger); }
.payment-countdown { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone); text-align: center; }
.payment-countdown strong { font-size: 17px; }
.payment-countdown span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.payment-main { display: grid; gap: 4px; min-width: 0; }
.payment-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-name { font-weight: 700; font-size: 16px; }
.payment-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.payment-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.payment-track span { display: block; height: 100%; background: var(--tone); border-radius: inherit; }
.payment-actions { display: flex; flex-direction: column; gap: 6px; }
.payment-link { border: 0; padding: 0; background: none; color: var(--brand-strong); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) {
  .payment-row { grid-template-columns: 1fr; }
  .payment-actions { flex-direction: row; flex-wrap: wrap; }
}

.companion-status.is-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lock-pill, .unlock-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lock-pill { background: var(--danger); color: #fff; }
.unlock-pill { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); }
.lock-why { flex-basis: 100%; font-size: 12px; font-weight: 500; color: var(--muted); }

.login-card { width: min(420px, 100%); margin: 8vh auto 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; text-align: left; }
.login-card h1 { margin: 0; font-size: 24px; }
.login-card p { margin: 0; }
.login-error { color: var(--danger); font-weight: 600; }

.member-list-panel { margin-top: 28px; display: grid; gap: 12px; }
.member-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.member-list-head h2 { margin: 0; }
.member-list-search { width: min(340px, 100%); }
.member-list-tiers { justify-self: start; }
.segment-count { margin-left: 4px; font-weight: 700; opacity: .7; }
.member-table .member-row { cursor: pointer; }
.member-table .member-row:hover, .member-table .member-row:focus { background: var(--surface-2); outline: none; }
.member-list-paging { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tier-badge.tier-none { background: var(--surface-2); color: var(--muted); }
.segmented .segment { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segmented .segment.is-active { background: var(--brand); color: var(--brand-ink); }
.segmented .segment:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Cards sit on the Sand canvas with the Journey Builder's soft shadow. */
.categories, .products, .umbrella-card, .benefit-form, .benefit-card, .rules-at, .rules-at-result, .create-form, .stat, .timeline-item, .picker-card { box-shadow: var(--shadow-sm); }

/* Page furniture */
.page-hint { font-size: 13px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.form-title { display: grid; gap: 2px; }
.form-title h2 { font-size: 18px; }
.benefit-form { border-top: 4px solid var(--brand); }

.how-it-works { margin-top: 8px; max-width: 680px; font-size: 14px; }
.how-it-works > summary { display: inline-block; padding: 2px 4px; margin-left: -4px; border-radius: 6px; color: var(--brand); font-weight: 600; cursor: pointer; }
.how-it-works > summary:hover { text-decoration: underline; }
.how-it-works ol { margin: 8px 0 0; padding: 12px 16px 12px 34px; display: grid; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-2); }

/* Tourpaq discounts: one labelled row per brand */
.campaign-row-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 4px; }
.campaign-row .button { justify-self: start; }
@media (max-width: 900px) {
  .campaign-row-head { display: none; }
  .campaign-row { padding: 10px 0; border-top: 1px solid var(--border); }
  .campaign-row .campaign-brand, .campaign-row .campaign-text, .campaign-row .mapping-warning { grid-column: 1 / -1; }
}

/* Lists that sit straight on the canvas get a card of their own */
.member-list-panel .table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.member-table .member-row:focus-visible td { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--brand-ring); }

@media (max-width: 760px) {
  .page-head > .button { width: 100%; }
  .segmented { max-width: 100%; flex-wrap: wrap; }
  .segmented label { white-space: normal; }
}

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

.field > .segmented { justify-self: start; }
.field > .discount-hint { max-width: 640px; }

.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .input { width: auto; flex: 1 1 200px; }

/* Display face, used the way the Journey Builder does: product name and headline figures only. */
.wordmark > span:last-child, .login-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: .01em; line-height: 1.1; }
.login-card h1 { font-size: 28px; }
.stat-value:not(.stat-value-sm), .payment-stat strong { font-family: var(--font-display); font-weight: 400; }

/* ---------------------------------------------------------------- Quiet lists
   Benefits and umbrella products are collapsed to one line each; the detail
   and the actions open on demand. */
.row-chevron { flex: none; color: var(--muted); transition: transform .15s; }
[aria-expanded="true"] > .row-chevron { transform: rotate(90deg); }

.benefit-card { gap: 10px; padding: 14px 16px; margin-bottom: 12px; }
.benefit-rows-list { display: grid; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.benefit-row + .benefit-row { border-top: 1px solid var(--border); }
.benefit-row.is-open { background: var(--surface-2); }
.benefit-row-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.benefit-row-head:hover { background: var(--surface-2); }
.benefit-row-head:focus-visible, .umbrella-head:focus-visible, .unmapped-chip:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--brand-ring); }
.benefit-row-head .tier-pill { flex: none; min-width: 172px; font-size: 12px; }
.benefit-row-value { flex: none; font-size: 16px; color: var(--brand); font-variant-numeric: tabular-nums; }
.benefit-row-who { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benefit-row-flags { display: inline-flex; gap: 6px; flex: none; }
.benefit-row-body { display: grid; gap: 10px; padding: 2px 14px 14px 42px; }
.benefit-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.benefit-facts dt { font-size: 12px; color: var(--muted); }
.benefit-facts dd { margin: 0; font-size: 14px; font-weight: 500; }
.benefit-row-body .tier-card-actions { margin-top: 0; }

.umbrella-list { gap: 10px; }
.umbrella-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.umbrella-head:hover { background: var(--surface-2); }
.umbrella-head .umbrella-title { flex: 1; min-width: 0; flex-wrap: nowrap; }
.umbrella-head h2 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umbrella-summary { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.umbrella-summary .coverage-text { min-width: 104px; }
.umbrella-summary .discount-badge { font-size: 12px; padding: 2px 9px; }
.umbrella-card.is-open .umbrella-head { border-bottom: 1px solid var(--border); }
.umbrella-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.umbrella-tools .umbrella-description { margin: 0; }

.group-count { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mapping:first-of-type { border-top: 0; }
.unmapped { display: grid; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.mapping-group .group-label + .unmapped { margin-top: 0; padding-top: 0; border-top: 0; }
.unmapped-label { font-size: 12px; color: var(--muted); }
.unmapped-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.unmapped-chip { padding: 3px 10px; border: 1px dashed var(--border-strong); border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.unmapped-chip:hover { border-style: solid; border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

@media (max-width: 760px) {
  .benefit-row-head { flex-wrap: wrap; gap: 6px 10px; }
  .benefit-row-head .tier-pill { min-width: 0; }
  .benefit-row-who { flex-basis: 100%; padding-left: 28px; white-space: normal; }
  .benefit-row-body { padding-left: 14px; }
  .umbrella-head { flex-wrap: wrap; }
  .umbrella-summary { flex-basis: 100%; padding-left: 28px; }
}

.programme-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.programme-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.programme-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.programme-section-head h2 { margin: 0; font-size: 1.15rem; }
.programme-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.programme-grid th, .programme-grid td { padding: 8px 10px; vertical-align: top; text-align: left; }
.programme-grid thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--border); }
.programme-grid tbody th { width: 170px; font-weight: 600; padding-top: 17px; }
.programme-grid tbody tr + tr th, .programme-grid tbody tr + tr td { border-top: 1px solid var(--border); }
.programme-grid textarea.input { resize: vertical; min-height: 72px; display: block; }
.programme-grid .hint { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.programme-table td.is-generated { color: var(--muted); }
.programme-table td.is-generated::after { content: " · auto"; font-size: 0.75em; opacity: 0.7; }
.programme-row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.programme-row-form { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 4px 0 12px; display: grid; gap: 14px; background: var(--surface-2); }
.programme-row-form .programme-grid tbody th { width: 140px; }
.programme-row-form-actions { display: flex; gap: 8px; }
label.checkbox { display: flex; gap: 8px; align-items: center; }

.booking-card { display: grid; gap: 16px; }
.booking-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.booking-card-head .booking-title { margin: 0 0 2px; }
.booking-card-totals { display: flex; gap: 24px; }
.booking-facts { display: flex; gap: 32px; flex-wrap: wrap; }
.booking-fact { display: grid; gap: 2px; }
.booking-fact > span { font-size: 0.8rem; color: var(--muted); }
.booking-fact .discount-hint { display: block; font-weight: 400; }
.booking-campaigns { margin-top: 10px; }
.booking-campaigns summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.booking-campaigns ul { margin: 8px 0 0; padding-left: 18px; }
.payments-no-discount { margin-top: 20px; }
.payments-no-discount .payment-row { opacity: 0.8; }

/* Design pass 1 (Villads): menu that always fits, calmer Tourpaq discounts, friendlier empty states, tidier Programme actions */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The menu gets a row of its own when it doesn't fit beside the name, and fades at the edge that has more */
.tabs { scroll-behavior: smooth; scroll-padding-inline: 24px; }
.tabs.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.tabs.has-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.tabs.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

@media (max-width: 1023px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; padding: 10px 20px 0; }
  .tabs { order: 3; flex: 0 0 calc(100% + 40px); margin: 0 -20px; padding: 0 20px 8px; }
  .switcher { margin-left: auto; }
}

@media (max-width: 760px) {
  .topbar { padding: 10px 16px 0; }
  .tabs { flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 8px; }
  .wordmark span:last-child { display: inline; }
  .wordmark > span:last-child { font-size: 18px; }
}

/* Tourpaq discounts: a brand without one is normal, not an error; Save stands out once the row is edited */
.campaign-unset { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.campaign-row:not(.is-dirty) .campaign-save { background: var(--surface); border-color: var(--border-strong); color: var(--brand); }
.campaign-row:not(.is-dirty) .campaign-save:hover { background: var(--brand-tint); border-color: var(--brand); }

/* Empty states say what is going on, not just that there is nothing */
.empty-state { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.empty-state strong { display: block; color: var(--text); font-weight: 650; }
.empty-state-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--success-bg); color: var(--success); }

/* A folded list reads as something to open */
.payments-no-discount { max-width: none; margin-top: 16px; }
.payments-no-discount > summary { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600; list-style: none; }
.payments-no-discount > summary::-webkit-details-marker { display: none; }
.payments-no-discount > summary:hover { text-decoration: none; background: var(--surface-2); }
.payments-no-discount[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.payments-no-discount > p { margin: 12px 4px; }
.disclosure-chevron { flex: none; color: var(--muted); transition: transform .2s ease; }
details[open] > summary .disclosure-chevron { transform: rotate(90deg); }
.disclosure-hint { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Programme table: quiet row actions, a tick for shown first, a light auto mark */
.button-icon { width: 32px; height: 32px; padding: 0; }
.button-danger-quiet { color: var(--muted); }
.button-danger-quiet:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.programme-row-actions { gap: 4px; }
.programme-shown-first { color: var(--brand); }
.shown-first { display: inline-flex; position: relative; }
.programme-table td.is-generated { color: var(--text-2); }
.programme-table td.is-generated::after { content: "auto"; margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); opacity: 1; }

/* Small labels at a size that reads */
.kind-badge, .discount-tag { font-size: 12px; }

/* A count of 0 is calm, whatever its colour would be */
.payment-stat.is-zero { --tone: var(--muted); background: var(--surface); border-color: var(--border); }

.programme-table td:not(:first-child) { white-space: nowrap; }

@media (max-width: 560px) { .disclosure-hint { display: none; } }

/* Design pass 2 (Villads): History as one calm list, grouped by day */
.timeline-history { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.timeline-history .timeline-item { grid-template-columns: 64px minmax(0, 1fr); border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 12px 18px; }
.timeline-history .timeline-day + .timeline-item { border-top: 0; }
.timeline-history .timeline-item:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.timeline-day { padding: 10px 18px; background: var(--surface-2); border-top: 1px solid var(--border); }
.timeline-day:first-child { border-top: 0; }
.timeline-day h3 { font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: 0; }
.timeline-history .timeline-time { padding-top: 1px; }

/* The kind of change as a coloured dot and word, not a filled badge */
.kind-badge { position: relative; padding: 0 0 0 14px; background: none; letter-spacing: .05em; }
.kind-badge::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--kind, var(--muted)); }

@media (max-width: 760px) {
  .timeline-history .timeline-item { grid-template-columns: 1fr; padding: 12px 16px; }
  .timeline-day { padding: 10px 16px; }
}

/* Every timeline is one calm list; every fold opens with the same small arrow */
.timeline { gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.timeline .timeline-item { grid-template-columns: 170px minmax(0, 1fr); border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 12px 18px; }
.timeline .timeline-item:first-child { border-top: 0; }
.timeline-history .timeline-item { grid-template-columns: 64px minmax(0, 1fr); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary:not(:has(.disclosure-chevron))::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; opacity: .75; vertical-align: middle; }
details[open] > summary:not(:has(.disclosure-chevron))::before { transform: rotate(45deg); margin-bottom: 4px; }

@media (max-width: 760px) {
  .timeline .timeline-item { grid-template-columns: 1fr; padding: 12px 16px; }
}

/* A booking found by the lookup sits in a card, like a member does */
.booking-card { margin-top: 16px; padding: 18px 20px; gap: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

/* Design pass 3 (Villads): aligned benefit rows, one card style, calmer loading, a toast that arrives */

/* Benefit rows line up in columns, with a label as wide as its words */
@media (min-width: 761px) {
  .benefit-row-head { display: grid; grid-template-columns: 16px 176px auto minmax(0, 1fr) auto; column-gap: 12px; }
  .benefit-row-head .tier-pill { min-width: 0; justify-self: start; }
  .benefit-row-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Members: the tier and its status sit side by side */
.member-table td:nth-child(3) { white-space: nowrap; }
.member-table td:nth-child(3) .status-badge { margin-left: 6px; }

/* One card style: same radius and shadow wherever content sits on a card */
.programme-section { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Loading takes less room and fades in, so quick loads don't flash */
.state { padding: 48px 0; animation: state-in .3s ease .15s both; }
@keyframes state-in { from { opacity: 0; } to { opacity: 1; } }

/* Toasts slide up when they arrive */
.toast:not([hidden]) { animation: toast-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .state, .toast:not([hidden]) { animation: none; }
}

/* Programme on small screens: each table scrolls inside its card, the row names stay in view */
.programme-section { min-width: 0; }
#programmePlans, #programmeRows .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.programme-grid textarea.input { field-sizing: content; min-height: 72px; max-height: 240px; }
@media (max-width: 900px) {
  .programme-grid tbody th { width: 128px; }
}
@media (max-width: 640px) {
  .programme-section { padding: 16px; }
  #programmePlans .programme-grid { min-width: 620px; }
  #programmePlans .programme-grid tbody th, #programmePlans .programme-grid thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .programme-section-head { flex-wrap: wrap; }
}

/* Members on a phone: the search takes the full width, the filters scroll sideways */
.member-list-panel, #memberList { min-width: 0; }
.member-list-tiers { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.member-list-tiers::-webkit-scrollbar { display: none; }
.member-list-tiers .segment { flex: none; }
@media (max-width: 640px) {
  .member-list-head { flex-wrap: wrap; }
  .member-list-head .member-list-search { flex: 1 1 100%; width: 100%; min-width: 0; }
  .segmented.member-list-tiers { flex-wrap: nowrap; }
}

/* Keyboard focus is a clear green outline everywhere (WCAG 2.2 focus appearance), not a faint glow */
.button:focus-visible, .link-button:focus-visible, .tab:focus-visible, .category:focus-visible, .payment-link:focus-visible,
summary:focus-visible, .chip-remove:focus-visible, .segment:focus-visible, .picker-card:focus-visible, .agency-option:focus-visible,
.benefit-row-head:focus-visible, .umbrella-head:focus-visible, .unmapped-chip:focus-visible, .member-table .member-row:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: none;
}
.benefit-row-head:focus-visible, .umbrella-head:focus-visible, .member-table .member-row:focus-visible { outline-offset: -2px; }

/* ============================================================================================
   Bold pass (Villads): a side menu, bigger page headers, one colour per tier, benefit tiles side
   by side and more room. Colours and fonts are the Travelheart ones already used above.
   ============================================================================================ */

:root {
  --tier-friend-bg: #d5f1e8;
  --tier-friend-ink: var(--brand-strong);
  --tier-family-bg: var(--brand);
  --tier-family-ink: #ffffff;
  --tier-household-bg: var(--purple);
  --tier-household-ink: #ffffff;
  --sidebar: 264px;
}

/* One colour per tier on every page: Friend aqua, Family Travelheart green, Household purple */
.tier-badge.tier-friend, .tier-pill.tier-friend { background: var(--tier-friend-bg); color: var(--tier-friend-ink); }
.tier-badge.tier-family, .tier-pill.tier-family { background: var(--tier-family-bg); color: var(--tier-family-ink); }
.tier-badge.tier-household, .tier-pill.tier-household { background: var(--tier-household-bg); color: var(--tier-household-ink); }

/* The menu: icons and group names only in the side menu */
.tab { display: inline-flex; align-items: center; gap: 10px; }
.tab-icon { display: none; flex: none; }
.tabs-label { display: none; }

@media (min-width: 1024px) {
  body { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); align-items: start; }
  .topbar {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 24px 16px 20px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: none;
    overflow-y: auto;
  }
  .topbar .wordmark { padding: 0 10px 18px; }
  .topbar .wordmark-mark { width: 36px; height: 36px; border-radius: 11px; }
  .topbar .wordmark > span:last-child { font-size: 22px; white-space: nowrap; }
  .tabs { order: 0; flex: none; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tabs-label { display: block; margin: 18px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tabs-label:first-child { margin-top: 4px; }
  .tab { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
  .tab-icon { display: block; color: var(--muted); transition: color .15s; }
  .tab:hover { background: var(--surface-2); color: var(--text); }
  .tab:hover .tab-icon { color: var(--brand); }
  .tab[aria-current="page"] { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
  .tab[aria-current="page"] .tab-icon { color: var(--aqua); }
  .tab .tab-count { margin-left: auto; }
  .switcher { margin: auto 0 0; padding-top: 16px; }
  .switcher-button { width: 100%; }
  .switcher-panel { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
  main { grid-column: 2; width: 100%; max-width: 1200px; padding: 48px 56px 96px; }
  .toast { left: calc(50% + var(--sidebar) / 2); }
}

/* Page headers: the Travelheart display face, bigger, with the explanation as a calm subtitle */
main h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; letter-spacing: .005em; }
.page-head { margin-bottom: 28px; align-items: flex-end; }
.page-head p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; }
.page-head .how-it-works { margin-top: 12px; }
.picker-head h1 { margin-bottom: 4px; }

/* Benefits: each umbrella product is a card, its tiers sit side by side as tiles */
.benefit-card { padding: 20px 22px; margin-bottom: 18px; gap: 14px; }
.benefit-card .umbrella-title { font-size: 20px; gap: 10px; }
.benefit-card .umbrella-title .umbrella-icon { width: 20px; height: 20px; }

@media (min-width: 1100px) {
  .benefit-rows-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; border-radius: 0; overflow: visible; }
  .benefit-row + .benefit-row { border-top: 0; }
  .benefit-row { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
  .benefit-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
  .benefit-row.is-open { grid-column: 1 / -1; background: var(--surface-2); }
  .benefit-row-head {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    grid-template-areas: "chev pill flags" "chev value value" "chev who who";
    align-items: center;
    row-gap: 6px;
    column-gap: 12px;
    padding: 16px 18px;
  }
  .benefit-row-head > .row-chevron { grid-area: chev; align-self: start; margin-top: 4px; }
  .benefit-row-head .tier-pill { grid-area: pill; justify-self: start; }
  .benefit-row-head .benefit-row-flags { grid-area: flags; justify-self: end; }
  .benefit-row-head .benefit-row-value { grid-area: value; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--brand); }
  .benefit-row-head .benefit-row-who { grid-area: who; white-space: normal; overflow: visible; }
  .benefit-row.is-open .benefit-row-head { grid-template-columns: 16px auto auto minmax(0, 1fr) auto; grid-template-areas: "chev pill value who flags"; }
  .benefit-row.is-open .benefit-row-head .benefit-row-value { font-size: 22px; }
  .benefit-row.is-open .benefit-row-head .benefit-row-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* More room and bigger targets */
.button { min-height: 40px; }
.button-sm { min-height: 34px; }
.table th, .table td { padding: 14px 18px; }
.create-form, .rules-at, .member-card, .programme-section { padding: 22px; }
.input { min-height: 42px; }
.segmented label, .segmented .segment { padding: 7px 14px; }

@media (max-width: 1023px) {
  .tabs .tab > span:not(.tab-count) { display: inline; }
}

/* ============================================================================================
   Benefits, one thing at a time (Villads): New benefit is three small steps, Tourpaq brands fold
   to one line each, long explanations sit behind "how does this work" links, notes are optional.
   ============================================================================================ */

.field-label { font-size: 14px; font-weight: 650; color: var(--text); }
.benefit-form { max-width: 820px; padding: 28px 32px; gap: 0; }
.benefit-form .form-title h2 { font-size: 20px; }
.benefit-form fieldset, .wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard-step { display: grid; gap: 24px; animation: wizard-in .22s ease; }
.wizard-step[hidden] { display: none; }
.wizard-question { float: left; width: 100%; padding: 0; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--brand); }
.wizard-question + * { clear: both; }
@keyframes wizard-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.wizard-steps { display: flex; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.wizard-steps li { flex: 1; min-width: 0; padding-top: 10px; border-top: 3px solid var(--border); transition: border-color .2s; }
.wizard-steps li.is-done, .wizard-steps li[aria-current="step"] { border-top-color: var(--brand); }
.wizard-steps button { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 2px 4px 2px 0; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wizard-steps button:disabled { cursor: default; }
.wizard-steps li.is-done button:hover .wizard-label { text-decoration: underline; }
.wizard-steps li.is-done button, .wizard-steps li[aria-current="step"] button { color: var(--text); }
.wizard-dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.wizard-steps li[aria-current="step"] .wizard-dot { background: var(--brand); color: var(--brand-ink); }
.wizard-steps li.is-done .wizard-dot { background: var(--aqua); color: var(--brand-strong); }
.wizard-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice-cards .plan-choice { padding: 14px 16px; gap: 6px; background: var(--surface); }
.choice-cards .plan-title { display: inline-flex; align-items: center; gap: 8px; }
.choice-cards .plan-title .umbrella-icon { width: 18px; height: 18px; color: var(--brand); }
.choice-cards .plan-text.mapping-warning { opacity: 1; }
.plan-choice:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan-choice .plan-title { padding-right: 24px; }

.wizard-step .discount-fields .amount-input input { width: 120px; font-size: 20px; }
.wizard-date { max-width: 280px; }
.wizard-summary { display: grid; gap: 4px; padding: 16px 20px; border-left: 4px solid var(--brand); border-radius: 10px; background: var(--brand-tint); }
.wizard-summary strong { font-size: 17px; }
.step-error { margin: 14px 0 0; color: var(--danger); font-weight: 600; }
.wizard-foot { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.wizard-foot-spacer { flex: 1; }
.wizard-foot [data-wizard-next] { min-width: 132px; }

.inline-help > summary, .optional-field > summary { width: fit-content; font-size: 13px; font-weight: 600; color: var(--brand); }
.inline-help > summary:hover, .optional-field > summary:hover { text-decoration: underline; }
.inline-help p { max-width: 640px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.optional-field > summary:not(:has(.disclosure-chevron))::before { content: "+"; width: auto; height: auto; margin: 0 6px 0 0; border: 0; transform: none; font-size: 16px; line-height: 1; opacity: 1; }
.optional-field[open] > summary { display: none; }
.optional-field .field { margin-top: 0; }

.benefit-row-body.has-action { padding-top: 6px; }
.button-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.benefit-action-panel { padding: 20px 22px; border-radius: 12px; background: var(--surface); }
.benefit-action-panel .discount-editor-head { gap: 4px; margin-bottom: 6px; }
.benefit-action-panel .discount-editor-head strong { font-size: 16px; }
.plan-form { gap: 18px; }
.plan-choice { padding: 12px 14px; }
.plan-fields { gap: 16px 20px; }
.plan-preview { padding: 14px 18px; border-left-width: 4px; border-radius: 10px; }

.campaign-panel { gap: 14px; }
.campaign-list { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.campaign-item + .campaign-item { border-top: 1px solid var(--border); }
.campaign-item > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; }
.campaign-item > summary:hover { background: var(--surface-2); }
.campaign-item[open] > summary { background: var(--surface-2); }
.campaign-item .campaign-brand { flex: none; font-weight: 650; }
.campaign-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.campaign-item > summary .status-badge { flex: none; }
.campaign-ok { background: var(--success-bg); color: var(--success); }
.campaign-warn { background: var(--danger-bg); color: var(--danger); }
.campaign-item .campaign-row { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 2fr); gap: 12px; align-items: end; padding: 16px 16px 18px 34px; border-top: 0; background: var(--surface-2); }
.campaign-item .campaign-row .field { display: grid; gap: 6px; margin: 0; }
.campaign-item .campaign-row .field-label { font-size: 12.5px; color: var(--text-2); }
.campaign-item .campaign-row .mapping-warning, .campaign-item .campaign-actions { grid-column: 1 / -1; }
.campaign-actions { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .benefit-form { padding: 20px 18px; }
  .wizard-question { font-size: 22px; }
  .wizard-steps li:not([aria-current="step"]) .wizard-label { display: none; }
  .wizard-foot { flex-wrap: wrap; }
  .campaign-meta { display: none; }
  .campaign-item > summary .status-badge { margin-left: auto; }
  .campaign-item .campaign-row { grid-template-columns: 1fr; padding: 14px 16px 16px; }
  .benefit-action-panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { .wizard-step { animation: none; } }


/* Change or stop (Villads): two groups, Change and Stop, the new value in its own calm box */
.plan-form { gap: 22px; }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.plan-head .wizard-question { float: none; width: auto; }
.plan-now { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.plan-now strong { color: var(--brand); }
.plan-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.plan-group { display: grid; gap: 8px; align-content: start; }
.plan-group-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-group .plan-choices { grid-template-columns: 1fr; gap: 8px; }
.plan-choice { align-content: start; background: var(--surface); transition: border-color .15s, background .15s; }
.plan-choice .plan-text { opacity: 1; color: var(--muted); }
.plan-choice:has(input:checked) .plan-text { color: var(--text-2); }
.plan-choice.is-stop:has(input:checked) { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger) inset; background: var(--danger-bg); }
.plan-choice.is-stop:has(input:checked)::after { background-color: var(--danger); }

.plan-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: start; gap: 20px 32px; padding: 20px 22px; border-radius: 12px; background: var(--surface-2); }
.plan-fields:has(> .plan-fields-discount[hidden]) { grid-template-columns: minmax(0, 300px); }
.plan-fields-discount { display: grid; gap: 18px; }
.plan-fields-from { display: grid; gap: 6px; margin: 0; }
.plan-fields-from .input { width: 100%; }
.plan-fields-note { grid-column: 1 / -1; }
.plan-fields .amount-input input { font-size: 18px; }

.plan-form:has(input[value^="stop"]:checked) .plan-preview { border-left-color: var(--danger); background: var(--danger-bg); }
.plan-preview { gap: 4px; }
.plan-foot { margin-top: 0; }
.plan-foot [data-plan-submit] { min-width: 132px; }

@media (max-width: 760px) {
  .plan-groups, .plan-fields { grid-template-columns: 1fr; }
  .plan-fields { padding: 16px; }
}

/* ============================================================================================
   Umbrella products, bold (Villads): coverage you can see, one colour per brand family,
   categories as tidy chips with their product count, quiet "+" to add, quiet tools.
   ============================================================================================ */

.umbrella-list { gap: 14px; }
.umbrella-card { overflow: hidden; border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.umbrella-card:not(.is-open):hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.umbrella-card.is-open { box-shadow: var(--shadow); }
.umbrella-head { gap: 16px; padding: 18px 22px; }
.umbrella-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--brand); }
.umbrella-head .umbrella-icon { width: 22px; height: 22px; }
.umbrella-summary { gap: 16px; }
.umbrella-summary .coverage { display: grid; gap: 6px; min-width: 150px; }
.umbrella-summary .coverage-text { min-width: 0; font-size: 13px; text-align: right; }
.umbrella-summary .coverage-text strong { font-size: 15px; color: var(--text); }
.umbrella-summary .coverage-bar { height: 6px; background: var(--surface-3); }
.umbrella-summary .discount-badge { font-size: 12.5px; padding: 3px 11px; }

.umbrella-tools { padding: 12px 22px; background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.umbrella-tools .umbrella-description { font-size: 14px; }
.umbrella-actions { gap: 4px; }
.button-ghost { display: inline-flex; align-items: center; gap: 6px; border-color: transparent; background: transparent; color: var(--text-2); box-shadow: none; }
.button-ghost:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.button-ghost.button-danger-quiet:hover { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }

.mapping-groups { gap: 0; }
.mapping-group { position: relative; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.mapping-group .group-label { padding: 0; font-size: 12px; letter-spacing: .1em; color: var(--text-2); }
.mapping-group .group-swatch { width: 10px; height: 10px; }
.mapping-group .group-count { font-size: 12.5px; color: var(--muted); }
.group-meter { display: block; height: 4px; margin: 10px 0 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.group-meter span { display: block; height: 100%; border-radius: inherit; background: var(--m-bg); }

.mapping { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.mapping:first-of-type, .group-meter + .mapping { border-top: 0; }
.mapping .monogram { width: 34px; height: 34px; margin-top: 0; font-size: 12px; }
.mapping-text { gap: 6px; }
.mapping-agency { font-size: 15px; font-weight: 650; line-height: 34px; }
.mapping-agency + .mapping-chips { margin-top: -4px; }
.mapping-chips { gap: 6px; }
.mapping-chip { max-width: 100%; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid color-mix(in srgb, var(--m-bg) 22%, transparent); background: color-mix(in srgb, var(--m-bg) 9%, var(--surface)); font-size: 13.5px; font-weight: 500; }
.chip-name { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.chip-count { flex: none; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--m-bg); color: var(--m-ink); font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.mapping-chip.is-missing { border-color: var(--danger); background: var(--danger-bg); }
.chip-remove { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 15px; }
.chip-remove:hover { background: var(--danger-bg); }

.mapping-actions { padding-top: 0; }
.button-add { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px dashed var(--border-strong); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; }
.button-add:hover { border-style: solid; border-color: var(--brand); background: var(--brand); color: var(--brand-ink); transform: rotate(90deg); }
.button-add:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mapping-select select { padding: 8px 10px; font-size: 14px; }

.unmapped { gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.mapping + .unmapped { margin-top: 10px; }
.group-meter + .unmapped { margin-top: 4px; padding-top: 4px; border-top: 0; }
.unmapped-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.unmapped-chip { padding: 5px 12px; font-size: 13px; font-weight: 500; transition: all .15s; }
.unmapped-chip:hover { border-color: var(--m-bg); color: var(--m-bg); background: color-mix(in srgb, var(--m-bg) 8%, transparent); }

@media (prefers-reduced-motion: reduce) { .button-add:hover { transform: none; } }

@media (max-width: 760px) {
  .umbrella-head { padding: 16px; }
  .umbrella-head h2 { font-size: 21px; }
  .umbrella-summary { padding-left: 30px; }
  .umbrella-summary .coverage { flex: 1; }
  .umbrella-summary .coverage-text { text-align: left; }
  .umbrella-tools, .mapping-group { padding-left: 16px; padding-right: 16px; }
  .umbrella-actions .button-ghost span { display: none; }
}
.mapping-chip { border-radius: 14px; }

/* ============================================================================================
   Benefits, flat (Villads): no boxes inside boxes. The umbrella product is a heading on the page,
   each tier is one white card, its tools are tabs, and what a tab shows sits right in the card.
   ============================================================================================ */

.benefit-card:not(.is-ended-view) { gap: 14px; margin-bottom: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.benefit-card:not(.is-ended-view) .umbrella-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--brand); }
.benefit-card:not(.is-ended-view) .umbrella-title .umbrella-icon { width: 24px; height: 24px; }
.benefit-rows-list { background: var(--surface); box-shadow: var(--shadow-sm); }

.benefit-row.is-open { background: var(--surface); }
.benefit-row.is-open .benefit-row-head { border-bottom: 1px solid var(--border); }
.benefit-row.is-open .benefit-row-head:hover { background: var(--surface-2); }
.benefit-row-body { gap: 18px; padding: 18px 22px 22px; }
.benefit-row-body.has-action { padding-top: 0; }

.benefit-row-body .tier-card-actions { order: -1; gap: 4px; margin: 0 -22px; padding: 0 22px; border-top: 0; border-bottom: 1px solid var(--border); }
.benefit-row-body:not(.has-action) .tier-card-actions { order: 0; margin-top: 2px; padding-top: 0; border-top: 1px solid var(--border); border-bottom: 0; }
.tier-card-actions .button { position: relative; min-height: 46px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text-2); font-weight: 650; }
.tier-card-actions .button:hover { background: transparent; color: var(--brand); }
.tier-card-actions .button.button-primary { color: var(--warn); }
.tier-card-actions .button[aria-expanded="true"] { color: var(--brand); box-shadow: none; }
.tier-card-actions .button[aria-expanded="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tier-card-actions .button:focus-visible { outline-offset: -4px; }
.benefit-row-body:not(.has-action) .tier-card-actions .button { min-height: 44px; }

.benefit-action-panel { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.benefit-action-panel .discount-editor-head strong { font-size: 18px; }
.plan-head .wizard-question { font-size: 24px; }
.plan-fields { padding: 22px 24px; }
.plan-preview { margin: 0; }
.plan-foot, .benefit-action-panel .benefit-form-foot { padding-top: 18px; border-top: 1px solid var(--border); }

.campaign-list { box-shadow: none; }
.campaign-item[open] > summary { border-bottom: 0; }
.campaign-item .campaign-row { padding-left: 16px; }

@media (min-width: 1100px) {
  .benefit-rows-list { background: transparent; box-shadow: none; }
  .benefit-rows-list > .benefit-row { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .benefit-rows-list > .benefit-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .benefit-rows-list > .benefit-row.is-open { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .benefit-row.is-open .benefit-row-head { padding: 18px 22px; }
}

@media (max-width: 760px) {
  .benefit-row-body { padding: 14px 16px 18px; }
  .benefit-row-body .tier-card-actions { margin: 0 -16px; padding: 0 16px; }
  .plan-fields { padding: 16px; }
}
.benefit-row-body .tier-card-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tier-card-actions .button { flex: none; white-space: nowrap; }
@media (max-width: 760px) { .tier-card-actions .button { padding: 0 10px; } }

/* Umbrella head (Villads): rename and delete as small icons right after the name, no tools bar */
.umbrella-headrow { display: flex; align-items: center; gap: 4px; padding-right: 22px; cursor: pointer; transition: background .15s; }
.umbrella-headrow:hover { background: var(--surface-2); }
.umbrella-headrow .umbrella-head { flex: 0 1 auto; width: auto; min-width: 0; padding-right: 8px; }
.umbrella-headrow .umbrella-head:hover { background: transparent; }
.umbrella-headrow .umbrella-summary { margin-left: auto; }
.umbrella-card.is-open .umbrella-head { border-bottom: 0; }
.umbrella-card.is-open .umbrella-headrow { border-bottom: 1px solid var(--border); }
.umbrella-icons { display: inline-flex; gap: 2px; flex: none; }
.button-icon-ghost { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.button-icon-ghost:hover { background: var(--brand-tint); color: var(--brand); }
.button-icon-ghost.is-danger:hover { background: var(--danger-bg); color: var(--danger); }
.button-icon-ghost:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.umbrella-lede { margin: 0; padding: 14px 22px 0; color: var(--muted); font-size: 14px; }
.mapping-chip { padding: 5px 6px 5px 12px; }

@media (max-width: 760px) {
  .umbrella-headrow { flex-wrap: wrap; padding: 0 16px 14px 0; }
  .umbrella-headrow .umbrella-head { padding: 16px 4px 4px 16px; }
  .umbrella-headrow .umbrella-summary { flex-basis: 100%; margin-left: 0; padding-left: 46px; }
  .umbrella-lede { padding: 12px 16px 0; }
}

/* Tier tools (Villads): real buttons with an icon and an arrow while closed, tabs once one is open */
.tier-tool { display: inline-flex; align-items: center; gap: 8px; }
.tier-tool .tool-icon { flex: none; }
.tier-tool .tool-arrow { flex: none; opacity: .55; transition: transform .15s, opacity .15s; }
.button-count.is-partial { background: var(--warn-bg); color: var(--warn); }

.benefit-row-body:not(.has-action) .tier-card-actions { gap: 10px; padding-top: 18px; }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool {
  min-height: 46px;
  padding: 0 14px 0 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .15s;
}
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool .tool-icon { color: var(--brand); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool:hover .tool-arrow { opacity: 1; transform: translateX(3px); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool.button-primary { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool.button-primary .tool-icon { color: var(--aqua); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool.button-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.benefit-row-body:not(.has-action) .tier-card-actions .tier-tool:active { transform: translateY(0); }

.benefit-row-body.has-action .tier-tool .tool-arrow { display: none; }
.benefit-row-body.has-action .tier-tool .tool-icon { color: var(--muted); }
.benefit-row-body.has-action .tier-tool[aria-expanded="true"] .tool-icon { color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .tier-tool, .tier-tool .tool-arrow { transition: none; transform: none !important; } }
@media (max-width: 760px) {
  .benefit-row-body:not(.has-action) .tier-card-actions { flex-wrap: wrap; overflow: visible; }
  .benefit-row-body:not(.has-action) .tier-card-actions .tier-tool { flex: 1 1 100%; }
  .benefit-row-body:not(.has-action) .tier-card-actions .tier-tool .tool-arrow { margin-left: auto; }
}

/* ============================================================================================
   Modals (Villads): going one layer deeper opens a focused window over the page, so the page
   itself stays a calm overview. Big title, one job, Cancel left and the main action right.
   ============================================================================================ */

html.has-modal { overflow: hidden; }

dialog.modal {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 32px 90px rgba(1, 40, 35, .32), 0 6px 18px rgba(1, 40, 35, .14);
  overflow: hidden;
}
dialog.modal[open] { display: flex; animation: modal-in .26s cubic-bezier(.2, .8, .2, 1); }
dialog.modal::backdrop { background: rgba(1, 40, 35, .48); backdrop-filter: blur(4px); animation: backdrop-in .2s ease; }
dialog.modal-sm { width: min(480px, calc(100vw - 32px)); }
dialog.modal-lg { width: min(880px, calc(100vw - 32px)); }
dialog.modal-xl { width: min(1060px, calc(100vw - 32px)); }

.modal-card { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(100dvh - 48px); }
.modal-head { display: flex; align-items: flex-start; gap: 16px; flex: none; padding: 26px 28px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.modal-titles { display: grid; gap: 6px; flex: 1; min-width: 0; }
.modal-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.08; color: var(--brand); }
.modal-subtitle { margin: 0; font-size: 14.5px; color: var(--text-2); }
.modal-close { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin: -6px -10px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm); cursor: pointer; transition: background .15s, color .15s, transform .2s; }
.modal-close:hover { background: var(--brand); color: var(--brand-ink); transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.modal-body { flex: 1; min-height: 0; padding: 26px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }

dialog.modal.is-untitled .modal-head { position: absolute; top: 18px; right: 22px; z-index: 2; padding: 0; border: 0; background: none; }
dialog.modal.is-untitled .modal-titles { display: none; }
dialog.modal.is-untitled .modal-body { padding-top: 30px; }

.modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-foot .button { min-height: 44px; padding: 0 20px; }
.modal-foot .button-primary, .modal-foot .button-danger-solid { min-width: 132px; }
.button-danger-solid { border-color: var(--danger); background: var(--danger); color: #fff; }
.button-danger-solid:hover { border-color: #a8372e; background: #a8372e; color: #fff; }
.confirm-text p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.confirm-text p:last-child { margin-bottom: 0; }
dialog[data-modal="confirm"] .modal-foot { margin-top: 22px; }

.modal-form { display: grid; gap: 18px; }
.modal-form .field { display: grid; gap: 6px; margin: 0; }
.modal-form .modal-foot { margin-top: 8px; }

@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* What lives inside the modals: no second card, the modal is the card */
.modal .benefit-form { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.modal .wizard-steps { margin-top: 0; }
.modal .wizard-foot { margin-top: 26px; }
.modal .benefit-action-panel { padding: 0; }
.plan-question { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.modal .plan-form { gap: 22px; }
.modal .campaign-panel { gap: 16px; }
.modal .discount-editor-head strong { font-size: 18px; }
.modal .benefit-action-panel .benefit-form-foot { margin-top: 6px; }

.modal .member-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 20px; }
.modal .member-head { padding-right: 56px; }
.modal .member-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: var(--brand); }

.modal .companion-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.modal .companion-edit > .field { display: grid; gap: 6px; margin: 0; }
.modal .companion-edit > :nth-child(n+3) { grid-column: 1 / -1; }
.modal .companion-edit > .field:nth-child(3) .input { max-width: 240px; }
.modal .companion-edit .modal-foot { margin-top: 4px; }

.modal .programme-row-form { display: grid; gap: 18px; }
.modal .programme-grid { width: 100%; }
.modal .programme-grid th { width: 180px; padding: 10px 16px 10px 0; vertical-align: top; text-align: left; }
.modal .programme-grid td { padding: 8px 6px; }

@media (max-width: 640px) {
  dialog.modal, dialog.modal-sm, dialog.modal-lg, dialog.modal-xl { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  dialog.modal[open] { animation-name: sheet-in; }
  .modal-card { max-height: 94dvh; }
  .modal-head { padding: 22px 18px 16px; }
  .modal-body { padding: 20px 18px 24px; }
  dialog.modal.is-untitled .modal-head { top: 12px; right: 14px; }
  .modal .companion-edit { grid-template-columns: 1fr; }
  .modal .companion-edit > .field { grid-column: 1 / -1; }
  .modal-foot { flex-wrap: wrap; }
  .modal .programme-grid, .modal .programme-grid tbody, .modal .programme-grid tr, .modal .programme-grid th, .modal .programme-grid td { display: block; width: 100%; }
  .modal .programme-grid th { padding: 12px 0 4px; }
  .modal .programme-grid td { padding: 4px 0; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open], dialog.modal::backdrop { animation: none; } .modal-close:hover { transform: none; } }
.modal .programme-row-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.modal .programme-grid th, .modal .programme-grid td { background: transparent; border: 0; }
.campaign-item .campaign-row .input { width: 100%; min-width: 0; max-width: none; box-sizing: border-box; }
.campaign-item .campaign-row > .field { min-width: 0; width: auto; }
.campaign-item .campaign-row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 760px) { .campaign-item .campaign-row { grid-template-columns: 1fr; } }

/* ============================================================================================
   Programme (Villads): the plans look like the cards on the website, one colour per tier, and the
   benefits table reads like the comparison it becomes. Tools stay quiet until you reach for them.
   ============================================================================================ */

.programme-toolbar { margin: 4px 0 28px; }
.programme-toolbar .segmented label { padding: 9px 18px; font-size: 14.5px; }
.programme-section { padding: 28px 28px 30px; margin-bottom: 28px; border-radius: 20px; }
.programme-section-head { align-items: flex-start; margin-bottom: 22px; }
.programme-section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--brand); }
.section-lede { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }

#programmePlans { overflow: visible; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan-card { --tier-bg: var(--surface-2); --tier-ink: var(--text); display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.plan-card:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-card--friend { --tier-bg: var(--tier-friend-bg); --tier-ink: var(--tier-friend-ink); }
.plan-card--family { --tier-bg: var(--tier-family-bg); --tier-ink: var(--tier-family-ink); }
.plan-card--household { --tier-bg: var(--tier-household-bg); --tier-ink: var(--tier-household-ink); }
.plan-card-band { display: grid; gap: 2px; padding: 18px 20px 16px; background: var(--tier-bg); color: var(--tier-ink); }
.plan-card-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.plan-card-name { width: calc(100% + 16px); margin: 0 -8px; padding: 2px 8px; border: 1.5px dashed transparent; border-radius: 10px; background: transparent; color: inherit; font-family: var(--font-display); font-size: 30px; line-height: 1.2; transition: border-color .15s, background .15s; }
.plan-card-name:hover { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.plan-card-name:focus { outline: none; border-style: solid; border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.plan-card-note { font-size: 13px; opacity: .85; }
.plan-card-body { display: grid; gap: 16px; padding: 18px 20px 22px; }
.plan-card .field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.plan-card .field > label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.plan-card .hint { font-size: 12px; color: var(--muted); }
.plan-card textarea.input { min-height: 88px; resize: vertical; field-sizing: content; max-height: 220px; }
.plan-card-people { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; align-items: start; }

.programme-table thead th { font-size: 12px; }
.tier-dot { display: inline-block; width: 9px; height: 9px; margin: 0 8px 1px 0; border-radius: 50%; vertical-align: middle; background: var(--muted); }
.tier-dot--friend { background: #7fd1b8; }
.tier-dot--family { background: var(--brand); }
.tier-dot--household { background: var(--purple); }
.programme-row { cursor: pointer; }
.programme-row td { transition: background .12s; }
.programme-row:hover td { background: var(--surface-2); }
.programme-benefit strong { display: block; font-size: 15px; font-weight: 650; color: var(--text); }
.programme-source { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.programme-source .umbrella-icon { width: 13px; height: 13px; }
.programme-value { font-weight: 550; color: var(--text); }
.programme-value.is-empty { color: var(--border-strong); font-weight: 400; }
.programme-table td.is-generated { color: var(--text); }
.programme-table td.is-generated::after { content: "auto"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); vertical-align: 1px; }
.programme-row:hover td.is-generated::after { background: var(--surface); }
.shown-first-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--tier-friend-bg); color: var(--brand-strong); font-size: 12.5px; font-weight: 700; }
.programme-actions-cell { width: 1%; }
.programme-row-actions { gap: 2px; opacity: .5; transition: opacity .15s; }
.programme-row:hover .programme-row-actions, .programme-row:focus-within .programme-row-actions { opacity: 1; }
.programme-row-actions .button-icon-ghost { width: 34px; height: 34px; }
.button-icon-ghost:disabled { opacity: .3; cursor: default; background: transparent; color: var(--muted); }
@media (hover: none) { .programme-row-actions { opacity: 1; } }

@media (max-width: 760px) {
  .programme-section { padding: 20px 16px 22px; }
  .programme-section-head .button { width: 100%; }
  .plan-card-name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .plan-card:focus-within { transform: none; } }
.table-wrap { position: relative; }
.plan-card-name-label { margin-top: 6px; font-size: 12px; font-weight: 650; opacity: .8; }
.plan-card-people { grid-template-columns: minmax(0, 1fr) 120px; }

/* Info icons (Villads): help sits behind a small (i) next to the field name, shown on hover or focus */
.info-tip { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 0 0 5px; vertical-align: -4px; border-radius: 50%; color: var(--muted); cursor: help; transition: color .15s, background .15s; }
.info-tip:hover, .info-tip:focus { color: var(--brand); background: var(--brand-tint); outline: none; }
.info-tip:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
.info-tip-bubble { display: none; position: absolute; top: calc(100% + 9px); left: 50%; z-index: 40; width: max-content; max-width: 260px; padding: 10px 13px; transform: translateX(-50%); border-radius: 10px; background: var(--brand-strong); color: #fff; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; pointer-events: none; }
.info-tip-bubble::before { content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--brand-strong); }
.info-tip:hover .info-tip-bubble, .info-tip:focus .info-tip-bubble { display: block; animation: tip-in .14s ease; }
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, -3px); } to { opacity: 1; transform: translate(-50%, 0); } }
.plan-card { overflow: visible; }
.plan-card-band { border-radius: 17px 17px 0 0; }
.plan-card-band .info-tip { color: inherit; }
.modal .programme-grid th .info-tip { vertical-align: -4px; }

@media (max-width: 760px), (hover: none) {
  .info-tip-bubble { position: fixed; top: auto; right: 16px; bottom: 16px; left: 16px; width: auto; max-width: none; transform: none; padding: 14px 16px; font-size: 14px; }
  .info-tip-bubble::before { display: none; }
  .info-tip:hover .info-tip-bubble, .info-tip:focus .info-tip-bubble { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .info-tip:hover .info-tip-bubble, .info-tip:focus .info-tip-bubble { animation: none; } }
.plan-card-people { grid-template-columns: minmax(0, 1fr) max-content; }
.plan-card-people .field > label { white-space: nowrap; }
.plan-card-people input[data-field="people"] { width: 120px; }
.plan-card .field > label { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.plan-card .field > label .info-tip { flex: none; }

/* ============================================================================================
   Clean first views (Villads): one short line under every title, the rest behind an (i);
   tools you only sometimes need fold away; nothing on screen that isn't needed yet.
   ============================================================================================ */

.page-head { margin-bottom: 36px; }
.page-head p.muted { max-width: 62ch; margin-top: 10px; font-size: 16px; color: var(--text-2); }
.page-head p.muted .info-tip { vertical-align: -3px; }
.page-head .how-it-works { margin-top: 8px; }

.tool-panel { margin-bottom: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tool-panel > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 20px; border-radius: 16px; }
.tool-panel > summary:hover { background: var(--surface-2); }
.tool-panel[open] > summary { border-bottom: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.tool-panel-title { font-size: 15px; font-weight: 650; color: var(--text); }
.tool-panel-hint { font-size: 13.5px; color: var(--muted); }
.tool-panel .rules-at { margin: 0; padding: 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tool-panel .rules-at-result { margin: 0 20px 20px; }

#memberForm { padding: 0; margin-bottom: 40px; border: 0; background: transparent; box-shadow: none; }

.payment-summary:not(:has(.payment-stat:not(.is-zero))) { display: none; }

.history-head { margin-bottom: 14px; }
.history-head h2, .member-list-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--brand); }

@media (max-width: 760px) {
  .page-head { margin-bottom: 24px; }
  .page-head > .button { width: 100%; }
  .tool-panel > summary { padding: 14px 16px; }
  .tool-panel-hint { display: none; }
}

/* Programme rows (Villads): a grip to drag rows into place; phones keep the up and down buttons */
.programme-benefit-inner { display: flex; align-items: center; gap: 10px; }
.drag-handle { display: grid; place-items: center; flex: none; width: 28px; height: 40px; margin-left: -12px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--border-strong); cursor: grab; transition: color .15s, background .15s; }
.programme-row:hover .drag-handle { color: var(--muted); }
.drag-handle:hover, .drag-handle:focus-visible { color: var(--brand); background: var(--brand-tint); }
.drag-handle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.drag-handle:active { cursor: grabbing; }
.programme-row [data-programme-move] { display: none; }
.programme-table.is-sorting .programme-row:hover td { background: transparent; }
.programme-row.is-dragging td { background: var(--brand-tint) !important; }
.programme-row.is-dragging td:first-child { box-shadow: inset 3px 0 0 var(--brand); }

@media (hover: none), (max-width: 760px) {
  .drag-handle { display: none; }
  .programme-row [data-programme-move] { display: grid; }
}
html.is-dragging-row, html.is-dragging-row * { cursor: grabbing !important; user-select: none; }
.drag-handle { touch-action: none; }
.programme-row.is-dragging td { box-shadow: inset 0 1px 0 var(--brand), inset 0 -1px 0 var(--brand); }

/* ============================================================================================
   History (Villads): each change leads with the product and tier, says in plain words what
   happened, and shows the value on the right so the whole width is used.
   ============================================================================================ */

.timeline-history .timeline-day { padding: 12px 24px; }
.timeline-history .timeline-day h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.timeline-history .history-item {
  display: grid;
  grid-template-columns: 52px 38px minmax(0, 1fr) minmax(0, 38%);
  grid-template-areas: "time icon main value";
  align-items: center;
  gap: 0 16px;
  padding: 18px 24px;
}
.history-time { grid-area: time; padding: 0; font-size: 13.5px; color: var(--muted); }
.history-icon { grid-area: icon; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--kind) 13%, transparent); color: var(--kind); }
.history-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.history-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.history-headline strong { font-size: 17px; font-weight: 700; color: var(--text); }
.history-headline .tier-pill { font-size: 11.5px; padding: 2px 10px; }
.history-what { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; color: var(--muted); }
.history-what > span + span::before { content: "·"; margin: 0 7px; color: var(--border-strong); }
.history-kind { font-weight: 650; color: var(--kind); }
.history-detail { font-size: 13px; color: var(--muted); }
.history-value { grid-area: value; display: grid; justify-items: end; gap: 3px; min-width: 0; text-align: right; }
.history-after { font-size: 15.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.history-before { font-size: 13.5px; color: var(--muted); text-decoration: line-through; overflow-wrap: anywhere; }
.history-item[data-kind="Removed"] .history-before { font-size: 15px; font-weight: 600; }
.history-item[data-kind="Changed"] .history-after::before { content: "→ "; font-weight: 400; color: var(--muted); }

@media (max-width: 760px) {
  .timeline-history .timeline-day { padding: 10px 16px; }
  .timeline-history .history-item { grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "icon time" "icon main" "icon value"; align-items: start; gap: 4px 12px; padding: 14px 16px; }
  .history-icon { width: 34px; height: 34px; }
  .history-value { justify-items: start; text-align: left; margin-top: 6px; }
}

.tier-pill, .tier-badge, .kind-badge.tier, .shown-first-pill { text-transform: none; letter-spacing: .01em; }
.tier-name { text-transform: none; letter-spacing: .01em; }
.tier-pill::before, .tier-badge::before { content: none; display: none; }

/* ============================================================================================
   Booking look-up (Villads): the booking number and its loyalty discount lead, the trip facts sit
   in one calm strip, the discounts and the member sit side by side.
   ============================================================================================ */

.booking-card { gap: 26px; margin-top: 28px; padding: 30px 32px 32px; border-radius: 20px; }
.booking-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.booking-hero-main { display: grid; gap: 4px; min-width: 0; }
.booking-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.booking-number { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--brand); }
.booking-trip { font-size: 14px; color: var(--text-2); }
.booking-hero-stat { display: grid; gap: 4px; justify-items: end; padding: 16px 22px; border-radius: 16px; background: var(--surface-2); text-align: right; }
.booking-hero-stat strong { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--muted); }
.booking-hero-stat.has-discount { background: var(--success-bg); }
.booking-hero-stat.has-discount strong { color: var(--success); }

.booking-card .booking-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 12px 56px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 14px; }
.booking-card .booking-fact > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.booking-card .booking-fact strong { font-size: 15.5px; font-weight: 650; }

.booking-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.booking-section { display: grid; gap: 14px; min-width: 0; }
.booking-section-title { display: flex; align-items: center; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--brand); }
.booking-label { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.booking-empty { display: grid; gap: 4px; padding: 22px; border: 1.5px dashed var(--border-strong); border-radius: 14px; text-align: center; }
.booking-empty strong { font-size: 15px; color: var(--text-2); }
.booking-empty span { font-size: 13.5px; color: var(--muted); }
.booking-side > p.muted { margin: 0; padding: 18px; border-radius: 14px; background: var(--surface-2); }

.booking-member { padding: 22px; border-radius: 16px; background: var(--surface-2); gap: 18px; }
.booking-member-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.booking-member-name { display: block; margin-top: 2px; font-size: 16px; font-weight: 650; color: var(--text); }
.booking-member .button { background: var(--surface); }
.tier-journey { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; }
.tier-journey-step { display: grid; gap: 6px; justify-items: start; }
.tier-journey-step .tier-badge { font-size: 14px; padding: 4px 14px; }
.booking-member .covered-passengers { margin: 0; gap: 8px; }
.booking-member .covered-passengers li { background: var(--surface); }
.booking-benefits { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.booking-member .benefit-lines { gap: 0; }
.booking-member .benefit-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.booking-member .benefit-lines li:first-child { border-top: 0; }
.booking-member .benefit-lines strong { font-size: 15px; color: var(--brand); white-space: nowrap; }

@media (max-width: 1100px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .booking-card { padding: 22px 18px 24px; }
  .booking-hero-stat { justify-items: start; text-align: left; width: 100%; }
  .booking-card .booking-facts { grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 16px; }
  .booking-card .booking-fact:last-child { grid-column: 1 / -1; }
  .booking-member { padding: 18px 16px; }
}
.tier-journey { align-items: flex-start; }
