/* ProtoMount: Material-style theme. Colours are tokens; dark mode follows the system. */
:root {
  --bg: #f6f9f3;
  --surface: #ffffff;
  --surface-2: #ecf2e8;
  --surface-3: #dfe8da;
  --text: #161d18;
  --muted: #54615a;
  --border: #d3dccf;
  --primary: #0b6b2b;
  --on-primary: #ffffff;
  --primary-soft: #cdebd0;
  --on-primary-soft: #05260e;
  --gold: #a87b1c;
  --ok: #1b7a39;
  --warn: #8f5b00;
  --error: #b3261e;
  --board-bg: #e4eadf;
  --scene-bg: #eaf1f8;
  --scene-ink: #2f6fe0;
  --case: #c9d2da;
  --radius: 16px;
  --e1: 0 1px 2px rgba(20, 40, 25, .10), 0 1px 3px 1px rgba(20, 40, 25, .06);
  --e2: 0 1px 2px rgba(20, 40, 25, .10), 0 4px 10px 2px rgba(20, 40, 25, .08);
  --e3: 0 4px 8px rgba(20, 40, 25, .12), 0 10px 24px 4px rgba(20, 40, 25, .10);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1410;
    --surface: #161e18;
    --surface-2: #1d2820;
    --surface-3: #27342a;
    --text: #e4ebe5;
    --muted: #9aaa9f;
    --border: #2c3a30;
    --primary: #7ad98f;
    --on-primary: #00390f;
    --primary-soft: #14431f;
    --on-primary-soft: #c5f0cb;
    --gold: #e0b95e;
    --ok: #6fd28a;
    --warn: #e6ad4a;
    --error: #f2857c;
    --board-bg: #0a0f0c;
    --scene-bg: #111a24;
    --scene-ink: #6ea4ff;
    --case: #3a444d;
    --e1: 0 0 0 1px #2c3a30;
    --e2: 0 0 0 1px #33433a;
    --e3: 0 0 0 1px #3d5045, 0 12px 28px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: .95rem; margin-top: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--muted); font-size: .85em; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }
.page-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font: 500 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100vw - 1160px) / 2 + 16px));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.appbar.raised { box-shadow: var(--e2); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.chip { width: 24px; height: 24px; border-radius: 6px; background: #0b5d1e; box-shadow: inset 0 0 0 5px #0b5d1e, inset 0 0 0 12px #d9b25a; flex: none; }
#nav { display: flex; align-items: center; gap: 4px; }
#nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
#nav a:not(.btn):hover, #nav a[aria-current="page"]:not(.btn) { color: var(--text); background: var(--surface-2); }
#nav .btn { margin-left: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  #nav { position: absolute; top: 100%; left: 8px; right: 8px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
         background: var(--surface); border-radius: var(--radius); box-shadow: var(--e3);
         opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
         transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
  #nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  #nav .btn { margin: 6px 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font: 500 .95rem/1.2 var(--font); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; transition: box-shadow .2s var(--ease), background .2s, transform .1s;
}
.btn:hover { box-shadow: var(--e1); }
.btn:active { transform: scale(.98); }
.btn.filled, .btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.filled:hover, .btn.primary:hover { box-shadow: var(--e2); }
.btn.tonal { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn.outlined { background: transparent; border-color: var(--border); color: var(--primary); }
.btn.danger { background: transparent; border-color: var(--border); color: var(--error); }
.btn.small { min-height: 38px; padding: 6px 18px; font-size: .9rem; }
.btn.big { min-height: 54px; padding: 14px 30px; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); pointer-events: none; animation: ripple .55s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- cards, chips, forms ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--e1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip-link, .fact { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; }
.chip-link:hover { background: var(--surface-2); }
.chip-link.on { background: var(--primary-soft); color: var(--on-primary-soft); border-color: transparent; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; font-weight: 500; white-space: nowrap; }
.badge.new, .badge.in { background: var(--primary-soft); color: var(--on-primary-soft); }
.badge.out { background: var(--surface-3); color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .status { margin: 0; }
label { display: block; font-size: .88rem; font-weight: 500; color: var(--muted); }
label > input, label > select, label > textarea { display: block; margin-top: 5px; }
input, select, textarea {
  font: 400 1rem var(--font); color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
label > input[type="checkbox"], label > input[type="radio"] { display: inline-block; margin-top: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); box-shadow: none; flex: none; }
input[type="file"] { padding: 8px; }
input[type="range"] { padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--primary); height: 28px; }
.field { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.label { display: block; font-size: .88rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text); cursor: pointer; }
.radio { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95rem; color: var(--text); margin: 8px 0; cursor: pointer; }
.radio input { margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.2em; margin: .6em 0 0; font-size: .95rem; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }
.hint { margin: .5em 0 0; font-size: .9rem; color: var(--muted); }

/* segmented choice (two or three big options) */
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.segmented label { position: relative; display: block; padding: 14px 16px 14px 46px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.segmented label span { display: block; margin-top: 4px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.segmented input { position: absolute; left: 16px; top: 16px; margin: 0; }
.segmented label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--on-primary-soft); }
.segmented label:has(input:checked) span { color: inherit; opacity: .85; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero-traces { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--primary); opacity: .16; pointer-events: none; }
.hero-traces path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 180ms); }
.hero-traces circle { fill: currentColor; opacity: 0; animation: pop .4s var(--ease) forwards; animation-delay: calc(var(--i) * 180ms + 1.6s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 18px; }
.hero h1 b { color: var(--primary); font-weight: 700; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.fact { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.fact b { font: 500 .95rem var(--mono); color: var(--primary); }
.hero > .wrap > * { animation: rise .8s var(--ease) both; }
.hero > .wrap > :nth-child(2) { animation-delay: .08s; } .hero > .wrap > :nth-child(3) { animation-delay: .16s; }
.hero > .wrap > :nth-child(4) { animation-delay: .24s; } .hero > .wrap > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- journey (scroll-driven) ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.journey { background: var(--surface); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.stage { position: sticky; top: 84px; order: 2; }
.scene { background: var(--scene-bg); border-radius: 24px; box-shadow: var(--e1); overflow: hidden; transition: background .6s var(--ease); }
.scene svg { display: block; width: 100%; height: auto; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.stepper button { width: 100%; border: 0; background: none; font: 500 .8rem var(--font); color: var(--muted); cursor: pointer; padding: 10px 2px 6px; border-top: 3px solid var(--surface-3); transition: color .3s, border-color .3s; text-align: left; }
.stepper button.done { border-color: color-mix(in srgb, var(--primary) 45%, var(--surface-3)); }
.stepper button.on { color: var(--text); border-color: var(--primary); }
.steps { order: 1; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .35; transition: opacity .4s var(--ease); }
.step.on { opacity: 1; }
.step .num { font: 500 .85rem var(--mono); color: var(--primary); letter-spacing: .1em; margin-bottom: 10px; }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.step p { color: var(--muted); max-width: 46ch; }
.step ul { margin: 0; padding-left: 18px; color: var(--muted); max-width: 46ch; }
.step li { margin: 4px 0; }
@media (max-width: 860px) {
  .journey-grid { grid-template-columns: 1fr; gap: 0; }
  .stage { order: 1; top: 64px; z-index: 2; background: var(--surface); padding: 8px 0 10px; margin: 0 -16px; padding-inline: 16px; }
  .scene svg { max-height: 36vh; }
  .steps { order: 2; }
  .step { min-height: 58vh; justify-content: flex-start; padding-top: 28px; }
}

/* scene parts. Classes on .scene: ge2/ge3/ge4 = "this stage or later", at1..at4 = "exactly this stage" */
.scene * { transform-box: fill-box; transform-origin: center; }
.sc-grid { opacity: .9; transition: opacity .6s; }
.ge2 .sc-grid { opacity: 0; }
.sc-outline { fill: none; stroke: var(--scene-ink); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease), opacity .5s; }
.live .sc-outline { stroke-dashoffset: 0; }
.ge2 .sc-outline { opacity: 0; }
.sc-mask { fill: #0b5d1e; opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease), opacity .3s; }
.ge2 .sc-mask { opacity: 1; clip-path: inset(0 0 0 0); }
.sc-trace { fill: none; stroke: var(--scene-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease), stroke .8s; transition-delay: calc(var(--i) * 110ms + .5s), .3s; }
.live .sc-trace { stroke-dashoffset: 0; }
.ge2 .sc-trace { stroke: #2aa052; }
.sc-pad { fill: transparent; stroke: var(--scene-ink); stroke-width: 1.2; transition: fill .6s, stroke .6s; transition-delay: .5s; }
.ge2 .sc-pad { fill: #e0bb62; stroke: transparent; }
.sc-hole { fill: var(--scene-bg); opacity: 0; transition: opacity .4s .7s; }
.ge2 .sc-hole { opacity: 1; }
.ge4 .sc-hole.mount { fill: #8a949c; }
.sc-silk { fill: none; stroke: #f2f2f2; stroke-width: 1; opacity: 0; transition: opacity .5s .9s; }
text.sc-silk { fill: #f2f2f2; stroke: none; font: 500 11px var(--mono); }
.ge2 .sc-silk { opacity: .9; }
.sc-scan { opacity: 0; }
.at2 .sc-scan { animation: scan 2.6s var(--ease) infinite; }
@keyframes scan { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: .9; } 88% { opacity: .9; } 100% { opacity: 0; transform: translateX(300px); } }
.sc-cursor { opacity: 0; transition: opacity .3s; }
.at1.live .sc-cursor { opacity: 1; animation: cursor 5s var(--ease) infinite; }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(90px, -50px); } 60% { transform: translate(-70px, 30px); } }
.sc-part { opacity: 0; transform: translateY(-46px) scale(1.25); transition: opacity .25s, transform .55s cubic-bezier(.3, 1.4, .5, 1); transition-delay: 0s; }
.ge3 .sc-part { opacity: 1; transform: none; transition-delay: calc(var(--i) * 170ms + .25s); }
.sc-gantry { opacity: 0; transition: opacity .4s; }
.at3 .sc-gantry { opacity: 1; }
.at3 .sc-head { animation: head 3.4s var(--ease) infinite; }
.at3 .sc-nozzle { animation: nozzle .85s ease-in-out infinite; transform-origin: top; }
@keyframes head { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(120px); } 50% { transform: translateX(230px); } 75% { transform: translateX(60px); } }
@keyframes nozzle { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.1); } }
.sc-case { opacity: 0; transform: scale(1.12); transition: opacity .5s, transform .8s var(--ease); fill: var(--case); }
.ge4 .sc-case { opacity: 1; transform: none; }
.sc-case-edge { fill: none; stroke: color-mix(in srgb, var(--case) 60%, #000); stroke-width: 2; }
.sc-glow { opacity: 0; fill: #ff5a4d; }
.ge4 .sc-glow { animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .75; transform: scale(1.5); } }
.sc-badge { opacity: 0; transform: scale(.3); transition: opacity .3s .7s, transform .5s cubic-bezier(.3, 1.6, .5, 1) .7s; }
.ge4 .sc-badge { opacity: 1; transform: none; }
.sc-label { font: 500 12px var(--mono); fill: var(--muted); letter-spacing: .08em; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.service { margin: 0; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.service:hover { box-shadow: var(--e3); transform: translateY(-4px); }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }
.service .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 10px; }
.service .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service a { margin-top: auto; padding-top: 10px; font-weight: 500; text-decoration: none; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.ways .card { margin: 0; background: var(--surface-2); box-shadow: none; }
.ways ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: way; }
.ways li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: way; }
.ways li::before { content: counter(way, upper-alpha); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--primary); font: 500 .9rem var(--mono); }
.ways li span { color: var(--muted); font-size: .93rem; display: block; }

/* ---------- pricing calculator ---------- */
.pricing { background: var(--surface); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calc .card { margin: 0; background: var(--surface-2); box-shadow: none; }
.slider { margin-bottom: 20px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text); font-size: .98rem; }
.slider-head output { font: 500 1.1rem var(--mono); color: var(--primary); }
.calc-total { font: 700 clamp(2rem, 5vw, 3rem)/1 var(--mono); letter-spacing: -.02em; margin: 6px 0 4px; }
.bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 20px 0 12px; }
.bar i { display: block; height: 100%; transition: width .5s var(--ease); min-width: 0; }
.c-stencil { background: #0b6b2b; } .c-smd { background: #d9a520; } .c-tht { background: #2f6fe0; } .c-pcb { background: #7a4fd0; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend b { font: 500 .95rem var(--mono); }
.rate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.rate { background: var(--surface-2); border-radius: var(--radius); padding: 18px; }
.rate b { display: block; font: 700 clamp(1.3rem, 3vw, 1.9rem)/1.1 var(--mono); color: var(--primary); }
.rate span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .rate-row { grid-template-columns: 1fr; } }

/* ---------- 3D print + contact ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.printer { background: var(--surface-2); border-radius: 24px; padding: 16px; }
.printer svg { display: block; width: 100%; height: auto; }
.pr-layer { fill: var(--primary); opacity: 0; animation: layer 6s linear infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes layer { 0%, 4% { opacity: 0; } 8%, 88% { opacity: .9; } 96%, 100% { opacity: 0; } }
.pr-head { animation: printhead 1.1s ease-in-out infinite alternate; }
@keyframes printhead { from { transform: translateX(-52px); } to { transform: translateX(52px); } }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }

/* ---------- components (shop) ---------- */
.search { display: flex; gap: 10px; margin: 18px 0 6px; max-width: 640px; }
.search input { border-radius: 999px; padding-inline: 20px; }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.part-card { display: flex; flex-direction: column; padding: 0; margin: 0; overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.part-card:hover { box-shadow: var(--e3); transform: translateY(-3px); }
.part-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; }
.part-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.part-ph { width: 46%; aspect-ratio: 1; border-radius: 12px; background: #0b5d1e; box-shadow: inset 0 0 0 12px #0b5d1e, inset 0 0 0 30px #d9b25a; opacity: .5; }
.part-ph.big { width: 40%; }
.part-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.part-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font: 500 1.02rem var(--mono); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.empty { text-align: center; padding: 48px 20px; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 16px; color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-bottom: 28px; align-items: start; }
.product-img { margin: 0; padding: 16px; background: #fff; display: grid; place-items: center; aspect-ratio: 1; }
.product-img img { max-height: 100%; object-fit: contain; }
.product-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-price .price { font-size: 1.7rem; font-weight: 700; }
.product-price small { font: 400 .9rem var(--font); color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 18px; }
.specs div, .stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.specs dt, .stats dt { font-size: .78rem; color: var(--muted); }
.specs dd, .stats dd { margin: 0; font: 500 1rem var(--mono); overflow-wrap: anywhere; }
.product-desc { white-space: pre-line; color: var(--text); max-width: 70ch; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product-img { aspect-ratio: 4 / 3; } }

/* ---------- quote tool ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 20px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; color: var(--text); font-size: 1rem; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.dropzone span { color: var(--muted); max-width: 54ch; font-size: .95rem; font-weight: 400; }
.dropzone.over, .dropzone:hover { border-color: var(--primary); background: var(--surface-2); }
.dropzone.over { transform: scale(1.01); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.col-side { position: sticky; top: 76px; }
@media (max-width: 940px) { .grid { grid-template-columns: 1fr; } .col-side { position: static; order: -1; } }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.tab { border: 0; background: none; color: var(--muted); font: 500 .92rem var(--font); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--e1); }
.viewer { margin: 0; }
.viewer figcaption { font-size: .8rem; margin-top: 10px; }
.board-wrap { position: relative; background: var(--board-bg); border-radius: 12px; padding: 36px 44px 44px 36px; display: flex; justify-content: center; }
.board-wrap img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.dim { position: absolute; font: 500 .8rem var(--mono); color: var(--muted); }
.dim-h { left: 36px; right: 44px; bottom: 14px; text-align: center; border-top: 1px solid var(--muted); padding-top: 2px; }
.dim-v { top: 36px; bottom: 44px; right: 8px; width: 28px; border-left: 1px solid var(--muted); display: flex; align-items: center; }
.dim-v span { writing-mode: vertical-rl; padding-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding-left: 24px; position: relative; font-size: .93rem; }
.checks li::before { position: absolute; left: 0; font-weight: 700; }
.checks .ok::before { content: "✓"; color: var(--ok); }
.checks .warn::before { content: "!"; color: var(--warn); left: 5px; }
.checks .error::before { content: "✕"; color: var(--error); }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--muted); font-size: .93rem; }
.layers { font-size: .88rem; padding-left: 18px; columns: 2; }
.layers code { font-family: var(--mono); color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .layers { columns: 1; } }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: 400 .88rem var(--font); color: var(--text); cursor: pointer; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.swatch[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); }
.table-scroll { overflow-x: auto; margin-top: 10px; max-height: 260px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--surface-2); position: sticky; top: 0; font-weight: 500; }
.price-card { box-shadow: var(--e2); }
.price-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: .88rem; }
.price-lines li { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.price-lines .sub { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; margin-top: -6px; }
.price-lines .amt { font-family: var(--mono); font-weight: 500; }
.per-unit { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.per-unit span:nth-child(even) { font-family: var(--mono); text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--text); padding-top: 12px; font-weight: 500; }
.total .amt { font: 700 1.6rem var(--mono); }
.price-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.price-error { color: var(--error); font-size: .92rem; }
.price-card .bar { height: 14px; margin: 4px 0 10px; }
.price-card .legend { font-size: .82rem; margin-bottom: 14px; }
.card.done { text-align: center; padding: 44px 20px; }
.track { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.track .span-all { grid-column: 1 / -1; }
@media (max-width: 640px) { .track { grid-template-columns: 1fr; } }

/* ---------- account ---------- */
.auth { max-width: 460px; margin: 24px auto; }
.auth .tabs { display: flex; margin-bottom: 20px; }
.auth .tab { flex: 1; }
.auth form { display: grid; gap: 14px; }
.order-list { display: grid; gap: 12px; }
.order-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; margin: 0; }
.order-item img { width: 96px; height: 72px; object-fit: contain; background: var(--board-bg); border-radius: 10px; padding: 4px; }
.order-item .amt { font: 500 1.05rem var(--mono); text-align: right; }
@media (max-width: 560px) { .order-item { grid-template-columns: 72px 1fr; } .order-item img { width: 72px; height: 56px; } .order-item .amt { grid-column: 1 / -1; text-align: left; } }

/* ---------- footer ---------- */
.footer { background: var(--surface-2); padding: 32px 0 40px; margin-top: 24px; }
.footer-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: start; }
.footer p { margin: 8px 0 0; max-width: 44ch; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.footer nav a:hover { color: var(--text); }

/* ---------- admin ---------- */
.admin-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.admin-bar label { min-width: 200px; }
.orders td { vertical-align: top; white-space: normal; }
.orders tr.order-row { cursor: pointer; }
.orders tr.order-row:hover td { background: var(--surface-2); }
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.order-detail img { width: 100%; background: var(--board-bg); border-radius: 8px; padding: 8px; }
.order-detail pre, pre.msg { white-space: pre-wrap; font: .84rem/1.45 var(--mono); margin: 0; overflow-wrap: anywhere; }
.thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.banner { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); margin-bottom: 16px; font-size: .92rem; }
@media (max-width: 760px) { .order-detail { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-traces path { stroke-dashoffset: 0; } .hero-traces circle { opacity: 1; } .pr-layer { opacity: .9; }
}

/* ---------- skeleton loading (shimmer placeholders) ---------- */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; isolation: isolate; }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent);
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 12px; margin: 12px 0; border-radius: 6px; }
.skel-line.lg { height: 22px; } .skel-line.xl { height: 34px; }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; } .w45 { width: 45%; } .w30 { width: 30%; } .w20 { width: 20%; }
.skel-pill { display: inline-block; height: 36px; width: 96px; border-radius: 999px; }
.skel-board { aspect-ratio: 5 / 3; width: 100%; border-radius: 12px; }
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.skel-tiles .skel { height: 58px; border-radius: 12px; }
.skel-row { display: flex; gap: 10px; align-items: center; }
.skel-circle { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.fade-in { animation: fadein .45s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.dim-out { opacity: .45; transition: opacity .2s; }

/* upload progress inside the drop zone */
.loader { margin-top: 16px; }
.loader-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .25s var(--ease); }
.loader-bar.indeterminate i { width: 35%; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.loader-stages { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.loader-stages li { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color .3s; }
.loader-stages li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface-3); flex: none; box-sizing: border-box; }
.loader-stages li.on { color: var(--text); }
.loader-stages li.on::before { border-color: var(--primary); border-right-color: transparent; animation: spin .8s linear infinite; }
.loader-stages li.done { color: var(--text); }
.loader-stages li.done::before { content: "✓"; border: 0; background: var(--primary); color: var(--on-primary); font: 700 10px/16px var(--font); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.board-wrap.loading img { opacity: 0; }
.board-wrap.loading::before { content: ""; position: absolute; inset: 36px 44px 44px 36px; border-radius: 10px; background: var(--surface-3); }
.board-wrap.loading::after { content: ""; position: absolute; inset: 36px 44px 44px 36px; border-radius: 10px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent);
  animation: shimmer 1.3s ease-in-out infinite; transform: translateX(-100%); }
.board-wrap img { transition: opacity .35s var(--ease); }

/* ---------- progress / timeline ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .8s var(--ease); }
.progress.halted i { background: var(--warn); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--primary-soft); color: var(--on-primary-soft); white-space: nowrap; }
.status-chip.halted { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--text); }
.status-chip.closed { background: var(--surface-3); color: var(--muted); }
.status-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.stagebar { display: flex; gap: 4px; margin: 12px 0 4px; height: 6px; flex: none; }
.stagebar span { flex: 1 1 0; height: 6px; min-width: 0; border-radius: 999px; background: var(--surface-3); }
.stagebar span.done { background: var(--primary); }
.stagebar span.current { background: linear-gradient(90deg, var(--primary) 50%, var(--surface-3) 50%); background-size: 200% 100%; animation: stagefill 1.8s ease-in-out infinite; }
@keyframes stagefill { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: var(--surface-3); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--primary); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font: 700 .8rem var(--font); }
.timeline .done .dot { background: var(--primary); color: var(--on-primary); }
.timeline .current .dot { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.timeline strong { display: block; padding-top: 5px; }
.timeline .todo strong { color: var(--muted); font-weight: 400; }
.timeline small { color: var(--muted); }
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.messages li { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.messages small { display: block; color: var(--muted); margin-bottom: 4px; }
.track-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.track-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } }

/* project cards (account + admin board) */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.project { margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
a.project:hover, button.project:hover { box-shadow: var(--e3); transform: translateY(-3px); }
button.project { border: 0; font: inherit; text-align: left; cursor: pointer; background: var(--surface); }
.project-top { display: flex; gap: 14px; align-items: center; }
.project-top img { width: 72px; height: 54px; object-fit: contain; background: var(--board-bg); border-radius: 10px; padding: 3px; flex: none; }
.project-top div { min-width: 0; }
.project .now { font-size: .9rem; color: var(--muted); margin: 0; }
.project .msg { font-size: .88rem; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin: 4px 0 0; }

/* admin dashboard tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { margin: 0; padding: 16px 18px; }
.tile b { display: block; font: 700 1.8rem/1.1 var(--mono); color: var(--primary); }
.tile span { color: var(--muted); font-size: .88rem; }
.tile.alert b { color: var(--warn); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 14px 0; }
.detail-grid section { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.detail-grid h4 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.renders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.renders img { width: 100%; background: var(--board-bg); border-radius: 8px; padding: 6px; }
.update-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; margin-top: 4px; }
.update-form .span-2 { grid-column: 1 / -1; }

/* ---------- address book ---------- */
.addr-book { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.addr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.addr-head h4 { margin: 0; font-size: 1rem; }
.addr-list { display: grid; gap: 10px; }
.addr-card { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; border: 1px solid transparent; font-size: .92rem; }
.addr-card.default { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.addr-card .addr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.addr-card p { margin: 0; color: var(--muted); }
.addr-card .addr-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.addr-card .btn { min-height: 32px; padding: 4px 12px; font-size: .82rem; }
.addr-empty { color: var(--muted); font-size: .9rem; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.addr-form { margin-top: 16px; background: var(--surface-2); box-shadow: none; }
.addr-pick { margin: 6px 0 12px; }
@media (max-width: 760px) { .addr-book { grid-template-columns: 1fr; } }
.past-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .past-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--primary); color: var(--on-primary); font: 700 .8rem var(--font); background-size: cover; background-position: center; }
.avatar.big { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 2rem; }
.hello-row { display: flex; align-items: center; gap: 16px; }
.photo-row { display: flex; align-items: center; gap: 20px; margin: 8px 0 18px; flex-wrap: wrap; }
#nav-account { display: inline-flex; align-items: center; gap: 8px; }
#nav-account .avatar { margin-left: -12px; }

/* ---------- labelled stepper ---------- */
.steps-line { list-style: none; margin: 16px 0 4px; padding: 0; display: flex; overflow-x: auto; scrollbar-width: thin; }
.steps-line li { flex: 1 0 84px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px 4px; }
.steps-line li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--surface-3); z-index: 0; }
.steps-line li:first-child::before { display: none; }
.steps-line li.done::before, .steps-line li.current::before { background: var(--primary); }
.steps-line .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font: 700 .8rem var(--font); box-shadow: 0 0 0 4px var(--surface); }
.steps-line .done .dot { background: var(--primary); color: var(--on-primary); }
.steps-line .current .dot { background: var(--primary-soft); color: var(--on-primary-soft); outline: 2px solid var(--primary); animation: ring 1.8s ease-out infinite; }
.steps-line.halted .current .dot { outline-color: var(--warn); }
.steps-line .lbl { font-size: .8rem; line-height: 1.2; color: var(--muted); }
.steps-line .done .lbl, .steps-line .current .lbl { color: var(--text); }
.steps-line .current .lbl { font-weight: 700; }
.steps-line small { font-size: .7rem; color: var(--muted); }
.steps-line.compact li { flex-basis: 64px; }
.steps-line.compact .dot { width: 24px; height: 24px; font-size: .7rem; }
.steps-line.compact li::before { top: 11px; }
.steps-line.compact .lbl { font-size: .7rem; }
.dfm-sum { font-weight: 700; margin: 0 0 8px; }
.dfm-sum.ok { color: var(--ok); } .dfm-sum.warn { color: var(--warn); }

/* ---------- account sections ---------- */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; margin: 4px 0 20px; }
.account-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: .72rem; }
.account-tabs .count:empty { display: none; }
.project-list { display: grid; gap: 16px; margin-bottom: 24px; }
.project-list .project { padding: 18px 20px; }
.addr-book .card { margin: 0; }
.addr-head h3 { margin: 0; font-size: 1.05rem; }

/* ---------- dialog ---------- */
.dialog { border: 0; padding: 0; border-radius: 20px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text); box-shadow: var(--e3); }
.dialog::backdrop { background: rgba(10, 20, 14, .45); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in .25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog .addr-form { margin: 0; padding: 22px; background: var(--surface); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h3 { margin: 0; }

/* quote page step bar: sticks under the app bar */
.quote-steps-wrap { position: sticky; top: 64px; z-index: 5; margin: 0 -16px 12px; padding: 4px 16px 6px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.quote-steps-wrap .steps-line { margin: 6px 0 0; }
.quote-steps-wrap .steps-line li:hover .lbl { color: var(--primary); }
.col-side { top: 150px; }
