/* TSA Star — Design Tokens */
:root {
  --bg: #0D0F0A;
  --surface: #161A12;
  --surface-2: #1E2418;
  --border: #2C3324;

  --lime: #8DB840;
  --lime-bright: #A8D454;
  --lime-dim: #6E9230;
  --gold: #C8A84B;

  --ink: #F0EDE6;
  --ink-2: #8A8F82;
  --ink-3: #4A4F44;

  --success: #5BA85A;
  --warn: #D4882A;
  --error: #C0392B;
  --error-soft: rgba(192,57,43,0.14);
  --warn-soft: rgba(212,136,42,0.14);
  --success-soft: rgba(91,168,90,0.14);
  --lime-soft: rgba(141,184,64,0.14);
  --gold-soft: rgba(200,168,75,0.14);

  --t-starter: #8A8F82;
  --t-explorer: #7B9E6B;
  --t-adventurer: #C8A84B;
  --t-summit: #C0C0C0;
  --t-superstar: #8DB840;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --display: 'Barlow Condensed', 'Oswald', system-ui, sans-serif;
  --headline: 'Barlow', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Light theme overrides ---------- */
[data-theme="light"] {
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #EEEEE9;
  --ink: #1A1E14;
  --ink-2: #4A5240;
  --ink-3: #8A9480;
  --border: #D8D8D0;
  --lime-soft: rgba(141,184,64,0.12);
  --gold-soft: rgba(212,175,55,0.12);
}
[data-theme="light"] .hero-points {
  background: linear-gradient(180deg, #E8EDE0, #F0F4EA);
}
[data-theme="light"] .podium {
  background: linear-gradient(180deg, #E8EDE0 0%, #F0F4EA 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------- Layout ---------- */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

@media (min-width: 900px) {
  .app-shell {
    max-width: 100%;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 100vh;
  }
  .sidebar { display: flex !important; }
  .bottom-nav { display: none !important; }
  .main-content { overflow-y: auto; display: flex; flex-direction: column; }
  .topbar2 { display: none !important; }
  .body-scroll, .scroll-area { padding-top: 20px; }
}

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  display: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}
.sidebar-brand .star { color: var(--gold); }
.sidebar-nav { display: grid; gap: 2px; flex: 1; align-content: start; margin-top: 14px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
}
.sidebar-item:hover { background: rgba(141,184,64,0.07); color: var(--ink); }
.sidebar-item.active { background: var(--lime-soft); color: var(--lime); }
.sidebar-item.active::before {
  content: "";
  position: absolute; left: -14px; top: 6px; bottom: 6px;
  width: 3px; background: var(--lime); border-radius: 0 2px 2px 0;
}
.sidebar-me {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
  display: flex; gap: 10px; align-items: center;
}
.sidebar-me .name { font-size: 12px; font-weight: 600; }
.sidebar-me .role { font-size: 10px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Top bar (mobile) ---------- */
.topbar {
  padding: 8px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-inner { display: flex; gap: 10px; align-items: center; }
.topbar-actions { display: flex; gap: 8px; }

.topbar2 {
  padding: 8px 16px 12px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.topbar2 h2 {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; font-size: 18px;
  margin: 0; letter-spacing: 0.02em; flex: 1;
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 8px 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  z-index: 100;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; color: var(--ink-2);
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none;
}
.bn-item.active { color: var(--lime); }
.bn-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll area ---------- */
.scroll-area { padding: 0 18px 110px; display: grid; gap: 16px; padding-top: 4px; }
.body-scroll { padding: 0 16px 110px; display: grid; gap: 14px; padding-top: 14px; }

/* ---------- Avatar ---------- */
.av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--lime-dim));
  color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--headline); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-lg { width: 56px; height: 56px; font-size: 20px; }
.av-xl { width: 72px; height: 72px; font-size: 26px; }

/* ---------- Icon button ---------- */
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); position: relative; cursor: pointer;
}
.icon-btn .badge {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--bg);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; text-transform: uppercase;
  border-radius: var(--r-sm);
  height: 48px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  text-decoration: none;
}
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-bright); }
.btn-secondary { background: transparent; border-color: var(--lime); color: var(--lime); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; font-size: 12px; padding: 0 14px; }
.btn-gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.label {
  font-family: var(--body); font-size: 11px; font-weight: 500;
  color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase;
}
.input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  height: 48px; padding: 0 14px;
  color: var(--ink);
  font-family: var(--body); font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
.input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(141,184,64,0.18); }
.input.error { border-color: var(--error); }
.input input, .input textarea {
  all: unset; flex: 1; min-width: 0;
  font-family: var(--body); font-size: 15px; color: var(--ink);
}
.input input::placeholder { color: var(--ink-3); }
.err-msg { font-size: 11px; color: var(--error); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.card-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
}
.card-h h3 {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 14px; margin: 0;
}
.card-h .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-2); letter-spacing: 0.1em; }

/* ---------- Hero points ---------- */
.hero-points {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1A1F14, #161A12);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px 18px;
}
.hero-points .topo-lines {
  position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
}
.hero-points .toprow { display: flex; justify-content: space-between; align-items: center; }
.hero-points .points { text-align: center; margin-top: 14px; }
.hero-points .points .num {
  font-family: var(--display); font-weight: 700; font-size: 56px;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}
.hero-points .points .lbl {
  color: var(--ink-2); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; margin-top: 4px;
}
.hero-points .progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-2); margin-bottom: 6px;
  font-family: var(--body); font-weight: 500;
}
.hero-points .progress-meta .next {
  color: var(--gold); font-family: var(--display);
  font-weight: 700; letter-spacing: 0.1em;
}
.hero-points .next-info {
  color: var(--ink-2); font-size: 12px; margin-top: 8px; text-align: center;
}
.hero-points .next-info b { color: var(--lime); font-family: var(--mono); font-weight: 500; }

/* ---------- Progress bar ---------- */
.pbar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.pbar > span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }

/* ---------- Tier pill ---------- */
.tier-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg);
}
.tier-pill.starter { background: var(--t-starter); color: var(--ink); }
.tier-pill.explorer { background: var(--t-explorer); }
.tier-pill.adventurer { background: var(--t-adventurer); }
.tier-pill.summit { background: var(--t-summit); }
.tier-pill.superstar { background: var(--t-superstar); }

/* ---------- Section heading ---------- */
.section-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 4px 0;
}
.section-h h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.section-h a { font-size: 12px; color: var(--lime); text-decoration: none; }

/* ---------- Activity list ---------- */
.activity { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 0; }
.activity .item {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.activity .item:last-child { border-bottom: none; }
.activity .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--lime-soft); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity .ico.gold { background: var(--gold-soft); color: var(--gold); }
.activity .nm { font-size: 13px; font-weight: 500; }
.activity .dt { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.activity .pts { font-family: var(--mono); font-weight: 600; color: var(--gold); font-size: 13px; }

/* ---------- Podium ---------- */
.podium {
  background: linear-gradient(180deg, #161A12 0%, #0E1109 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px 16px;
  position: relative; overflow: hidden;
}
.podium::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(141,184,64,0.18), transparent 70%);
  pointer-events: none;
}
.podium .title {
  font-family: var(--display); font-weight: 700;
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--lime);
  text-align: center; margin-bottom: 16px; position: relative;
}
.podium .three {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px; align-items: end; position: relative;
}
.podium .slot { display: grid; gap: 6px; justify-items: center; }
.podium .slot .av {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 2px solid var(--border);
}
.podium .slot.first .av {
  width: 72px !important; height: 72px !important; font-size: 24px !important;
  background: linear-gradient(135deg, var(--gold), #a87c2a);
  color: var(--bg); border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}
.podium .slot.second .av { background: linear-gradient(135deg, #C0C0C0, #888); color: var(--bg); border-color: #999; }
.podium .slot.third .av { background: linear-gradient(135deg, #CD7F32, #8B4513); color: var(--bg); border-color: #B87333; }
.podium .slot .nm { font-size: 12px; font-weight: 600; text-align: center; }
.podium .slot .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.podium .slot.first .pts { color: var(--gold); }
.podium .slot.second .pts, .podium .slot.third .pts { color: var(--ink-2); }
.podium .bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--ink-2);
}
.podium .slot.first .bar {
  height: 80px;
  background: linear-gradient(180deg, rgba(200,168,75,0.25), rgba(200,168,75,0.05));
  border-color: rgba(200,168,75,0.4); color: var(--gold);
}
.podium .slot.second .bar { height: 60px; }
.podium .slot.third .bar { height: 44px; }

/* ---------- Rank list ---------- */
.rank-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.rank-row {
  display: grid; grid-template-columns: 32px 36px 1fr auto;
  gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink-2); text-align: center; }
.rank-row .info .nm { font-size: 13px; font-weight: 500; }
.rank-row .info .sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.rank-row .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.rank-row .pts.gold { color: var(--gold); }

/* ---------- Me row (highlighted) ---------- */
.me-row {
  background: linear-gradient(90deg, rgba(141,184,64,0.18), transparent 80%);
  border: 1px solid var(--lime);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: grid; grid-template-columns: 36px 36px 1fr auto; gap: 12px; align-items: center;
}
.me-row .rk { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--lime); text-align: center; }
.me-row .nm { font-size: 13px; font-weight: 600; }
.me-row .sub { font-size: 11px; color: var(--ink-2); }
.me-row .pts { font-family: var(--mono); font-weight: 600; color: var(--lime); font-size: 14px; }

/* ---------- Segment control ---------- */
.seg {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px;
}
.seg button {
  background: transparent; border: 0; color: var(--ink-2);
  font-family: var(--body); font-weight: 600; font-size: 12px;
  padding: 8px 4px; border-radius: 6px; letter-spacing: 0.04em; cursor: pointer;
}
.seg button.on { background: var(--lime); color: var(--bg); }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-2); border-radius: 99px;
  padding: 7px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0;
  font-family: var(--body); cursor: pointer; text-decoration: none;
  display: inline-block;
}
.chip.on { background: var(--lime); color: var(--bg); border-color: var(--lime); }
a.chip { color: var(--ink-2); }
a.chip.on { color: var(--bg); }

/* ---------- History rows ---------- */
.hist-row {
  padding: 12px 16px;
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hist-row:last-child { border-bottom: none; }
.hist-row .ic-bg {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime-soft); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.hist-row .ic-bg.gold { background: var(--gold-soft); color: var(--gold); }
.hist-row .nm { font-size: 13px; font-weight: 500; }
.hist-row .dt { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }
.hist-row .pts { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.hist-row .pts.up { color: var(--success); }
.hist-row .pts.down { color: var(--error); }

/* ---------- Auth ---------- */
.auth-screen {
  position: relative; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 22px 40px;
  color: var(--ink);
  min-height: 100vh;
  width: 100%;
}
.auth-screen > .logo-mark,
.auth-screen > .auth-card {
  width: 100%;
  max-width: 390px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  position: relative; z-index: 5;
  display: grid; gap: 14px;
}
.auth-card h2 {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; text-transform: uppercase;
  margin: 0; letter-spacing: -0.005em; line-height: 1.0;
}
.auth-card .sub { color: var(--ink-2); font-size: 13px; margin-top: -8px; margin-bottom: 4px; }
.auth-card .forgot { text-align: right; font-size: 12px; color: var(--lime); }
.auth-card .footnote { text-align: center; font-size: 12px; color: var(--ink-2); padding-top: 4px; }
.auth-card .footnote .lk { color: var(--lime); font-weight: 600; text-decoration: none; }
.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer;
}
.logo-mark {
  text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 24px; text-transform: uppercase;
  letter-spacing: -0.005em; margin-bottom: 18px;
  color: var(--ink);
}
.logo-mark .star { color: var(--gold); }

/* strength bar */
.strength-bar { display: flex; gap: 4px; margin-top: 4px; align-items: center; }
.strength-bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.strength-bar.weak i:nth-child(1) { background: var(--error); }
.strength-bar.medium i:nth-child(1), .strength-bar.medium i:nth-child(2) { background: var(--warn); }
.strength-bar.strong i { background: var(--success); }
.strength-bar .lbl { font-size: 10px; margin-left: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.strength-bar.weak .lbl { color: var(--error); }
.strength-bar.medium .lbl { color: var(--warn); }
.strength-bar.strong .lbl { color: var(--success); }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--ink-2); flex: none;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
  cursor: pointer;
}
.checkbox.checked { background: var(--lime); border-color: var(--lime); color: var(--bg); }

/* ---------- Ridge background ---------- */
.ridge-bg {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 200px; pointer-events: none; opacity: 0.45;
}

/* ---------- Empty state ---------- */
.empty-card {
  background: rgba(22,26,18,0.4);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 24px 18px;
  text-align: center; display: grid; gap: 8px;
}
.empty-card .ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime-soft); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; color: var(--lime);
}
.empty-card h4 { font-family: var(--headline); font-weight: 600; font-size: 15px; margin: 0; }
.empty-card p { font-size: 12px; color: var(--ink-2); margin: 0; }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 10px;
  display: grid; gap: 4px; text-align: center;
}
.stat-card .num { font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--lime); }
.stat-card .num.gold { color: var(--gold); }
.stat-card .lbl { font-size: 9px; color: var(--ink-2); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Greet header ---------- */
.greet { font-size: 11px; color: var(--ink-2); letter-spacing: 0.06em; }
.uname { font-weight: 700; font-size: 15px; }

/* ---------- Utility ---------- */
.cap {
  font-family: var(--body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.h-display {
  font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95;
}
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 24px; height: 24px; }

.messages { list-style: none; padding: 0 18px; margin: 8px 0 0; }
.messages li {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; margin-bottom: 6px;
}
.messages .error { background: var(--error-soft); color: var(--error); border: 1px solid var(--error); }
.messages .success { background: var(--success-soft); color: var(--success); border: 1px solid var(--success); }
