/* Boat Studio layout. Colours and type come from /brand/brand.css tokens. */
:root { --st-stage: #eef2f6; --st-panel: var(--kw-paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --st-stage: #1b2129; } }
:root[data-theme="dark"] { --st-stage: #1b2129; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--kw-canvas); color: var(--kw-text); font: 400 14px/1.5 var(--kw-font); display: flex; flex-direction: column; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.st-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--kw-paper); border-bottom: 1px solid var(--kw-line); flex-wrap: wrap; }
.st-brand .kw-logo { height: 34px; vertical-align: middle; }
.st-title { font: 400 26px/1 var(--kw-font-display); color: var(--kw-green); letter-spacing: .02em; }
.st-tabs { display: flex; gap: 4px; margin-left: auto; }
.st-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--kw-muted); }
.st-tabs button.on { background: var(--kw-blue-soft); color: var(--kw-blue); }
.st-link { color: var(--kw-blue); text-decoration: none; font-weight: 500; }

.st-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr 340px; }
.st-panel, .st-info { overflow-y: auto; padding: 16px; background: var(--kw-paper); }
.st-panel { border-right: 1px solid var(--kw-line); }
.st-info { border-left: 1px solid var(--kw-line); display: grid; gap: 16px; align-content: start; }

.st-stage { position: relative; min-height: 0; background: var(--st-stage); }
.st-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.st-stage canvas:active { cursor: grabbing; }
.st-toolbar { position: absolute; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.st-toolbar > * { pointer-events: auto; }
.st-toolbar-top { top: 12px; }
.st-toolbar-bottom { bottom: 34px; }
.st-hint { position: absolute; bottom: 8px; left: 0; right: 0; margin: 0; text-align: center; font-size: 11px; color: var(--kw-muted); pointer-events: none; }

.st-seg { display: inline-flex; background: var(--kw-paper); border: 1px solid var(--kw-line); border-radius: 999px; padding: 3px; gap: 2px; box-shadow: var(--kw-shadow); flex-wrap: wrap; }
.st-seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--kw-muted); text-transform: capitalize; }
.st-seg button.on { background: var(--kw-blue); color: #fff; }
.st-pill { border: 1px solid var(--kw-line); background: var(--kw-paper); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: var(--kw-shadow); }
.st-pill.on { background: var(--kw-green); border-color: var(--kw-green); color: #12230a; }
.st-tools { margin-top: 0; gap: 6px; }

.st-sec { margin-bottom: 20px; }
.st-sec > h3 { margin: 0 0 10px; }
.st-models { display: grid; gap: 6px; }
.st-model { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--kw-line); background: var(--kw-paper); border-radius: var(--kw-radius); padding: 8px 10px; }
.st-model.on { border-color: var(--kw-blue); background: var(--kw-blue-soft); }
.st-model strong { display: block; color: var(--kw-ink); font-weight: 600; font-size: 14px; }
.st-model small { color: var(--kw-muted); font-size: 12px; }
.st-model-ic { color: var(--kw-blue); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--kw-blue-soft); flex: none; }
.st-model-ic svg { width: 24px; height: 24px; }

.st-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.st-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--kw-paper); box-shadow: 0 0 0 1px var(--kw-line); }
.st-swatch.on { box-shadow: 0 0 0 2px var(--kw-blue); }

.st-accgroup h4, .st-card h4, .st-fitted h4 { margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--kw-ink); }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--kw-line); background: var(--kw-paper); border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 12.5px; color: var(--kw-text); }
.st-chip.on { background: var(--kw-green-soft); border-color: var(--kw-green); color: var(--kw-ink); font-weight: 500; }
.st-chip .ic { color: var(--kw-blue); display: inline-grid; }
.st-chip .ic svg { width: 16px; height: 16px; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.st-ghost { border: 1px solid var(--kw-line); background: none; border-radius: var(--kw-radius); padding: 6px 10px; font-size: 12.5px; color: var(--kw-blue); display: inline-flex; align-items: center; gap: 6px; }
.st-ghost .ic svg { width: 16px; height: 16px; }
.st-wide { width: 100%; justify-content: center; margin-top: 12px; }
.st-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--kw-ink); margin-bottom: 10px; }
.st-field input[type="text"] { border: 1px solid var(--kw-line); background: var(--kw-canvas); border-radius: var(--kw-radius); padding: 8px 10px; font-weight: 400; }
.st-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.st-note { color: var(--kw-muted); font-size: 12.5px; margin: 0 0 10px; }

.st-card { border: 1px solid var(--kw-line); border-radius: var(--kw-radius-lg); padding: 16px; background: var(--kw-paper); }
.st-name { margin: 4px 0 8px; font-size: 44px; line-height: .95; }
.st-price { display: grid; gap: 2px; margin-bottom: 12px; }
.st-price small { color: var(--kw-muted); font-size: 11.5px; }
.st-lines { width: 100%; border-collapse: collapse; margin: 6px 0 2px; font-size: 12.5px; }
.st-lines td { padding: 4px 0; border-top: 1px solid var(--kw-line); color: var(--kw-ink); }
.st-lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 8px; }
.st-lines tr.muted td { color: var(--kw-muted); font-weight: 400; }
.st-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-specs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; border-top: 1px solid var(--kw-line); padding-top: 8px; }
.st-specs .ic { color: var(--kw-blue); display: inline-grid; }
.st-specs span { color: var(--kw-muted); font-size: 12.5px; }
.st-specs strong { color: var(--kw-ink); font-weight: 600; font-size: 13px; text-align: right; }
.st-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.st-badges span { display: inline-flex; align-items: center; gap: 5px; background: var(--kw-blue-soft); color: var(--kw-blue); border-radius: 999px; padding: 3px 10px 3px 6px; font-size: 11.5px; font-weight: 500; }
.st-badges .ic svg { width: 15px; height: 15px; }
.st-fitted p { margin: 0; font-size: 12.5px; color: var(--kw-text); }

.st-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.st-format { display: grid; justify-items: start; gap: 2px; text-align: left; border: 1px solid var(--kw-line); background: var(--kw-canvas); border-radius: var(--kw-radius); padding: 10px; }
.st-format:hover { border-color: var(--kw-blue); }
.st-format strong { font-size: 13px; color: var(--kw-ink); font-weight: 600; }
.st-format small { font-size: 11px; color: var(--kw-muted); }
.st-ratio { display: block; border: 2px solid var(--kw-blue); border-radius: 3px; margin-bottom: 4px; height: 22px; }
.st-ratio-square { width: 22px; }
.st-ratio-story { width: 13px; }
.st-ratio-slide { width: 38px; }
.st-ratio-flyer { width: 16px; }

.st-icons { flex: 1; overflow-y: auto; padding: 24px 16px 48px; max-width: 1100px; width: 100%; margin: 0 auto; }
.st-iconbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.st-iconsec { margin-top: 20px; }
.st-icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.st-icongrid.dark .st-icon { background: #10161d; border-color: #10161d; }
.st-icongrid.dark .st-icon small { color: #cfd6de; }
.st-icon { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid var(--kw-line); background: var(--kw-paper); border-radius: var(--kw-radius-lg); }
.st-icon:hover { border-color: var(--kw-blue); }
.st-icon small { font-size: 11.5px; color: var(--kw-muted); text-align: center; }

/* Client branding */
.st-logo-drop { display: grid; gap: 8px; justify-items: start; border: 1px dashed var(--kw-line); border-radius: var(--kw-radius); padding: 10px; margin-bottom: 10px; }
.st-logo-drop img { max-width: 100%; max-height: 70px; object-fit: contain; background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 4px; }
.st-logo-drop .st-row { margin-top: 0; }
.st-colorrow { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.st-colorrow input[type="color"] { width: 30px; height: 26px; border: 1px solid var(--kw-line); border-radius: 6px; padding: 0; background: none; cursor: pointer; }
.st-colorrow:not(.on) input[type="color"] { opacity: 0.45; }
.st-colorrow small { color: var(--kw-muted); font-size: 11px; }
.st-x { border: 0; background: var(--kw-blue-soft); color: var(--kw-blue); width: 22px; height: 22px; border-radius: 50%; line-height: 1; }
.st-field input[type="range"] { width: 100%; accent-color: var(--kw-blue); }

/* Present mode: full-screen, co-branded view for the client meeting */
.st-present { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.st-present-top, .st-present-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 32px; flex-wrap: wrap; }
.st-present-top { align-items: center; background: linear-gradient(180deg, rgba(6, 22, 38, 0.72), rgba(6, 22, 38, 0)); padding-bottom: 48px; }
.st-present-bottom { background: linear-gradient(0deg, rgba(6, 22, 38, 0.82), rgba(6, 22, 38, 0)); padding-top: 64px; padding-bottom: 76px; }
.st-present-kewat { height: 52px; }
.st-present-client { display: flex; align-items: center; gap: 16px; text-align: right; }
.st-present-client small { display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }
.st-present-client strong { font: 600 22px/1.2 var(--kw-font); }
.st-present-client img { max-height: 64px; max-width: 220px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.st-present .kw-eyebrow { color: rgba(255, 255, 255, 0.8); }
.st-present h2 { margin: 4px 0 10px; font-size: clamp(40px, 6vw, 84px); line-height: 0.95; color: var(--kw-green); }
.st-present-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.st-present-specs span { display: inline-grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); border-radius: 10px; padding: 8px 12px; }
.st-present-specs .ic { grid-row: span 2; display: inline-grid; color: #9fd35a; }
.st-present-specs small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.st-present-specs strong { font-size: 15px; font-weight: 600; }
.st-present-contact { display: grid; gap: 2px; text-align: right; font-size: 14px; }
.st-present-contact strong { font: 700 28px/1.2 var(--kw-font); }
.st-present-controls { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.st-present-controls .st-pill { background: rgba(255, 255, 255, 0.92); color: #1f2328; border-color: transparent; }
.st-present-controls .st-pill.on { background: var(--kw-green); color: #12230a; }
body.presenting { overflow: hidden; }
body.presenting .st-top, body.presenting .st-panel, body.presenting .st-info, body.presenting .st-toolbar, body.presenting .st-hint { display: none !important; }
body.presenting .st-main { display: block; height: 100vh; }
body.presenting .st-stage { height: 100vh; }
@media (max-width: 760px) {
  .st-present-top, .st-present-bottom { padding: 14px 16px; }
  .st-present-bottom { padding-bottom: 70px; }
  .st-present-kewat { height: 36px; }
  .st-present-contact { text-align: left; }
}

/* Steps: Boat → Design → Parts → Summary */
.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -4px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--kw-line); }
.st-step { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px; font-size: 11.5px; font-weight: 500; color: var(--kw-muted); }
.st-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--kw-line); font-weight: 600; font-size: 12px; background: var(--kw-paper); }
.st-step.done span { background: var(--kw-green-soft); border-color: var(--kw-green); color: var(--kw-ink); }
.st-step.on { color: var(--kw-blue); }
.st-step.on span { background: var(--kw-blue); border-color: var(--kw-blue); color: #fff; }
.st-stepnav { position: sticky; bottom: -16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px -16px -16px; padding: 12px 16px; background: var(--kw-paper); border-top: 1px solid var(--kw-line); }
.st-colname { margin: 8px 0 0; }

.st-toggles { display: grid; gap: 6px; }
.st-toggle { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--kw-line); border-radius: var(--kw-radius); padding: 8px 10px; cursor: pointer; }
.st-toggle.on { border-color: var(--kw-green); background: var(--kw-green-soft); }
.st-toggle .ic { color: var(--kw-blue); display: inline-grid; }
.st-toggle strong { display: block; font-size: 13px; font-weight: 600; color: var(--kw-ink); }
.st-toggle small { font-size: 11.5px; color: var(--kw-muted); }
.st-toggle input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--kw-line); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.st-toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.st-toggle input:checked { background: var(--kw-green); }
.st-toggle input:checked::after { transform: translateX(16px); }
.st-toggle input:focus-visible { outline: 2px solid var(--kw-blue); outline-offset: 2px; }

.st-search { width: 100%; border: 1px solid var(--kw-line); background: var(--kw-canvas); border-radius: var(--kw-radius); padding: 8px 10px; margin-bottom: 8px; }
.st-filter { margin-bottom: 10px; }
.st-parts { display: grid; gap: 6px; }
.st-part { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; border: 1px solid var(--kw-line); border-radius: var(--kw-radius); padding: 10px; }
.st-part.on { border-color: var(--kw-green); background: var(--kw-green-soft); }
.st-part > .ic { color: var(--kw-blue); display: inline-grid; padding-top: 2px; }
.st-part-main strong { display: block; font-size: 13px; font-weight: 600; color: var(--kw-ink); }
.st-part-main small { font-size: 11px; color: var(--kw-muted); }
.st-part-main p { margin: 4px 0 0; font-size: 12px; color: var(--kw-text); }
.st-part-side { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--kw-ink); }
.st-part-side .kw-btn, .st-part-side .st-ghost { padding: 5px 14px; font-size: 12.5px; }

.st-spec2 { grid-template-columns: 1fr auto !important; }
.st-actions { display: grid; gap: 8px; }
.st-actions > * { justify-content: center; }
.st-lines tr.st-sum td { color: var(--kw-muted); font-weight: 500; }
.st-lines tr.st-grand td { font-weight: 700; color: var(--kw-ink); border-top: 2px solid var(--kw-ink); }

/* Customer link (/studio/?link=…): the configurator only */
body.customer .st-tabs, body.customer .st-link, body.customer .st-linksbtn { display: none; }
.st-timer { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--kw-green-soft); color: var(--kw-ink); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-timer.soon { background: #fdf0d5; background: color-mix(in srgb, var(--kw-warning) 18%, var(--kw-paper)); color: var(--kw-ink); }
.st-linksbtn { margin-left: 4px; border: 1px solid var(--kw-blue); background: var(--kw-blue-soft); color: var(--kw-blue); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.st-welcome { margin: 0 0 8px; font-size: 13.5px; color: var(--kw-ink); }
.st-privacy { font-size: 11.5px; }
.st-sent { color: var(--kw-success); font-weight: 600; }
.st-for { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -6px 0 14px; padding: 8px 10px; border-radius: var(--kw-radius); background: var(--kw-blue-soft); color: var(--kw-ink); font-size: 12.5px; }

/* The stage: a calm fade-in, the live price, and the loading veil */
.st-stage canvas { opacity: 0; transition: opacity .7s ease; }
.st-stage.ready canvas { opacity: 1; }
.st-veil { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--kw-muted); font-size: 13px; letter-spacing: .02em; }
.st-veil span { padding: 8px 16px; border-radius: 999px; background: var(--kw-paper); box-shadow: var(--kw-shadow); animation: st-breathe 1.6s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: .55; } }
.st-pricepill { position: absolute; top: 60px; left: 12px; display: grid; gap: 0; padding: 8px 14px; border-radius: 14px; background: var(--kw-paper); background: color-mix(in srgb, var(--kw-paper) 88%, transparent); backdrop-filter: blur(8px); box-shadow: var(--kw-shadow); pointer-events: none; }
.st-pricepill small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--kw-muted); }
.st-pricepill strong { font-size: 20px; font-weight: 700; color: var(--kw-blue); font-variant-numeric: tabular-nums; line-height: 1.25; }
.st-pricepill span { font-size: 11px; color: var(--kw-muted); }
.st-pricepill.bump { animation: st-bump .6s ease; }
.st-pricepill.bump.up strong { animation: st-flash-up .9s ease; }
.st-pricepill.bump.down strong { animation: st-flash-down .9s ease; }
@keyframes st-bump { 30% { transform: scale(1.04); } }
@keyframes st-flash-up { 20% { color: var(--kw-green-deep); } }
@keyframes st-flash-down { 20% { color: var(--kw-muted); } }

/* Steps change with a short fade */
.st-panel.st-enter > :not(.st-steps):not(.st-stepnav) { animation: st-in .32s ease both; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }

/* Summary: the boat from every angle */
.st-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-shot { position: relative; padding: 0; border: 1px solid var(--kw-line); border-radius: var(--kw-radius); overflow: hidden; background: var(--kw-canvas); aspect-ratio: 16 / 10; }
.st-shot.big { grid-column: 1 / -1; }
.st-shot img { display: block; width: 100%; height: 100%; object-fit: cover; animation: st-in .35s ease both; }
.st-shot small { position: absolute; left: 6px; bottom: 5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #1f2328; font-size: 10.5px; font-weight: 500; }
.st-shot:hover { border-color: var(--kw-blue); }
.st-shot-wait { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--kw-paper) 70%, transparent) 50%, transparent 70%) var(--kw-blue-soft); background-size: 200% 100%; animation: st-shimmer 1.2s linear infinite; }
@keyframes st-shimmer { to { background-position: -200% 0; } }

/* Sign-up for new customers */
.st-join { display: grid; gap: 2px; text-align: left; margin-top: 4px; }
.st-join .st-field input { border: 1px solid var(--kw-line); background: var(--kw-canvas); border-radius: var(--kw-radius); padding: 11px 12px; font-size: 15px; font-weight: 400; }
.st-consent { align-items: flex-start; margin: 6px 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--kw-text); }
.st-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--kw-blue); }
.st-join .kw-btn { min-height: 46px; font-size: 15px; }
.st-join-err { margin: 0 0 6px; color: var(--kw-danger); font-size: 13px; font-weight: 500; }
.st-join-err:empty { display: none; }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.st-join-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.st-joinbox input[readonly] { width: 100%; border: 1px solid var(--kw-line); border-radius: var(--kw-radius); padding: 8px 10px; background: var(--kw-paper); font-size: 12.5px; }

/* When the link has ended or isn't valid */
.st-gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--kw-blue-soft), var(--kw-canvas)); }
body.gated .st-main, body.gated .st-top { visibility: hidden; }
.st-gate-card { width: min(440px, 100%); padding: 28px 24px; border-radius: var(--kw-radius-lg); background: var(--kw-paper); box-shadow: var(--kw-shadow); text-align: center; }
.st-gate-logo { height: 44px; margin-bottom: 12px; }
.st-gate-card h2 { margin: 0 0 8px; color: var(--kw-blue); font-size: 22px; }
.st-gate-card p { margin: 0 0 16px; color: var(--kw-text); }
.st-gate-contact { display: grid; gap: 8px; justify-items: center; }
.st-gate-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--kw-blue-soft); color: var(--kw-blue); font-weight: 600; text-decoration: none; }

/* Customer links (staff) */
.st-dialog { width: min(760px, calc(100vw - 32px)); max-height: 88vh; padding: 0; border: 0; border-radius: var(--kw-radius-lg); background: var(--kw-paper); color: var(--kw-text); box-shadow: 0 24px 60px rgba(6, 22, 38, .35); }
.st-dialog::backdrop { background: rgba(6, 22, 38, .45); }
.st-dialog[open] { display: flex; flex-direction: column; }
.st-dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--kw-line); }
.st-dlg-head h2 { margin: 0; font-size: 18px; color: var(--kw-ink); }
.st-dlg-body { overflow-y: auto; padding: 16px 18px 20px; display: grid; gap: 18px; }
.st-newlink { display: grid; gap: 4px; padding: 14px; border-radius: var(--kw-radius-lg); background: var(--kw-canvas); }
.st-newlink .st-field input { border: 1px solid var(--kw-line); background: var(--kw-paper); border-radius: var(--kw-radius); padding: 9px 10px; font-weight: 400; }
.st-warn { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--kw-radius); background: #fdf0d5; background: color-mix(in srgb, var(--kw-warning) 16%, var(--kw-paper)); color: var(--kw-ink); font-size: 12.5px; }
.st-made { margin-top: 10px; padding: 12px; border: 1px solid var(--kw-green); border-radius: var(--kw-radius); background: var(--kw-green-soft); }
.st-made p { margin: 0 0 6px; }
.st-made input { width: 100%; border: 1px solid var(--kw-line); border-radius: var(--kw-radius); padding: 8px 10px; background: var(--kw-paper); font-size: 12.5px; }
.st-linklist { display: grid; gap: 10px; }
.st-linkcard { padding: 12px 14px; border: 1px solid var(--kw-line); border-radius: var(--kw-radius-lg); }
.st-linkcard.active { border-color: var(--kw-green); }
.st-linkcard header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.st-linkcard header strong { color: var(--kw-ink); font-size: 14.5px; }
.st-linkcard header small { color: var(--kw-muted); margin-left: auto; }
.st-pill-s { padding: 1px 9px; border-radius: 999px; background: var(--kw-canvas); color: var(--kw-muted); font-size: 11.5px; font-weight: 600; }
.st-pill-s.on { background: var(--kw-green-soft); color: var(--kw-green-deep); }
.st-seen { margin: 6px 0 0; font-size: 12.5px; color: var(--kw-text); }
.st-design { margin: 4px 0 0; font-size: 12.5px; color: var(--kw-ink); }
.st-sentbadge { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--kw-green); color: #12230a; font-size: 11px; font-weight: 600; }
.st-linkcard details { margin-top: 6px; font-size: 12.5px; }
.st-linkcard summary { cursor: pointer; color: var(--kw-blue); font-weight: 500; }
.st-behaviour { margin: 6px 0; padding-left: 18px; color: var(--kw-ink); }
.st-visits { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.st-visits > li { padding: 8px 10px; border-radius: var(--kw-radius); background: var(--kw-canvas); }
.st-events { margin: 4px 0 0; padding-left: 0; list-style: none; display: grid; gap: 1px; color: var(--kw-text); }
.st-events time { display: inline-block; min-width: 46px; color: var(--kw-muted); font-variant-numeric: tabular-nums; }
.st-end { width: auto; padding: 0 10px; border-radius: 999px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  .st-stage canvas, .st-panel.st-enter > *, .st-pricepill.bump, .st-pricepill strong, .st-shot img { transition: none !important; animation: none !important; }
}

/* Summary PDF: only the print sheet prints */
.st-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { display: block; background: #fff; }
  body > *:not(#print-sheet) { display: none !important; }
  .st-print { display: block; color: #1f2328; font: 400 11pt/1.45 var(--kw-font); }
  .pp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--kw-blue); padding-bottom: 8px; }
  .pp-head img { height: 40px; }
  .pp-head div { display: grid; text-align: right; }
  .pp-head strong { font-size: 13pt; color: var(--kw-blue); }
  .pp-head span { font-size: 9pt; color: #6b7280; }
  .pp-hero { display: block; width: 100%; margin: 10px 0 6px; border-radius: 8px; }
  .pp-angles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
  .pp-angles figure { margin: 0; }
  .pp-angles img { display: block; width: 100%; border-radius: 6px; }
  .pp-angles figcaption { font-size: 8pt; color: #6b7280; margin-top: 2px; }
  .pp-title h1 { margin: 2px 0; font-size: 34pt; line-height: 1; color: var(--kw-blue); }
  .pp-title p { margin: 0; font-weight: 600; }
  .pp-specs { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
  .pp-specs li { display: flex; justify-content: space-between; border-bottom: 1px solid #e5e7eb; padding: 3px 0; font-size: 10pt; }
  .pp-specs span { color: #6b7280; }
  .pp-fitted { font-size: 10pt; margin: 6px 0 10px; }
  .pp-lines { width: 100%; border-collapse: collapse; font-size: 10pt; break-inside: avoid; }
  .pp-lines th, .pp-lines td { padding: 5px 6px; border-bottom: 1px solid #e5e7eb; text-align: left; }
  .pp-lines thead th { background: var(--kw-blue); color: #fff; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-lines .num { text-align: right; white-space: nowrap; }
  .pp-lines tr.muted td { color: #6b7280; }
  .pp-lines tfoot th { text-align: right; font-weight: 500; }
  .pp-lines tfoot tr.grand th, .pp-lines tfoot tr.grand td { font-weight: 700; font-size: 11.5pt; border-top: 2px solid #1f2328; }
  .pp-note { font-size: 8.5pt; color: #6b7280; margin: 10px 0; }
  .pp-foot { display: grid; gap: 2px; border-top: 1px solid #e5e7eb; padding-top: 8px; font-size: 8.5pt; color: #374151; }
}

.st-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--kw-ink); color: var(--kw-paper); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 10; }

@media (max-width: 1100px) {
  .st-main { grid-template-columns: 280px 1fr; grid-template-rows: minmax(520px, 78vh) auto; overflow-y: auto; }
  .st-info { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--kw-line); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
/* Phones (customers open links from WhatsApp): the boat stays in view at the top while the steps
   scroll underneath, Back/Next sit at the bottom within thumb reach, and everything is big enough to tap. */
@media (max-width: 760px) {
  body { display: block; }
  .st-top { padding: 8px 12px; gap: 8px; }
  .st-brand .kw-logo { height: 28px; }
  .st-title { display: none; }
  .st-tabs { margin-left: 0; }
  .st-linksbtn { padding: 6px 10px; }
  .st-main { display: flex; flex-direction: column; overflow: visible; }
  .st-stage { order: -1; position: sticky; top: 0; z-index: 4; height: 46vh; min-height: 280px; box-shadow: 0 6px 18px rgba(6, 22, 38, .12); }
  .st-panel, .st-info { overflow: visible; }
  .st-panel { border-right: 0; padding-bottom: 92px; }
  .st-stepnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(6, 22, 38, .1); }
  .st-stepnav .kw-btn, .st-stepnav .st-ghost { min-height: 46px; padding: 10px 20px; font-size: 15px; }
  .st-toolbar { left: 8px; right: 8px; }
  .st-toolbar-top { top: 8px; }
  .st-toolbar-bottom { bottom: 8px; }
  .st-toolbar .st-seg button { padding: 6px 9px; }
  .st-pill { padding: 6px 10px; }
  #snap, .st-hint, #auto { display: none; }
  .st-pricepill { top: auto; bottom: 52px; left: 8px; padding: 6px 12px; }
  .st-pricepill strong { font-size: 17px; }
  .st-toggle { padding: 12px; }
  .st-toggle input { width: 44px; height: 26px; }
  .st-toggle input::after { width: 22px; height: 22px; }
  .st-toggle input:checked::after { transform: translateX(18px); }
  .st-swatch { width: 40px; height: 40px; }
  .st-model { padding: 12px; }
  .st-step { font-size: 12px; }
  .st-gallery { grid-template-columns: repeat(2, 1fr); }
  .st-info { padding-bottom: 96px; }
  .st-dialog { width: 100vw; max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; border-radius: 0; }
}
