:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #f5f6fb;
  --surface: #ffffff;
  --surface-muted: #f8f8fc;
  --surface-accent: #f0efff;
  --text: #19243a;
  --secondary: #59647a;
  --muted: #7d8799;
  --border: #e2e5ed;
  --border-strong: #cbd1df;
  --accent: #5a4bc8;
  --accent-strong: #4637b4;
  --accent-soft: #eeecff;
  --positive: #12806b;
  --positive-soft: #e5f5f1;
  --warning: #9a5e08;
  --warning-soft: #fff3dd;
  --negative: #a8433f;
  --negative-soft: #ffefed;
  --shadow: 0 14px 34px rgb(31 42 68 / 7%);
  --radius: 18px;
  --radius-small: 11px;
  --content-width: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 56%, white);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--text);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page) 90%, white);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.brand-copy small { color: var(--secondary); font-size: 11px; }

.header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.synthetic-badge,
.browser-only-label,
.evaluation-tag,
.read-only-badge,
.recommendation-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 620;
}

.synthetic-badge {
  padding: 7px 10px;
  border: 1px solid #e9d9ad;
  border-radius: 999px;
  background: #fff8e7;
  color: #76510f;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d29323;
}

.browser-only-label { color: var(--secondary); }

.page-shell { padding: 34px 0 60px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: 44px;
  padding: 18px 0 34px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.095em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 span { color: var(--accent); }

.hero-lede {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.65;
}

.synthetic-disclosure {
  display: flex;
  max-width: 720px;
  align-items: flex-start;
  gap: 11px;
  margin-top: 23px;
  padding: 13px 15px;
  border: 1px solid #eadcb7;
  border-radius: 13px;
  background: #fff9eb;
  color: #57451f;
}

.disclosure-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #f1d894;
  color: #594209;
  font-size: 12px;
  font-weight: 750;
}

.synthetic-disclosure strong { display: block; font-size: 12px; font-weight: 720; }
.synthetic-disclosure p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; }

.model-summary {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-heading { display: flex; align-items: center; gap: 12px; }

.summary-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
}

.summary-heading > div { display: grid; gap: 2px; }
.summary-label { color: var(--secondary); font-size: 11px; }
.summary-heading strong { font-size: 16px; font-weight: 700; }

.summary-facts {
  display: grid;
  gap: 0;
  margin: 17px 0 0;
  border-top: 1px solid var(--border);
}

.summary-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.summary-facts dt { color: var(--secondary); font-size: 12px; }
.summary-facts dd { margin: 0; font-size: 12px; font-weight: 650; text-align: right; }

.privacy-note {
  margin: 13px 0 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.5;
}

.dashboard-section { margin-top: 42px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-heading > div > p:last-child {
  max-width: 690px;
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}

.compact-heading { align-items: center; }

.scoring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgb(31 42 68 / 4%);
}

.scenario-panel { padding: 22px; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading h3,
.integration-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 670;
  letter-spacing: -0.02em;
}

.step-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.field-count,
.sample-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 630;
}

.project-name-field,
.scenario-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 620;
}

.project-name-field { margin-bottom: 22px; }

.project-name-field > span,
.scenario-field > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.project-name-field small,
.scenario-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
}

.scenario-field input,
.scenario-field select,
.project-name-field input,
.integration-card select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 470;
}

.scenario-field input:hover,
.scenario-field select:hover,
.project-name-field input:hover,
.integration-card select:hover { border-color: #aeb6c7; }

.project-name-field input::placeholder { color: #9ba3b1; }

.feature-groups { display: grid; gap: 22px; }

.feature-group { min-width: 0; }

.feature-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.feature-group-header h4 { margin: 0; font-size: 13px; font-weight: 680; }
.feature-group-header p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }

.scenario-field .training-range {
  color: var(--muted);
  font-size: 9px;
  font-weight: 430;
  line-height: 1.3;
}

.scenario-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.scenario-actions p { margin: 0; color: var(--secondary); font-size: 10px; text-align: right; }

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover:not(:disabled) { background: var(--accent-strong); }
.button-secondary { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.button-secondary:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-accent); }

.prediction-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 13px;
  padding: 22px;
}

.prediction-header h3 { margin: 3px 0 0; font-size: 17px; font-weight: 670; line-height: 1.35; letter-spacing: -0.02em; }

.probability-value {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: clamp(42px, 5vw, 57px);
  font-weight: 740;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.probability-meter {
  position: relative;
  height: 10px;
  overflow: visible;
  border-radius: 99px;
  background: #e9eaf2;
}

.probability-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48b7a2 0%, #e3aa4a 67%, #d66a61 100%);
  transition: width 160ms ease-out;
}

.threshold-marker {
  position: absolute;
  top: -4px;
  left: 42.5%;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-1px);
  transition: left 100ms ease-out;
}

.meter-labels { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.meter-labels span:nth-child(2) { color: var(--secondary); font-weight: 600; }

.risk-flag {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 690;
}

.risk-flag.is-flagged { border-color: #ecc8bd; background: var(--negative-soft); color: #883c35; }
.risk-flag.is-below { border-color: #c7e6dd; background: var(--positive-soft); color: #126756; }

.prediction-explanation { margin: -3px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.55; }

.threshold-control {
  display: grid;
  gap: 7px;
  margin-top: 5px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}

.threshold-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.threshold-heading label { font-size: 12px; font-weight: 660; }
.threshold-heading output { color: var(--accent-strong); font-size: 13px; font-weight: 730; font-variant-numeric: tabular-nums; }

#threshold-slider {
  width: 100%;
  margin: 5px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.threshold-bounds { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.threshold-control p { margin: 1px 0 0; color: var(--secondary); font-size: 10px; line-height: 1.5; }

.inline-warning {
  padding: 10px 11px;
  border: 1px solid #edd8ac;
  border-radius: 10px;
  background: var(--warning-soft);
  color: #755315;
  font-size: 11px;
  line-height: 1.45;
}

.prediction-footer { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }

.comparison-section { margin-top: 34px; }
.comparison-summary { display: flex; align-items: center; gap: 14px; color: var(--secondary); font-size: 11px; }
.comparison-summary strong { color: var(--text); font-size: 14px; font-weight: 710; }

.empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, var(--page));
}

.empty-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.empty-state strong { font-size: 12px; }
.empty-state p { margin: 2px 0 0; color: var(--secondary); font-size: 11px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.table-wrap[hidden] { display: none; }

table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 11px; }
thead th { background: var(--surface-muted); color: var(--secondary); font-size: 10px; font-weight: 690; letter-spacing: 0.025em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 610; }
td.numeric-cell { font-variant-numeric: tabular-nums; font-weight: 670; }

.table-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

.table-status.is-flagged { background: var(--negative-soft); color: #883c35; }
.table-status.is-below { background: var(--positive-soft); color: #126756; }

.row-remove {
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--secondary);
  font-size: 10px;
  cursor: pointer;
}

.row-remove:hover { background: var(--negative-soft); color: var(--negative); }
.text-button { margin: 10px 0 10px 10px; padding: 5px; border: 0; background: transparent; color: var(--secondary); font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.text-button:hover { color: var(--negative); }

.recommendations-section { margin-top: 38px; }
.recommendation-badge { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--secondary); }

.recommendation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.recommendation-card {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.recommendation-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 720; }
.recommendation-card strong { display: block; font-size: 12px; font-weight: 680; }
.recommendation-card p { margin: 3px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.recommendation-empty { grid-column: 1 / -1; padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--secondary); font-size: 12px; }

.integrations-section { margin-top: 40px; }
.read-only-badge { padding: 7px 10px; border: 1px solid #c7e6dd; border-radius: 999px; background: var(--positive-soft); color: #126756; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.integration-card { display: grid; align-content: start; gap: 10px; padding: 18px; }
.integration-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.integration-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: white; font-size: 17px; font-weight: 740; }
.jira-mark { background: #2864cf; }
.trello-mark { background: #1678a9; }
.integration-card h3 { margin: 0; }
.integration-card-heading p { margin: 2px 0 0; color: var(--secondary); font-size: 10px; }
.connection-status { min-height: 18px; color: var(--secondary); font-size: 11px; }
.connection-status.is-ready { color: var(--positive); }
.connection-status.is-error { color: var(--negative); }
.integration-select-label { margin-top: 3px; color: var(--secondary); font-size: 10px; font-weight: 650; }
.integration-card .button { justify-self: start; }
.integration-footnote { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
code { padding: 1px 4px; border-radius: 4px; background: var(--surface-muted); color: var(--text); font-size: 9px; }

.integration-caveat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-accent);
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.5;
}

.integration-caveat strong { color: var(--text); white-space: nowrap; }

.evaluation-section { margin-top: 42px; }
.evaluation-tag { padding: 7px 10px; border: 1px solid #e9d9ad; border-radius: 999px; background: #fff8e7; color: #76510f; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }

.metric-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.metric-card span { display: block; color: var(--secondary); font-size: 10px; font-weight: 590; }
.metric-card strong { display: block; margin-top: 4px; color: var(--text); font-size: 25px; font-weight: 720; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.metric-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.evaluation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.evaluation-panel { padding: 18px; }
.evaluation-panel .panel-heading { align-items: center; margin-bottom: 14px; }
.evaluation-panel .panel-heading h3 { font-size: 15px; }
.confusion-wrap { border-radius: 11px; }
.confusion-table caption { padding: 8px 10px; color: var(--muted); font-size: 9px; text-align: left; }
.confusion-table th, .confusion-table td { padding: 9px 10px; font-size: 10px; }
.confusion-table tbody td { font-variant-numeric: tabular-nums; font-weight: 680; }

.importance-list { display: grid; gap: 10px; }
.importance-row { display: grid; grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1.35fr) 42px; align-items: center; gap: 9px; }
.importance-label { overflow: hidden; color: var(--secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.importance-track { height: 8px; overflow: hidden; border-radius: 99px; background: #ececf4; }
.importance-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.importance-value { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.small-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.selection-note {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.5;
}

.selection-note strong { color: var(--text); white-space: nowrap; }

.page-footer {
  display: grid;
  gap: 5px;
  margin-top: 45px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 10px;
  line-height: 1.55;
}

.page-footer p { margin: 0; }
.page-footer strong { color: var(--text); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #111722;
    --surface: #192231;
    --surface-muted: #202b3a;
    --surface-accent: #242541;
    --text: #edf1f8;
    --secondary: #bec7d5;
    --muted: #919daf;
    --border: #303c4d;
    --border-strong: #48566b;
    --accent: #8f83f1;
    --accent-strong: #b8afff;
    --accent-soft: #2c2a4a;
    --positive: #56c5aa;
    --positive-soft: #193a36;
    --warning: #f0bd63;
    --warning-soft: #3d3320;
    --negative: #f08f82;
    --negative-soft: #402a2b;
    --shadow: 0 14px 34px rgb(0 0 0 / 22%);
  }

  .synthetic-badge, .evaluation-tag { border-color: #554b34; background: #332e22; color: #f0d99e; }
  .status-dot { background: #f0bd63; }
  .synthetic-disclosure { border-color: #554b34; background: #332e22; color: #e7d6ad; }
  .disclosure-icon { background: #65542d; color: #fff1cb; }
  .probability-meter, .importance-track { background: #303b4d; }
  .risk-flag.is-flagged { border-color: #694142; color: #ffc2b8; }
  .risk-flag.is-below { border-color: #2b5c50; color: #a5ead8; }
  .table-status.is-flagged { color: #ffc2b8; }
  .table-status.is-below { color: #a5ead8; }
  .read-only-badge { border-color: #2b5c50; color: #a5ead8; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr); gap: 26px; }
  .scoring-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .scenario-panel { padding: 18px; }
  .prediction-panel { padding: 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner, .page-shell { width: min(100% - 32px, var(--content-width)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 10px; }
  .model-summary { max-width: 520px; }
  .scoring-layout { grid-template-columns: minmax(0, 1fr); }
  .prediction-panel { position: static; }
  .section-heading { align-items: flex-start; }
  .integration-grid, .evaluation-grid { grid-template-columns: minmax(0, 1fr); }
  .recommendation-grid { grid-template-columns: minmax(0, 1fr); }
  .recommendation-empty { grid-column: auto; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 64px; }
  .brand-copy small { display: none; }
  .header-status { gap: 0; }
  .browser-only-label { display: none; }
  .synthetic-badge { padding: 6px 8px; font-size: 10px; }
  .page-shell { padding-top: 22px; }
  .hero h1 { font-size: 38px; }
  .section-heading { display: grid; }
  .section-heading h2 { font-size: 22px; }
  .section-heading > .button { justify-self: start; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-group-header { align-items: flex-start; }
  .feature-group-header p { max-width: 48%; }
  .scenario-actions { align-items: flex-start; flex-direction: column; }
  .scenario-actions p { text-align: left; }
  .comparison-summary { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { padding: 12px; }
  .metric-card strong { font-size: 22px; }
  .selection-note, .integration-caveat { align-items: flex-start; flex-direction: column; gap: 2px; }
  .importance-row { grid-template-columns: minmax(80px, 0.8fr) minmax(60px, 1fr) 38px; gap: 7px; }
  .integration-card { padding: 15px; }
}
