@font-face {
  font-family: "Neuzeit Grotesk";
  src: url("https://cdn.shopify.com/s/files/1/0877/3910/5611/files/DIN_30640_Std_Neuzeit_Grotesk_Light.otf?v=1750881148") format("opentype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --accent: #222222;
  --accent-dark: #111111;
  --accent-soft: #f3f3f3;
  --ink: #222222;
  --muted: #666666;
  --line: #e6e6e6;
  --bg: #ffffff;
  --card: #fff;
  --danger: #e84e4e;
  --warn: #9a3412;
  --warn-bg: #fff7ed;
  --shadow: none;
  --radius: 0;
  --chrome: 72px;
  color-scheme: light;
  --accent-soft: #f4f4f4;
  --accent-dark: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Neuzeit Grotesk", Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  color: #222;
  background: #fff;
  line-height: 1.5;
}
h1, h2, h3, .num, .ticker {
  font-family: Teko, "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
/* The real header and its nav live in site.css now (site.js builds it).
   .ticker/.announce never existed as markup on these pages. */
.hero-inner, .layout { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 16px;
  font-weight: 400;
}
.primary {
  background: #2f2f2f;
  border: 0;
  color: white;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.proto-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; }
.proto-links a, .proto-links button {
  background: none;
  border: 0;
  padding: 0;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.editor-bar .ghost, .editor-bar .file-btn {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.calc-intro { width: min(1180px, calc(100% - 40px)); margin: 16px auto 10px; }
.calc-intro h1 { margin: 0 0 4px; color: #222; font-size: 36px; font-weight: 500; line-height: 0.9; text-transform: uppercase; }
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.calc-intro p { margin: 0; max-width: 70ch; color: #555; font-size: 16px; }
.hero { padding: 28px 0 8px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.lede { margin: 0; max-width: 65ch; color: var(--muted); }

.banner, .note, .warn, .err, .ok {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.banner, .note { background: white; border: 1px solid var(--line); color: var(--muted); }
.banner strong, .note strong { color: var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn); }
.err { color: var(--danger); background: #fef3f2; }
.ok { background: var(--accent-soft); color: var(--accent-dark); }
.howto { margin: 8px 0 18px; }
.howto summary { cursor: pointer; font-weight: 650; }

.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 48px; }
.step-nav {
  position: sticky;
  top: var(--chrome);
  background: white;
  border: 1px solid #ececec;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0 16px;
}
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 16px;
}
.nav-link.is-active {
  font-weight: 500;
  border-left-color: #222;
  background: #f7f7f7;
}
.nav-link .num { width: 26px; height: 26px; flex-basis: 26px; font-size: 11px; }
.nav-swatches { display: flex; gap: 4px; width: 100%; padding-left: 36px; }
.nav-swatches i { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); display: block; }
.nav-swatches i.is-on { outline: 2px solid var(--accent); outline-offset: 1px; }
.wizard-title { margin: 8px 0 6px; font-size: 18px; color: var(--ink); }
.wall-choices { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.wall-choice { width: 176px; background: #fff; border: 2px solid #e4e8ef; border-radius: 10px; padding: 8px; text-align: center; color: var(--ink); }
.wall-choice.is-selected { border-color: var(--accent); background: linear-gradient(#f0f4ff, #fff); }
.wall-choice svg { width: 140px; height: 108px; display: block; margin: 0 auto 6px; }
.wall-choice span { display: block; font-size: 13px; }
.yes-no .wall-choice { width: 88px; }
.measure-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.dim-box { border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.dim-box.gable { background: #e7f4fb; color: #1e428b; }
.dim-box.wall { background: #fdecef; color: #b42318; }
.dim-box strong { display: block; letter-spacing: .04em; margin-bottom: 8px; }
.dim-box .field { margin-bottom: 10px; color: inherit; }
.dim-box .field:last-child { margin-bottom: 0; }
.dim-box .field span { color: inherit; }
.dim-box .field small { color: inherit; opacity: 0.78; }
.dim-box input { width: 100%; max-width: 240px; font-weight: 600; color: var(--ink); }
.dim-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.dim-row label { display: grid; gap: 4px; font-weight: 700; }
.dim-row input { width: 72px; font-weight: 600; color: var(--ink); }
.dim-row small { font-weight: 500; color: var(--muted); }
.house-diagram { width: 100%; max-width: 420px; height: auto; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.wizard-nav .danger { border: 1px solid #e11d2e; color: #e11d2e; background: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 700; }
.wall-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fafbfd; }
.wall-card h3 { letter-spacing: .08em; font-size: 16px; }
.wall-card-grid { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; align-items: center; }
.wall-card-grid svg { width: 140px; height: 108px; }
.opening-notes p { margin: 0 0 8px; }
.swatch svg { width: 100%; height: 72px; display: block; }
.nav-total { display: flex; justify-content: space-between; gap: 12px; margin: 14px 16px 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-total span { color: var(--muted); }
.nav-save, .nav-reset, .nav-clear { display: block; width: calc(100% - 32px); margin: 8px 16px 0; }
.nav-clear {
  background: white;
  color: #222;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 12px 16px;
  font-weight: 400;
}
.nav-reset { background: transparent; border: 0; color: var(--accent); font-weight: 600; text-align: center; }
.step { background: white; border: 1px solid #ececec; border-radius: 0; margin-bottom: 22px; box-shadow: none; padding: 32px 36px 28px; scroll-margin-top: var(--chrome); }
.step-head {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eceff3;
  padding: 0 0 16px;
  margin-bottom: 18px;
}
.step-head h2 { margin: 0; font-size: 34px; font-weight: 500; color: #222; line-height: 0.95; text-transform: uppercase; }
.step-hint { margin: -6px 0 16px; color: #555; font-size: 14px; }
.step-head small, .muted, .field small, .detail { color: var(--muted); }
.num {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #222;
  color: white;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  padding-top: 2px;
  box-shadow: none;
}
.step-body { padding: 0; }
.step-grid, .split, .editor-grid { display: grid; gap: 12px; }
.step-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice, .swatch, .pick, .editor-card {
  border: 1px solid #e4e4e4;
  background: white;
  border-radius: 0;
  text-align: left;
}
.choice { padding: 18px 15px; }
.choice.is-selected, .swatch.is-selected, .pick.is-on {
  border-color: #222;
  background: #fafafa;
  box-shadow: none;
}
.choice strong, .swatch strong { color: #222; font-weight: 500; }
.choice p, .pick p { margin: 6px 0 0; color: var(--muted); }
.media, .ph-box {
  border-radius: 0;
  background: #eef2f5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.choice .media { height: 128px; margin-bottom: 10px; }
.media img, .ph-box img { width: 100%; height: 100%; object-fit: cover; }
.media.pattern { background: #fff; }
.media.pattern img { object-fit: contain; padding: 6px 8px; }
.letter { font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); }
.diagram { width: 100%; height: auto; color: var(--ink); }
.choice .media .diagram { width: 100%; height: 100%; display: block; }
.scale-diagram {
  margin: 8px 0 16px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: linear-gradient(#ffffff, #fbfcfe);
  padding: 12px 14px 10px;
  box-shadow: 0 1px 2px rgba(16, 30, 54, 0.05);
}
.scale-diagram .diagram { max-width: 100%; }
.scale-diagram h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent); font-weight: 700; }
.scale-caption { margin: 8px 0 0; color: #555; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span, .check span { font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 12px 15px;
  background: white;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 80px; resize: vertical; }
input:disabled { background: #f4f6f8; color: var(--muted); }
.field.has-error input { border-color: var(--danger); }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.check input { margin-top: 3px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.swatch { width: auto; padding: 0; overflow: hidden; cursor: pointer; }
.swatch strong { display: block; padding: 10px 12px 12px; font-size: 16px; }
.swatch small { display: block; margin: -4px 12px 12px; color: var(--muted); font-size: 12px; }
.swatch .chip {
  display: block;
  width: 100%;
  height: 96px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28);
}
.roof-colours .chip { height: 148px; }
.swatch img.chip { object-fit: cover; }
.swatch.is-selected { border-color: #222; box-shadow: inset 0 0 0 1px #222; }
.chip.is-clear {
  background: linear-gradient(165deg, #ffffff 0%, #f7fcfe 36%, var(--swatch, #d4ebf5) 100%);
  box-shadow: inset 0 0 0 1px rgba(55, 110, 135, .55);
}
.chip.is-bronze {
  background: linear-gradient(180deg, #7d5b3a 0%, var(--swatch, #6b4f32) 38%, #5a4128 100%);
  box-shadow: inset 0 0 0 1px rgba(62, 36, 12, .6);
}
.pick { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; margin-bottom: 10px; }
.pick .media { width: 84px; height: 84px; }
.stepper { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.stepper input { width: 72px; text-align: center; }
.stepper button, .text-btn, .add-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
}
.text-btn.danger, .item-tools .danger { color: var(--danger); }
.preview { margin: 8px 0 0; padding-left: 18px; }
.continue { margin-top: 8px; }

.summary {
  position: sticky;
  top: var(--chrome);
  max-height: calc(100vh - 104px);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  scroll-margin-top: 88px;
}
.summary h2 { margin: 0 0 8px; font-size: 1.2rem; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.line-section { margin: 14px 0 0; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.line-price { text-align: right; white-space: nowrap; }
.line-price span, .totals span { display: block; color: var(--muted); }
.totals { margin-top: 8px; border-top: 2px solid var(--ink); padding-top: 8px; }
.totals div, .total-row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; }
.total-row { font-size: 1.15rem; }
.summary .primary, .summary .ghost, .summary .text-btn { width: 100%; margin-top: 8px; }
.foot { padding: 10px 0 28px; color: var(--muted); }

.mobile-total {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 14;
  background: white;
  color: var(--accent);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-total span { display: block; color: var(--muted); font-size: .8rem; }
.mobile-total button { background: #2f2f2f; color: white; border: 0; border-radius: 4px; padding: 10px 14px; font-weight: 400; }

.editor-bar {
  position: sticky;
  top: 72px;
  z-index: 12;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.editor-section { margin: 8px 0 22px; }
.editor-section h2 { margin: 0 0 8px; font-size: 1.25rem; }
.editor-card { padding: 14px; margin: 10px 0; background: white; }
.editor-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.item-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.image-edit .ph-box { width: 120px; height: 90px; margin-bottom: 8px; }
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}
.file-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 32, .55);
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 20px;
}
.modal { width: min(480px, 100%); background: white; border-radius: 16px; padding: 20px; }
.modal h2 { margin: 0 0 8px; }
.fatal { padding: 24px; }

@media (max-width: 979px) {
  .layout { grid-template-columns: 1fr; }
  .step-nav { position: static; }
  .step { padding: 22px 18px; }
  .measure-layout, .wall-card-grid { grid-template-columns: 1fr; }
  .step-head h2 { font-size: 28px; }
  .calc-intro h1 { font-size: 28px; }
  .summary { position: static; max-height: none; }
  .mobile-total { display: none; }
  body.is-quote { padding-bottom: 12px; }
  :root { --chrome: 84px; }
}
@media print {
  .no-print, .site-head, .top, .hero, .calc-intro, .howto, .step-nav, .mobile-total, .editor-page { display: none !important; }
  body, .summary, .step { background: white; }
  .layout { display: block; width: auto; }
  .step { box-shadow: none; border: 1px solid #ddd; }
  .summary { position: static; max-height: none; overflow: visible; box-shadow: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

.roof-preview {
  margin: 10px 0 14px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: linear-gradient(170deg, #f7fafd 0%, #eef2f7 62%, #e9edf3 100%);
  padding: 6px 10px 4px;
  box-shadow: 0 1px 2px rgba(16, 30, 54, 0.05);
  overflow: hidden;
}
.roof-preview .diagram { width: 100%; height: auto; display: block; }
.preview-caption {
  margin: 0 0 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #51607a;
}

.swatch .chip-sheet {
  display: block;
  width: 100%;
  height: 148px;
  background: linear-gradient(170deg, #fbfcfe 0%, #f0f3f7 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.roof-colours .swatch small { margin-top: -6px; color: #7b8697; }

.unit-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.unit-toggle > span { font-weight: 600; }
.unit-btn {
  padding: 7px 16px;
  border: 1px solid #d5dbe4;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: #51607a;
  cursor: pointer;
}
.unit-btn:hover { border-color: #aab6c6; }
.unit-btn.is-on {
  background: var(--accent, #1e428b);
  border-color: var(--accent, #1e428b);
  color: #fff;
}

.unit-note { margin-top: -4px; }

.slope-help { margin: 2px 0 14px; }
.slope-help-body {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fbfcfe;
}
.slope-help-body .field { margin: 8px 0 0; max-width: 340px; }
.slope-help-body p { margin: 0; }

/* ---- Motion and polish ---------------------------------------------------
   The page re-renders wholesale on every keystroke, so nothing here animates
   on mount except .step-enter, which app.js adds only when the step changes.
   Everything else is state-driven, so it cannot flicker while typing.      */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --quick: 140ms;
  --calm: 260ms;
}

.choice, .swatch, .pick, .editor-card {
  transition: border-color var(--quick) var(--ease),
              background-color var(--quick) var(--ease),
              box-shadow var(--quick) var(--ease),
              transform var(--quick) var(--ease);
}
.choice:hover, .swatch:hover, .pick:hover, .editor-card:hover {
  border-color: #b9b9b9;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.07);
  transform: translateY(-2px);
}
.choice:active, .swatch:active, .pick:active { transform: translateY(0); }
.choice.is-selected, .swatch.is-selected, .pick.is-on {
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.09);
}
.choice.is-selected:hover, .swatch.is-selected:hover { transform: translateY(-2px); }

button, .text-btn, .primary, .unit-btn {
  transition: background-color var(--quick) var(--ease),
              border-color var(--quick) var(--ease),
              color var(--quick) var(--ease),
              transform var(--quick) var(--ease),
              box-shadow var(--quick) var(--ease);
}
.primary:hover { background: #151515; box-shadow: 0 3px 12px rgba(16, 24, 40, 0.18); }
.primary:active, .unit-btn:active { transform: translateY(1px) scale(0.995); }
.text-btn:hover { color: #1b1b1b; }

input, select, textarea {
  transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6f7c92;
  box-shadow: 0 0 0 3px rgba(47, 80, 128, 0.14);
}
:focus-visible {
  outline: 2px solid #2f5080;
  outline-offset: 2px;
  border-radius: 2px;
}

.step { transition: border-color var(--calm) var(--ease), box-shadow var(--calm) var(--ease); }
.step.is-current { border-color: #d8dde5; box-shadow: 0 1px 14px rgba(16, 24, 40, 0.05); }
.step .num { transition: background-color var(--calm) var(--ease), color var(--calm) var(--ease); }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.step-enter .step-body { animation: stepIn var(--calm) var(--ease) both; }
.step-enter .choices > *, .step-enter .swatches > * {
  animation: itemIn 300ms var(--ease) both;
}
.step-enter .choices > *:nth-child(1), .step-enter .swatches > *:nth-child(1) { animation-delay: 20ms; }
.step-enter .choices > *:nth-child(2), .step-enter .swatches > *:nth-child(2) { animation-delay: 55ms; }
.step-enter .choices > *:nth-child(3), .step-enter .swatches > *:nth-child(3) { animation-delay: 90ms; }
.step-enter .choices > *:nth-child(4), .step-enter .swatches > *:nth-child(4) { animation-delay: 125ms; }
.step-enter .choices > *:nth-child(5), .step-enter .swatches > *:nth-child(5) { animation-delay: 160ms; }
.step-enter .choices > *:nth-child(n+6), .step-enter .swatches > *:nth-child(n+6) { animation-delay: 190ms; }

.roof-preview, .scale-diagram { transition: box-shadow var(--calm) var(--ease); }
.roof-preview:hover { box-shadow: 0 3px 16px rgba(16, 30, 54, 0.09); }

.err, .ok, .note { transition: opacity var(--quick) var(--ease); }
.swatch .chip-sheet, .choice .media { transition: filter var(--quick) var(--ease); }
.swatch:hover .chip-sheet, .choice:hover .media { filter: saturate(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .choice:hover, .swatch:hover, .pick:hover, .editor-card:hover { transform: none; }
}

.dim-letter {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 8px;
  border: 1px solid #4a5a73;
  border-radius: 50%;
  color: #4a5a73;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  vertical-align: -4px;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.dim-letter.is-warm { border-color: #c9682c; color: #c9682c; }
.field:focus-within .dim-letter { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* ---- V mesh boundary ---- */
.bnd-list { display: grid; gap: 10px; margin: 6px 0 16px; max-width: 560px; }
.bnd-row { display: flex; align-items: flex-end; gap: 12px; }
.bnd-row .field { flex: 1; margin: 0; }
.bnd-remove { padding: 0 2px 14px; color: #8a5a3c; white-space: nowrap; }
.bnd-join {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 2px 30px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
}
.bnd-join::before {
  content: "";
  position: absolute;
  left: 10px; top: -8px; bottom: -8px;
  border-left: 1.5px dashed #c9cfd8;
}
.bnd-join > span { font-weight: 600; margin-right: 4px; }
.bnd-join .unit-btn { padding: 6px 14px; font-size: 14px; }
.bnd-add { justify-self: start; font-weight: 600; padding: 6px 0; }

.bnd-colours .swatch .chip-photo,
.bnd-colours .swatch .bnd-photos {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: #f0f2f5;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.bnd-colours .swatch .bnd-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3px; background: #fff; }
.bnd-colours .swatch .bnd-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnd-colours .swatch small { color: #7b8697; }

.preview-price { color: var(--accent-dark, #111); font-weight: 700; }
