/* The Gut Benchmark — one coherent New-York-Times editorial system.
   Serif (Georgia) for the masthead + headlines; system sans for UI/body;
   tiny letter-spaced uppercase sans kickers; hairline rules; ink on warm paper.
   Dependency-free: no external fonts, no libraries. Mobile-hardened 320-414px. */

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1a1a19;
  --ink-soft: #33322e;
  --muted: #6c6b64;
  --faint: #94938c;
  --line: #e2e2e2;
  --line-ink: #1a1a19;
  --wash: #f1f0ea;
  --live: #1a6f52;
  --wait: #a9791b;
  --error: #8a1c11;
  --ok: #1a6f52;
  --focus: #1155cc;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- shared type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
p { margin: 0; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.loading, .empty { color: var(--muted); font-size: 13px; padding: 6px 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px;
  padding: 0 max(18px, calc((100vw - 1120px) / 2));
  background: rgba(250, 249, 246, 0.92);
  border-bottom: 1px solid var(--line-ink);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(17px, 3.4vw, 22px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.live-state { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wait); box-shadow: 0 0 0 3px rgba(169,121,27,0.16);
}
.live-state.connected .live-dot { background: var(--live); box-shadow: 0 0 0 3px rgba(26,111,82,0.16); }

/* ---------- layout shell ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 18px 40px; }

.intro { padding: clamp(34px, 6vw, 60px) 0 28px; border-bottom: 1px solid var(--line); }
h1 {
  max-width: 20ch;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lede { max-width: 62ch; margin-top: 20px; color: var(--ink-soft); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; }

.metric-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line);
}
.metric-strip div { min-width: 0; padding: 15px 14px 15px 0; display: flex; flex-direction: column; gap: 3px; }
.metric-strip div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.metric-strip strong { font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 2.6vw, 22px); overflow-wrap: anywhere; }
.metric-strip span { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- section leads ---------- */
.section-lead { padding: clamp(38px, 6vw, 60px) 0 8px; }
.section-lead h2 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.06; }
.section-note { max-width: 68ch; margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- vote + results workspace ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.vote-panel { min-width: 0; }
.form-section { padding: clamp(24px, 3.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 30px; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.step {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.section-heading h2 { font-size: clamp(19px, 2.6vw, 24px); }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 22px; }
legend {
  width: 100%; padding: 0 0 9px; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.model-groups { display: grid; gap: 22px; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.model-option { position: relative; min-width: 0; }
.model-option input { position: absolute; opacity: 0; pointer-events: none; }
.model-option span {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 66px; min-width: 0; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.model-option span:hover { border-color: var(--ink); }
.model-option b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.model-option small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.model-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.model-option input:checked + span small { color: rgba(250,249,246,0.72); }

/* use-case chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 16px; }
.chip-grid label { position: relative; }
.chip-grid input { position: absolute; opacity: 0; }
.chip-grid span {
  display: block; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 13px;
}
.chip-grid span:hover { border-color: var(--ink); }
.chip-grid input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.text-field { display: grid; gap: 6px; min-width: 0; }
.text-field span { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.text-field input, .text-field textarea, .price-field input {
  width: 100%; min-width: 0; padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: 0; font-size: 15px;
}
.text-field textarea { resize: vertical; line-height: 1.5; }

.price-field { display: grid; grid-template-columns: 62px minmax(0, 1fr); max-width: 320px; }
.price-field .currency {
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.price-field input { border-left: 0; }

/* submit rows (shared across all forms) */
.submit-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 22px; }
button {
  min-height: 46px; padding: 0 22px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; transition: background .15s, color .15s;
}
button:hover { background: var(--surface); color: var(--ink); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.status { margin: 0; min-width: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.status.error { color: var(--error); font-weight: 700; }
.status.success { color: var(--ok); font-weight: 700; }
.status.notice { color: var(--ink-soft); font-weight: 700; }

/* focus visibility everywhere */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent); outline-offset: 2px; }
.model-option input:focus-visible + span,
.chip-grid input:focus-visible + span,
.feel-option input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent); outline-offset: 2px;
}

/* ---------- leaderboard (split by tier) ---------- */
.results { min-width: 0; }
.results-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 30px; margin-bottom: 8px; }
.results-header h2 { font-size: clamp(20px, 2.8vw, 26px); }
#updated-at { flex: 0 0 auto; color: var(--muted); font-size: 11px; text-align: right; }

.leaderboard-tabs {
  display: flex; gap: 0; width: 100%; overflow-x: auto;
  margin: 12px 0 0; border-bottom: 1px solid var(--line);
  scrollbar-width: thin; overscroll-behavior-inline: contain;
}
.leaderboard-tab {
  flex: 0 0 auto; min-height: 38px; padding: 0 11px;
  border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0; white-space: nowrap;
}
.leaderboard-tab:hover { background: transparent; color: var(--ink); }
.leaderboard-tab[aria-selected="true"] {
  border-bottom-color: var(--ink); background: transparent; color: var(--ink);
}
.leaderboard-view-note {
  min-height: 33px; padding: 9px 0 7px;
  color: var(--muted); font-size: 11px; line-height: 1.45;
}
.leaderboard-groups { display: grid; gap: 22px; }
.lb-group { min-width: 0; }
.tier-title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 8px; border-bottom: 1px solid var(--line-ink);
}
.leaderboard { list-style: none; margin: 8px 0 0; padding: 0; }
.leader-row { padding: 12px 0; border-top: 1px solid var(--line); }
.leader-row:first-child { border-top: 0; }
.leader-line { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.rank { color: var(--faint); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.leader-name { min-width: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.leader-value { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; margin: 8px 0 6px 32px; background: var(--wash); overflow: hidden; }
.bar-fill { height: 100%; min-width: 0; background: var(--ink); transition: width .35s ease; }
.leader-row[data-tier="workhorse"] .bar-fill { background: var(--muted); }
.use-case-line { margin: 0 0 0 32px; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }

.price-result { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line-ink); border-bottom: 1px solid var(--line); }
.price-result h3 { font-size: 14px; margin-bottom: 12px; }
.price-range { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.price-range strong { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 30px); }
.price-range span { color: var(--muted); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.method-note { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* ---------- radar (silent-downgrade) ---------- */
.radar { border-top: 1px solid var(--line-ink); }
.feel-form { padding: 8px 0 4px; }
.feel-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
.feel-field { display: grid; gap: 6px; min-width: 0; }
.feel-field span { font-size: 12px; font-weight: 700; }
.feel-field select {
  width: 100%; min-width: 0; padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0; font-size: 15px;
}
.feel-scale { min-width: 0; }
.feel-scale-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.feel-option { position: relative; min-width: 0; }
.feel-option input { position: absolute; opacity: 0; pointer-events: none; }
.feel-option span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; min-width: 0; padding: 9px 6px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.feel-option b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.feel-option small { font-size: 10.5px; line-height: 1.2; color: var(--muted); overflow-wrap: anywhere; }
.feel-option span:hover { border-color: var(--ink); }
.feel-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feel-option input:checked + span small { color: rgba(250,249,246,0.75); }

.feel-market { margin-top: 24px; border-top: 1px solid var(--line-ink); }
.feel-market-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  padding: 22px 0 16px;
}
.feel-quote { min-width: 0; }
.feel-chart-model {
  font-family: var(--serif); font-size: clamp(20px, 3.3vw, 29px); font-weight: 600;
  line-height: 1.12; overflow-wrap: anywhere;
}
.feel-chart-value { display: flex; align-items: baseline; gap: 7px; margin-top: 5px; }
.feel-chart-value strong {
  font-family: var(--serif); font-size: clamp(34px, 6vw, 54px); font-weight: 600;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.feel-chart-value span { color: var(--faint); font-size: 13px; font-weight: 700; }
.feel-chart-change { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.feel-chart-change.is-up { color: var(--ok); }
.feel-chart-change.is-down { color: var(--error); }
.feel-chart-change.is-flat { color: var(--ink-soft); }
.feel-chart-meta { margin-top: 3px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }

.feel-range-tabs {
  display: inline-grid; grid-template-columns: repeat(4, minmax(44px, 1fr));
  align-self: end; border: 1px solid var(--line); background: var(--surface);
}
.feel-range-tabs button {
  min-height: 38px; padding: 7px 11px; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.feel-range-tabs button:first-child { border-left: 0; }
.feel-range-tabs button:hover { background: var(--wash); color: var(--ink); }
.feel-range-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.feel-range-tabs button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--focus); outline-offset: 2px; }

.feel-chart {
  position: relative; min-height: 250px; padding: 8px 0 0;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.feel-chart > .loading, .feel-chart > .empty { padding: 28px 18px; }
.feel-chart-svg { display: block; width: 100%; height: auto; min-height: 250px; touch-action: pan-y; }
.feel-chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.feel-chart-grid.is-expected { stroke: var(--faint); stroke-dasharray: 4 5; }
.feel-chart-y-label, .feel-chart-x-label {
  fill: var(--faint); font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums;
}
.feel-chart-area { fill: rgba(26, 111, 82, 0.12); stroke: none; }
.feel-chart-line {
  fill: none; stroke: var(--live); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.feel-chart-dot { fill: var(--surface); stroke: var(--live); stroke-width: 2; vector-effect: non-scaling-stroke; }
.feel-chart-crosshair {
  stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.feel-chart-focus {
  fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.feel-chart-tooltip {
  position: absolute; top: 14px; z-index: 2; display: grid; gap: 2px;
  min-width: 126px; padding: 9px 11px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  transform: translateX(12px); pointer-events: none;
  box-shadow: 0 5px 18px rgba(26, 26, 25, 0.14);
}
.feel-chart-tooltip.align-right { transform: translateX(calc(-100% - 12px)); }
.feel-chart-tooltip[hidden] { display: none; }
.feel-tooltip-day, .feel-tooltip-count { color: rgba(250, 249, 246, 0.72); font-size: 10px; }
.feel-tooltip-value { font-family: var(--serif); font-size: 18px; line-height: 1.15; }

.radar-scale-note { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feel-model-switcher { display: grid; gap: 24px; margin-top: 28px; }
.feel-model-group { min-width: 0; }
.feel-model-group .tier-title { margin-bottom: 10px; }
.feel-model-buttons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feel-model-button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline;
  min-height: 74px; min-width: 0; padding: 12px 13px; text-align: left;
  background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); cursor: pointer;
}
.feel-model-button:hover { background: var(--wash); }
.feel-model-button[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--live); background: rgba(26, 111, 82, 0.055); }
.feel-model-button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--focus); outline-offset: -2px; }
.feel-model-button-name { min-width: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.feel-model-button-score { font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; }
.feel-model-button-detail {
  grid-column: 1 / -1; color: var(--faint); font-size: 10.5px; font-weight: 400; overflow-wrap: anywhere;
}

/* ---------- forum (field notes) ---------- */
.forum { border-top: 1px solid var(--line-ink); }

/* community-forum call-to-action: a quiet card that frames the two tiers
   (inline quick notes vs the full threaded forum) */
.forum-cta {
  max-width: 760px; margin: 10px 0 6px;
  display: grid; gap: 9px;
  padding: clamp(16px, 3vw, 22px);
  background: var(--surface); border: 1px solid var(--line);
}
.forum-cta-title { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.12; }
.forum-cta-note { max-width: 60ch; color: var(--ink-soft); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.forum-cta-link {
  justify-self: start; margin-top: 2px; max-width: 100%;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid var(--ink);
  transition: color .15s, border-color .15s; overflow-wrap: anywhere;
}
.forum-cta-link:hover { color: var(--muted); border-color: var(--muted); }
.forum-cta-link.is-disabled { color: var(--faint); border-color: var(--line); cursor: default; pointer-events: none; }

.forum-body { max-width: 760px; margin-top: 8px; }
.compose { border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; }
.compose > summary {
  cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 14px;
  list-style: none;
}
.compose > summary::-webkit-details-marker { display: none; }
.compose > summary::before { content: "+ "; color: var(--muted); }
.compose[open] > summary::before { content: "\2212 "; }
.thread-form, .reply-form { display: grid; gap: 14px; padding: 4px 16px 18px; }

.forum-list { list-style: none; margin: 0; padding: 0; }
.forum-item { border-top: 1px solid var(--line); }
.forum-item:first-child { border-top: 0; }
.forum-item-btn {
  display: grid; gap: 5px; width: 100%; text-align: left;
  padding: 15px 4px; min-height: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.forum-item-btn:hover { background: none; color: var(--ink); }
.forum-item-btn:hover .forum-item-title { text-decoration: underline; text-underline-offset: 3px; }
.forum-item-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.forum-item-excerpt { color: var(--ink-soft); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.forum-item-meta { color: var(--muted); font-size: 11px; letter-spacing: 0.02em; overflow-wrap: anywhere; }

.link-back { min-height: 0; padding: 6px 0; margin-bottom: 12px; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.link-back:hover { background: none; color: var(--ink); }
.thread-detail { min-width: 0; }
.thread-detail:focus { outline: none; }
.thread-title { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.1; }
.thread-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.thread-body { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.replies-head { margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--line-ink); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reply-list { list-style: none; margin: 0; padding: 0; }
.reply-item { padding: 14px 0; border-top: 1px solid var(--line); }
.reply-item:first-child { border-top: 0; }
.reply-meta { color: var(--muted); font-size: 11px; }
.reply-body { margin-top: 5px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { padding: 24px 0 0; border: 0; }

/* ---------- footer ---------- */
footer {
  max-width: 1120px; margin: 0 auto; padding: 22px 18px 34px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px;
  color: var(--muted); font-size: 11px;
}
.footer-support { min-width: 0; overflow-wrap: anywhere; }
.footer-support a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.footer-support a:hover { color: var(--wait); border-color: var(--wait); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; gap: 8px; }
  .results { border-top: 1px solid var(--line); margin-top: 8px; }
  .results-header { padding-top: 26px; }
  .feel-row { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip div { padding-right: 0; }
  .metric-strip div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .feel-scale-grid { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .feel-market-head { align-items: stretch; flex-direction: column; gap: 16px; }
  .feel-range-tabs { width: 100%; }
  .feel-chart { min-height: 210px; }
  .feel-chart-svg { min-height: 210px; }
  .feel-model-buttons { grid-template-columns: 1fr 1fr; }
  .submit-row { grid-template-columns: 1fr; }
  .submit-row button { width: 100%; }
  footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 390px) {
  .feel-model-buttons { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
