/* Samos Housing — What can you build here? design revision 2 — all rules scoped to .wcbh */
/* Codex visual ownership: architectural workspace, site palette, bilingual responsive layouts. */
.wcbh {
  --wcbh-bg: #f2f3ee;
  --wcbh-surface: #ffffff;
  --wcbh-ink: #2c3327;
  --wcbh-muted: #5c6351;
  --wcbh-line: #dde0d5;
  --wcbh-sage: #56654a;
  --wcbh-sage-2: #78806a;
  --wcbh-sage-soft: #e7e9df;
  --wcbh-terra: #a8552a;
  --wcbh-terra-ink: #ffffff;
  --wcbh-terra-soft: #f6e4da;
  --wcbh-ok: #2a7347; --wcbh-ok-bg: #e3f1e7;
  --wcbh-warn: #8a5800; --wcbh-warn-bg: #fbf0d9;
  --wcbh-bad: #b0281f; --wcbh-bad-bg: #fbe5e2;
  --wcbh-unk: #4f5c66; --wcbh-unk-bg: #e9edf0;
  --wcbh-focus: #a8552a;
  --wcbh-radius: 20px;
  --wcbh-font: inherit;
  --wcbh-num: inherit;
  box-sizing: border-box;
  font-family: var(--wcbh-font);
  color: var(--wcbh-ink);
  background: var(--wcbh-bg);
  border: 1px solid var(--wcbh-line);
  border-radius: 28px;
  padding: clamp(16px, 3.5vw, 44px);
  box-shadow: 0 28px 90px rgba(29, 35, 24, .09);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  container-type: inline-size;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wcbh--auto {
    --wcbh-bg: #2b3026; --wcbh-surface: #343b2e; --wcbh-ink: #e7e9df; --wcbh-muted: #c0c7b7; --wcbh-line: #505a45;
    --wcbh-sage: #b4c29f; --wcbh-sage-2: #9aa88a; --wcbh-sage-soft: #3a4333; --wcbh-terra: #d9a57e; --wcbh-terra-ink: #2b3026; --wcbh-terra-soft: #3a2a22;
    --wcbh-ok: #7fd3a0; --wcbh-ok-bg: #1d3327; --wcbh-warn: #f0bd5a; --wcbh-warn-bg: #352a14; --wcbh-bad: #ff958a; --wcbh-bad-bg: #3a1f1c;
    --wcbh-unk: #b4c0c9; --wcbh-unk-bg: #273038; --wcbh-focus: #d9a57e;
  }
}
:root[data-theme="dark"] .wcbh--auto {
  --wcbh-bg: #2b3026; --wcbh-surface: #343b2e; --wcbh-ink: #e7e9df; --wcbh-muted: #c0c7b7; --wcbh-line: #505a45;
  --wcbh-sage: #b4c29f; --wcbh-sage-2: #9aa88a; --wcbh-sage-soft: #3a4333; --wcbh-terra: #d9a57e; --wcbh-terra-ink: #2b3026; --wcbh-terra-soft: #3a2a22;
  --wcbh-ok: #7fd3a0; --wcbh-ok-bg: #1d3327; --wcbh-warn: #f0bd5a; --wcbh-warn-bg: #352a14; --wcbh-bad: #ff958a; --wcbh-bad-bg: #3a1f1c;
  --wcbh-unk: #b4c0c9; --wcbh-unk-bg: #273038; --wcbh-focus: #d9a57e;
}
.wcbh *, .wcbh *::before, .wcbh *::after { box-sizing: border-box; }
.wcbh :where(button, input) { font: inherit; color: inherit; }
.wcbh :focus-visible { outline: 3px solid var(--wcbh-focus); outline-offset: 2px; border-radius: 8px; }
.wcbh svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wcbh__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* header: a generous title with a quieter explanation */
.wcbh__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.wcbh__brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--wcbh-line); }
.wcbh__brandrow:empty { display: none; }
.wcbh__logo { width: 190px; height: auto; max-width: calc(100% - 116px); display: block; padding: 6px 9px; border-radius: 7px; background: #fff; box-sizing: border-box; }
.wcbh__lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wcbh-sage-soft); border: 1px solid var(--wcbh-line); flex: none; }
.wcbh__lang button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: .03em; color: var(--wcbh-muted); }
.wcbh__lang button[aria-pressed="true"] { background: var(--wcbh-ink); color: var(--wcbh-bg); box-shadow: 0 2px 6px #0001; }
.wcbh__eyebrow { display: flex; gap: 12px; align-items: center; margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wcbh-terra); }
.wcbh__eyebrow::before { content: ""; width: 28px; height: 2px; flex: none; background: currentColor; }
.wcbh__titlerow { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 18px; }
.wcbh__title { margin: 0; max-width: 20ch; font-size: clamp(1.9rem, 1.2rem + 2.7vw, 3.4rem); line-height: 1.12; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; color: var(--wcbh-ink); }
.wcbh__badge { display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 5px 10px; border-radius: 999px; font-size: .65rem; line-height: 1.5; font-weight: 600; color: var(--wcbh-muted); background: var(--wcbh-sage-soft); border: 1px solid var(--wcbh-line); white-space: nowrap; }
.wcbh__badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--wcbh-terra); }
.wcbh__intro { margin: 0; color: var(--wcbh-muted); font-size: .91rem; line-height: 1.75; max-width: 66ch; }
@container (min-width: 960px) {
  .wcbh__head { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); column-gap: 36px; }
  .wcbh__brandrow, .wcbh__eyebrow { grid-column: 1 / -1; }
  .wcbh__intro { grid-column: 2; grid-row: 3; align-self: center; border-left: 1px solid var(--wcbh-line); padding-left: 28px; }
  .wcbh__titlerow { grid-column: 1; grid-row: 3; }
}

/* Content follows the same order at all sizes: explore, adjust, compare. */
.wcbh__grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.wcbh__viewcol, .wcbh__panel { display: contents; }
.wcbh__stage { order: 1; } .wcbh__toolbar { order: 2; } .wcbh__hint { order: 3; }
.wcbh__control { order: 4; } .wcbh__legendwrap { order: 5; }
.wcbh__limits { order: 6; } .wcbh__cost { order: 7; }
.wcbh__checks { order: 8; } .wcbh__ctas { order: 9; }
@container (min-width: 640px) {
  .wcbh__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .wcbh__stage, .wcbh__toolbar, .wcbh__hint, .wcbh__control, .wcbh__legendwrap, .wcbh__checks, .wcbh__ctas { grid-column: 1 / -1; }
  .wcbh__limits, .wcbh__cost { align-self: stretch; }
}
@container (min-width: 960px) {
  .wcbh__grid { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 14px 28px; }
  .wcbh__stage { grid-column: 1; grid-row: 1; }
  .wcbh__toolbar { grid-column: 1; grid-row: 2; }
  .wcbh__hint { grid-column: 1; grid-row: 3; }
  .wcbh__legendwrap { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
  .wcbh__control { grid-column: 2; grid-row: 1 / 4; align-self: stretch; }
  .wcbh__limits { grid-column: 1; grid-row: 5; margin-top: 18px; }
  .wcbh__cost { grid-column: 2; grid-row: 5; margin-top: 18px; }
  .wcbh__checks { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; }
  .wcbh__ctas { grid-column: 1 / -1; grid-row: 7; }
}

/* stage */
.wcbh__stage { position: relative; margin: 0; aspect-ratio: 16 / 11; width: 100%; max-width: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #9fc6dc 0%, #c9dfe8 30%, #dde8ea 52%, #e3e9e2 100%); touch-action: pan-y; cursor: grab; isolation: isolate; outline-offset: 3px; -webkit-user-select: none; user-select: none; box-shadow: inset 0 0 0 1px rgba(30, 42, 35, .08); }
.wcbh__stage.is-dragging { cursor: grabbing; }
@container (max-width: 560px) { .wcbh__stage { aspect-ratio: 1.18 / 1; border-radius: 18px; } }
.wcbh__canvas, .wcbh__canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.wcbh__markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.wcbh__mk { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #2c3327; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; will-change: transform; }
.wcbh__mk.mk-band { background: #c4602f; color: #fff; }
.wcbh__mk.mk-zone { background: #f2d4c2; }
.wcbh__mk.mk-height { background: #6cc8e6; }
.wcbh__mk.mk-design { background: #2c3327; color: #fff; }
.wcbh__mk.mk-over { background: #d2453a; color: #fff; }
.wcbh__mk.mk-sea { background: #c4ecfb; }
.wcbh__poster { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; z-index: 3; background: radial-gradient(120% 70% at 50% 100%, #b9c48f 0%, #c9cfa5 40%, transparent 70%); transition: opacity .4s ease; }
.wcbh__poster-t { font-size: .9rem; color: #33443a; background: rgba(255, 255, 255, .78); padding: 8px 14px; border-radius: 999px; max-width: 40ch; }
.wcbh__poster.is-error .wcbh__poster-t { border-radius: 12px; }
.wcbh__poster.is-hidden { opacity: 0; pointer-events: none; }

/* toolbar */
.wcbh__toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wcbh__ib, .wcbh__tb { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px solid var(--wcbh-line); background: var(--wcbh-surface); color: var(--wcbh-ink); cursor: pointer; transition: background .15s, border-color .15s; }
.wcbh__tb { padding: 0 10px; font-weight: 600; font-size: .78rem; }
.wcbh__ib:hover, .wcbh__tb:hover { border-color: var(--wcbh-sage-2); background: var(--wcbh-sage-soft); }
.wcbh__tb:disabled { opacity: .55; cursor: not-allowed; }
.wcbh__switch { margin-left: auto; border-color: transparent; background: transparent; }
.wcbh__sw { width: 34px; height: 20px; border-radius: 999px; background: var(--wcbh-line); position: relative; transition: background .2s; flex: none; }
.wcbh__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--wcbh-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s; }
.wcbh__switch[aria-pressed="true"] .wcbh__sw { background: var(--wcbh-sage); }
.wcbh__switch[aria-pressed="true"] .wcbh__sw::after { transform: translateX(14px); }
.wcbh__hint { margin: 0; font-size: .82rem; color: var(--wcbh-muted); }

/* legend */
.wcbh__legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.wcbh__legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--wcbh-line); font-size: .76rem; }
.wcbh__key { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--wcbh-surface); border: 1px solid var(--wcbh-line); font-variant-numeric: tabular-nums; }
.wcbh__legend [class^="wcbh__sw-"] { display: none; }
.wcbh__sw-boundary { border: 2px solid #ffffff; background: #d3d2a9; box-shadow: 0 0 0 1px var(--wcbh-line); }
.wcbh__sw-band { background: rgba(196, 96, 47, .55); }
.wcbh__sw-zone { border: 2px dashed #d9a487; background: transparent; }
.wcbh__sw-height { border: 2px solid #6cc8e6; background: rgba(134, 211, 236, .25); }
.wcbh__sw-design { background: #f6f4ee; border: 1px solid #b9b5a8; }
.wcbh__sw-over { background: #d2453a; }
.wcbh__sw-sea { background: repeating-linear-gradient(90deg, #4aa3c9 0 5px, transparent 5px 8px); height: 3px !important; }
.wcbh__lgl { font-weight: 600; min-width: 0; }
.wcbh__lgv { grid-column: 2; color: var(--wcbh-muted); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
@container (min-width: 960px) { .wcbh__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; } }

/* cards */
.wcbh__card { background: var(--wcbh-surface); border: 1px solid var(--wcbh-line); border-radius: var(--wcbh-radius); padding: clamp(20px, 2.2vw, 28px); min-width: 0; display: grid; gap: 10px; align-content: start; }
.wcbh__h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.025em; }
.wcbh__note { margin: 0; font-size: .8rem; color: var(--wcbh-muted); }

/* status */
.wcbh__status { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.35; }
.wcbh__status strong { display: block; font-size: .98rem; }
.wcbh__sdetail { display: block; font-size: .84rem; opacity: .92; }
.wcbh__sicon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: currentColor; }
.wcbh__sicon svg { stroke: var(--wcbh-surface); width: 18px; height: 18px; stroke-width: 2.6; }
.wcbh__status.is-ok { color: var(--wcbh-ok); background: var(--wcbh-ok-bg); }
.wcbh__status.is-near { color: var(--wcbh-warn); background: var(--wcbh-warn-bg); }
.wcbh__status.is-conflict { color: var(--wcbh-bad); background: var(--wcbh-bad-bg); }
.wcbh__status.is-review { color: var(--wcbh-unk); background: var(--wcbh-unk-bg); }

/* slider */
.wcbh__sliderhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 4px; }
.wcbh__label { font-weight: 700; font-size: .98rem; }
.wcbh__out { font-size: clamp(2.8rem, 3vw, 3.75rem); font-weight: 500; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--wcbh-ink); font-family: var(--wcbh-num); }
.wcbh__help { margin: -4px 0 0; font-size: .82rem; color: var(--wcbh-muted); }
.wcbh__sliderrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.wcbh__step { border-radius: 50%; }
.wcbh__range { position: relative; height: 44px; }
.wcbh__range input { --p: .25; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.wcbh__range input:focus-visible { outline-offset: 0; }
.wcbh__range input::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--wcbh-terra) calc(var(--p) * 100%), var(--wcbh-line) calc(var(--p) * 100%)); }
.wcbh__range input::-moz-range-track { height: 10px; border-radius: 999px; background: var(--wcbh-line); }
.wcbh__range input::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--wcbh-terra); }
.wcbh__range input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--wcbh-terra); border: 4px solid var(--wcbh-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.wcbh__range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--wcbh-terra); border: 4px solid var(--wcbh-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.wcbh__tick { --p: .5; position: absolute; top: 7px; height: 30px; width: 2px; left: calc(15px + (100% - 30px) * var(--p)); background: var(--wcbh-ink); opacity: .85; pointer-events: none; border-radius: 2px; }
.wcbh__tick::after { content: attr(data-label); position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; white-space: nowrap; color: var(--wcbh-muted); }
.wcbh__scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--wcbh-muted); font-variant-numeric: tabular-nums; margin-top: 14px; padding: 0 54px; }
.wcbh__overpill { margin: 0; display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--wcbh-bad); background: var(--wcbh-bad-bg); }
.wcbh__overpill svg { width: 16px; height: 16px; stroke-width: 2.6; }
.wcbh__overpill[hidden] { display: none !important; }

.wcbh__presets { display: grid; gap: 6px; }
.wcbh__plabel { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wcbh-muted); }
.wcbh__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wcbh__chip { min-height: 44px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--wcbh-line); background: var(--wcbh-sage-soft); cursor: pointer; text-align: left; line-height: 1.4; font-weight: 500; font-size: .77rem; }
.wcbh__chip:hover { border-color: var(--wcbh-sage-2); }
.wcbh__chipv { margin-top: 5px; font-size: .76rem; font-weight: 500; color: var(--wcbh-muted); font-variant-numeric: tabular-nums; }

.wcbh__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
@container (max-width: 480px) { .wcbh__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcbh__metrics > div { background: var(--wcbh-bg); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.wcbh__metrics dt { font-size: .74rem; color: var(--wcbh-muted); font-weight: 600; }
.wcbh__metrics dd { margin: 0; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wcbh__metrics small { font-size: .74rem; font-weight: 600; color: var(--wcbh-muted); }

/* limits table */
.wcbh__tablewrap { overflow-x: auto; margin: 0 -4px; }
.wcbh__table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.wcbh__table th, .wcbh__table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--wcbh-line); vertical-align: top; }
.wcbh__table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wcbh-muted); font-weight: 700; padding-top: 0; }
.wcbh__table tbody th { font-weight: 600; }
.wcbh__table td:last-child { text-align: right; white-space: nowrap; }
.wcbh__table small { color: var(--wcbh-muted); }
@container (max-width: 480px) {
  .wcbh__table thead { display: none; }
  .wcbh__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--wcbh-line); }
  .wcbh__table th, .wcbh__table td { border: 0; padding: 0; }
  .wcbh__table tbody th { grid-column: 1; }
  .wcbh__table td:last-child { grid-column: 2; grid-row: 1; }
  .wcbh__table td:nth-child(2), .wcbh__table td:nth-child(3) { grid-column: 1 / -1; color: var(--wcbh-muted); font-size: .82rem; }
  .wcbh__table td:nth-child(3)::before { content: "→ "; }
}
.wcbh__pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.wcbh__pill svg { width: 14px; height: 14px; stroke-width: 2.6; }
.wcbh__pill.is-ok { color: var(--wcbh-ok); background: var(--wcbh-ok-bg); }
.wcbh__pill.is-near { color: var(--wcbh-warn); background: var(--wcbh-warn-bg); }
.wcbh__pill.is-conflict { color: var(--wcbh-bad); background: var(--wcbh-bad-bg); }
.wcbh__pill.is-unknown { color: var(--wcbh-unk); background: var(--wcbh-unk-bg); }

/* cost */
.wcbh__costbig { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.wcbh__costbig span { white-space: nowrap; }
.wcbh__dash { color: var(--wcbh-muted); font-weight: 500; }
.wcbh__costsub { margin: -4px 0 0; font-size: .84rem; color: var(--wcbh-muted); font-variant-numeric: tabular-nums; }
.wcbh__scope { margin: 0; display: grid; gap: 6px; font-size: .84rem; }
.wcbh__scope dt { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wcbh-sage); }
.wcbh__scope dd { margin: 0; }

/* checks */
.wcbh__checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; font-size: .84rem; }
.wcbh__checklist li { position: relative; padding-left: 22px; }
.wcbh__checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 3px; border: 2px solid var(--wcbh-sage-2); }

/* ctas */
.wcbh__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 18px 0 4px; }
.wcbh__btn { min-height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .86rem; }
.wcbh__btn--primary { background: var(--wcbh-terra); color: var(--wcbh-terra-ink); }
.wcbh__btn--primary:hover { filter: brightness(1.06); }
.wcbh__btn--ghost { border: 1.5px solid var(--wcbh-sage); color: var(--wcbh-sage); }
.wcbh__btn--ghost:hover { background: var(--wcbh-sage-soft); }
.wcbh__disclaimer { margin: clamp(16px, 2.4vw, 24px) 0 0; font-size: .8rem; color: var(--wcbh-muted); max-width: none; padding-top: 22px; border-top: 1px solid var(--wcbh-line); }

/* pending (real mode without approved data) */
.wcbh__pending { display: grid; gap: 12px; justify-items: start; }
.wcbh__pending-t { margin: 0; font-weight: 600; }

/* teaser variant */
.wcbh--teaser .wcbh__limits, .wcbh--teaser .wcbh__cost, .wcbh--teaser .wcbh__checks, .wcbh--teaser .wcbh__legendwrap, .wcbh--teaser .wcbh__storeynote { display: none; }

@media (prefers-reduced-motion: reduce) { .wcbh *, .wcbh *::before, .wcbh *::after { transition: none !important; } }

/* The scenario panel has one consistent, high-contrast olive treatment. */
.wcbh__control {
  --wcbh-bg: #2b3026; --wcbh-surface: #343b2e; --wcbh-ink: #f2f3ee;
  --wcbh-muted: #c0c7b7; --wcbh-line: #56604c; --wcbh-sage: #c1d0b0;
  --wcbh-sage-2: #b4c29f; --wcbh-sage-soft: #3a4333;
  --wcbh-terra: #d9a57e; --wcbh-focus: #e9bf9d;
  --wcbh-ok: #b5dbb0; --wcbh-ok-bg: #2f442c;
  --wcbh-warn: #f2cb83; --wcbh-warn-bg: #4a3d25;
  --wcbh-bad: #ffb4a7; --wcbh-bad-bg: #512e27;
  --wcbh-unk: #d4dddf; --wcbh-unk-bg: #3a4546;
  color: var(--wcbh-ink); background: linear-gradient(145deg, #3a4034, #2b3026);
  border: 1px solid #56604c; gap: 18px; box-shadow: 0 12px 28px #1b24121a;
}
.wcbh__control .wcbh__sliderhead { order: 1; display: grid; gap: 8px; margin: 0; }
.wcbh__control .wcbh__label { font-size: .8rem; font-weight: 500; color: var(--wcbh-muted); }
.wcbh__control .wcbh__help { order: 2; font-size: .76rem; line-height: 1.6; margin: -10px 0 0; max-width: 34ch; }
.wcbh__control .wcbh__sliderrow { order: 3; }
.wcbh__control .wcbh__scale { order: 4; margin-top: 0; }
.wcbh__control .wcbh__presets { order: 5; gap: 10px; }
.wcbh__control .wcbh__metrics { order: 6; border-top: 1px solid var(--wcbh-line); padding-top: 18px; margin: 2px 0 0; gap: 12px; }
.wcbh__control .wcbh__metrics > div { background: transparent; border-radius: 0; padding: 0; }
.wcbh__control .wcbh__metrics dt { font-size: .65rem; margin-bottom: 6px; }
.wcbh__control .wcbh__status { order: 7; padding: 12px; }
.wcbh__control .wcbh__status strong { font-size: .82rem; font-weight: 600; }
.wcbh__control .wcbh__sdetail { font-size: .75rem; margin-top: 3px; }
.wcbh__control .wcbh__storeynote { order: 8; font-size: .72rem; margin-top: -8px; }
.wcbh__control .wcbh__overpill { order: 9; }
.wcbh__chip { overflow-wrap: anywhere; }
.wcbh__chip[aria-pressed="true"] { border-color: var(--wcbh-terra); background: #4d4936; box-shadow: inset 0 0 0 1px var(--wcbh-terra); }
.wcbh__cost { background: var(--wcbh-sage-soft); }
.wcbh__costbig { color: var(--wcbh-ink); padding: 8px 0; }
.wcbh__scope { border-top: 1px solid var(--wcbh-line); padding-top: 16px; margin-top: 8px; gap: 8px; line-height: 1.65; }
.wcbh__scope dt { color: var(--wcbh-muted); }
.wcbh__checks { background: transparent; border: 0; border-top: 1px solid var(--wcbh-line); border-bottom: 1px solid var(--wcbh-line); border-radius: 0; padding: 26px 0; gap: 20px; }
.wcbh__checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 639px) {
  .wcbh__head { gap: 12px; margin-bottom: 22px; }
  .wcbh__brandrow { padding-bottom: 16px; margin-bottom: 4px; }
  .wcbh__intro { font-size: .82rem; line-height: 1.65; }
  .wcbh__eyebrow { font-size: .6rem; letter-spacing: .07em; gap: 8px; }
  .wcbh__eyebrow::before { width: 18px; }
  .wcbh__titlerow { gap: 10px; }
  .wcbh__toolbar { gap: 5px; }
  .wcbh__switch { margin-left: 0; }
  .wcbh__hint { font-size: .73rem; }
  .wcbh__control { gap: 16px; }
  .wcbh__control .wcbh__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .wcbh__chips { gap: 6px; }
  .wcbh__chip { padding: 10px 8px; font-size: .72rem; }
  .wcbh__legend { gap: 0 12px; }
  .wcbh__legend li { font-size: .67rem; column-gap: 6px; grid-template-columns: 20px minmax(0, 1fr); }
  .wcbh__key { width: 20px; height: 20px; font-size: 10px; }
  .wcbh__checklist { grid-template-columns: minmax(0, 1fr); }
  .wcbh__ctas { align-items: stretch; flex-direction: column; padding-top: 8px; }
  .wcbh__btn { justify-content: space-between; width: 100%; font-size: .8rem; padding: 12px 18px; }
  .wcbh__disclaimer { font-size: .7rem; line-height: 1.7; }
}
@container (max-width: 480px) {
  .wcbh__chips { grid-template-columns: minmax(0, 1fr); }
  .wcbh__chip { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; font-size: .76rem; }
  .wcbh__chipv { margin: 0; white-space: nowrap; }
}
/* Keep all explanatory data in the full app; the existing teaser stays compact. */
@container (min-width: 960px) {
  .wcbh--teaser .wcbh__control { grid-row: 1 / 4; }
}
.wcbh--teaser .wcbh__ctas { grid-row: auto; }
