/* ALZA Development — typography and palette from alzadev.com. */
:root {
  font-family: 'Montserrat', system-ui, sans-serif;
  --ink: hsl(30 10% 15%);
  --muted: hsl(30 8% 42%);
  --line: hsl(30 15% 88%);
  --paper: hsl(30 20% 98%);
  --accent: hsl(35 65% 50%);
  --accent-ink: #825616;
  --soft: hsl(30 15% 92%);
  --gold-soft: #f7eddf;
  color: var(--ink);
}
body { background: #e4e1db; }
button, input, select { font-family: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, #viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 28px; }
.identity { gap: 24px; min-width: 0; }
.brand-link { display: flex; gap: 7px; align-items: baseline; color: var(--ink); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); padding-right: 25px; }
.identity .brand-link span { display: inline; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; line-height: 1; letter-spacing: -.6px; margin: 0; color: inherit; }
.identity .brand-link .brand-name { font-weight: 600; }
.identity .brand-link .brand-division { font-weight: 400; color: var(--muted); }
.brand-link:hover .brand-name { color: var(--accent-ink); }
.project-identity { min-width: 0; }
.project-identity h1 { font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.3px; }
.identity .project-identity span { font-size: 12px; letter-spacing: .12em; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.top-actions { gap: 16px; }
.concept { font-size: 12px; color: var(--muted); border-color: var(--line); border-radius: 2px; }
.quiet { font-size: 14px; }
.quiet:hover, .icon-btn:hover { background: var(--soft); }
.icon-btn { border-color: var(--line); }
.sidebar, .stage-guide, .minimap, .selected-part { background: #fcfaf8f7; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 32px #2a26220d; }
.sidebar h2, .stage-guide h2, .dialog-heading h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.5px; }
.sidebar h2 { font-size: 29px; line-height: 1.08; margin: 17px 0 21px; }
.stage-guide h2 { font-size: 30px; line-height: 1.08; }
.dialog-heading h2 { font-size: 29px; }
.eyebrow, .guide-top .eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .13em; line-height: 1.5; }
.journey-tabs, .floor-tabs { background: var(--soft); border-radius: 3px; }
.journey-tabs button, .floor-tabs button { font-size: 14px; border-radius: 2px; }
.journey-tabs button.active, .floor-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #2a262217; }
.stage-btn { border-radius: 3px; font-size: 14px; line-height: 1.45; }
.stage-btn:hover, .room-btn:hover { background: var(--soft); }
.stage-btn.active { background: var(--ink); color: var(--paper); }
.step-number { color: var(--muted); border-color: var(--line); font-size: 12px; }
.stage-btn.active .step-number { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.stage-btn.completed .step-number { color: var(--accent-ink); background: var(--gold-soft); border-color: #e5c89f; }
.stage-dot, .location-dot { background: var(--accent); }
.room-btn.active { background: var(--gold-soft); }
.room-num { font-size: 12px; color: var(--muted); }
.room-btn .arrow { color: var(--accent-ink); }
.source-note, .range-labels, .label-row output { font-size: 12px; color: var(--muted); }
.label-row output { color: var(--accent-ink); }
.daylight input, .timeline-center input, .model-tools input { accent-color: var(--accent); }
.stage-guide>div>p:not(.model-note), .inspection p, .selected-part p, dialog p, dd { color: var(--muted); }
.stage-guide li { color: var(--ink); }
.stage-guide li:before { color: var(--accent-ink); border-color: #ddc6a6; font-size: 12px; }
.inspection { border-top-color: var(--line); }
.inspection .eyebrow { color: var(--accent-ink); font-size: 12px; }
.source-links button, .selected-part button:not(.part-close) { color: var(--ink); background: var(--soft); font-size: 14px; border-radius: 2px; }
.source-links button:hover, .selected-part button:not(.part-close):hover { background: var(--gold-soft); color: var(--accent-ink); }
.stage-guide .model-note { color: var(--muted); border-top-color: var(--line); }
.model-tools button, .model-tools label { background: #fcfaf8ee; color: var(--ink); border-color: var(--line); font-size: 14px; border-radius: 3px; }
.model-tools button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.location, body.walk .location { background: #fcfaf8ed; color: var(--ink); border-color: var(--line); font-size: 12px; }
.toolbar, .building .toolbar { background: #fcfaf8f5; border: 1px solid var(--line); border-radius: 5px; }
.view-toggle button, .building .toolbar button { font-size: 14px; border-radius: 3px; }
.view-toggle button.active, .primary { background: var(--ink); color: var(--paper); }
.view-toggle button:not(.active):hover, .tool-btn:hover { background: var(--soft); }
.control-hint, .building .control-hint { color: #57514a; font-size: 12px; }
.build-timeline { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 4px; }
.build-timeline button:hover { background: var(--soft); }
.build-timeline button:disabled { color: #b6b0a9; }
.timeline-center strong { font-size: 14px; }
.timeline-center span { color: var(--accent-ink); font-size: 12px; }
.minimap-title, .map-caption { color: var(--muted); font-size: 12px; }
#mapSvg .room { fill: #eee9e2; stroke: #b7afa4; }
#mapSvg .room:hover, #mapSvg .room.selected { fill: #e5c89f; }
#mapSvg text { fill: #655b4c; }
#mapMarker circle, #mapMarker path { fill: var(--accent); }
.stairs-prompt button, .touch-controls button { background: #fcfaf8ee; border-color: var(--line); }
.touch-controls button:active { background: var(--gold-soft); }
body.walk .minimap { background: #fcfaf8f5; }
.notice { background: #2a2622f5; }
.loading { background: var(--paper); color: var(--ink); }
.loading-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 42px; letter-spacing: -.8px; margin-bottom: 12px; }
.loading-brand .brand-name { font-weight: 600; }
.loading-brand .brand-division { font-weight: 400; color: var(--muted); }
.loading span:last-child { color: var(--muted); }
.loading-brand span:last-child { font-size: inherit; }
.spinner { border-color: var(--line); border-top-color: var(--accent); }
dialog { border: 1px solid var(--line); border-radius: 5px; }
dialog::backdrop { background: #201d19a9; }
dt { color: var(--ink); }
.drawing-controls select { color: var(--ink); border-color: var(--line); border-radius: 3px; }
.drawing-controls a { color: var(--accent-ink); font-size: 14px; }
.drawing-view { background: var(--soft); }
#drawingCaption { font-size: 12px; }
.primary { border-radius: 3px; }
@media (min-width:761px) and (max-width:1200px) {
  .sidebar h2 { font-size: 27px; }
  .journey-tabs button, .floor-tabs button { font-size: 13px; }
  .stage-guide h2 { font-size: 28px; }
}
@media (max-width:1000px) {
  .top-actions .concept { display: none; }
}
@media (max-width:760px) {
  .topbar { height: 72px; padding: 0 14px; gap: 8px; }
  .identity { display: block; }
  .brand-link { padding: 0; border: 0; gap: 5px; }
  .identity .brand-link span { font-size: 24px; line-height: 1; }
  .project-identity h1 { font-size: 13px; margin-top: 4px; letter-spacing: -.2px; }
  .identity .project-identity span { display: none; }
  .top-actions { gap: 5px; }
  .quiet { font-size: 13px; }
  .sidebar h2 { font-size: 27px; }
  .stage-guide h2 { font-size: 27px; }
  .stage-guide li, .stage-guide>div>p:not(.model-note) { font-size: 16px; }
  .model-tools button, .model-tools label { font-size: 12px; padding: 8px; }
  .journey-tabs button { font-size: 13px; }
  .building .toolbar button { font-size: 12px; padding: 9px; }
  .timeline-center strong { font-size: 12px; }
  .timeline-center span { font-size: 12px; }
  .guide-top .eyebrow { font-size: 12px; }
  .building .location, body.panel-hidden.building .location { font-size: 12px; }
  .minimap-title { font-size: 10px; }
  .loading-brand { font-size: 34px; }
}

.electrical-settings{padding:18px 0 4px;border-top:1px solid #ddd5c9;margin-top:16px}.electrical-actions{display:flex;gap:7px;margin-top:10px}.electrical-actions button{flex:1;border:1px solid #cfc4b3;border-radius:7px;background:#faf7f1;color:#342d25;padding:10px 6px;font:500 11px Montserrat,sans-serif;cursor:pointer}.electrical-actions button.active{background:#36312a;color:#fff;border-color:#36312a}.electrical-actions button:focus-visible,.electrical-legend button:focus-visible{outline:2px solid #aa834b;outline-offset:3px}.electrical-legend{font-size:10px;line-height:1.65;color:#70685d;margin-top:10px}.electrical-legend p{margin:8px 0}.electrical-legend>div{display:flex;flex-wrap:wrap;gap:3px 11px}.electrical-key:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#e8bb54}.electrical-key.switch:before{background:#66b0cf}.electrical-key.outlet:before{background:#c780a8}.electrical-key.panel:before{background:#9cc78b}.electrical-legend button{border:0;background:none;padding:4px 0;color:#6e512e;cursor:pointer;font:500 10px Montserrat,sans-serif}
