@font-face { font-family: 'Oswald'; src: url(oswald-latin-wght-normal.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(outfit-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(space-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(space-mono-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #F1EEE7; --paper-2: #E7E2D7; --card: #FBFAF6; --white: #fff;
  --ink: #16191C; --ink-2: #4A5057; --ink-3: #868B90;
  --line: #D9D3C6; --line-2: #C3BCAD;
  --signal: #E2561B; --signal-2: #C4440E; --signal-soft: #FBE3D6;
  --ok: #2E7552; --err: #B8322A;
  --wall: #ECE8DF; --floor: #DCD5C7; --reveal: #D2CBBC; --figure: #D3CCBE;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --r: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body[data-view="quote"], body[data-view="crm"] { overflow: auto; height: auto; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
svg { display: block; }

/* header */
.top { flex: none; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 22px; background: var(--ink); color: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo { width: 30px; height: 30px; color: currentColor; }
.brand-name { font: 600 22px/1 var(--display); letter-spacing: .12em; display: flex; align-items: baseline; gap: 8px; }
.brand-name small { font: 400 11px/1 var(--mono); letter-spacing: .04em; color: #A9ADB1; text-transform: lowercase; }
.top-nav { display: flex; gap: 22px; margin-left: 18px; }
.top-link { font: 500 13px/1 var(--sans); color: #A9ADB1; padding: 21px 0; border-bottom: 2px solid transparent; }
.top-link.is-on { color: var(--paper); border-color: var(--signal); }
.top-account { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #D7D9DB; }
.acct-badge { font: 700 10px/1 var(--mono); letter-spacing: .08em; background: var(--signal); color: #fff; padding: 5px 7px; border-radius: 2px; }

/* layout */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 410px minmax(0, 1fr) 360px; }
.steps { display: flex; flex-direction: column; min-height: 0; background: var(--card); border-right: 1px solid var(--line); }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 28px 18px; }
.price { min-height: 0; overflow: auto; background: var(--card); border-left: 1px solid var(--line); }

/* stepper */
.stepper { list-style: none; margin: 0; padding: 14px 14px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; border-bottom: 1px solid var(--line); }
.stepper button { width: 100%; background: none; border: 0; padding: 6px 2px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font: 700 11px/1 var(--mono); }
.stepper .l { font: 500 11px/1.15 var(--sans); text-align: center; }
.stepper .is-done { color: var(--ink-2); }
.stepper .is-done .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stepper .is-on { color: var(--ink); border-bottom-color: var(--signal); }
.stepper .is-on .n { background: var(--signal); border-color: var(--signal); color: #fff; }
.stepper button:hover { color: var(--ink); }

.step-body { flex: 1; min-height: 0; overflow: auto; padding: 22px 22px 28px; outline: none; }
.sh { font: 500 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; }
.sp { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.step-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--card); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; font-weight: 600; font-size: 14px; letter-spacing: .01em; transition: background .15s, color .15s, transform .1s; }
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: #2A2F34; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.signal:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn.wide { width: 100%; height: 50px; font-size: 15px; }
.btn.tiny { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

/* cards (radio) */
.cards { display: grid; gap: 8px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); }
.card.is-on { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--signal); }
.card input, .sw input, .seg input, .opt input { position: absolute; opacity: 0; pointer-events: none; }
.card:has(input:focus-visible), .sw:has(input:focus-visible), .seg label:has(input:focus-visible), .opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.card .thumb { width: 64px; height: 56px; display: grid; place-items: center; background: var(--paper); border-radius: 3px; }
.card .thumb svg { width: 56px; height: 50px; }
.card .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card .ct b { font-weight: 600; font-size: 14.5px; }
.card .ct small { color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.card .cp { font: 400 11.5px/1.2 var(--mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.card:not(:has(.thumb)) { grid-template-columns: 1fr auto; }
.card.mini { padding: 10px 12px; grid-template-columns: 1fr; gap: 6px; }
.card.mini .cp { text-align: left; }

/* fields */
.field { margin: 0 0 18px; }
.fl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fl label, .fl .lab { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.range { font: 400 11.5px/1 var(--mono); color: var(--ink-3); }
.dim-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.num-wrap { display: flex; align-items: center; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--white); padding-right: 10px; }
.num-wrap:focus-within { border-color: var(--ink); }
.num-wrap input { width: 100%; min-width: 0; border: 0; background: none; padding: 0 8px 0 12px; font: 700 17px/1 var(--mono); outline: none; }
.num-wrap span { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.num-wrap.is-err, .tin.is-err { border-color: var(--err); background: #FDF2F0; }
.err { margin: 6px 0 0; min-height: 0; font-size: 12.5px; color: var(--err); }
.err:empty { display: none; }
.err.note { color: var(--ok); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p, 50%) 100% no-repeat, var(--line); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--white); border: 2px solid var(--ink); border-radius: 2px; box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 11px var(--signal); }
input[type=range]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-moz-range-progress { height: 4px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; background: var(--signal); border: 2px solid var(--ink); border-radius: 2px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg label { position: relative; min-width: 58px; height: 38px; display: grid; place-items: center; padding: 0 14px; font-weight: 600; text-transform: capitalize; cursor: pointer; border-right: 1.5px solid var(--ink); }
.seg label:last-child { border-right: 0; }
.seg label.is-on { background: var(--ink); color: var(--paper); }
.warn { border: 1.5px solid var(--signal); background: var(--signal-soft); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; }
.warn p { margin: 0 0 10px; font-size: 13.5px; }
.hint { font-size: 13px; color: var(--ink-2); margin: 0 0 16px; }

/* swatches */
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.sw { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; }
.sw.is-on { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); }
.chip { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 6px 6px 0 rgba(255,255,255,.1); }
.chip.anod { background: linear-gradient(100deg, var(--e), var(--c) 40%, var(--e) 75%, var(--c)); }
.chip.wood { background: repeating-linear-gradient(8deg, var(--c) 0 5px, var(--e) 6px 7px, var(--c) 8px 13px); }
.swt { display: flex; flex-direction: column; line-height: 1.2; }
.swt b { font-size: 13.5px; font-weight: 600; }
.swt small { font: 400 11px/1.3 var(--mono); color: var(--ink-3); }
.swp { grid-column: 2; font: 400 11px/1.2 var(--mono); color: var(--ink-2); margin-top: 4px; }

/* option toggles */
.opts { display: grid; gap: 6px; margin-top: 18px; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; }
.opt.is-on { border-color: var(--ink); }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.opt .box { width: 20px; height: 20px; border: 1.5px solid var(--ink-2); border-radius: 3px; display: grid; place-items: center; }
.opt.is-on .box { background: var(--ink); border-color: var(--ink); }
.opt.is-on .box::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ot { display: flex; flex-direction: column; line-height: 1.25; }
.ot b { font-weight: 600; font-size: 14px; }
.ot small { font-size: 12.5px; color: var(--ink-2); }
.op { font: 400 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }

/* quantity */
.qty { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--white); }
.qb { width: 46px; height: 46px; border: 0; background: var(--paper); font-size: 20px; font-weight: 500; }
.qb:hover { background: var(--paper-2); }
#qty { width: 78px; border: 0; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); text-align: center; font: 700 19px/1 var(--mono); outline: none; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 8px; }
.tier { border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 6px; text-align: center; background: var(--white); transition: all .2s; }
.tier b { display: block; font: 700 15px/1.1 var(--mono); }
.tier small { font-size: 11.5px; color: var(--ink-3); }
.tier.is-on { border-color: var(--signal); background: var(--signal-soft); }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 14px; top: 17px; width: 7px; height: 7px; border: 2px solid var(--ink); border-top: 0; border-left: 0; transform: rotate(45deg); pointer-events: none; }
select { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--white); font-weight: 500; }

/* details form */
.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.form .field { margin-bottom: 12px; }
.f-company, .f-email, .f-site, .f-ref { grid-column: 1 / -1; }
.tin { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--white); }
.tin:focus { border-color: var(--ink); outline: none; }

/* stage */
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.eyebrow { margin: 0 0 4px; font: 400 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.stage-title { margin: 0; font: 500 30px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.stage-ref { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stage-ref span { font: 700 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .1em; }
.stage-ref b { font: 700 13px/1 var(--mono); background: var(--ink); color: var(--paper); padding: 6px 8px; border-radius: 2px; white-space: nowrap; }
.canvas { flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--wall); overflow: hidden; position: relative; padding: 28px 20px 0; }
.canvas svg { width: 100%; height: 100%; }
.sv-small { font: 400 70px var(--mono); fill: var(--ink-3); }
.sv-fix { font: 700 110px var(--mono); fill: var(--ink); opacity: .4; letter-spacing: 10px; }
.sv-dim { font-family: var(--mono); font-weight: 700; fill: var(--paper); }
.dim path { stroke: var(--signal); stroke-width: 7; fill: none; }
.dim .dim-head { fill: var(--signal); stroke: none; }
.dim-chip { fill: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.specs div { padding: 10px 14px; border-right: 1px solid var(--line); min-width: 0; }
.specs div:last-child { border-right: 0; }
.specs dt { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.specs dd { margin: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* price */
.price-bar { display: none; }
.price-inner { padding: 22px 22px 26px; }
.price-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.price-head h2 { margin: 0; font: 500 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.price-tag { font: 400 11px/1 var(--mono); color: var(--ink-3); }
.rows { margin: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); align-items: start; }
.row dt { display: flex; flex-direction: column; min-width: 0; }
.rl { font-weight: 600; font-size: 14px; }
.rs { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.rs:empty { display: none; }
.row dd { margin: 0; font: 400 14px/1.4 var(--mono); white-space: nowrap; border-radius: 2px; padding: 0 3px; }
.row.sub { border-top: 0; padding-top: 0; }
.row.sub .rl { font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.row.sub dd { font-size: 12.5px; color: var(--ink-3); }
.row[data-k="disc"] dd { color: var(--ok); }
.row.is-zero dd { color: var(--ink-3); }
.row.line { border-top: 1.5px solid var(--ink); margin-top: 4px; }
dd.is-free { color: var(--ok); font-weight: 700; }
.bump { animation: bump .6s ease-out; }
@keyframes bump { 0% { background: var(--signal-soft); } 100% { background: transparent; } }
.total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: var(--paper); margin: 12px -8px 0; padding: 14px 12px; border-radius: var(--r); }
.total span { font: 500 16px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.total b { font: 700 26px/1 var(--mono); letter-spacing: -.02em; padding: 2px 4px; }
.total b.bump { animation: bump-dark .6s ease-out; }
@keyframes bump-dark { 0% { background: var(--signal); } 100% { background: transparent; } }
.total-note { margin: 8px 0 18px; font: 400 11.5px/1.3 var(--mono); color: var(--ink-2); text-align: right; }
.lead { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; background: var(--white); }
.lead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.lead-head span { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.lead-head b { font: 700 13.5px/1.2 var(--mono); text-align: right; }
.lead-bar { display: flex; gap: 2px; height: 8px; margin-bottom: 9px; }
.lead-bar i { background: var(--ink); border-radius: 1px; transition: flex .3s; }
.lead-bar i:first-child { background: var(--ink-2); }
.lead-bar i:not(:first-child):not(:last-child) { background: var(--signal); }
.lead-bar i:last-child { background: var(--ok); }
.lead-txt { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.fine { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* quote document */
.quote-view { flex: 1; padding: 0 20px 60px; }
.doc-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; padding: 14px 0; background: var(--paper); }
.doc-bar-right { display: flex; gap: 10px; align-items: center; }
.frame-hint { font-size: 12px; color: var(--ink-3); max-width: 170px; line-height: 1.3; text-align: right; }
.doc { max-width: 900px; margin: 6px auto 0; background: var(--white); color: #1d1f21; padding: 52px 56px 34px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(22,25,28,.35); border-top: 6px solid var(--signal); animation: docin .45s cubic-bezier(.2,.7,.2,1); }
@keyframes docin { from { opacity: 0; transform: translateY(14px); } }
.d-head { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1.5px solid #1d1f21; }
.d-brand { display: flex; gap: 14px; }
.d-brand .logo { width: 42px; height: 42px; color: #1d1f21; flex: none; }
.d-brand div { display: flex; flex-direction: column; font-size: 12.5px; color: #555; line-height: 1.45; }
.d-brand b { font: 600 18px/1.2 var(--display); letter-spacing: .06em; color: #1d1f21; margin-bottom: 4px; }
.d-title { text-align: right; }
.d-title > span { font: 500 13px/1 var(--display); text-transform: uppercase; letter-spacing: .18em; color: var(--signal); }
.d-title > b { display: block; font: 700 24px/1.2 var(--mono); margin: 6px 0 10px; }
.d-title dl { margin: 0; display: grid; gap: 3px; font-size: 12.5px; }
.d-title dl div { display: flex; justify-content: flex-end; gap: 10px; }
.d-title dt { color: #777; }
.d-title dd { margin: 0; font-weight: 600; min-width: 92px; }
.d-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 22px 0; }
.d-parties div { display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: #444; }
.d-parties h3, .d-terms h3 { margin: 0 0 6px; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #888; }
.d-parties b { font-size: 15px; color: #1d1f21; }
.d-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.d-lines th { text-align: left; font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #777; padding: 10px 8px; border-bottom: 1.5px solid #1d1f21; background: #F6F4EF; }
.d-lines td { padding: 12px 8px; border-bottom: 1px solid #E4E0D7; vertical-align: top; }
.d-lines .c-n { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.d-lines th.c-n { text-align: right; }
.d-lines .c-r { font-family: var(--mono); font-size: 11.5px; color: #777; white-space: nowrap; }
.d-lines td.c-d { display: flex; gap: 14px; align-items: flex-start; }
.d-thumb { flex: none; width: 74px; height: 70px; background: #F3F1EC; border-radius: 3px; padding: 4px; }
.d-thumb svg { width: 100%; height: 100%; }
.d-desc { display: flex; flex-direction: column; gap: 2px; }
.d-desc b { font-weight: 600; }
.d-desc span { color: #666; font-size: 12.5px; }
.d-sum { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 24px 0 10px; }
.d-terms ol { margin: 0; padding-left: 18px; font-size: 12px; color: #555; line-height: 1.55; }
.d-tot { margin: 0; }
.d-tot div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #ECE8DF; }
.d-tot dd { margin: 0; font-family: var(--mono); }
.d-tot .grand { border: 0; border-top: 2px solid #1d1f21; margin-top: 4px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.d-tot .grand dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.d-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 12px; border-top: 1px solid #E4E0D7; font: 400 10.5px/1.3 var(--mono); color: #999; }

/* CRM */
.crm-view { flex: 1; padding: 22px 22px 60px; max-width: 1440px; margin: 0 auto; width: 100%; }
.confirm { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: var(--r); padding: 18px 22px; margin-bottom: 18px; animation: docin .4s ease-out; }
.confirm-mark { width: 46px; height: 46px; color: var(--ok); }
.confirm-mark svg { width: 100%; height: 100%; }
.confirm-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .5s .25s ease-out forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.confirm h2 { margin: 0 0 3px; font: 500 24px/1.1 var(--display); text-transform: uppercase; }
.confirm p { margin: 0; color: var(--ink-2); font-size: 14px; }
.confirm-actions { display: flex; gap: 10px; }
.crm { background: #1B1F23; color: #E6E8EA; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(0,0,0,.6); }
.crm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #2E343A; flex-wrap: wrap; }
.crm-title { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.crm-app { font: 700 12px/1 var(--mono); color: var(--signal); letter-spacing: .04em; }
.crm-sep { color: #59616A; }
.crm-meta { display: flex; gap: 16px; font: 400 12px/1 var(--mono); color: #9AA2AA; }
.crm-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; padding: 14px; overflow-x: auto; }
.col { background: #23282D; border-radius: 4px; padding: 8px; min-width: 0; }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; font-size: 13px; }
.cnt { font: 700 10.5px/1 var(--mono); background: #333A41; padding: 3px 6px; border-radius: 9px; color: #C8CDD2; }
.sum { margin-left: auto; font: 400 11px/1 var(--mono); color: #8A939B; }
.col-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.kc { position: relative; background: #2C3238; border: 1px solid #383F46; border-radius: 4px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 3px; }
.kc-t { font-size: 13px; font-weight: 600; color: #F1F2F3; line-height: 1.25; padding-right: 30px; }
.kc-c { font-size: 12px; color: #9AA2AA; }
.kc-f { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; }
.kc-v { font: 700 12.5px/1 var(--mono); color: #F1F2F3; }
.kc-tag { font-size: 10.5px; background: #3A424A; color: #C3C9CE; padding: 3px 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kc-rep { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #4A535C; display: grid; place-items: center; font: 700 9px/1 var(--mono); color: #fff; }
.kc-age { position: absolute; top: 10px; right: 10px; font: 400 10px/1 var(--mono); color: #79828B; }
.kc.is-new { background: #FBFAF6; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(226,86,27,.35); animation: drop .7s cubic-bezier(.2,.8,.25,1.15) .35s both, glow 2.4s 1.1s ease-in-out 2; }
.kc.is-new .kc-t { color: var(--ink); }
.kc.is-new .kc-c { color: var(--ink-2); }
.kc.is-new .kc-v { color: var(--ink); font-size: 13.5px; }
.kc.is-new .kc-tag { background: var(--paper-2); color: var(--ink-2); }
.kc.is-new .kc-rep { background: var(--signal); }
.kc.is-new .kc-age { position: static; order: 9; color: var(--ink-3); margin-top: 4px; }
.kc-flag { align-self: flex-start; font: 700 9.5px/1 var(--mono); letter-spacing: .08em; color: #fff; background: var(--signal); padding: 4px 6px; border-radius: 2px; margin-bottom: 6px; }
.kc-thumb { position: absolute; top: 8px; right: 8px; width: 38px; height: 36px; }
.kc-thumb svg { width: 100%; height: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-3deg) scale(.96); } }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(226,86,27,.18); } }
.activity { border-left: 1px solid #2E343A; padding: 14px 16px; }
.activity h3 { margin: 0 0 12px; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8A939B; }
.activity ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activity li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; opacity: 0; animation: actin .4s ease-out forwards; animation-delay: calc(.9s + var(--i) * .35s); }
.activity svg { width: 18px; height: 18px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-top: 1px; }
.activity p { margin: 0; font-size: 13px; line-height: 1.35; color: #DDE0E3; }
.activity b { color: #fff; }
.activity small { font-size: 11.5px; color: #8A939B; }
@keyframes actin { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* phone: floating mini preview while the drawing is off screen */
.minipv { display: none; }
@media screen and (max-width: 900px) {
  .minipv { display: block; position: fixed; bottom: 74px; right: 12px; z-index: 35; width: 96px; height: 84px; padding: 6px; background: var(--wall); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 0 8px 20px -10px rgba(22,25,28,.45); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .minipv svg { width: 100%; height: 100%; }
  body.mini-on .minipv { opacity: 1; transform: none; }
  .d-lines td:nth-child(3)::before { content: 'x '; color: #999; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: var(--r); font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 60; border-left: 4px solid var(--signal); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ribbon */
.ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 50; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--ink-2); background: rgba(251,250,246,.94); border: 1px solid var(--line-2); padding: 6px 9px; border-radius: 99px; text-decoration: none; }
.ribbon:hover { color: var(--ink); border-color: var(--ink-2); }

/* responsive */
@media (max-width: 1280px) {
  .app { grid-template-columns: 370px minmax(0, 1fr) 330px; }
  .top-nav { display: none; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(2) { border-right: 0; }
  .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .crm-body { grid-template-columns: 1fr; }
  .activity { border-left: 0; border-top: 1px solid #2E343A; }
}
@media screen and (max-width: 900px) {
  body { height: auto; overflow: visible; display: block; }
  .top { position: sticky; top: 0; z-index: 30; height: 54px; padding: 0 16px; }
  .acct-name { display: none; }
  .app { display: flex; flex-direction: column; }
  .stage { order: 1; padding: 16px 16px 4px; }
  .steps { order: 2; border-right: 0; border-top: 1px solid var(--line); scroll-margin-top: 54px; }
  .canvas { flex: none; height: 300px; }
  .stage-title { font-size: 26px; }
  .stage-ref b { font-size: 11px; }
  .step-body { overflow: visible; padding: 20px 16px 20px; }
  .stepper { padding: 10px 8px 0; position: sticky; top: 54px; background: var(--card); z-index: 10; }
  .stepper .l { font-size: 10px; }
  .step-foot { padding: 12px 16px 16px; justify-content: space-between; }
  .price { order: 3; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-left: 0; border-top: 1px solid var(--line-2); max-height: 82vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 -10px 30px -12px rgba(22,25,28,.25); }
  .price-bar { display: flex; flex: none; align-items: center; gap: 10px; width: 100%; height: 62px; padding: 0 16px; border: 0; background: var(--ink); color: var(--paper); }
  .pb-label { font: 500 13px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
  .pb-total { margin-left: auto; font: 700 20px/1 var(--mono); }
  .price-bar svg { width: 16px; height: 16px; transition: transform .2s; }
  body.price-open .price-bar svg { transform: rotate(180deg); }
  .price-inner { display: none; overflow: auto; padding: 16px 16px 22px; }
  body.price-open .price-inner { display: block; }
  .total { display: none; }
  body[data-view="config"] { padding-bottom: 62px; }
  .ribbon { position: static; display: block; width: max-content; margin: 8px auto 16px; }
  .quote-view { padding: 0 0 40px; }
  .doc-bar { flex-direction: column; align-items: stretch; padding: 12px 16px; top: 54px; }
  .doc-bar-right { flex-wrap: wrap; }
  .doc-bar-right .btn { flex: 1; }
  .frame-hint { max-width: none; text-align: left; flex-basis: 100%; }
  .doc { padding: 26px 18px 22px; margin: 0; box-shadow: none; }
  .d-head { flex-direction: column; gap: 16px; }
  .d-title { text-align: left; }
  .d-title dl div { justify-content: flex-start; }
  .d-parties { grid-template-columns: 1fr; gap: 16px; }
  .d-lines thead { display: none; }
  .d-lines, .d-lines tbody, .d-lines tr { display: block; }
  .d-lines tr { display: grid; grid-template-columns: 1fr auto auto; column-gap: 10px; padding: 10px 0; border-bottom: 1px solid #E4E0D7; }
  .d-lines td { border: 0; padding: 0; }
  .d-lines td.c-d { grid-column: 1 / -1; margin-bottom: 6px; }
  .d-lines .c-r { grid-column: 1; }
  .d-lines td:nth-child(4) { display: none; }
  .d-sum { grid-template-columns: 1fr; gap: 20px; }
  .d-tot { order: -1; }
  .d-foot { flex-direction: column; }
  .crm-view { padding: 14px 0 40px; }
  .confirm { grid-template-columns: auto 1fr; margin: 0 16px 14px; padding: 16px; }
  .confirm-actions { grid-column: 1 / -1; }
  .confirm-actions .btn { flex: 1; }
  .crm { border-radius: 0; }
  .board { grid-template-columns: repeat(5, 240px); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
}
@media screen and (max-width: 420px) {
  .swatches { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr 108px; }
  .cards.two { grid-template-columns: 1fr; }
  .card .cp { font-size: 10.5px; }
  .brand-name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .activity li { opacity: 1; }
}

/* print: the quote only */
@page { size: A4; margin: 14mm; }
@media print {
  body { background: #fff; display: block; height: auto; overflow: visible; }
  .top, .app, .doc-bar, .crm-view, .ribbon, .toast, .minipv { display: none !important; }
  .quote-view { display: block !important; padding: 0; }
  .doc { max-width: none; margin: 0; padding: 0; box-shadow: none; border-top: 4px solid var(--signal); animation: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .d-lines tr { break-inside: avoid; }
  .d-head { padding-bottom: 14px; }
  .d-parties { padding: 14px 0; }
  .d-lines td { padding: 7px 8px; }
  .d-sum { padding-top: 14px; break-inside: avoid; }
  .d-foot { margin-top: 12px; }
}
