:root {
  color-scheme: light;
  --ink: #142521;
  --muted: #5d6c67;
  --forest: #0d332c;
  --forest-deep: #071f1b;
  --green-soft: #e7efeb;
  --gold: #b67a25;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --line: #d7ddd8;
  --error: #a52d2d;
  --light: #ffe39a;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
body::before { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 0.1875rem; content: ""; background: linear-gradient(90deg, var(--gold), #f3d996 45%, var(--gold)); }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: absolute; z-index: 200; top: 0.5rem; left: 0.5rem; padding: 0.625rem 0.875rem; transform: translateY(-150%); background: #fff; color: var(--forest); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
header { display: flex; width: min(100% - 2rem, 82rem); min-height: 5rem; margin: 0 auto; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--forest); text-decoration: none; }
.brand svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 1.125rem; }
.brand small, .step-label { margin-top: 0.25rem; color: var(--muted); font-size: 0.625rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.step-label { max-width: 8rem; text-align: right; }
main { width: min(100% - 2rem, 82rem); margin: 0 auto; padding: 2.5rem 0 5rem; }
.loading-state, .error-state { display: flex; min-height: 55vh; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.loading-state span { width: 2rem; height: 2rem; margin-bottom: 1rem; border: 0.1875rem solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { margin: 0 0 0.5rem; color: var(--gold); font-size: 0.6875rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, p { text-wrap: pretty; }
h1, .page-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.75rem, 10vw, 5.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.error-state h1 { max-width: 12ch; }
.error-state > p:not(.eyebrow) { max-width: 34rem; color: var(--muted); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.property-meta { display: flex; flex-direction: column; color: var(--muted); font-size: 0.75rem; }
.property-meta strong { color: var(--forest); font-size: 1rem; }
.property-meta code { max-width: 18rem; margin-top: 0.25rem; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.625rem; }
.prototype-notice { margin-top: 1.5rem; padding: 0.875rem 1rem; border-left: 0.25rem solid var(--gold); background: #fff3d8; color: #644416; font-size: 0.75rem; }
.prototype-notice strong { display: block; margin-bottom: 0.125rem; font-size: 0.625rem; letter-spacing: 0.1em; }
.design-layout { display: grid; min-width: 0; margin-top: 2rem; gap: 1rem; }
.canvas-panel, .controls-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.panel-heading { display: flex; padding: 1rem; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-heading > div { display: flex; flex-direction: column; }
.panel-heading span { color: var(--muted); font-size: 0.625rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-heading h2 { margin: 0.125rem 0 0; font-family: Georgia, serif; font-size: 1.375rem; font-weight: 500; }
.prototype-badge { padding: 0.25rem 0.5rem; border: 1px solid #c79a4f; border-radius: 999px; color: #805813 !important; background: #fff8e8; text-align: center; }
.property-canvas { position: relative; min-height: 22rem; background: var(--forest-deep); overflow: hidden; }
.property-canvas > img, .property-canvas > video, .fallback-property, .fallback-property > img { display: block; width: 100%; height: 100%; }
.property-canvas > img, .property-canvas > video, .fallback-property { position: absolute; inset: 0; object-fit: cover; }
.fallback-property > img { object-fit: cover; }
.fallback-property > span, .canvas-caption { position: absolute; z-index: 4; bottom: 0.75rem; left: 0.75rem; max-width: calc(100% - 1.5rem); padding: 0.375rem 0.5rem; border-radius: var(--radius-sm); background: rgba(7, 31, 27, 0.86); color: #fff; font-size: 0.625rem; font-weight: 700; }
.canvas-caption { right: 0.75rem; left: auto; }
.light-overlays { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zone-overlay { opacity: 0; transition: opacity 220ms ease; }
.zone-overlay.active { opacity: 1; }
.lit-line { fill: none; stroke: var(--light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #ffd060); vector-effect: non-scaling-stroke; }
.light-dots { fill: #fff0b8; filter: drop-shadow(0 0 8px #ffd060); }
.full-property { fill: rgba(255, 218, 118, 0.08); stroke: #ffe6a1; stroke-width: 4; filter: drop-shadow(0 0 10px #ffce55); vector-effect: non-scaling-stroke; }
.canvas-legend { display: flex; padding: 0.75rem 1rem; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 0.25rem; color: var(--muted); font-size: 0.6875rem; }
.canvas-legend span:first-child { color: var(--ink); font-weight: 700; }
.canvas-legend i { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.25rem; border-radius: 50%; background: var(--light); box-shadow: 0 0 0.375rem #e5a729; }
.control-section { padding: 1.25rem; }
.control-section + .control-section { border-top: 1px solid var(--line); }
.control-heading { display: grid; margin-bottom: 1rem; grid-template-columns: 1.75rem 1fr; gap: 0.625rem; }
.control-heading > span { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border: 1px solid #c9b489; border-radius: 50%; color: var(--gold); font-size: 0.6875rem; font-weight: 800; }
.control-heading h2 { margin: 0; font-size: 0.9375rem; }
.control-heading p { margin: 0.125rem 0 0; color: var(--muted); font-size: 0.6875rem; }
fieldset { margin: 0; padding: 0; border: 0; }
.zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.zone-grid label { position: relative; cursor: pointer; }
.zone-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone-grid span { display: flex; min-height: 2.75rem; padding: 0.625rem; align-items: center; justify-content: center; border: 1px solid #c9d1cc; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.75rem; font-weight: 700; text-align: center; }
.zone-grid input:checked + span { border-color: var(--forest); background: var(--green-soft); color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.zone-grid input:focus-visible + span, input[type="range"]:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid rgba(182, 122, 37, 0.38); outline-offset: 2px; }
.field-error { min-height: 1rem; margin: 0.25rem 0 0; color: var(--error); font-size: 0.6875rem; font-weight: 700; }
.budget-output { display: flex; margin-top: 0.5rem; align-items: baseline; justify-content: space-between; }
.budget-output span { color: var(--muted); font-size: 0.6875rem; }
.budget-output output { color: var(--forest); font-family: Georgia, serif; font-size: 2rem; }
input[type="range"] { width: 100%; height: 0.375rem; margin: 1rem 0 0.25rem; border-radius: 999px; accent-color: var(--gold); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.625rem; }
.recommendation { margin: 0 1.25rem 1.25rem; padding: 1.25rem; border-radius: var(--radius-sm); background: var(--forest-deep); color: #fff; }
.package-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.package-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.package-heading span { padding: 0.25rem 0.4375rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #c9d9d4; font-size: 0.5625rem; letter-spacing: 0.08em; }
#package-scope { margin: 0.75rem 0 0; color: #b9c9c4; font-size: 0.75rem; }
.included-zones { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); }
.included-zones > span { color: #91aaa3; font-size: 0.625rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.included-zones ul { display: flex; margin: 0.5rem 0 0; padding: 0; flex-wrap: wrap; gap: 0.375rem; list-style: none; }
.included-zones li { padding: 0.25rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 0.6875rem; }
.approval-notice { display: flex; margin-top: 1rem; padding: 0.75rem; flex-direction: column; border-left: 0.1875rem solid var(--gold); background: rgba(255,255,255,.07); }
.approval-notice strong { color: #ffe5a4; font-size: 0.6875rem; text-transform: uppercase; }
.approval-notice span { color: #b9c9c4; font-size: 0.625rem; }
.save-status { margin: 0 1.25rem; padding: 0.75rem; border-left: 0.1875rem solid #2d8c66; background: var(--green-soft); color: var(--forest); font-size: 0.75rem; }
.button { display: inline-flex; min-height: 3rem; padding: 0.75rem 1.125rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--forest); color: #fff; }
.button-secondary { border-color: var(--forest); background: #fff; color: var(--forest); }
.button:disabled { cursor: wait; opacity: 0.65; }
.save-button { width: calc(100% - 2.5rem); margin: 1rem 1.25rem 1.25rem; }
.customer-next-step { display: flex; margin: 0 1.25rem 1.25rem; padding-top: 1rem; align-items: stretch; flex-direction: column; gap: 0.625rem; border-top: 1px solid var(--line); }
.customer-next-step > span { color: var(--muted); font-size: 0.6875rem; font-weight: 750; }
.internal-handoff { display: flex; margin: 0 1.25rem 1.25rem; padding-top: 1rem; align-items: stretch; flex-direction: column; gap: 0.625rem; border-top: 1px solid var(--line); }
.internal-handoff > span { color: var(--muted); font-size: 0.625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (min-width: 42rem) {
  header, main { width: min(100% - 3rem, 82rem); }
  .step-label { max-width: none; }
  .property-canvas { min-height: 32rem; }
  .canvas-legend { align-items: center; flex-direction: row; }
  .zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .design-layout { grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.75fr); }
  .canvas-panel { align-self: start; position: sticky; top: 1rem; }
  .property-canvas { min-height: 38rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
