:root {
  color-scheme: dark;
  --ink: #eff8ff;
  --muted: #93a9bc;
  --navy: #06121f;
  --panel: rgba(9, 26, 44, .88);
  --panel-2: rgba(12, 34, 56, .92);
  --line: rgba(131, 201, 255, .16);
  --blue: #2f8cf4;
  --ice: #83c9ff;
  --orange: #ffb84d;
  --green: #54d997;
  --danger: #ff8b8b;
  --ease-premium: cubic-bezier(.22, .61, .36, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; max-width: 100%; scroll-behavior: smooth; background: var(--navy); }
body {
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 140, 244, .18), transparent 32rem),
    radial-gradient(circle at 90% 42%, rgba(84, 217, 151, .08), transparent 28rem),
    linear-gradient(155deg, #081a2c 0%, #06121f 55%, #040d17 100%);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .3;
  background-image: linear-gradient(rgba(131, 201, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(131, 201, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: .7rem;
  left: .7rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: .8rem 1rem;
  border-radius: .6rem;
  color: #06121f;
  background: #fff;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  text-decoration: none;
}
.brand__logo { display: block; width: 196px; height: auto; filter: brightness(2.35) saturate(1.15) drop-shadow(0 0 12px rgba(47, 140, 244, .22)); }
.brandbar__meta { display: flex; align-items: center; gap: 12px; }
.time-chip, .soundless-control {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bcd3e6;
  background: rgba(5, 17, 29, .58);
  font-size: .77rem;
  font-weight: 650;
}
.time-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.soundless-control { min-height: 44px; cursor: pointer; }
.soundless-control:hover { border-color: rgba(131, 201, 255, .4); color: #fff; }

.calculator-shell { width: min(1580px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 64px; }
.intro { max-width: 870px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 14px;
  color: #69849b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--ice); }
.intro h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.intro h1 em { color: var(--ice); font-style: normal; text-shadow: 0 0 35px rgba(47, 140, 244, .26); }
.intro > p:not(.eyebrow):not(.intro-persistence) { max-width: 760px; margin: 22px 0 0; color: #a8bdcd; font-size: clamp(.95rem, 1.25vw, 1.12rem); line-height: 1.7; }
.intro-start { display: none; }
.intro-persistence { max-width: 760px; margin: 14px 0 0; color: #8fa8ba; font-size: .82rem; line-height: 1.55; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(390px, .66fr); gap: 22px; align-items: stretch; }
body.has-result .workspace { align-items: start; }
.scene-panel, .quiz-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(11, 33, 54, .94), rgba(5, 17, 29, .94));
  box-shadow: 0 28px 85px rgba(0, 5, 12, .35), inset 0 1px rgba(255, 255, 255, .03);
}
.scene-panel { padding: 22px 22px 17px; }
.scene-panel::after, .quiz-panel::before {
  position: absolute;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
.scene-panel::after { width: 280px; height: 280px; right: -140px; top: -140px; background: rgba(47, 140, 244, .09); }
.scene-panel__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 2px 4px 9px; }
.scene-kicker { color: var(--ice); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.scene-panel h2 { margin: 3px 0 0; font-size: 1.28rem; letter-spacing: -.02em; }
.scene-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(84, 217, 151, .2); border-radius: 999px; color: #9fddbc; background: rgba(84, 217, 151, .06); font-size: .75rem; font-weight: 700; }
.scene-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

.scene-wrap {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(131, 201, 255, .12);
  border-radius: 17px;
  background: radial-gradient(circle at 55% 46%, rgba(38, 101, 151, .22), transparent 47%), linear-gradient(180deg, #0a2136, #071724);
  perspective: 900px;
}
.scene-wrap:focus-visible { outline: 3px solid rgba(131, 201, 255, .82); outline-offset: 3px; }
.scene-wrap.is-orbit-ready { cursor: grab; }
.scene-wrap.is-orbit-ready.is-dragging { cursor: grabbing; }
.scene-wrap.is-orbit-ready .floor-scene { touch-action: pan-y; user-select: none; }
.scene-grid {
  position: absolute;
  inset: 48% -20% -38% -20%;
  opacity: .22;
  background-image: linear-gradient(rgba(131, 201, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(131, 201, 255, .18) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotateX(62deg) rotateZ(-1deg);
  transform-origin: 50% 0;
  mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 68%);
}
.floor-scene { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 540px; overflow: visible; }
.scene-layer { opacity: 0; transition: opacity .78s var(--ease-premium); }
.scene-layer.is-visible { opacity: 1; }
#layer-load-preview.is-visible { opacity: .76; pointer-events: none; }
#layer-bearer-reveal.is-visible { opacity: 1; pointer-events: none; }
.cross-bearer-reveal {
  fill: none;
  stroke: #ffc36e;
  stroke-width: 2.15;
  stroke-dasharray: 13 7;
  stroke-linecap: round;
  opacity: .78;
  pointer-events: none;
}
.stair-nosing {
  fill: none;
  stroke: #f5fbff;
  stroke-width: 1.55;
  stroke-linecap: round;
  opacity: .94;
  pointer-events: none;
}
.scene-layer.is-exploded > * { animation: explode-pulse 1.25s var(--ease-premium) both; animation-delay: calc(var(--i, 0) * 45ms); }
.scene-layer path, .scene-layer polygon, .scene-layer line, .scene-layer rect { vector-effect: non-scaling-stroke; }
.scene-solid { transform-box: fill-box; transform-origin: center; }
.scene-solid__top { stroke-linejoin: round; }
.scene-solid__side { stroke-linejoin: bevel; }
.world-texture { pointer-events: none; vector-effect: non-scaling-stroke; }
.scene-wrap[data-pour="armed"] .concrete-rib-wave,
.scene-wrap[data-pour="armed"] .concrete-diaphragm-reveal,
.scene-wrap[data-pour="armed"] .concrete-sheen,
.scene-wrap[data-pour="armed"] .slab-section,
.scene-wrap[data-pour="playing"] .concrete-rib-wave,
.scene-wrap[data-pour="playing"] .concrete-diaphragm-reveal,
.scene-wrap[data-pour="playing"] .concrete-sheen,
.scene-wrap[data-pour="playing"] .slab-section { will-change: opacity, clip-path; }
.scene-wrap[data-pour="armed"] .concrete-rib-wave { opacity: 0; clip-path: inset(100% 0 0 0); }
.scene-wrap[data-pour="armed"] .concrete-diaphragm-reveal { opacity: 0; clip-path: inset(0 100% 0 0); }
.scene-wrap[data-pour="armed"] .concrete-sheen,
.scene-wrap[data-pour="armed"] .slab-section { opacity: 0; }
.scene-wrap[data-pour="playing"] .concrete-rib-wave { animation: concrete-rib-fill .72s var(--ease-premium) both; animation-delay: calc(var(--pour-delay, 0ms) - var(--pour-resume, 0ms)); }
.scene-wrap[data-pour="playing"] .concrete-diaphragm-reveal { animation: concrete-diaphragm-spread 1.18s var(--ease-premium) both; animation-delay: calc(580ms - var(--pour-resume, 0ms)); }
.scene-wrap[data-pour="playing"] .concrete-sheen { animation: concrete-sheen-pass .96s ease-out both; animation-delay: calc(780ms - var(--pour-resume, 0ms)); }
.scene-wrap[data-pour="playing"] .slab-section { animation: section-reveal .58s var(--ease-premium) both; animation-delay: calc(1180ms - var(--pour-resume, 0ms)); }
.scene-wrap[data-pour="complete"] .concrete-rib-wave,
.scene-wrap[data-pour="complete"] .concrete-diaphragm-reveal,
.scene-wrap[data-pour="complete"] .concrete-sheen,
.scene-wrap[data-pour="complete"] .slab-section { opacity: 1; clip-path: none; animation: none; }
.scene-wrap.is-orbit-ready .truss { opacity: 1; animation: none; }
.scene-wrap[data-pour="complete"] .mesh-chair,
.scene-wrap[data-pour="complete"] .mesh-tie-cue { opacity: 0; }
.fireplace-flame { animation: flame-breathe 1.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.truss { opacity: .02; }
.is-visible .truss { animation: truss-reveal .82s var(--ease-premium) forwards; }
.warm-floor-pipe-shadow { filter: drop-shadow(0 2px 2px rgba(24, 5, 3, .5)); }
.warm-floor-pipe-body,
.warm-floor-pipe-highlight,
.warm-floor-crossing-sleeves,
.warm-floor-collector-cue { vector-effect: non-scaling-stroke; }
.warm-floor-pipe-flow { animation: pipe-flow 2.2s linear infinite; }
.warm-floor-protective-mesh { mix-blend-mode: screen; }
.warm-floor-xray { animation: warm-xray-breathe 2.8s ease-in-out infinite alternate; }
.warm-floor-xray-window { filter: drop-shadow(0 0 8px rgba(255, 128, 97, .2)); }
.warm-floor-scene-badge { display: none; }
.section-inset__warm-pipe { filter: drop-shadow(0 0 2px rgba(255, 117, 82, .75)); }
.section-inset { animation: section-card-in .55s var(--ease-premium) both; }
.scan-line { position: absolute; z-index: 2; left: 7%; right: 7%; top: 34%; height: 1px; opacity: .58; background: linear-gradient(90deg, transparent, var(--ice), transparent); box-shadow: 0 0 14px var(--blue); animation: scan 6s var(--ease-premium) infinite; pointer-events: none; }
.scene-tooltip { position: absolute; z-index: 3; left: 17px; bottom: 17px; display: grid; gap: 2px; padding: 9px 12px; border-left: 2px solid var(--orange); border-radius: 2px 9px 9px 2px; background: rgba(3, 13, 22, .82); backdrop-filter: blur(10px); }
.scene-tooltip b { font-size: .78rem; }
.scene-tooltip span { color: var(--muted); font-size: .72rem; }
.scene-orbit {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(131, 201, 255, .2);
  border-radius: 999px;
  background: rgba(3, 13, 22, .84);
  box-shadow: 0 8px 26px rgba(0, 7, 15, .32);
  backdrop-filter: blur(12px);
}
.scene-orbit button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #bfe6ff;
  background: transparent;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
}
.scene-orbit button[data-orbit="left"], .scene-orbit button[data-orbit="right"] { font-size: 1.15rem; }
.scene-orbit button[data-orbit="summary"] { color: #9fddbc; }
.scene-orbit button:hover, .scene-orbit button:focus-visible { outline: 0; color: #fff; background: rgba(47, 140, 244, .25); }
.orbit-hint {
  position: absolute;
  z-index: 4;
  right: 17px;
  top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #95cbed;
  background: rgba(3, 13, 22, .72);
  font-size: .6rem;
  font-weight: 750;
  letter-spacing: .03em;
  pointer-events: none;
}

.assembly-track { padding: 18px 4px 0; overflow: hidden; }
.assembly-track__line { display: block; height: 2px; margin: 0 3% 10px; overflow: hidden; border-radius: 99px; background: rgba(131, 201, 255, .13); }
.assembly-track__line i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--ice)); box-shadow: 0 0 12px var(--blue); transition: width .8s var(--ease-premium); }
.assembly-track ol { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.assembly-track li { position: relative; color: #7890a3; font-size: .57rem; line-height: 1.15; text-align: center; transition: color .45s; }
.assembly-track li::before { display: block; width: 6px; height: 6px; margin: -14px auto 7px; border: 2px solid #173a57; border-radius: 50%; content: ""; background: #0b2134; transition: all .45s; }
.assembly-track li.is-active { color: #cae8fa; }
.assembly-track li.is-active::before { border-color: var(--ice); background: var(--blue); box-shadow: 0 0 11px rgba(47, 140, 244, .8); }
.scene-disclaimer { margin: 13px 0 0; color: #8299aa; font-size: .75rem; line-height: 1.45; text-align: center; }
.inner-support-callout { pointer-events: none; }
.inner-support-callout__leader,
.inner-support-callout__pill,
.inner-support-callout__marker,
.inner-support-callout__marker-halo { vector-effect: non-scaling-stroke; }
#layer-dimensions .inner-support-callout__label { font-size: 13px; letter-spacing: .01em; }

.quiz-panel { min-height: 660px; padding: 26px 28px 24px; }
.quiz-panel::before { display: none; }
.quiz-progress { position: relative; z-index: 2; margin-bottom: 28px; }
.quiz-progress__text { display: flex; justify-content: space-between; margin-bottom: 9px; color: #8fa6b7; font-size: .78rem; font-weight: 750; }
.quiz-progress__text b { color: var(--ice); }
.quiz-progress__meta { display: inline-flex; align-items: center; gap: 10px; }
.quiz-reset {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(131, 201, 255, .16);
  border-radius: 999px;
  color: #91abc0;
  background: rgba(4, 16, 27, .45);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 750;
}
.quiz-reset:hover { color: #fff; border-color: rgba(131, 201, 255, .42); }
.quiz-reset:focus-visible { color: #fff; border-color: rgba(131, 201, 255, .42); outline: 3px solid var(--ice); outline-offset: 3px; }
.quiz-progress__bar { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(131, 201, 255, .1); }
.quiz-progress__bar i { display: block; width: 10%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--ice)); transition: width .65s var(--ease-premium); }

.quiz-step { animation: step-in .55s var(--ease-premium) both; }
.quiz-step fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
@media (min-width: 701px) {
  .quiz-step[data-step="4"] fieldset { padding-bottom: 76px; }
}
.step-index { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--orange); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.step-index::before { width: 19px; height: 1px; content: ""; background: currentColor; }
.quiz-step legend { width: 100%; padding: 0; color: #f3f9ff; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 780; line-height: 1.12; letter-spacing: -.03em; }
.step-lead { margin: 10px 0 20px; color: #91a8ba; font-size: .85rem; line-height: 1.5; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-grid--single { grid-template-columns: 1fr; }
.choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: .01; cursor: pointer; }
.choice-card {
  position: relative;
  display: grid;
  min-height: 69px;
  align-content: center;
  gap: 3px;
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(131, 201, 255, .14);
  border-radius: 12px;
  background: rgba(6, 20, 34, .62);
  transition: border-color .25s, background .25s, transform .25s var(--ease-premium);
}
.choice-card::after { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px; border: 1px solid #3f5b71; border-radius: 50%; content: ""; transform: translateY(-50%); }
.choice input[type="checkbox"] + .choice-card::after { border-radius: 4px; }
.choice-card b { font-size: .82rem; line-height: 1.25; }
.choice-card small { color: #8299ab; font-size: .75rem; line-height: 1.3; }
.quiz-step[data-step="3"] .choice { display: flex; }
.quiz-step[data-step="3"] .choice-card { width: 100%; height: 100%; }
.choice:hover .choice-card { border-color: rgba(131, 201, 255, .38); transform: translateY(-1px); }
.choice input:checked + .choice-card { border-color: var(--blue); background: linear-gradient(135deg, rgba(47, 140, 244, .17), rgba(10, 33, 54, .75)); box-shadow: inset 0 0 0 1px rgba(47, 140, 244, .12), 0 8px 24px rgba(0, 8, 17, .2); }
.choice input:checked + .choice-card::after { border-color: var(--ice); background: var(--blue); box-shadow: inset 0 0 0 4px #0b2134, 0 0 10px rgba(47, 140, 244, .55); }
.choice input[type="checkbox"]:checked + .choice-card::after { box-shadow: inset 0 0 0 3px #0b2134, 0 0 10px rgba(47, 140, 244, .55); }
.choice input:focus-visible + .choice-card { outline: 3px solid rgba(131, 201, 255, .75); outline-offset: 2px; }

.input-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.input-field { display: grid; gap: 7px; }
.input-field--wide { grid-column: 1 / -1; }
.input-field > span { color: #a9bdcb; font-size: .78rem; font-weight: 700; }
.input-field > small { color: #8299ab; font-size: .72rem; line-height: 1.45; }
.input-field.is-disabled > span,
.input-field.is-disabled > small { color: #708696; }
.subquestion { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(131, 201, 255, .1); }
.subquestion__title { display: block; margin-bottom: 9px; color: #b7cad8; font-size: .78rem; font-weight: 760; }
.input-shell { position: relative; }
.input-shell input, .input-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 50px 0 13px;
  border: 1px solid rgba(131, 201, 255, .2);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(4, 16, 27, .75);
}
.input-field textarea { min-height: 82px; padding: 12px 13px; resize: vertical; }
.input-shell input:focus, .input-field textarea:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(47, 140, 244, .15); }
.input-shell input:disabled {
  cursor: not-allowed;
  color: #708696;
  border-color: rgba(131, 201, 255, .1);
  background: rgba(4, 16, 27, .38);
  opacity: .72;
}
.input-shell input:disabled::placeholder { color: #708696; opacity: 1; }
.input-field--wall-block .input-shell input,
.input-field--locality .input-shell input { padding-right: 13px; }
.input-unit { position: absolute; right: 13px; top: 50%; color: #6f899e; font-size: .72rem; transform: translateY(-50%); }
.native-select { width: 100%; min-height: 48px; padding: 0 38px 0 13px; border: 1px solid rgba(131, 201, 255, .2); border-radius: 10px; outline: 0; color: #fff; background: #071827; }
.native-select:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(47, 140, 244, .15); }
.area-output { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 14px; border: 1px solid rgba(84, 217, 151, .16); border-radius: 11px; background: rgba(84, 217, 151, .05); }
.area-output span { color: #89a4b7; font-size: .7rem; }
.area-output b { color: var(--green); font-size: 1.15rem; }
.why-line { display: flex; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border-radius: 9px; color: #92a9ba; background: rgba(131, 201, 255, .045); font-size: .76rem; line-height: 1.48; }
.why-line b { flex: 0 0 auto; color: var(--ice); }
.engineering-warning { margin: 13px 0 0; padding: 10px 12px; border-left: 2px solid var(--orange); border-radius: 0 9px 9px 0; color: #b5c5d0; background: rgba(255, 184, 77, .07); font-size: .76rem; line-height: 1.48; }
.engineering-warning b { color: #ffd38c; }
.choice-scroll-hint { display: none; }

.quiz-live-preview { display: none; }

.quiz-error { min-height: 22px; margin-top: 9px; color: var(--danger); font-size: .78rem; }
.quiz-actions { position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 18px; display: flex; justify-content: space-between; gap: 10px; padding: 9px; border: 1px solid rgba(131, 201, 255, .12); border-radius: 16px; background: rgba(4, 16, 27, .78); box-shadow: 0 12px 32px rgba(0, 7, 15, .24); backdrop-filter: blur(14px); }
body.has-result .quiz-panel { padding-bottom: 56px; }
.button { min-height: 49px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; appearance: none; background-clip: padding-box; cursor: pointer; font-weight: 780; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.button:focus-visible, .soundless-control:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.button:hover { transform: translateY(-1px); }
.button--ghost { color: #8fa7b9; border-color: rgba(131, 201, 255, .15); background: rgba(5, 19, 32, .55); }
.button--ghost:hover:not(:disabled) { color: #eff8ff; border-color: rgba(131, 201, 255, .38); background: rgba(17, 48, 75, .72); }
.button--ghost:disabled { opacity: .35; cursor: default; transform: none; }
.button--primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; color: #fff; background: linear-gradient(135deg, #07529c, #0b63b7 55%, #0f6fc4); box-shadow: 0 12px 28px rgba(11, 99, 183, .28); }
.button--primary svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.button--primary:hover svg { transform: translateX(2px); }

.summary { display: grid; gap: 14px; }
.summary-hero { padding: 16px; border: 1px solid rgba(84, 217, 151, .22); border-radius: 13px; background: linear-gradient(135deg, rgba(84, 217, 151, .11), rgba(47, 140, 244, .08)); }
.summary-hero__status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--green); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.summary-hero__status::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: currentColor; box-shadow: 0 0 10px currentColor; }
.summary-hero h3 { margin: 0; font-size: 1.2rem; }
.summary-hero p { margin: 7px 0 0; color: #a2b7c7; font-size: .8rem; line-height: 1.5; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.summary-item { padding: 10px 11px; border: 1px solid rgba(131, 201, 255, .11); border-radius: 9px; background: rgba(4, 16, 27, .48); }
.summary-item small { display: block; margin-bottom: 4px; color: #8299aa; font-size: .7rem; }
.summary-item b { color: #e7f4fc; font-size: .82rem; line-height: 1.35; }
.finish-controls { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid rgba(84, 217, 151, .18); border-radius: 10px; background: rgba(84, 217, 151, .055); }
.finish-controls .button { justify-self: start; min-height: 44px; }
.finish-controls p { margin: 0; color: #a4b7c5; font-size: .76rem; line-height: 1.5; }
.result-note { margin: 0; padding-left: 12px; border-left: 2px solid var(--orange); color: #a4b7c5; font-size: .76rem; line-height: 1.52; }
.prototype-contact { display: grid; gap: 9px; padding-top: 2px; }
.prototype-contact h3 { margin: 0; font-size: .93rem; }
.prototype-contact p { margin: 0; color: #93a9b9; font-size: .76rem; line-height: 1.48; }
.prototype-contact .crm-handoff-note { padding: 8px 10px; border-left: 2px solid var(--ice); border-radius: 0 8px 8px 0; background: rgba(131, 201, 255, .05); }
.contact-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; }
.contact-row input { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid rgba(131, 201, 255, .18); border-radius: 9px; outline: 0; color: #fff; background: rgba(4, 16, 27, .68); }
.contact-row input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(47, 140, 244, .15); }
.prototype-message { min-height: 18px; color: var(--green); font-size: .7rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; font-size: .78rem; }
.choice input[aria-invalid="true"] + .choice-card,
.input-shell input[aria-invalid="true"],
.native-select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 139, 139, .14); }
.no-js-message { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(255, 184, 77, .3); border-radius: 14px; background: rgba(255, 184, 77, .07); }
.no-js-message h3, .no-js-message p { margin: 0; }
.no-js-message p { color: #b9c8d3; line-height: 1.55; }
.no-js-message .button { justify-self: start; }

/* Contact step with the official Bitrix24 form. The selected project values are
   populated from sessionStorage before the visitor completes the form. */
.crm-preview-mode .calculator-shell { max-width: 1040px; }
.crm-preview-mode .workspace { grid-template-columns: minmax(0, 1fr); }
.crm-preview-mode .quiz-panel { justify-self: center; width: min(100%, 760px); min-height: 0; padding: 28px; }
.crm-preview { display: grid; gap: 14px; }
.crm-preview > h2 { margin: 0; color: #f3f9ff; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.15; }
.crm-preview > p:not(.step-index) { max-width: 760px; margin: 0; color: #a9bdcb; line-height: 1.55; }
.crm-preview__status { padding: 11px 13px; border-left: 2px solid var(--orange); border-radius: 0 9px 9px 0; color: #d9e8f1; background: rgba(255, 184, 77, .08); font-size: .82rem; line-height: 1.48; }
.crm-preview__form { min-height: 420px; padding: 18px; border-radius: 16px; background: #f5f7f9; color: #102331; }
.crm-preview__loading { padding: 24px; color: #49677b; font-size: .9rem; }
.crm-preview__back { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-width: 210px; padding-inline: 20px; text-align: center; }
.crm-preview__form .b24-form { max-width: none !important; }
body.crm-preview-mode .brandbar { width: min(100% - 32px, 1040px); }

@media (max-width: 700px) {
  .crm-preview-mode .quiz-panel { padding: 20px 14px 78px; }
  .crm-preview__form { padding: 8px; }
}

/* The temporary system disappears only after the visitor explicitly opens
   the post-curing view. Fade opacity in place: translating supports would
   break the exact foot/shaft/head/bearer contacts fixed by the painter QA. */
.scene-wrap #layer-shoring,
.scene-wrap .perimeter-formwork--removable,
.scene-wrap .opening-frame,
.scene-wrap .balcony-formwork { transition: opacity .72s var(--ease-premium); }
.scene-wrap[data-finish-phase="striking"] #layer-shoring,
.scene-wrap[data-finish-phase="striking"] .perimeter-formwork--removable,
.scene-wrap[data-finish-phase="striking"] .opening-frame,
.scene-wrap[data-finish-phase="striking"] .balcony-formwork { opacity: 0; pointer-events: none; }

body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; }
body.motion-paused .quiz-step,
body.motion-paused .section-inset,
body.motion-paused .truss { opacity: 1 !important; transform: none !important; animation: none !important; }
body.motion-paused .scene-layer.is-exploded > * { transform: none !important; animation: none !important; }

@keyframes scan { 0%, 100% { transform: translateY(-150px); opacity: 0; } 15%, 70% { opacity: .45; } 55% { transform: translateY(250px); } }
@keyframes truss-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes explode-pulse { 0% { transform: translateY(0); } 45% { transform: translateY(calc(-1px * (8 + var(--i, 0) * 2))); } 100% { transform: none; } }
@keyframes flame-breathe { from { opacity: .72; transform: scale(.9); } to { opacity: 1; transform: scale(1.06); } }
@keyframes concrete-rib-fill { from { opacity: 0; clip-path: inset(100% 0 0 0); } 65% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes concrete-diaphragm-spread { from { opacity: .08; clip-path: inset(0 100% 0 0); } 55% { opacity: .96; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes concrete-sheen-pass { from { opacity: 0; stroke-dasharray: 3 120; stroke-dashoffset: 120; } 35% { opacity: .72; } to { opacity: .42; stroke-dasharray: 120 3; stroke-dashoffset: 0; } }
@keyframes section-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes section-card-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes pipe-flow { to { stroke-dashoffset: -24; } }
@keyframes warm-xray-breathe { from { opacity: .78; } to { opacity: 1; } }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 1fr; }
  .scene-panel { position: relative; }
  .scene-wrap, .floor-scene { min-height: 550px; }
  .quiz-panel { min-height: 620px; overflow: visible; }
  .intro-start { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; padding: 0 17px; border: 1px solid rgba(131, 201, 255, .3); border-radius: 999px; color: #dff4ff; background: rgba(47, 140, 244, .12); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .intro-start span { color: var(--ice); font-size: 1rem; }
  .quiz-live-preview { position: sticky; z-index: 12; top: 8px; display: grid; height: 190px; margin: -12px 0 18px; overflow: hidden; border: 1px solid rgba(131, 201, 255, .2); border-radius: 14px; background: radial-gradient(circle at 55% 45%, rgba(38, 101, 151, .2), transparent 52%), #071827; box-shadow: 0 14px 36px rgba(0, 7, 15, .32); }
  .quiz-live-preview > span { position: absolute; z-index: 2; left: 10px; top: 9px; padding: 5px 8px; border-radius: 999px; color: #9fddbc; background: rgba(3, 13, 22, .82); font-size: .7rem; font-weight: 800; }
  .quiz-live-preview svg { width: 100%; height: 100%; }
  .quiz-live-preview button { position: absolute; z-index: 2; right: 9px; bottom: 9px; min-height: 44px; padding: 0 11px; border: 1px solid rgba(131, 201, 255, .25); border-radius: 999px; color: #c8eaff; background: rgba(3, 13, 22, .84); font-size: .72rem; font-weight: 800; }
}

@media (max-width: 700px) {
  .brandbar, .calculator-shell { width: min(100% - 24px, 1500px); }
  .brandbar { padding: 13px 0; }
  .brand { min-height: 44px; }
  .time-chip { display: none; }
  .brand__logo { width: 172px; max-width: 100%; }
  .soundless-control { min-height: 44px; padding: 0 10px; font-size: .68rem; }
  .calculator-shell { padding: 30px 0 95px; }
  .intro { margin-bottom: 22px; }
  .intro h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .intro > p:not(.eyebrow) { margin-top: 15px; font-size: .9rem; line-height: 1.55; }
  .workspace { gap: 13px; }
  .scene-panel, .quiz-panel { border-radius: 18px; }
  .scene-panel { padding: 14px 12px 11px; }
  .scene-panel__top { align-items: center; }
  .scene-status { max-width: 50%; padding: 6px 8px; font-size: .7rem; }
  .scene-wrap, .floor-scene { min-height: min(44vh, 390px); }
  .scene-tooltip { left: 9px; bottom: 9px; }
  .scene-wrap.is-orbit-ready .scene-tooltip { display: none; }
  #hud-layer { display: none; }
  #layer-dimensions text { font-size: 25px; }
  #layer-rebar .mesh-chair { stroke-width: 2.2px; }
  #layer-rebar .mesh-tie-cue { stroke-width: 2.4px; }
  .scene-wrap[data-warm-review-presentation="html-tooltip"] .load-placement-review-callout[data-object-ids="warm-floor"] { display: none; }
  #layer-dimensions .warm-floor-scene-badge { display: block; }
  #layer-dimensions .warm-floor-scene-badge text { font-size: 16px; }
  #layer-dimensions .inner-support-callout__label { font-size: 22px; }
  #layer-dimensions .area-label { display: none; }
  .scene-orbit { right: 8px; bottom: 8px; }
  .scene-orbit button { min-width: 44px; min-height: 44px; }
  .orbit-hint { right: 8px; top: 8px; }
  .scan-line { animation: none; opacity: .18; }
  .assembly-track { padding-top: 15px; }
  .assembly-track li { font-size: 0; }
  .assembly-track li::before { margin-top: -14px; }
  .scene-disclaimer { font-size: .72rem; }
  .quiz-panel { min-height: 655px; padding: 20px 16px 78px; overflow: visible; }
  .quiz-live-preview { height: 148px; margin: -7px 0 14px; }
  .quiz-live-preview button { min-height: 44px; }
  body.has-result .quiz-live-preview { display: none; }
  body.has-result .quiz-panel { min-height: 0; }
  /* Keep the shared Back control available on narrow result screens.  The
     result summary has its own edit buttons, but the keyboard/touch flow
     still needs the same predictable escape route as every earlier step. */
  body.has-result .quiz-panel { padding-bottom: 112px; }
  .quiz-progress { margin-bottom: 22px; }
  .quiz-reset { min-height: 44px; padding-inline: 12px; }
  .quiz-step legend { font-size: 1.45rem; }
  /* Let the document own vertical scrolling on phones.  A nested 330 px
     scroller hid restored selections after Back and squeezed its “more” hint
     against the last visible card.  Ten compact cards are still a reasonable
     page length and remain visible, searchable and keyboard-accessible. */
  .choice-grid { grid-template-columns: 1fr; max-height: none; overflow: visible; padding: 2px 3px 10px 1px; }
  .choice-scroll-hint { display: none; }
  .choice-scroll-hint.is-hidden { opacity: 0; }
  .choice-card { min-height: 62px; }
  .quiz-step[data-step="3"] .choice-card { min-height: 77px; }
  .input-grid { grid-template-columns: 1fr; }
  .input-field--wide { grid-column: auto; }
  .quiz-actions { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; visibility: hidden; overflow: hidden; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); border-width: 1px 1px 0; border-radius: 18px 18px 0 0; background: rgba(4, 15, 26, .94); backdrop-filter: blur(16px); transform: translateY(105%); transition: transform .35s var(--ease-premium), visibility .35s; }
  body.quiz-in-view .quiz-actions { visibility: visible; transform: none; }
  body.has-result .quiz-actions { display: flex; justify-content: flex-start; visibility: visible; transform: none; }
  body.has-result .quiz-actions #next-step { display: none; }
  .button { min-height: 48px; }
  .quiz-actions > .button--primary { min-width: 0; flex: 1; }
  .result-actions .button--primary { flex: 1 0 100%; min-width: 100%; }
  .result-actions .button { min-height: 48px; }
  .summary-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brandbar__meta .soundless-control { width: 44px; min-width: 44px; overflow: hidden; color: transparent; font-size: 0; }
  .brandbar__meta .soundless-control::after { display: block; color: #bcd3e6; content: "Ⅱ"; font-size: 1rem; line-height: 1; }
  .brandbar__meta .soundless-control[aria-pressed="true"]::after { content: "▶"; font-size: .82rem; }
  .scene-status { display: none; }
  .summary-item { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scan-line { display: none; }
  .concrete-rib-wave, .concrete-diaphragm-reveal, .concrete-sheen, .slab-section, .warm-floor-pipe-flow, .warm-floor-xray, .section-inset, .truss { opacity: 1 !important; clip-path: none !important; animation: none !important; }
}
