/* F-Series panel step: complete image and full-height options. */
.vertical-controls select{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid #c8c4bb;border-radius:5px;background:#fff;font:inherit}
.vertical-controls .motor-match{margin-top:16px}
.f-panel-building main,.f-panel-building .layout{height:auto!important;max-height:none!important;overflow:visible!important}
.f-panel-building #workspace{height:auto!important;max-height:none!important;overflow:visible!important;min-width:0}
.f-panel-building #summary{height:auto!important;max-height:none!important;overflow:visible!important}
.f-panel-building .panel-art,.f-panel-building .panel-inside-only .panel-art{height:clamp(480px,70vh,850px)!important;min-height:0;overflow:hidden}
.f-panel-building .panel-art svg{width:100%;height:100%;max-height:none!important;object-fit:contain}
@media(min-width:821px){
 .f-panel-building .layout{grid-template-columns:minmax(300px,.75fr) minmax(420px,1.25fr)!important;align-items:start;gap:28px}
 .f-panel-building #summary{position:sticky;top:calc(var(--builder-sticky-height,100px) + 18px);align-self:start}
}
@media(max-width:820px){
 .f-panel-building .layout{display:flex!important;flex-direction:column!important;min-height:0!important}
 .f-panel-building #summary{position:static!important;flex:none!important;margin-bottom:20px!important;min-height:0!important}
 .f-panel-building #workspace{flex:none!important;width:100%;box-sizing:border-box}
 .f-panel-building .panel-preview{height:auto!important}
 .f-panel-building .panel-art,.f-panel-building .panel-inside-only .panel-art{height:clamp(340px,65vh,650px)!important;flex:none!important}
}

/* Artwork-only view adjustments; all UI typography and controls use the live stylesheet. */
.bc-review-upright{display:block;width:100%;height:100%;overflow:hidden;background:#fff}
.bc-review-upright .source-art{mix-blend-mode:multiply}
.bc-review-upright .leader{fill:none;stroke:#54728a;stroke-width:1.25}
.bc-review-upright .label{font:15px Arial,Helvetica,sans-serif;fill:#54728a}
.bc-review-upright .component-code{font:bold 19px Arial,Helvetica,sans-serif;fill:#153853}
.bc-review-upright .centerline{stroke:#98a4aa;stroke-width:.8;stroke-dasharray:9 5 2 5;opacity:.65}
.vertical-model .bc-review-reference{padding:0;background:#fff}
.vertical-model .bc-review-reference svg{width:100%;height:auto;max-height:800px!important}
.vertical-model .model-caption strong{overflow-wrap:anywhere}
.vertical-model .model-caption .eyebrow{display:none}
.vertical-model .model-caption{justify-content:center}
.f-drawing .bc-review-reference{flex:1;min-height:0}
.f-drawing .bc-review-reference svg{width:100%!important;height:100%!important;max-height:100%!important}
@media(max-width:600px){.bc-review-upright .label{font-size:18px}.bc-review-upright .component-code{font-size:21px}}

/* All F-Series steps use the existing f-visual-top / f-quick / f-control-group components. */
.f-shared-building .f-panel-heading{align-items:flex-start}
.f-shared-building .f-panel-heading>div{min-width:0}
.f-shared-building .f-panel-heading>button{flex:none;font-size:13px;min-height:40px;padding:6px 10px}
.f-shared-building .f-control-group legend{font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:750;letter-spacing:normal}
.f-shared-building .f-control-group .field-label{font-size:13px;margin:0 0 8px;color:#425866}
.f-shared-building .f-control-group .f-coupling-select{max-width:100%;min-height:42px;padding:9px 12px;font-size:14px;border-color:#b9c4ca;border-radius:5px}
.f-shared-building .f-inline-detail .motor-match{padding:0;background:none;border:0;margin:0 0 10px}
.f-shared-building .f-inline-detail .motor-match strong{font-size:14px}
.f-shared-building .f-inline-detail .motor-match small{font-size:13px}
.f-shared-building .f-inline-detail p{font-size:13px;line-height:1.5;margin:0 0 8px}
.f-shared-building .f-inline-detail p:last-child{margin-bottom:0}
.f-shared-building .f-check-choice{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:42px;width:fit-content;max-width:100%;padding:9px 12px;border:1px solid #b9c3ca;border-radius:6px;background:white;color:#334550;font-size:13px;line-height:1.25;cursor:pointer}
.f-shared-building .f-check-choice input{position:static;opacity:1;flex:none;width:18px;height:18px;margin:0;accent-color:#24485d}
.f-shared-building .f-check-choice:has(input:checked){background:#24485d;color:white;border-color:#24485d}
.f-shared-building .f-check-choice:has(input:checked) input{accent-color:white}
.f-shared-building .f-check-choice:focus-within{outline:3px solid #cf913b;outline-offset:2px}
.f-shared-building .f-equipment-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.f-shared-building .panel-options{gap:0}
.f-shared-building .f-equipment-option{padding:0 0 12px;margin:0 0 12px}
.f-shared-building .f-equipment-option:last-child{border:0;padding:0;margin:0}
.f-shared-building .f-shared-step .f-drawing>.panel-preview{display:flex;flex-direction:column;flex:1;min-height:0;padding:18px;margin:0;border:0;border-top:3px solid #24485d;border-radius:8px;box-shadow:none;background:white}
.f-shared-building .f-shared-step .panel-art,.f-shared-building .f-shared-step .panel-inside-only .panel-art{flex:1;min-height:0;height:0!important;overflow:hidden}
.f-shared-building .f-shared-step .panel-art svg{height:100%!important;max-height:100%!important;width:100%}
.f-shared-building .f-shared-step .model-caption{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#24485d}
.f-shared-building .f-review-card{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 16px}
.f-shared-building .f-review-card h2,.f-shared-building .f-review-card h3{font-family:Arial,Helvetica,sans-serif;font-size:14px;letter-spacing:normal}
.f-shared-building .f-review-card .code{font-size:20px;overflow-wrap:anywhere}
.f-shared-building .f-review-card .review-row{font-size:13px}
.f-shared-building .f-review-card .price-detail,.f-shared-building .f-review-card .assembly-items{margin:12px 0;padding:12px 0;border-bottom:1px solid #d9dfe2}
@media(max-width:820px){
 .f-shared-building .f-shared-step .f-drawing>.panel-preview{padding:8px}
 .f-shared-building .f-panel-heading>button{font-size:12px;min-height:36px}
}

.f-shared-building .f-review-edit{display:inline-block;font:13px Arial,Helvetica,sans-serif;color:#334550;background:white;border:1px solid #b9c4ca;border-radius:5px;min-height:40px;padding:9px 12px;margin:0 8px 16px 0}
.f-shared-building .f-review-card details>summary{font:750 14px/21px Arial,Helvetica,sans-serif;color:#24485d}

/* F7: a stationary model; only the adjacent options pane scrolls. */
body.f-shared-building{height:100dvh;min-height:0;overflow:hidden;padding-bottom:0}
body.f-shared-building main,
body.f-shared-building .layout,
body.f-shared-building #workspace{min-height:0;height:auto!important;max-height:none!important;overflow:visible!important}
body.f-shared-building #workspace{padding:0}
body.f-shared-building .f-visual-top{
 position:fixed;inset:max(var(--builder-top,140px),var(--builder-visual-top,140px)) max(20px,calc((100vw - 1440px)/2)) 12px;
 margin:0;min-height:0;height:auto;grid-template-rows:minmax(0,1fr);align-items:stretch
}
body.f-shared-building .f-drawing{position:relative;top:auto;min-height:0;height:100%;overflow:hidden}
body.f-shared-building .f-drawing figure{padding:10px!important}
body.f-shared-building .f-quick{min-height:0;max-height:100%;height:100%;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}
body.f-shared-building .f-drawing>.panel-preview{min-height:0!important;height:auto!important;padding:10px!important}
body.f-shared-building.has-builder-price .f-visual-top{bottom:100px}
body.f-shared-building .f-shared-step .panel-art,
body.f-shared-building .f-shared-step .panel-inside-only .panel-art{flex:1!important;height:0!important;min-height:0!important}
@media(max-width:820px){
 body.f-shared-building .f-visual-top{
  left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));
  grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1.1fr) minmax(0,1fr);gap:8px
 }
 body.f-shared-building .f-drawing figure{padding:6px!important}
 body.f-shared-building .f-drawing>.panel-preview{padding:6px!important}
 body.f-shared-building .f-quick{padding:12px}
}
@media(max-width:820px) and (max-height:480px){
 body.f-shared-building .f-visual-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 body.f-shared-building .f-drawing .model-caption strong{font-size:14px}
}
