:root {
  color-scheme: light;
  --ink: #111817;
  --muted: #64706d;
  --faint: #87908d;
  --line: #d9dedb;
  --line-strong: #b9c2be;
  --surface: #f4f5f1;
  --panel: #ffffff;
  --panel-warm: #fbfaf6;
  --brand: #16615d;
  --brand-dark: #0f3432;
  --accent: #e56f2f;
  --amber: #f1b84b;
  --danger: #c7472f;
  --ok: #39a873;
  --soft: #e9f3ef;
  --shadow: 0 16px 48px rgba(18, 26, 24, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(22, 97, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 97, 93, 0.035) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 241, 0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--brand-dark);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: inset 0 -4px 0 rgba(229, 111, 47, 0.55);
}

nav,
.footer-links,
.hero-actions,
.console-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

nav a,
.footer-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover { color: var(--brand-dark); }

main { min-height: 72vh; }

.workbench-hero,
.lab-panel,
.diagnostic-board,
.page-head,
.article,
.tool-panel,
.type-list,
.template-list,
.content-block {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 58px 0 24px;
}

.bench-copy,
.diagnostic-console,
.lab-panel,
.board-column,
.article-workbench-head,
.content-section,
.answer-box,
.conversion-strip,
.help-cta,
.content-block,
.tool-panel,
.template-panel,
.type-row {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.bench-copy {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.bench-copy::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 176px;
  height: 92px;
  opacity: 0.13;
  background:
    linear-gradient(var(--brand-dark), var(--brand-dark)) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(0deg, var(--brand-dark) 0 6px, transparent 6px 14px);
  border: 2px solid var(--brand-dark);
}

.workbench-hero h1,
.page-head h1,
.article-head h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede,
.page-head p,
.article-head > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-shell {
  display: flex;
  width: min(680px, 100%);
  margin: 26px 0 18px;
  border: 1px solid var(--line-strong);
  background: white;
}

.bench-search { box-shadow: inset 0 0 0 2px rgba(22, 97, 93, 0.04); }

.search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  font: inherit;
  background: transparent;
}

.search-shell button,
.button-link {
  border: 0;
  border-radius: 3px;
  padding: 12px 18px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.search-shell button { border-radius: 0; }
.button-link.secondary { background: var(--brand-dark); }

.diagnostic-console {
  border-radius: 6px;
  padding: 22px;
  color: #eaf3ef;
  background:
    linear-gradient(135deg, rgba(229, 111, 47, 0.16), transparent 34%),
    #132220;
}

.console-topline,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.console-topline { justify-content: space-between; color: #a9bcb6; }

.console-readout {
  margin: 34px 0 24px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.console-readout strong {
  display: block;
  font-size: 78px;
  line-height: 0.9;
}

.console-readout span,
.console-grid span { color: #aac0ba; }

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.console-grid a {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.console-grid strong,
.console-grid span { display: block; }
.console-grid strong { font-size: 26px; }

.lab-panel,
.page-head,
.article,
.tool-panel,
.type-list,
.template-list,
.content-block,
.diagnostic-board { margin-top: 28px; }

.lab-panel {
  padding: 22px;
  border-radius: 6px;
}

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

.section-heading h2,
.content-section h2,
.answer-box h2,
.conversion-strip h2,
.help-cta h2,
.content-block h2 { margin: 0 0 10px; }

.section-heading a { color: var(--brand); font-weight: 800; text-decoration: none; }
.compact-heading h2 { font-size: 20px; }

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  background: var(--soft);
  color: var(--brand-dark);
}

.sample-grid,
.page-grid,
.offer-grid,
.fit-grid,
.detail-grid,
.checklist-grid,
.diagnostic-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.diagnostic-board { align-items: start; }
.detail-grid,
.fit-grid,
.checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px auto; }

.sample-card,
.page-card,
.offer-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-decoration: none;
}

.sample-card { background: var(--panel-warm); }
.sample-card h3,
.page-card h2,
.page-card h3,
.offer-card h3 { margin: 0; line-height: 1.14; }
.sample-card p,
.page-card p,
.offer-card p,
.meta,
.type-pill,
.article-disclaimer { color: var(--muted); }

.sample-visual {
  display: block;
  position: relative;
  min-height: 104px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #f8f7f1;
  overflow: hidden;
}

.sample-visual::before,
.sample-visual::after,
.sample-visual i {
  content: "";
  position: absolute;
  display: block;
}

.sample-1::before {
  inset: 24px 18px;
  background: repeating-linear-gradient(8deg, transparent 0 8px, rgba(229,111,47,.8) 8px 10px);
}
.sample-1::after { width: 70%; height: 2px; left: 16%; top: 52%; background: var(--brand); box-shadow: 0 16px 0 var(--brand), 0 -16px 0 var(--brand); }
.sample-2::before { left: 20px; right: 20px; bottom: 24px; height: 42px; border: 3px solid var(--brand); border-top: 0; transform: skewX(-8deg); }
.sample-2::after { left: 18px; right: 18px; bottom: 20px; height: 8px; background: var(--accent); transform: rotate(-2deg); }
.sample-3::before { inset: 18px; background: repeating-linear-gradient(0deg, rgba(22,97,93,.12) 0 8px, transparent 8px 16px); }
.sample-3::after { left: 26px; right: 26px; bottom: 28px; height: 6px; background: var(--danger); box-shadow: 0 -18px 0 var(--amber), 0 -36px 0 var(--brand); }
.sample-4::before { left: 22px; top: 18px; width: 46px; height: 46px; border: 3px solid var(--danger); border-radius: 50%; }
.sample-4::after { right: 22px; top: 28px; bottom: 24px; width: 3px; background: var(--brand); box-shadow: -12px 8px 0 var(--accent), 12px -5px 0 var(--amber); }

.diagnostic-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 18px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  gap: 24px;
  align-items: end;
}

.diagnostic-intro {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.diagnostic-intro h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-specimen {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.specimen-photo {
  position: relative;
  display: grid;
  min-height: 210px;
}

.specimen-photo img,
.specimen-photo .symptom-visual {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(19,34,32,.9);
  color: white;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.specimen-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.specimen-stack span,
.specimen-stack small {
  color: var(--muted);
}

.specimen-stack strong {
  font-size: clamp(28px, 3vw, 42px);
  line-height: .95;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.82);
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--brand-dark);
}

.diagnostic-search {
  grid-column: 1 / -1;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.symptom-picker,
.diagnostic-workbench {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
}

.symptom-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.symptom-tile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 210px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(18, 26, 24, 0.05);
}

.symptom-tile:hover,
.symptom-tile.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(22, 97, 93, .1), var(--shadow);
}

.symptom-copy {
  display: grid;
  gap: 4px;
  align-content: start;
}

.symptom-copy strong {
  font-size: 22px;
  line-height: 1.12;
}

.symptom-copy small,
.symptom-action,
.symptom-meta {
  color: var(--muted);
  font-size: 13px;
}

.symptom-action {
  display: grid;
  grid-column: 2;
  gap: 8px;
  align-content: start;
}

.symptom-action b {
  color: var(--brand-dark);
}

.symptom-action em {
  width: max-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--brand);
  font-style: normal;
  font-weight: 850;
}

.symptom-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.symptom-meta em {
  color: var(--brand);
  font-style: normal;
  font-weight: 850;
}

.symptom-visual {
  display: block;
  position: relative;
  min-height: 104px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background:
    linear-gradient(rgba(17,24,23,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,23,.05) 1px, transparent 1px),
    #fbfaf6;
  background-size: 18px 18px;
  overflow: hidden;
}

.symptom-photo,
.symptom-tile > .symptom-visual {
  grid-row: 1 / 3;
  width: 100%;
  min-height: 150px;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbfaf6;
}

.symptom-visual::before,
.symptom-visual::after,
.symptom-visual i {
  content: "";
  position: absolute;
  display: block;
}

.symptom-stringing::before {
  left: 18px;
  top: 28px;
  width: 30px;
  height: 58px;
  border: 4px solid var(--brand);
  border-bottom-width: 8px;
}

.symptom-stringing::after {
  right: 18px;
  top: 28px;
  width: 30px;
  height: 58px;
  border: 4px solid var(--brand);
  border-bottom-width: 8px;
}

.symptom-stringing i {
  left: 43px;
  right: 43px;
  top: 36px;
  height: 48px;
  background:
    linear-gradient(16deg, transparent 0 16%, rgba(229,111,47,.9) 17% 19%, transparent 20% 100%),
    linear-gradient(-10deg, transparent 0 25%, rgba(241,184,75,.75) 26% 28%, transparent 29% 100%),
    repeating-linear-gradient(12deg, transparent 0 7px, rgba(229,111,47,.48) 7px 9px);
}

.symptom-warping::before {
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 10px;
  background: var(--brand-dark);
}

.symptom-warping::after {
  left: 26px;
  right: 26px;
  bottom: 34px;
  height: 34px;
  border: 4px solid var(--accent);
  border-top: 0;
  transform: skewX(-8deg) rotate(-2deg);
  transform-origin: center bottom;
  box-shadow: 8px -8px 0 rgba(229,111,47,.22), -10px 6px 0 rgba(22,97,93,.12);
}

.symptom-first-layer::before {
  inset: 24px 18px;
  background: repeating-linear-gradient(0deg, var(--brand) 0 5px, transparent 5px 14px);
}

.symptom-first-layer::after {
  left: 18px;
  right: 18px;
  top: 48px;
  height: 7px;
  background: var(--danger);
  box-shadow: 0 18px 0 rgba(199,71,47,.72);
}

.symptom-first-layer i {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(17,24,23,.18) 0 12px, transparent 12px 18px);
}

.symptom-layer-shift::before {
  left: 30px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: repeating-linear-gradient(0deg, var(--brand) 0 8px, #fff 8px 14px);
  border: 3px solid var(--brand-dark);
}

.symptom-layer-shift::after {
  left: 52px;
  bottom: 66px;
  width: 58px;
  height: 38px;
  background: repeating-linear-gradient(0deg, var(--accent) 0 8px, #fff 8px 14px);
  border: 3px solid var(--danger);
}

.symptom-under-extrusion::before {
  left: 16px;
  right: 16px;
  top: 30px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 22px, transparent 22px 34px);
  box-shadow: 0 24px 0 rgba(22,97,93,.72), 0 48px 0 rgba(22,97,93,.48);
}

.symptom-under-extrusion::after {
  right: 22px;
  top: 18px;
  bottom: 18px;
  width: 12px;
  background: var(--accent);
}

.symptom-under-extrusion i {
  left: 18px;
  right: 36px;
  top: 72px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--danger) 0 14px, transparent 14px 26px);
}

.symptom-klipper::before {
  inset: 20px;
  border: 3px solid var(--brand-dark);
  background: #132220;
}

.symptom-klipper::after {
  left: 32px;
  right: 32px;
  top: 42px;
  height: 8px;
  background: var(--danger);
  box-shadow: 0 18px 0 var(--amber), 0 36px 0 #eaf3ef;
}

.symptom-clogged::before {
  left: 32px;
  top: 18px;
  width: 42px;
  height: 58px;
  border: 4px solid var(--brand-dark);
  border-bottom-width: 14px;
}

.symptom-clogged::after {
  left: 80px;
  top: 56px;
  width: 42px;
  height: 7px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 15px 16px 0 rgba(199,71,47,.65);
}

.symptom-blobs::before {
  left: 30px;
  top: 34px;
  width: 72px;
  height: 88px;
  border-radius: 8px;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 88% 26%, var(--danger) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 58%, var(--danger) 0 4px, transparent 5px),
    repeating-linear-gradient(0deg, rgba(24,33,31,.15) 0 3px, transparent 3px 12px),
    #f4d05d;
}

.symptom-blobs::after {
  right: 28px;
  bottom: 34px;
  width: 54px;
  height: 12px;
  border-radius: 999px;
  background: var(--petg);
  box-shadow: 0 -18px 0 rgba(33, 166, 157, .75), 0 -36px 0 rgba(33, 166, 157, .45);
}

.diagnostic-workbench {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.wizard-panel,
.triage-result,
.triage-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}

.wizard-panel,
.triage-result {
  padding: 22px;
}

.wizard-grid {
  display: grid;
  gap: 12px;
}

.wizard-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.wizard-grid select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.triage-result {
  background: #132220;
  color: #f4faf7;
}

.triage-result h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.triage-result dl,
.triage-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.triage-result div,
.triage-grid div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  background: rgba(255,255,255,.06);
}

.triage-result dt,
.triage-grid dt {
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.triage-result dd,
.triage-grid dd {
  margin: 4px 0 0;
}

.short-path {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(241, 184, 75, .42);
  border-radius: 4px;
  background: rgba(241, 184, 75, .08);
}

.short-path span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.short-path ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.result-branches {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.result-branches > span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.result-branches > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-branches a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.06);
}

.result-branches a:hover {
  border-color: rgba(241, 184, 75, .7);
  background: rgba(241, 184, 75, .12);
}

.result-branches strong {
  color: #fff;
  line-height: 1.2;
}

.result-branches small {
  color: rgba(244,250,247,.76);
  line-height: 1.35;
}

.article-triage {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
  padding: 20px;
  margin: 16px 0;
  background: #fbfaf6;
}

.article-triage .triage-lead h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.article-triage .triage-lead p:last-child {
  color: var(--muted);
}

.article-triage .triage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.article-triage .triage-grid div {
  border-color: var(--line);
  background: white;
}

.article-triage .triage-grid dt {
  color: var(--accent);
}

.article-visual {
  min-height: 150px;
}

.article-photo {
  display: block;
  width: 100%;
  min-height: 150px;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbfaf6;
}

.article-photo.large {
  min-height: 260px;
}

.visual-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 14px;
  margin: 16px 0;
}

.visual-stage,
.bench-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.visual-stage {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: stretch;
}

.visual-stage .symptom-visual,
.visual-stage .article-photo {
  min-height: 260px;
}

.visual-stage h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.image-type-note {
  margin: -4px 0 12px;
  padding: 8px 10px;
  border-left: 4px solid var(--amber);
  background: #fff7de;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.visual-check-grid,
.visual-detail-grid {
  display: grid;
  gap: 12px;
}

.visual-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-check-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.visual-check-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.visual-stage ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.visual-stage li {
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: white;
  color: var(--brand-dark);
}

.bench-card-row {
  display: grid;
  gap: 12px;
}

.bench-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.bench-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.bench-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.bench-card ul,
.visual-check-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.bench-card li,
.visual-check-grid li {
  line-height: 1.35;
}

.pattern-compare-panel {
  display: grid;
  grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

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

.pattern-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  min-height: 178px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.pattern-card > span {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(24,33,31,.12) 0 3px, transparent 3px 15px),
    #f4d05d;
}

.pattern-card > span::before,
.pattern-card > span::after,
.pattern-card > span i {
  content: "";
  position: absolute;
  display: block;
}

.pattern-card.is-seam > span::before {
  top: 12px;
  bottom: 12px;
  left: 58px;
  width: 4px;
  border-radius: 999px;
  background: rgba(24,33,31,.36);
}

.pattern-card.is-seam > span::after {
  top: 26px;
  left: 51px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 36px 0 var(--danger), 0 72px 0 var(--danger);
}

.pattern-card.is-random > span::before {
  top: 24px;
  left: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 54px 20px 0 var(--danger), 24px 72px 0 var(--danger), 70px 92px 0 rgba(199,71,47,.85);
}

.pattern-card.is-random > span::after {
  right: 18px;
  top: 18px;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(24,33,31,.36);
}

.pattern-card div {
  display: grid;
  gap: 8px;
}

.pattern-card strong {
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.2;
}

.pattern-card p {
  margin: 0;
  color: var(--ink-soft);
}

.pattern-card em {
  align-self: end;
  color: var(--accent);
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.original-photo-panel,
.licensed-photo-panel {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfa;
  box-shadow: var(--shadow);
}

.original-photo-panel {
  background: #f8fafc;
}

.original-photo-panel > div:first-child,
.licensed-photo-panel > div:first-child {
  max-width: 820px;
}

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

.original-photo-grid figure,
.licensed-photo-grid figure {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.original-photo-grid img,
.licensed-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fbfaf6;
}

.original-photo-grid figcaption,
.licensed-photo-grid figcaption {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.original-photo-grid strong,
.licensed-photo-grid strong {
  color: var(--brand-dark);
  line-height: 1.2;
}

.original-photo-grid span,
.licensed-photo-grid span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.original-photo-grid small,
.licensed-photo-grid small,
.licensed-photo-grid small a {
  color: var(--muted);
  font-size: 12px;
}

.before-after-panel,
.test-model-panel {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.before-after-panel {
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
}

.before-after-panel > small {
  grid-column: 1 / -1;
  color: var(--muted);
}

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

.compare-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: white;
}

.compare-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.compare-grid figcaption {
  padding: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.test-model-panel {
  grid-template-columns: minmax(180px, .34fr) minmax(0, .8fr) minmax(180px, .35fr) auto;
  align-items: center;
  background: #f1faf5;
  border-color: rgba(22, 97, 93, .22);
}

.test-model-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 97, 93, .18);
  border-radius: 6px;
  background: white;
}

.test-model-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.test-model-preview figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.test-model-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.test-model-panel div div,
.test-model-panel dl div {
  padding: 9px;
  border: 1px solid rgba(22, 97, 93, .18);
  border-radius: 4px;
  background: white;
}

.test-model-panel dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.test-model-panel dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.test-model-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.test-model-detail > div {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(22, 97, 93, .18);
  border-radius: 4px;
  background: white;
}

.test-model-detail strong {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.test-model-detail span,
.test-model-detail li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.test-model-detail ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.field-guide-panel {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

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

.branch-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.branch-grid span,
.case-list span {
  color: var(--muted);
}

.branch-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.branch-grid h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.branch-grid p {
  margin: 0;
  color: var(--muted);
}

.branch-grid article > strong {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
}

.branch-grid dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.branch-grid dl div {
  padding: 9px;
  border: 1px solid rgba(22, 97, 93, .14);
  border-radius: 4px;
  background: #fbfaf6;
}

.branch-grid dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.branch-grid dd {
  margin: 3px 0 0;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.35;
}

.parameter-panel {
  overflow: hidden;
}

.parameter-panel table {
  min-width: 1080px;
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.stop-panel {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(199, 71, 47, .28);
  border-radius: 6px;
  background: #fff7f4;
  box-shadow: var(--shadow);
}

.stop-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.common-setups-panel .template-links a {
  align-content: start;
}

.common-setups-panel em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.common-setups-panel small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.test-model-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.test-model-library a {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.test-model-library img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #f1f5f9;
}

.test-model-library strong {
  color: var(--brand-dark);
}

.test-model-library span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.test-model-library em {
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.diagnostic-brief-panel {
  display: grid;
  grid-template-columns: minmax(240px, .4fr) minmax(0, .6fr);
  gap: 16px;
  align-items: start;
  background: #f7fbfa;
}

.diagnostic-brief-panel pre {
  margin: 0;
  white-space: pre-wrap;
}

.compact-board {
  width: 100%;
  margin-top: 0;
}

.board-column h3 {
  margin: 0 0 12px;
}

.type-pill {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 3px;
  background: #eef3f0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
}

.meta { margin-top: auto; font-size: 13px; }

.diagnostic-board { width: min(1180px, calc(100% - 36px)); }
.board-column { padding: 18px; border-radius: 6px; }
.queue-list,
.chip-list,
.related-list,
.template-links,
.source-list { display: grid; gap: 10px; }

.queue-list a,
.chip-list a,
.type-grid a,
.related-list a,
.template-links a,
.source-link {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  text-decoration: none;
}

.queue-list span,
.type-grid span,
.related-list span,
.template-links span,
.source-link span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.chip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip-list a { text-align: center; font-weight: 850; background: #f8faf7; }

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

.page-head { padding: 54px 0 16px; }
.article { padding: 30px 0; }
.article-head { padding-bottom: 18px; }

.article-workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 20px;
  align-items: stretch;
  padding: 22px;
  border-radius: 6px;
}

.failure-sample {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8f7f1;
}

.failure-sample dl { margin: 0; display: grid; gap: 8px; }
.failure-sample div { padding: 8px; border-left: 3px solid var(--brand); background: white; }
.failure-sample dt { font-size: 12px; font-weight: 850; color: var(--accent); text-transform: uppercase; }
.failure-sample dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.article-meta { margin-top: 18px; color: var(--muted); }
.article-meta span { padding: 6px 8px; border-radius: 4px; background: var(--soft); }
.article-disclaimer { width: min(1180px, calc(100% - 36px)); margin: 14px auto; font-size: 14px; }

.answer-box,
.content-section,
.conversion-strip,
.help-cta,
.content-block { padding: 20px; margin: 16px 0; border-radius: 6px; }

.bench-answer { display: flex; gap: 14px; align-items: flex-start; background: #f8fbf9; }
.status-light { width: 13px; height: 13px; margin-top: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(57,168,115,.16); flex: 0 0 auto; }

.conversion-strip,
.help-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff7ed;
  border-color: #efc9a9;
}

.warning-panel { border-color: #e6b4a6; background: #fff7f4; }

.continue-panel {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
  background: #f8fbf9;
}

.continue-panel h2 {
  font-size: 24px;
}

.compact-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.compact-facts { grid-template-columns: 1fr; }
.fact-list div { padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: #fbfbf8; }
.fact-list dt { font-weight: 850; }
.fact-list dd { margin: 4px 0 0; color: var(--muted); }

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.checklist-head span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.check-panel li { margin-bottom: 8px; }

.interactive-checks ol {
  padding-left: 0;
  list-style: none;
  counter-reset: check-step;
}

.interactive-checks li {
  counter-increment: check-step;
}

.interactive-checks label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfbf8;
  cursor: pointer;
}

.interactive-checks label::before {
  content: counter(check-step);
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.interactive-checks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interactive-checks label span {
  grid-column: 2;
}

.interactive-checks label:has(input:checked) {
  border-color: rgba(57,168,115,.55);
  background: #f1faf5;
}

.interactive-checks label:has(input:checked)::before {
  content: "OK";
  background: var(--ok);
  font-size: 9px;
}

.interactive-checks label:has(input:focus-visible) {
  outline: 3px solid rgba(22, 97, 93, .25);
  outline-offset: 2px;
}

.interactive-checks.is-complete .checklist-head span {
  background: #e3f8eb;
  color: #17623f;
}

.checklist-outcome {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(22, 97, 93, .22);
  border-radius: 4px;
  background: #f1faf5;
}

.checklist-outcome strong {
  color: var(--brand-dark);
}

.checklist-outcome span {
  color: var(--muted);
}

.verify-panel { background: #f8fbf9; }

.result-router {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #132220;
  color: #f4faf7;
}

.result-router p {
  color: #b7cac4;
}

.result-router h2 {
  max-width: 720px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.result-actions .button-link.secondary {
  background: #f4faf7;
  color: var(--brand-dark);
}

.use-avoid-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.use-avoid-strip > div,
.mistake-drawer {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.use-avoid-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.use-avoid-strip ul {
  margin: 0;
  padding-left: 18px;
}

.mistake-drawer {
  margin: 16px 0;
}

.mistake-drawer summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 850;
}

pre { overflow: auto; padding: 14px; border-radius: 4px; background: #132220; color: #f4faf7; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }

.qa-list details { padding: 14px 0; border-top: 1px solid var(--line); }
.qa-list summary { cursor: pointer; font-weight: 850; }

.filters { display: grid; grid-template-columns: 1fr 220px; gap: 10px; padding: 16px; }
.filters input,
.filters select { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: white; font: inherit; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 13px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
td span { display: block; color: var(--muted); font-size: 13px; }

.type-list,
.template-list { display: grid; gap: 12px; }
.type-row,
.template-panel { display: flex; justify-content: space-between; gap: 24px; padding: 18px; text-decoration: none; border-radius: 6px; }
.template-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr); }

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .conversion-strip,
  .help-cta,
  .result-router,
  .type-row { align-items: flex-start; flex-direction: column; }

  .workbench-hero,
  .diagnostic-hero,
  .diagnostic-workbench,
  .hero-specimen,
  .visual-diagnosis,
  .visual-stage,
  .before-after-panel,
  .compare-grid,
  .test-model-panel,
  .test-model-detail,
  .visual-check-grid,
  .visual-detail-grid,
  .branch-grid,
  .stop-panel,
  .diagnostic-brief-panel,
  .sample-grid,
  .diagnostic-board,
  .page-grid,
  .offer-grid,
  .detail-grid,
  .fit-grid,
  .use-avoid-strip,
  .checklist-grid,
  .pattern-compare-panel,
  .pattern-compare-grid,
  .original-photo-grid,
  .licensed-photo-grid,
  .test-model-library,
  .type-grid,
  .template-panel,
  .filters,
  .fact-list,
  .continue-panel,
  .compact-related,
  .article-triage,
  .article-triage .triage-grid,
  .article-workbench-head { grid-template-columns: 1fr; }

  .symptom-picker {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 76vw);
    grid-template-columns: none;
    width: 100%;
    padding: 0 18px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .symptom-tile {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 210px;
    scroll-snap-align: start;
  }

  .symptom-photo,
  .symptom-tile > .symptom-visual {
    min-height: 128px;
  }

  .symptom-action {
    grid-column: 2;
  }

  .pattern-card {
    grid-template-columns: 1fr;
  }

  .specimen-photo {
    min-height: 180px;
  }

  .visual-stage .symptom-visual,
  .visual-stage .article-photo {
    min-height: 210px;
  }

  .result-branches > div {
    grid-template-columns: 1fr;
  }

  .diagnostic-intro h1 { font-size: 54px; }
  .failure-sample { display: none; }
  .workbench-hero h1,
  .page-head h1,
  .article-head h1 { font-size: 42px; }

  .search-shell { flex-direction: column; }
  .console-grid { grid-template-columns: 1fr; }
  .chip-list { grid-template-columns: 1fr; }
  .bench-copy::after { display: none; }
}
