/* Building form, loaded after site.css. Values follow the reference design; breakpoints are 640 and 1024 px. */
body.page-soft { font-feature-settings: "cv11", "ss01", "tnum" 0; -webkit-font-smoothing: antialiased; }

/* The steps are shown and hidden with the hidden attribute; no display value below may override it. */
.wizard [hidden] { display: none !important; }

/* Page frame */
.wizard { width: 100%; max-width: 1200px; margin-inline: auto; padding: 32px 20px 64px; }
.wizard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 32px; }
.wizard-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.wizard-main > *, .wizard [data-step-panel] { min-width: 0; }

/* Progress */
.wizard .stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.wizard .step { position: relative; display: flex; justify-content: center; }
.wizard .step:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.wizard .step.is-done:not(:last-child)::after { background: var(--brand); }
.wizard .step-button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-family: inherit; font-weight: 400; font-size: 12px; line-height: 1.4; cursor: pointer; }
.wizard .step-button:disabled { opacity: 1; cursor: default; }
.wizard .step-dot { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
.wizard .step.is-done .step-dot, .wizard .step.is-current .step-dot { background: var(--brand); color: #fff; }
.wizard .step-check { width: 14px; height: 14px; }
.wizard .step.is-current .step-label { color: var(--ink); font-weight: 600; }

/* Card */
.wizard .form-card { display: flex; flex-direction: column; gap: 40px; padding: 24px; border-radius: var(--radius-lg); background: #fff; }
.wizard .form-card + .form-card { margin-top: 20px; }
.wizard .card-head { display: flex; flex-direction: column; gap: 8px; }
.wizard .form-card h1 { font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.wizard .form-card .lead { max-width: 56ch; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.wizard .form-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.wizard .tool-chip { padding: 6px 14px; border: 0; border-radius: 999px; background: var(--surface-2); color: rgba(29, 29, 31, .8); font-family: inherit; font-weight: 500; font-size: 13px; line-height: 1.5; cursor: pointer; transition: color .15s, background-color .15s; }
.wizard .tool-chip:hover { background: #e8e8ed; color: var(--ink); }
.wizard .form-section { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wizard .section-head-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.wizard .section-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.wizard .num-badge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.wizard .section-text { font-size: 14px; color: var(--muted); }

/* Fields */
.wizard .grid { gap: 18px 20px; margin: 0; }
.wizard .g2 { grid-template-columns: minmax(0, 1fr); }
.wizard .stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wizard .field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard .field > label, .wizard .field > legend { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.43; color: var(--muted); }
.wizard .tiles-field > legend { margin-bottom: 6px; }
.wizard .input-wrap { position: relative; }
.wizard .field input:not([type=checkbox]):not([type=radio]), .wizard .field select,
.wizard .el-cell input:not([type=checkbox]):not([type=radio]), .wizard .el-cell select {
    width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background-color: #fff; color: var(--ink); font-family: inherit; font-weight: 400; font-size: 16px; line-height: 1.5;
}
.wizard .field input::placeholder { color: #8e8e93; }
.wizard .field input:focus, .wizard .field select:focus, .wizard .el-cell input:focus, .wizard .el-cell select:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(10, 92, 51, .15); }
.wizard .has-unit input:not([type=checkbox]):not([type=radio]) { padding-right: 40px; }
.wizard .unit { right: 14px; font-size: 14px; color: var(--muted); }
.wizard .number-stepper.is-active { display: flex; }
.wizard .number-stepper.is-active input:not([type=checkbox]):not([type=radio]) { border-radius: 0; text-align: center; }
.wizard .number-stepper button { flex-shrink: 0; width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .15s; }
.wizard .number-stepper button:hover { background: var(--surface-2); }
.wizard .number-stepper .step-less { border-right: 0; border-radius: 12px 0 0 12px; }
.wizard .number-stepper .step-more { border-left: 0; border-radius: 0 12px 12px 0; }
.wizard .field-help { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.wizard .field-error { display: block; margin: 0; font-size: 13px; line-height: 1.4; color: #b91c1c; }
.wizard .has-error input:not([type=checkbox]):not([type=radio]), .wizard .has-error select { border-color: transparent; box-shadow: inset 0 0 0 2px #b91c1c; }
.wizard .has-error .tile-body { border-color: #b91c1c; }

/* "?" help */
.wizard .help-btn { position: relative; display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: var(--line); color: var(--muted); font-family: inherit; font-weight: 700; font-size: 10px; line-height: 1; cursor: help; transition: background-color .15s, color .15s; }
.wizard .help-btn:hover, .wizard .help-btn:focus-visible { background: var(--brand); color: #fff; }
.wizard .help-btn::after { content: attr(data-tip); position: absolute; left: -8px; bottom: calc(100% + 8px); z-index: 20; display: none; width: 260px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .5); }
.wizard .help-btn:hover::after, .wizard .help-btn:focus::after { display: block; }

/* Choice tiles */
.wizard .tiles { display: grid; gap: 10px; }
.wizard .tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wizard .tiles-3, .wizard .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard .tile { position: relative; display: block; margin: 0; color: var(--ink); cursor: pointer; }
.wizard .tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wizard .tile-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 0; padding: 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: center; transition: color .15s, background-color .15s, border-color .15s; hyphens: manual; }
.wizard .tile-label { font-size: 14px; font-weight: 500; line-height: 1.25; }
.wizard .tile-sub { font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); }
.wizard .tile-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: rgba(29, 29, 31, .7); }
.wizard .tile:hover .tile-body { border-color: rgba(29, 29, 31, .4); }
.wizard .tile input:checked + .tile-body { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.wizard .tile input:checked + .tile-body .tile-icon { color: var(--brand); }
.wizard .tile input:focus-visible + .tile-body { outline: 3px solid rgba(10, 92, 51, .3); outline-offset: 2px; }
.wizard .tiles-compact .tile-body, .wizard .tiles-shape .tile-body { padding: 8px 12px; border-radius: 12px; }
.wizard .tiles-compact .tile-body { min-height: 48px; }
.wizard .tiles-shape .tile-body { flex-direction: row; min-height: 48px; }
.wizard .tiles-shape { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wizard .tiles-shape .tile-body { flex-direction: column; gap: 4px; padding-inline: 4px; }
.wizard .tiles-shape .tile-icon { width: 20px; height: 20px; }

/* House sketch */
.wizard .sketch-layout { display: grid; gap: 20px; min-width: 0; }
.wizard .sketch-fields { min-width: 0; }
.wizard .sketch-fields .grid { align-items: end; }
.wizard .house-sketch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; }
.wizard .house-sketch svg { width: 100%; max-width: 170px; height: auto; }
.wizard .sketch-size { font-size: 12px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.wizard .sketch-note { font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Building elements */
.wizard .element-list { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; scroll-margin-top: 100px; }
.wizard .element-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wizard .element-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.wizard .element-head .field-help { margin-top: 2px; }
.wizard .count { min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; letter-spacing: 0; }
.wizard .add-button { flex-shrink: 0; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--brand); font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.wizard .add-button:hover { background: var(--brand-soft); }
.wizard .empty-list { margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.wizard .element-table { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.wizard .element-row-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wizard .element-row, .wizard .element-row.with-gi { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 0; border-radius: 14px; background: var(--surface-2); align-items: start; scroll-margin-top: 100px; }
.wizard .element-row.row-error { background: #fdecec; box-shadow: inset 0 0 0 1px #f3b4b4; }
.wizard .el-no { grid-column: 1 / -1; padding: 0 36px 0 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.wizard .el-no::before { content: "Element "; }
.wizard .el-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wizard .el-cell::before { content: attr(data-label); margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.wizard .el-cell input:not([type=checkbox]):not([type=radio]), .wizard .el-cell select { min-height: 44px; padding: 0 10px; font-size: 15px; border-radius: 10px; }
.wizard .el-cell.has-error input:not([type=checkbox]):not([type=radio]), .wizard .el-cell.has-error select { border-color: transparent; box-shadow: inset 0 0 0 2px #b91c1c; }
.wizard .el-remove { position: absolute; top: 8px; right: 8px; padding: 0; }
.wizard .btn-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.wizard .btn-icon:hover { background: #fde8e6; color: #b91c1c; }

/* Check rows */
.wizard .checks-grid { display: grid; gap: 14px; margin: 0; }
.wizard .check { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; border: 0; color: var(--ink) !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.4; cursor: pointer; }
.wizard .check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.wizard .check-note { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Year suggestions */
.wizard .year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Navigation */
.wizard .step-nav, .wizard .form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, .1); }
.wizard .step-nav[hidden] { display: none; }
.wizard .back-link { padding: 8px 0; border: 0; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.4; text-decoration: none; cursor: pointer; }
.wizard .back-link:hover { color: var(--ink); }
.wizard .form-actions .btn-next { margin-left: auto; }
.wizard .btn-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; font-family: inherit; font-weight: 500; font-size: 17px; line-height: 1.3; cursor: pointer; transition: background-color .15s; }
.wizard .btn-next:hover { background: var(--brand-hover); }
.wizard .calc-status { width: 100%; font-size: 14px; text-align: right; color: var(--muted); }

/* Error summary */
.wizard .error-summary { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: #fde8e8; color: #991b1b; font-size: 14px; line-height: 1.45; }
.wizard .error-summary ul { margin: 4px 0 0; padding-left: 18px; }
.wizard .error-summary a { color: inherit; }
.wizard .error-summary:focus { outline: 2px solid #b91c1c; outline-offset: 2px; }

/* Sidebar */
.wizard .wizard-side { position: static; display: flex; flex-direction: column; gap: 16px; }
.wizard .side-card { padding: 20px; border-radius: var(--radius-lg); background: #fff; }
.wizard .side-card-sections { padding: 0; overflow: hidden; }
.wizard .side-section { padding: 20px; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.wizard .side-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wizard .side-label { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wizard .side-value { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.wizard .side-link { font-size: 12px; color: var(--muted); text-decoration: none; }
.wizard .side-link:hover { color: var(--ink); }
.wizard .side-score { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.wizard .side-class { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.wizard .side-class.is-empty { color: var(--muted); }
.wizard .side-note { margin-top: 12px; font-size: 12px; line-height: 1.375; color: var(--muted); }
.wizard .class-scale li { height: 14px; }
.wizard .class-scale li.is-current { height: 14px; margin: 0; outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.wizard .side-title { margin: 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.wizard .side-text { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.wizard .side-person { display: flex; align-items: center; gap: 12px; }
.wizard .side-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--line); color: #fff; }
.wizard .side-person-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.wizard .side-person-role { font-size: 12px; line-height: 1.4; color: var(--muted); }
.wizard .side-features { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 20px; list-style: none; font-size: 13px; line-height: 1.4; }
.wizard .side-features li { display: flex; align-items: center; gap: 12px; }
.wizard .side-features svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: rgba(29, 29, 31, .7); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wizard .side-foot { padding: 0 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Results */
.wizard .result-panel { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-lg); background: #fff; }
.wizard .result-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wizard .result-head h1 { font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.wizard .result-head .lead { max-width: 56ch; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.wizard .state { margin-top: 4px; padding: 4px 12px; font-size: 13px; }
.wizard .state-warn { background: #fff5d6; color: #7a5a00; }
.wizard .state-error { background: #fde8e8; color: #991b1b; }
.wizard .energy-class { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-2); }
.wizard .energy-class-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wizard .energy-class .metric-label { font-size: 15px; color: var(--muted); }
.wizard .energy-class-value { font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.wizard .energy-class-note { font-size: 15px; color: var(--muted); }
.wizard .energy-class .class-scale { flex: none; width: 100%; }
.wizard .change-link { grid-column: 1 / -1; justify-self: start; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--brand); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.wizard .change-link:hover { text-decoration: underline; }
.wizard .summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
.wizard .metric { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface-2); }
.wizard .metric .metric-label { font-size: 14px; color: var(--muted); }
.wizard .metric-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.wizard .metric-value { font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.wizard .metric-value.unavailable { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.wizard .metric-unit { font-size: 13px; color: var(--muted); }
.wizard .metric-compare { min-height: 0; font-size: 13px; color: var(--muted); }
.wizard .metric-compare strong { color: var(--ink); font-weight: 600; }
.wizard .export-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.wizard .export-bar .btn, .wizard .export-bar .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border-radius: var(--radius); font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.wizard .export-bar .btn { border: 0; background: var(--brand); color: #fff; }
.wizard .export-bar .btn:hover { background: var(--brand-hover); color: #fff; }
.wizard .export-bar .btn-ghost { border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.500px var(--ink); }
.wizard .export-bar .btn-ghost:hover { background: var(--surface-2); }
.wizard .export-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wizard .export-hint { width: 100%; font-size: 13px; color: var(--muted); }
.wizard .calc-notes { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff5d6; color: #5c4400; font-size: 14px; line-height: 1.45; }
.wizard .calc-notes h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.wizard .calc-notes ul { margin: 6px 0 0; padding-left: 18px; }
.wizard .errors { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fde8e8; color: #991b1b; font-size: 14px; line-height: 1.45; }
.wizard .errors h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; }

.wizard .sheet-panel { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--radius-lg); background: var(--surface-2); }
.wizard .doc-stamp { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: #fff5d6; color: #7a5a00; font-size: 12px; font-weight: 500; line-height: 1.4; }
.wizard .sheet-full { width: 100%; overflow-x: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.wizard .sheet-full .ea-scaler { position: relative; transform: none; }
.wizard .sheet-full.is-fitted { overflow: hidden; }
.wizard .sheet-full.is-fitted .ea-scaler { position: absolute; transform: scale(var(--s)); }
.wizard .ea-marker.at-end, .wizard .ea-marker-bottom.at-end { align-items: flex-end; transform: translate(calc(-100% + 9px)); }
.wizard .ea-marker.at-start, .wizard .ea-marker-bottom.at-start { align-items: flex-start; transform: translate(-9px); }
.wizard .sheet-full .ea-watermark { top: 50%; font-size: 112px; letter-spacing: .04em; white-space: nowrap; }

.wizard .values-panel, .wizard .raw { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.wizard .raw-inner { margin-top: 14px; }
.wizard .values-panel > summary, .wizard .raw > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.wizard .values-panel > summary::-webkit-details-marker, .wizard .raw > summary::-webkit-details-marker { display: none; }
.wizard .panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.wizard .panel-plus { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: transform .3s; }
.wizard details[open] > summary .panel-plus { transform: rotate(45deg); }
.wizard .grid-head { margin: 0; padding: 0 20px 12px; }
.wizard .filter { position: relative; display: block; max-width: 340px; }
.wizard .filter svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.wizard .filter input { width: 100%; max-width: none; min-height: 38px; padding: 0 14px 0 36px; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 14px; }
.wizard .filter input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgba(10, 92, 51, .15); }
.wizard .table-wrap { padding: 0 20px 20px; overflow-x: auto; }
.wizard .results-grid { font-size: 14px; }
.wizard .results-grid thead th { padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 12px; font-weight: 600; color: var(--muted); }
.wizard .results-grid td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); line-height: 1.4; }
.wizard .results-grid td:last-child { padding-right: 0; }
.wizard .results-grid .num { font-weight: 500; }
.wizard .results-grid .group-row th { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.wizard .results-grid tbody[data-group]:not(:first-of-type) .group-row th { border-top: 12px solid #fff; background-clip: padding-box; }
.wizard .raw-body { padding: 0 20px 20px; }
.wizard .result-panel > * { min-width: 0; }
.wizard .result-panel code { overflow-wrap: anywhere; }
.wizard .raw > summary { overflow-wrap: anywhere; }
.wizard .raw-body .help { margin: 0 0 10px; }
.wizard .raw-body pre { border-radius: 12px; }

.wizard .result-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, .1); }
.wizard .result-nav .btn-next { margin-left: auto; text-decoration: none; }
.wizard .result-nav .btn-next:hover { color: #fff; }
.wizard .result-nav .btn-next:disabled { background: var(--line); color: var(--ink); opacity: 1; cursor: not-allowed; }
.wizard.is-result-step .side-card-score { display: none; }
.wizard .side-title-row { align-items: baseline; }

/* Developer panel on test systems */
.wizard .dev-panel { border: 0; border-radius: var(--radius-lg); }

/* 640 px */
@media (min-width: 40rem) {
    .wizard .form-card { padding: 40px; }
    .wizard .form-card h1 { font-size: 38px; }
    .wizard .result-panel { padding: 40px; }
    .wizard .result-head h1 { font-size: 38px; }
    .wizard .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard .energy-class { display: grid; grid-template-columns: auto minmax(180px, 1fr); align-items: center; gap: 12px 20px; }
    .wizard .sheet-panel { padding: 20px; }
    .wizard .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wizard .tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wizard .tiles-shape { gap: 10px; }
    .wizard .tiles-shape .tile-body { flex-direction: row; gap: 8px; padding-inline: 12px; }
    .wizard .element-head { flex-direction: row; justify-content: space-between; }
    .wizard .element-row, .wizard .element-row.with-gi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wizard .checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
    .wizard .sketch-layout.has-sketch { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 639px) {
    .wizard .hide-on-mobile { display: none; }
    .wizard .step-nav .btn-next, .wizard .form-actions .btn-next, .wizard .result-nav .btn-next { flex: 1 1 auto; }
    .wizard .export-bar .btn, .wizard .export-bar .btn-ghost { flex: 1 1 100%; }
}

/* 768 px */
@media (min-width: 48rem) {
    .wizard { padding-inline: 40px; padding-top: 40px; }
    .wizard-grid { margin-top: 60px; }
}

/* 1024 px: sidebar beside the form, help behind the "?" */
@media (min-width: 64rem) {
    .wizard-grid { grid-template-columns: minmax(0, 1fr) 340px; }
    .wizard .wizard-side { position: sticky; top: 112px; }
    .wizard .help-btn { display: inline-flex; }
    .wizard .field-help.is-tip { display: none; }
}
@media print {
    .wizard .stepper, .wizard .wizard-side { display: none; }
}

/* Verbrauchsausweis test flow */
.v-funnel .g3 { grid-template-columns: minmax(0, 1fr); }
.v-funnel [hidden] { display: none !important; }
.v-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: -8px; font-size: 13px; color: var(--muted); }
.v-foot svg, .v-secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.v-save-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.v-save-toggle:hover { color: var(--ink); }
.v-secure { display: inline-flex; align-items: center; gap: 6px; }
.v-save-panel { padding: 16px; border-radius: 16px; background: var(--surface-2); font-size: 14px; }
.v-save-panel p { margin: 0 0 10px; }
.v-save-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v-save-row input { flex: 1 1 200px; min-width: 0; }
.v-save-panel .v-save-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.v-save-panel .v-save-note.is-error { color: #b91c1c; }
.v-saved { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.v-rule { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.v-rule a, .v-funnel label a { color: var(--brand); text-decoration: underline; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.v-pill[aria-pressed="true"] { border-color: var(--brand); background: #e3f3e8; color: var(--brand); }
.v-start { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
.v-scale { display: grid; flex: 1 1 auto; min-width: 150px; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.v-scale i { display: block; height: 14px; border-radius: 4px; }
.v-scale i:nth-child(1) { background: #1a9850; } .v-scale i:nth-child(2) { background: #2ca25f; } .v-scale i:nth-child(3) { background: #74c476; } .v-scale i:nth-child(4) { background: #a6d96a; } .v-scale i:nth-child(5) { background: #fee08b; } .v-scale i:nth-child(6) { background: #fdae61; } .v-scale i:nth-child(7) { background: #f46d43; } .v-scale i:nth-child(8) { background: #d73027; } .v-scale i:nth-child(9) { background: #a50026; }
.v-scale i.is-marked { outline: 2px solid var(--ink); outline-offset: 1px; }
.v-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.v-score-label, .v-score-value { font-size: 14px; color: var(--muted); }
.v-score-class { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.v-link { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.v-score .v-link { flex-basis: 100%; }
.v-sheets { display: flex; flex-direction: column; gap: 16px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.v-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.v-order p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.v-order-text { flex: 1 1 200px; min-width: 0; font-size: 17px; }
.v-order-thumb { display: none; position: relative; flex-shrink: 0; width: 90px; height: 120px; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.v-order-thumb .ea { position: absolute; top: 0; left: 0; width: 794px; transform: scale(.1134); transform-origin: top left; pointer-events: none; }
.v-order-price { display: flex; flex-direction: column; text-align: right; }
.v-order-price strong { font-size: 20px; }
.v-order-price span { font-size: 12px; color: var(--muted); }
.v-addons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.v-addon { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.v-addon:has(input:checked) { border-color: var(--brand); background: #f1f9f3; }
.v-addon input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.v-addon-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-addon-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.v-addon-head strong:last-child { white-space: nowrap; }
.v-addon-text { font-size: 13px; line-height: 1.4; color: var(--muted); }
.v-popular { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.v-pay .tile-body { flex-direction: row; justify-content: space-between; gap: 10px; text-align: left; }
.v-pay .tile-body { align-items: center; }
.v-pay .tile-body::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; }
.v-pay input:checked + .tile-body::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, #fff 5.5px); }
.v-pay-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.v-badge { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.v-tile-logos { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.v-tile-logos img { display: block; width: auto; height: 22px; }
.v-tile-logos img.is-paypal { height: 24px; }
.v-pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; opacity: .8; }
.v-pay-logos img { display: block; width: auto; height: 18px; }
.v-total { padding: 18px; border-radius: 16px; background: var(--surface-2); }
.v-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.v-total-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; }
.v-total-sum strong:last-child { font-size: 26px; }
.v-total-tax { color: var(--muted); font-size: 13px; }
.v-help-box { padding: 18px; border-radius: 20px; background: var(--brand-soft); font-size: 14px; line-height: 1.5; }
.v-help-box[hidden] { display: none; }
.v-help-box strong { display: block; font-weight: 600; }
.v-help-box p { margin: 4px 0 0; color: rgba(29, 29, 31, .8); }
.v-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--surface-2); }
.v-trust img { height: 24px; width: auto; max-width: 84px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.v-rating { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); }
.v-rating b { color: var(--ink); font-size: 14px; }
.v-rating b span { color: #f5a623; }
.v-person-text { margin-top: 10px; }
.v-funnel .side-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.v-standalone { display: flex; flex-direction: column; gap: 20px; margin: 16px auto 0; padding: 28px; border-radius: 20px; background: #fff; }
.v-pay-page { max-width: 560px; }
.v-thanks { max-width: 720px; }
.v-thanks h1 { margin: 0; font-size: 38px; letter-spacing: -.03em; }
.v-thanks h2 { margin: 0; font-size: 20px; }
.v-thanks hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); }
.v-pay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.v-start-row { justify-content: flex-start; }
.v-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-testmode { padding: 3px 10px; border-radius: 999px; background: #fff4e0; color: #b45309; font-size: 11px; font-weight: 600; }
.v-paid { padding: 4px 12px; border-radius: 999px; background: #e3f3e8; color: var(--brand); font-size: 13px; font-weight: 600; }
.v-muted { margin: 0; font-size: 14px; color: var(--muted); }
.v-small { font-size: 12px; line-height: 1.5; }
.v-amount { margin-top: 4px; font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.v-info { margin: 0; padding: 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--muted); }
.v-wide { width: 100%; justify-content: center; }
.v-center { text-align: center; color: var(--muted); }
.v-center-row { display: flex; justify-content: center; }
.v-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 12px; background: #fff4e0; }
.v-progress.is-complete { background: #e3f3e8; }
.v-progress p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.v-progress > div:first-child { flex: 1 1 240px; }
.v-progress-bar { display: flex; flex: 0 1 180px; align-items: center; gap: 8px; }
.v-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.v-bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.v-phone { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.v-phone > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--muted); }
.v-phone strong { font-size: 15px; color: var(--ink); }
.v-phone-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #e3f3e8; color: var(--brand); }
.v-phone-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.v-doc-group { margin: 4px 0 -10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v-docs { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.v-doc { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.v-doc:first-child { border-top: 0; }
.v-doc.is-required { background: #fff8ea; }
.v-doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.v-doc-body { flex: 1 1 200px; min-width: 0; }
.v-doc p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.v-doc-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.v-doc-icon.is-chosen { background: #e8f0fe; color: #1a56db; }
.v-doc-icon svg, .v-upload svg, .v-file-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.v-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.v-doc-name { font-weight: 500; }
.v-doc-files { display: flex; flex-direction: column; gap: 4px; margin: 0 0 0 44px; padding: 0; list-style: none; }
.v-doc-files[hidden] { display: none; }
.v-doc-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.v-file-name { min-width: 0; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.v-file-size { color: var(--muted); }
.v-file-open { display: inline-flex; margin-left: auto; padding: 4px 8px; border-radius: 999px; color: var(--muted); }
.v-file-open:hover { background: var(--surface-2); color: var(--ink); }
.v-duty, .v-optional, .v-missing { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.v-duty { padding: 2px 6px; background: var(--ink); color: #fff; font-size: 10px; text-transform: uppercase; }
.v-thanks .btn-ghost { border-color: var(--ink); color: var(--ink); }
.v-optional { color: var(--muted); }
.v-missing { background: #eeeef2; color: var(--muted); }
.v-missing.is-chosen { background: #e8f0fe; color: #1a56db; }
.v-upload { position: relative; gap: 6px; cursor: pointer; }
.v-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.v-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.v-thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Vom Smartphone hochladen" dialog (reference: max 520px, QR 220px beside send/copy) */
.v-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.v-modal[hidden] { display: none; }
html.v-modal-open { overflow: hidden; }
.v-modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.v-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.v-modal-head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.v-modal-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.v-modal-close { flex-shrink: 0; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.v-modal-close:hover { background: var(--surface-2); }
.v-phone-grid { display: grid; gap: 20px; margin-top: 20px; }
.v-phone-grid[hidden] { display: none; }
.v-phone-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.v-phone-qr-box { width: 220px; height: 220px; }
.v-phone-qr img { display: block; width: 220px; height: 220px;border: 1px solid var(--line); border-radius: 12px; image-rendering: pixelated; }
.v-phone-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.v-phone-label { display: block; font-size: 13px; font-weight: 600; }
.v-phone-row { display: flex; gap: 8px; margin-top: 8px; }
.v-phone-input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; }
.v-phone-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 92, 51, .15); }
.v-phone-link { font-size: 12px; }
.v-phone-btn { flex-shrink: 0; min-height: 40px; padding: 0 16px; font-size: 13px; }
.v-phone-note { margin: 8px 0 0; font-size: 12px; color: var(--brand); }
.v-phone-ticks { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.v-phone-ticks li { display: flex; align-items: center; gap: 8px; }
.v-phone-ticks svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 40rem) { .v-phone-grid { grid-template-columns: 220px 1fr; } }
/* the smartphone page /upload/{code}: big camera buttons, full width on a phone */
.v-mobile-upload { margin: 24px auto; }
.v-upload-wide { justify-content: center; }
@media (max-width: 39.99rem) { .v-upload-wide { width: 100%; min-height: 48px; } }
@media (min-width: 40rem) {
    .v-funnel .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v-order-thumb { display: block; }
    .v-standalone { padding: 40px; }
    .v-score .v-link { flex-basis: auto; }
}

.v-note { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.v-house { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.v-house-fields { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.v-house-fields .field { max-width: 100%; }
.v-sketch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface-2); text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.v-sketch svg { width: 100%; max-width: 260px; height: auto; }
.v-sketch p { margin: 0; }
.v-hull { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; margin: 0; text-align: left; }
.v-hull[hidden] { display: none; }
.v-hull dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-question { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.wizard .v-question legend { color: var(--ink); font-size: 16px; font-weight: 600; }
.v-when { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.v-tip { display: flex; gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.v-tip svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; }
.v-small-link { font-size: 13px; color: var(--muted); }
.v-funnel .tiles-4 .tile-label { overflow-wrap: anywhere; }
@media (min-width: 40rem) {
    .v-house { grid-template-columns: minmax(0, 1fr) 216px; }
}
.v-funnel[data-steps="5"] .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* /start: step 1 "Ausweis wählen", as in the reference */
.st-page { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 1120px; margin-inline: auto; padding: 40px 20px 80px; }
.st-steps { padding: 0; }
.st-steps .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-steps .step-label { font-size: 12px; }
.st-head { max-width: 62ch; margin: 24px auto 0; text-align: center; }
.st-head h1 { margin: 0; font-size: 34px; line-height: 1.08; letter-spacing: -.02em; }
.st-head p { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.st-head a { color: var(--brand); text-decoration: none; }
.st-head a:hover { text-decoration: underline; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.st-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--radius-lg, 24px); background: #fff; }
.st-card.is-recommended { box-shadow: 0 0 0 2px var(--brand), 0 20px 50px -30px rgba(10, 92, 51, .5); }
.st-tag { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.st-tag.is-alt { background: var(--surface-2); color: var(--muted); }
.st-card h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.st-card h2 + p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.st-ticks, .st-dots { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.st-ticks li { display: flex; gap: 8px; }
.st-ticks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.st-dots { color: var(--muted); }
.st-dots li { display: flex; gap: 8px; }
.st-dots li::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 9px; border-radius: 50%; background: var(--muted); }
.st-note { padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.st-note strong { color: var(--ink); }
.st-btn { width: 100%; min-height: 54px; margin-top: auto; font-size: 17px; }
.st-small { margin-top: -12px; text-align: center; font-size: 12px; color: var(--muted); }
.st-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; max-width: 900px; margin: 0 auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.st-trust img { width: auto; height: 26px; }
.st-person { display: flex; align-items: center; gap: 10px; }
.st-person img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.st-person strong { color: var(--ink); }
@media (min-width: 640px) { .st-head h1 { font-size: 42px; } .st-card { padding: 32px; } }
@media (min-width: 1024px) { .st-grid { grid-template-columns: 1.15fr 1fr; } }
@media (max-width: 480px) { .st-steps .step-label { font-size: 10px; } }
/* save and continue later */
.v-save-test { display: block; margin-top: 6px; overflow-wrap: anywhere; }

/* owner link /e/{code} and company orders in the order page */
.ol-card { max-width: 640px; margin: 0 auto; }
.ol-message { white-space: pre-line; color: var(--ink); }
.v-company { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 14px; }

/* "Umriss vom Luftbild": aerial map with the building outline (js/outline-map.js) */
.v-outline { display: flex; flex-direction: column; gap: 12px; }
.v-outline-status p { display: flex; align-items: center; gap: 10px; margin: 0; }
.v-outline-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.v-spinner { flex-shrink: 0; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: v-spin .8s linear infinite; }
.v-spinner[hidden] { display: none; }
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-outline-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.v-outline-map { position: relative; height: 320px; overflow: hidden; border-radius: 16px; background: #2b2f2b; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.v-outline-map.is-dragging { cursor: grabbing; }
.om-tiles { position: absolute; inset: 0; }
.om-tiles img { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.om-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.om-area { fill: rgba(166, 217, 106, .35); stroke: #1a9850; stroke-width: 2.5; stroke-linejoin: round; }
.om-edge { stroke: transparent; stroke-width: 14; cursor: copy; }
.om-corner { fill: #fff; stroke: #1a9850; stroke-width: 2.5; cursor: move; }
.om-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.om-zoom button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.om-zoom button:last-child { border-bottom: 0; }
.om-zoom button:hover { background: var(--surface-2); }
.om-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.om-credit { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4px 10px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; line-height: 1.4; pointer-events: none; }
.v-outline-side { font-size: 14px; line-height: 1.45; }
.v-outline-side p { margin: 0 0 8px; }
.v-outline-help { margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.v-outline-help li + li { margin-top: 4px; }
.v-outline-facts { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 16px; margin: 0 0 10px; }
.v-outline-facts dt { color: var(--muted); }
.v-outline-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-outline-warn { margin-top: 8px; font-size: 13px; }
@media (min-width: 48rem) {
    .v-outline-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .v-outline-map { height: 340px; }
}

/* "Pläne hochladen" and "Mit Anbau" (reference: grey boxes under the outline choice) */
.v-dimensions { display: flex; flex-direction: column; gap: 14px; }
.v-dimensions.is-plans { padding: 20px; border-radius: var(--radius-lg, 16px); background: var(--surface-2); }
.v-plans-text { margin: 0; font-size: 14px; line-height: 1.5; }
.v-dimensions.is-plans .v-note { margin: 0; font-size: 12px; }
.v-extensions { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-lg, 16px); background: var(--surface-2); }
.v-extension-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.v-extension-row[hidden] { display: none; }
.v-extension-row .tiles-field { grid-column: 1 / -1; }
.v-extension-row .field { max-width: none; }
.v-extension-remove { justify-self: start; color: var(--muted); font-size: 13px; }
.v-extensions .v-small-link { align-self: flex-start; font-size: 13px; }
@media (min-width: 40rem) {
    .v-extension-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; }
    .v-extension-row .tiles-field { grid-column: auto; }
    .v-extension-remove { align-self: center; margin-bottom: 12px; }
}
