/* Host theme: original Heizreport subnavigation, project cards and control sizes. */
.pv-integration{min-width:0}
.pv-integration-tabs{flex-wrap:wrap;overflow:visible}
.pv-integration-editor:has(>.pv-planning-host:empty){min-height:120px}
/* The same start hero covers module loading and the first project request. */
.pv-integration .pv-start-hero{display:flex;align-items:center;justify-content:center;gap:clamp(24px,5vw,64px);min-height:340px;padding:40px 32px;box-sizing:border-box;border:1px solid var(--hr-border,#d9e2ef);border-radius:12px;background:linear-gradient(120deg,#fff 25%,#eff5fb);color:var(--hr-text,#10203f);text-align:left;box-shadow:var(--hr-shadow-sm)}
.pv-integration .pv-start-hero-art{display:block;width:clamp(180px,23vw,280px);height:auto;flex-shrink:0}
.pv-integration .pv-start-hero-copy{max-width:430px;min-width:0}
.pv-integration .pv-start-hero-eyebrow{display:block;margin-bottom:12px;color:var(--hr-primary-dark,#265987);font-size:11px;font-weight:800;letter-spacing:.16em;line-height:1.5}
.pv-integration .pv-start-hero h2{margin:0;color:var(--hr-text,#10203f);font-size:clamp(23px,2.4vw,30px);font-weight:700;line-height:1.25;letter-spacing:-.025em}
.pv-integration .pv-start-hero p{margin:14px 0 0;color:var(--hr-muted,#5f6f86);font-size:14px;line-height:1.7}
.pv-integration .pv-start-hero-status{display:flex;align-items:center;gap:10px;margin-top:24px;color:var(--hr-primary-dark,#265987);font-size:13px;font-weight:600;line-height:1.5}
.pv-integration .pv-start-hero-spinner{display:block;flex:0 0 20px;width:20px;height:20px;box-sizing:border-box;border:2px solid #d0e1f1;border-top-color:var(--hr-primary,#3371b7);border-right-color:var(--hr-primary,#3371b7);border-radius:50%;animation:pv-start-spin .85s linear infinite}
@keyframes pv-start-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.pv-integration .pv-start-hero{min-height:360px;flex-direction:column;gap:16px;padding:28px 20px;text-align:center}.pv-integration .pv-start-hero-art{width:180px}.pv-integration .pv-start-hero-eyebrow{margin-bottom:8px}.pv-integration .pv-start-hero-status{justify-content:center;margin-top:20px}}
@media(prefers-reduced-motion:reduce){.pv-integration .pv-start-hero-spinner{animation:none}}
.pv-integration .pv-planning-host{font-family:inherit;color:var(--hr-text);background:transparent}
.pv-integration .pv-planning-host :is(button,input,select,textarea,h1,h2,h3,h4){font-family:inherit}
.pv-integration .pv-planning-embedded{min-height:0}
.pv-integration .pv-planning-embedded .content{background:transparent}
.pv-integration .pv-planning-host :is(button.primary,button.dark,button.tool,button.action-button):not(.icon-button):not(.pv-remove-button){min-height:34px;padding:6px 10px;border:1px solid var(--hr-border);border-radius:8px;font-size:13px;font-weight:800;line-height:1.5;gap:7px;text-decoration:none;box-shadow:none;filter:none}
.pv-integration .pv-planning-host :is(button.primary,button.dark){color:#fff;border-color:var(--hr-primary);background:var(--hr-primary)}
.pv-integration .pv-planning-host :is(button.primary,button.dark):hover:not(:disabled){border-color:var(--hr-primary-dark);background:var(--hr-primary-dark)}
.pv-integration .pv-planning-host :is(button.tool,button.action-button){color:#506178;background:#fff}
.pv-integration .pv-planning-host :is(button.tool,button.action-button):hover:not(:disabled){color:var(--hr-primary-dark);border-color:#b9d3f0;background:#eef7ff}
.pv-integration .pv-planning-host :is(button.tool,button.action-button).selected{color:var(--hr-primary-dark);border-color:#b9d3f0;background:#eef7ff}
.pv-integration .pv-planning-host button.action-button.danger{color:var(--hr-red)}
.pv-integration .pv-planning-host :is(button.primary,button.dark):disabled{opacity:.55}
.pv-integration .pv-planning-host :is(button.tool,button.action-button):disabled{color:#a1adba;background:#f3f6f9;border-color:#e2e8f0;opacity:1}
.pv-integration .pv-planning-host :is(.panel,.viewer-card,.results-card){border-color:var(--hr-border);border-radius:8px;background:#fff;box-shadow:var(--hr-shadow-sm)}
.pv-integration .pv-planning-host .panel{padding:17px}
.pv-integration .pv-planning-host .panel-heading{gap:8px;margin-bottom:16px}
.pv-integration .pv-planning-host :is(.panel-heading h3,.viewer-header strong,.results-card h2){font-size:17px;font-weight:700;color:var(--hr-text)}
.pv-integration .pv-planning-host .panel-heading>span:last-child:not(.step-number){font-size:12px;color:var(--hr-muted)}
.pv-integration .pv-planning-host .step-number{font-size:11px;padding:4px 6px;color:var(--hr-primary-dark);background:#eef7ff}
.pv-integration .pv-planning-host .project-preparation-intro{padding:15px 17px;border:1px solid var(--hr-border);border-radius:8px;background:#fff;margin-bottom:16px;gap:12px}
.pv-integration .pv-planning-host .project-preparation-intro>div{display:flex;align-items:center;gap:8px;min-width:0}
.pv-integration .pv-planning-host .project-preparation-intro h2{font-size:17px;font-weight:700;line-height:1.4;color:var(--hr-text)}
.pv-integration .pv-planning-host .project-preparation .properties{gap:16px}
/* Reuse business.css .upload-dropzone, including its responsive layout and drag states. */
.pv-integration .pv-planning-host .pv-photo-dropzone .btn{padding:6px 10px;border:1px solid var(--hr-primary);border-radius:8px;background:transparent;color:var(--hr-primary);font-size:13px;font-weight:600;line-height:1.5}
.pv-integration .pv-planning-host .pv-photo-dropzone .btn:hover:not(:disabled){background:var(--hr-primary);color:#fff}
.pv-integration .pv-planning-host .pv-photo-dropzone .btn:focus-visible{outline:2px solid var(--hr-primary);outline-offset:3px}
.pv-integration .pv-planning-host .pv-photo-dropzone .btn:disabled{cursor:not-allowed}
.pv-integration .pv-planning-host .pv-photo-upload-progress{margin-top:16px;padding:14px 16px;border:1px solid var(--hr-border);border-radius:8px;background:#f8fafc;color:var(--hr-text);font-size:13px;line-height:1.5}
.pv-integration .pv-planning-host .pv-photo-upload-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
.pv-integration .pv-planning-host .pv-photo-upload-heading strong{font-size:13px;font-weight:700}
.pv-integration .pv-planning-host .pv-photo-upload-percent{flex-shrink:0;color:var(--hr-primary-dark);font-weight:800;font-variant-numeric:tabular-nums}
.pv-integration .pv-planning-host .pv-photo-upload-track{height:8px;overflow:hidden;border-radius:999px;background:#e2eaf3}
.pv-integration .pv-planning-host .pv-photo-upload-fill{height:100%;border-radius:inherit;background:var(--hr-primary);transition:width .16s linear}
.pv-integration .pv-planning-host .pv-photo-upload-details{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-top:9px;color:var(--hr-muted);font-size:12px;font-variant-numeric:tabular-nums}
.pv-integration .pv-planning-host .pv-photo-upload-current{margin:5px 0 0;overflow-wrap:anywhere;color:var(--hr-muted);font-size:12px}
.pv-integration .pv-planning-host .pv-photo-upload-progress.is-error{border-color:#efc3bd;background:#fff8f7}
.pv-integration .pv-planning-host .pv-photo-upload-progress.is-error .pv-photo-upload-fill{background:var(--hr-red,#bd4036)}
@media(prefers-reduced-motion:reduce){.pv-integration .pv-planning-host .pv-photo-upload-fill{transition:none}}
.pv-integration .pv-planning-host :is(.photo-summary,.photo-list>div,.engine-state,.upload-progress){font-size:13px;color:var(--hr-muted)}
.pv-integration .pv-planning-host :is(.remaining,.privacy-note){font-size:12px;color:var(--hr-muted);line-height:1.5}
.pv-integration .pv-planning-host .photo-list{max-height:none;overflow:visible}
.pv-integration .pv-planning-host .steps{padding:14px 17px;margin-bottom:16px;border-color:var(--hr-border);border-radius:8px;background:#fff}
.pv-integration .pv-planning-host .steps>div{font-size:13px;line-height:1.4;gap:8px}
.pv-integration .pv-planning-host .steps>div>span{font-size:11px}
.pv-integration .pv-planning-host .capture-choice h2{font-size:20px;font-weight:700;color:var(--hr-text)}
.pv-integration .pv-planning-host .capture-options>button{border-color:var(--hr-border);border-radius:8px;box-shadow:var(--hr-shadow-sm)}
.pv-integration .pv-planning-host .capture-options>button strong{font-size:17px;font-weight:700}
.pv-integration .pv-planning-host .capture-options>button small{font-size:13px;line-height:1.5}
@media(max-width:700px){.pv-integration .pv-planning-host .steps{display:flex;flex-wrap:wrap;gap:12px}.pv-integration .pv-planning-host .steps>div{flex:1 1 160px}.pv-integration .pv-planning-host .project-preparation-intro{align-items:flex-start;flex-wrap:wrap}.pv-integration-tabs button{white-space:normal;text-align:left}}

/* Match the small help icon used by the brine heat-pump dimensioning cards.
   Keep its 28px hit area, but render the question symbol at the original 15px. */
.pv-planning-host button.help-question,.pv-planning-portal button.help-question{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:0;background:transparent;color:var(--hr-primary,#3371b7);font-size:15px;line-height:1;box-shadow:none}
.pv-planning-host button.help-question>.help-symbol,.pv-planning-portal button.help-question>.help-symbol{width:15px;height:15px}
.pv-planning-host button.help-question:hover,.pv-planning-portal button.help-question:hover{color:var(--hr-primary-dark,#265987);background:transparent}
.pv-planning-host .pv-overall>button.help-question{color:#fff}
/* Card help sits in the same top-right position as project-heatpump-selection-help. */
.pv-integration .pv-planning-host .panel{position:relative}
.pv-integration .pv-planning-host .panel-heading{padding-right:30px}
.pv-integration .pv-planning-host .panel-heading>.help-question{position:absolute;top:6px;right:6px;margin:0}
.pv-integration .pv-planning-host .project-preparation-intro{position:relative;padding-right:46px}
.pv-integration .pv-planning-host .project-preparation-intro .help-question{position:absolute;top:6px;right:6px;margin:0}
.pv-integration .pv-planning-host .viewer-header{position:relative;padding-right:46px}
.pv-integration .pv-planning-host .viewer-header .help-question{position:absolute;top:6px;right:6px;margin:0}
.pv-integration .pv-planning-host .results-card .section-title{position:relative;padding-right:34px}
.pv-integration .pv-planning-host .results-card .section-title>.help-question{position:absolute;top:0;right:0;margin:0}
.pv-planning-host :is(.roof-pane-heading,.wiring-section-title,.pv-measurement-title,.pv-controls>h3)>.help-question,.pv-planning-portal :is(.roof-pane-heading,.wiring-section-title,.pv-measurement-title,.pv-controls>h3)>.help-question{order:10;margin-left:auto;margin-right:0}
.pv-planning-host :is(.photo-align-panel,.building-editor,.crop-editor),.pv-planning-portal :is(.photo-align-panel,.building-editor,.crop-editor){position:relative}
.pv-planning-host :is(.photo-align-panel,.building-editor,.crop-editor)>.help-question,.pv-planning-portal :is(.photo-align-panel,.building-editor,.crop-editor)>.help-question{position:absolute;top:6px;right:6px;margin:0}

/* Next-action prompts mirror building-plan-window-editor (14px, blue top edge). */
.pv-planning-host .scene-viewer{position:relative}
.pv-next-guide{position:absolute;z-index:20;top:150px;left:16px;width:min(350px,calc(100% - 32px));display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--hr-border,#dce3ec);border-top:3px solid var(--hr-primary,#4f7fb4);border-radius:6px;background:#fff;box-shadow:0 5px 20px #17283f26;color:var(--hr-text,#26374e)}
.pv-next-guide .pv-next-guide-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--hr-muted,#7e8997)}
.pv-next-guide h2{margin:0;font-size:14px;line-height:1.3;font-weight:800}
.pv-next-guide p{margin:0;color:var(--hr-muted,#7e8997);font-size:12px;line-height:1.6}
.pv-next-guide-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.pv-next-guide button,.pv-next-guide-reopen{min-height:36px;border:1px solid var(--hr-border,#dce3ec);border-radius:6px;padding:8px 10px;font:inherit;font-size:12px;line-height:1.4;background:#fff;color:var(--hr-text,#26374e);cursor:pointer}
.pv-next-guide button.pv-next-guide-primary{border-color:var(--hr-primary,#4f7fb4);background:var(--hr-primary,#4f7fb4);color:#fff;font-weight:700}
.pv-next-guide button:focus-visible,.pv-next-guide-reopen:focus-visible{outline:2px solid var(--hr-primary,#4f7fb4);outline-offset:3px}
/* Quiet, pale yellow keeps the next action visible without pulsing. */
.pv-next-guide-reopen{position:absolute;z-index:20;left:16px;top:150px;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-color:#e8cf7b;background:#fff3cd;color:#655017;font-weight:750;box-shadow:0 2px 8px #17283f18}
.pv-next-guide-reopen .pv-next-guide-info{flex:0 0 20px}
.pv-next-guide-reopen:hover,.pv-next-guide-reopen:focus-visible{background:#ffedb3;border-color:#d8bb60}
.pv-planning-host .roof-pick-guide{border:1px solid var(--hr-border,#dce3ec);border-top:3px solid var(--hr-primary,#4f7fb4);border-radius:6px;background:#fff;box-shadow:0 5px 20px #17283f26}
@media(max-width:700px){.pv-next-guide,.pv-next-guide-reopen{top:180px;left:10px}.pv-next-guide{width:min(320px,calc(100% - 20px))}}

/* Keep the point-by-point instructions and inputs over the scene, not in its layout. */
.pv-planning-host .scene-viewer>:is(.roof-pick-guide,.building-review-top,.measure-panel){position:absolute;z-index:20;top:150px;left:16px;right:auto;width:min(350px,calc(100% - 32px));max-width:350px;max-height:calc(100% - 170px);overflow:auto;padding:14px;border:1px solid var(--hr-border,#dce3ec);border-top:3px solid var(--hr-primary,#4f7fb4);border-radius:6px;background:#fff;box-shadow:0 5px 20px #17283f26}
.pv-planning-host .scene-viewer>.roof-pick-guide{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start}
.pv-planning-host .roof-pick-guide>.roof-pick-sketch{width:72px;max-width:100%;margin:0}
.pv-planning-host .roof-pick-guide>.roof-pick-instruction{min-width:0}
.pv-planning-host .roof-pick-guide>.roof-pick-instruction strong{font-size:14px;line-height:1.4}
.pv-planning-host .roof-pick-guide>.roof-pick-instruction p{font-size:12px;line-height:1.6}
.pv-planning-host .roof-pick-guide>.roof-pick-instruction small{font-size:10px}
.pv-planning-host .roof-pick-guide>div:last-child{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pv-planning-host .scene-viewer>.measure-panel{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.pv-planning-host .scene-viewer>.measure-panel .measure-actions{display:flex;flex-wrap:wrap;gap:8px}
.pv-planning-host .scene-viewer>.measure-panel .measure-actions label{flex:1 1 100%;width:auto;min-width:0}
.pv-planning-host .scene-viewer>.measure-panel .measure-actions label :is(input,select){width:100%}
.pv-planning-host .scene-viewer>.building-review-top .building-review-heading{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.pv-planning-host .scene-viewer>.building-review-top .building-save{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.pv-planning-host .scene-viewer>:is(.roof-pick-guide,.building-review-top,.measure-panel){top:180px;left:10px;max-height:calc(100% - 200px);width:min(320px,calc(100% - 20px))}}

/* Compact measuring card and high-contrast numbered model points. */
.pv-planning-host .scene-viewer>.measure-panel{flex-wrap:nowrap;height:auto;min-height:0}
.pv-planning-host .scene-viewer>.measure-panel>div:first-child{flex:none;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.pv-planning-host .scene-viewer>.measure-panel>div:first-child>strong{flex:1}
.pv-planning-host .scene-viewer>.measure-panel .pv-measurement-close{min-height:28px;width:28px;padding:4px;flex:none}
.pv-planning-host .scene-viewer>.measure-panel .pv-measurement-instruction{font-size:12px;line-height:1.5;margin:0;color:var(--hr-text,#17283f)}
.pv-planning-host .pv-measurement-count{font-size:11px;color:var(--hr-muted,#607084)}
.pv-planning-host .scene-viewer>.measure-panel .measurement-buttons{flex:none;width:100%;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.pv-planning-host .scene-viewer>.measure-panel .measurement-buttons>button{height:auto;min-height:36px;white-space:normal}
.pv-planning-host .scene-viewer>.measure-panel .measurement-buttons>.primary{grid-column:1/-1}
.pv-planning-host .measurement-marker{width:28px;height:28px;border:3px solid #fff;font-size:13px;font-weight:750;box-shadow:0 0 0 1px #1766c1,0 2px 7px #17283f66}
.pv-planning-host .viewer-stage.is-measuring canvas{cursor:crosshair}

.pv-planning-host .scene-viewer>.measure-panel .pv-measurement-error{font-size:12px;line-height:1.5;margin:0;color:#a34135;padding:8px;border:1px solid #e8cac5;background:#fff5f4;border-radius:5px}

/* Orientation and scale use the same floating work card as measurement. */
.pv-planning-host .viewer-controls .orientation-host,.pv-planning-host .viewer-controls .orientation-panel{position:static;margin:0;padding:0;border:0;background:transparent}
.pv-planning-host .viewer-controls .orientation-panel>summary{display:flex;align-items:center;gap:6px;min-height:34px;padding:8px 10px;border:1px solid var(--hr-border,#dce3ec);border-radius:5px;background:#fff;font-size:12px;line-height:1.4;list-style:none;white-space:nowrap}
.pv-planning-host .orientation-panel>summary::-webkit-details-marker{display:none}
.pv-planning-host .viewer-controls .orientation-icon{margin:0;font-size:12px}
.pv-planning-host .viewer-controls .orientation-panel>summary>span:last-child{font-size:10px;margin:0;color:var(--hr-muted,#607084)}
.pv-planning-host .viewer-controls .orientation-panel[open]>summary{background:#edf5fc;border-color:#b9d2e9;color:var(--hr-primary,#3371b7)}
.pv-planning-host .viewer-controls .orientation-fields{position:absolute;z-index:20;top:calc(100% + 16px);left:16px;right:auto;width:min(350px,calc(100% - 32px));max-width:350px;max-height:clamp(180px,calc(100dvh - 350px),560px);overflow:auto;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:10px;padding:14px;border:1px solid var(--hr-border,#dce3ec);border-top:3px solid var(--hr-primary,#4f7fb4);border-radius:6px;background:#fff;box-shadow:0 5px 20px #17283f26;color:var(--hr-text,#17283f)}
.pv-planning-host .pv-work-card-heading{display:flex;align-items:center;gap:6px;min-width:0;width:100%}
.pv-planning-host .pv-work-card-heading>strong{flex:1;font-size:14px;line-height:1.4}
.pv-planning-host .pv-work-card-heading .pv-measurement-close{flex:none;width:28px;min-height:28px;padding:4px}
.pv-planning-host .orientation-fields .orientation-intro{flex-basis:auto;align-items:flex-start;gap:10px}
.pv-planning-host .orientation-fields .orientation-intro svg{width:58px}
.pv-planning-host .orientation-fields .orientation-intro p{font-size:12px;line-height:1.6;color:var(--hr-text,#17283f)}
.pv-planning-host .orientation-fields label{width:100%;min-width:0;font-size:12px;gap:5px}
.pv-planning-host .orientation-fields input:not([type=range]){width:100%;max-width:none;min-height:36px;font-size:14px}
.pv-planning-host .orientation-fields input[type=range]{width:100%;margin:6px 0;accent-color:var(--hr-primary,#3371b7)}
.pv-planning-host .orientation-fields>details{flex-basis:auto;font-size:12px}
.pv-planning-host .orientation-location{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pv-planning-host .orientation-fields>.primary{width:100%;min-height:36px;font-size:12px;white-space:normal}
.pv-planning-host .orientation-fields .orientation-save-error{font-size:12px;line-height:1.5;color:#a34135;padding:8px;border:1px solid #e8cac5;background:#fff5f4;border-radius:5px}
.pv-planning-host .scene-viewer>.pv-scale-panel .pv-scale-warning{font-size:11px;line-height:1.5;margin:0;padding:8px;border:1px solid #e8d5ae;border-radius:5px;background:#fff8ed;color:#655017}
.pv-planning-host .scene-viewer>.pv-scale-panel .measure-actions{align-items:stretch}
.pv-planning-host .scene-viewer>.pv-scale-panel .measure-actions label{font-size:12px}
.pv-planning-host .scene-viewer>.pv-scale-panel .measure-actions label :is(input,select){max-width:none;font-size:14px;min-height:36px}
.pv-planning-host .scene-viewer>.pv-scale-panel .measure-actions>.primary{flex:1 1 100%;min-height:36px}
.pv-planning-host .scene-viewer>.pv-scale-panel .measure-actions>.tool{width:100%;min-height:34px}
@media(max-width:700px){.pv-planning-host .viewer-controls .orientation-fields{left:10px;width:min(320px,calc(100% - 20px));max-height:clamp(180px,calc(100dvh - 320px),520px)}.pv-planning-host .viewer-controls .orientation-panel>summary>span[role=status]{display:none}}

.pv-planning-host .scene-viewer .pv-work-card-heading>button.pv-measurement-close{padding:4px;min-height:28px;width:28px;min-width:28px;gap:0}
.pv-planning-host .pv-measurement-close>svg{flex-shrink:0;width:14px;height:14px}

/* Windows-style maximize/restore control; only the working view fills the screen. */
.pv-planning-host .viewer-header-actions>button.viewer-maximize{flex:none;width:34px;height:34px;min-height:34px;padding:7px;gap:0;border:1px solid var(--hr-border,#dce3ec);border-radius:6px;background:#fff;color:var(--hr-text,#17283f)}
.pv-planning-host .viewer-maximize>svg{flex:none;width:18px;height:18px}
.pv-planning-host.pv-viewer-maximized{width:100%;height:100%;overflow:hidden;background:#eff5fb}
.pv-planning-host.pv-viewer-maximized .viewer-card{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;width:100%;height:100%;margin:0;border:0;border-radius:0;overflow:hidden;background:#fff;box-shadow:none}
.pv-planning-host.pv-viewer-maximized .viewer-card>.viewer{flex:1;min-height:0;display:flex}
.pv-planning-host.pv-viewer-maximized .viewer-card>.viewer>.scene-viewer{flex:1;height:auto;min-height:0}
.pv-planning-host.pv-viewer-maximized .viewer-card>.viewer>.scene-viewer>.viewer-controls{flex:none;height:auto!important}
.pv-planning-host.pv-viewer-maximized .viewer-card>.viewer>.scene-viewer>.viewer-stage{flex:1;height:auto;min-height:0}
.pv-planning-host.pv-viewer-maximized .viewer-card>:is(.viewer-header,.roof-orientation-summary,.scale-notice){flex:none}
.pv-planning-host.pv-viewer-maximized :is(.sidebar,.page-heading,.app>main>header,.app>main>footer,.studio-main>.results-card){display:none}
.pv-planning-host.pv-viewer-maximized .viewer-header{padding-top:10px;padding-bottom:10px}

.pv-planning-host.pv-viewer-maximized[popover]{position:fixed;inset:0;margin:0;padding:0;border:0;width:100vw;height:100dvh;max-width:none;max-height:none;overflow:hidden}
.pv-planning-host.pv-viewer-maximized::backdrop{background:#eff5fb}

/* Anchor both guidance states to the current toolbar height. */
.pv-planning-host .scene-viewer>.viewer-controls{height:auto!important;min-height:0;flex:0 0 auto}
.pv-planning-host .viewer-controls>:is(.pv-next-guide,.pv-next-guide-reopen){top:calc(100% + 16px)}

/* One compact toolbar; secondary functions float over the model when needed. */
.pv-planning-host .viewer-compact-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;min-height:54px}
.pv-planning-host .viewer-compact-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.pv-planning-host .viewer-compact-row .viewer-surface-selector{display:flex;align-items:center;gap:4px;flex:none}
.pv-planning-host .viewer-compact-row .viewer-navigation{display:flex;align-items:center;gap:8px;flex:none}
.pv-integration .pv-planning-host .viewer-compact-row .viewer-toolbar>button.tool{min-height:32px;padding:7px 9px;font-size:12px;gap:5px}
.pv-planning-host .viewer-compact-row .viewer-functions-menu{position:static;flex:none}
.pv-planning-host .viewer-functions-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 10px;border:1px solid var(--hr-border,#dce3ec);border-radius:5px;background:#fff;color:var(--hr-text,#17283f);font-size:12px;font-weight:600;line-height:1.4;list-style:none;cursor:pointer;white-space:nowrap}
.pv-planning-host .viewer-functions-menu>summary::-webkit-details-marker{display:none}
.pv-planning-host .viewer-functions-menu[open]>summary{background:#edf5fc;border-color:#b9d2e9;color:var(--hr-primary,#3371b7)}
.pv-planning-host .viewer-controls .viewer-functions-panel{position:absolute;z-index:30;top:calc(100% + 8px);right:16px;left:auto;display:flex;flex-direction:column;align-items:stretch;gap:12px;width:min(320px,calc(100% - 32px));max-height:min(560px,calc(100dvh - 220px));overflow:auto;padding:14px;border:1px solid var(--hr-border,#dce3ec);border-radius:6px;background:#fff;box-shadow:0 5px 20px #17283f26}
.pv-planning-host .viewer-functions-panel>strong{font-size:12px;color:var(--hr-muted,#607084)}
.pv-planning-host .viewer-functions-panel :is(.photo-overlay-controls,.viewer-function-scale){display:flex;width:100%}
.pv-planning-host .viewer-functions-panel :is(.photo-overlay-controls,.viewer-function-scale)>button{width:100%;justify-content:flex-start}
.pv-planning-host .viewer-functions-panel .viewer-dimension-menu{position:static;width:100%}
.pv-planning-host .viewer-functions-panel .viewer-dimension-menu>summary{width:100%;justify-content:flex-start}
.pv-planning-host .viewer-functions-panel .viewer-dimension-panel{position:static;inset:auto;width:100%;max-width:none;margin-top:8px;box-shadow:none}
.pv-planning-host .viewer-functions-panel .viewer-crop-setting>div{justify-content:flex-start}
@media(max-width:1050px){.pv-planning-host .viewer-compact-row .orientation-panel>summary>span[role=status]{display:none}}
@media(max-width:900px){.pv-planning-host .viewer-compact-row .viewer-toolbar>button.tool>span{display:none}.pv-planning-host .viewer-compact-row{padding:8px 10px;gap:6px}.pv-planning-host .viewer-compact-actions{gap:6px}}

/* Crop instructions float on the left, leaving the full scene height available. */
.pv-planning-host .viewer-stage>.pv-crop-card{position:absolute;z-index:20;top:16px;left:16px;right:auto;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:min(350px,calc(100% - 32px));max-width:350px;max-height:calc(100% - 32px);height:auto;overflow:auto;padding:14px;border:1px solid var(--hr-border,#dce3ec);border-top:3px solid var(--hr-primary,#4f7fb4);border-radius:6px;background:#fff;color:var(--hr-text,#17283f);box-shadow:0 5px 20px #17283f26}
.pv-planning-host .pv-crop-card .pv-crop-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--hr-muted,#607084)}
.pv-planning-host .pv-crop-card .pv-crop-instruction{margin:0;font-size:12px;line-height:1.6;color:var(--hr-text,#17283f)}
.pv-planning-host .pv-crop-card .pv-crop-count{font-size:11px;color:var(--hr-muted,#607084)}
.pv-planning-host .pv-crop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pv-planning-host .pv-crop-actions>button{min-height:36px;white-space:normal}
.pv-planning-host .pv-crop-actions>.primary{grid-column:1/-1}
@media(max-width:700px){.pv-planning-host .viewer-stage>.pv-crop-card{top:10px;left:10px;right:auto;width:min(320px,calc(100% - 20px));max-height:calc(100% - 20px)}}

/* Shared square close control, anchored to the card rather than its title row. */
.pv-planning-host .scene-viewer button.pv-work-card-close{position:absolute;top:6px;right:6px;left:auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;min-height:28px;margin:0;padding:4px;gap:0;border:1px solid var(--hr-border,#dce3ec);border-radius:6px;background:#fff;color:var(--hr-text,#17283f);box-shadow:none}
.pv-planning-host .scene-viewer button.pv-work-card-close>svg{flex:none;width:14px;height:14px}
.pv-planning-host .scene-viewer .pv-work-card-heading{padding-right:30px}
.pv-planning-host :is(.pv-crop-kicker,.pv-next-guide-kicker){padding-right:32px}
.pv-planning-host .scene-viewer>.roof-pick-guide{padding-top:40px}
.pv-planning-host .scene-viewer>.roof-pick-guide>.help-question{top:6px;right:40px}
.pv-planning-host .building-review-top .building-review-heading>div:first-child{padding-right:32px}
