/* Layout: Linear-style single column — sticky glass header, 1200px container, hairline-divided sections,
   material swatches as the signature detail, and an iPhone Duo-style vertical glass bar docked bottom-right. */
:root {
  --font: "Inter", "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #f6f6f4;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0ed;
  --surface-3: #e7e7e3;
  --fg: #0f1011;
  --fg-2: #33363b;
  --muted: #5f6268;
  --faint: #8b8e94;
  --line: rgb(15 16 17 / 0.08);
  --line-2: rgb(15 16 17 / 0.15);
  --accent: #b9411b;
  --accent-2: #e0673c;
  --accent-soft: rgb(200 71 31 / 0.10);
  --ok: #1d7f55;
  --ok-soft: rgb(29 127 85 / 0.12);
  --bad: #b8321f;
  --bad-soft: rgb(184 50 31 / 0.10);
  --glow: rgb(224 103 60 / 0.16);
  --grid: rgb(15 16 17 / 0.055);
  --btn-bg: #0f1011;
  --btn-fg: #ffffff;
  --btn-hover: #2a2c30;
  --input-bg: #ffffff;
  --headline-a: #0f1011;
  --headline-b: #5a5d63;

  --glass-bg: rgb(255 255 255 / 0.42);
  --glass-hi: rgb(255 255 255 / 0.9);
  --glass-lo: rgb(15 16 17 / 0.06);
  --glass-edge: rgb(15 16 17 / 0.10);
  --glass-shadow: 0 12px 32px -10px rgb(15 16 17 / 0.30), 0 2px 6px rgb(15 16 17 / 0.08);

  --logo-ink: #132e57;
  --logo-gold: #b8913f;

  --c-cement: #8b93a1;
  --c-sand: #d2a85f;
  --c-grit: #66768a;
  --c-steel: #3c6cb0;
  --c-brick: #c2552f;
  --c-labour: #8467c9;
  --c-finish: #2b977a;
  --c-cont: #a7a9ad;
  --c-overhead: #c08a2e;
  --c-gst: #5f6b7a;
  --mortar: #e9dfd0;
  --soil: #d9cbb3;
  --soil-line: rgb(110 85 50 / 0.22);
  --concrete: #b3b8c0;
  --concrete-2: #9aa0aa;
  --plaster: #efe9de;
  --glass-window: #bcd3e6;

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 60px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.4, 1);
  interpolate-size: allow-keywords;
}

/* Dark theme: only when the visitor taps the theme toggle. The site opens in light mode. */
:root[data-theme="dark"] {
  --bg: #08090a; --bg-elev: #0e0f11; --surface: #101113; --surface-2: #16171a; --surface-3: #1e1f23;
  --fg: #f7f8f8; --fg-2: #d0d6e0; --muted: #8a8f98; --faint: #62666d;
  --line: rgb(255 255 255 / 0.07); --line-2: rgb(255 255 255 / 0.13);
  --accent: #f07a4a; --accent-2: #ff9b6c; --accent-soft: rgb(240 122 74 / 0.13);
  --ok: #4cc38a; --ok-soft: rgb(76 195 138 / 0.13); --bad: #f0745e; --bad-soft: rgb(240 116 94 / 0.13);
  --glow: rgb(240 122 74 / 0.17); --grid: rgb(255 255 255 / 0.045);
  --btn-bg: #f7f8f8; --btn-fg: #08090a; --btn-hover: #d9dbde; --input-bg: #0c0d0f;
  --headline-a: #f7f8f8; --headline-b: #9298a3;
  --glass-bg: rgb(36 37 42 / 0.42); --glass-hi: rgb(255 255 255 / 0.16); --glass-lo: rgb(0 0 0 / 0.35);
  --glass-edge: rgb(255 255 255 / 0.10); --glass-shadow: 0 14px 36px -10px rgb(0 0 0 / 0.75), 0 2px 8px rgb(0 0 0 / 0.45);
  --c-cement: #9ca5b4; --c-sand: #dcb878; --c-grit: #8193a8; --c-steel: #5e92da; --c-brick: #e2714a;
  --c-labour: #a28ae0; --c-finish: #3fbf9b; --c-cont: #6c7077; --c-overhead: #e0a94a; --c-gst: #8d99a8;
  --logo-ink: #f7f4ec; --logo-gold: #d4b06a;
  --mortar: #3a3430; --soil: #2c261e; --soil-line: rgb(220 190 150 / 0.12);
  --concrete: #5f646d; --concrete-2: #767c86; --plaster: #c9c1b2; --glass-window: #3d5468;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, .prose a:hover, .link:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap-narrow { max-width: 860px; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 15.5px; white-space: nowrap; }
.brand-mark { height: 30px; width: auto; aspect-ratio: 100 / 109.9; flex: none; margin-top: -2px; }
.brand-mark .logo-ink { fill: var(--logo-ink); transition: fill .3s; }
.brand-mark .logo-gold { fill: var(--logo-gold); transition: fill .3s; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }
.hide-sm { display: inline-flex; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 1px 2px rgb(0 0 0 / .12); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--muted); padding: 0 10px; }
.btn-quiet:hover { color: var(--fg); background: var(--surface-2); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { --h: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ── Typography helpers ───────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--muted); letter-spacing: 0.01em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.h1 { font-size: clamp(40px, 7.2vw, 78px); letter-spacing: -0.042em; line-height: 1.02; font-weight: 620; }
.h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.035em; line-height: 1.06; font-weight: 610; }
.h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.02em; line-height: 1.25; font-weight: 590; }
.gradient-text {
  background: linear-gradient(180deg, var(--headline-a) 30%, var(--headline-b) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.hindi { font-family: "Noto Sans Devanagari", var(--font); color: var(--faint); font-size: 13px; font-weight: 500; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); }

/* ── Sections ─────────────────────────────────────── */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; }
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px); position: relative; }
.page-hero .h1 { font-size: clamp(36px, 6vw, 64px); }
.page-hero .lead { margin-top: 18px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 -40% 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 55% at 20% 0%, var(--glow), transparent 70%);
}

/* ── Page router ──────────────────────────────────── */
.page { animation: page-in .38s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main { min-height: 60vh; }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 45% at 50% 0%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 85% 15%, rgb(60 108 176 / .10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero-copy { display: grid; justify-items: start; gap: 22px; max-width: 860px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 13px; color: var(--fg-2); font-weight: 500; transition: border-color .2s, background-color .2s;
}
.pill:hover { border-color: var(--accent); }
.pill-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; color: var(--faint); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--ok); }

/* App window (hero visual) */
.app-stage { margin-top: clamp(40px, 6vw, 72px); perspective: 2200px; }
.app-window {
  border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .35), 0 0 0 1px rgb(255 255 255 / .02) inset;
  transform: rotateX(10deg) scale(.98); transform-origin: 50% 0;
  animation: tilt-in 1.1s var(--ease) .15s both;
}
@keyframes tilt-in { from { transform: rotateX(22deg) translateY(30px) scale(.96); opacity: .4; } to { transform: rotateX(10deg) scale(.98); opacity: 1; } }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.app-bar .crumb { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; }
.app-bar .crumb b { color: var(--fg); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 550; white-space: nowrap; }
.app-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-soft); }
.app-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 380px; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; font-size: 13.5px; }
.app-side .side-h { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 6px; font-weight: 600; }
.side-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--fg-2); }
.side-row:nth-child(2) { background: var(--surface-2); color: var(--fg); }
.side-row .sw { width: 12px; height: 12px; border-radius: 3px; }
.side-row .v { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.app-main { padding: clamp(18px, 3vw, 28px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.kpi .k { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: clamp(20px, 2.6vw, 28px); font-weight: 620; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.kpi .s { font-size: 12px; color: var(--faint); }
.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th { text-align: left; font-weight: 500; color: var(--faint); padding: 0 0 8px; font-size: 12px; }
.app-table td { padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.app-table td:last-child, .app-table th:last-child { text-align: right; }
.app-table td:first-child { display: flex; align-items: center; gap: 8px; }

/* Stacked bar */
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stack span { display: block; height: 100%; min-width: 2px; transition: flex-grow .6s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ── Material swatches (signature detail) ─────────── */
.swatch { border-radius: 10px; position: relative; overflow: hidden; }
.sw-cement { background: radial-gradient(120% 90% at 20% 10%, rgb(255 255 255 / .28), transparent 55%), radial-gradient(rgb(0 0 0 / .08) 0.6px, transparent 1px) 0 0 / 4px 4px, var(--c-cement); }
.sw-sand { background-color: var(--c-sand); background-image: radial-gradient(rgb(110 70 20 / .38) 0.7px, transparent 1.1px), radial-gradient(rgb(255 255 255 / .45) 0.6px, transparent 1px), radial-gradient(rgb(80 50 10 / .25) 0.9px, transparent 1.3px); background-size: 5px 5px, 7px 7px, 11px 11px; background-position: 0 0, 3px 2px, 5px 7px; }
.sw-grit { background-color: var(--c-grit); background-image: radial-gradient(circle at 30% 30%, rgb(255 255 255 / .35) 0 2.2px, transparent 3px), radial-gradient(circle at 70% 60%, rgb(0 0 0 / .28) 0 3px, transparent 3.8px), radial-gradient(circle at 50% 50%, rgb(255 255 255 / .18) 0 4px, transparent 4.8px); background-size: 14px 14px, 18px 18px, 23px 23px; background-position: 0 0, 6px 4px, 11px 9px; }
.sw-brick { background-color: var(--c-brick); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.28' stroke-width='1.6'%3E%3Cpath d='M0 0.8H40M0 10.8H40M20 0.8V10.8M0 10.8V20M40 10.8V20'/%3E%3C/g%3E%3C/svg%3E"); background-size: 40px 20px; }
.sw-steel { background-color: #2f3a4a; background-image: repeating-linear-gradient(60deg, rgb(255 255 255 / .16) 0 1.2px, transparent 1.2px 6px), repeating-linear-gradient(90deg, var(--c-steel) 0 12px, #1f2733 12px 18px); }
.sw-labour { background: var(--c-labour); }
.sw-finish { background: var(--c-finish); }
.sw-cont { background: var(--c-cont); }

/* ── Materials grid (home) ────────────────────────── */
.mat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mat-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 12px 18px;
  display: grid; gap: 14px; align-content: start; transition: border-color .25s, transform .25s var(--ease);
}
.mat-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mat-card .swatch { height: 96px; }
.mat-card h3 { font-size: 16px; font-weight: 590; letter-spacing: -0.015em; }
.mat-card .rate { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--fg-2); }
.mat-card .rate b { font-weight: 620; color: var(--fg); font-size: 17px; letter-spacing: -0.02em; }
.mat-card p { font-size: 13.5px; color: var(--muted); }
.mat-card .body { display: grid; gap: 6px; padding-inline: 4px; }

/* ── Build process ────────────────────────────────── */
.build { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.build-canvas {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  padding: 16px; overflow: hidden;
}
.build-canvas svg { display: block; width: 100%; height: auto; }
.build-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 6px 0; font-size: 13px; color: var(--muted); }
.build-caption b { color: var(--fg); font-weight: 560; }
.build-progress { height: 3px; border-radius: 3px; background: var(--surface-3); margin: 10px 6px 4px; overflow: hidden; }
.build-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.layer { opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); transform-box: fill-box; }
.layer.on { opacity: 1; transform: none; }
.layer.current .hl { stroke: var(--accent); stroke-width: 2; }
.steps { display: grid; gap: 8px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: 14px; background: transparent; padding: 14px 16px; cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.step:hover { background: var(--surface); }
.step[aria-pressed="true"] { background: var(--surface); border-color: var(--line-2); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.step .n {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.step[aria-pressed="true"] .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done .n { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.step h3 { font-size: 15.5px; font-weight: 590; letter-spacing: -0.015em; }
.step p { font-size: 13.5px; color: var(--muted); }
.step .chips { grid-column: 2; display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.step[aria-pressed="true"] .chips { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 2px; }
.build-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ── Buildings ────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { grid-column: span 2; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { font-size: 17px; font-weight: 590; letter-spacing: -0.018em; }
.tile p { color: var(--muted); font-size: 14px; }
.tile .mix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ── Rates board ──────────────────────────────────── */
.rates-board { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rate-row { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.rate-row:first-child { border-top: 0; }
.rate-row .swatch { width: 40px; height: 40px; border-radius: 9px; }
.rate-row .nm { display: grid; gap: 1px; min-width: 0; }
.rate-row .nm b { font-weight: 570; font-size: 15px; letter-spacing: -0.012em; }
.rate-row .nm span { color: var(--faint); font-size: 12.5px; }
.rate-row .price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-row .price b { font-size: 17px; font-weight: 620; letter-spacing: -0.02em; }
.rate-row .price small { color: var(--faint); font-size: 12.5px; }
.range { display: grid; gap: 6px; min-width: 0; }
.range-track { position: relative; height: 6px; border-radius: 6px; background: var(--surface-3); }
.range-track i { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.range-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.board-links { display: inline-flex; gap: 16px; }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); }

/* ── Full rates table ─────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.table th { text-align: left; font-weight: 550; font-size: 12.5px; color: var(--faint); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.group td { background: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-block: 9px; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .item { display: flex; gap: 12px; align-items: center; }
.table .item .swatch { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.table .item b { font-weight: 560; display: block; }
.table .item span { font-size: 12.5px; color: var(--faint); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.fact b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 13px; }

/* ── CTA band ─────────────────────────────────────── */
.cta {
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(80% 120% at 100% 0%, var(--glow), transparent 60%), var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.cta .h2 { font-size: clamp(26px, 3.6vw, 40px); }
.cta p { margin-top: 12px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(88px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 12px; letter-spacing: -0.005em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); transition: color .2s; }
.footer-grid a:hover { color: var(--fg); }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 36ch; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: 13px; }

/* ── Forms ────────────────────────────────────────── */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 550; color: var(--fg-2); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field .err { font-size: 12.5px; color: var(--bad); display: none; }
.field.invalid .err { display: block; }
.field.invalid .input { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input-bg);
  color: var(--fg); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8e94' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover { border-color: color-mix(in srgb, var(--fg) 25%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-group .seg { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; flex: none; }
.input-group .seg button { flex: none; padding: 0 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--fg); background: var(--surface-2); }
.pw-toggle svg { width: 17px; height: 17px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); min-width: 0; }
.seg button {
  flex: 1 1 0; min-width: 0; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px var(--line); }
.seg.block { display: flex; width: 100%; }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .3s var(--spring); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ── Estimator ────────────────────────────────────── */
.est { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(18px, 2.4vw, 24px); }
.est-inputs { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 20px); display: grid; gap: 20px; }
.est-inputs .panel-title { display: flex; justify-content: space-between; align-items: center; }
.est-inputs .q-blurb { font-size: 12.5px; color: var(--faint); margin-top: -4px; }
.est-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; } /* wide tables scroll inside their panel */
.total-card { display: grid; gap: 18px; }
.total-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.total-label { font-size: 13.5px; color: var(--muted); }
.total-value { font-size: clamp(38px, 6vw, 60px); font-weight: 640; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.total-sub { color: var(--muted); font-size: 14px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.total-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); min-width: 0; }
.mini-stats span { display: block; font-size: 12px; color: var(--faint); }
.mini-stats b { font-size: 16px; font-weight: 610; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qty-table th { text-align: left; font-size: 12.5px; color: var(--faint); font-weight: 550; padding: 0 8px 10px 0; }
.qty-table td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.qty-table td:last-child, .qty-table th:last-child { text-align: right; padding-right: 0; }
.qty-table .mat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qty-table .mat .swatch { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.qty-table .mat small { display: block; color: var(--faint); font-size: 12px; }
.rate-input { width: 84px; height: 32px; padding: 0 8px; font-size: 13.5px; text-align: right; border-radius: 8px; }
.qty-table tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); }
.est-note { display: flex; gap: 8px; align-items: flex-start; color: var(--bad); font-size: 13.5px; line-height: 1.5; margin: 0; text-wrap: pretty; }
.est-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.est-note b { font-weight: 650; }
.est-note.small { font-size: 12.5px; }
.est-note.center { justify-content: center; text-align: center; margin-top: 14px; }
.basis-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.basis-row .field { flex: 1 1 300px; min-width: 0; }
.basis-row > .btn { flex: none; }
.mk-open { justify-self: start; margin: -4px 0 -2px -10px; }
.market-dialog {
  width: min(540px, calc(100vw - 24px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; margin: auto;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--fg);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / .45); overflow: hidden;
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .2s ease, transform .32s var(--spring), overlay .32s allow-discrete, display .32s allow-discrete;
}
.market-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 1; transform: none; }
@starting-style { .market-dialog[open] { opacity: 0; transform: translateY(10px) scale(.97); } }
.market-dialog::backdrop { background: rgb(0 0 0 / .36); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.mk-head h2 { font-size: 19px; letter-spacing: -0.02em; }
.mk-list { overflow: auto; padding: 0 20px; overscroll-behavior: contain; }
.mk-group { padding: 14px 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mk-group + .mk-row { border-top: 0; }
.mk-row .swatch { width: 30px; height: 30px; border-radius: 7px; }
.mk-row b { display: block; font-weight: 560; font-size: 14.5px; letter-spacing: -0.01em; }
.mk-row small { display: block; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mk-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-price b { font-size: 16px; font-weight: 640; }
.mk-price small { font-size: 12px; }
.mk-ours { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 550; color: var(--fg-2); }
.mk-ours.below { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.mk-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
html[data-page="admin"] .quickbar { display: none; } /* staff page: keep the rate boxes clear */
.adm-market { display: grid; gap: 10px; margin-bottom: 14px; }
.adm-links { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 550; color: var(--fg-2); }
.adm-links a:hover { background: var(--surface-2); color: var(--fg); }
.adm-links svg { width: 13px; height: 13px; color: var(--faint); }
.company-opts { display: grid; gap: 18px; padding: 16px; margin-top: -6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.company-opts[hidden] { display: none; }
.assumptions { font-size: 13px; color: var(--muted); display: grid; gap: 6px; padding-left: 18px; margin: 0; }

/* ── Content / prose ──────────────────────────────── */
.prose { max-width: 72ch; color: var(--fg-2); }
.prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.02em; color: var(--fg); }
.prose h3 { font-size: 17px; margin: 26px 0 8px; color: var(--fg); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 4px; font-size: 13.5px; }
.toc a { color: var(--muted); padding: 4px 0; }
.toc a:hover { color: var(--fg); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.value { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.value h3 { font-size: 16px; }
.value p { color: var(--muted); font-size: 14px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow .value .n { font-size: 12.5px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.info-list { display: grid; gap: 0; }
.info-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.info-item:first-child { border-top: 0; padding-top: 0; }
.info-item .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-2); }
.info-item .ico svg { width: 17px; height: 17px; }
.info-item .t { font-size: 12.5px; color: var(--faint); }
.info-item .v { font-weight: 550; user-select: all; -webkit-user-select: all; overflow-wrap: break-word; }
.success { display: grid; gap: 14px; justify-items: start; }
.success .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.success .badge svg { width: 22px; height: 22px; }
.preview-msg { white-space: pre-wrap; font-size: 13.5px; color: var(--fg-2); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; width: 100%; max-height: 220px; overflow: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 560; font-size: 16.5px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background-color .2s; color: var(--muted); }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--surface-2); }
.faq .ans { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Sitemap */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sitemap section { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 22px; }
.sitemap h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 12px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.sitemap li a { display: grid; gap: 2px; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; transition: background-color .2s; }
.sitemap li a:hover { background: var(--surface-2); }
.sitemap li b { font-weight: 560; }
.sitemap li span { font-size: 13px; color: var(--muted); }

/* ── Auth ─────────────────────────────────────────── */
.auth-shell { display: grid; place-items: center; padding-block: clamp(40px, 7vw, 88px) 40px; position: relative; isolation: isolate; }
.auth-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 40% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 20px; }
.auth-card .brand-mark { height: 56px; }
.auth-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.auth-head h1 { font-size: 26px; letter-spacing: -0.03em; }
.auth-box { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; display: grid; gap: 16px; box-shadow: 0 20px 50px -30px rgb(0 0 0 / .4); }
.auth-form { display: grid; gap: 14px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); }
.btn-google { background: var(--surface); border-color: var(--line-2); color: var(--fg); }
.btn-google:hover { background: var(--surface-2); }
.google-slot { min-height: 44px; display: grid; }
.notice { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 13.5px; color: var(--fg-2); display: grid; gap: 10px; }
.notice b { color: var(--fg); }
.notice ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.form-msg { font-size: 13.5px; border-radius: 10px; padding: 10px 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: var(--bad-soft); color: var(--bad); }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 52px; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; border-radius: 12px; }
.shield { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-inline: auto; }
.shield svg { width: 22px; height: 22px; }
.demo-hint { text-align: center; font-size: 12.5px; color: var(--faint); }
.demo-hint code { font-family: var(--mono); font-size: 12px; color: var(--fg-2); user-select: all; -webkit-user-select: all; }
.strength { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .3s, background-color .3s; }

/* Account */
.acct { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: 20px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.status.on { background: var(--ok-soft); color: var(--ok); }
.status.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.est-list { display: grid; gap: 8px; }
.est-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.est-item b { font-variant-numeric: tabular-nums; }
.est-item .meta { font-size: 13px; color: var(--muted); }
.empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 28px 20px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.qr-box { width: 184px; height: 184px; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; }
.secret { font-family: var(--mono); font-size: 13.5px; letter-spacing: .06em; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.setup-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 14px; }
.codes span { padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); text-align: center; user-select: all; -webkit-user-select: all; }

/* ── Live rates ───────────────────────────────────── */
.live-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--ok-soft); }
.chg { display: block; font-size: 11.5px; font-weight: 550; color: var(--faint); font-variant-numeric: tabular-nums; }
.chg.up { color: var(--bad); }
.chg.down { color: var(--ok); }

/* ── Rates admin ──────────────────────────────────── */
.adm-hero .h1 { font-size: clamp(32px, 5vw, 52px); }
.adm-wrap { padding-bottom: clamp(48px, 8vw, 96px); }
.adm { max-width: 860px; }
.adm-card { max-width: 460px; display: grid; gap: 16px; }
.adm-card .shield { margin-inline: 0; }
.adm-head { display: grid; gap: 8px; }
.adm-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.adm-steps .kbd, .adm-card .kbd { overflow-wrap: anywhere; }
.adm-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 0; margin-bottom: 12px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.adm-bar-text { display: grid; gap: 2px; min-width: 0; }
.adm-bar-text b { font-size: 16px; letter-spacing: -0.015em; }
.adm-actions { display: flex; gap: 8px; align-items: center; }
.adm-list { padding: 6px clamp(14px, 2.4vw, 22px); }
.adm-cols, .adm-row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 96px 96px; gap: 10px 12px; align-items: center; }
.adm-cols { padding: 10px 0; font-size: 12px; color: var(--faint); font-weight: 550; }
.adm-group { padding: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.adm-row { padding: 10px 0; border-top: 1px solid var(--line); }
.adm-group + .adm-row { border-top: 0; }
.adm-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-name .swatch { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.adm-name b { display: block; font-weight: 560; font-size: 14.5px; letter-spacing: -0.01em; }
.adm-name small { display: block; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.adm-f { display: grid; gap: 4px; min-width: 0; }
.adm-f > span { display: none; font-size: 12px; color: var(--faint); font-weight: 550; }
.adm-f .input { height: 40px; text-align: right; font-variant-numeric: tabular-nums; padding: 0 10px; }
.adm-f.rate .input { font-weight: 620; font-size: 16px; }
.adm-row.changed .adm-f.rate .input { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-row.invalid .input:invalid, .adm-row .input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.adm-foot { margin: 12px 2px 20px; }
.adm-pwbox { padding: 0; }
.adm-pwbox summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(14px, 2.4vw, 22px); font-weight: 560; }
.adm-pwbox summary::-webkit-details-marker { display: none; }
.adm-pwbox summary .pm { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease); }
.adm-pwbox summary .pm svg { width: 14px; height: 14px; }
.adm-pwbox[open] summary .pm { transform: rotate(45deg); }
.adm-pwbox form { padding: 0 clamp(14px, 2.4vw, 22px) 20px; max-width: 420px; }

/* ── Mobile menu dialog ───────────────────────────── */
.menu-dialog {
  position: fixed; inset: auto; margin: 0;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) - 4px);
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px) - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  color: var(--fg); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .04) inset;
  overflow: auto;
  opacity: 0; transform: translateY(-8px) scale(.95); transform-origin: top right;
  transition: opacity .2s ease, transform .32s var(--spring), overlay .32s allow-discrete, display .32s allow-discrete;
}
.menu-dialog[open] { opacity: 1; transform: none; }
.menu-dialog:focus, .market-dialog:focus { outline: none; } /* the card takes focus on open; only Tab shows rings */
@starting-style { .menu-dialog[open] { opacity: 0; transform: translateY(-8px) scale(.95); } }
.menu-dialog::backdrop { background: rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .3s, backdrop-filter .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
.menu-dialog[open]::backdrop { background: rgb(0 0 0 / .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@starting-style { .menu-dialog[open]::backdrop { background: rgb(0 0 0 / 0); } }
.menu-inner { padding: 8px; display: grid; gap: 2px; }
.menu-inner a.m-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 11px; font-weight: 520; font-size: 15px; color: var(--fg-2); }
.menu-inner a.m-link:hover, .menu-inner a.m-link:focus-visible { background: var(--surface-2); color: var(--fg); }
.menu-inner a.m-link[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.menu-inner a.m-link svg { width: 16px; height: 16px; color: var(--faint); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 4px; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; font-size: 12.5px; color: var(--faint); font-weight: 550; }

/* ── iPhone Duo-style vertical glass bar ──────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0.5px var(--glass-hi), inset 0 -1px 1px var(--glass-lo), var(--glass-shadow);
}
.quickbar {
  position: fixed; z-index: 45;
  right: calc(max(14px, env(safe-area-inset-right, 0px)));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 5px; border-radius: 30px;
  transition: opacity .3s, transform .45s var(--spring), padding .35s var(--ease), gap .35s var(--ease);
}
.quickbar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgb(255 255 255 / .35), transparent 38%, transparent 70%, rgb(255 255 255 / .10));
  mix-blend-mode: overlay; opacity: .7;
}
.qb-btn {
  position: relative; width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--fg); cursor: pointer;
  transition: background-color .2s, transform .3s var(--spring), max-height .35s var(--ease), opacity .25s, margin .35s var(--ease);
  max-height: 46px; overflow: visible;
}
.qb-btn svg { width: 21px; height: 21px; }
.qb-btn:hover { background: rgb(127 127 127 / .14); }
.qb-btn:active { transform: scale(.9); }
.qb-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px var(--accent), inset 0 1px 0 rgb(255 255 255 / .35); }
.qb-primary:hover { background: var(--accent-2); }
:root[data-theme="dark"] .qb-primary { color: #1b0c05; }
.qb-sep { width: 22px; height: 1px; background: var(--line-2); transition: opacity .25s, margin .35s; }
.qb-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 550; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); transition: opacity .2s, transform .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .qb-btn:hover .qb-tip, .qb-btn:focus-visible .qb-tip { opacity: 1; transform: translate(0, -50%); }
}
.quickbar .collapsible { overflow: hidden; }
.quickbar.is-compact { gap: 0; }
.quickbar.is-compact .collapsible { max-height: 0; opacity: 0; pointer-events: none; }
.quickbar.is-compact .qb-sep { opacity: 0; margin: -2px 0; }
.quickbar.is-hidden { opacity: 0; transform: scale(.85) translateY(10px); pointer-events: none; }
.qb-top[hidden] { display: none; }
@media (max-width: 960px) {
  .quickbar.is-typing { opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; }
}

.quick-panel {
  position: fixed; z-index: 46;
  right: calc(max(14px, env(safe-area-inset-right, 0px)));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(372px, calc(100vw - 28px));
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 90px);
  overflow: auto; border-radius: 28px; padding: 18px; display: grid; gap: 16px;
  --glass-bg: color-mix(in srgb, var(--surface) 72%, transparent);
  transform-origin: 100% 100%;
}
.quick-panel.anim-in { animation: qp-in .42s var(--spring) both; }
.quick-panel.anim-out { animation: qp-out .22s ease both; }
@keyframes qp-in { from { opacity: 0; transform: scale(.25); border-radius: 40px; } to { opacity: 1; transform: none; } }
@keyframes qp-out { to { opacity: 0; transform: scale(.4); } }
.qp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qp-head h2 { font-size: 16px; letter-spacing: -0.015em; }
.qp-head p { font-size: 12.5px; color: var(--muted); }
.qp-close { width: 32px; height: 32px; border-radius: 16px; border: 0; background: rgb(127 127 127 / .16); color: var(--fg); display: grid; place-items: center; cursor: pointer; flex: none; }
.qp-close svg { width: 15px; height: 15px; }
.qp-total { border-radius: 18px; padding: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); display: grid; gap: 4px; }
.qp-total .v { font-size: 34px; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.qp-total .s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quick-panel .field { gap: 6px; }
.quick-panel .seg { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ── Toast ────────────────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 10px 14px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-fg); font-size: 14px; font-weight: 520; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); animation: toast-in .35s var(--spring) both; }
.toast.out { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ── Theme transitions ────────────────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-old(root) { z-index: 1; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
html.vt-morph::view-transition-old(root), html.vt-morph::view-transition-new(root) { animation: none; }
::view-transition-group(quick) { animation-duration: .46s; animation-timing-function: cubic-bezier(.3, 1.2, .4, 1); }
::view-transition-old(quick), ::view-transition-new(quick) { height: 100%; animation-duration: .3s; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1080px) {
  .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav, .hide-md { display: none; }
  .menu-btn { display: inline-grid; }
  .build { grid-template-columns: minmax(0, 1fr); }
  .build-canvas { position: relative; top: 0; }
  .est { grid-template-columns: minmax(0, 1fr); }
  .est-inputs { position: static; }
  .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide { grid-column: span 1; }
  .two-col, .contact-grid, .acct { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none !important; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mat-card .swatch { height: 72px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .rate-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .rate-row .swatch { width: 36px; height: 36px; }
  .rate-row .range { grid-column: 2 / -1; grid-row: 2; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .app-window { transform: none; animation: none; }
  .app-table .hide-xs { display: none; }
  .app-bar .crumb .crumb-root { display: none; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sitemap, .values, .flow, .facts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .setup-grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .qty-table .hide-xs { display: none; }
  .rate-input { width: 70px; }
  .header-row { gap: 10px; }
  .brand { font-size: 15px; gap: 8px; }
  .otp { gap: 6px; }
  .otp input { height: 48px; font-size: 20px; }
  .adm-cols { display: none; }
  .adm-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 14px 0; }
  .adm-name { grid-column: 1 / -1; }
  .adm-f > span { display: block; }
  .adm-group + .adm-row { padding-top: 6px; }
}
@media (max-width: 380px) {
  .mat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* iPhone and iPad Safari zoom into any text box under 16px and stay zoomed after you tap away.
   16px boxes on touch screens stop that, and pinch-zoom still works (no maximum-scale hack). */
@media (pointer: coarse), (max-width: 640px) {
  .input, .rate-input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .app-window { transform: none; }
}

/* ── Additions: utilities, extra swatches, build drawing ─────────── */
[hidden] { display: none !important; }
.sw-dust { background-color: #a9a9a3; background-image: radial-gradient(rgb(0 0 0 / .22) 0.6px, transparent 1px), radial-gradient(rgb(255 255 255 / .35) 0.5px, transparent 1px); background-size: 4px 4px, 6px 6px; background-position: 0 0, 2px 1px; }
.sw-flyash { background-color: #9b9a94; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='1.6'%3E%3Cpath d='M0 0.8H40M0 10.8H40M20 0.8V10.8M0 10.8V20M40 10.8V20'/%3E%3C/g%3E%3C/svg%3E"); background-size: 40px 20px; }
.sw-aac { background-color: #d9d8d2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M0 0.7H64M0 12.7H64M32 0.7V12.7M0 12.7V24M64 12.7V24'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(rgb(0 0 0 / .08) 0.8px, transparent 1.2px); background-size: 64px 24px, 5px 5px; }
.chip i, .legend i { flex: none; }
.side-row .sw { display: block; }
.value > .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); }
.value > .ico svg { width: 18px; height: 18px; }

#build-svg .s-soil { fill: var(--soil); }
#build-svg .s-hatch { stroke: var(--soil-line); }
#build-svg .s-ground { stroke: var(--line-2); }
#build-svg .s-ghost { stroke: var(--faint); opacity: .55; }
#build-svg .s-text { fill: var(--faint); font-family: var(--mono); font-size: 11px; }
#build-svg .s-pit { fill: color-mix(in srgb, var(--soil) 55%, var(--bg)); stroke: var(--faint); stroke-dasharray: 4 3; stroke-width: 1.2; }
#build-svg .s-concrete, #build-svg .s-concrete rect, #build-svg .s-concrete polygon { fill: var(--concrete); }
#build-svg .s-concrete2 { fill: var(--concrete-2); }
#build-svg .s-steel { stroke: var(--c-steel); fill: none; }
#build-svg .s-brick { fill: var(--c-brick); }
#build-svg .s-mortar { stroke: var(--mortar); }
#build-svg .s-dpc { fill: var(--fg-2); opacity: .55; }
#build-svg .s-open { fill: var(--bg-elev); }
#build-svg .s-parapet { fill: var(--plaster); }
#build-svg .s-coping { fill: var(--concrete-2); }
#build-svg .s-plaster { fill: var(--plaster); }
#build-svg .s-plinth { fill: var(--concrete-2); }
#build-svg .s-wood { fill: #8a5a3b; }
#build-svg .s-knob { fill: #e4c27a; }
#build-svg .s-glass { fill: var(--glass-window); }
#build-svg .s-frame { stroke: #f3f1ec; }
#build-svg .s-sill { fill: var(--concrete-2); }
#build-svg .s-step { fill: var(--concrete); }
#build-svg .layer.current .hl { stroke: var(--accent); stroke-width: 2.2; }
.quick-panel:focus { outline: none; }
