/* =========================================================
   Retirement Ready — Professional System (Blue / Slate)
   Updated palette per April 2026 brand refresh.
   =========================================================

   Brand tokens
   ------------
   Primary     #1F7AED   (actions, links, hero headings)
   Primary-600 #0F5BD1   (hover / pressed)
   Primary-50  #EEF4FF   (tints, chart fills, selected rows)
   Success     #10B981   (on-track, positive delta)
   Warning     #F59E0B   (review, caution)
   Danger      #EF4444   (off-track, negative delta)

   Neutrals follow a slate ramp (50→900). App canvas is
   #F7F8FA with #FFFFFF cards and #E5E7EB borders.

   Headings are blue Inter 600 (no serif). Hero metrics use
   Inter 700 tabular-nums. Serif is retired.
*/

:root {
  /* ----- Brand (new) ----- */
  --primary:       #1F7AED;
  --primary-600:   #0F5BD1;
  --primary-700:   #0A47A8;
  --primary-50:    #EEF4FF;
  --primary-100:   #DCE8FE;
  --primary-tint:  #EEF4FF;

  --success:       #10B981;
  --success-600:   #059669;
  --success-50:    #ECFDF5;
  --success-100:   #D1FAE5;

  --warning:       #F59E0B;
  --warning-50:    #FFFBEB;
  --warning-100:   #FEF3C7;

  --danger:        #EF4444;
  --danger-50:     #FEF2F2;
  --danger-100:    #FEE2E2;

  /* ----- Slate neutrals ----- */
  --ink:    #0F172A;   /* slate-900 */
  --ink-2:  #334155;   /* slate-700 */
  --ink-3:  #64748B;   /* slate-500 */
  --ink-4:  #94A3B8;   /* slate-400 */
  --ink-5:  #CBD5E1;   /* slate-300 */

  --line:    #E5E7EB;
  --line-2:  #D1D5DB;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #F1F3F7;
  --bg:      #F7F8FA;

  /* ----- Legacy aliases (kept so existing markup keeps working) ----- */
  --green-deep: var(--primary);      /* primary actions */
  --green:      var(--primary-600);
  --sage:       var(--success);
  --green-tint: var(--primary-50);
  --sage-tint:  var(--success-50);
  --mauve:      var(--danger);
  --mauve-tint: var(--danger-50);
  --cream:      var(--surface-2);
  --cream-50:   var(--surface-2);
  --cream-100:  var(--primary-50);

  /* ----- Radii ----- */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* ----- Type scale (driven by --fs stepper) ----- */
  --fs: 1;
  --fs-xs:  calc(12px * var(--fs));
  --fs-sm:  calc(14px * var(--fs));
  --fs-md:  calc(15px * var(--fs));
  --fs-lg:  calc(18px * var(--fs));
  --fs-xl:  calc(22px * var(--fs));
  --fs-2xl: calc(28px * var(--fs));
  --fs-3xl: calc(36px * var(--fs));
  --fs-4xl: calc(44px * var(--fs));

  /* ----- Shadow ----- */
  --sh-sm: 0 1px 2px rgba(15,23,42,0.04);
  --sh-md: 0 2px 6px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --sh-lg: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --sh-xl: 0 20px 40px rgba(15,23,42,0.12), 0 4px 10px rgba(15,23,42,0.05);

  /* ----- Focus ----- */
  --focus-ring: 0 0 0 3px rgba(31,122,237,0.22);

  /* ----- Layout ----- */
  --dock-h: 88px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

/* ---------- Typography ---------- */
/* Headings are Inter 600, blue primary for hero verdicts. */
.serif { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; }

.h1 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-4xl); line-height: 1.1;  letter-spacing: -0.025em; color: var(--primary); }
.h2 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-3xl); line-height: 1.15; letter-spacing: -0.02em;  color: var(--ink); }
.h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--fs-2xl); line-height: 1.2;  letter-spacing: -0.015em; color: var(--ink); }
.h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--fs-xl);  line-height: 1.25; letter-spacing: -0.01em;  color: var(--ink); }
.h5 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: var(--fs-lg);  line-height: 1.3;  color: var(--ink); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: calc(11px * var(--fs));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-xs { font-size: var(--fs-xs); }
.t-sm { font-size: var(--fs-sm); }
.t-md { font-size: var(--fs-md); }
.t-lg { font-size: var(--fs-lg); }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-xs); letter-spacing: 0; color: var(--ink-3); }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.num-serif {
  /* Name kept for back-compat; now renders as bold Inter. */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: calc(18px * var(--fs));
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(15,23,42,0.15);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Accessibility stepper */
.fs-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.fs-stepper .label {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding: 0 10px 0 8px;
  font-weight: 500;
}
.fs-stepper button {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  min-height: 32px;
  min-width: 36px;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.fs-stepper button:hover { background: #fff; }
.fs-stepper button[data-active="true"] {
  background: var(--primary);
  color: #fff;
}
.fs-stepper .t1 { font-size: 13px; }
.fs-stepper .t2 { font-size: 16px; }
.fs-stepper .t3 { font-size: 19px; }
.fs-stepper .t4 { font-size: 22px; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* ---------- Nav tabs ---------- */
.nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav button {
  background: transparent;
  border: none;
  padding: 14px 14px;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav button:hover { color: var(--ink); }
.nav button[data-active="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.nav button .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---------- Layout ---------- */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 28px calc(var(--dock-h) + 60px);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.page-head .lede { color: var(--ink-2); font-size: var(--fs-lg); margin-top: 10px; max-width: 640px; line-height: 1.45; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.card-tight { padding: 16px; }
.card-lg    { padding: 28px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head .eyebrow { margin: 0; }

.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
  min-height: 40px;
  transition: all .15s ease;
  letter-spacing: -0.005em;
}
.btn:hover { border-color: var(--ink-4); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--primary); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }

/* .btn-accent = the hero CTA in new system → blue primary */
.btn-accent {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(15,91,209,0.25);
}
.btn-accent:hover { background: var(--primary-600); border-color: var(--primary-600); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { padding: 6px 10px; min-height: 30px; font-size: var(--fs-xs); }
.btn-lg { padding: 12px 22px; font-size: var(--fs-md); min-height: 48px; font-weight: 600; }

/* ---------- Field ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.field .input {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-md);
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.field .input:hover { border-color: var(--ink-4); }
.field .input:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.field .input.big {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--fs-xl);
  min-height: 54px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.field .input.big .prefix { color: var(--ink-3); margin-right: 8px; font-family: 'Inter', sans-serif; font-size: var(--fs-sm); font-weight: 500; }
.field .help { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Chips / Badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.6;
}
.chip.ok    { background: var(--success-50);  border-color: transparent; color: var(--success-600); }
.chip.watch { background: var(--warning-50);  border-color: transparent; color: #92620B; }
.chip.bad   { background: var(--danger-50);   border-color: transparent; color: #B91C1C; }
.chip.info  { background: var(--primary-50);  border-color: transparent; color: var(--primary-600); }
.chip .d { width: 6px; height: 6px; border-radius: 50%; }
.chip.ok .d    { background: var(--success); }
.chip.watch .d { background: var(--warning); }
.chip.bad .d   { background: var(--danger); }
.chip.info .d  { background: var(--primary); }

.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: calc(11px * var(--fs));
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-3);
}

/* ---------- KPI ---------- */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi .label { font-size: calc(11px * var(--fs)); color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.kpi .value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.kpi .value.accent { color: var(--primary); }
.kpi .delta { font-size: var(--fs-xs); color: var(--ink-3); }
.kpi .delta.up   { color: var(--success-600); }
.kpi .delta.down { color: var(--danger); }

/* ---------- Slider ---------- */
.slider {
  position: relative;
  height: 32px;
  padding: 4px 0;
}
.slider .track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transform: translateY(-50%);
}
.slider .fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateY(-50%);
}
.slider .knob {
  position: absolute;
  top: 50%;
  width: 20px; height: 20px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--sh-sm);
}

/* ---------- Chart axis ---------- */
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: calc(11px * var(--fs));
  color: var(--ink-4);
  margin-top: 8px;
}

/* ---------- Phone ---------- */
.phone {
  width: 340px;
  border: 1px solid var(--line-2);
  border-radius: 36px;
  background: var(--surface);
  padding: 12px 10px 20px;
  box-shadow: var(--sh-lg);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 5px;
  background: var(--ink);
  border-radius: 3px;
}
.phone-inner {
  padding: 24px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Utility ---------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.wrap-ok { flex-wrap: wrap; }
.grow { flex: 1; }
.g-1 { gap: 8px; }
.g-2 { gap: 12px; }
.g-3 { gap: 16px; }
.g-4 { gap: 24px; }
.g-5 { gap: 32px; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.mt-0 { margin-top: 0; } .mt-1{margin-top:8px;} .mt-2{margin-top:12px;} .mt-3{margin-top:16px;} .mt-4{margin-top:24px;} .mt-5{margin-top:32px;}
.mb-1{margin-bottom:8px;} .mb-2{margin-bottom:12px;} .mb-3{margin-bottom:16px;} .mb-4{margin-bottom:24px;}
.text-c { text-align: center; }
.text-r { text-align: right; }
.hidden { display: none !important; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =====================================================
   Screen visibility
   ===================================================== */
.screen { display: none; }
.screen[data-active="true"] { display: block; }

/* =====================================================
   AI Dock (fixed bottom)
   ===================================================== */
.ai-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(15,23,42,0.05);
}
.ai-dock-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ai-spark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15,91,209,0.25);
}
.ai-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  padding: 6px 6px 6px 16px;
  min-height: 46px;
}
.ai-input-wrap:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.ai-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-md);
  color: var(--ink);
  background: transparent;
  padding: 6px 0;
}
.ai-input::placeholder { color: var(--ink-4); }
.ai-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 4px;
}
.ai-chips::-webkit-scrollbar { display: none; }
.ai-chip {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.ai-chip:hover { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-600); }
.ai-source-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.ai-source-toggle button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
}
.ai-source-toggle button[data-active="true"] {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--sh-sm);
}
.ai-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.ai-send:hover { background: var(--primary-600); }

/* AI expanded tray */
.ai-tray {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 28px 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.ai-dock.open .ai-tray { max-height: 420px; overflow-y: auto; }

/* =====================================================
   Event tracker
   ===================================================== */
.event-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}
.event-card:hover { border-color: var(--primary-100); box-shadow: var(--sh-sm); }
.event-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--ink-2);
  font-size: 18px;
  font-weight: 600;
}
.event-icon.ca  { background: var(--danger-50);  color: #B91C1C; }
.event-icon.us  { background: var(--primary-50); color: var(--primary-600); }
.event-icon.eco { background: var(--success-50); color: var(--success-600); }
.event-icon.mkt { background: var(--warning-50); color: #92620B; }

.toggle {
  position: relative;
  width: 40px; height: 24px;
  background: var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  border: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: var(--sh-sm);
}
.toggle[data-on="true"] { background: var(--primary); }
.toggle[data-on="true"]::after { transform: translateX(16px); }

/* =====================================================
   Tweaks panel
   ===================================================== */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: calc(var(--dock-h) + 12px);
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--sh-xl);
  z-index: 200;
  font-size: var(--fs-sm);
  display: none;
}
.tweaks h4 {
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks h4 button {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--ink-3);
}
.tweak-row { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.tweak-row label { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.tweak-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: var(--fs-sm);
  background: #fff;
}
