.engcalc-shell{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.75fr);gap:28px;align-items:start;margin-bottom:64px}
.engcalc-panel,.engcalc-results{background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:18px;padding:26px;box-shadow:0 14px 40px rgba(15,23,42,.055)}
.engcalc-results{position:sticky;top:92px}
.engcalc-head{margin-bottom:18px}.engcalc-head h2{margin:0 0 6px;font-size:20px}.engcalc-head p{margin:0;color:#667085;font-size:13px;line-height:1.6}
.engcalc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.engcalc-field{display:block;font-size:12px;font-weight:750;color:#334155}.engcalc-field input,.engcalc-field select{width:100%;margin-top:7px;border:1px solid #d9e0ea;background:#fbfcfd;border-radius:9px;padding:11px 12px;min-height:44px;color:#111827}
.engcalc-section{margin-top:22px;padding-top:20px;border-top:1px solid var(--line,#e5e7eb)}.engcalc-section h3{font-size:16px;margin:0 0 10px}
.engcalc-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.engcalc-actions .btn{justify-content:center}
.engcalc-message{margin-top:12px;font-size:12px;color:#667085;line-height:1.55}.engcalc-message.warn{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;padding:10px;border-radius:9px}.engcalc-message.fail{color:#a62929;background:#fff5f5;border:1px solid #ffd4d4;padding:10px;border-radius:9px}
.engcalc-hero-label{font-size:11px;font-weight:800;letter-spacing:.08em;color:#667085;text-transform:uppercase}.engcalc-hero{font-size:44px;font-weight:800;letter-spacing:-.035em;margin:10px 0 6px;color:#111827}.engcalc-state{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;background:#eef2f7;color:#475467}.engcalc-state.pass{background:#eaf8ef;color:#13733b}.engcalc-state.check{background:#fff7ed;color:#9a3412}
.engcalc-rows{border-top:1px solid var(--line,#e5e7eb);margin-top:18px}.engcalc-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line,#e5e7eb);font-size:12px}.engcalc-row span{color:#667085}.engcalc-row strong{text-align:right;color:#111827}
.engcalc-note{margin-top:16px;padding:14px;border-radius:12px;background:#f8fafc;border:1px solid #e3e8ef;color:#667085;font-size:12px;line-height:1.6}
.load-table{width:100%;border-collapse:collapse;margin-top:12px}.load-table th,.load-table td{padding:7px 5px;border-bottom:1px solid #e5e7eb;text-align:left;font-size:11px}.load-table input,.load-table select{width:100%;min-width:64px;border:1px solid #d9e0ea;border-radius:7px;padding:8px;background:#fff;color:#111827}.harmonic-table td:first-child{min-width:190px}.harmonic-table td:nth-child(2){min-width:64px}.harmonic-table td:nth-child(3),.harmonic-table td:nth-child(4){min-width:105px}.load-table .load-name{min-width:120px}.load-table button{border:0;background:transparent;cursor:pointer;font-size:18px;color:#667085}.load-add{margin-top:12px}
.arc-warning{margin-top:16px;padding:14px;border-radius:12px;border:1px solid #fecaca;background:#fff7f7;color:#991b1b;font-size:12px;line-height:1.6;font-weight:650}
@media(max-width:900px){.engcalc-shell{grid-template-columns:1fr}.engcalc-results{position:static}.engcalc-grid,.engcalc-actions{grid-template-columns:1fr}.engcalc-hero{font-size:38px}}
@media(max-width:640px){.engcalc-panel,.engcalc-results{padding:20px}.load-table{display:block;overflow-x:auto}.engcalc-row{align-items:flex-start}}
/* Lighting plan-view visualisation */
.lighting-layout{margin-top:-30px;margin-bottom:64px;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:18px;padding:26px;box-shadow:0 14px 40px rgba(15,23,42,.055)}
.lighting-layout-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:16px}
.lighting-layout-head h2{margin:5px 0 7px;font-size:25px;letter-spacing:-.025em}
.lighting-layout-head p{margin:0;max-width:650px;color:#667085;font-size:13px;line-height:1.6}
.lighting-layout-count{min-width:112px;text-align:right}.lighting-layout-count strong{display:block;font-size:38px;line-height:1;font-weight:850;letter-spacing:-.04em;color:#111827}.lighting-layout-count span{display:block;margin-top:5px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667085}
.lighting-viewbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}
.lighting-view-toggle{display:inline-flex;padding:3px;border:1px solid #dbe2ea;border-radius:10px;background:#f7f9fb}
.lighting-view-toggle button{border:0;background:transparent;color:#667085;font:inherit;font-size:11px;font-weight:800;padding:8px 12px;border-radius:7px;cursor:pointer}
.lighting-view-toggle button.active{background:#fff;color:#111827;box-shadow:0 1px 4px rgba(15,23,42,.10)}
.lighting-model-chip{font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#7a5007;background:#fff8e7;border:1px solid #f1d694;border-radius:999px;padding:6px 9px}
.lighting-layout-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
.lighting-plan-frame{min-width:0;padding:12px;border:1px solid #e3e8ef;border-radius:14px;background:linear-gradient(180deg,#f8fafc,#fff);overflow:hidden}
#lightingPlan{display:block;width:100%;height:auto;max-height:520px}
.lighting-room{fill:#fff;stroke:#253044;stroke-width:2}
.lighting-heatmap{opacity:.88}
.lighting-grid-lines line{stroke:#0f172a;stroke-width:.85;stroke-dasharray:5 7;opacity:.18}
.lighting-plan-glow{fill:url(#lightingGlow)}
.lighting-plan-fixture rect{fill:#111827;stroke:#fff;stroke-width:1.8}.lighting-plan-fixture circle{fill:#fff3a3;stroke:#111827;stroke-width:.5}
.lighting-dim line{stroke:#64748b;stroke-width:1}.lighting-dim text{fill:#475569;font-size:14px;font-weight:700;font-family:system-ui,sans-serif}
.lighting-layout.is-layout-only .lighting-heatmap{display:none}
.lighting-layout:not(.is-layout-only) .lighting-plan-glows{display:none}
.lighting-layout.is-layout-only .lighting-false-legend{display:none}
.lighting-false-legend{margin-top:10px;padding:10px 12px;border:1px solid #e3e8ef;border-radius:10px;background:#fbfcfd}
.lighting-false-legend>div{display:flex;align-items:center;justify-content:space-between;gap:16px}
.lighting-false-legend strong{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#667085}
#lightingLegendScale{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#lightingLegendScale span{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#475569;white-space:nowrap}
#lightingLegendScale i{width:16px;height:8px;border-radius:2px;display:inline-block}
#lightingLegendScale b{font-weight:750}
.lighting-layout-stats{display:grid;border-top:1px solid #e5e7eb}
.lighting-layout-stats>div{padding:12px 0;border-bottom:1px solid #e5e7eb}
.lighting-layout-stats span{display:block;color:#667085;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.lighting-layout-stats strong{display:block;margin-top:4px;color:#111827;font-size:13px;line-height:1.45}
.lighting-layout-note{margin:16px 0 0;padding:12px 14px;border-radius:10px;background:#fff8e7;border:1px solid #f1d694;color:#7a5007;font-size:12px;line-height:1.6}
@media(max-width:900px){.lighting-layout{margin-top:-36px}.lighting-layout-body{grid-template-columns:1fr}.lighting-layout-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}}
@media(max-width:640px){.lighting-layout{padding:18px;margin-top:-38px}.lighting-layout-head{flex-direction:column}.lighting-layout-count{text-align:left}.lighting-viewbar{align-items:flex-start;flex-direction:column}.lighting-layout-body{gap:14px}.lighting-layout-stats{grid-template-columns:1fr}.lighting-plan-frame{padding:4px}.lighting-dim text{font-size:16px}.lighting-false-legend>div{align-items:flex-start;flex-direction:column}#lightingLegendScale{justify-content:flex-start;gap:7px 10px}}


/* Lighting design controls */
.lighting-fixed-field.is-hidden{display:none}
.lighting-photo-field{grid-column:1/-1;border:1px solid #d9e0ea;border-radius:12px;padding:14px;background:#fbfcfd}
.lighting-photo-field>span{display:block;margin-bottom:8px}
.lighting-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.lighting-file-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#111827;font-size:11px;font-weight:800;cursor:pointer}
.lighting-file-button:hover{border-color:#94a3b8;background:#f8fafc}
.lighting-file-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #e5e7eb}
.lighting-file-status strong{font-size:11px;line-height:1.45;color:#475569;overflow-wrap:anywhere}
.lighting-file-status button{border:0;background:transparent;color:#667085;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;cursor:pointer}
.lighting-photo-field small{display:block;margin-top:8px;color:#667085;font-size:10px;line-height:1.45;font-weight:500}
@media(max-width:640px){.lighting-file-status{align-items:flex-start;flex-direction:column}.lighting-file-status button{padding:0}}
