/*
 * Create Neon builder: front-end styles. Original work; no third-party CSS.
 *
 * 1. Tokens and font        5. Stage (preview, spec strip)
 * 2. Shared controls        6. On-canvas selection
 * 3. Studio app shell       7. Phones (mobile.js bottom sheets)
 * 4. Rail and panel         8. No-JS / narrow fallback
 */

/* 1. Tokens and font ---------------------------------------------------- */

/* Poppins (SIL Open Font License 1.1), bundled: see assets/fonts/FONTS.md. */
@font-face { font-family: "cnnb-studio-sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-ui-400.woff2") format("woff2"); }
@font-face { font-family: "cnnb-studio-sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-ui-600.woff2") format("woff2"); }
@font-face { font-family: "cnnb-studio-sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-ui-800.woff2") format("woff2"); }

.cnnb {
  --cnnb-accent: #ff2d95;
  --cnnb-teal: #19e3d1;
  --cnnb-ink: #17142a;
  --cnnb-muted: #6b6784;
  --cnnb-line: #e4e2ee;
  --cnnb-navy: #120c2b;
  --cnnb-navy-2: #221a45;
  --cnnb-stage: #1a0b3a;
  --cnnb-panel: #f4f3f9;
  --cnnb-radius: 14px;
  --cnnb-shadow: 0 1px 2px rgba(23, 20, 42, .05), 0 8px 24px rgba(23, 20, 42, .07);
  --cnnb-gradient: linear-gradient(90deg, var(--cnnb-accent), var(--cnnb-teal));
  --cnnb-button: linear-gradient(90deg, var(--cnnb-button-from, var(--cnnb-accent)), var(--cnnb-button-to, var(--cnnb-teal)));
  --cnnb-heading-font: inherit;
  --cnnb-top-h: 64px;
  --cnnb-rail-w: 72px;
  /* 2.3.0: controls column grows with the builder width (about 410px at 1024, 490px from 1280 up). */
  --cnnb-panel-w: clamp(300px, calc(31% + 93px), 490px);
  /* Layout Settings (admin) override these; see Builder::brand_css(). */
  --cnnb-bar: #fff;
  --cnnb-card: #fff;
  --cnnb-btn-radius: 999px;
  --cnnb-pad: 14px;
  --cnnb-gap: 12px;
  color: var(--cnnb-ink);
  font-family: var(--cnnb-body-font, "cnnb-studio-sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-feature-settings: "tnum" 1;
  font-size: var(--cnnb-font-size, 15px);
  line-height: 1.45;
}
.cnnb *, .cnnb *::before, .cnnb *::after { box-sizing: border-box; }
.cnnb [hidden] { display: none !important; }
.cnnb .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cnnb button, .cnnb input, .cnnb select, .cnnb textarea { font-family: inherit; }

/* Tiny uppercase labels used across the app. */
.cnnb__eyebrow, .cnnb__label, .cnnb__stage-head h2, .cnnb__stats dt, .cnnb__tip strong, .cnnb__summary h3 {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.cnnb__label { margin: 0 0 10px; color: var(--cnnb-muted); }

/* 2. Shared controls ---------------------------------------------------- */

.cnnb__notice { background: #fff4d6; border-radius: var(--cnnb-radius); padding: 10px 14px; margin: 0 0 12px; }
.cnnb__help { font-size: 13px; color: var(--cnnb-muted); margin: 6px 0 0; }
.cnnb textarea { width: 100%; min-height: 84px; font-size: 18px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d6d4e2; resize: vertical; }
.cnnb__inline { display: flex; flex-wrap: wrap; gap: 8px; }
.cnnb__grid { display: grid; gap: 8px; }
.cnnb__grid--fonts { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); max-height: 340px; overflow: auto; padding: 2px; }
.cnnb__grid--sizes { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.cnnb__grid--styles, .cnnb__grid--types { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.cnnb__grid--types { margin: 6px 0 12px; }
.cnnb__grid--symbols { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.cnnb__sublabel { margin: 0; font-weight: 600; font-size: 14px; }

.cnnb__chip, .cnnb__card, .cnnb__swatch { position: relative; cursor: pointer; }
.cnnb__chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--cnnb-line); border-radius: var(--cnnb-btn-radius, 999px); padding: 6px 12px; font-size: 14px; background: #fff; transition: border-color .15s, background-color .15s; }
.cnnb__card { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--cnnb-line); border-radius: min(12px, var(--cnnb-radius)); padding: 10px; background: var(--cnnb-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cnnb__card[hidden] { display: none; }
.cnnb__card input, .cnnb__swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cnnb__card:hover:not(:has(input:disabled)) { border-color: #c8c4da; transform: translateY(-1px); }
.cnnb__card:has(input:checked), .cnnb__chip:has(input:checked) { border-color: var(--cnnb-accent); background: color-mix(in srgb, var(--cnnb-accent) 5%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cnnb-accent) 28%, transparent); }
.cnnb__card:has(input:focus-visible), .cnnb__swatch:has(input:focus-visible), .cnnb__chip:has(input:focus-visible) { outline: 3px solid #2563eb; outline-offset: 2px; }
.cnnb__card:has(input:disabled), .cnnb__chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.cnnb__font { position: relative; }
.cnnb__font:has(input:checked)::after { content: "\2713"; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cnnb-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cnnb__font:has(input:checked) .cnnb__badge { right: 28px; }
.cnnb__font-group + .cnnb__font-group { margin-top: 14px; }
.cnnb__font-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; }
.cnnb__font-line .cnnb__help { flex-basis: 100%; margin: 0; }
.cnnb__tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--cnnb-accent) 12%, #fff); color: var(--cnnb-accent); font-size: 11px; font-weight: 700; }
.cnnb__badge { position: absolute; top: 4px; right: 6px; font-size: 10px; background: var(--cnnb-accent); color: #fff; border-radius: 4px; padding: 1px 5px; }
.cnnb__font-sample { display: block; min-height: 1.3em; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnnb__font-name { display: block; font-size: 11px; color: var(--cnnb-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnnb__size-dims, .cnnb__size-price { font-size: 12px; color: var(--cnnb-muted); }
.cnnb__size-price { font-weight: 700; color: var(--cnnb-ink); }
.cnnb__width { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cnnb__width input[type="range"] { flex: 1 1 140px; }
.cnnb__width input[type="number"] { width: 84px; }

/* Segmented toggles (alignment, light mode, indoor/outdoor): dark track, teal text when on. */
.cnnb__segmented { flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--cnnb-navy); }
.cnnb__segmented .cnnb__chip { flex: 1 1 0; justify-content: center; text-align: center; min-height: 38px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: #c9c5e0; font-size: 13px; font-weight: 600; line-height: 1.2; }
.cnnb__segmented .cnnb__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cnnb__segmented .cnnb__chip:has(input:checked) { background: var(--cnnb-navy-2); color: var(--cnnb-teal); box-shadow: none; }
.cnnb__segmented .cnnb__chip:has(input:disabled) { opacity: .4; }

.cnnb__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cnnb__cset { margin-bottom: 8px; border: 1px solid var(--cnnb-line); border-radius: 12px; padding: 8px 10px; }
.cnnb__cset summary { cursor: pointer; font-weight: 700; }
.cnnb__cset summary small { color: var(--cnnb-muted); font-weight: 400; }
.cnnb__cset summary .cnnb__help { display: block; margin: 2px 0 0; font-weight: 400; }
.cnnb__cset[open] summary { margin-bottom: 8px; }
.cnnb__swatch-hex { color: var(--cnnb-muted); font-size: 9px; letter-spacing: .02em; }
.cnnb__swatch { display: flex; flex-direction: column; align-items: center; width: 56px; font-size: 11px; line-height: 1.25; text-align: center; }
.cnnb__swatch-dot { width: 32px; height: 32px; margin-bottom: 3px; border-radius: 50%; background: var(--cnnb-swatch); box-shadow: 0 0 10px var(--cnnb-swatch); border: 2px solid #fff; outline: 1px solid var(--cnnb-line); }
.cnnb__swatch--board .cnnb__swatch-dot { box-shadow: none; border-radius: 8px; }
.cnnb__swatch:has(input:checked) .cnnb__swatch-dot { outline: 3px solid var(--cnnb-accent); }
.cnnb__swatch--custom .cnnb__swatch-dot { background: conic-gradient(red, #ff0, lime, cyan, blue, #f0f, red); }
.cnnb__swatch--custom:has(input:checked) .cnnb__swatch-dot { background: var(--cnnb-swatch, #fff); }
.cnnb__custom { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.cnnb__custom input[type="color"] { width: 48px; height: 36px; padding: 0; border: 1px solid var(--cnnb-line); border-radius: 8px; background: none; }
.cnnb__letters { margin-top: 12px; }
.cnnb__letter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cnnb__letter { display: flex; align-items: center; gap: 4px; border: 1px solid var(--cnnb-line); border-radius: 8px; padding: 2px 6px; }
.cnnb__letter-char { font-weight: 700; min-width: 1ch; }

.cnnb__filters { margin: 0 0 10px; }
.cnnb__filter { cursor: pointer; border: 1px solid var(--cnnb-line); background: #fff; color: var(--cnnb-ink); border-radius: var(--cnnb-btn-radius, 999px); padding: 5px 12px; font-size: 12px; font-weight: 600; }
.cnnb__filter[aria-pressed="true"] { background: var(--cnnb-navy); border-color: var(--cnnb-navy); color: var(--cnnb-teal); }
.cnnb__filter small { opacity: .8; margin-left: 4px; }
.cnnb__size-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 6px; }
/* Out of flow, so the bar does not jump while a price is on its way. */
.cnnb__top-price { position: relative; }
.cnnb__calc { position: absolute; top: 100%; right: 0; font-size: 11px; opacity: .7; white-space: nowrap; }
.cnnb__grid--styles .cnnb__card { position: relative; padding-top: 18px; }
.cnnb__spec-link { font-size: 11px; color: var(--cnnb-accent); }
.cnnb__timeline { display: flex; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.cnnb__timeline li { flex: 1; padding: 8px 10px; border: 1px solid var(--cnnb-line); border-radius: 10px; font-size: 12px; }
.cnnb__timeline strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.cnnb__spec + .cnnb__spec { margin-top: 6px; }
.cnnb__seg { display: inline-flex; gap: 4px; }
.cnnb__search { display: block; margin: 0 0 10px; }
.cnnb__search input { width: 100%; padding: 9px 14px; border: 1px solid #d6d4e2; border-radius: var(--cnnb-btn-radius, 999px); }
.cnnb__fx { max-height: 220px; overflow: auto; padding: 2px; }
.cnnb__speed { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.cnnb__speed input { flex: 1; }
.cnnb__speed output { min-width: 3em; font-variant-numeric: tabular-nums; }

.cnnb__field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.cnnb__field select, .cnnb__field input { padding: 8px 10px; border-radius: 10px; border: 1px solid #d6d4e2; font-weight: 400; }
.cnnb textarea:focus, .cnnb__field select:focus, .cnnb__field input:focus, .cnnb__search input:focus { outline: none; border-color: var(--cnnb-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cnnb-accent) 20%, transparent); }
.cnnb__check { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; }
.cnnb__check input { margin-top: 3px; }

.cnnb__sym { cursor: pointer; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--cnnb-line); border-radius: min(10px, var(--cnnb-radius)); background: var(--cnnb-stage); padding: 6px; }
.cnnb__sym svg, .cnnb__sym-row svg { width: 100%; height: 100%; fill: none; stroke: #ff7ad0; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cnnb__sym:hover:not(:disabled) { border-color: var(--cnnb-accent); }
.cnnb__sym:disabled { opacity: .4; cursor: not-allowed; }
.cnnb__sym-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cnnb__sym-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; font-size: 13px; }
.cnnb__sym-row svg { width: 28px; height: 28px; background: var(--cnnb-stage); border-radius: 6px; padding: 3px; }
.cnnb__sym-row input[type="range"] { grid-column: 2 / -1; grid-row: 2; }
.cnnb__sym-row select { font-size: 13px; max-width: 120px; }
.cnnb__sym-row .cnnb__tool { padding: 4px 9px; min-height: 30px; }

.cnnb__tool, .cnnb__toggle { cursor: pointer; min-height: 36px; border: 1px solid var(--cnnb-line); background: #fff; color: var(--cnnb-ink); border-radius: var(--cnnb-btn-radius, 999px); padding: 7px 14px; font-size: 13px; transition: background-color .15s, border-color .15s, color .15s; }
.cnnb__tool:hover:not(:disabled) { border-color: var(--cnnb-accent); }
.cnnb__tool:disabled { opacity: .45; cursor: not-allowed; }
.cnnb__tool[aria-pressed="true"], .cnnb__tool--on { background: var(--cnnb-ink); color: #fff; border-color: var(--cnnb-ink); }
.cnnb__tool:focus-visible, .cnnb__toggle:focus-visible, .cnnb__filter:focus-visible, .cnnb__sym:focus-visible, .cnnb__sign:focus-visible, .cnnb__rail-step:focus-visible, .cnnb__selbar button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.cnnb__cta { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; padding: 10px 20px; border: 0; border-radius: var(--cnnb-btn-radius, 999px); background: var(--cnnb-accent); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; transition: transform .15s, filter .15s; }
.cnnb__cta:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.cnnb__cta:disabled { opacity: .5; cursor: not-allowed; }
.cnnb__cta[aria-busy="true"] { opacity: .6; cursor: progress; }
.cnnb__cta--alt { background: #fff; color: var(--cnnb-ink); border: 2px solid var(--cnnb-ink); font-size: 15px; }
.cnnb__link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; font-size: 14px; }

/* Price breakdown, quote and contact forms (shown on the Buy step). */
.cnnb__summary { background: var(--cnnb-card); border-radius: var(--cnnb-radius); padding: calc(var(--cnnb-pad) + 2px); box-shadow: var(--cnnb-shadow); }
.cnnb__summary h3 { margin: 0 0 4px; color: var(--cnnb-muted); }
.cnnb__total { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cnnb__total del { font-size: 17px; font-weight: 400; color: #8d89a3; }
.cnnb [data-cnnb-price].is-estimate .cnnb__total strong { opacity: .8; }
.cnnb__breakdown summary { cursor: pointer; font-size: 13px; color: var(--cnnb-muted); min-height: 28px; display: flex; align-items: center; }
.cnnb__lines { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.cnnb__lines li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--cnnb-line); padding: 3px 0; }
.cnnb__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cnnb__lead { margin-top: 12px; padding: 14px; border: 1px solid var(--cnnb-line); border-radius: 12px; background: #fff; }
.cnnb__lead h3, .cnnb__lead h4 { margin: 0 0 6px; font-size: 16px; }
.cnnb__lead label { display: block; font-size: 14px; }
.cnnb__lead input[type="text"], .cnnb__lead input[type="email"], .cnnb__lead input[type="tel"], .cnnb__lead textarea { width: 100%; padding: 8px 10px; border: 1px solid #d6d4e2; border-radius: 8px; }
.cnnb__quote textarea { min-height: 70px; font-size: 15px; }
.cnnb__welcome { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff4d6; border: 1px solid #f3dfa3; border-radius: 12px; padding: 10px 14px; }
.cnnb__welcome p { margin: 0; flex: 1 1 220px; }

/* 3. Studio app shell (desktop) ----------------------------------------- */

.cnnb-config { display: none; }
/* Light chrome round a dark stage (2.1): top bar, rail and panel are light; Branding colours stay the accents. */
.cnnb__top { display: flex; align-items: center; gap: 20px; min-height: var(--cnnb-top-h); padding: 8px 20px; background: var(--cnnb-bar); color: var(--cnnb-ink); border-bottom: 1px solid var(--cnnb-line); }
.cnnb__brand { display: inline-flex; align-items: center; color: var(--cnnb-ink); font-family: var(--cnnb-heading-font); font-size: 19px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.cnnb__brand img { display: block; width: auto; max-width: 180px; }
.cnnb__brand--logo::after { display: none; }
.cnnb__stage-head h2, .cnnb legend, .cnnb__summary h3 { font-family: var(--cnnb-heading-font); }
.cnnb__brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--cnnb-accent); box-shadow: 0 0 8px var(--cnnb-accent); }
.cnnb__top-price { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; margin-left: auto; text-align: right; }
.cnnb__top-price.is-estimate strong { opacity: .8; }
.cnnb__top-price .cnnb__eyebrow { grid-column: 1 / -1; color: var(--cnnb-accent); font-size: 10px; }
.cnnb__top-row { display: inline-flex; align-items: baseline; gap: 8px; }
.cnnb__top-row del { color: #8d89a3; font-size: 14px; }
.cnnb__top-row strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.cnnb__top-save { align-self: center; padding: 2px 9px; border-radius: var(--cnnb-btn-radius, 999px); background: color-mix(in srgb, var(--cnnb-accent) 12%, #fff); color: color-mix(in srgb, var(--cnnb-accent) 75%, #000); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cnnb__delta { grid-column: 1 / -1; min-height: 1em; font-size: 12px; color: var(--cnnb-muted); }
.cnnb__delta.is-up { color: color-mix(in srgb, var(--cnnb-accent) 75%, #000); }
.cnnb__delta.is-down { color: color-mix(in srgb, var(--cnnb-teal) 55%, #000); }
.cnnb__top-actions { display: flex; align-items: center; gap: 10px; }
.cnnb__top .cnnb__cta { width: auto; margin: 0; min-height: 44px; padding: 0 26px; background: var(--cnnb-button); color: var(--cnnb-button-text, #fff); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 22px color-mix(in srgb, var(--cnnb-accent) 35%, transparent); }
.cnnb__top .cnnb__help { max-width: 190px; margin: 0; color: var(--cnnb-muted); font-size: 11px; line-height: 1.3; }
.cnnb__cart-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cnnb-line); color: var(--cnnb-ink); }
.cnnb__cart-link svg, .cnnb__rail-step svg, .cnnb__rail-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 761px) {
  .cnnb--app:not(.is-mobile) { display: grid; grid-template-rows: auto minmax(0, 1fr); height: min(100vh, 960px); min-height: 560px; overflow: hidden; border-radius: 18px; background: var(--cnnb-panel); }
  .cnnb--app:not(.is-mobile) > .cnnb__notice { position: absolute; z-index: 20; top: calc(var(--cnnb-top-h) + 10px); left: 50%; transform: translateX(-50%); box-shadow: var(--cnnb-shadow); }
  .cnnb--app:not(.is-mobile) .cnnb__layout { position: relative; display: grid; grid-template-columns: var(--cnnb-rail-w) var(--cnnb-panel-w) minmax(0, 1fr); min-height: 0; transition: grid-template-columns .2s ease; }
  .cnnb--app.is-rail-slim { --cnnb-rail-w: 52px; }
  .cnnb--app.is-panel-hidden { --cnnb-panel-w: 0px; }

  /* Full screen: covers the theme header and footer (keeps the WP admin bar).
     Extra class weight so block-theme "alignwide" widths cannot shrink it. */
  .cnnb.cnnb--app.cnnb--fullscreen:not(.is-mobile) { position: fixed; z-index: 99990; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; height: auto; min-height: 0; max-width: none; margin: 0; border-radius: 0; }
  html:has(.cnnb--fullscreen:not(.is-mobile)), html:has(.cnnb--fullscreen:not(.is-mobile)) body { overflow: hidden; }
}

/* 4. Rail and panel ------------------------------------------------------ */

.cnnb__rail { display: none; }
@media (min-width: 761px) {
  .cnnb--app:not(.is-mobile) .cnnb__rail { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; overflow-y: auto; background: var(--cnnb-bar); border-right: 1px solid var(--cnnb-line); scrollbar-width: none; }
  .cnnb__rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .cnnb__rail-toggle { align-self: center; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border: 0; border-radius: 10px; background: transparent; color: var(--cnnb-muted); cursor: pointer; }
  .cnnb__rail-toggle:hover { color: var(--cnnb-ink); background: var(--cnnb-panel); }
  .cnnb__rail-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; color: var(--cnnb-muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.15; transition: color .15s, background-color .15s; }
  .cnnb__rail-step:hover { color: var(--cnnb-ink); }
  .cnnb__rail-step[aria-current="step"] { color: var(--cnnb-ink); background: color-mix(in srgb, var(--cnnb-accent) 10%, #fff); box-shadow: inset 3px 0 0 var(--cnnb-accent); }
  .cnnb__rail-step[aria-current="step"] svg { color: var(--cnnb-accent); }
  /* Only the current step carries the tick; other steps stay plain. */
  .cnnb__rail-step[aria-current="step"]::after { content: "\2713"; position: absolute; top: 5px; right: calc(50% - 20px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--cnnb-accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0; }
  .cnnb.is-rail-slim .cnnb__rail-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cnnb.is-rail-slim .cnnb__rail-step[aria-current="step"]::after { right: 4px; }
  /* 2.5.0: with done ticks on, a ✓ means "done"; the current step keeps its highlight only. */
  .cnnb.has-step-ticks .cnnb__rail-step[aria-current="step"]::after { content: none; }

  .cnnb--app:not(.is-mobile) .cnnb__panel { min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 28px; background: var(--cnnb-panel); scrollbar-width: thin; }
  .cnnb--app.is-panel-hidden:not(.is-mobile) .cnnb__panel { padding: 0; overflow: hidden; }
  .cnnb--app.is-panel-hidden:not(.is-mobile) .cnnb__panel > :not(.cnnb__panel-toggle) { visibility: hidden; }
  .cnnb__panel-toggle { position: absolute; z-index: 5; top: 18px; left: calc(var(--cnnb-rail-w) + var(--cnnb-panel-w) - 14px); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--cnnb-line); border-radius: 50%; background: #fff; color: var(--cnnb-ink); font-size: 15px; line-height: 1; cursor: pointer; box-shadow: var(--cnnb-shadow); transition: left .2s ease; }
  .cnnb.is-panel-hidden .cnnb__panel-toggle { left: calc(var(--cnnb-rail-w) + 8px); }

  /* One step at a time once studio.js is running. */
  .cnnb.is-studio:not(.is-mobile) .cnnb__step:not(.is-active) { display: none; }
  .cnnb.is-studio:not(.is-mobile):not([data-cnnb-active-step="buy"]) .cnnb__checkout { display: none; }
}
.cnnb__form { margin: 0; }
.cnnb__step { margin: 0 0 16px; padding: 0; min-width: 0; border: 0; }
.cnnb__step > legend { float: left; width: 100%; margin: 0; padding: 0 28px 0 0; font-size: 26px; font-weight: var(--cnnb-heading-weight, 800); letter-spacing: -.02em; line-height: 1.15; text-transform: var(--cnnb-heading-case, none); }
.cnnb__step > legend + * { clear: both; }
.cnnb__step-intro { margin: 6px 0 14px; color: var(--cnnb-muted); font-size: 13px; }
.cnnb__box { margin-top: var(--cnnb-gap); padding: var(--cnnb-pad); border-radius: var(--cnnb-radius); background: var(--cnnb-card); box-shadow: var(--cnnb-shadow); }
.cnnb__box:first-of-type { margin-top: 0; }
.cnnb__step-intro + .cnnb__box { margin-top: 0; }
.cnnb__next { display: block; width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: min(12px, var(--cnnb-btn-radius)); background: var(--cnnb-navy); color: var(--cnnb-teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cnnb__next:hover { background: var(--cnnb-navy-2); }
.cnnb__checkout { margin-bottom: 16px; }
.cnnb__tip { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--cnnb-teal) 12%, #fff); box-shadow: inset 3px 0 0 var(--cnnb-teal); }
.cnnb__tip strong { color: #0d8c80; }
.cnnb__tip p { margin: 4px 0 0; font-size: 13px; }

/* 5. Stage --------------------------------------------------------------- */

.cnnb__preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 20px; background: var(--cnnb-stage); color: #eae8f6; }
@media (min-width: 761px) {
  .cnnb--app:not(.is-mobile) .cnnb__preview { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a2f6b transparent; }
  /* The sign gets the stage: the scene fills the view above the tool row; stats and scenes scroll below. */
  .cnnb--app:not(.is-mobile) .cnnb__scene { flex: 0 0 auto; height: max(420px, calc(100% - 96px)); }
}
.cnnb__stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cnnb__stage-head h2 { margin: 0; color: var(--cnnb-teal); }
.cnnb__stage-head p { margin: 0; color: #a9a4c6; font-size: 12px; }
.cnnb__scene { position: relative; flex: 1 0 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px; border-radius: 18px; background: var(--cnnb-scene-colour, var(--cnnb-stage)) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: filter .3s; }
.cnnb__preview.is-day .cnnb__scene { filter: brightness(1.12); }
.cnnb__dims { position: absolute; z-index: 2; left: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; }

/* Canvas sign (neon-render.js): base layer = board + unlit tubes, light layer = glow. */
.cnnb__sign.has-canvas { position: absolute; inset: 0; }
.cnnb__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cnnb__layer--light { mix-blend-mode: normal; transition: opacity .35s ease; }
.cnnb__layer--guide { pointer-events: none; }
.cnnb__preview.is-day .cnnb__layer--light { opacity: 0; animation: none; }
.cnnb__sign.is-draggable { touch-action: none; }
.cnnb__sign.is-draggable.is-grab { cursor: grab; }
.cnnb__sign.is-dragging { cursor: grabbing; }
/* Plain-text fallback when canvas or JavaScript is not available. */
.cnnb__sign:not(.has-canvas) { --cnnb-colour: #fff; position: relative; max-width: 100%; padding: .35em .5em; color: #fff; font-size: 48px; line-height: 1.15; text-align: center; white-space: pre; }
.cnnb__sign:not(.has-canvas) .cnnb__line { display: block; color: color-mix(in srgb, var(--cnnb-colour) 25%, #fff); text-shadow: 0 0 .04em #fff, 0 0 .12em var(--cnnb-colour), 0 0 .3em var(--cnnb-colour), 0 0 .7em var(--cnnb-colour); }

/* Size arrows round the backboard (studio.js). */
.cnnb__measure { position: absolute; z-index: 1; pointer-events: none; color: var(--cnnb-teal); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-shadow: 0 0 6px var(--cnnb-stage), 0 0 2px var(--cnnb-stage); }
.cnnb__measure-w, .cnnb__measure-h { position: absolute; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
/* Width ruler under the sign, clear of the selection handles and the turn handle above it. */
.cnnb__measure-w { left: 0; right: 0; bottom: -30px; height: 16px; border-inline: 1px solid currentColor; }
.cnnb__scene.has-sel .cnnb__measure-w { bottom: -52px; }
.cnnb__measure-h { top: 0; bottom: 0; left: -24px; width: 16px; border-block: 1px solid currentColor; writing-mode: vertical-rl; transform: rotate(180deg); }
/* The line stops short of the label in the middle. */
.cnnb__measure-w { background: linear-gradient(currentColor, currentColor) left center / calc(50% - 32px) 1px no-repeat, linear-gradient(currentColor, currentColor) right center / calc(50% - 32px) 1px no-repeat; }
.cnnb__measure-h { background: linear-gradient(currentColor, currentColor) center top / 1px calc(50% - 32px) no-repeat, linear-gradient(currentColor, currentColor) center bottom / 1px calc(50% - 32px) no-repeat; }

.cnnb__errors { margin: 0; color: #ffd27a; }
.cnnb__errors:empty { display: none; }
.cnnb__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cnnb__toolbar .cnnb__tool, .cnnb__toolbar .cnnb__toggle { min-height: 34px; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--cnnb-accent) 55%, transparent); background: var(--cnnb-navy-2); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cnnb__toolbar .cnnb__tool:hover:not(:disabled), .cnnb__toolbar .cnnb__toggle:hover { border-color: var(--cnnb-accent); background: #2d2358; }
.cnnb__toolbar .cnnb__tool[aria-pressed="true"] { border-color: var(--cnnb-teal); color: var(--cnnb-teal); }
.cnnb__toolbar .cnnb__toggle[aria-pressed="false"] { color: var(--cnnb-teal); }
.cnnb__scene-pick { font-size: 12px; }
.cnnb__scene-pick select { margin-left: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid #3a2f6b; background: var(--cnnb-navy-2); color: #fff; }
.cnnb:has([data-cnnb-scene-thumbs]) .cnnb__scene-pick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cnnb__preview > [data-cnnb-share-status]:empty { display: none; }
.cnnb__preview .cnnb__help { color: #a9a4c6; }

/* Optional room photos (Scenes feature, off by default). */
.cnnb__scenes { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cnnb__scene-thumb { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: #a9a4c6; font-size: 11px; text-align: center; cursor: pointer; scroll-snap-align: start; }
.cnnb__scene-thumb img, .cnnb__scene-thumb::before { width: 84px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--cnnb-thumb-colour, var(--cnnb-stage)); outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .15s; }
.cnnb__scene-thumb:not(:has(img))::before { content: ""; display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cnnb__scene-thumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnnb__scene-thumb[aria-pressed="true"] { color: #fff; font-weight: 600; }
.cnnb__scene-thumb[aria-pressed="true"] img, .cnnb__scene-thumb[aria-pressed="true"]::before { outline-color: var(--cnnb-accent); }

/* Spec strip: uppercase accent labels over bold values. */
.cnnb__readout { flex: 0 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--cnnb-navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cnnb__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px 14px; margin: 0; }
.cnnb__stats div { min-width: 0; }
.cnnb__stats dt { color: var(--cnnb-accent); font-size: 10px; }
.cnnb__stats dd { margin: 3px 0 0; color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnnb__eta { margin: 10px 0 0; color: #fff; font-size: 14px; font-weight: 600; }
.cnnb__eta:empty { display: none; }
.cnnb__eta--inline { margin: 6px 0 8px; }
.cnnb__spec { margin-top: 8px; font-size: 13px; }
.cnnb__spec summary { cursor: pointer; min-height: 30px; display: flex; align-items: center; color: var(--cnnb-teal); font-weight: 600; }
.cnnb__spec dl { display: grid; gap: 4px; margin: 6px 0 0; }
.cnnb__spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.cnnb__spec dt { color: #a9a4c6; }
.cnnb__spec dd { margin: 0; text-align: right; }
.cnnb__proof { margin: 8px 0 0; color: #c9c5e0; font-size: 13px; }
.cnnb__preview .cnnb__welcome { color: var(--cnnb-ink); }

/* 6. On-canvas selection (canvas-tools.js) ------------------------------- */

/* Letters picked on the sign, marked in the text box (canvas-tools.js draws this over the box). */
.cnnb__texthl { position: absolute; z-index: 1; margin: 0; overflow: hidden; border-style: solid; border-color: transparent; background: transparent; color: transparent; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; pointer-events: none; }
.cnnb__texthl mark { border-radius: 3px; background: rgba(255, 45, 149, .3); background: color-mix(in srgb, var(--cnnb-accent) 32%, transparent); color: transparent; }
.cnnb__selbox { position: absolute; z-index: 5; pointer-events: none; border: 1.5px dashed var(--cnnb-teal); border-radius: 8px; box-shadow: 0 0 0 1px rgba(26, 11, 58, .5); }
.cnnb__selhandle { --cnnb-h: 14px; position: absolute; width: var(--cnnb-h); height: var(--cnnb-h); padding: 0; border: 2px solid var(--cnnb-navy); border-radius: 3px; background: #fff; cursor: nwse-resize; pointer-events: auto; touch-action: none; }
.cnnb__selhandle.is-se { right: calc(var(--cnnb-h) / -2); bottom: calc(var(--cnnb-h) / -2); }
.cnnb__selhandle.is-nw { left: calc(var(--cnnb-h) / -2); top: calc(var(--cnnb-h) / -2); }
.cnnb__selhandle.is-ne { right: calc(var(--cnnb-h) / -2); top: calc(var(--cnnb-h) / -2); cursor: nesw-resize; }
.cnnb__selhandle.is-sw { left: calc(var(--cnnb-h) / -2); bottom: calc(var(--cnnb-h) / -2); cursor: nesw-resize; }
/* The turn handle sits on a short stem above the box. */
.cnnb__selspin { position: absolute; left: 50%; top: -30px; width: 18px; height: 18px; margin-left: -9px; padding: 0; border: 2px solid var(--cnnb-navy); border-radius: 50%; background: var(--cnnb-teal); cursor: grab; pointer-events: auto; touch-action: none; }
.cnnb__selspin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 12px; margin-left: -.75px; background: var(--cnnb-teal); }
.cnnb__selbar { position: absolute; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(440px, calc(100% - 8px)); padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--cnnb-accent) 55%, transparent); border-radius: 14px; background: var(--cnnb-navy); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.cnnb__selbar-name { padding: 0 4px; color: var(--cnnb-teal); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cnnb__selbar-count { color: #c9c5e0; }
.cnnb__selbar-btn.is-text { flex: 0 0 auto; white-space: nowrap; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cnnb__selbar-swatches { display: flex; gap: 4px; max-width: 250px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.cnnb__selbar-swatch { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 2px solid var(--cnnb-navy); border-radius: 50%; background: var(--cnnb-swatch, #fff); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; }
.cnnb__selbar-swatch.is-main { background: linear-gradient(135deg, #fff 45%, var(--cnnb-accent) 46%, var(--cnnb-accent) 54%, #fff 55%); }
.cnnb__selbar-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cnnb-teal); }
.cnnb__selbar-btn { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: var(--cnnb-navy-2); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.cnnb__selbar-btn:hover { border-color: var(--cnnb-teal); }
.cnnb__selbar-btn.is-danger { color: #ff8cc6; }
.cnnb.is-moving .cnnb__selbar, .cnnb.is-moving .cnnb__selbox, .cnnb.is-resizing .cnnb__selbar { visibility: hidden; }

/* Tool column on the right of the stage; each tool opens a panel to its left. */
.cnnb__seltools { position: absolute; z-index: 7; top: 50%; right: 10px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: var(--cnnb-navy); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); transform: translateY(-50%); }
.cnnb__seltool { display: grid; justify-items: center; gap: 2px; width: 52px; padding: 7px 2px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.cnnb__seltool:hover, .cnnb__seltool[aria-expanded="true"] { background: var(--cnnb-navy-2); color: var(--cnnb-teal); }
.cnnb__seltool:disabled { opacity: .35; cursor: not-allowed; }
.cnnb__seltool-icon { font-size: 17px; line-height: 1; }
.cnnb__seltool-label { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
/* 2.3.1: when the tools cannot sit clear of the handles, canvas-tools.js reserves room and the sign refits. */
.cnnb__scene.has-sel .cnnb__sign.has-canvas { right: var(--cnnb-room-r, 0px); bottom: var(--cnnb-room-b, 0px); }
.cnnb__selfly { position: absolute; z-index: 7; top: 50%; right: 82px; transform: translateY(-50%); width: 220px; max-height: 340px; overflow-y: auto; padding: 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: var(--cnnb-navy); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.cnnb__selfly-title { margin: 0 0 8px; color: var(--cnnb-teal); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cnnb__selfly-note { margin: 8px 0 0; color: #c9c5e0; font-size: 12px; }
.cnnb__selfly-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cnnb__selfly-out { min-width: 52px; font-size: 16px; font-weight: 700; text-align: center; }
.cnnb__selfly-reset { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--cnnb-teal); font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cnnb__selfly .cnnb__selbar-swatches { flex-wrap: wrap; max-width: none; }
.cnnb__selpad { display: grid; grid-template-areas: ". up ." "left . right" ". down ."; grid-template-columns: repeat(3, 40px); justify-content: center; gap: 4px; }
.cnnb__selpad-btn { height: 36px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: var(--cnnb-navy-2); color: #fff; cursor: pointer; }
.cnnb__selpad-btn:hover { border-color: var(--cnnb-teal); }
.cnnb__selpad-btn.is-up { grid-area: up; }
.cnnb__selpad-btn.is-left { grid-area: left; }
.cnnb__selpad-btn.is-right { grid-area: right; }
.cnnb__selpad-btn.is-down { grid-area: down; }
.cnnb__selfonts { display: grid; gap: 4px; }
.cnnb__selfont { padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: var(--cnnb-navy-2); color: #fff; font-size: 18px; text-align: left; cursor: pointer; }
.cnnb__selfont[data-font=""] { font-family: inherit; font-size: 12px; }
.cnnb__selfont[aria-pressed="true"] { border-color: var(--cnnb-teal); box-shadow: 0 0 0 1px var(--cnnb-teal); }
@media (pointer: coarse) {
  .cnnb__selbar-swatch { width: 34px; height: 34px; }
  .cnnb__selbar-btn { min-width: 40px; height: 40px; }
  .cnnb__selhandle { --cnnb-h: 24px; }
  .cnnb__selspin { width: 28px; height: 28px; margin-left: -14px; top: -40px; }
}
/* Phone layout (any width the builder runs in phone mode): an open tool panel docks in a strip
   under the sign and the sign shrinks above it (the renderer refits); the edit bar stays one row
   of buttons left of the tool column. The bar's aria-label still names the selection. */
.cnnb.is-mobile .cnnb__scene { --cnnb-fly-h: 128px; }
.cnnb.is-mobile .cnnb__scene.has-fly .cnnb__sign.has-canvas { bottom: calc(var(--cnnb-fly-h) + var(--cnnb-room-b, 0px)); }
.cnnb.is-mobile .cnnb__selfly { top: auto; right: 82px; bottom: 0; left: 0; width: auto; height: var(--cnnb-fly-h); max-height: none; padding: 8px 10px; border-radius: 14px 14px 0 0; transform: none; }
.cnnb.is-mobile .cnnb__selfly-note { display: none; }
.cnnb.is-mobile .cnnb__selbar { gap: 4px; max-width: calc(100% - 88px); }
.cnnb.is-mobile .cnnb__selbar-name { display: none; }
.cnnb.is-mobile .cnnb__selbar-swatches { max-width: 100%; }
@media (max-width: 640px) {
  .cnnb__seltools { right: 6px; padding: 4px; }
  .cnnb__seltool { width: 42px; padding: 6px 2px; }
  .cnnb__seltool-label { display: none; }
  .cnnb__selfonts { grid-template-columns: 1fr 1fr; }
  .cnnb.is-mobile .cnnb__selfly { right: 58px; }
  .cnnb.is-mobile .cnnb__selbar { max-width: calc(100% - 64px); }
}

/* Quick symbols (Text step), border icons, size-reference person, chat slot (2.1). */
.cnnb__help--top { margin: -4px 0 10px; }
.cnnb__grid--quick { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.cnnb__grid--quick .cnnb__sym { padding: 5px; }
.cnnb__grid--borders { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); margin-top: 8px; }
.cnnb__chip--border { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 6px; border-radius: 12px; font-size: 12px; line-height: 1.2; text-align: center; }
.cnnb__chip--border input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cnnb__border-icon { display: block; width: 100%; height: 40px; border-radius: 8px; background: var(--cnnb-stage); }
.cnnb__border-icon canvas { display: block; width: 72px; height: 40px; margin: 0 auto; }
.cnnb__person-cm { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--cnnb-line); border-radius: var(--cnnb-btn-radius, 999px); font-size: 12px; }
.cnnb__person-cm[hidden] { display: none; }
.cnnb__person-cm input { width: 110px; accent-color: var(--cnnb-accent); }
.cnnb__person-cm output { min-width: 48px; font-weight: 600; }
.cnnb__sign.is-person { cursor: ew-resize; }
.cnnb__sign.is-person-head { cursor: ns-resize; }
.cnnb-chat { position: fixed; z-index: 99995; right: 16px; bottom: 16px; }
.cnnb-chat:empty { display: none; }

/* 7. Phones: price bar on top, step tabs at the bottom, each step a bottom sheet. */

.cnnb__tabs, .cnnb__pill, .cnnb__cartbar, .cnnb__scrim, .cnnb__mbar, .cnnb__sheet-head { display: none; }
.cnnb.is-mobile { --cnnb-tabs-h: 64px; --cnnb-bar-h: 52px; --cnnb-cartbar-h: 64px; --cnnb-kb: 0px; padding-bottom: calc(var(--cnnb-tabs-h) + var(--cnnb-cartbar-h) + 12px); background: var(--cnnb-stage); }
.cnnb.is-mobile .cnnb__top, .cnnb.is-mobile .cnnb__summary, .cnnb.is-mobile .cnnb__next, .cnnb.is-mobile .cnnb__panel-toggle { display: none; }
.cnnb.is-mobile.is-quoting .cnnb__summary { display: block; } /* "Ask for a quote" on the pill shows the quote form. */
.cnnb.is-mobile .cnnb__layout { display: flex; flex-direction: column; }
.cnnb.is-mobile .cnnb__preview { order: -1; position: sticky; top: var(--cnnb-bar-h); z-index: 1; padding: 0 0 10px; }
.cnnb.is-mobile .cnnb__stage-head { padding: 10px 12px 0; }
.cnnb.is-mobile .cnnb__scene { flex: 0 0 auto; min-height: 0; height: min(44svh, 360px); border-radius: 0; }
.cnnb.is-mobile .cnnb__selfly { scroll-margin-bottom: calc(var(--cnnb-tabs-h) + var(--cnnb-cartbar-h) + 8px); }
/* A docked tool panel adds its own height, so the sign keeps its room. */
.cnnb.is-mobile:not(.has-sheet):not(.is-typing) .cnnb__scene.has-fly { height: calc(min(44svh, 360px) + var(--cnnb-fly-h, 0px)); }
.cnnb.is-mobile .cnnb__toolbar, .cnnb.is-mobile .cnnb__errors, .cnnb.is-mobile [data-cnnb-share-status] { padding: 0 12px; }
.cnnb.is-mobile .cnnb__readout { margin: 0 12px; }
.cnnb.is-mobile .cnnb__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cnnb.is-mobile .cnnb__scenes { padding: 4px 12px; }
.cnnb.is-mobile .cnnb__scene-thumb, .cnnb.is-mobile .cnnb__scene-thumb img, .cnnb.is-mobile .cnnb__scene-thumb::before { width: 72px; }
.cnnb.is-mobile .cnnb__scene-thumb img, .cnnb.is-mobile .cnnb__scene-thumb::before { height: 48px; }
.cnnb.is-mobile .cnnb__welcome { margin: 8px 12px; padding: 8px 12px; font-size: 14px; }
.cnnb.is-mobile .cnnb__panel { display: block; padding: 12px; background: var(--cnnb-panel); }
.cnnb.is-mobile .cnnb__mbar { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center; min-height: var(--cnnb-bar-h); padding: 6px 14px; background: var(--cnnb-navy); color: #fff; }
.cnnb.is-mobile .cnnb__mbar-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; }
.cnnb.is-mobile .cnnb__mbar-price del { color: #9a95b8; font-size: 14px; font-weight: 400; }
.cnnb.is-mobile .cnnb__save { padding: 2px 8px; border-radius: var(--cnnb-btn-radius, 999px); background: color-mix(in srgb, var(--cnnb-accent) 22%, transparent); color: #ff8cc6; font-size: 12px; font-weight: 600; }
.cnnb.is-mobile .cnnb__mbar-quote { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font-size: 13px; font-weight: 400; text-decoration: underline; cursor: pointer; }
.cnnb.is-mobile .cnnb__mbar-msg { margin: 2px 0 0; font-size: 13px; color: #ffd27a; }

/* Steps are closed sheets until a tab opens one. */
.cnnb.is-mobile .cnnb__step { display: none; }
.cnnb.is-mobile .cnnb__step.is-open { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--cnnb-tabs-h) + var(--cnnb-kb)); z-index: 60; max-height: min(62svh, 560px); margin: 0; padding: 0 14px 16px; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0; background: var(--cnnb-panel); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.cnnb.is-mobile .cnnb__step.is-open > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cnnb.is-mobile .cnnb__step-intro { margin: 0 0 10px; }
.cnnb.is-mobile .cnnb__sheet-head { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 2; padding: 18px 0 10px; background: var(--cnnb-panel); }
.cnnb.is-mobile .cnnb__handle { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border: 0; background: transparent; cursor: grab; touch-action: none; }
.cnnb.is-mobile .cnnb__handle::before { content: ""; display: block; width: 44px; height: 5px; margin: 6px auto 0; border-radius: 3px; background: #c8c4da; }
.cnnb.is-mobile .cnnb__sheet-title { flex: 1; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
/* Titles focused by script (sheet open, Next) are not controls, so no focus ring. */
.cnnb .cnnb__sheet-title:focus, .cnnb [tabindex="-1"]:focus { outline: none; }
.cnnb.is-mobile .cnnb__sheet-btn, .cnnb.is-mobile .cnnb__sheet-done { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--cnnb-line); border-radius: var(--cnnb-btn-radius, 999px); background: #fff; font-size: 14px; cursor: pointer; }
.cnnb.is-mobile .cnnb__sheet-btn:disabled { opacity: .4; }
.cnnb.is-mobile .cnnb__sheet-done { border-color: var(--cnnb-navy); background: var(--cnnb-navy); color: var(--cnnb-teal); font-size: 18px; }
/* One scroll container only: lists inside a sheet scroll sideways, never vertically. */
.cnnb.is-mobile .cnnb__grid--fonts, .cnnb.is-mobile .cnnb__grid--sizes, .cnnb.is-mobile .cnnb__grid--styles, .cnnb.is-mobile .cnnb__grid--types { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(132px, 42%); max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-bottom: 6px; }
.cnnb.is-mobile .cnnb__grid--fonts { grid-template-rows: repeat(2, auto); }
.cnnb.is-mobile .cnnb__card { scroll-snap-align: start; min-height: 56px; }
.cnnb.is-mobile .cnnb__grid--quick { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 44px); grid-auto-columns: 44px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.cnnb.is-mobile .cnnb__swatches { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.cnnb.is-mobile .cnnb__swatch { flex: 0 0 64px; font-size: 12px; }
.cnnb.is-mobile .cnnb__swatch-dot { width: 40px; height: 40px; }
.cnnb.is-mobile .cnnb__chip { min-height: 44px; font-size: 15px; }
.cnnb.is-mobile .cnnb__check { min-height: 44px; font-size: 15px; }

.cnnb.is-mobile .cnnb__tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: var(--cnnb-tabs-h); padding-bottom: env(safe-area-inset-bottom); background: var(--cnnb-navy); overflow-x: auto; scrollbar-width: none; }
.cnnb.is-mobile .cnnb__tab { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 1px; border: 0; background: transparent; color: #a9a4c6; font-size: 9px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; text-align: center; cursor: pointer; }
.cnnb.is-mobile .cnnb__tab-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; }
.cnnb.is-mobile .cnnb__tab.is-current { color: #fff; box-shadow: inset 0 3px 0 var(--cnnb-accent); }
.cnnb.is-mobile .cnnb__tab.is-current .cnnb__tab-n { border-color: var(--cnnb-accent); background: var(--cnnb-accent); }
.cnnb.is-mobile .cnnb__cartbar { display: flex; position: fixed; left: 0; right: 0; bottom: var(--cnnb-tabs-h); z-index: 65; height: var(--cnnb-cartbar-h); align-items: center; padding: 0 14px; background: var(--cnnb-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cnnb.is-mobile .cnnb__pill { display: block; flex: 1; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--cnnb-btn-radius, 999px); background: var(--cnnb-button); color: var(--cnnb-button-text, #fff); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 16px color-mix(in srgb, var(--cnnb-accent) 40%, transparent); }
.cnnb.is-mobile .cnnb__pill:disabled { opacity: .55; }
.cnnb.is-mobile.has-sheet .cnnb__cartbar { display: none; }
.cnnb.is-mobile.has-sheet .cnnb__scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .3); }
/* Sheet open: shrink the scene so the sign stays visible above the sheet. */
.cnnb.is-mobile.has-sheet .cnnb__scene { height: calc(100svh - min(62svh, 560px) - var(--cnnb-tabs-h) - var(--cnnb-bar-h)); }
/* Keyboard open: compact sheet pinned above the keyboard, tabs out of the way. */
.cnnb.is-mobile.is-typing .cnnb__tabs { display: none; }
.cnnb.is-mobile.is-typing .cnnb__step.is-open { bottom: var(--cnnb-kb); max-height: 46svh; }
.cnnb.is-mobile.is-typing .cnnb__step.is-open .cnnb__inline { display: none; }
.cnnb.is-mobile.is-typing .cnnb__scene { height: calc(100svh - 46svh - var(--cnnb-kb) - var(--cnnb-bar-h)); }
html.cnnb-lock, html.cnnb-lock body { overflow: hidden; }

/* 8. Narrow screens without the phone sheets (feature off, or before JS) - */

@media (max-width: 760px) {
  .cnnb:not(.is-mobile) .cnnb__top { flex-wrap: wrap; gap: 10px; }
  .cnnb:not(.is-mobile) .cnnb__top-actions { width: 100%; }
  .cnnb:not(.is-mobile) .cnnb__top .cnnb__cta { flex: 1; }
  .cnnb:not(.is-mobile) .cnnb__layout { display: flex; flex-direction: column; }
  .cnnb:not(.is-mobile) .cnnb__preview { order: -1; }
  .cnnb:not(.is-mobile) .cnnb__panel { padding: 16px 12px; background: var(--cnnb-panel); }
  .cnnb:not(.is-mobile) .cnnb__next, .cnnb:not(.is-mobile) .cnnb__panel-toggle { display: none; }
  .cnnb.is-studio:not(.is-mobile) .cnnb__step { display: block; }
  .cnnb:not(.is-mobile) .cnnb__scene { flex-basis: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .cnnb__card, .cnnb__cta, .cnnb__scene-thumb img, .cnnb.is-mobile .cnnb__step.is-open, .cnnb--app .cnnb__layout, .cnnb__panel-toggle { transition: none; transform: none !important; }
}

/* 2.5.0 --------------------------------------------------------------------- */
/* "Done" ticks: green, separate from the current-step highlight (aria-current). */
.cnnb__done { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cnnb__rail-step.is-done::before { content: "\2713"; position: absolute; top: 5px; left: calc(50% - 20px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.cnnb.is-rail-slim .cnnb__rail-step.is-done::before { left: 4px; }
.cnnb.is-mobile .cnnb__tab-n { position: relative; }
.cnnb.is-mobile .cnnb__tab.is-done .cnnb__tab-n::after { content: "\2713"; position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 9px; font-weight: 800; border: 0; }
.cnnb__delta.is-same { color: var(--cnnb-muted); }
/* Auto-wrap notice, spec pop-up and acrylic photos. */
.cnnb__wrap-note { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.cnnb__link { padding: 0; border: 0; background: none; color: var(--cnnb-accent); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.cnnb__spec-btn { position: relative; z-index: 1; font-size: 11px; } /* Above the card's full-size radio. */
.cnnb__card.is-unavailable { opacity: .5; }
.cnnb__dialog { max-width: min(560px, 92vw); padding: 0; border: 0; border-radius: 12px; color: var(--cnnb-ink, #111); background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cnnb__dialog::backdrop { background: rgba(0,0,0,.55); }
.cnnb__dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cnnb__dialog-head h3 { margin: 0; font-size: 16px; }
.cnnb__dialog-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 20px; line-height: 1; cursor: pointer; }
.cnnb__dialog-close:focus-visible, .cnnb__link:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.cnnb__dialog-body { padding: 16px; }
.cnnb__spec-svg { display: block; width: 100%; height: auto; color: #334155; }
.cnnb__spec-facts { margin: 12px 0; padding-left: 18px; font-size: 13px; }
.cnnb__photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.cnnb__photos img { flex: 0 0 100%; max-height: 60vh; object-fit: contain; scroll-snap-align: center; border-radius: 8px; }
