:root {
  --navy-950: #061728;
  --navy-900: #09233d;
  --navy-800: #0f3866;
  --blue-600: #2f6498;
  --blue-400: #7399bb;
  --mist: #edf3f7;
  --foam: #f7fafc;
  --white: #fff;
  --ink: #102235;
  --muted: #617284;
  --line: #dbe5ec;
  --lime: #b5d334;
  --shadow: 0 24px 70px rgba(5, 31, 52, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, label, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.prototype-ribbon {
  padding: 8px 20px;
  background: var(--navy-950);
  color: #dce8f1;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  height: 96px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(13, 50, 82, .09);
  backdrop-filter: blur(16px);
}
.brand { height: 88px; display: flex; align-items: center; color: var(--navy-900); text-decoration: none; }
.brand img { width: 104px; max-height: 86px; display: block; object-fit: contain; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.hero {
  min-height: 530px;
  padding: 84px clamp(24px, 7vw, 112px) 92px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 82% 40%, rgba(83, 137, 181, .35), transparent 33%),
    linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 56%, #164875 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.hero::before { width: 560px; height: 560px; right: -220px; top: -340px; }
.hero::after { width: 320px; height: 320px; left: -210px; bottom: -235px; }
.hero-copy { max-width: 960px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--blue-400); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { color: #a8c5db; }
h1 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 86px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.hero-lede { max-width: 620px; margin: 28px 0 32px; color: #d2e1eb; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.7; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px 32px; color: #f5f8fb; font-size: 12px; font-weight: 650; }
.hero-points span { display: flex; align-items: center; gap: 9px; }
.hero-points i { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #9ec0d7; font-style: normal; font-size: 9px; }

.configurator { max-width: 1460px; margin: 0 auto; padding: 92px clamp(20px, 5vw, 76px) 110px; }
.config-head { margin-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.config-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 58px); font-weight: 400; letter-spacing: -.035em; }
.progress-wrap { min-width: 220px; display: grid; gap: 8px; }
.progress-wrap > span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress-track span { width: 20%; height: 100%; display: block; background: var(--navy-800); transition: width .3s ease; }

.config-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .72fr); gap: 30px; align-items: start; }
#configForm { display: grid; gap: 18px; }
.config-step { margin: 0; padding: clamp(24px, 3.2vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 30px rgba(9, 35, 61, .035); }
.config-step legend { width: 100%; padding: 0; display: flex; align-items: center; gap: 13px; font-family: Georgia, serif; font-size: clamp(24px, 2vw, 31px); color: var(--navy-900); }
.config-step legend span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--mist); color: var(--blue-600); font-family: Inter, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.field-help { margin: 10px 0 24px 47px; color: var(--muted); font-size: 13px; }

.general-info { margin-bottom: 30px; padding: 22px; border: 1px solid #cbd9e3; border-radius: 15px; background: linear-gradient(145deg, #f8fbfd, #eef4f7); }
.field-grid { display: grid; gap: 12px; }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.boat-info-grid { grid-template-columns: .72fr 1fr 1fr; margin-top: 12px; }
.text-field { display: grid; gap: 7px; }
.text-field > span { color: var(--navy-900); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.text-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); outline: none; }
.text-field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,100,152,.12); }
.privacy-line { margin: 13px 0 0; color: #6d7e8a; font-size: 9px; }
.privacy-line::before { content: "●"; margin-right: 6px; color: #56a063; }
.boat-type-subfield { margin-top: 0; }
.conditional-field { margin-top: 12px; padding: 15px; border-radius: 12px; background: var(--mist); }

input[type="radio"], input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option-card { min-height: 132px; padding: 17px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: .18s ease; position: relative; }
.option-card::after, .pattern-card::after { content: ""; width: 15px; height: 15px; position: absolute; top: 13px; right: 13px; border: 1px solid #aec0cd; border-radius: 50%; background: white; box-shadow: inset 0 0 0 3px white; }
.option-card:hover, .check-card:hover, .pattern-card:hover { border-color: #8eacc2; transform: translateY(-1px); }
.option-card:has(input:focus-visible), .check-card:has(input:focus-visible), .pattern-card:has(input:focus-visible) { outline: 3px solid rgba(47,100,152,.22); outline-offset: 2px; }
.option-card:has(input:checked) { border-color: var(--navy-800); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--navy-800); }
.option-card:has(input:checked)::after, .pattern-card:has(input:checked)::after { background: var(--navy-800); box-shadow: inset 0 0 0 3px white; }
.option-icon { margin-bottom: auto; color: var(--blue-600); font-family: Georgia, serif; font-size: 26px; line-height: 1; }
.option-card strong { margin-top: 14px; font-size: 13px; }
.option-card small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }

.range-card { margin-top: 15px; padding: 22px 24px 18px; border-radius: 13px; background: var(--navy-900); color: white; }
.range-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.range-card label { color: #d9e6ef; font-size: 12px; font-weight: 650; }
.range-card output { font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
input[type="range"] { width: 100%; height: 4px; margin: 21px 0 8px; border-radius: 20px; appearance: none; background: linear-gradient(90deg, var(--lime) 36%, rgba(255,255,255,.2) 36%); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { width: 21px; height: 21px; appearance: none; border: 4px solid white; border-radius: 50%; background: var(--lime); box-shadow: 0 3px 10px rgba(0,0,0,.3); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid white; border-radius: 50%; background: var(--lime); }
.range-scale { display: flex; justify-content: space-between; color: #9fb3c2; font-size: 9px; font-weight: 700; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-card { min-height: 80px; padding: 16px 44px 16px 48px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; position: relative; transition: .18s ease; }
.check-card::before { content: ""; width: 19px; height: 19px; position: absolute; left: 17px; top: 50%; translate: 0 -50%; border: 1px solid #aabcc9; border-radius: 5px; background: white; }
.check-card::after { content: "✓"; position: absolute; left: 21px; top: 50%; translate: 0 -53%; color: white; font-size: 12px; font-weight: 900; opacity: 0; }
.check-card:has(input:checked) { border-color: #87a9c0; background: #f4f8fa; }
.check-card:has(input:checked)::before { border-color: var(--navy-800); background: var(--navy-800); }
.check-card:has(input:checked)::after { opacity: 1; }
.check-card span { display: grid; }
.check-card strong { font-size: 12px; }
.check-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.subfield + .subfield { margin-top: 30px; }
.subfield-label { display: block; margin-bottom: 12px; color: var(--navy-900); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pattern-card { min-width: 0; padding: 10px 10px 13px; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; position: relative; transition: .18s ease; }
.pattern-card:has(input:checked) { border-color: var(--navy-800); background: #f3f7fa; box-shadow: inset 0 0 0 1px var(--navy-800); }
.pattern-sample { height: 112px; display: block; margin-bottom: 11px; overflow: hidden; border-radius: 8px; background-color: #4b535b; background-position: center; background-size: cover; }
.pattern-card strong { font-size: 11px; }
.pattern-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.pattern-border-line { background-image: url("/assets/pattern-border-line.jpg"); }
.pattern-diamond { background-image: url("/assets/pattern-diamond.jpg"); }
.pattern-fish-scale { background-image: url("/assets/pattern-fish-scale.jpg"); }
.pattern-gator-scale { background-image: url("/assets/pattern-gator-scale.jpg"); }
.pattern-hexagon { background-image: url("/assets/pattern-hexagon.jpg"); }
.pattern-teak { background-image: url("/assets/pattern-teak.jpg"); }
.pattern-topographic { background-image: url("/assets/pattern-topographic.jpg"); }
.pattern-wood-plank { background-image: url("/assets/pattern-wood-plank.jpg"); }
.pattern-custom { display: grid; place-items: center; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%), linear-gradient(140deg, #0c2f51, #1d5c8a); }
.pattern-custom i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; font-style: normal; font-size: 25px; }
.custom-pattern-panel { margin-top: 13px; padding: 17px; border: 1px solid #bfd0dc; border-radius: 13px; background: #f3f8fb; }
.custom-pattern-panel .notes-field { margin-top: 0; }
.inspiration-upload { min-height: 58px; margin-top: 12px; padding: 12px 15px; display: grid; border: 1px dashed #8eaec4; border-radius: 10px; background: white; cursor: pointer; }
.inspiration-upload strong { color: var(--navy-900); font-size: 11px; }
.inspiration-upload small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.subfield-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.selection-caption { color: var(--blue-600); font-size: 11px; font-weight: 700; }
.color-tools { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.color-filter { min-height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.color-filter.active { border-color: var(--navy-800); background: var(--navy-900); color: white; }
.color-grid { max-height: 430px; padding: 2px 7px 2px 2px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; overflow: auto; scrollbar-color: #a9bcc9 transparent; }
.color-option { min-width: 0; padding: 10px 6px 9px; display: grid; justify-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; transition: .18s ease; }
.color-option:hover { border-color: #8eacc2; transform: translateY(-1px); }
.color-option:has(input:focus-visible) { outline: 3px solid rgba(47,100,152,.22); outline-offset: 2px; }
.color-option:has(input:checked) { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); }
.color-swatch { width: 42px; aspect-ratio: 1; display: block; border: 5px solid var(--swatch-b); border-radius: 50%; background: var(--swatch-a); box-shadow: 0 4px 9px rgba(9,35,61,.18); }
.color-option small { max-width: 70px; color: var(--muted); font-size: 8px; line-height: 1.25; text-align: center; }
.availability-note { margin: 13px 0 0; color: #788997; font-size: 9px; }

.visually-hidden { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.photo-builder { margin-top: 22px; padding: 18px; border: 1px solid #bfd0dc; border-radius: 15px; background: linear-gradient(145deg, #f8fbfd, #edf4f8); }
.photo-builder-top { margin: 0 0 26px; padding: 22px 24px; box-shadow: 0 14px 38px rgba(9,35,61,.07); }
.photo-builder-head { margin-bottom: 14px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.photo-builder-head > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.photo-builder-head strong { color: var(--navy-900); font-size: 13px; }
.photo-builder-head p { max-width: 520px; margin: 5px 0 0; grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.new-badge { padding: 3px 6px; border-radius: 5px; background: var(--lime); color: #20320b; font-size: 7px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.local-only { flex: none; color: var(--blue-600); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.local-only::before { content: "●"; margin-right: 5px; color: #56a063; }
.photo-dropzone { min-height: 94px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #8eaec4; border-radius: 12px; background: rgba(255,255,255,.74); cursor: pointer; transition: .18s ease; }
.photo-dropzone:hover, .photo-dropzone.is-dragging { border-color: var(--navy-800); background: white; transform: translateY(-1px); }
.photo-dropzone > span:last-child { display: grid; }
.photo-dropzone strong { color: var(--navy-900); font-size: 12px; }
.photo-dropzone small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: white; }
.upload-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-added-bar { min-height: 76px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #afc78f; border-radius: 12px; background: #f7fbe9; }
.photo-added-bar > span { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.photo-added-bar i { width: 28px; height: 28px; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #20320b; font-style: normal; font-size: 13px; font-weight: 900; }
.photo-added-bar strong { overflow: hidden; color: var(--navy-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.photo-added-bar small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.photo-added-bar > label { flex: none; color: var(--blue-600); font-size: 9px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.photo-editor[hidden], .photo-dropzone[hidden], .photo-added-bar[hidden], .no-photo-preview[hidden], .dialog-photo[hidden] { display: none; }
.photo-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.photo-meta { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-meta span { max-width: 70%; overflow: hidden; color: var(--ink); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.photo-meta label { color: var(--blue-600); font-size: 9px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.photo-canvas-wrap { min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; background: #081a2c; touch-action: none; }
#photoCanvas { width: auto; height: auto; max-width: 100%; max-height: 560px; display: block; object-fit: contain; cursor: crosshair; }
.canvas-guide { max-width: calc(100% - 28px); padding: 9px 12px; position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: grid; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(4,20,34,.76); color: white; text-align: center; backdrop-filter: blur(9px); pointer-events: none; }
.canvas-guide strong { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.canvas-guide span { color: #c7d6e1; font-size: 8px; }
.canvas-guide.is-finished { background: rgba(29,64,48,.84); }
.photo-controls { padding: 10px; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 7px; }
.photo-controls button, .photo-result-actions button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy-900); font-size: 9px; font-weight: 750; cursor: pointer; }
.photo-controls button:disabled, .photo-result-actions button:disabled { color: #9aa7b0; background: #f0f3f5; cursor: not-allowed; }
.photo-controls .finish-area:not(:disabled) { border-color: var(--navy-900); background: var(--navy-900); color: white; }
.pattern-angle { margin: 0 10px 10px; padding: 10px 12px; display: grid; grid-template-columns: 85px 1fr 34px; align-items: center; gap: 10px; border-radius: 8px; background: var(--mist); }
.pattern-angle > span { color: var(--navy-900); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pattern-angle input { height: 3px; margin: 0; background: linear-gradient(90deg, var(--blue-600) 50%, #c9d5dc 50%); }
.pattern-angle input::-webkit-slider-thumb { width: 17px; height: 17px; border-width: 3px; background: var(--blue-600); }
.pattern-angle output { color: var(--blue-600); font-size: 9px; font-weight: 800; text-align: right; }
.photo-result-actions { padding: 0 10px 11px; display: flex; align-items: center; gap: 7px; }
.photo-result-actions span { margin-right: auto; color: var(--muted); font-size: 8px; }
.photo-result-actions button { min-height: 30px; padding-inline: 9px; }
.photo-result-actions #removePhoto { border-color: transparent; color: #8a5360; background: transparent; }
.photo-error { margin: 10px 0 0; color: #a23b4a; font-size: 9px; font-weight: 650; }

.detail-sections { margin-bottom: 18px; display: grid; gap: 20px; }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.radio-choice { min-height: 76px; padding: 14px 16px 14px 47px; display: flex; align-items: center; position: relative; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-choice::before { content: ""; width: 17px; height: 17px; position: absolute; left: 17px; top: 50%; translate: 0 -50%; border: 1px solid #aabcc9; border-radius: 50%; background: white; box-shadow: inset 0 0 0 4px white; }
.radio-choice:has(input:checked) { border-color: var(--navy-800); background: #f4f8fa; }
.radio-choice:has(input:checked)::before { background: var(--navy-800); }
.radio-choice span { display: grid; }
.radio-choice strong { font-size: 11px; }
.radio-choice small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.detail-select-grid { grid-template-columns: repeat(2, 1fr); }
.helm-pad-card { padding: 11px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 14px; background: #f8fafb; }
.helm-pad-choice { background: white; }
.helm-width { padding: 4px 4px 4px 0; }
.unit-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.unit-input input { min-width: 0; border: 0; box-shadow: none !important; }
.unit-input b { padding-right: 12px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.select-field, .notes-field { display: grid; position: relative; }
.select-field > span, .notes-field > span { margin: 0 0 8px; color: var(--navy-900); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.notes-field { margin-top: 16px; }
.notes-field > span small { color: #8a99a5; font-size: 9px; font-weight: 500; }
select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); outline: none; }
select { min-height: 48px; padding: 0 14px; }
textarea { padding: 13px 15px 26px; resize: vertical; }
select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,100,152,.12); }
.notes-field > small { position: absolute; right: 12px; bottom: 8px; color: #8999a6; font-size: 9px; }
.review-callout { padding: 19px; display: flex; gap: 14px; border-radius: 13px; background: var(--mist); }
.review-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--navy-800); color: white; font-weight: 900; }
.review-callout strong { font-size: 14px; }
.review-callout p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.primary-button { width: 100%; min-height: 58px; margin-top: 16px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 11px; background: var(--navy-900); color: white; font-weight: 750; cursor: pointer; transition: .18s ease; }
.primary-button:hover { background: var(--navy-800); transform: translateY(-1px); }
.primary-button span { font-size: 21px; }
.prototype-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.visual-panel { position: sticky; top: 24px; align-self: start; }
.visual-sticky { max-height: calc(100vh - 48px); position: relative; overflow: auto; border-radius: 20px; background: var(--navy-900); color: white; box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: #8095a5 transparent; }
.visual-toolbar { padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { display: flex; align-items: center; gap: 7px; color: #afc6d7; font-size: 8px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(181,211,52,.12); }
.no-photo-preview { min-height: 410px; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1f537e 0, #103857 50%, #08233c 100%); text-align: center; }
.empty-camera { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.08); color: white; }
.empty-camera svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.no-photo-preview strong { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.no-photo-preview p { max-width: 280px; margin: 10px 0 20px; color: #b8cddd; font-size: 10px; line-height: 1.55; }
.no-photo-preview label { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--lime); color: #20320b; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.photo-editor-sticky { border: 0; border-radius: 0; }
.photo-editor-sticky .photo-canvas-wrap { min-height: 280px; max-height: 420px; }
.photo-editor-sticky #photoCanvas { max-height: 420px; }
.live-summary { padding: 18px 19px 20px; background: #fff; color: var(--ink); }
.summary-title { display: flex; justify-content: space-between; align-items: center; }
.summary-title span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.summary-title button { border: 0; background: none; color: var(--blue-600); font-size: 9px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.live-summary dl { margin: 14px 0 0; display: grid; gap: 11px; }
.live-summary dl div { display: grid; grid-template-columns: 68px 1fr; gap: 10px; }
.live-summary dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.live-summary dd { margin: 0; font-size: 10px; font-weight: 650; line-height: 1.4; }

footer { min-height: 100px; padding: 26px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy-950); color: #b8cad7; font-size: 10px; }
footer p { margin: 0; }
footer strong { color: white; letter-spacing: .05em; }

dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 34px 100px rgba(1,18,31,.38); }
dialog::backdrop { background: rgba(3,18,31,.7); backdrop-filter: blur(5px); }
.dialog-head { padding: 26px 28px 20px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.03em; }
.close-button { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy-900); font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-visual { min-height: 100px; padding: 20px 28px; display: flex; align-items: center; gap: 16px; background: var(--navy-900); color: white; }
.dialog-visual > span { width: 58px; height: 58px; border: 8px solid var(--swatch-b, #43484f); border-radius: 50%; background: var(--swatch-a, #17294f); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.dialog-visual div { display: grid; }
.dialog-visual strong { font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.dialog-visual small { color: #b8cddd; }
.dialog-photo { padding: 16px 28px 0; position: relative; background: white; }
.dialog-photo img { width: 100%; max-height: 270px; display: block; object-fit: contain; border-radius: 10px; background: var(--navy-950); }
.dialog-photo span { padding: 5px 8px; position: absolute; right: 37px; bottom: 9px; border-radius: 5px; background: rgba(4,20,34,.76); color: white; font-size: 7px; text-transform: uppercase; }
.dialog-summary { padding: 22px 28px; display: grid; gap: 0; }
.dialog-row { padding: 12px 0; display: grid; grid-template-columns: 120px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.dialog-row:last-child { border-bottom: 0; }
.dialog-row span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-row strong { font-size: 12px; font-weight: 650; }
.dialog-actions { padding: 0 28px 10px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.secondary-button, .disabled-submit { min-height: 52px; border-radius: 10px; font-size: 11px; font-weight: 750; }
.secondary-button { border: 1px solid var(--navy-900); background: white; color: var(--navy-900); cursor: pointer; }
.disabled-submit { border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #dce4e9; color: #7e8c96; cursor: not-allowed; }
.disabled-submit span { padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.6); font-size: 7px; text-transform: uppercase; }
.dialog-note { margin: 0; padding: 5px 28px 24px; color: var(--muted); font-size: 9px; text-align: center; }
.toast { padding: 11px 17px; position: fixed; left: 50%; bottom: 22px; z-index: 20; translate: -50% 20px; border-radius: 99px; background: var(--navy-950); color: white; font-size: 10px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { translate: -50% 0; opacity: 1; }

@media (max-width: 1040px) {
  .config-layout { grid-template-columns: minmax(0, 1fr) 315px; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 82px; padding-inline: 18px; }
  .header-note { display: none; }
  .brand { height: 76px; }
  .brand img { width: 86px; max-height: 74px; }
  .hero { min-height: auto; padding: 64px 22px 68px; display: block; }
  .hero-lede { margin-block: 22px 28px; }
  .hero-points { display: grid; gap: 11px; }
  .configurator { padding: 62px 14px 76px; }
  .config-head { margin-inline: 7px; display: block; }
  .progress-wrap { margin-top: 24px; }
  .progress-wrap > span { text-align: left; }
  .config-layout { display: flex; flex-direction: column; }
  #configForm { width: 100%; order: 2; gap: 12px; }
  .visual-panel { width: 100%; order: 1; position: sticky; top: 8px; z-index: 8; align-self: flex-start; }
  .visual-panel:has(.no-photo-preview:not([hidden])) { position: relative; top: auto; }
  .visual-sticky { max-height: calc(100vh - 16px); position: relative; top: auto; border-radius: 15px; }
  .no-photo-preview { min-height: 230px; padding: 28px 22px; }
  .visual-toolbar { padding: 13px 15px; }
  .live-summary { display: none; }
  .config-step { padding: 24px 18px; border-radius: 16px; }
  .field-help { margin: 8px 0 20px; }
  .general-info { padding: 17px; }
  .boat-info-grid, .detail-select-grid, .helm-pad-card { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .option-card { min-height: 124px; padding: 14px; }
  .check-grid { grid-template-columns: 1fr; }
  .photo-builder { padding: 14px; }
  .photo-builder-top { margin-bottom: 14px; }
  .photo-builder-head { display: block; }
  .local-only { margin-top: 7px; display: block; }
  .photo-editor-sticky .photo-meta { min-height: 36px; }
  .photo-editor-sticky .photo-canvas-wrap { min-height: 160px; max-height: 210px; }
  .photo-editor-sticky #photoCanvas { max-height: 210px; }
  .photo-editor-sticky .photo-controls { padding: 7px; }
  .photo-editor-sticky .photo-controls button { min-height: 34px; }
  .photo-editor-sticky .pattern-angle { margin: 0 7px 7px; padding: 8px 10px; }
  .photo-editor-sticky .photo-result-actions { padding: 0 7px 8px; }
  .photo-result-actions { flex-wrap: wrap; }
  .photo-result-actions span { width: 100%; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 45px; }
  .config-head h2 { font-size: 38px; line-height: 1.06; }
  .option-card small { display: none; }
  .option-card { min-height: 108px; }
  .contact-grid, .choice-row { grid-template-columns: 1fr; }
  .subfield-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .pattern-sample { height: 96px; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .dialog-head, .dialog-visual, .dialog-summary { padding-inline: 20px; }
  .dialog-row { grid-template-columns: 96px 1fr; }
  .dialog-actions { padding-inline: 20px; grid-template-columns: 1fr; }
}

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

/* Launch review: comfortable touch controls and an unobstructed mobile editor. */
.preview-limit{font-size:12px;line-height:1.5;color:#526575;padding:0 12px}.area-picker{display:flex;align-items:center;gap:12px;padding:10px;font-size:13px}.area-picker select{min-height:44px;max-width:100%}.photo-controls{flex-wrap:wrap}.photo-controls button{min-height:44px!important;font-size:12px}.canvas-guide{position:static;translate:none;max-width:none;width:100%;grid-row:2;border-radius:0}.photo-canvas-wrap{display:flex;flex-direction:column;max-height:none!important}#photoCanvas{touch-action:none;max-height:none!important;max-width:100%}.photo-result-actions button{min-height:44px}.dialog-actions a{text-align:center;text-decoration:none}.photo-error{position:relative;font-size:14px}.hero{min-height:0;padding-block:36px}.hero h1{font-size:clamp(32px,5vw,58px)}.hero-points{display:none}.configurator{padding-top:28px}.visual-panel{min-width:0}
@media(max-width:760px){.visual-panel{position:relative;top:auto}.visual-sticky{max-height:none}.config-head h2{font-size:28px}.hero{padding:24px 20px}.configurator{padding-top:12px}.hero-lede{margin:12px 0}.photo-editor-sticky .photo-canvas-wrap{min-height:0}.preview-limit{font-size:12px}.color-option small{font-size:11px}.live-summary{display:block}.config-step{padding:20px 14px}}

.mobile-preview-jump{display:none}@media(max-width:760px){.mobile-preview-jump{display:block;position:fixed;bottom:12px;right:12px;z-index:10;background:#09233d;color:white;border:1px solid white;border-radius:24px;padding:12px 16px;min-height:44px;font-weight:700}body:not(:has(#photoEditor:not([hidden]))) .mobile-preview-jump{display:none}footer{padding-bottom:80px}}

@media(max-width:760px){.mobile-preview-jump{position:static;margin:12px auto;visibility:visible!important}}

.selection-tools{display:flex;flex-wrap:wrap;gap:8px;padding:10px}.selection-tools button{min-height:44px;padding:10px;background:#edf3f7;border:1px solid #bacbd7;border-radius:8px}.selection-status,#sendStatus{font-size:14px;line-height:1.5;padding:12px}.optional-config summary{cursor:pointer;padding:18px;background:#edf3f7;border-radius:12px;font-weight:700}#sendDesign{width:100%;min-height:52px}.config-layout{display:flex;flex-direction:column}.visual-panel{width:100%;position:relative;top:auto;order:0}#configForm{width:100%;order:1}.visual-sticky{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);max-height:none}.visual-toolbar{grid-column:1/-1}.photo-editor,.no-photo-preview{grid-column:1}.live-summary{grid-column:2;grid-row:2}.hero{padding-block:18px}.hero h1{font-size:clamp(30px,4vw,48px)}.hero-lede{margin-block:12px}.config-head{display:none}.photo-builder{margin-top:8px}@media(max-width:760px){.visual-sticky{display:block}.live-summary{display:none}.photo-controls{display:none}.photo-controls.manual{display:flex}.pattern-grid{grid-template-columns:repeat(3,1fr)}.pattern-sample{height:70px}.pattern-card strong{font-size:12px}.color-grid{grid-template-columns:repeat(4,1fr)}.configurator{padding-top:0}.config-step{padding:16px 12px}.photo-builder-head p{font-size:13px}.preview-limit{font-size:12px}.selection-tools button{font-size:12px}}
#photoCanvas{max-height:min(65vh,560px)!important;width:auto!important;height:auto!important}.photo-canvas-wrap{align-items:center}.selection-tools button:disabled{opacity:.45}.optional-config{margin-bottom:8px}#quickColor{width:100%;min-height:48px;border:1px solid #c1ced7;border-radius:8px;background:white;padding:10px;font:inherit}

.selection-status,#sendStatus{color:#354d60}.selection-status{margin:0;padding:10px 12px;font-size:13px;line-height:1.45}.preview-explanation{padding:0 12px;color:#526575;font-size:12px}.preview-explanation summary{cursor:pointer;text-decoration:underline}.area-picker[hidden]{display:none!important}
.product-sample{display:grid;grid-template-columns:90px 90px 1fr;align-items:center;gap:14px;padding:14px;background:#f3f6f8;border-radius:10px;margin-top:12px}.product-sample img,.product-sample canvas{width:90px;height:90px;object-fit:contain}.product-sample p{font-size:12px;line-height:1.5;margin:6px 0;color:#526575}.selection-adjust{order:3;flex-basis:100%;padding:10px;background:#f2f6f8;border-radius:8px}.selection-adjust summary{cursor:pointer;font-weight:700;min-height:32px}.selection-adjust button{margin:5px}.selection-tools #assistMode,.selection-tools #acceptMask{flex:1;background:#123a5e;color:white}.selection-adjust .photo-controls{display:flex;flex-wrap:wrap}.selection-adjust .photo-controls button{flex:1}.photo-result-actions #downloadPreview{display:none}.pattern-angle{margin:12px}.canvas-guide{display:none}@media(max-width:600px){.product-sample{grid-template-columns:72px 72px 1fr;gap:8px;padding:10px}.product-sample img,.product-sample canvas{width:72px;height:72px}.product-sample strong{font-size:12px}.product-sample p{font-size:11px}.selection-tools{gap:8px}.selection-tools button{font-size:12px}}

.selection-adjust summary{color:#123a5e}.selection-adjust button{color:#123a5e}
/* Color choices show the real catalog swatch, including contrasting layers and camo. */
.swatch-picker{position:relative;margin-top:8px;width:100%}.swatch-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:8px 12px;background:#fff;color:#123a5e;border:1px solid #bacbd7;border-radius:8px;text-align:left;font:inherit}.swatch-trigger img{width:48px;height:48px;object-fit:contain}.swatch-trigger span:first-of-type{flex:1}.swatch-menu{margin-top:8px;padding:12px;border:1px solid #bacbd7;border-radius:10px;background:#f6f8fa;color:#123a5e}.swatch-menu[hidden]{display:none}.swatch-search{display:block;font-size:13px;font-weight:700}.swatch-search input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:6px 0 10px;padding:10px;background:white;color:#123a5e;border:1px solid #bacbd7;border-radius:6px;font:inherit}.swatch-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:360px;overflow:auto;padding:3px}.swatch-choice{display:flex;align-items:center;gap:10px;min-height:64px;padding:8px;background:white;color:#123a5e;border:2px solid transparent;border-radius:8px;text-align:left;font:inherit;font-size:13px}.swatch-choice img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.swatch-choice[aria-pressed=true]{border-color:#123a5e;background:#edf4f8}.swatch-trigger:focus-visible,.swatch-choice:focus-visible{outline:3px solid #93b429;outline-offset:2px}.manual-tools>#finishArea{flex:2;background:#123a5e;color:white}.manual-tools>#undoPoint{flex:1;color:#123a5e}.product-sample{grid-template-columns:90px 1fr}.product-sample>img{display:none}.no-colors{font-size:13px}@media(max-width:760px){.swatch-options{grid-template-columns:repeat(2,minmax(0,1fr))}.swatch-choice{flex-direction:column;align-items:flex-start;gap:4px;font-size:12px;min-height:94px}.product-sample{grid-template-columns:72px 1fr}}#quickColor.visually-hidden{width:1px!important;min-height:1px;height:1px;padding:0}

.back-to-site{color:#123a5e;font-size:14px;font-weight:700;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline}
