:root {
  color-scheme: dark;
  --bg: #05090b;
  --surface: #091115;
  --surface-2: #0d171b;
  --surface-3: #111d21;
  --surface-4: #17262b;
  --line: #22343b;
  --line-2: #38515a;
  --text: #eef6f2;
  --muted: #8da0a5;
  --acid: #d8ff3e;
  --acid-soft: #d8ff3e16;
  --teal: #52e5d0;
  --orange: #ffad5c;
  --purple: #ae8cff;
  --red: #ff7479;
  --blue: #6eb0ff;
  --shadow: 0 32px 100px #000a;
  font-family: Inter, "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: linear-gradient(#24373e20 1px, transparent 1px), linear-gradient(90deg, #24373e20 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(#000, transparent 90%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 76px;
  padding: 0 clamp(18px, 3vw, 50px);
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  background: #05090bf0;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; letter-spacing: .12em; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand b { font-size: 13px; }
.brand small { color: var(--acid); font: 700 8px ui-monospace, monospace; letter-spacing: .22em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--acid); color: var(--acid); font-weight: 900; box-shadow: 0 0 28px #d8ff3e22; }
.app-topbar nav { display: flex; align-self: stretch; gap: 2px; margin-left: auto; }
.app-topbar nav button { border: 0; background: transparent; color: var(--muted); padding: 0 13px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.app-topbar nav button b { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 5px; background: #172328; color: #b7c5c7; font: 700 8px ui-monospace, monospace; }
.app-topbar nav button.active { color: var(--text); box-shadow: inset 0 -2px var(--acid); }
.top-status { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-status span { color: var(--acid); font: 700 8px ui-monospace, monospace; letter-spacing: .13em; white-space: nowrap; }
.top-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.top-status button, .plan-actions button, .dna-hero button, .phase-needs-panel header button, .navigator-actions button { border: 1px solid var(--line-2); background: transparent; color: var(--text); padding: 9px 12px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.top-status button:hover, .plan-actions button:hover, .dna-hero button:hover, .phase-needs-panel header button:hover, .navigator-actions button:hover { border-color: var(--acid); color: var(--acid); }

main { position: relative; max-width: 1680px; margin: auto; padding: 0 clamp(18px, 3vw, 50px) 70px; }
.eyebrow { margin: 0; color: var(--acid); font: 700 9px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero { min-height: 320px; padding: 62px 0 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 18px 0 24px; font-size: clamp(46px, 6vw, 92px); line-height: .91; letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px #74888e; }
.hero-copy > p:last-child { max-width: 760px; color: #a5b5b8; font-size: 15px; line-height: 1.65; }
.project-identity { width: min(410px, 34vw); padding: 5px 0 5px 23px; display: grid; gap: 5px; border-left: 1px solid var(--acid); }
.project-identity > span, .project-identity > small { color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .12em; }
.project-identity > strong { margin: 5px 0; font-size: 27px; line-height: 1.1; }
.project-identity > div { margin-top: 17px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.project-identity > div > b { color: var(--acid); font-size: 28px; }
.project-identity > div > span { height: 2px; background: #24343a; }
.project-identity > div > span i { display: block; width: 29%; height: 100%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.project-identity > div small { grid-column: 2; color: var(--muted); font-size: 9px; }

.view { display: none; }
.view.active { display: block; }
.jobs-hero { padding: 58px 0 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.jobs-hero h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 58px); letter-spacing: -.05em; }
.jobs-hero p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.jobs-hero > button, .jobs-empty button { flex: 0 0 auto; padding: 14px 18px; border: 0; background: var(--acid); color: #0b1206; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.jobs-hero > button b { margin-left: 18px; font-size: 17px; }
.jobs-toolbar { padding: 20px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.jobs-toolbar label { width: min(520px, 100%); color: var(--muted); font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.jobs-toolbar input { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line-2); background: #071014; color: var(--text); }
.jobs-toolbar span { color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .1em; }
.project-collection { margin-top: 34px; }
.project-collection > header { padding: 0 0 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.project-collection > header div { display: flex; align-items: center; gap: 10px; color: var(--acid); font: 700 9px ui-monospace, monospace; letter-spacing: .12em; }
.project-collection > header strong { min-width: 22px; padding: 4px 6px; display: inline-grid; place-items: center; background: var(--acid); color: var(--bg); }
.project-collection > header p { margin: 0; color: var(--muted); font-size: 9px; }
.finished-collection { margin-top: 58px; }
.finished-collection > header div { color: var(--teal); }
.finished-collection > header strong { background: var(--teal); }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.job-card { min-height: 255px; padding: 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #0b1519, #071014); cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.job-card:hover, .job-card:focus-visible { outline: 0; background: linear-gradient(145deg, #122126, #091418); box-shadow: inset 0 0 0 1px var(--acid); transform: translateY(-2px); }
.job-card:focus-visible { box-shadow: inset 0 0 0 2px var(--acid), 0 0 0 2px #05090b; }
.job-card footer { cursor: default; }
.job-card.active-job { box-shadow: inset 0 3px var(--acid); background: linear-gradient(145deg, #142018, #081114); }
.job-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font: 700 8px ui-monospace, monospace; }
.job-card header b { color: var(--acid); }
.job-card h3 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.035em; }
.job-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.job-dates { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.job-dates span { padding: 10px; color: var(--muted); font: 700 7px ui-monospace, monospace; }
.job-dates span + span { border-left: 1px solid var(--line); }
.job-dates strong { margin-top: 4px; display: block; color: var(--text); font-size: 10px; }
.job-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-card footer small { color: var(--muted); font: 700 7px ui-monospace, monospace; }
.job-card footer div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.job-card footer button { padding: 10px 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.job-card footer button:hover { border-color: var(--acid); color: var(--acid); }
.job-card footer button.secondary { padding: 8px 9px; color: var(--muted); }
.job-card.finished-job { opacity: .82; background: linear-gradient(145deg, #0a1417, #071014); }
.job-card.finished-job header b { color: var(--teal); }
.critical-dates { margin: 2px 0; padding: 14px; display: grid; gap: 12px; border: 1px solid var(--line-2); }
.critical-dates legend { padding: 0 8px; color: var(--acid); font: 700 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.jobs-empty { padding: 80px 20px; display: grid; place-items: center; text-align: center; border-bottom: 1px solid var(--line); }
.jobs-empty span { color: var(--acid); font: 700 8px ui-monospace, monospace; letter-spacing: .14em; }
.jobs-empty strong { margin-top: 10px; font-size: 28px; }
.jobs-empty p { color: var(--muted); }
.jobs-empty button { margin-top: 15px; }
.stage-header, .schedule-strip > header { padding: 52px 0 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stage-header h2, .schedule-strip h2, .plan-hero h2, .dna-hero h2, .research-hero h2 { margin: 8px 0 0; font-size: clamp(25px, 3.2vw, 44px); letter-spacing: -.045em; }
.navigator-actions { display: grid; justify-items: end; gap: 14px; }
.navigator-actions button { border-color: var(--acid); color: var(--acid); }
.navigator-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stage-legend { display: flex; gap: 17px; color: var(--muted); font: 700 8px ui-monospace, monospace; }
.stage-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.stage-legend .done { background: var(--teal); }
.stage-legend .active { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.stage-legend .future { border: 1px solid #5d6d72; }

.stage-navigator { position: relative; }
.phase-carousel { padding: 12px 10px 8px; overflow: hidden; border: 1px solid #38515acc; background: #071014ed; box-shadow: 0 18px 55px #0007, inset 0 1px #ffffff0c; }
.stage-navigator-meta { min-height: 22px; padding: 0 39px 5px; display: flex; justify-content: space-between; color: var(--muted); font: 700 7px ui-monospace, monospace; letter-spacing: .09em; }
.stage-navigator-meta span:first-child { color: var(--acid); }
.scroll-pulse { display: inline-block; width: 19px; height: 5px; margin-right: 7px; border: 1px solid var(--line-2); position: relative; }
.scroll-pulse::after { content: ""; position: absolute; width: 6px; top: 1px; bottom: 1px; left: 2px; background: var(--acid); animation: scroll-hint 2s ease-in-out infinite; }
@keyframes scroll-hint { 50% { transform: translateX(7px); } }
.stage-rail-shell { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-rail-shell::before, .stage-rail-shell::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 54px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stage-rail-shell::before { left: 36px; background: linear-gradient(90deg, #071014, transparent); }
.stage-rail-shell::after { right: 36px; background: linear-gradient(-90deg, #071014, transparent); }
.stage-navigator.can-left .stage-rail-shell::before, .stage-navigator.can-right .stage-rail-shell::after { opacity: 1; }
.rail-arrow { position: relative; z-index: 3; border: 0; background: var(--surface); color: var(--text); font-size: 18px; }
.rail-arrow:hover:not(:disabled) { background: var(--acid); color: var(--bg); }
.rail-arrow:disabled { color: #46575c; cursor: default; }
.stage-rail { display: flex; padding-top: 7px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-inline: contain; cursor: grab; }
.stage-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.stage-rail::-webkit-scrollbar { display: none; }
.stage-card { position: relative; flex: 0 0 122px; min-width: 122px; scroll-snap-align: center; border-right: 1px solid var(--line); opacity: .62; transition: opacity .25s, transform .25s, background .25s; }
.stage-button { width: 100%; min-height: 74px; padding: 10px 10px 20px; border: 0; background: transparent; color: var(--muted); text-align: left; position: relative; cursor: pointer; }
.stage-button > span { display: block; color: #687a80; font: 700 8px ui-monospace, monospace; }
.stage-button > b { display: block; margin-top: 11px; font-size: 8px; line-height: 1.2; text-transform: uppercase; }
.stage-button::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: #2b3a3f; }
.stage-card.done .stage-button::after { background: var(--teal); }
.stage-card.done .stage-button b { text-decoration: line-through; text-decoration-thickness: 1px; }
.stage-card:hover { opacity: 1; }
.stage-card.current { z-index: 2; opacity: 1; transform: translateY(-5px); background: linear-gradient(#d8ff3e18, #d8ff3e08); box-shadow: 0 11px 25px #0008; }
.stage-card.current .stage-button { color: var(--text); }
.stage-card.current .stage-button::after { height: 3px; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.stage-card.current .stage-button > span { color: var(--acid); }
.stage-button:hover { background: #101a1e; color: var(--text); }
.stage-punchout-trigger { position: absolute; z-index: 1; right: 7px; bottom: 4px; border: 0; background: transparent; color: #71868c; font: 700 6px ui-monospace, monospace; }
.stage-card:hover .stage-punchout-trigger, .stage-card.current .stage-punchout-trigger { color: var(--acid); }
.stage-minimap { height: 6px; margin: 6px 36px 0; display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.stage-minimap i { display: block; height: 2px; background: #26383e; transition: .2s; }
.stage-minimap i.done { background: var(--teal); }
.stage-minimap i.current { height: 4px; background: var(--acid); box-shadow: 0 0 8px var(--acid); }

.navigator-grid { min-height: 0; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .36fr); border: 1px solid var(--line); background: #071014cc; box-shadow: var(--shadow); }
.phase-needs-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.phase-needs-panel > header { padding: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.phase-needs-panel > header h2 { max-width: 720px; margin: 8px 0 0; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.04em; }
.phase-needs-panel > header > div:last-child { display: grid; justify-items: end; gap: 10px; }
.phase-needs-panel > header span { color: var(--muted); font: 700 8px ui-monospace, monospace; white-space: nowrap; }
.phase-needs-panel .supply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; }
.phase-needs-panel .supply-card { min-height: 245px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phase-needs-panel .supply-card:nth-child(2n) { border-right: 0; }
.phase-needs-panel .stage-source { border: 0; }
.project-model-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.project-model-panel > header, .project-model-panel > footer { padding: 16px 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .1em; }
.project-model-panel > header b { color: var(--acid); }
.project-model-panel > footer { border-top: 1px solid var(--line); border-bottom: 0; }
.project-model-panel > footer i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--acid); }
.project-model { position: relative; min-height: 590px; overflow: hidden; background: radial-gradient(circle at 52% 30%, #17424a45, transparent 28%), linear-gradient(#081115, #050a0c); }
.model-sky { position: absolute; inset: 0; background-image: linear-gradient(#b9d3d008 1px, transparent 1px), linear-gradient(90deg, #b9d3d008 1px, transparent 1px); background-size: 32px 32px; }
.model-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.model-sky i:nth-child(1) { left: 15%; top: 20%; }
.model-sky i:nth-child(2) { right: 22%; top: 11%; }
.model-sky i:nth-child(3) { right: 8%; top: 38%; }
.model-axis { position: absolute; color: #50656b; font: 700 7px ui-monospace, monospace; letter-spacing: .12em; }
.model-axis::before { content: ""; display: inline-block; margin-right: 7px; background: #385057; }
.axis-x { right: 24px; bottom: 145px; }
.axis-x::before { width: 90px; height: 1px; vertical-align: middle; }
.axis-y { left: 13px; top: 90px; writing-mode: vertical-rl; transform: rotate(180deg); }
.axis-y::before { width: 1px; height: 60px; margin: 0 0 8px; }
.model-ground { position: absolute; right: 8%; bottom: 25%; left: 7%; height: 102px; transform: skewX(-10deg); border: 1px solid #2e4b43; background: linear-gradient(150deg, #15251e, #0b1511); color: inherit; transition: .35s; }
.model-ground > span { position: absolute; right: 20px; bottom: 13px; transform: skewX(10deg); color: #789688; font: 700 8px ui-monospace, monospace; }
.model-ground i { position: absolute; height: 2px; background: #456855; }
.model-ground i:nth-of-type(1) { width: 35%; left: 5%; top: 25%; }
.model-ground i:nth-of-type(2) { width: 20%; right: 20%; top: 40%; }
.model-ground i:nth-of-type(3) { width: 50%; left: 23%; bottom: 18%; }
.model-building { position: absolute; width: min(60%, 650px); height: 405px; left: 20%; bottom: 29%; perspective: 900px; }
.model-layer { position: absolute; right: 0; left: 10%; margin: 0; padding: 0; transform: skewY(-3deg); border: 1px solid #395057; background: #101b1fdd; color: inherit; text-align: left; transition: transform .35s, opacity .35s, border-color .35s, box-shadow .35s; box-shadow: 0 9px 20px #0008; }
.model-layer.is-built, .model-ground.is-built { opacity: 1; translate: 0 0; filter: none; }
.model-layer.is-future, .model-ground.is-future { opacity: .09; translate: 0 -38px; filter: saturate(.3); }
.model-layer.is-current, .model-ground.is-current { opacity: 1; translate: 0 -9px; border-color: var(--acid); filter: none; box-shadow: 0 0 38px #d8ff3e22, 0 12px 30px #000a; }
.project-model.model-transitioning .model-layer,
.project-model.model-transitioning .model-ground { animation: model-reconstruct .68s cubic-bezier(.2,.75,.2,1) both; animation-delay: var(--model-delay, 0ms); }
@keyframes model-reconstruct {
  0% { opacity: 0; translate: 0 -72px; scale: .96; }
  55% { opacity: .65; }
  100% { scale: 1; }
}
.model-layer:hover { transform: translateY(-7px) skewY(-3deg); border-color: var(--teal); }
.model-layer > span { position: absolute; right: 10px; top: 8px; color: #7d9095; font: 700 7px ui-monospace, monospace; }
.layer.utilities { bottom: -20px; height: 52px; border-color: #315950; background: #0d211d; }
.layer.utilities i { position: absolute; height: 5px; left: 10%; right: 25%; top: 15px; border: 1px solid var(--teal); border-radius: 5px; }
.layer.utilities i + i { top: 30px; right: 8%; left: 35%; }
.layer.foundations { bottom: 27px; height: 72px; border-color: #48605a; background: #15211f; }
.layer.foundations i { position: absolute; width: 28px; height: 52px; bottom: -2px; border: 1px solid #60766f; background: #111d1a; }
.layer.foundations i:nth-of-type(1) { left: 15%; }
.layer.foundations i:nth-of-type(2) { left: 48%; }
.layer.foundations i:nth-of-type(3) { right: 10%; }
.layer.slab { bottom: 93px; height: 28px; border-color: #6d7b72; background: #29312e; }
.layer.frame { bottom: 116px; height: 154px; background: #10181c66; }
.layer.frame i { position: absolute; width: 3px; top: 0; bottom: 0; background: #567078; }
.layer.frame i:nth-of-type(1) { left: 12%; }
.layer.frame i:nth-of-type(2) { left: 40%; }
.layer.frame i:nth-of-type(3) { left: 68%; }
.layer.frame i:nth-of-type(4) { right: 5%; }
.layer.systems { bottom: 132px; height: 108px; border-color: #285a60; background: #0d202499; }
.layer.systems i { position: absolute; height: 5px; left: 8%; right: 12%; top: 28px; border: 1px solid var(--blue); }
.layer.systems i:nth-of-type(2) { top: 54px; left: 23%; border-color: var(--orange); }
.layer.systems i:nth-of-type(3) { top: 79px; right: 35%; border-color: var(--teal); }
.layer.interiors { bottom: 218px; height: 40px; border-color: #584b72; background: #1d172999; }
.layer.interiors i { position: absolute; width: 20%; height: 24px; left: 18%; bottom: 0; border: 1px solid var(--purple); }
.layer.interiors i + i { right: 15%; left: auto; }
.layer.roof { bottom: 266px; height: 38px; border-color: #64777b; background: #243035; }
.model-crane { position: absolute; left: 13%; bottom: 29%; height: 300px; width: 8px; background: #2c4249; opacity: .58; }
.model-crane::before { content: ""; position: absolute; width: 300px; height: 5px; left: -20px; top: 0; background: #2c4249; }
.model-crane i { position: absolute; width: 1px; height: 140px; left: 190px; top: 5px; background: #4c656d; }
.model-crane b { position: absolute; width: 12px; height: 12px; left: 185px; top: 143px; border: 1px solid #4c656d; }
.model-readout { position: absolute; left: 25px; bottom: 155px; padding-left: 13px; display: grid; gap: 4px; border-left: 1px solid var(--acid); }
.model-readout span { color: var(--acid); font: 700 7px ui-monospace, monospace; }
.model-readout strong { font-size: 18px; }
.model-readout small { color: var(--muted); font-size: 9px; }
.model-open { position: absolute; right: 24px; top: 24px; border: 1px solid var(--line-2); background: #081014d9; color: var(--text); padding: 10px 12px; font: 800 8px ui-monospace, monospace; letter-spacing: .08em; }
.model-open:hover { border-color: var(--acid); color: var(--acid); }
.model-open span { margin-left: 8px; }
.project-model[data-layer="site"] .model-ground,
.project-model[data-layer="belowgrade"] .utilities,
.project-model[data-layer="foundations"] .foundations,
.project-model[data-layer="slab"] .slab,
.project-model[data-layer="structure"] .frame,
.project-model[data-layer="systems"] .systems,
.project-model[data-layer="interiors"] .interiors,
.project-model[data-layer="envelope"] .roof { transform: translateY(-10px) skewY(-3deg); border-color: var(--acid); box-shadow: 0 0 38px #d8ff3e22, 0 12px 30px #000a; }
.project-model[data-layer="site"] .model-ground { transform: translateY(-7px) skewX(-10deg); }

.stage-intelligence { padding: 28px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #0f191c, #091115); }
.stage-title > div { display: flex; align-items: center; justify-content: space-between; }
.stage-title > div > span { color: var(--acid); font: 800 36px ui-monospace, monospace; }
.stage-title h2 { margin: 12px 0; font-size: 40px; letter-spacing: -.05em; }
.stage-title > p { color: #a3b2b5; font-size: 12px; line-height: 1.65; }
.stage-stats { margin: 24px -28px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-stats > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.stage-stats > div:last-child { border: 0; }
.stage-stats span, .stage-stats strong { display: block; }
.stage-stats span { color: var(--muted); font: 700 9px ui-monospace, monospace; }
.stage-stats strong { margin-top: 6px; font-size: 19px; }
.duration-block, .milestone-block, .gate-list { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.duration-block > span, .milestone-block > span, .gate-list > span { color: var(--muted); font: 700 10px ui-monospace, monospace; letter-spacing: .1em; }
.duration-block > strong { display: block; margin: 8px 0; font-size: 36px; }
.duration-block > strong small { color: var(--acid); font: 700 10px ui-monospace, monospace; }
.duration-block > div { height: 2px; background: #223137; }
.duration-block > div i { display: block; width: 45%; height: 100%; background: var(--acid); }
.duration-block p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.milestone-block strong { display: block; margin-top: 9px; color: var(--acid); font-size: 15px; line-height: 1.5; }
.gate-list ol { margin: 13px 0 0; padding: 0; list-style: none; counter-reset: gates; }
.gate-list li { position: relative; padding: 0 0 15px 30px; color: #a5b3b5; font-size: 13px; line-height: 1.5; counter-increment: gates; }
.gate-list li::before { content: "0" counter(gates); position: absolute; left: 0; color: var(--teal); font: 700 10px ui-monospace, monospace; }
.stage-explode { width: 100%; margin-top: 10px; padding: 13px 15px; display: flex; justify-content: space-between; border: 1px solid var(--acid); background: var(--acid); color: #0a1106; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.stage-explode:hover { background: var(--text); border-color: var(--text); }

.supply-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.supply-card { min-height: 250px; padding: 24px 24px 58px; position: relative; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; }
.supply-card:last-child { border-right: 0; }
.supply-card:hover { z-index: 1; background: #101c20; box-shadow: inset 0 0 0 1px var(--acid); }
.supply-card > span { color: var(--muted); font: 700 10px ui-monospace, monospace; }
.supply-card h3 { margin: 18px 0 10px; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.15; letter-spacing: -.025em; }
.supply-card p { margin: 0; display: -webkit-box; overflow: hidden; color: #aebdc0; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.supply-card .package-types { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.package-types i { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font: normal 700 9px ui-monospace, monospace; }
.supply-card footer { position: absolute; right: 24px; bottom: 20px; left: 24px; display: flex; justify-content: space-between; font: 700 10px ui-monospace, monospace; }
.supply-card footer span:first-child { color: var(--acid); }
.risk-critical { color: var(--red); }
.risk-watch { color: var(--orange); }
.risk-standard { color: var(--teal); }
.preference-match { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--acid); font: 700 10px ui-monospace, monospace; }
.stage-source { padding: 13px 17px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; border: 1px solid var(--line); border-top: 0; }
.stage-source span { color: var(--acid); font: 700 10px ui-monospace, monospace; }
.stage-source p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.stage-source button { border: 0; background: none; color: var(--text); font-size: 11px; }

.schedule-strip > header > span { color: var(--acid); font: 700 8px ui-monospace, monospace; }
.schedule-strip { margin-top: 18px; padding-bottom: 56px; }
.schedule-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #071014cc; box-shadow: var(--shadow); }
.schedule-row { min-height: 78px; padding: 17px 18px; display: grid; align-content: center; gap: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.schedule-row:nth-child(3n) { border-right: 0; }
.schedule-row:nth-last-child(-n + 3) { border-bottom: 0; }
.schedule-row:hover { border-color: var(--line-2); background: #101b1f; }
.schedule-row.current { background: #d8ff3e0d; box-shadow: inset 3px 0 var(--acid); }
.schedule-row > span, .schedule-row > small { color: var(--muted); font: 700 11px ui-monospace, monospace; line-height: 1.4; }
.schedule-row > span { color: var(--text); font-size: 12px; }
.schedule-row > small i { margin: 0 6px; color: var(--teal); font-style: normal; }
.schedule-row.current > span, .schedule-row.current > small { color: var(--acid); }
.schedule-row.done > span, .schedule-row.done > small { opacity: .62; text-decoration: line-through; text-decoration-thickness: 1px; }

.plan-hero, .dna-hero, .research-hero { padding: 58px 0 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.plan-hero > div:first-child, .dna-hero > div:first-child { max-width: 850px; }
.plan-hero p:not(.eyebrow), .dna-hero p:not(.eyebrow), .research-hero > p { color: var(--muted); line-height: 1.65; }
.plan-actions, .dna-hero > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plan-actions button:last-child, .dna-hero button:first-of-type { border-color: var(--acid); background: var(--acid); color: #0a1106; }
.plan-kpis, .dna-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.plan-kpis > div, .dna-kpis > div { padding: 22px; border-right: 1px solid var(--line); }
.plan-kpis > div:last-child, .dna-kpis > div:last-child { border: 0; }
.plan-kpis span, .dna-kpis span { color: var(--muted); font: 700 8px ui-monospace, monospace; }
.plan-kpis strong, .dna-kpis strong { display: block; margin: 8px 0; font-size: 32px; }
.plan-kpis small { color: var(--muted); font-size: 9px; }
.plan-toolbar { padding: 22px 0; display: flex; align-items: flex-end; gap: 14px; }
.plan-toolbar label { color: var(--muted); font: 700 8px ui-monospace, monospace; }
.plan-toolbar input, .plan-toolbar select { min-width: 220px; margin-top: 6px; padding: 9px; display: block; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.plan-toolbar span { margin-left: auto; color: var(--muted); font: 700 8px ui-monospace, monospace; }
.plan-table-wrap { overflow: auto; border: 1px solid var(--line); }
.plan-table { width: 100%; min-width: 1120px; border-collapse: collapse; background: #081014; }
.plan-table th { padding: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 8px ui-monospace, monospace; letter-spacing: .08em; text-align: left; }
.plan-table td { padding: 14px 13px; border-bottom: 1px solid #18262b; font-size: 10px; vertical-align: top; }
.plan-table tr.current { background: #d8ff3e08; box-shadow: inset 3px 0 var(--acid); }
.plan-table tr.done { opacity: .42; }
.plan-table tr.done td, .plan-table tr.done button, .plan-table tr.done strong, .plan-table tr.done small, .plan-table tr.done span { text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-table td strong, .plan-table td small { display: block; }
.plan-table td small { margin-top: 4px; color: var(--muted); }
.plan-package-open { padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; }
.plan-package-open:hover strong { color: var(--acid); }
.plan-package-open small span { color: var(--acid); }
.plan-status { color: var(--teal); font: 700 8px ui-monospace, monospace; }
.plan-status.now { color: var(--red); }
.plan-status.soon { color: var(--orange); }
.plan-pref { color: var(--acid); }
.plan-date { white-space: nowrap; font: 700 10px ui-monospace, monospace; }
.plan-note, .privacy, .research-disclaimer { margin-top: 18px; padding: 16px; display: flex; gap: 15px; border-left: 2px solid var(--orange); background: #130f0b; }
.plan-note b, .privacy b, .research-disclaimer b { color: var(--orange); font: 700 8px ui-monospace, monospace; white-space: nowrap; }
.plan-note p, .research-disclaimer p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.dna-empty { min-height: 390px; display: grid; place-content: center; gap: 10px; border: 1px solid var(--line); background: radial-gradient(circle, #162329, #081014 60%); text-align: center; }
.dna-empty span { color: var(--acid); font: 700 8px ui-monospace, monospace; }
.dna-empty strong { font-size: 27px; }
.dna-empty p { color: var(--muted); }
.dna-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-top: 0; }
.dna-grid article:first-child { border-right: 1px solid var(--line); }
.dna-grid article > header, .source-table > header, .matching-ladder > header { padding: 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 8px ui-monospace, monospace; }
.preference-row, .sales-signal-row { padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid #18262b; }
.preference-row strong, .preference-row small, .sales-signal-row strong, .sales-signal-row small { display: block; }
.preference-row small, .sales-signal-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.preference-row > b { color: var(--acid); font: 700 10px ui-monospace, monospace; text-align: right; }
.sales-signal-row > span { color: var(--teal); font: 700 8px ui-monospace, monospace; text-align: right; }
.matching-ladder { margin-top: 22px; border: 1px solid var(--line); }
.matching-ladder ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.matching-ladder li { min-height: 88px; padding: 17px; border-right: 1px solid var(--line); color: #aab9bc; font-size: 10px; line-height: 1.4; }
.matching-ladder li:last-child { border: 0; }
.matching-ladder li b { display: block; margin-bottom: 8px; color: var(--acid); font: 700 9px ui-monospace, monospace; }
.privacy { border-color: var(--teal); background: #091412; }
.privacy b { color: var(--teal); }
.privacy span { color: var(--muted); font-size: 10px; }

.research-hero { border-bottom: 1px solid var(--line); }
.research-hero > p { max-width: 630px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.method-grid article { padding: 30px 25px; border-right: 1px solid var(--line); }
.method-grid article:last-child { border: 0; }
.method-grid span { color: var(--acid); font: 700 9px ui-monospace, monospace; }
.method-grid h3 { margin: 18px 0 9px; font-size: 17px; }
.method-grid p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.source-table { margin-top: 42px; border: 1px solid var(--line); }
.source-row { padding: 16px; display: grid; grid-template-columns: 1.2fr .55fr 1.6fr auto; gap: 18px; align-items: center; border-bottom: 1px solid #18262b; }
.source-row strong { font-size: 11px; }
.source-row span, .source-row p { color: var(--muted); font-size: 9px; }
.source-row p { margin: 0; line-height: 1.5; }
.source-row a { color: var(--acid); font: 700 8px ui-monospace, monospace; text-decoration: none; }
.research-disclaimer { margin-bottom: 30px; }

dialog { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); box-shadow: 0 40px 120px #000; }
dialog::backdrop { background: #020506df; backdrop-filter: blur(5px); }
.punchout-dialog { width: min(1120px, calc(100% - 36px)); height: min(850px, calc(100dvh - 36px)); max-width: none; max-height: none; margin: auto 18px auto auto; padding: 0; overflow: hidden; }
.punchout-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.punchout-header { padding: 28px 30px 22px; display: flex; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #0d191d, #081014); }
.punchout-header h2 { margin: 8px 0 6px; font-size: 34px; letter-spacing: -.045em; }
.punchout-header > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.punchout-close { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 26px; }
.punchout-close:hover { border-color: var(--acid); color: var(--acid); }
.punchout-context { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.punchout-context > div { padding: 14px 22px; border-right: 1px solid var(--line); }
.punchout-context > div:last-child { border: 0; }
.punchout-context span, .punchout-context strong, .punchout-context small { display: block; }
.punchout-context span { color: var(--muted); font: 700 7px ui-monospace, monospace; }
.punchout-context strong { margin: 6px 0 2px; color: var(--acid); font: 700 13px ui-monospace, monospace; }
.punchout-context small { color: var(--muted); font-size: 8px; }
.punchout-workspace { min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.package-list { overflow: auto; border-right: 1px solid var(--line); background: #071014; }
.package-list button { width: 100%; padding: 17px 18px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; }
.package-list button strong { color: var(--text); font-size: 11px; }
.package-list button span { grid-column: 1; font: 700 7px ui-monospace, monospace; }
.package-list button b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); font: 700 10px ui-monospace, monospace; }
.package-list button.active { background: var(--acid-soft); box-shadow: inset 3px 0 var(--acid); }
.package-list button.active span, .package-list button.active b { color: var(--acid); }
.package-detail { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.package-detail > header { padding: 18px 22px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; border-bottom: 1px solid var(--line); }
.package-detail > header span { color: var(--acid); font: 700 8px ui-monospace, monospace; }
.package-detail > header h3 { margin: 5px 0; font-size: 21px; }
.package-detail > header p { margin: 0; color: var(--muted); font-size: 9px; }
.package-detail label { color: var(--muted); font: 700 7px ui-monospace, monospace; }
.package-detail select { margin-top: 5px; padding: 8px; display: block; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.item-list { overflow: auto; padding: 0 22px 24px; }
.item-kind-group { margin-top: 22px; }
.item-kind-group > header { margin-bottom: 8px; display: flex; justify-content: space-between; color: var(--muted); font: 700 8px ui-monospace, monospace; }
.item-requirement { border-top: 1px solid var(--line); }
.item-requirement:last-child { border-bottom: 1px solid var(--line); }
.item-requirement summary { padding: 13px 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
.item-requirement summary::-webkit-details-marker { display: none; }
.item-requirement summary::before { content: "+"; grid-column: 3; grid-row: 1; color: var(--acid); font: 700 14px ui-monospace, monospace; }
.item-requirement[open] summary::before { content: "−"; }
.item-requirement summary > span:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.item-requirement summary > span:first-child::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.item-requirement summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.item-requirement summary > b { grid-column: 2; color: var(--muted); font: 700 8px ui-monospace, monospace; white-space: nowrap; }
.item-requirement .requirement-body { padding: 4px 4px 17px 19px; display: grid; gap: 14px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.item-meta span { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font: 700 7px ui-monospace, monospace; }
.item-meta .need-required { color: var(--teal); }
.item-meta .need-conditional { color: var(--orange); }
.attribute-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attribute-list span { color: #a9b8ba; font-size: 9px; }
.attribute-list span:not(:last-child)::after { content: " ·"; color: var(--line-2); }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.time-grid > div { padding: 10px; border-right: 1px solid var(--line); }
.time-grid > div:last-child { border: 0; }
.time-grid span, .time-grid strong { display: block; }
.time-grid span { color: var(--muted); font: 700 7px ui-monospace, monospace; }
.time-grid strong { margin-top: 4px; font-size: 9px; }
.customer-candidate { padding: 11px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-left: 2px solid var(--line-2); background: #0a1417; }
.customer-candidate.matched { border-color: var(--acid); background: var(--acid-soft); }
.customer-candidate span, .customer-candidate small { display: block; }
.customer-candidate span { color: var(--muted); font: 700 7px ui-monospace, monospace; }
.customer-candidate strong { margin-top: 4px; display: block; font-size: 10px; }
.customer-candidate small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.customer-candidate > b { align-self: center; color: var(--acid); font: 700 10px ui-monospace, monospace; }
.punchout-footer { padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); background: var(--surface-2); }
.punchout-footer span { color: var(--muted); font: 700 8px ui-monospace, monospace; }
.punchout-footer button { border: 0; background: var(--acid); color: var(--bg); padding: 10px 13px; font-size: 9px; font-weight: 900; text-transform: uppercase; }

.config-dialog { width: min(680px, calc(100% - 30px)); padding: 35px; position: fixed; }
.dialog-close { position: absolute; right: 16px; top: 10px; }
.dialog-close button { border: 0; background: transparent; color: var(--muted); font-size: 26px; }
.config-dialog > h2 { margin: 10px 0; font-size: 35px; }
.config-dialog > p:not(.eyebrow) { color: var(--muted); }
#config-form { margin-top: 24px; display: grid; gap: 14px; }
#config-form label { color: var(--muted); font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .03em; }
#config-form input, #config-form select { width: 100%; min-height: 44px; margin-top: 6px; padding: 11px 12px; display: block; border: 1px solid var(--line-2); background: #071014; color: var(--text); font: 500 14px/1.4 Inter, system-ui, sans-serif; }
#config-form input[readonly] { color: #cdd9d6; background: #0b1518; cursor: default; }
.calculated-badge { float: right; color: var(--acid); font-size: 8px; letter-spacing: .08em; }
.today-button { float: right; padding: 0; border: 0; background: transparent; color: var(--acid); font: 800 9px/1.4 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.today-button:hover { text-decoration: underline; }
.location-field { position: relative; }
.field-hint { min-height: 16px; margin-top: 6px; display: block; color: #819398; font: 500 10px/1.5 Inter, system-ui, sans-serif; }
.location-suggestions { position: absolute; z-index: 70; top: calc(100% - 16px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line-2); background: #091317; box-shadow: 0 18px 50px #000c; }
.location-suggestions button { width: 100%; padding: 11px 12px; display: grid; gap: 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.location-suggestions button:last-child { border-bottom: 0; }
.location-suggestions button:hover, .location-suggestions button[aria-selected="true"] { background: var(--acid-soft); box-shadow: inset 3px 0 var(--acid); }
.location-suggestions strong { font-size: 13px; }
.location-suggestions small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-primary { margin-top: 10px; padding: 13px; border: 0; background: var(--acid); color: #0a1106; font-weight: 900; text-transform: uppercase; }
#toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; padding: 12px 15px; pointer-events: none; opacity: 0; transform: translateY(10px); border: 1px solid var(--line-2); background: #0d1b1f; color: var(--text); box-shadow: var(--shadow); font-size: 10px; transition: .2s; }
#toast.show { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .app-topbar { gap: 18px; }
  .app-topbar nav button { padding: 0 8px; font-size: 9px; }
  .navigator-grid { grid-template-columns: 1fr; }
  .stage-intelligence { border-top: 1px solid var(--line); border-left: 0; }
  .supply-grid { grid-template-columns: repeat(3, 1fr); }
  .supply-card { border-bottom: 1px solid var(--line); }
  .supply-card:nth-child(3) { border-right: 0; }
  .stage-stats { margin-left: -28px; margin-right: -28px; }
  .punchout-dialog { width: min(980px, calc(100% - 36px)); }
}

@media (max-width: 980px) {
  .app-topbar nav { position: absolute; top: 76px; right: 0; left: 0; height: 44px; padding: 0 18px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #05090bf5; }
  .app-topbar nav button { flex: 0 0 auto; }
  main { padding-top: 44px; }
  .hero { min-height: auto; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid article:nth-child(2) { border-right: 0; }
  .source-row { grid-template-columns: 1fr auto; }
  .source-row p { grid-column: 1 / -1; }
  .matching-ladder ol { grid-template-columns: repeat(3, 1fr); }
  .matching-ladder li { border-bottom: 1px solid var(--line); }
  .punchout-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .app-topbar { min-height: 64px; }
  .app-topbar nav { top: 64px; }
  .top-status span { display: none; }
  .top-status button { padding: 8px; }
  .hero { display: block; padding-top: 40px; }
  .jobs-hero { display: block; }
  .jobs-hero > button { margin-top: 22px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-toolbar { align-items: stretch; flex-direction: column; }
  .hero h1 { font-size: 45px; }
  .project-identity { width: 100%; margin-top: 32px; }
  .stage-header, .schedule-strip > header, .plan-hero, .dna-hero, .research-hero { display: block; }
  .navigator-actions, .stage-legend, .plan-actions, .dna-hero > div:last-child { margin-top: 18px; justify-items: start; justify-content: flex-start; }
  .navigator-buttons { justify-content: flex-start; }
  .stage-navigator-meta { padding-right: 36px; padding-left: 36px; }
  .stage-navigator-meta span:last-child { display: none; }
  .stage-rail-shell { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .stage-rail-shell::before { left: 36px; }
  .stage-rail-shell::after { right: 36px; }
  .stage-minimap { margin-right: 36px; margin-left: 36px; }
  .stage-card { flex-basis: 112px; min-width: 112px; }
  .phase-needs-panel > header { display: block; }
  .phase-needs-panel > header > div:last-child { margin-top: 18px; justify-items: start; }
  .phase-needs-panel .supply-grid { grid-template-columns: 1fr; }
  .phase-needs-panel .supply-card { border-right: 0; }
  .stage-title h2 { font-size: 32px; }
  .supply-grid { grid-template-columns: 1fr; }
  .supply-card { border-right: 0; }
  .schedule-chart { grid-template-columns: 1fr; }
  .schedule-row, .schedule-row:nth-child(3n), .schedule-row:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-row:last-child { border-bottom: 0; }
  .plan-kpis, .dna-kpis { grid-template-columns: 1fr 1fr; }
  .plan-toolbar { flex-wrap: wrap; }
  .plan-toolbar span { width: 100%; margin: 0; }
  .dna-grid { grid-template-columns: 1fr; }
  .dna-grid article:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .matching-ladder ol { grid-template-columns: 1fr; }
  .matching-ladder li { min-height: auto; border-right: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .config-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); padding: 24px 20px; overflow-y: auto; }
  .config-dialog > h2 { padding-right: 28px; font-size: 30px; line-height: 1.08; }
  .config-dialog > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
  #config-form { gap: 18px; }
  #config-form label { font-size: 11px; }
  #config-form input, #config-form select { min-height: 48px; padding: 12px 13px; font-size: 16px; }
  .field-hint { font-size: 12px; }
  .dialog-primary { min-height: 50px; font-size: 12px; }
  .punchout-dialog { width: 100%; height: 100dvh; margin: 0; border-right: 0; border-left: 0; }
  .punchout-shell { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .punchout-header { padding: 14px 16px 12px; gap: 12px; }
  .punchout-header .eyebrow { font-size: 8px; }
  .punchout-header h2 { margin: 5px 0 4px; font-size: 23px; line-height: 1.05; }
  .punchout-header > div > p:last-child { max-width: none; font-size: 10px; line-height: 1.35; }
  .punchout-close { flex: 0 0 36px; width: 36px; height: 36px; }
  .punchout-context { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .punchout-context > div { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 0; }
  .punchout-context span { overflow: hidden; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
  .punchout-context strong { overflow: hidden; margin: 4px 0 0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .punchout-context small { display: none; }
  .punchout-workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .package-list { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; scroll-snap-type: x proximity; }
  .package-list button { flex: 0 0 148px; min-height: 58px; padding: 9px 11px; gap: 4px; border-right: 1px solid var(--line); border-bottom: 0; scroll-snap-align: center; }
  .package-list button strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .package-list button span { font-size: 6px; }
  .package-list button.active { box-shadow: inset 0 -3px var(--acid); }
  .package-detail > header { min-height: 64px; padding: 9px 14px; align-items: center; }
  .package-detail > header h3 { margin: 3px 0 0; font-size: 18px; line-height: 1.1; }
  .package-detail > header p { display: none; }
  .package-detail select { min-height: 38px; margin-top: 3px; padding: 7px; font-size: 10px; }
  .item-list { padding: 0 14px 14px; overscroll-behavior: contain; scrollbar-width: thin; }
  .item-kind-group { margin-top: 12px; }
  .item-kind-group > header { position: sticky; z-index: 2; top: 0; margin: 0; padding: 9px 0 7px; background: var(--surface); }
  .item-requirement summary { min-height: 49px; padding: 10px 2px; gap: 10px; }
  .item-requirement summary strong { overflow: visible; font-size: 13px; line-height: 1.35; text-overflow: clip; white-space: normal; }
  .item-requirement .requirement-body { padding: 4px 2px 14px 14px; gap: 10px; }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-grid > div { min-width: 0; padding: 8px 6px; border-right: 1px solid var(--line); border-bottom: 0; }
  .time-grid span { overflow: hidden; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
  .time-grid strong { font-size: 8px; line-height: 1.35; }
  .punchout-footer { min-height: 50px; padding: 7px 10px; }
  .punchout-footer span { font-size: 7px; }
  .punchout-footer button { min-height: 38px; padding: 9px 11px; }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .top-status button { max-width: 92px; font-size: 8px; }
  .hero h1 { font-size: 36px; }
  .stage-stats { grid-template-columns: 1fr; }
  .stage-stats > div { display: flex; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-stats > div:last-child { border-bottom: 0; }
  .stage-stats strong { margin: 0; }
  .plan-kpis, .dna-kpis { grid-template-columns: 1fr; }
  .plan-kpis > div, .dna-kpis > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .package-detail > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .package-detail label { margin: 0; display: block; }
  .item-requirement summary { grid-template-columns: minmax(0, 1fr) auto auto; }
  .item-requirement summary::before { grid-column: 3; }
  .item-requirement summary > b { display: block; font-size: 7px; }
}

@media (max-width: 760px) {
  .app-topbar nav button { font-size: 11px; }
  .hero-copy > p:last-child, .jobs-hero > div > p:last-child, .plan-hero > div > p:last-child, .dna-hero > div > p:last-child, .research-hero > p { font-size: 15px; line-height: 1.65; }
  .eyebrow { font-size: 9px; line-height: 1.4; }
  .project-identity > span, .project-identity > small { font-size: 10px; line-height: 1.45; }
  .project-identity > div small { font-size: 11px; }
  .job-card p, .job-dates strong { font-size: 13px; }
  .job-card footer small { font-size: 9px; }
  .job-card footer button { min-height: 42px; font-size: 10px; }
  .project-collection > header p { font-size: 12px; }
  .phase-needs-panel header button, .navigator-actions button, .plan-actions button, .dna-hero button { min-height: 42px; font-size: 11px; }
  .stage-title > p { font-size: 14px; }
  .stage-button > b { font-size: 10px; }
  .stage-navigator-meta, .stage-legend { font-size: 9px; }
  .duration-block p, .gate-list li { font-size: 12px; line-height: 1.55; }
  .stage-explode { min-height: 46px; font-size: 11px; }
  .supply-card { min-height: 260px; padding: 22px 22px 60px; }
  .supply-card > span { font-size: 10px; }
  .supply-card h3 { font-size: 22px; }
  .supply-card p { font-size: 14px; line-height: 1.6; -webkit-line-clamp: 4; }
  .package-types i { font-size: 9px; }
  .supply-card footer { right: 22px; bottom: 20px; left: 22px; font-size: 10px; }
  .stage-source p, .stage-source button, .schedule-row > span { font-size: 11px; line-height: 1.5; }
  .plan-kpis small, .preference-row small, .sales-signal-row small { font-size: 11px; }
  .plan-table th { font-size: 9px; }
  .plan-table td, .plan-note p, .research-disclaimer p, .privacy span, .matching-ladder li { font-size: 12px; line-height: 1.55; }
  .method-grid p { font-size: 13px; }
  .source-row strong { font-size: 14px; }
  .source-row span, .source-row p { font-size: 12px; line-height: 1.55; }
  .source-row a { font-size: 10px; }
  .punchout-header .eyebrow { font-size: 9px; }
  .punchout-header h2 { font-size: 24px; }
  .punchout-header > div > p:last-child { font-size: 12px; line-height: 1.4; }
  .punchout-context span { font-size: 7px; }
  .punchout-context strong { font-size: 11px; }
  .package-list button strong { font-size: 12px; }
  .package-list button span { font-size: 7px; }
  .package-detail label { font-size: 8px; }
  .package-detail select { min-height: 40px; font-size: 12px; }
  .item-kind-group > header { font-size: 9px; }
  .item-meta span { font-size: 8px; }
  .attribute-list span { font-size: 11px; }
  .time-grid span { font-size: 7px; }
  .time-grid strong { font-size: 9px; line-height: 1.4; }
  .customer-candidate span { font-size: 8px; }
  .customer-candidate strong { font-size: 12px; }
  .customer-candidate small { font-size: 10px; line-height: 1.4; }
  .punchout-footer span { font-size: 8px; }
  .punchout-footer button { min-height: 40px; font-size: 10px; }
  #toast { font-size: 12px; }
}

@media (max-width: 460px) {
  .top-status button { font-size: 10px; }
  .item-requirement summary > b { font-size: 8px; }
}

.supply-open { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.card-actions { position: absolute; z-index: 2; right: 20px; bottom: 51px; left: 20px; display: flex; justify-content: flex-end; gap: 6px; }
.card-actions button { padding: 5px 7px; border: 1px solid var(--line-2); background: #071014; color: var(--muted); font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.supply-card.omitted { min-height: 112px; opacity: .46; filter: grayscale(1); }
.supply-card.omitted h3, .supply-card.omitted p, .stage-card.omitted b, .schedule-row.omitted { text-decoration: line-through; }
.supply-card.omitted p, .supply-card.omitted .package-types, .supply-card.omitted footer, .supply-card.omitted .preference-match { display: none; }
.supply-card.omitted .card-actions { bottom: 14px; }
.stage-card.omitted { opacity: .34; filter: grayscale(1); transform: none; }
.schedule-row.omitted { min-height: 48px; opacity: .42; filter: grayscale(1); }
.package-list button.omitted { opacity: .38; filter: grayscale(1); text-decoration: line-through; }
.specific-item { padding: 13px 4px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.specific-item div { display: grid; gap: 4px; }
.specific-item div:nth-child(2) { text-align: right; }
.specific-item span, .specific-item small { color: var(--muted); font: 700 8px ui-monospace, monospace; }
.specific-item.omitted { opacity: .42; filter: grayscale(1); }
.specific-item.omitted strong, .specific-item.omitted span, .specific-item.omitted small, .specific-item.omitted b { text-decoration: line-through; }
.add-on-card { border: 1px dashed var(--line-2); background: linear-gradient(145deg,#0c171a,#071014); }
.specific-item button, .item-add-inline { border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 8px; font: 700 8px ui-monospace, monospace; text-transform: uppercase; }
.item-add-inline { width: 100%; margin-top: 14px; color: var(--acid); border-color: var(--acid); }
.item-dialog { width: min(620px, calc(100% - 24px)); padding: 34px; position: fixed; }
.item-dialog > h2 { margin: 9px 0; font-size: 34px; }
.item-dialog > p:not(.eyebrow) { color: var(--muted); }
#item-form { margin-top: 22px; display: grid; gap: 14px; }
#item-form label { color: var(--muted); font: 700 10px ui-monospace, monospace; }
#item-form input { width: 100%; min-height: 44px; margin-top: 6px; padding: 11px; border: 1px solid var(--line-2); background: #071014; color: var(--text); font-size: 14px; }
@media (max-width:760px) { .supply-card.omitted{min-height:118px}.item-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:24px 20px;overflow-y:auto}#item-form input{min-height:48px;font-size:16px}.specific-item{grid-template-columns:minmax(0,1fr) auto}.specific-item>button{grid-column:1/-1;justify-self:end} }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Nerva calm work system — shared visual language with Estimator. */
:root {
  color-scheme: light;
  --bg: #ebe7dc;
  --surface: #f6f2e8;
  --surface-2: #efeade;
  --surface-3: #fffdf7;
  --surface-4: #ded9ce;
  --line: #c9c4b8;
  --line-2: #989a90;
  --text: #000000;
  --muted: #000000;
  --acid: #173e55;
  --acid-soft: #dce8ef;
  --signal: #173e55;
  --lime: #cbff2e;
  --teal: #183e31;
  --orange: #173e55;
  --purple: #705a92;
  --red: #b73532;
  --blue: #173e55;
  --shadow: 0 22px 60px #30312718;
}

body::before { opacity: .34; background-image: linear-gradient(#989a9018 1px, transparent 1px), linear-gradient(90deg, #989a9018 1px, transparent 1px); mask-image: linear-gradient(#000, transparent 94%); }
.app-topbar { border-bottom-color: var(--text); background: #ebe7dcf2; box-shadow: 0 8px 24px #30312710; }
.brand-mark { border-color: var(--text); background: var(--text); color: var(--lime); box-shadow: none; }
.app-topbar nav button b { background: #ded9ce; color: var(--muted); }
.top-status i, .project-identity > div > span i, .stage-legend .active, .stage-minimap i.current { box-shadow: none; }
.top-status span { color: var(--teal); }
.top-status i { background: var(--teal); }
.hero h1 em { -webkit-text-stroke-color: #000000; }
.hero-copy > p:last-child { color: var(--muted); }
.project-identity > div > span { background: #c9c4b8; }
.jobs-hero > button, .jobs-empty button, .stage-explode, .dialog-primary { color: #fffdf7; }
.jobs-toolbar input, .plan-toolbar input, .plan-toolbar select, #config-form input, #config-form select, #item-form input { background: #fffdf7; }
.job-card, .job-card.finished-job { background: linear-gradient(145deg, #fffdf7, #f1ede3); }
.job-card:hover, .job-card:focus-visible { background: linear-gradient(145deg, #fffdf7, #ebe7dc); }
.job-card:focus-visible { box-shadow: inset 0 0 0 2px var(--acid), 0 0 0 2px #fffdf7; }
.job-card.active-job { background: linear-gradient(145deg, #edf3f6, #f6f2e8); }

.phase-carousel { border-color: var(--text); background: #f6f2e8f2; box-shadow: 0 14px 40px #30312712; }
.stage-navigator-meta { color: #000000; font-size: 10px; }
.stage-rail-shell::before { background: linear-gradient(90deg, #f6f2e8, transparent); }
.stage-rail-shell::after { background: linear-gradient(-90deg, #f6f2e8, transparent); }
.rail-arrow { background: #ebe7dc; font-size: 22px; }
.rail-arrow:hover:not(:disabled) { color: #fffdf7; }
.rail-arrow:disabled { color: #535353; }
.stage-card { flex-basis: 150px; min-width: 150px; opacity: .78; }
.stage-button { min-height: 92px; padding: 13px 12px 24px; color: #000000; }
.stage-button > span { color: #000000; font-size: 12px; }
.stage-button > b { font-size: 11px; line-height: 1.3; }
.stage-punchout-trigger { color: #000000; font-size: 8px; }
.stage-button::after, .stage-minimap i { background: #c9c4b8; }
.stage-card.current { background: linear-gradient(#dce8ef, #edf3f6); box-shadow: 0 10px 24px #30312712; }
.stage-button:hover { background: #ebe7dc; }
.navigator-grid, .schedule-chart { background: #fffdf7; }
.stage-intelligence { background: linear-gradient(180deg, #f1ede3, #ebe7dc); }
.supply-card { background: #fffdf7; }
.supply-card:hover { background: #f6f2e8; }
.schedule-row:hover { background: #f1ede3; }
.schedule-row.current, .plan-table tr.current { background: #edf3f6; }
.plan-table { background: #fffdf7; }
.plan-note, .research-disclaimer { background: #edf3f6; }
.privacy { background: #eef3ed; }
.dna-empty { background: radial-gradient(circle, #fffdf7, #ebe7dc 68%); }

.project-model { background: radial-gradient(circle at 52% 30%, #c9ded745, transparent 30%), linear-gradient(#f6f2e8, #e4dfd3); }
.model-sky { background-image: linear-gradient(#686b610d 1px, transparent 1px), linear-gradient(90deg, #686b610d 1px, transparent 1px); }
.model-ground { border-color: #989a90; background: linear-gradient(150deg, #d5ddd4, #bcc8bc); }
.model-ground > span, .model-axis { color: var(--muted); }
.model-ground i { background: #7c9b85; }
.model-layer { border-color: #989a90; background: #f6f2e8e8; box-shadow: 0 9px 20px #30312718; }
.model-layer.is-current, .model-ground.is-current { box-shadow: 0 0 0 2px #173e5530, 0 12px 30px #3031271f; }
.layer.utilities { background: #d9e6df; }
.layer.foundations { background: #ddd9d0; }
.layer.foundations i { background: #cac5ba; }
.layer.slab { background: #c8c7bf; }
.layer.frame { background: #f6f2e899; }
.layer.systems { background: #dce9ed99; }
.layer.interiors { background: #ebe4f599; }
.layer.roof { background: #c8ced0; }
.model-crane, .model-crane::before { background: #7d8789; }
.model-crane i { background: #6e7d80; }
.model-open { background: #fffdf7e8; }

dialog { background: #f6f2e8; box-shadow: 0 36px 100px #3031273d; }
dialog::backdrop { background: #2f302a66; }
.punchout-header { background: linear-gradient(120deg, #fffdf7, #f1ede3); }
.package-list { background: #efeade; }
.location-suggestions { background: #fffdf7; box-shadow: 0 18px 50px #30312726; }
#toast { background: #fffdf7; }
.card-actions button { background: #fffdf7; }
.add-on-card { background: linear-gradient(145deg, #fffdf7, #f1ede3); }
.project-collection > header strong, .punchout-footer button { color: #fffdf7; }

/* High-legibility procurement canvas. */
.hero-copy > p:last-child,
.jobs-hero p:last-child,
.job-card p,
.stage-legend,
.duration-block p,
.gate-list li,
.supply-card > span,
.supply-card p,
.package-types i,
.supply-card footer,
.stage-source p,
.schedule-row > span,
.schedule-row > small,
.plan-hero p:not(.eyebrow),
.dna-hero p:not(.eyebrow),
.research-hero > p,
.plan-kpis span,
.plan-kpis small,
.dna-kpis span,
.plan-toolbar label,
.plan-toolbar span,
.plan-table th,
.specific-item span,
.specific-item small { color: #000000; }
.supply-card > span { font-size: 12px; }
.supply-card h3 { font-size: clamp(20px, 1.55vw, 25px); }
.supply-card p { font-size: 15px; line-height: 1.5; }
.package-types i { font-size: 10px; }
.supply-card footer, .preference-match { font-size: 11px; }

@media (max-width: 760px) {
  .app-topbar nav { background: #ebe7dcf5; }
}

/* Standalone commercial story layer. */
.sales-dna-brief { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--text); background: var(--surface-3); }
.sales-dna-brief article { min-height: 190px; padding: 22px; border-right: 1px solid var(--line); }
.sales-dna-brief article:last-child { border-right: 0; }
.sales-dna-brief span { color: var(--signal); font: 800 9px ui-monospace, monospace; letter-spacing: .11em; }
.sales-dna-brief strong { display: block; margin: 18px 0 12px; font-size: 21px; line-height: 1.2; }
.sales-dna-brief p { margin: 0; font-size: 13px; line-height: 1.55; }
html[data-experience="standalone-demo"] .top-status span { color: var(--signal); }
html[data-experience="standalone-demo"] .top-status i { background: var(--signal); }
@media (max-width: 760px) {
  .sales-dna-brief { grid-template-columns: 1fr; }
  .sales-dna-brief article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sales-dna-brief article:last-child { border-bottom: 0; }
}
