:root {
  color-scheme: light;
  --ink: #10282d;
  --body: #425653;
  --muted: #50635f;
  --gold: #34674f;
  --gold-bright: #a8c5b8;
  --paper: #f3f6f4;
  --line: #dae4df;
  --white: #ffffff;
  font: 16px/1.5 Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #34674f; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .layout, .site-footer { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: clamp(162px, 21vw, 250px); height: auto; }
.site-nav, .site-footer > div { display: flex; align-items: center; gap: clamp(13px, 2.6vw, 32px); }
.site-nav a { font-size: .88rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.banner { background: #10282d; position: relative; overflow: hidden; isolation: isolate; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#10282d 0%,#10282d 34%,#10282dd9 49%,#10282d26 77%,#10282d08 100%), url("/assets/images/hero-house.9a941dc82e13dfc3.webp") right 53% / auto 147% no-repeat; }
.banner[data-building="business"]::before { background-image: linear-gradient(90deg,#10282d 0%,#10282d 34%,#10282dd9 49%,#10282d26 77%,#10282d08 100%), url("/assets/images/hero-kmu.80c9c8cec7f71825.webp"); }
.intro { width: min(1200px, calc(100% - 88px)); margin-inline: auto; color: #fff; padding: clamp(34px, 5vw, 65px) 0; }
.eyebrow { color: #a3c8b8; font-size: .72rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 12px; }
h1 { font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 750; line-height: 1.03; letter-spacing: -.045em; }
.intro p { max-width: 48ch; font-size: 1rem; color: #dce7e4; margin-top: 17px; line-height: 1.55; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 274px); gap: 24px; grid-template-areas: "wizard side"; padding: 29px 0 45px; align-items: start; }
.sidebar { grid-area: side; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid #5c927b; background: var(--white); }
.sidebar::before { display: block; content: ""; aspect-ratio: 3 / 1; background: url("/assets/images/hero-house.9a941dc82e13dfc3.webp") 78% 58% / cover; }
.banner[data-building="business"] + .layout .sidebar::before { background-image: url("/assets/images/hero-kmu.80c9c8cec7f71825.webp"); }
.sidebar-summary { padding: 20px 22px 23px; }
.sidebar-summary h2 { font-size: .98rem; font-weight: 730; margin-bottom: 7px; }
.live-summary { color: var(--muted); font-size: .845rem; }
.live-summary p + p { margin-top: 8px; }
.live-summary strong { color: var(--ink); font-weight: 650; }
.wizard { grid-area: wizard; border: 1px solid var(--line); background: var(--white); border-radius: 10px; min-width: 0; box-shadow: 0 12px 36px #1f273107; }
.steps { padding: 19px 25px 18px; border-bottom: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; gap: 9px; }
.steps ol:has(li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { min-width: 0; }
.steps button { display: flex; flex-direction: column; width: 100%; align-items: flex-start; text-align: left; background: transparent; border: 0; color: #53606a; font-weight: 640; font-size: .76rem; padding: 0; line-height: 1.28; }
.steps button:disabled { cursor: default; }
.steps button::before { content: ""; display: block; width: 100%; height: 3px; background: #e0eae4; border-radius: 10px; margin-bottom: 8px; }
.steps .current { color: var(--gold); font-weight: 780; }
.steps .current::before { background: #3f765f; }
.steps .done::before { background: #a3c0b1; }
.step-content { padding: 28px 25px 23px; }
.step-content h2 { font-size: clamp(1.52rem, 3.3vw, 2rem); letter-spacing: -.045em; line-height: 1.16; }
.step-content .lead { color: var(--body); margin: 7px 0 21px; font-size: .94rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .section-label { font-weight: 720; margin-bottom: 9px; padding: 0; font-size: .935rem; }
fieldset + fieldset, .sub-section + .sub-section { margin-top: 21px; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.options:has(.option:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option { position: relative; display: flex; flex-direction: column; gap: 0; min-height: 102px; border: 1px solid #d6e3da; border-radius: 11px; padding: 11px 10px; background: #ffffff; font-size: .865rem; font-weight: 700; cursor: pointer; }
.option small { color: var(--muted); font-weight: 500; font-size: .74rem; margin-top: 1px; }
.option input, .chip input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option:hover, .chip:hover { border-color: #5b9077; }
.option:has(input:checked), .chip:has(input:checked) { background: #e9f3ed; border-color: #568168; color: #255240; }
.option:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 3px solid #3f765f; outline-offset: 2px; }
.option::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #879a90; position: absolute; right: 10px; top: 12px; pointer-events: none; }
.option:has(input:checked)::after { border: 3px solid #f2f9f5; outline: 1px solid #34674f; background: #34674f; }
.icon { width: 24px; height: 24px; display: inline-grid; place-items: center; font: 600 1.15rem/1 system-ui, sans-serif; color: var(--gold); }
.option .icon { margin-bottom: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; padding: 9px 13px; background: var(--white); border: 1px solid #d6e3da; color: var(--ink); border-radius: 999px; font-size: .875rem; font-weight: 650; min-height: 40px; }
.chip:has(input:checked)::before { content: "✓"; margin-right: 5px; }
.wizard-actions { border-top: 1px solid var(--line); min-height: 75px; padding: 13px 25px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wizard-actions > :last-child { margin-left: auto; }
button.primary, button.secondary, button.tertiary, a.primary { border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-size: .875rem; font-weight: 730; min-height: 44px; }
button.primary, a.primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: #376e56; text-decoration: none; }
button.primary:hover, a.primary:hover { background: #315c4c; }
button.secondary { background: var(--white); border-color: #d3e1d7; color: var(--ink); }
button.secondary:hover { border-color: var(--gold); }
button.tertiary, .underlined { color: var(--gold); background: transparent; }
button.tertiary:hover, .underlined:hover { text-decoration: underline; }
.feedback { font-size: .85rem; color: #7d401e; margin: 0 25px 15px; }
.feedback:empty { display: none; }
.deck { background: #edf5f0; border: 1px solid #d9e7dd; padding: 18px 19px 16px; border-radius: 14px; touch-action: pan-y; }
.deck-progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .78rem; font-weight: 700; color: var(--gold); }
.deck-dots { display: flex; gap: 4px; }
.deck-dots i { width: 11px; height: 4px; border-radius: 8px; background: #c9ded2; }
.deck-dots i.filled { background: #478369; }
.deck-icon { display: grid; place-items: center; height: 49px; width: 49px; margin: 18px 0 9px; background: #dcebe2; border-radius: 12px; }
.deck-icon .icon { font-size: 1.55rem; }
.deck h3 { font-size: 1.48rem; letter-spacing: -.04em; }
.deck p { color: var(--body); margin: 5px 0 15px; }
.deck-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.deck-actions button { margin: 0; }
.deck-actions .picked { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.deck-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.deck-footer .tertiary { padding-inline: 3px; }
.form-fields, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-fields .wide { grid-column: 1/-1; }
.form-fields label, .pair label { display: block; font-size: .865rem; font-weight: 680; }
.form-fields label span, .pair label span { color: var(--muted); font-weight: 500; }
input:not([type=radio]):not([type=checkbox]), textarea, select { display: block; width: 100%; padding: 9px 10px; margin-top: 4px; border: 1px solid #cbdad1; background: var(--white); border-radius: 8px; color: var(--ink); min-height: 44px; }
textarea { resize: vertical; min-height: 84px; }
.assist { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.room-list { list-style: none; padding: 0; margin: 0 0 10px; }
.room-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; margin-bottom: 7px; }
.room-row .room-info { min-width: 0; overflow-wrap: anywhere; }
.room-row strong, .room-row span { display: block; }
.room-row span { font-size: .79rem; color: var(--muted); }
.room-row button.tertiary { padding: 5px 6px; min-height: 38px; }
.review { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); margin: 0 0 19px; overflow: hidden; }
.review > div { display: grid; grid-template-columns: minmax(90px, 122px) minmax(0, 1fr); gap: 8px; padding: 9px 12px; background: #f5f8f6; font-size: .875rem; }
.review dt { font-weight: 700; }
.review dd { margin: 0; color: var(--body); overflow-wrap: anywhere; white-space: pre-line; }
.finish-note { font-size: .84rem; color: var(--body); margin-top: 15px; }
.dialog-header, .dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-header { margin-bottom: 18px; }
.dialog-header h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
dialog { border: 1px solid var(--line); border-radius: 15px; padding: 21px; width: min(100% - 24px, 485px); background: var(--white); color: var(--ink); }
dialog::backdrop { background: #10282da8; }
.close-button { border: 0; border-radius: 5px; background: transparent; color: var(--ink); height: 44px; width: 44px; font-size: 1.5rem; }
.room-counts { margin-top: 17px; }
.count-row { display: grid; grid-template-columns: 1fr 38px 36px 38px; align-items: center; gap: 5px; margin-bottom: 5px; font-size: .875rem; font-weight: 660; }
.count-row output { text-align: center; }
.count-row button { border: 1px solid var(--line); border-radius: 5px; height: 36px; background: #edf5f0; color: var(--ink); font-size: 1.05rem; }
.count-row button:disabled { opacity: .45; cursor: default; }
.site-footer { border-top: 1px solid var(--line); padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.site-footer a { font-weight: 700; text-decoration: none; }
@media (max-width: 950px) {
  .header-inner, .layout, .site-footer { width: calc(100% - 52px); }
  .layout { grid-template-columns: minmax(0, 1fr) 244px; column-gap: 20px; padding-top: 36px; }
  .intro { width: calc(100% - 52px); }
  .step-content, .wizard-actions, .steps { padding-inline: 17px; }
}
@media (max-width: 700px) {
  .header-inner, .layout, .site-footer { width: calc(100% - 30px); }
  .header-inner { min-height: 62px; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "wizard" "side"; gap: 16px; padding-block: 18px 28px; }
  .intro { width: calc(100% - 30px); padding-block: 33px; }
  .intro p { max-width: 40ch; font-size: .94rem; }
  .banner::before, .banner[data-building="business"]::before {
    background-size: auto, auto 106%;
    background-position: center, 62% center;
  }
  .banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #10282d54; }
  .sidebar-summary { padding: 15px 13px; }
  .sidebar::before { display: none; }
}
@media (max-width: 520px) {
  .site-nav a:first-child, .site-nav a:nth-child(3) { display: none; }
}
@media (max-width: 520px), (min-width: 701px) and (max-width: 868px) {
  .options:has(.option:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 410px) {
  .options { gap: 5px; }
  .option { font-size: .75rem; min-height: 104px; padding: 9px 6px; }
  .option small { font-size: .68rem; }
  .option::after { right: 6px; top: 9px; }
  .steps { padding-inline: 11px; }
  .steps ol { gap: 5px; }
  .steps button { font-size: .62rem; }
  .step-content, .wizard-actions { padding-inline: 12px; }
  .feedback { margin-inline: 12px; }
  .form-fields, .pair { gap: 9px; }
}

.dashboard { margin-bottom: 22px; background: #101820; color: #f2f5f4; border: 1px solid #34434a; border-radius: 15px; padding: 18px; }
.dashboard-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: start; justify-content: space-between; margin-bottom: 14px; }
.dashboard-header h3 { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.25; }
.dashboard-header p { color: #aebec0; font-size: .8rem; margin-top: 4px; }
.dashboard-badge { border: 1px solid #6e644b; color: #e6d2a7; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.dashboard-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.dashboard-summary > div { background: #18232b; border: 1px solid #34434a; border-radius: 9px; padding: 7px 9px; }
.dashboard-summary dt { color: #b7c8c9; font-size: .75rem; }
.dashboard-summary dd { margin: 0; color: #ead5af; font-size: 1.15rem; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dashboard h4 { font-size: .9rem; margin: 15px 0 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.dashboard-tile { display: flex; flex-direction: column; align-items: flex-start; min-height: 83px; gap: 4px; border-radius: 9px; padding: 9px 10px; border: 1px solid #34434a; text-align: left; background: #1a252d; color: #f0f4f2; font-size: .8rem; overflow-wrap: anywhere; }
.dashboard-tile .icon { width: 19px; height: 19px; color: #dbc69c; }
.dashboard-tile[aria-pressed="true"] { border-color: #c09c62; background: #2e2b24; }
.dashboard-tile small { color: #bbcbcb; font-weight: normal; }
.dashboard-tile[aria-pressed="true"] small { color: #e7d3ac; }
.dashboard-tile:focus-visible, .dashboard a:focus-visible { outline-color: #e1c491; }
.dashboard-flow { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; padding: 9px; border: 1px solid #34434a; border-radius: 9px; background: #18232b; color: #f1f5f3; }
.dashboard-flow span { padding: 4px 7px; font-size: .81rem; }
.dashboard-flow i { color: #e1c491; font-style: normal; }
.dashboard-note { font-size: .8rem; color: #afc2c2; margin: 10px 0 0; }
.dashboard-link { display: inline-block; color: #e6d1a7; font-weight: 650; font-size: .82rem; margin-top: 11px; }
@media (max-width: 515px) {
  .dashboard { padding: 13px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
