/* V3.2 independent additive scope under .hd-section */
.hd-section{background:radial-gradient(ellipse at top right,rgba(24,102,105,.25),transparent 46%),#091820}
.hd-section .hd-project-bar{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px;margin:0 0 16px}
.hd-section label{display:flex;flex-direction:column;gap:6px;color:#c5d8da;font-size:12px;line-height:1.35}
.hd-section input:not([type=checkbox]):not([type=range]),.hd-section select{width:100%;min-height:39px;box-sizing:border-box;border:1px solid #3c5960;border-radius:9px;padding:9px 10px;color:#effafa;background:#112833;font:inherit;font-size:13px}
.hd-section input[type=range]{width:100%;accent-color:#45d4b7}
.hd-section input:focus-visible,.hd-section button:focus-visible,.hd-section select:focus-visible{outline:2px solid #65efd9;outline-offset:2px}
.hd-section button{cursor:pointer}
.hd-project-bar>label{min-width:240px;flex:1}
.hd-project-actions,.hd-actions,.hd-export-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hd-section .tiny-btn{padding:10px 12px;min-height:38px}
.hd-import-label{cursor:pointer;border:1px solid #41696c;border-radius:9px;padding:10px 14px;background:#193942;color:#f4ffff!important}
.hd-layout{display:grid;grid-template-columns:minmax(255px,320px) minmax(0,1fr);gap:16px;align-items:start}
.hd-settings{padding:20px;display:grid;gap:16px}
.hd-settings h3{margin:0}
.hd-rooms{display:grid;gap:7px;max-height:270px;overflow:auto}
.hd-room{width:100%;text-align:left;background:#152e38;border:1px solid #294852;border-radius:10px;color:#f2ffff;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.hd-room.selected{border-color:#54e2cb;background:#205050}
.hd-room-text{display:grid;gap:5px;min-width:0}.hd-room-text b{font-size:13px;white-space:normal}.hd-room-text small{font-size:11px;color:#adc6ce}.hd-room-power{font-size:11px;white-space:nowrap;color:#bde9bd}
.hd-add-room,.hd-edit-room,.hd-auto-panel{display:grid;gap:11px;padding-top:16px;border-top:1px solid #35505b}
.hd-add-room>b,.hd-edit-room>b,.hd-auto-panel>b{font-size:13px;color:#eef8ee}
.hd-auto-panel small{color:#b4c3c8;font-size:11px;line-height:1.5}
.hd-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hd-wide{width:100%}.hd-danger{border-color:#835957!important;color:#ffd4ce!important;background:#35262b!important}
.hd-canvas-stack{display:grid;gap:16px;min-width:0}.hd-plan-panel,.hd-3d-panel{padding:18px;min-width:0}.hd-panel-head,.hd-quote-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.hd-panel-head h3,.hd-quote-top h3{margin:4px 0 0}.hd-place-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;cursor:pointer;border:1px solid #4a7a79;padding:9px 11px;border-radius:8px}
.hd-place-toggle input{accent-color:#39d9b5;transform:scale(1.18)}
.hd-svg-wrap{overflow:auto;max-height:570px;min-height:260px;border:1px solid #3a5964;border-radius:14px;background:#101e27;padding:8px}
.hd-svg-wrap svg{width:100%;height:auto;display:block;min-width:280px;min-height:260px;max-height:550px;touch-action:manipulation}
.hd-floor-room{cursor:crosshair}.hd-lamp-dot{cursor:pointer}.hd-lamp-dot:focus-visible{stroke:#fff;stroke-width:4}
.hd-actions{padding-top:14px}.hd-actions span{font-size:12px;color:#a9dad0}
.hd-lamp-panel{margin-top:12px;display:grid;gap:10px;padding:14px;border-radius:10px;background:#193b44;border:1px solid #4a7076}.hd-lamp-panel[hidden]{display:none!important}.hd-lamp-panel>div{display:flex;justify-content:space-between;gap:8px}.hd-lamp-panel small{color:#bacdd0}.hd-check{flex-direction:row!important;align-items:center!important}
.hd-stage{height:330px;position:relative;background:linear-gradient(140deg,#132c35,#0b1721);border-radius:12px;overflow:hidden}.hd-stage canvas{display:block;touch-action:none;cursor:grab}.hd-stage-placeholder{color:#7bd4c7;font-size:40px;position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:7px;pointer-events:none}.hd-stage-placeholder small{font-size:12px;color:#b5c4c7}.hd-stage-status{margin-top:8px;color:#b5d2d0;font-size:12px}.hd-no3d .hd-stage-placeholder{display:flex}.hd-stage:has(canvas) .hd-stage-placeholder{display:none}
.hd-quote-panel{padding:20px;margin-top:16px}.hd-quote-badge{border:1px solid #917948;color:#f0cc82;border-radius:7px;padding:8px;font-size:10px;font-weight:700;max-width:230px}
.hd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.hd-stats>div{padding:15px;border:1px solid #34555d;background:#102b35;border-radius:11px;display:grid;gap:7px;min-width:0}.hd-stats small{color:#b8d1d5;font-size:10px}.hd-stats strong{color:#e9fff7;font-size:clamp(15px,2vw,23px);overflow-wrap:anywhere}.hd-channel-summary{color:#adcbd2;font-size:12px;margin:14px 0}.hd-quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hd-quote-grid h4{margin:12px 0;color:#eef6f5}.hd-quote-list{display:grid;gap:6px}.hd-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 2px;border-bottom:1px dashed #36535f;font-size:12px}.hd-line span{color:#c4d5d8}.hd-line strong{color:#f2fff5;white-space:nowrap}.hd-export-actions{padding:20px 0 12px}.hd-export-actions .btn{min-height:42px}.hd-message{padding:11px 13px;border:1px solid #387a79;border-radius:8px;background:#14373a;color:#c7eade;font-size:12px}.hd-message[data-error="1"]{background:#45252c;color:#ffd3d3;border-color:#8b4147}
@media(max-width:930px){.hd-layout{grid-template-columns:1fr}.hd-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-settings>.aside-kicker,.hd-settings>h3,.hd-settings>.hd-rooms{grid-column:1/-1}.hd-rooms{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hd-settings{grid-template-columns:1fr}.hd-settings>.aside-kicker,.hd-settings>h3,.hd-settings>.hd-rooms{grid-column:auto}.hd-rooms{grid-template-columns:1fr;max-height:210px}.hd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-quote-grid{grid-template-columns:1fr}.hd-plan-panel,.hd-3d-panel,.hd-quote-panel{padding:13px}.hd-stage{height:270px}.hd-svg-wrap{min-height:220px}.hd-svg-wrap svg{min-height:200px}.hd-section .btn{font-size:12px}.hd-project-bar>label{min-width:180px}}
@media print{.topbar,.hero,.metric-strip,.section:not(.hd-section),.closing,footer,.hd-project-actions,.hd-export-actions,.hd-settings,.hd-plan-panel,.hd-3d-panel{display:none!important}.hd-section{background:#fff!important;color:#111!important}.hd-quote-panel,.hd-section .panel{background:#fff!important;color:#111!important;border:0!important}.hd-stats strong,.hd-line strong,.hd-line span,.hd-section h2,.hd-section h3{color:#111!important}}

@media(max-width:520px){.topbar .nav{flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}.topbar .nav a:nth-child(n+3){display:inline-flex}.topbar .nav::-webkit-scrollbar{display:none}.topbar-inner .brand{flex:none}.hd-section .section-head{margin-bottom:18px}}
