/* Presentation chrome stays scoped to the main 3D workspace. */
#three-d-view.bp-ready { container-type: inline-size; }
.bp-ui { --bp-accent:#b8e4df; position:absolute; inset:0; z-index:42; pointer-events:none; color:#f5f6f3; font:12px/1.5 system-ui,sans-serif; }
.bp-ui button,.bp-ui select,.bp-ui input { font:inherit; }
.bp-ui button,.bp-ui select { color:inherit; cursor:pointer; }
.bp-ui button { transition:background .18s,border-color .18s; }
.bp-ui button:focus-visible,.bp-ui input:focus-visible,.bp-ui select:focus-visible { outline:2px solid var(--bp-accent); outline-offset:4px; }
.bp-ui button:hover { background:#344d52; color:#fff; border-color:#8bbab8; }
.bp-ui [hidden] { display:none!important; }
.bp-heading { position:absolute; top:26px; left:28px; width:245px; text-shadow:0 1px 12px #0007; }
.bp-heading::before { content:''; position:absolute; inset:-26px -50px -24px -28px; z-index:-1; background:radial-gradient(ellipse at top left,#18232a75,transparent 72%); }
.bp-eyebrow,.bp-kicker { font-size:9px; letter-spacing:2px; font-weight:600; }
.bp-eyebrow { color:#eff5f1bd; }
.bp-heading h2 { margin:7px 0 8px; font-size:29px; line-height:1.15; font-weight:350; letter-spacing:-.7px; }
.bp-heading p { margin:0 0 15px; max-width:225px; color:#f5f6f0d9; font-size:11px; line-height:1.7; }
.bp-kicker { color:#d5f3ed; }
.bp-actions { position:absolute; top:20px; right:22px; left:300px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; pointer-events:auto; }
.bp-actions button { border:1px solid #ffffff20; border-radius:22px; background:#1b242bda; box-shadow:0 3px 14px #0000000a; backdrop-filter:blur(16px); }
.bp-actions button { padding:7px 12px; white-space:nowrap; font-size:11px; }
.bp-actions button span { margin-right:4px; opacity:.75; }
.bp-actions [aria-pressed=true],.bp-actions [aria-expanded=true],.bp-view-actions [aria-pressed=true] { background:#294647e8; border-color:#acdcd5a6; color:#d9fffa; }
#bp-sun { display:inline-flex; align-items:center; gap:6px; }
#bp-sun span { margin-right:0; }
#bp-sun #bp-light-summary { opacity:1; }
#bp-clock { font-variant-numeric:tabular-nums; }
#bp-sun-options .bp-light-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; }
.bp-light-label select { flex:1; min-width:0; }
.bp-ui option { background:#223039; color:white; }
.bp-panel { position:absolute; z-index:1; top:106px; right:22px; width:260px; padding:15px; border:1px solid #ffffff22; border-radius:16px; background:#18232deb; box-shadow:0 15px 40px #0002; backdrop-filter:blur(20px); pointer-events:auto; }
.bp-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.bp-panel-head strong { font-size:12px; font-weight:550; letter-spacing:.4px; }
.bp-panel-head button { border:0; border-radius:50%; width:26px; height:26px; background:#ffffff0c; font-size:18px; }
.bp-panel label:not(.bp-layer) { display:block; margin:10px 0; font-size:11px; }
.bp-panel output { float:right; color:var(--bp-accent); font-variant-numeric:tabular-nums; }
.bp-panel input[type=range] { width:100%; accent-color:var(--bp-accent); margin:14px 0 4px; }
.bp-panel select { background:#ffffff0d; border:1px solid #ffffff33; border-radius:5px; padding:4px 8px; margin-left:12px; }
.bp-layer { display:flex; align-items:center; gap:8px; padding:7px 0; cursor:pointer; font-size:11px; }
.bp-layer input { accent-color:var(--bp-accent); }
.bp-layer:has(input:disabled) { opacity:.46; cursor:default; }
.bp-layer i { width:7px; height:7px; border-radius:2px; }
.bp-layer small { margin-left:auto; font-size:9px; color:#c4d2d5; }
.bp-panel-note { border-top:1px solid #ffffff12; margin:10px 0 0; padding-top:10px; font-size:10px; color:#b8c8cd; }
.bp-bottom { position:absolute; bottom:20px; left:22px; right:22px; }
.bp-view-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:10px; color:#f2f6f0c9; text-shadow:0 1px 6px #0008; }
.bp-view-actions>div { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:5px; pointer-events:auto; }
.bp-view-actions button { border:1px solid #ffffff25; padding:5px 10px; border-radius:20px; background:#1c282bbb; font-size:10px; }
.bp-sequence { display:flex; align-items:center; border:1px solid #ffffff30; border-radius:20px; background:#1c282be8; box-shadow:0 3px 14px #0001; }
.bp-sequence #bp-play { flex-shrink:0; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:transparent; font-size:10px; }
#bp-sequence-toggle { display:flex; align-items:center; gap:10px; min-height:30px; border:0; border-left:1px solid #ffffff20; border-radius:0 20px 20px 0; background:transparent; padding:4px 10px; }
#bp-sequence-toggle[aria-expanded=true],.bp-sequence #bp-play[aria-pressed=true] { background:#34595d; color:#d9fffa; }
#bp-sequence-toggle>span:last-child { color:#b8e4df; }
.bp-timeline { position:absolute; bottom:calc(100% + 10px); right:0; width:640px; max-width:100%; max-height:60vh; overflow:auto; box-sizing:border-box; border:1px solid #ffffff25; border-radius:14px; background:#18282ef5; padding:16px; box-shadow:0 12px 30px #0002; backdrop-filter:blur(22px); pointer-events:auto; text-shadow:none; color:#f5f6f3; }
.bp-sequence-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.bp-sequence-heading strong { font-size:12px; font-weight:550; }
.bp-stages { display:grid; grid-template-columns:repeat(5,minmax(68px,1fr)); gap:4px; margin:0 -4px 12px; padding:4px; overflow-x:auto; }
.bp-stages button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:7px 2px; border:1px solid transparent; border-radius:7px; background:transparent; color:#c4d2d5; font-size:11px; text-align:center; white-space:nowrap; }
.bp-stages button span { color:#91a7ab; font-size:10px; font-variant-numeric:tabular-nums; }
.bp-stages button[aria-current=step] { color:#dbfff7; background:#34595d80; border-color:#b8e4df55; }
#bp-progress { appearance:none; -webkit-appearance:none; display:block; height:3px; width:100%; margin:9px 0; border-radius:4px; background:linear-gradient(to right,#b5dcd5 var(--bp-progress,100%),#ffffff35 var(--bp-progress,100%)); cursor:pointer; }
#bp-progress::-webkit-slider-thumb { -webkit-appearance:none; width:10px; height:10px; background:#d9fff7; border-radius:50%; box-shadow:0 0 12px #b8f5e9; }
#bp-progress::-moz-range-thumb { width:10px; height:10px; border:0; background:#d9fff7; border-radius:50%; box-shadow:0 0 12px #b8f5e9; }
#bp-progress-value { color:#b8e4df; font-size:11px; font-variant-numeric:tabular-nums; }
.bp-status { margin:12px 0 0; font-size:10px; line-height:1.5; color:#b8c8cd; }
.bp-annotations { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
#bp-leaders { position:absolute; inset:0; width:100%; height:100%; }
#bp-leaders path { stroke:#edf9f3a8; stroke-width:1; fill:none; }
.bp-label { position:absolute; top:0; left:0; padding:6px 10px; max-width:175px; border:1px solid #ffffff1a; border-radius:5px; background:#182527c9; backdrop-filter:blur(8px); line-height:1.35; }
.bp-label strong { display:block; font-size:10px; font-weight:500; letter-spacing:.3px; }
.bp-label span { display:block; font-size:9px; color:#c3d3d0; max-width:155px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bp-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#three-d-view.bp-ready:not(.bp-editing) #three-d-model-tools,#three-d-view.bp-ready:not(.bp-editing) [id="3d-opening-popup"] { display:none!important; }
#three-d-view.bp-editing #three-d-model-tools { top:105px!important; max-height:calc(100% - 125px); overflow:auto; }
.bp-editing .bp-heading,.bp-editing .bp-bottom,.bp-editing .bp-annotations { display:none; }
#three-d-view:fullscreen { width:100vw!important; height:100vh!important; background:#c7c4bb; }
@container (max-width: 900px) {
 .bp-actions { left:225px; right:14px; gap:4px; } .bp-actions button { padding:6px 9px; font-size:10px; }
 .bp-heading { left:20px; top:22px; width:195px; } .bp-heading h2 { font-size:25px; } .bp-heading p { font-size:10px; max-width:190px; }
 .bp-bottom { left:20px; right:20px; } .bp-panel { right:14px; }
}
@container (max-width: 620px) {
 .bp-actions { left:12px; right:12px; top:12px; justify-content:flex-start; }
 .bp-heading { top:100px; left:16px; width:180px; } .bp-heading p { display:none; } .bp-heading h2 { font-size:23px; margin:4px 0; }
 .bp-kicker { font-size:7px; } .bp-eyebrow { font-size:7px; }
 .bp-panel { top:100px; right:12px; width:min(260px,calc(100% - 24px)); max-height:calc(100% - 245px); overflow:auto; box-sizing:border-box; }
 .bp-bottom { left:12px; right:12px; bottom:12px; }
 .bp-view-actions>span { display:none; } .bp-view-actions { justify-content:flex-end; }
 .bp-view-actions button { min-height:34px; }
 .bp-sequence #bp-play { width:34px; height:34px; }
 .bp-heading::before { display:none; }
}
@media (prefers-reduced-motion:reduce) { .bp-ui button { transition:none; } }
#three-d-view:not([data-bp-light=dusk]):not([data-bp-xray=true]) .bp-heading { color:#20363a; text-shadow:none; }
#three-d-view:not([data-bp-light=dusk]):not([data-bp-xray=true]) .bp-heading::before { background:radial-gradient(ellipse at top left,#f3f3e94a,transparent 72%); }
#three-d-view:not([data-bp-light=dusk]):not([data-bp-xray=true]) .bp-heading p { color:#385056; }
#three-d-view:not([data-bp-light=dusk]):not([data-bp-xray=true]) .bp-eyebrow { color:#465b5c; }
#three-d-view:not([data-bp-light=dusk]):not([data-bp-xray=true]) .bp-kicker { color:#217476; }
.bp-ui button:disabled { opacity:.45; cursor:default; }

#three-d-view:not(.bp-ready) .bp-ui { display:none!important; }
#three-d-view .bp-heading { display:none!important; }

.bp-clock { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.bp-clock output { font:300 30px/1 system-ui; letter-spacing:.04em; font-variant-numeric:tabular-nums; }
.bp-clock input[type=date] { font-size:12px; padding:4px 6px; }
.bp-check { display:flex!important; align-items:center; gap:8px; margin-top:6px; }
.bp-latlon { display:flex; gap:8px; margin-top:8px; }
.bp-latlon label { flex:1; font-size:11px; }
.bp-latlon input { width:100%; box-sizing:border-box; }
#bp-sun-options label { display:block; font-size:12px; }
#bp-sun-options input[type=range] { width:100%; }
.bp-sunplay{display:flex;gap:8px;margin-top:8px}.bp-sunplay button{flex:1;padding:6px 10px}#bp-sun-options .bp-sunplay select{font-size:12px}
#bp-sun-options .bp-sunplay button{background:#1b242b;color:#e8f1f2;border:1px solid #ffffff30;border-radius:22px;font-size:12px;font-weight:600;cursor:pointer}#bp-sun-options .bp-sunplay button:hover,#bp-sun-options .bp-sunplay button[aria-pressed=true]{background:#2c6f73;color:#fff}

.bp-panel.bp-material-panel { width:320px; max-width:calc(100% - 28px); max-height:calc(100% - 235px); overflow:auto; box-sizing:border-box; }
#bp-materials-options select { width:100%; margin:0; box-sizing:border-box; }
#bp-materials-options input[type=number] { display:block; width:100%; box-sizing:border-box; margin-top:5px; padding:5px 8px; border:1px solid #ffffff33; border-radius:5px; background:#ffffff0d; color:#fff; }
#bp-materials-options input[type=file] { width:100%; font-size:11px; margin:6px 0; }
#bp-materials-options input[type=range] { margin:5px 0 0; }
#bp-materials-options button { padding:7px 10px; border:1px solid #ffffff33; border-radius:8px; background:#263b42; color:#fff; }
#bp-materials-options button:hover,#bp-materials-options button[aria-pressed=true] { background:#34595d; border-color:#8bbab8; }
#bp-materials-options #sm-render { width:100%; margin-top:10px; }
#bp-materials-options #sm-apply { background:#28615f; }
.sm-preview-row { display:flex; align-items:center; gap:12px; border-top:1px solid #ffffff20; margin-top:12px; padding-top:10px; }
.sm-preview-row>div { flex:1; min-width:0; }
#sm-preview { flex:0 0 72px; border-radius:8px; border:1px solid #ffffff33; }
#bp-materials-options .sm-color { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#sm-color { width:40px; height:28px; padding:1px; border:1px solid #ffffff44; border-radius:4px; background:transparent; }
.sm-buttons { display:flex; gap:8px; margin-top:10px; }
.sm-buttons button { flex:1; }
.sm-hint,#sm-status,#sm-upload-row small { color:#b8c8cd; font-size:10px; line-height:1.5; }
#sm-status { color:#c3f1e9; margin:8px 0; }
.sm-picking #three-d-canvas-container canvas { cursor:crosshair!important; }
#sm-description { width:100%; box-sizing:border-box; resize:vertical; min-height:58px; padding:8px; background:#ffffff0d; color:#fff; border:1px solid #ffffff33; border-radius:6px; font:12px/1.5 system-ui; }
#sm-description::placeholder { color:#b1c3c7; }
#sm-selection { padding:8px 10px; border-left:3px solid #ffc36a; background:#ffffff08; border-radius:4px; }
#sm-advanced { border-top:1px solid #ffffff22; margin-top:12px; padding-top:10px; }
#sm-advanced summary { cursor:pointer; color:#c5dcdd; font-size:11px; }
.sm-apply-row { position:sticky; bottom:-15px; z-index:2; padding:10px 0; background:#1e2e37; }
#sm-hover-label { position:absolute; z-index:43; pointer-events:none; max-width:280px; padding:6px 9px; background:#173b40; border:1px solid #62e6ef; border-radius:6px; color:white; font:11px/1.4 system-ui; box-shadow:0 2px 10px #0004; }
#sm-hover-label[hidden] { display:none; }
#bp-panel.sm-minimized #bp-materials-options>:not(#sm-mini) { display:none!important; }
#bp-panel.sm-minimized { max-height:none; overflow:visible; }
#bp-panel.sm-minimized .bp-panel-head { margin-bottom:6px; }
#sm-mini[hidden],#sm-minimize[hidden] { display:none; }
#sm-mini-label { margin:0; font-size:11px; color:#c3f1e9; line-height:1.4; }
#sm-mini .sm-buttons { margin-top:8px; }
#bp-materials-options #sm-minimize { width:100%; margin-bottom:4px; background:transparent; font-size:11px; }
