:root {
  color-scheme: light;
  --ink: #151b2a;
  --muted: #515e73;
  --subtle: #677389;
  --line: #d6dce6;
  --paper: #fff;
  --canvas: #f3f5f8;
  --accent: #414bdd;
  --accent-dark: #303abd;
  --accent-soft: #f1f2ff;
  --radius: 17px;
  --pad: clamp(19px, 2.2vw, 34px);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; color: inherit; }
button, summary, select, .option-card { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
button { appearance: none; background: none; border: 0; }
button:disabled { cursor: default; }
button, a, summary, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #707df2; outline-offset: 4px; }
h1:focus, .config-layout:focus, #main:focus { outline: none; }
button, a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
h1, h2, p, dl, dd, fieldset { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1336px, calc(100% - 80px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip { position: absolute; top: 7px; left: 10px; padding: 10px 16px; z-index: 10; background: #fff; color: var(--ink); border-radius: 6px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { background: #171c29; color: #fff; }
.mast-inner { min-height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.brand-lockup { width: 141px; display: grid; }
.brand-lockup img { display: block; grid-area: 1 / 1; width: 100%; height: auto; }
.brand-type { filter: brightness(0) invert(1); clip-path: inset(0 0 0 33%); }
.app-title { border-left: 1px solid #444b5b; padding-left: 23px; font-size: 17px; font-weight: 560; letter-spacing: -.035em; }
.step-nav { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 22px; overflow: visible; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.step-tab { display: flex; position: relative; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-size: 14px; font-weight: 570; color: #545f71; border-radius: 10px; padding: 5px 8px; }
.step-tab:not(:last-child)::after { content: ''; position: absolute; right: 0; height: 19px; border-right: 1px solid #d8dce6; }
.step-tab:enabled:hover { background: #f6f7fc; }
.step-tab.is-active { color: var(--accent-dark); font-weight: 680; }
.step-tab.is-active::before { content: ''; position: absolute; bottom: -1px; height: 3px; background: var(--accent); width: 48%; border-radius: 3px 3px 0 0; }
.step-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #d8dce6; color: #657188; font-size: 11px; font-variant-numeric: tabular-nums; }
.step-mark b { font-weight: 620; }
.is-active .step-mark { background: var(--accent); color: #fff; border-color: var(--accent); }
.is-past .step-mark { background: #e9ecfd; color: var(--accent-dark); border-color: #d6dcff; }
.config-layout { margin-top: clamp(22px, 2.1vw, 32px); }
.page-heading { margin: 0 0 20px; }
h1, h2, .gallery-model, .board-metric strong, .housing-size dd, .diagonal-value { font-variant-numeric: lining-nums tabular-nums; }
.page-heading h1, .empty-state h1 { font-size: clamp(31px, 3.05vw, 48px); line-height: 1.1; letter-spacing: -.055em; font-weight: 650; }
h2 { font-size: 22px; font-weight: 640; letter-spacing: -.038em; line-height: 1.22; }
.housing-grid, .matrix-grid { display: grid; align-items: start; gap: clamp(14px, 1.35vw, 21px); }
.housing-grid { grid-template-columns: minmax(0,1.48fr) minmax(0,1.02fr) minmax(228px,.78fr); grid-template-areas: "gallery facts choice"; }
.panel-surface, .bill, .matrix-decision, .gallery-card, .housing-facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-card { grid-area: gallery; min-width: 0; overflow: hidden; padding: 16px clamp(14px,1.6vw,24px) 19px; background: radial-gradient(ellipse at 50% 40%, #fff 14%, #f9fafc 68%, #edf1f5 100%); }
.gallery-header, .view-legend, .section-heading { display: flex; align-items: center; gap: 10px; }
.gallery-header, .view-legend { justify-content: space-between; }
.gallery-header h2 { color: #41516b; font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.gallery-model { margin-top: 3px; font-size: clamp(29px,2.5vw,39px); line-height: 1.1; letter-spacing: -.055em; font-weight: 630; }
.part-id, .count-pill { display: inline-flex; align-items: center; width: fit-content; height: fit-content; }
.series-name { color: #4755a2; font-size: 13px; font-weight: 590; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #cbd3e1; background: #ffffffd9; color: #38435a; border-radius: 9px; text-decoration: none; }
.icon-button:hover { background: #fff; border-color: #707ec2; color: var(--accent-dark); }
.icon-button .icon { width: 17px; height: 17px; }
.visual-canvas { position: relative; height: clamp(220px, 20.8vw, 318px); margin: 9px 0 8px; display: grid; place-items: center; overflow: hidden; }
#product-image { position: absolute; inset: -7% -2%; width: 104%; height: 114%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.frame-corner { position: absolute; width: 14px; height: 14px; border-color: #c7cfdd; border-style: solid; z-index: 1; pointer-events: none; }
.frame-corner.tl { left: 0; top: 4px; border-width: 1px 0 0 1px; }
.frame-corner.br { right: 0; bottom: 4px; border-width: 0 1px 1px 0; }
.view-legend { padding: 0 1px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.view-name { font-weight: 560; }
.view-count { font-variant-numeric: tabular-nums; }
.view-count span { color: #8c98a9; margin: 0 2px; }
.views { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.view-button { width: 100%; height: clamp(34px, 3vw, 49px); display: grid; place-items: center; background: #fff; border: 1px solid #d5dbe5; border-radius: 6px; padding: 4px; }
.view-button img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.view-button:hover { border-color: #8f9bc8; }
.view-button[aria-pressed=true] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.part-id { font-size: 11px; font-weight: 600; letter-spacing: .025em; white-space: nowrap; padding: 3px 8px; font-variant-numeric: tabular-nums; border: 1px solid #d7deea; border-radius: 5px; color: #4b586f; background: #f6f8fb; }
.housing-facts { grid-area: facts; min-width: 0; padding: clamp(19px,1.8vw,27px); }
.housing-identity { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.housing-article { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; color: var(--muted); margin-top: 9px; font-size: 12px; }
.housing-article b { color: #34445f; font-weight: 600; letter-spacing: .035em; }
.housing-size { margin-top: 17px; }
.housing-size dt { color: var(--muted); font-size: 12px; }
.housing-size dd { color: #202d45; font-size: clamp(18px,1.55vw,23px); font-weight: 595; line-height: 1.3; margin-top: 4px; letter-spacing: -.04em; }
.size-note { color: var(--subtle); margin-top: 4px; font-size: 12px; line-height: 1.45; }
.housing-minis { margin-top: 17px; }
.housing-minis div { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid #e5e9ef; font-size: 13px; }
.housing-minis dt { color: var(--muted); }
.housing-minis dd { color: #22304a; text-align: right; font-weight: 580; overflow-wrap: anywhere; }
.housing-minis div:last-child { padding-bottom: 0; }
.housing-facts .note { margin-top: 16px; }
.gallery-fallback { display: grid; place-content: center; gap: 15px; text-align: center; min-height: 248px; }
.gallery-fallback .icon { margin: auto; width: 48px; height: 48px; }
.matrix-decision { padding: var(--pad); container: matrix / inline-size; }
.decision { grid-area: choice; padding: clamp(14px,1.3vw,20px); min-width: 0; box-shadow: 0 4px 14px #1e2b4007; }
.field { border: none; padding: 0; min-width: 0; }
.field + .field { margin-top: 14px; }
.field legend { padding: 0; font-size: 13px; font-weight: 635; letter-spacing: -.015em; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.field-size .choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
.field-brightness .choices { grid-template-columns: repeat(5,minmax(0,1fr)); }
.choice { min-width: 0; min-height: 33px; border: 1px solid #cbd3df; color: #344058; background: #fff; font-size: 13px; font-weight: 540; border-radius: 6px; padding: 4px; }
.choice:enabled:hover { border-color: #91a0d9; background: #f7f8fe; }
.choice:disabled { border: 1px dashed #c4ccd7; color: #687484; background: #f0f2f5; }
.availability-key { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #617086; margin-top: 11px; }
.availability-key::before { content: ''; width: 13px; height: 11px; border: 1px dashed #a3adbb; border-radius: 3px; background: #f0f2f5; }
.decision .selection-actions { margin-top: 14px; padding-top: 12px; }
.decision .continue-button { width: 100%; min-height: 39px; padding: 8px 10px; }
.choice:focus-visible { outline-width: 2px; outline-offset: 2px; }
.choice[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: #343db1; box-shadow: inset 0 0 0 1px var(--accent); font-weight: 640; }
.note { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; color: #4c596e; font-size: 13px; line-height: 1.55; }
.note .icon { width: 16px; height: 16px; margin-top: 2px; }
.selection-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 24px; }
.primary, .back, .edit-result { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 9px; }
.primary { color: white; background: var(--accent); padding: 11px 20px; box-shadow: 0 3px 7px #232e8019; }
.primary:hover:enabled { background: var(--accent-dark); }
.primary:disabled { background: #e0e4ee; color: #5a657d; box-shadow: none; }
.continue-button { margin-left: auto; }
.continue-button .icon { width: 18px; }
.back { color: #4b5870; padding-inline: 4px 13px; }
.back .icon { width: 16px; }
.back:hover { color: var(--accent-dark); }
.matrix-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.matrix-sheet { color: #f1f5ff; border: 1px solid #263958; border-radius: var(--radius); overflow: hidden; background: #19253e; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px var(--pad); border-bottom: 1px solid #3b4a65; background: #1d2942; }
.sheet-head > span:first-child { display: inline-flex; gap: 9px; align-items: center; font-weight: 570; }
.sheet-head .icon { color: #acbaff; width: 18px; height: 18px; }
.sheet-housing { font-size: 13px; color: #c8d2e7; }
.blueprint { display: grid; place-items: center; padding: 50px 48px 40px; min-height: 250px; background-color: #16223c; background-image: radial-gradient(ellipse at 44% 47%,#35477373,transparent 73%),linear-gradient(#9bbaf60c 1px, transparent 1px),linear-gradient(90deg,#9bbaf60c 1px,transparent 1px); background-size: auto, 21px 21px, 21px 21px; }
.screen-plan { width: min(88%,365px); aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; border: 1px solid #a1b3e5; border-radius: 2px; box-shadow: 0 0 0 4px #94b0ff0b; background: linear-gradient(125deg,#687ebf18,#7e93df0d); }
.screen-inset { position: absolute; inset: 5px; border: 1px solid #758cc06b; }
.diagonal { position: absolute; inset: 6px; background: linear-gradient(to bottom right,transparent calc(50% - .55px),#99b0fa 50%,transparent calc(50% + .55px)); opacity: .8; }
.diagonal::before, .diagonal::after { content: ''; position: absolute; width: 7px; height: 7px; border-color: #bbccf6; border-style: solid; }
.diagonal::before { right: 0; top: 0; border-width: 1px 1px 0 0; }
.diagonal::after { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.diagonal-value { position: relative; font-size: clamp(39px, 4.4vw, 67px); font-weight: 510; line-height: 1.05; letter-spacing: -.065em; color: #f4f6ff; padding: 0 .12em; background: #263452; }
.diagonal-value span { font-weight: 430; font-size: .67em; vertical-align: top; }
.dim-horizontal, .dim-vertical { position: absolute; font-size: 11px; font-weight: 570; letter-spacing: .02em; color: #d0dcff; line-height: 1.3; white-space: nowrap; }
.dim-horizontal { top: -23px; left: 0; width: 100%; border-bottom: 1px solid #7386ad; text-align: center; padding-bottom: 2px; }
.dim-vertical { left: calc(100% + 9px); top: 0; height: 100%; padding-left: 2px; border-left: 1px solid #7386ad; writing-mode: vertical-rl; text-align: center; }
.sheet-spec, .board-context { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.sheet-spec { gap: 14px; border-top: 1px solid #3a4a67; padding: 17px var(--pad) 18px; background: #1d2942; }
.sheet-spec div + div, .board-context div + div { border-left: 1px solid #43506c; padding-left: clamp(12px,1.8vw,26px); }
.sheet-spec dt, .board-context dt { color: #b8c6df; font-size: 12px; margin-bottom: 3px; }
.sheet-spec dd, .board-context dd { font-weight: 575; font-size: clamp(14px,1.2vw,18px); letter-spacing: -.02em; }
.section-heading { margin-bottom: 16px; }
.matrix-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: -6px 0 14px; font-size: 12px; line-height: 1.45; color: #47536b; }
.comparison-key { display: inline-flex; align-items: center; gap: 6px; }
.missing-key { display: inline-flex; align-items: baseline; gap: 6px; }
.pending-fact { color: #596679; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.comparison-key::before, .matrix-card [data-varies] > :first-child::before { content: ''; width: 0; height: .85em; border-left: 3px solid #287269; border-radius: 2px; }
.matrix-card [data-varies] > :first-child { position: relative; }
.matrix-card [data-varies] > :first-child::before { position: absolute; left: -8px; top: .22em; }
.count-pill { padding: 2px 8px; background: #f0f2f8; border-radius: 7px; font-size: 13px; color: #4f5b72; }
.matrix-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid #d7deeb; border-radius: 8px; background: #d7deeb; }
.matrix-metric { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 3px; padding: 8px 12px; min-width: 0; background: #f1f4f9; }
.metric-label { color: #46546c; font-weight: 510; font-size: 12px; line-height: 1.35; }
.matrix-metric strong { color: #172842; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container matrix (max-width: 380px) {
  .matrix-metrics { grid-template-columns: minmax(0,1fr); }
  .matrix-metric { flex-direction: row; align-items: baseline; gap: 8px; padding: 6px 11px; }
  .matrix-metric strong { font-size: 16px; text-align: right; }
}
.matrix-options { display: grid; gap: 9px; }
.option-card { position: relative; border: 1px solid #cfd6e2; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.option-card:hover { border-color: #8d9cc8; }
.option-card:has(> .native-radio:checked) { border-color: var(--accent); background: #f5f6ff; box-shadow: inset 0 0 0 1px var(--accent); }
.option-card:has(> .native-radio:focus-visible) { outline: 3px solid #8591f3; outline-offset: 3px; }
.native-radio, .radio-mark { position: absolute; top: 16px; right: 16px; width: 23px; height: 23px; margin: 0; }
.native-radio { opacity: 0; cursor: pointer; z-index: 2; }
.radio-mark { display: grid; place-items: center; border: 1.5px solid #afbacd; border-radius: 50%; background: #fff; pointer-events: none; }
.radio-mark .icon { width: 15px; height: 15px; opacity: 0; stroke-width: 2.6; }
.native-radio:checked + .radio-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.native-radio:checked + .radio-mark .icon { opacity: 1; }
.matrix-card { display: block; padding: 17px 18px; }
.matrix-card .option-title { padding-right: 32px; overflow-wrap: normal; }
.matrix-edition { display: block; margin-top: 5px; color: #285952; font-size: 15px; font-weight: 600; line-height: 1.4; }
.card-content, .option-title, .option-code, .card-note { display: block; }
.option-title { font-size: 18px; font-weight: 640; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.option-code { margin-top: 4px; color: #58657c; font-size: 12px; font-weight: 510; letter-spacing: .02em; }
.card-spec { display: grid; gap: 4px; margin-top: 10px; padding-inline: 12px; font-size: 13px; line-height: 1.45; color: #34445b; }
.card-spec-row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); column-gap: 10px; }
.card-spec-row b { color: var(--muted); font-weight: 500; }
@container matrix (max-width: 380px) {
  .card-spec-row { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
}
.card-note { margin-top: 7px; line-height: 1.5; color: var(--muted); font-size: 13px; }
.engineer-symbol { width: 36px; height: 36px; display: inline-grid; flex: none; place-items: center; border-radius: 9px; background: #e8ecfb; color: #4b56ab; }
.engineer-symbol .icon { width: 20px; height: 20px; }
.board-context { background: #212b40; color: #f3f5fc; border-radius: 13px; grid-auto-columns: 1fr; gap: 16px; padding: 16px var(--pad); }
.board-decision { margin-top: 18px; }
.board-hint { color: var(--muted); font-size: 13px; margin: 0 0 13px 2px; }
.board-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 14px; }
.board-alternative { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0 0 16px; padding: 10px 16px; font-size: 14px; line-height: 1.5; border-radius: 9px; background: #edf1fa; color: #344363; }
.board-alternative .back { color: var(--accent-dark); font-size: 13px; padding: 4px 0; min-height: 32px; }
.not-found { margin: 14vh auto 0; max-width: 540px; padding: 28px; }
.not-found img { width: 138px; margin-bottom: 28px; }
.not-found h1 { font-size: clamp(28px,5vw,42px); margin-bottom: 20px; }
.board-card { padding: clamp(16px,1.8vw,26px); display: flex; flex-direction: column; min-width: 0; }
.board-ident { display: block; padding-right: 35px; }
.board-card .option-title { font-size: 21px; }
.board-card .option-code { margin-top: 2px; }
.board-card .native-radio, .board-card .radio-mark { top: 21px; right: 20px; }
.board-use { color: var(--muted); font-size: 13px; font-weight: 545; margin-top: 13px; }
.board-metric { display: block; margin-top: 5px; }
.board-metric strong { display: block; color: #293553; letter-spacing: -.055em; line-height: 1.15; font-size: clamp(26px,2.25vw,35px); font-weight: 590; }
.board-metric span { display: block; margin-top: 4px; color: var(--subtle); font-size: 12px; }
.board-data { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.board-fact { display: grid; grid-template-columns: minmax(66px, .35fr) minmax(0,1fr); gap: 8px; font-size: 13px; line-height: 1.45; }
.board-fact b { font-weight: 530; color: var(--muted); }
.board-fact > span { color: #2d394f; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.engineer-choice { display: flex; align-items: center; gap: 13px; padding: 13px 50px 13px 17px; }
.board-grid + .engineer-choice { margin-top: 12px; }
.engineer-choice .native-radio, .engineer-choice .radio-mark { top: 50%; transform: translateY(-50%); right: 18px; }
.engineer-choice .option-title { font-size: 15px; letter-spacing: -.015em; }
.engineer-choice .card-note { margin-top: 2px; }
.board-decision .selection-actions { margin-top: 16px; padding-top: 15px; }
.extra-options { margin-top: 16px; border: 1px solid var(--line); padding: 16px; border-radius: 12px; background: #fff; }
.extra-options h2 { margin-bottom: 10px; }
.extra-options select { min-height: 39px; max-width: 100%; border-radius: 7px; border: 1px solid var(--line); background-color: #fff; padding-inline: 8px; }
.result-hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); overflow: hidden; border: 1px solid #cfd5e1; border-radius: var(--radius); background: #1d273d; }
.result-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(27px,3.5vw,52px); color: #fff; background: radial-gradient(ellipse at 92% 100%,#34416c 0%, transparent 66%), #1c253a; }
.document-type { display: inline-flex; align-items: center; gap: 9px; color: #cad5f0; font-size: 14px; font-weight: 530; }
.document-type .icon { width: 18px; height: 18px; color: #b4bfff; }
.result-copy h1 { margin-top: 14px; letter-spacing: -.06em; font-size: clamp(33px,3.7vw,58px); font-weight: 610; line-height: 1.09; }
.sku { margin: 13px 0 0; }
.sku span { display: block; color: #c0cce0; font-size: 12px; }
.sku strong { display: block; margin-top: 3px; font-size: clamp(15px,1.5vw,23px); font-weight: 565; letter-spacing: .015em; overflow-wrap: anywhere; }
.engineering-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 14px; color: #ffe2b0; font-weight: 550; }
.engineering-status i { width: 8px; height: 8px; border-radius: 50%; background: #f5bf67; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-top: 26px; }
.download-button { background: #dce2ff; color: #202b63; font-weight: 680; }
.download-button:hover:enabled { background: #f2f4ff; }
.edit-result { color: #f2f4ff; border: 1px solid #717d98; padding: 10px 15px; }
.edit-result:hover { background: #394660; }
.edit-result .icon, .download-button .icon { width: 17px; height: 17px; }
.result-render { position: relative; min-height: 258px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%,#fff 4%,#f4f6fa 68%,#e6eaf1); }
.result-render img { position: absolute; inset: 8% 5%; width: 90%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.result-render > .icon { width: 85px; height: 85px; color: #93a2be; }
.result-lower { margin-top: 19px; display: grid; gap: 18px; align-items: start; }
.result-lower:has(.review-note) { grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); }
.bill { padding: 21px var(--pad) 7px; min-width: 0; }
.bill .section-heading { margin-bottom: 12px; }
.bill-row { border-top: 1px solid var(--line); }
.bill-row summary { display: flex; align-items: center; gap: 12px; list-style: none; padding: 12px 0; }
.bill-row summary::-webkit-details-marker { display: none; }
.bill-row summary:hover .part-text strong { color: var(--accent-dark); }
.part-text { display: grid; gap: 3px; margin-right: auto; min-width: 0; }
.part-text strong { letter-spacing: -.018em; font-size: 15px; font-weight: 630; }
.part-text > span { color: var(--muted); font-size: 13px; }
.disclosure { display: grid; flex: none; place-items: center; width: 24px; height: 24px; color: #53617a; }
.disclosure .icon { width: 15px; }
.bill-row[open] .disclosure { transform: rotate(180deg); }
.bill-data { margin: 0 0 13px; padding: 10px 14px; background: #f4f6fa; border-radius: 8px; }
.bill-data div { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0,1fr); gap: 12px; padding-block: 4px; font-size: 13px; }
.bill-data dt { color: var(--muted); }
.bill-data dd { white-space: pre-line; overflow-wrap: anywhere; }
.review-note { font-size: 14px; padding: 21px 23px; border: 1px solid #e4d6b9; border-radius: var(--radius); background: #fbf8f0; color: #514321; }
.review-note > div { display: flex; align-items: center; gap: 8px; }
.review-note h2 { font-size: 17px; }
.review-note .icon { width: 18px; height: 18px; }
.review-note p { margin-top: 9px; line-height: 1.55; }
.site-footer { display: flex; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 27px 0 18px; padding: 13px 1px 0; border-top: 1px solid var(--line); font-size: 12px; color: #5a667b; }
.site-footer span:first-child { font-weight: 620; letter-spacing: -.03em; }
.empty-state { background: #fff; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.empty-state p { margin-top: 12px; color: var(--muted); }
.image-dialog { width: min(960px, 93vw); max-width: 96vw; max-height: 94dvh; border: none; border-radius: 15px; padding: 15px; background: #fafbfe; color: var(--ink); box-shadow: 0 24px 90px #060d2059; }
.image-dialog::backdrop { background: #111928bf; }
.image-dialog header, .image-dialog footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.image-dialog header { font-weight: 620; }
.image-dialog footer { justify-content: center; color: var(--muted); font-size: 13px; }
#dialog-image { display: block; width: 100%; height: min(61dvh,600px); object-fit: contain; mix-blend-mode: multiply; }
.toast { position: fixed; z-index: 20; bottom: 20px; left: 50%; transform: translate(-50%,8px); opacity: 0; pointer-events: none; text-align: center; width: max-content; max-width: calc(100% - 26px); padding: 11px 16px; background: #20283b; color: #fff; border-radius: 9px; font-size: 13px; box-shadow: 0 6px 20px #18264236; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (min-width: 1600px) {
  .blueprint { padding-block: 62px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .matrix-decision { padding: 20px; }
  .board-fact { grid-template-columns: 1fr; gap: 2px; }
  .board-data { gap: 10px; }
}
@media (min-width: 681px) and (max-width: 960px) {
  .housing-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); grid-template-areas: "gallery choice" "facts choice"; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 61px; }
  .step-nav { margin-top: 15px; }
  .step-tab { min-height: 49px; }
  .matrix-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .gallery-card { padding-inline: 14px; }
  .decision, .matrix-decision { padding: 16px; }
  .board-card { padding: 16px; }
  .board-card .radio-mark, .board-card .native-radio { top: 16px; right: 13px; }
  .board-grid { gap: 9px; }
  .blueprint { padding-inline: 28px; }
  .screen-plan { width: 88%; }
  .sheet-head, .sheet-spec { padding-inline: 15px; }
  .result-copy { padding: 26px; }
}
@media (max-width: 680px) {
  :root { --pad: 17px; --radius: 13px; }
  .wrap { width: calc(100% - 28px); }
  .mast-inner { min-height: 56px; gap: 12px; }
  .brand-lockup { width: 102px; }
  .app-title { padding-left: 12px; font-size: 14px; }
  .step-nav { border-radius: 9px; margin-top: 12px; }
  .step-tab { min-height: 45px; gap: 5px; font-size: 12px; padding: 4px; }
  .step-mark { width: 18px; height: 18px; font-size: 10px; }
  .step-tab.is-active::before { width: 65%; }
  .config-layout { margin-top: 20px; }
  .page-heading { margin-bottom: 13px; }
  .page-heading h1 { font-size: clamp(27px,6.9vw,37px); }
  .housing-grid, .matrix-grid, .result-hero, .result-lower:has(.review-note) { grid-template-columns: minmax(0,1fr); }
  .housing-grid { grid-template-areas: "gallery" "choice" "facts"; }
  .housing-grid, .matrix-grid { gap: 12px; }
  .gallery-card { padding: 10px 13px 12px; }
  .visual-canvas { height: clamp(160px, 42vw, 220px); margin: 3px 0 1px; }
  .views { gap: 4px; }
  .view-button { height: 32px; padding: 2px; border-radius: 4px; }
  .view-legend { font-size: 11px; margin-bottom: 5px; }
  .size-note { font-size: 11px; }
  .housing-facts { padding: 17px; }
  .housing-identity { padding-bottom: 13px; }
  .housing-minis, .housing-size { margin-top: 12px; }
  .decision, .matrix-decision { padding: 17px; }
  .field + .field { margin-top: 14px; }
  .choices { gap: 4px; }
  .field-series .choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .field-size .choices { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .choice { min-height: 41px; }
  .decision .continue-button { min-height: 43px; }
  .selection-actions { padding-top: 13px; margin-top: 18px; }
  .sheet-head { padding-block: 10px; }
  .field-series .choice { font-size: clamp(12px,3.3vw,14px); padding-inline: 3px; }
  .blueprint { min-height: 140px; padding: 25px 33px 19px; }
  .screen-plan { width: min(76%,235px); }
  .diagonal-value { font-size: 39px; }
  .sheet-spec { padding-block: 10px; }
  .dim-horizontal { top: -19px; font-size: 10px; }
  .dim-vertical { font-size: 10px; }
  .section-heading { margin-bottom: 12px; }
  h2 { font-size: 20px; }
  .board-context { padding: 11px 12px; gap: 8px; grid-template-columns: 1.03fr 1.08fr .85fr; }
  .board-context dt { font-size: 11px; }
  .board-context dd { font-size: 12px; font-weight: 570; }
  .board-context div + div { padding-left: 8px; }
  .board-grid { grid-auto-flow: row; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .board-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); column-gap: 10px; padding: 14px; }
  .board-ident { grid-area: 1 / 1; padding-right: 0; }
  .board-card .option-title { font-size: 18px; }
  .board-metric { grid-area: 1 / 2 / 3 / 3; margin: 0; padding-right: 20px; }
  .board-metric strong { font-size: 20px; line-height: 1.25; }
  .board-metric span { font-size: 11px; line-height: 1.3; }
  .board-use { grid-area: 2 / 1; margin-top: 5px; font-size: 12px; }
  .board-ident .option-code { font-size: 10px; }
  .board-card .native-radio, .board-card .radio-mark { width: 19px; height: 19px; top: 13px; right: 11px; }
  .board-data { grid-column: 1 / -1; padding-top: 10px; margin-top: 10px; gap: 3px; }
  .board-fact { grid-template-columns: 80px minmax(0,1fr); gap: 5px; font-size: 12px; }
  .board-card > .card-note { grid-column: 1 / -1; }
  .engineer-choice { gap: 9px; padding: 11px 43px 11px 12px; }
  .engineer-choice .card-note { font-size: 12px; }
  .result-copy { padding: 22px; }
  .result-copy h1 { font-size: clamp(31px,7.5vw,42px); margin-top: 10px; }
  .result-actions { margin-top: 17px; gap: 8px; }
  .result-actions button { font-size: 13px; gap: 7px; padding-inline: 12px; }
  .result-render { min-height: clamp(128px,38vw,190px); }
  .result-lower { gap: 12px; margin-top: 12px; }
  .bill { padding: 16px 14px 5px; }
  .bill-row summary { gap: 7px; }
  .part-text strong { font-size: 14px; }
  .part-text > span { font-size: 12px; }
  .part-id { font-size: 10px; padding-inline: 5px; }
  .bill-data { padding: 8px; }
  .bill-data div { font-size: 12px; }
  .review-note { padding: 16px; }
  .site-footer { margin-top: 19px; font-size: 11px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 20px); }
  .step-tab { font-size: 11px; gap: 3px; }
  .field-series .choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-size .choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .field-brightness .choices { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .board-metric strong { font-size: 17px; }
  .board-context { padding-inline: 9px; }
  .result-copy { padding: 17px; }
  .sheet-spec { gap: 8px; }
  .part-id { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
