/* ============================================================
   VIZR Golf Tour — one stylesheet for every page.

   The visual language comes straight off the partnership deck:
   white paper, heavy condensed display type, one loud accent per
   surface, and a Playfair italic used sparingly for the lines that
   are supposed to sound like a person talking.

   Mobile first, and not as a slogan. The member app gets opened in a
   cart with one hand, in sunlight, on cell service. Tap targets are
   44px, the score entry grid works with a thumb, and nothing critical
   sits behind a hover.
   ============================================================ */

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --paper: #f5f5f5;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e8e8e8;
  --line-soft: #f0f0f0;

  --lime: #c5ff3e;
  --lime-deep: #9fd024;
  --pink: #ff4a8b;
  --pink-deep: #d62960;
  --yellow: #ffd23f;
  --yellow-deep: #e0a915;
  --cyan: #4cc9f0;
  --cyan-deep: #1e96c4;
  --orange: #ff8c42;
  --purple: #b66dff;

  --red-tier: #e84450;
  --blue-tier: #3a7fc8;
  --black-tier: #2a2a2a;
  --tips-tier: #d4a017;

  --good: #1f8a3f;
  --warn: #c8791a;
  --bad: #c02a2a;

  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 10, 10, 0.10);
  --shadow-lg: 0 30px 60px rgba(10, 10, 10, 0.16);

  --radius: 14px;
  --radius-sm: 8px;

  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  --shell: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Type ─────────────────────────────────────────────────── */

.display { font-family: var(--display); letter-spacing: 1px; line-height: 0.95; font-weight: 400; }
.italic { font-family: var(--serif); font-style: italic; font-weight: 700; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; line-height: 0.98; }
h1 { font-size: clamp(38px, 8vw, 76px); }
h2 { font-size: clamp(28px, 5vw, 46px); }
h3 { font-size: clamp(20px, 3vw, 26px); }

.eyebrow {
  font-family: var(--display);
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-chip {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 4px;
}
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); line-height: 1.55; }
.lede em { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--ink); }

.tagline-mark {
  font-family: var(--display);
  letter-spacing: 7px;
  font-size: 13px;
  text-transform: uppercase;
}
.tagline-mark .dot { color: var(--pink); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Shell ────────────────────────────────────────────────── */

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }

section { padding: 68px 0; }
@media (max-width: 700px) { section { padding: 44px 0; } }

.rule { height: 2px; background: var(--ink); border: 0; margin: 0; }
.hairline { height: 1px; background: var(--line); border: 0; }

.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section-head .divider { flex: 1; height: 2px; background: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-quiet { background: var(--paper); color: var(--ink-soft); }
.btn-danger { background: var(--bad); color: var(--white); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; letter-spacing: 1.5px; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; padding: 0; min-height: 0;
  font-family: var(--body); font-size: 14px; letter-spacing: 0;
  text-transform: none; color: var(--muted); text-decoration: underline; cursor: pointer;
}

/* ── Cards ────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-flat { border: 0; background: var(--paper); }
.card-lift { border: 0; box-shadow: var(--shadow-md); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-title { font-family: var(--display); font-size: 20px; letter-spacing: 1px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Stats ────────────────────────────────────────────────── */

.stat { }
.stat-label {
  font-family: var(--display); letter-spacing: 2px; font-size: 11px;
  text-transform: uppercase; color: var(--muted);
}
.stat-value {
  font-family: var(--display); font-size: 34px; letter-spacing: 1px;
  line-height: 1; margin-top: 2px;
}
.stat-value.sm { font-size: 24px; }
.stat-note { font-size: 12px; color: var(--faint); margin-top: 3px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; padding: 18px; background: var(--paper); border-radius: var(--radius);
}
@media (max-width: 560px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ── Badges ───────────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
  background: var(--paper); color: var(--ink-soft); white-space: nowrap;
}
.badge-lime { background: var(--lime); color: var(--ink); }
.badge-pink { background: var(--pink); color: #fff; }
.badge-ink { background: var(--ink); color: #fff; }
.badge-good { background: #e8f6ec; color: var(--good); }
.badge-warn { background: #fdf1e0; color: var(--warn); }
.badge-bad { background: #fbeaea; color: var(--bad); }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.tier-reds   { background: var(--red-tier); color: #fff; }
.tier-blues  { background: var(--blue-tier); color: #fff; }
.tier-blacks { background: var(--black-tier); color: #fff; }
.tier-tips   { background: var(--tips-tier); color: #fff; }

/* ── Forms ────────────────────────────────────────────────── */

.field { margin-bottom: 16px; }
.field label,
.label {
  display: block;
  font-family: var(--display); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=search], input[type=password],
select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font-family: var(--body);
  font-size: 16px;               /* 16px or iOS zooms on focus */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
}
input[readonly], input:disabled, select:disabled, textarea:disabled {
  background: var(--paper); color: var(--muted);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.field-error { font-size: 13px; color: var(--bad); margin-top: 5px; font-weight: 600; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); }

.check {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 0; cursor: pointer;
}
.check input { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; margin-top: 2px; accent-color: var(--ink); }
.check span { flex: 1; }
.check small { display: block; color: var(--muted); font-size: 13px; }

.form-errors {
  background: #fbeaea; border-left: 4px solid var(--bad);
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
}
.form-errors li { margin-left: 18px; font-size: 14px; }

/* ── Nav ──────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--shell); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand-mark {
  font-family: var(--display); font-size: 22px; letter-spacing: 2px;
  text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px;
}
.brand-mark .accent {
  background: var(--lime); padding: 0 7px; transform: skewX(-6deg); display: inline-block;
}
.brand-mark .accent span { display: inline-block; transform: skewX(6deg); }
.brand-mark small {
  font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted);
  /* The lime accent block is skewed and padded, so a short suffix like
     "HQ" ends up tucked under its trailing edge. */
  margin-left: 3px;
}
/* "HQ" is an abbreviation, not a wordmark: the italic serif that suits
   "golf tour" reads as a smudge at two capital letters. */
.brand-mark small.mark-hq {
  font-family: var(--display); font-style: normal;
  letter-spacing: 3px; font-size: 15px; color: var(--ink);
}
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a, .topnav button {
  font-family: var(--display); font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 6px; border: 0; background: none; cursor: pointer;
}
.topnav a:hover, .topnav button:hover { color: var(--ink); background: var(--paper); }
.topnav a.active { color: var(--ink); background: var(--paper); }
@media (max-width: 700px) { .topnav .hide-sm { display: none; } }

/* ── Tabs (member app + HQ) ───────────────────────────────── */

.tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--line); margin-bottom: 22px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  font-family: var(--display); font-size: 15px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  padding: 12px 16px; border: 0; background: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--lime); }
.tab .count {
  display: inline-block; margin-left: 6px; font-family: var(--body);
  font-size: 11px; font-weight: 700; background: var(--pink); color: #fff;
  border-radius: 999px; padding: 1px 6px; letter-spacing: 0; vertical-align: 2px;
}

/* Bottom tab bar — the member app on a phone. */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  flex: 1; border: 0; background: none; cursor: pointer;
  padding: 9px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--display); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--faint);
}
.tabbar button .ic { font-size: 19px; line-height: 1; }
.tabbar button.active { color: var(--ink); }
@media (max-width: 760px) {
  .tabbar { display: flex; }
  .app-body { padding-bottom: 78px; }
  .tabs.app-tabs { display: none; }
}

/* ── Tables ───────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-family: var(--display); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  padding: 9px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap;
}
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--off-white); }
table.data tr.is-me td { background: #f6ffe4; }
table.data tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
table.data tr.dim td { opacity: .5; }
table.data td.right, table.data th.right { text-align: right; }

/* ── Leaderboard ──────────────────────────────────────────── */

.board-row-place {
  font-family: var(--display); font-size: 19px; width: 40px;
  color: var(--muted); letter-spacing: 0;
}
.board-row-place.top { color: var(--ink); }
.qualify-line td {
  border-bottom: 2px dashed var(--lime) !important;
}
.qualify-marker {
  text-align: center; font-family: var(--display); font-size: 11px;
  letter-spacing: 3px; color: var(--lime-deep); padding: 6px 0; text-transform: uppercase;
}
.score-net { font-family: var(--display); font-size: 22px; letter-spacing: 0; }
.score-gross { font-size: 12px; color: var(--muted); }

/* ── Pins ─────────────────────────────────────────────────── */

.pin-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 16px 10px;
}
.pin-cell { text-align: center; cursor: pointer; }
.pin-cell svg.pin { width: 100%; height: auto; max-width: 72px; margin: 0 auto; display: block; }
.pin-cell.locked svg.pin { filter: grayscale(1) opacity(.22); }
.pin-name {
  font-family: var(--display); font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase; margin-top: 6px; line-height: 1.2; color: var(--ink);
}
.pin-cell.locked .pin-name { color: var(--faint); }
.pin-date { font-size: 10px; color: var(--faint); }
.pin-cell.purchased svg.pin { filter: saturate(.55) brightness(1.04); }

.pin-mini { width: 30px; height: 34px; flex: 0 0 auto; }
.pin-row { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

/* ── Feed ─────────────────────────────────────────────────── */

.feed-item {
  display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.feed-avatar {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--display); font-size: 15px; letter-spacing: 0;
}
.feed-avatar.hq { background: var(--lime); color: var(--ink); }
.feed-avatar.pin { background: var(--tips-tier); }
.feed-avatar.qual { background: var(--pink); }
.feed-body { flex: 1; min-width: 0; }
.feed-meta {
  font-family: var(--display); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--faint); margin-top: 3px;
}
.feed-text { font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.feed-text strong { font-weight: 700; }
.reactions { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.react-btn {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 3px 9px; font-size: 13px; cursor: pointer; line-height: 1.4;
  display: inline-flex; gap: 4px; align-items: center;
}
.react-btn.on { border-color: var(--ink); background: var(--paper); }
.react-btn .n { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ── Score entry grid ─────────────────────────────────────── */

.holes {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px;
}
.hole {
  text-align: center;
}
.hole label {
  display: block; font-family: var(--display); font-size: 10px;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 3px;
}
.hole input {
  width: 100%; min-height: 46px; padding: 6px 2px; text-align: center;
  font-family: var(--display); font-size: 21px; letter-spacing: 0;
  border-radius: 6px; border: 1.5px solid var(--line);
}
.hole input:focus { border-color: var(--ink); background: #fbffef; }
.hole.par-3 label { color: var(--cyan-deep); }
.hole.par-5 label { color: var(--orange); }
.hole.birdie input { border-color: var(--lime-deep); background: #f6ffe4; }
.hole.eagle input { border-color: var(--tips-tier); background: #fff8e4; }
.hole.bogey-plus input { border-color: #f0d6d6; }
.nine-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
}
.nine-total .n { font-family: var(--display); font-size: 24px; }
@media (max-width: 420px) {
  .holes { gap: 3px; }
  .hole input { font-size: 18px; min-height: 42px; }
}

.score-summary {
  display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 16px 20px; margin: 16px 0;
}
.score-summary .big { font-family: var(--display); font-size: 40px; line-height: 1; }
.score-summary .stat-label { color: rgba(255,255,255,.62); }

/* ── Trust chips ──────────────────────────────────────────── */

.trust { display: flex; gap: 6px; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--paper); color: var(--muted);
}
.trust-chip.on { background: #e8f6ec; color: var(--good); }
.trust-chip.off { background: var(--paper); color: var(--faint); }
.trust-chip.bad { background: #fbeaea; color: var(--bad); }

/* ── Course picker ────────────────────────────────────────── */
/* Shared by the member app's post-a-round form and the on-course
   app's setup screen. */

.course-results {
  border: 1.5px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 260px; overflow-y: auto;
}
.course-opt {
  padding: 12px 13px; cursor: pointer; border-bottom: 1px solid var(--line-soft);
  min-height: 46px;
}
.course-opt:last-child { border-bottom: 0; }
.course-opt:hover, .course-opt.active { background: var(--paper); }
.course-opt .nm { font-weight: 600; font-size: 14.5px; }
.course-opt .mt { font-size: 12px; color: var(--muted); }

/* ── Tier cards ───────────────────────────────────────────── */

.tier-card {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; cursor: pointer; position: relative;
  transition: border-color .12s ease, transform .12s ease;
  background: var(--white); text-align: left; width: 100%; font-family: inherit;
  /* The landing page renders these as <a> and the join flow as <button>.
     Without this the anchor version underlines every line inside it. */
  text-decoration: none; color: inherit; display: block;
}
.tier-card:hover { transform: translateY(-2px); }
.tier-card.selected { border-color: var(--ink); box-shadow: var(--shadow-md); }
.tier-card .swatch { height: 6px; border-radius: 3px; margin-bottom: 14px; }
.tier-card .tier-name { font-family: var(--display); font-size: 26px; letter-spacing: 2px; }
.tier-card .tier-price { font-family: var(--display); font-size: 40px; line-height: 1; }
.tier-card .tier-price small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; }
.tier-card .tier-blurb { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 6px 0 12px; }
.tier-card ul { list-style: none; }
.tier-card li { font-size: 13.5px; padding: 4px 0 4px 18px; position: relative; color: var(--ink-soft); }
.tier-card li::before { content: "→"; position: absolute; left: 0; color: var(--lime-deep); font-weight: 700; }
.tier-card .pick {
  position: absolute; top: 16px; right: 16px; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid var(--line);
}
.tier-card.selected .pick { border-color: var(--ink); background: var(--ink); }
.tier-card.selected .pick::after {
  content: "✓"; color: var(--lime); display: block; text-align: center;
  line-height: 20px; font-size: 13px; font-weight: 800;
}

/* ── Steps ────────────────────────────────────────────────── */

.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.step {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line);
}
.step.done { background: var(--lime); }
.step.now { background: var(--ink); }
.step-label {
  font-family: var(--display); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

/* ── Modal ────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 10, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto;
}
.modal {
  background: var(--white); border-radius: var(--radius);
  max-width: 560px; width: 100%; padding: 26px;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 860px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { flex: 1; }
.modal-close {
  border: 0; background: var(--paper); border-radius: 50%;
  width: 32px; height: 32px; font-size: 17px; cursor: pointer; color: var(--muted); line-height: 1;
}
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ── Toast ────────────────────────────────────────────────── */

.toast-host {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; padding: 0 16px; width: 100%; max-width: 460px;
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md);
  animation: toast-in .22s ease; text-align: center;
}
.toast-good { background: var(--good); }
.toast-bad { background: var(--bad); }
.toast.out { opacity: 0; transition: opacity .45s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── States ───────────────────────────────────────────────── */

.empty {
  text-align: center; padding: 48px 20px; color: var(--muted);
}
.empty .big { font-family: var(--display); font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 14.5px; max-width: 360px; margin: 0 auto; }

.loading { text-align: center; padding: 56px 20px; color: var(--faint); }
.spinner {
  width: 26px; height: 26px; border: 3px solid var(--line);
  border-top-color: var(--ink); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--paper) 25%, var(--line-soft) 50%, var(--paper) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.banner {
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px;
}
.banner-lime { background: #f6ffe4; border-left: 4px solid var(--lime-deep); }
.banner-warn { background: #fdf1e0; border-left: 4px solid var(--warn); }
.banner-bad { background: #fbeaea; border-left: 4px solid var(--bad); }
.banner-ink { background: var(--ink); color: #fff; }
.banner strong { display: block; }

/* ── Footer ───────────────────────────────────────────────── */

.site-foot {
  border-top: 2px solid var(--ink); padding: 34px 0 46px; margin-top: 40px;
  font-size: 13px; color: var(--muted);
}
.site-foot .tagline-mark { color: var(--ink); margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

/* ── Print (the HQ pack list) ─────────────────────────────── */

@media print {
  .topbar, .tabs, .tabbar, .btn, .no-print { display: none !important; }
  body { font-size: 12px; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
}


/* ── Prototype bar ───────────────────────────────────────────
   Sits above everything, on every public surface. Purple, because
   HQ uses yellow for Stripe test mode and red for live cards, and
   an operator must never have to work out which mode they are in.
   See decision 27. */
.mode-bar {
  background: var(--purple); color: #fff;
  font-family: var(--display); letter-spacing: 2px; font-size: 12px;
  text-transform: uppercase; text-align: center;
  padding: 9px 16px; line-height: 1.4;
  position: relative; z-index: 60;
}
