:root {
  --ink: #1d1d1b;
  --muted: #625b5d;
  --paper: #f8f6f6;
  --card: #ffffff;
  --line: #e7d9dd;
  --forest: #aa0e31;
  --forest-dark: #780820;
  --sand: #faedf0;
  --warning: #8b5c00;
  --warning-bg: #fff6dc;
  --danger: #a12a2a;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 72px; }
.hero { max-width: 820px; margin-bottom: 30px; }
.brand-lockup { display: flex; align-items: center; min-height: 58px; margin-bottom: 18px; }
.brand-lockup img { display: block; width: min(285px, 72vw); height: auto; max-height: 62px; object-fit: contain; object-position: left center; }
.eyebrow { margin: 0 0 8px; color: var(--forest); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 680px; letter-spacing: -.045em; line-height: 1.03; margin-bottom: 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; margin-bottom: 10px; }
.hero > p:last-child, .section-heading > p:last-child { color: var(--muted); line-height: 1.55; }

.progress { display: grid; grid-template-columns: repeat(var(--flow-count, 3), minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0 0 20px; list-style: none; }
.progress li { display: flex; align-items: center; min-width: 0; gap: 8px; color: var(--muted); font-size: clamp(.74rem, 1.1vw, .88rem); font-weight: 700; white-space: nowrap; }
.progress span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); }
.progress .is-active { color: var(--forest); }
.progress .is-active span { color: #fff; border-color: var(--forest); background: var(--forest); }

.step { display: none; padding: clamp(22px, 4vw, 38px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 50px rgba(23, 48, 35, .06); }
.step.is-active { display: block; }
.section-heading { margin-bottom: 26px; }

body.workflow-active { overflow: hidden; }
body.workflow-active .app-shell { width: 100%; max-width: none; min-height: 100vh; padding: 0; }
body.workflow-active .hero { display: none; }
body.workflow-active .progress { position: relative; z-index: 4; grid-template-columns: repeat(var(--flow-count, 4), minmax(0, 1fr)); gap: 0; margin: 0; padding: 14px clamp(20px, 3vw, 48px); border-bottom: 1px solid var(--line); background: #fff; }
body.workflow-active .step { min-height: calc(100vh - 57px); max-height: calc(100vh - 57px); overflow: hidden; padding: clamp(18px, 2.2vw, 34px) clamp(20px, 3vw, 48px); border: 0; border-radius: 0; box-shadow: none; }
body.workflow-active .step[data-step="2"].is-active { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
body.workflow-active.roof-capture-active .step[data-step="2"].is-active { grid-template-rows: minmax(0, 1fr); }
body.workflow-active.roof-capture-active .step[data-step="2"] .section-heading,
body.workflow-active.roof-capture-active .step[data-step="2"] .address-panel { display: none; }
body.workflow-active .step[data-step="2"] .section-heading { margin: 0; }
body.workflow-active .step[data-step="2"] .section-heading h2 { margin-bottom: 7px; font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
body.workflow-active .step[data-step="2"] .section-heading > p:last-child { max-width: 900px; font-size: 1.03rem; }
body.workflow-active .step[data-step="2"] .address-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 20px; margin: 0; padding: 14px 16px; }
body.workflow-active .step[data-step="2"] .address-panel h3, body.workflow-active .step[data-step="2"] .address-panel .field, body.workflow-active .step[data-step="2"] .address-panel .field-note { grid-column: 1 / -1; }
body.workflow-active .step[data-step="2"] .address-panel .analysis-panel { grid-column: 1 / -1; margin: 0; padding: 10px 12px; }
body.workflow-active .step[data-step="2"] .roof-capture { min-height: 0; overflow: hidden; }
body.workflow-active.roof-capture-active .step[data-step="2"] .roof-capture { height: 100%; }
body.workflow-active .step[data-step="2"] .map-workspace { min-height: 0; height: 100%; margin: 0; }
body.workflow-active .step[data-step="2"] .manual-panel, body.workflow-active .step[data-step="2"] > .step-actions { display: none; }
body.workflow-active .step[data-step="3"] { overflow-y: auto; }
body.workflow-active.insulation-workspace-active .step[data-step="3"].is-active { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; overflow: hidden; padding: 16px clamp(20px, 3vw, 48px); }
body.workflow-active.insulation-workspace-active .step[data-step="3"] .section-heading { display: none; }
body.workflow-active.insulation-workspace-active .step[data-step="3"] .insulation-panel { height: 100%; min-height: 0; margin: 0; }
body.workflow-active.insulation-workspace-active .step[data-step="3"] > .step-actions { margin: 0; }
body.workflow-active.repair-workspace-active .step[data-step="4"].is-active,
body.workflow-active.pv-workspace-active .step[data-step="5"].is-active { display: grid; grid-template-rows: minmax(0, 1fr); padding: 16px; overflow: hidden; }
body.workflow-active .map-selection-panel { scrollbar-gutter: stable; }
body.workflow-active .map-selection-panel .segment-list { margin-top: 4px; }
body.workflow-active .map-selection-panel h3 { font-size: 1.22rem; }
body.workflow-active .map-selection-panel p:not(.eyebrow):not(.field-note) { font-size: .94rem; }

.field { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 750; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); font-weight: 500; background: #fff; }
.field select, .outline-fields select { appearance: none; padding-right: 42px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23aa0e31' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(170, 14, 49, .14); }
.field-note { margin: 8px 0 18px; color: var(--muted); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }

.map-shell { position: relative; overflow: hidden; height: 300px; margin: 22px 0 16px; border-radius: 14px; background: #f0e2e6; }
.map-fallback, .google-map { position: absolute; inset: 0; }
.google-map { display: none; }
.map-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px); background-size: 40px 40px; transform: rotate(-9deg) scale(1.2); }
.street { position: absolute; background: #f8f3f4; box-shadow: 0 0 0 7px rgba(91, 55, 66, .14); }
.street-one { width: 130%; height: 36px; top: 56%; left: -10%; transform: rotate(-17deg); }
.street-two { width: 38px; height: 120%; top: -10%; left: 72%; transform: rotate(18deg); }
.property { position: absolute; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 800; text-align: center; background: rgba(170, 14, 49, .86); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(170, 14, 49, .25); }
.property-main { width: 200px; height: 130px; top: 26%; left: 29%; clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%); }
.property-garage { width: 90px; height: 66px; top: 57%; left: 57%; clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.map-caption { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 7px; color: var(--ink); background: rgba(255,255,255,.9); font-size: .72rem; font-weight: 700; }

.analysis-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #e8cbd3; border-radius: 12px; background: var(--sand); }
.analysis-panel strong { display: block; margin-bottom: 4px; }
.analysis-panel p { margin: 0; color: #623947; font-size: .85rem; line-height: 1.4; }
.button { min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: .9rem; font-weight: 800; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.button-secondary { color: var(--forest); border-color: var(--line); background: #fff; }
.button-secondary:hover { border-color: var(--forest); }
.step-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.step-actions.split { justify-content: space-between; }

.notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; color: #745000; background: var(--warning-bg); font-size: .86rem; line-height: 1.45; }
.notice.is-error { color: var(--danger); background: #fff0f0; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin-bottom: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--forest-dark), var(--forest)); }
.result-label, .result-summary small { display: block; color: rgba(255,255,255,.72); font-size: .8rem; }
.result-summary strong { display: block; margin: 2px 0; font-size: 2.1rem; letter-spacing: -.04em; }
.result-chip { padding: 7px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.auto-check { margin: -4px 0 16px; padding: 10px 12px; border: 1px solid #e8cbd3; border-radius: 10px; color: #6c263a; background: var(--sand); font-size: .82rem; line-height: 1.45; }
.roof-mask-panel { display: grid; gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid #e8cbd3; border-radius: 14px; background: linear-gradient(135deg, #fffef4, #fff); }
.roof-mask-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.roof-mask-panel h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.roof-mask-panel > p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.roof-mask-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.roof-mask-item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 11px; border: 1px solid #ecdca9; border-radius: 10px; background: #fff; cursor: pointer; }
.roof-mask-item:has(input:checked) { border-color: #d5a500; background: #fff7cd; }
.roof-mask-item input { width: 19px; height: 19px; margin: 0; accent-color: #d5a500; }
.roof-mask-item strong, .roof-mask-item span { display: block; }
.roof-mask-item strong { font-size: .84rem; }
.roof-mask-item span { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.address-panel { display: grid; gap: 12px; margin-bottom: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.address-panel h3 { margin: 0; font-size: 1.05rem; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; min-height: min(82vh, 980px); margin: 18px 0; padding: 16px; border-radius: 16px; background: #20201f; }
.map-workspace .roof-model, .map-workspace .map-selection-panel { margin: 0; }
.map-workspace .roof-model { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; padding: 18px; border-color: #fff; }
.map-workspace .roof-model-canvas { height: auto; min-height: 0; }
.map-workspace .map-selection-panel { align-content: start; overflow-y: auto; padding: 22px; background: #fff; }
.selection-next { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 4px -2px -2px; padding-top: 12px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 22%); }
.map-area-summary { position: absolute; z-index: 2; top: 16px; left: 16px; display: grid; gap: 3px; min-width: 230px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; color: #fff; background: linear-gradient(135deg, rgba(120,8,32,.96), rgba(170,14,49,.94)); box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; }
.map-area-summary span, .map-area-summary small { color: rgba(255,255,255,.8); font-size: .84rem; }
.map-area-summary strong { font-size: clamp(2rem, 3vw, 2.85rem); letter-spacing: -.05em; line-height: 1; }
.map-area-summary em { margin-top: 4px; font-style: normal; font-size: .78rem; font-weight: 800; }
.map-auto-check { position: absolute; z-index: 2; right: 12px; bottom: 12px; max-width: min(460px, calc(100% - 24px)); margin: 0; padding: 9px 11px; border-radius: 9px; color: #fff; background: rgba(29,29,27,.82); font-size: .74rem; line-height: 1.35; pointer-events: none; }
.map-selection-panel { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.map-selection-panel h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.map-selection-panel p:not(.eyebrow):not(.field-note) { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.map-selection-actions, .outline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.outline-fields { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; padding-top: 4px; }
.outline-fields select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.outline-actions { grid-column: 1 / -1; }
.roof-outline-point { width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: var(--forest); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.segment-list { display: grid; gap: 10px; }
.roof-model { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.roof-model-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.model-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.roof-model .eyebrow { margin-bottom: 4px; }
.roof-model h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.model-badge { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.model-toggle { cursor: pointer; color: var(--forest); }
.model-toggle[aria-pressed="true"] { border-color: var(--forest); color: #fff; background: var(--forest); }
.roof-model-note { margin: 12px 0 16px; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.roof-model-canvas { position: relative; height: clamp(420px, 52vw, 640px); min-height: 420px; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #fbf0f2, #f3e2e6); }
.roof-detail-map, .roof-plan-overlay { position: absolute; inset: 0; }
.roof-detail-map { display: none; }
.roof-model-canvas.has-map .roof-detail-map { display: block; }
.roof-model-canvas.has-map .roof-plan-overlay { display: none; }
.map-selection-hud { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: grid; gap: 3px; max-width: min(320px, calc(100% - 24px)); padding: 9px 11px; border: 1px solid rgba(255,255,255,.6); border-radius: 9px; color: #fff; background: rgba(29,29,27,.78); box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
.map-selection-hud strong { font-size: .78rem; }
.map-selection-hud span { color: rgba(255,255,255,.82); font-size: .7rem; line-height: 1.35; }
.roof-plan-overlay svg { display: block; width: 100%; height: 100%; min-height: 420px; }
.roof-model-empty { display: grid; place-items: center; min-height: 420px; padding: 22px; color: var(--muted); text-align: center; font-size: .88rem; line-height: 1.5; }
.model-ground { fill: rgba(255,255,255,.52); stroke: #ddc5cc; stroke-width: 2; }
.model-ridge { stroke: rgba(21,37,30,.5); stroke-width: 2.5; stroke-linecap: round; }
.model-segment { cursor: pointer; outline: none; }
.model-segment path, .model-segment rect { stroke: #fff; stroke-width: 3; transition: opacity .15s, transform .15s; transform-box: fill-box; transform-origin: center; }
.model-segment text { fill: #fff; font-size: 18px; font-weight: 850; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
.model-segment:hover path, .model-segment:hover rect, .model-segment:focus path, .model-segment:focus rect, .model-segment.is-active path, .model-segment.is-active rect { opacity: .9; stroke: var(--ink); stroke-width: 4; transform: scale(1.025); }
.model-segment.is-disabled path, .model-segment.is-disabled rect { opacity: .25; stroke: #ba9fa7; }
.model-segment.is-disabled text { fill: #765c64; }
.segment-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.segment-card.is-active { border-color: var(--forest); background: #f2f8f3; }
.segment-card.is-disabled { opacity: .48; }
.segment-toggle input { position: absolute; opacity: 0; }
.segment-toggle span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; }
.segment-toggle input:checked + span { border-color: var(--forest); background: var(--forest); }
.segment-toggle input:checked + span::after { content: "✓"; color: #fff; font-size: .78rem; }
.segment-copy strong, .segment-copy span { display: block; }
.segment-copy span { margin-top: 2px; color: var(--muted); font-size: .82rem; }
.segment-area { font-weight: 850; white-space: nowrap; }
.customer-roof-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.customer-roof-card strong, .customer-roof-card span { display: block; }
.customer-roof-card > div > strong { font-size: .9rem; }
.customer-roof-card span { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.customer-roof-area { white-space: nowrap; font-size: .96rem; }
.customer-roof-remove { min-height: 37px; padding: 7px 10px; font-size: .78rem; }

.service-choice-large { margin-top: 0; }
.service-choice-large .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-choice-large .choice-grid span { min-height: 100px; padding: 18px; }
.service-choice-large .choice-grid strong, .service-choice-large .choice-grid small { display: block; }
.service-choice-large .choice-grid strong { font-size: .95rem; }
.service-choice-large .choice-grid small { margin-top: 7px; color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.4; }
.repair-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.repair-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); min-height: 620px; overflow: hidden; border-radius: 16px; background: #20201f; }
.repair-map-stage { position: relative; min-height: 0; }
.repair-map { width: 100%; height: 100%; min-height: 520px; }
.repair-map-hud { position: absolute; z-index: 2; top: 16px; left: 16px; display: grid; gap: 3px; max-width: 290px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; background: rgba(29,29,27,.86); box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; }
.repair-map-hud span { color: #ffbac9; font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.repair-map-hud strong { font-size: 1.08rem; }
.repair-map-hud small { color: rgba(255,255,255,.78); font-size: .75rem; line-height: 1.35; }
.repair-tools { display: grid; align-content: start; gap: 16px; overflow-y: auto; padding: 22px; background: #fff; }
.repair-heading { display: flex; justify-content: space-between; gap: 14px; }
.repair-heading h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.repair-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.repair-tool-buttons { display: grid; gap: 8px; }
.repair-tool-card { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
.repair-tool-card:hover { border-color: #cc7890; background: #fff8fa; }
.repair-tool-card.is-active { border-color: var(--forest); color: var(--forest); background: #fceff2; box-shadow: inset 0 0 0 1px rgba(170,14,49,.08); }
.repair-tool-card strong, .repair-tool-card small { display: block; }
.repair-tool-card strong { font-size: .85rem; }
.repair-tool-card small { margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 550; line-height: 1.3; }
.repair-tool-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #fff; background: var(--forest); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.repair-tool-card:not(.is-active) .repair-tool-icon { color: var(--forest); background: #faedf0; }
.repair-list-wrap { display: grid; gap: 9px; padding-top: 3px; border-top: 1px solid var(--line); }
.repair-list-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; font-size: .86rem; }
.repair-list-heading span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; color: var(--forest); background: #faedf0; font-size: .76rem; font-weight: 850; }
.repair-list { display: grid; gap: 7px; }
.repair-list-item { padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; font-weight: 750; }
.repair-list-item.is-active { border-color: var(--forest); color: var(--forest); background: #fceff2; }
.repair-editor { display: grid; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.repair-editor h4 { margin: 0; font-size: .94rem; }
.repair-photo { min-height: 18px; color: var(--muted); font-size: .78rem; }
.repair-remove { justify-self: start; color: var(--danger); }
.repair-side-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 0 -2px -2px; padding-top: 14px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 25%); }
.repair-side-actions .button-primary { grid-column: 2; }
body.workflow-active.repair-workspace-active .repair-panel { height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.workflow-active.repair-workspace-active .repair-workspace { height: 100%; min-height: 0; }
.pv-planner { height: 100%; }
.pv-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); height: 100%; min-height: 620px; overflow: hidden; border-radius: 16px; background: #20201f; }
.pv-map-stage { position: relative; min-height: 0; }
.pv-map { width: 100%; height: 100%; min-height: 520px; }
.pv-map-hud { position: absolute; z-index: 2; top: 16px; left: 16px; display: grid; gap: 3px; max-width: 300px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; color: #fff; background: rgba(29,29,27,.86); box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; }
.pv-map-hud span { color: #ffe07a; font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.pv-map-hud strong { font-size: 1.1rem; }
.pv-map-hud small { color: rgba(255,255,255,.78); font-size: .75rem; line-height: 1.35; }
.pv-tools { display: grid; align-content: start; gap: 16px; overflow-y: auto; padding: 22px; background: #fff; }
.pv-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.pv-heading h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.pv-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.pv-roof-list { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-roof-title { margin: 0 0 2px; font-size: .86rem; font-weight: 850; }
.pv-roof-item, .pv-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.pv-roof-item:has(input:checked) { border-color: #d69700; background: #fff9de; }
.pv-roof-item input, .pv-option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #d69700; }
.pv-roof-item strong, .pv-roof-item small { display: block; }
.pv-roof-item strong { font-size: .84rem; }
.pv-roof-item small { margin-top: 2px; color: var(--muted); font-size: .74rem; font-weight: 550; line-height: 1.35; }
.pv-option { font-size: .82rem; font-weight: 750; }
.pv-form { display: grid; gap: 10px; }
.pv-module-slider { display: grid; gap: 10px; padding: 13px; border: 1px solid #ead9a0; border-radius: 12px; background: linear-gradient(135deg, #fffdf3, #fff8d8); }
.pv-module-slider > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pv-module-slider > div:first-child span { color: #6c5300; font-size: .8rem; font-weight: 800; }
.pv-module-slider > div:first-child strong { color: #5b4300; font-size: 1.12rem; letter-spacing: -.025em; }
.pv-module-slider input[type="range"] { width: 100%; height: 7px; margin: 4px 0; border-radius: 999px; appearance: none; outline: none; background: linear-gradient(90deg, #d69700 0%, #d69700 var(--slider-progress, 100%), #eadfb4 var(--slider-progress, 100%), #eadfb4 100%); }
.pv-module-slider input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: #d69700; box-shadow: 0 2px 7px rgba(91,67,0,.35); cursor: grab; }
.pv-module-slider input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; background: #d69700; box-shadow: 0 2px 7px rgba(91,67,0,.35); cursor: grab; }
.pv-slider-scale { display: flex; justify-content: space-between; color: #786534; font-size: .72rem; font-weight: 700; }
.pv-module-slider p { margin: 0; color: #786534; font-size: .74rem; line-height: 1.35; }
.pv-tools .pv-estimate { margin-top: 0; }
.pv-side-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 0 -2px -2px; padding-top: 14px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 25%); }
body.workflow-active.pv-workspace-active .pv-planner, body.workflow-active.pv-workspace-active .pv-workspace { height: 100%; min-height: 0; }
.service-detail-panel { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.service-detail-panel h3 { margin: 0; font-size: 1.05rem; }
.service-detail-panel .eyebrow { margin-bottom: 5px; }
.service-detail-panel .form-grid { margin-bottom: 0; }
.insulation-panel { display: grid; grid-template-columns: 48% calc(52% - 16px); gap: 16px; min-height: 610px; padding: 16px; overflow: hidden; border: 0; border-radius: 16px; background: #20201f; transition: grid-template-columns .68s cubic-bezier(.22, .8, .24, 1); }
.insulation-panel.is-expanded { grid-template-columns: 30% calc(70% - 16px); }
.insulation-story { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 13px; background: #fff; }
.insulation-story-heading { padding: 19px 21px 14px; border-bottom: 1px solid var(--line); }
.insulation-story-heading h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.insulation-story-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.insulation-visual { position: relative; min-height: 0; margin: 0; overflow: hidden; background: #f6eee5; }
.insulation-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% 45%; }
.insulation-story-copy { position: absolute; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; background: rgba(35,28,25,.88); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.insulation-story-copy strong { font-size: 1.04rem; }
.insulation-story-copy span { color: rgba(255,255,255,.78); font-size: .77rem; font-weight: 600; }
.insulation-form { display: grid; align-content: start; min-width: 0; overflow: hidden; padding: clamp(27px, 2.4vw, 38px); border-radius: 13px; background: #fff; }
.insulation-form-heading { margin-bottom: 18px; }
.insulation-form-heading h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.insulation-form-heading p:not(.eyebrow) { max-width: 640px; margin: 7px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.insulation-question { min-width: 0; margin: 0; padding: 16px 0 0; border: 0; }
.insulation-form-heading + .insulation-question { padding-top: 4px; }
.insulation-question legend { display: flex; align-items: center; gap: 9px; padding: 0; color: var(--ink); font-size: 1.02rem; font-weight: 850; }
.insulation-question legend > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--forest); font-size: .75rem; }
.insulation-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.insulation-choice, .insulation-goal { position: relative; display: block; cursor: pointer; }
.insulation-choice input, .insulation-goal input { position: absolute; opacity: 0; pointer-events: none; }
.insulation-choice > span { display: grid; min-height: 92px; align-content: start; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.insulation-choice:hover > span { border-color: #d89ba9; transform: translateY(-1px); }
.insulation-choice b { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 1px; border-radius: 9px; color: var(--forest); background: #faedf0; font-size: 1.1rem; line-height: 1; }
.insulation-choice strong { font-size: .9rem; }
.insulation-choice small { color: var(--muted); font-size: .72rem; font-weight: 550; line-height: 1.35; }
.insulation-choice:has(input:checked) > span { border-color: var(--forest); background: #fdf3f5; box-shadow: inset 0 0 0 1px rgba(170,14,49,.1); }
.insulation-choice:has(input:checked) b { color: #fff; background: var(--forest); }
.insulation-recommendation { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid #e7c8d0; border-radius: 12px; background: linear-gradient(110deg, #fff5f7, #fff); }
.insulation-recommendation[hidden] { display: none; }
.insulation-recommendation-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #fff; background: var(--forest); font-weight: 900; }
.insulation-recommendation small { display: block; margin-bottom: 2px; color: var(--forest); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.insulation-recommendation strong { font-size: .94rem; }
.insulation-recommendation p { margin: 4px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.insulation-year { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 14px; min-height: 62px; margin-top: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 800; }
.insulation-year span { display: grid; gap: 2px; }
.insulation-year small { color: var(--muted); font-size: .7rem; font-weight: 550; }
.insulation-year input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); font-weight: 700; }
.insulation-year input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(170,14,49,.12); }
.insulation-goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.insulation-goal > span { display: flex; align-items: center; min-height: 50px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: .84rem; font-weight: 750; transition: border-color .15s, background .15s; }
.insulation-goal > span::before { content: ""; width: 17px; height: 17px; flex: 0 0 auto; margin-right: 9px; border: 1px solid #cdb9be; border-radius: 50%; background: #fff; }
.insulation-goal:has(input[type="checkbox"]) > span::before { border-radius: 5px; }
.insulation-goal:has(input:checked) > span { border-color: var(--forest); color: var(--forest); background: #fdf3f5; }
.insulation-goal:has(input:checked) > span::before { content: "✓"; display: grid; place-items: center; border-color: var(--forest); color: #fff; background: var(--forest); font-size: .68rem; font-weight: 900; }
.insulation-question-last { padding-bottom: 0; }
.insulation-note { margin: 11px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.billing-fields { display: grid; gap: 14px; margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }

body.map-fullscreen-active { overflow: hidden; }
.map-workspace.is-fullscreen { position: fixed; z-index: 1000; inset: 0; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 16px; margin: 0; padding: 16px; background: #20201f; }
.map-workspace.is-fullscreen .roof-model { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; padding: 18px; border-color: #fff; }
.map-workspace.is-fullscreen .roof-model-canvas { height: auto; min-height: 0; }
.map-workspace.is-fullscreen .map-selection-panel { align-content: start; overflow-y: auto; padding: 22px; background: #fff; }
.map-workspace.is-fullscreen .model-controls { gap: 8px; }
.map-workspace.is-fullscreen #toggleMapFullscreen { color: #fff; border-color: var(--forest); background: var(--forest); }

.manual-panel { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manual-panel summary { padding: 17px 0; color: var(--forest); cursor: pointer; font-weight: 800; }
.manual-panel > p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.option-grid, .choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.option-card, .choice-grid label { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option-card input, .choice-grid input { position: absolute; opacity: 0; }
.option-card span, .choice-grid span { display: block; padding: 12px; font-size: .84rem; font-weight: 750; }
.option-card:has(input:checked), .choice-grid label:has(input:checked) { border-color: var(--forest); background: #fceff2; }
.manual-result { margin: 3px 0 19px; color: var(--forest); font-size: .9rem; font-weight: 750; }
.plausibility-panel { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #fff, #fcf4f6); }
.plausibility-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.plausibility-panel h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.plausibility-panel > p { margin: 12px 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.photo-guidance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 16px 0; list-style: none; counter-reset: photos; }
.photo-guidance li { min-height: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.photo-guidance li::before { counter-increment: photos; content: counter(photos); display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 6px; border-radius: 50%; color: #fff; background: var(--forest); font-size: .7rem; font-weight: 800; }
.upload-field { display: grid; gap: 7px; padding: 13px; border: 1px dashed #c99aa8; border-radius: 10px; color: var(--ink); cursor: pointer; font-size: .88rem; font-weight: 800; background: #fff; }
.upload-field small { color: var(--muted); font-weight: 500; }
.upload-field input { max-width: 100%; color: var(--muted); font-size: .8rem; font-weight: 500; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.photo-card img { display: block; width: 100%; height: 88px; object-fit: cover; background: var(--sand); }
.photo-card label { display: grid; gap: 5px; padding: 9px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.photo-card select { width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: .75rem; }
.ai-consent { margin: 15px 0 0; }
.plausibility-actions { display: flex; align-items: center; gap: 14px; margin-top: 15px; }
.plausibility-actions .field-note { margin: 0; }
.plausibility-result { margin-top: 16px; padding: 16px; border: 1px solid #d9c7cd; border-radius: 10px; background: #fff; }
.plausibility-result > strong { color: var(--forest-dark); }
.plausibility-result > p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.plausibility-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.plausibility-columns div { padding: 11px; border-radius: 8px; background: var(--paper); }
.plausibility-columns span { color: var(--ink); font-size: .78rem; font-weight: 850; }
.plausibility-columns ul { margin: 7px 0 0; padding-left: 18px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.plausibility-next { color: var(--forest) !important; font-weight: 750; }
.pv-panel { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #f8fbff, #fff); }
.pv-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.pv-panel h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.pv-panel > p { margin: 12px 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.pv-choices { margin-top: 0; }
.pv-estimate { margin-top: 16px; padding: 15px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #203f6b, #39749b); }
.pv-estimate .result-label { color: rgba(255,255,255,.7); }
.pv-estimate strong { display: block; margin: 3px 0; font-size: 1.65rem; letter-spacing: -.035em; }
.pv-estimate p { margin: 0; color: rgba(255,255,255,.84); font-size: .82rem; line-height: 1.4; }
.service-choice { padding: 0; margin: 25px 0 0; border: 0; }
.service-choice legend { margin-bottom: 11px; font-weight: 850; }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--forest); }
.tutorial-restart { position: fixed; z-index: 1100; right: 18px; bottom: 18px; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: var(--forest); box-shadow: 0 8px 24px rgba(54,6,19,.25); font-size: .8rem; font-weight: 800; }
.tutorial-card { position: fixed; z-index: 1200; right: 22px; bottom: 22px; width: min(365px, calc(100% - 36px)); padding: 18px; border: 1px solid #e7c8d0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 18px 50px rgba(29,29,27,.24); }
.tutorial-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--forest); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tutorial-card-header strong { padding: 5px 8px; border-radius: 999px; color: var(--forest-dark); background: #faedf0; font-size: .68rem; letter-spacing: 0; text-transform: none; }
.tutorial-card h2 { margin: 12px 0 8px; font-size: 1.2rem; letter-spacing: -.025em; }
.tutorial-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.tutorial-card-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.tutorial-card-actions .button { min-height: 38px; font-size: .8rem; }
.tutorial-focus { position: relative; z-index: 10; border-radius: 12px; }
.tutorial-spotlight { position: fixed; z-index: 1150; border: 3px solid var(--forest); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(20,18,18,.58), 0 0 0 7px rgba(170,14,49,.18); pointer-events: none; transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease; }
.tutorial-arrow { position: fixed; z-index: 1190; height: 3px; border-radius: 999px; background: var(--forest); box-shadow: 0 2px 8px rgba(54,6,19,.3); pointer-events: none; transform-origin: left center; }
.tutorial-arrow::after { content: ""; position: absolute; top: 50%; right: -1px; width: 12px; height: 12px; border-top: 3px solid var(--forest); border-right: 3px solid var(--forest); transform: translateY(-50%) rotate(45deg); }
/* Google Places wird direkt am body eingefügt. Es muss über der Tutorial-Abdunkelung liegen,
   damit Vorschläge sichtbar bleiben und ausgewählt werden können. */
.pac-container { z-index: 1250 !important; }

body.workflow-active .tutorial-restart { right: 20px; bottom: 18px; }
body.workflow-active .tutorial-card { right: 22px; bottom: 22px; }

@media (min-width: 1100px) {
  .step { padding: 42px 48px; }
  .roof-model { padding: 24px; }
}

@media (max-width: 980px) {
  .insulation-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insulation-panel, .insulation-panel.is-expanded { grid-template-columns: 38% calc(62% - 16px); }
}

@media (max-height: 980px) and (min-width: 641px) {
  body.workflow-active.insulation-workspace-active .step[data-step="3"].is-active { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .insulation-form { padding: 20px 28px; }
  .insulation-form-heading { margin-bottom: 9px; }
  .insulation-form-heading p:not(.eyebrow) { margin-top: 4px; font-size: .8rem; }
  .insulation-question { padding-top: 9px; }
  .insulation-question legend { font-size: .9rem; }
  .insulation-choice-grid, .insulation-goal-grid { margin-top: 7px; }
  .insulation-choice > span { min-height: 69px; padding: 8px 10px; }
  .insulation-choice b { width: 23px; height: 23px; font-size: .9rem; }
  .insulation-choice strong { font-size: .8rem; }
  .insulation-choice small { font-size: .65rem; }
  .insulation-goal > span { min-height: 40px; padding: 8px 10px; font-size: .76rem; }
  .insulation-recommendation { margin-top: 9px; padding: 9px 11px; }
  .insulation-recommendation p { font-size: .69rem; }
  .insulation-year { padding: 7px 9px; }
  .insulation-year input { padding: 7px 8px; }
  .insulation-note { margin-top: 6px; font-size: .68rem; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 20px, 920px); padding-top: 26px; }
  .step { padding: 22px 17px; }
  .progress { gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .progress::-webkit-scrollbar { display: none; }
  .progress li { gap: 5px; }
  .progress span { width: 24px; height: 24px; }
  .analysis-panel, .result-summary { align-items: stretch; flex-direction: column; }
  .analysis-panel .button { width: 100%; }
  .form-grid, .option-grid, .choice-grid, .photo-guidance, .plausibility-columns, .outline-fields, .map-workspace, .service-choice-large .choice-grid, .repair-workspace, .pv-workspace { grid-template-columns: 1fr; }
  .insulation-panel, .insulation-panel.is-expanded, .insulation-choice-grid, .insulation-goal-grid { grid-template-columns: 1fr; }
  .insulation-panel { gap: 10px; padding: 10px; }
  .insulation-story { grid-template-rows: auto 250px; }
  .insulation-visual { min-height: 250px; }
  .insulation-story-heading, .insulation-form { padding: 20px; }
  .insulation-form { overflow: visible; }
  .insulation-question { padding: 18px 0 0; }
  .insulation-choice > span { min-height: 0; grid-template-columns: auto 1fr; align-items: center; }
  .insulation-choice b { grid-row: span 2; margin: 0; }
  .insulation-choice small { grid-column: 2; }
  .insulation-recommendation { margin: 16px 0 0; }
  .insulation-year { grid-template-columns: 1fr; }
  .insulation-question-last { padding-bottom: 22px; }
  .customer-roof-card { grid-template-columns: 1fr auto; }
  .customer-roof-remove { grid-column: 1 / -1; justify-self: start; }
  .roof-model { padding: 15px; }
  .roof-model-heading { flex-direction: column; gap: 8px; }
  .roof-mask-heading { align-items: stretch; flex-direction: column; }
  .pv-heading { align-items: stretch; flex-direction: column; }
  .model-controls { justify-content: flex-start; }
  .plausibility-heading, .plausibility-actions { align-items: stretch; flex-direction: column; }
  .map-shell { height: 255px; }
  .roof-model-canvas { height: 310px; min-height: 310px; }
  .roof-plan-overlay svg, .roof-model-empty { min-height: 310px; }
  .property-main { left: 21%; }
  .map-workspace.is-fullscreen { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .map-workspace.is-fullscreen .map-selection-panel { max-height: 44vh; padding: 15px; }
  .map-workspace.is-fullscreen .roof-model { padding: 14px; }
  .map-workspace { min-height: auto; padding: 10px; }
  .map-workspace .roof-model-canvas { height: 470px; min-height: 470px; }
  .map-workspace .map-selection-panel { max-height: none; }
  .repair-workspace { min-height: auto; }
  .repair-map { min-height: 420px; }
  .pv-map { min-height: 420px; }
  body.workflow-active.repair-workspace-active, body.workflow-active.pv-workspace-active { overflow: auto; }
  body.workflow-active.repair-workspace-active .step[data-step="4"].is-active, body.workflow-active.pv-workspace-active .step[data-step="5"].is-active { display: block; min-height: auto; max-height: none; padding: 10px; overflow: visible; }
  body.workflow-active.repair-workspace-active .repair-panel { height: auto; }
  body.workflow-active.repair-workspace-active .repair-workspace { height: auto; min-height: auto; }
  body.workflow-active.pv-workspace-active .pv-planner, body.workflow-active.pv-workspace-active .pv-workspace { height: auto; min-height: auto; }
  .repair-tools { max-height: none; }
  .tutorial-restart { right: 10px; bottom: 10px; }
  .tutorial-card { right: 10px; bottom: 10px; width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .insulation-panel { transition: none; }
}
