#live-preview{position:fixed;inset:0;z-index:1000;margin:0;width:100%;max-width:none;height:100%;max-height:none;border:0;padding:0;background:#f2f5f3;color:#152b22;font:15px/1.5 system-ui,sans-serif;overflow:auto}#live-preview::backdrop{background:#092019}body:has(#live-preview[open]){overflow:hidden}#live-preview *{box-sizing:border-box}#live-preview button,#live-preview select,#live-preview input{font:inherit}#live-preview button{min-height:44px;border:1px solid #cbd8cf;border-radius:10px;padding:9px 14px;background:white;color:#153a29;cursor:pointer}#live-preview button:hover{background:#e4f3e8}#live-preview button:focus-visible,#live-preview input:focus-visible,#live-preview select:focus-visible{outline:3px solid #208856;outline-offset:3px}#live-preview button:disabled{opacity:.4;cursor:default}#live-preview button[aria-pressed=true],#live-preview .pv-primary{background:#176b43;color:white;border-color:#176b43}.pv-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 28px;background:white;border-bottom:1px solid #dce5df}.pv-header h1{font-size:23px;line-height:1.25;margin:3px 0}.pv-kicker{font-size:11px;letter-spacing:.18em;font-weight:800;color:#248355}.pv-header p{margin:0;color:#607368;font-size:13px}.pv-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;padding:20px;max-width:1800px;margin:auto}.pv-stage-card,.pv-controls{border:1px solid #d5e0d9;border-radius:16px;background:white;overflow:hidden}.pv-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #e2e9e5}.pv-stage{position:relative;height:clamp(380px,65vh,850px);overflow:hidden;background:#14251e;touch-action:none}.pv-stage canvas{width:100%;height:100%;display:block;touch-action:none}.pv-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:30px;pointer-events:none;color:#c5d8cb}.pv-empty strong{font-size:25px;color:white}.pv-empty p{max-width:380px}.pv-empty[hidden]{display:none}.pv-note{font-size:12px;color:#65766b;padding:12px 16px;margin:0}.pv-controls{padding:18px;align-self:start}.pv-controls h2{font-size:15px;margin:0 0 12px}.pv-controls section+section{margin-top:20px;padding-top:18px;border-top:1px solid #e0e8e2}.pv-controls label{display:block;font-size:13px;font-weight:600;margin:10px 0}.pv-controls input[type=file]{display:block;max-width:100%;font-size:12px;margin-top:6px}.pv-controls input[type=range]{display:block;width:100%;accent-color:#177246;margin-top:7px}.pv-controls select{width:100%;padding:8px;border:1px solid #ccd9d0;border-radius:8px;background:white}.pv-controls .pv-check{display:flex;align-items:center;gap:8px;font-weight:400}.pv-check input{accent-color:#177246}.pv-controls small{display:block;font-size:12px;color:#6b7d71}.pv-controls output{float:right;font-weight:400;color:#66796c}.pv-status{padding:12px 16px;background:#e9f5ec;min-height:47px;font-size:14px;margin:0}.pv-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px}.pv-context{border-radius:8px;padding:10px;background:#f0f5f1;font-size:12px;color:#56715e}.pv-link{display:block;margin:12px 0;padding:14px 18px;border-radius:12px;border:1px solid #87b49b;background:#e7f6ec;color:#155936;text-decoration:none;font-weight:750}.pv-link small{display:block;font-size:12px;font-weight:400;margin-top:3px}.pv-shortcuts{font-size:12px;color:#678071;padding:0 16px 10px}.pv-stage canvas:focus-visible{outline:3px solid #7ee0a8;outline-offset:-4px}@media(max-width:1000px){.pv-layout{grid-template-columns:minmax(0,1fr) 280px;padding:12px;gap:12px}.pv-header{padding:15px}.pv-toolbar button{font-size:12px!important;padding:8px!important}}@media(max-width:760px){.pv-layout{grid-template-columns:1fr}.pv-stage{height:55vh;min-height:340px}.pv-header h1{font-size:18px}.pv-header p{display:none}.pv-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pv-controls section+section{margin:0;padding:0;border:0}.pv-controls section:last-child{grid-column:1/-1}}@media(max-width:420px){.pv-controls{display:block}.pv-controls section+section{margin-top:18px}}
#live-preview .pv-check input[type=checkbox]{appearance:auto;display:inline-block;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;border:0;border-radius:3px;background:initial}#live-preview input[type=file]{height:auto;min-height:44px;padding:7px;border:1px solid #cfdbd2;border-radius:8px;background:#f8fbf9}#live-preview input[type=range]{padding:0;height:24px;min-height:24px;background:transparent;box-shadow:none;border:0}

/* V22: photo-shaped preview, neutral surroundings and clearer editor controls. */
#live-preview .pv-stage{margin-inline:auto;background:#fff;max-width:100%}
#live-preview .pv-stage.has-photo{min-height:0;border:0}
#live-preview .pv-stage-card{background:#fff;box-shadow:0 8px 28px rgba(21,43,34,.045)}
#live-preview .pv-empty{color:#617568;background:#f8faf9}
#live-preview .pv-empty strong{color:#173c2a;font-size:24px}
#live-preview .pv-toolbar{padding:14px;gap:8px;background:#fff}
#live-preview .pv-toolbar button,#live-preview .pv-actions button{font-size:14px!important;line-height:1.4;font-weight:600}
#live-preview .pv-status{background:#fff;border-bottom:1px solid #e3ebe6;color:#466252;padding:12px 16px;min-height:44px}
#live-preview .pv-actions{padding:14px;border-top:1px solid #e3ebe6}
#live-preview .pv-controls{padding:20px}
#live-preview .pv-controls h2{font-size:16px;line-height:1.4;letter-spacing:-.015em}
#live-preview .pv-controls label{font-size:14px;line-height:1.5}
#live-preview .pv-controls small,#live-preview .pv-shortcuts,#live-preview .pv-note{font-size:13px;line-height:1.65}
#live-preview .pv-header p{font-size:14px}
#live-preview input[type=file]::file-selector-button{border:0;border-radius:5px;padding:7px 9px;margin-right:8px;background:#e9f3ed;color:#176b43;font:inherit;font-weight:600;cursor:pointer}
@media(max-width:760px){#live-preview .pv-toolbar,#live-preview .pv-actions{padding:10px;gap:6px}#live-preview .pv-controls{padding:16px}}

/* V23: compact two-point site sizing workflow. */
@media(min-width:761px){
 #live-preview{overflow:hidden}
 #live-preview .pv-layout{grid-template-columns:minmax(0,1fr) 370px;height:calc(100dvh - 91px);max-width:1900px;overflow:hidden}
 #live-preview .pv-layout>div,#live-preview .pv-stage-card{min-height:0;height:100%}
 #live-preview .pv-stage-card{display:flex;flex-direction:column}
 #live-preview .pv-stage{flex:1 1 auto}
 #live-preview .pv-controls{height:100%;overflow-y:auto;overscroll-behavior:contain}
}

/* V35: separate mounting and projection surfaces. */
#live-preview .pv-motion-field{grid-column:1/-1}
#live-preview .pv-compact-options>label select{font-weight:650;color:#153a29}
#live-preview .pv-unit-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
#live-preview .pv-unit-switch button{min-height:38px;padding:7px 10px}
#live-preview .pv-unit-switch button[aria-pressed=true],#live-preview .pv-light-options button[aria-pressed=true]{background:#176b43;color:#fff;border-color:#176b43}
#live-preview .pv-site-setup>label{margin:14px 0}
#live-preview .pv-site-setup output{font-variant-numeric:tabular-nums;font-weight:750;color:#145d3a}
#live-preview .pv-size-mode{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 4px;font-size:13px;font-weight:700}
#live-preview .pv-size-mode button{min-height:34px;padding:5px 10px;font-size:12px}
#live-preview .pv-size-mode button[aria-pressed=true]{background:#e5f4ea;border-color:#7db292;color:#145d3a}
#live-preview .pv-lens-options{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border:0;padding:0;margin:14px 0 8px}
#live-preview .pv-lens-options legend{grid-column:1/-1;font-size:14px;font-weight:700;margin-bottom:3px}
#live-preview .pv-lens-options button{position:relative;min-height:36px;padding:5px 4px;font-size:12px}
#live-preview .pv-lens-options button[aria-pressed=true]{background:#176b43;color:#fff;border-color:#176b43}
#live-preview .pv-lens-options button.is-current:not([aria-pressed=true]):after{content:"";position:absolute;right:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#39cf78}
#live-preview .pv-sizing-note{margin:5px 0 14px;padding:9px 10px;border-radius:8px;background:#f0f6f2;color:#56705f;font-size:11px;line-height:1.45}
#live-preview .pv-light-options{border:0;padding:0;margin:16px 0}
#live-preview .pv-light-options legend{font-size:14px;font-weight:700;margin-bottom:8px}
#live-preview .pv-light-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
#live-preview .pv-light-options legend{grid-column:1/-1}
#live-preview .pv-light-options button{min-height:39px;padding:7px 6px;font-size:13px}
#live-preview .pv-live-result{margin:16px 0;padding:16px;border:1px solid #7fb797;border-radius:12px;background:linear-gradient(145deg,#f5fbf7,#e8f5ec);box-shadow:0 10px 24px rgba(18,80,49,.08)}
#live-preview .pv-live-result>span{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#2b8057}
#live-preview .pv-live-result>strong{display:block;margin:4px 0 10px;font-size:22px;line-height:1.15;color:#0b4228}
#live-preview .pv-live-result p{margin:10px 0 0;font-size:12px;color:#506b5b}
#live-preview .pv-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#live-preview .pv-result-grid b{padding:7px 5px;border-radius:7px;background:#fff;font-size:11px;text-align:center;color:#254d38}
#live-preview .pv-toolbar button{flex:1 1 150px}
#live-preview .pv-actions{flex-wrap:nowrap;overflow-x:auto}
#live-preview .pv-actions button{white-space:nowrap}
@media(max-width:1000px) and (min-width:761px){#live-preview .pv-layout{grid-template-columns:minmax(0,1fr) 330px}.pv-header{padding:12px 16px}.pv-header h1{font-size:19px}}
@media(max-width:760px){#live-preview{overflow:auto}#live-preview .pv-layout{height:auto}.pv-controls{height:auto;overflow:visible}.pv-result-grid{grid-template-columns:1fr!important}}

/* V26: one-view controls, lens hints and compact upload setup. */
@media(min-width:761px){
 #live-preview .pv-header{padding:10px 22px}
 #live-preview .pv-header h1{font-size:20px;margin:1px 0}
 #live-preview .pv-header p{font-size:12px}
 #live-preview .pv-layout{grid-template-columns:minmax(0,1fr) 450px;height:calc(100dvh - 72px);padding:12px;gap:12px}
 #live-preview .pv-controls{height:100%;padding:12px;overflow:visible;align-self:stretch}
 #live-preview .pv-controls section+section{margin-top:6px;padding-top:6px}
}
#live-preview .pv-controls h2{margin:0 0 5px;font-size:13px}
#live-preview .pv-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#live-preview .pv-upload-grid label{margin:0}
#live-preview .pv-upload-grid input[type=file]{min-height:38px;padding:4px;font-size:10px}
#live-preview .pv-compact-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:end;margin-top:5px}
#live-preview .pv-compact-options label{margin:0}
#live-preview .pv-compact-options select{height:38px;padding:5px 8px}
#live-preview .pv-option-label{display:block;margin-bottom:5px;font-size:12px;font-weight:700}
#live-preview .pv-motion-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px}
#live-preview .pv-motion-switch button{min-height:38px;padding:5px 7px;font-size:12px}
#live-preview .pv-motion-switch button[aria-pressed=true]{background:#176b43;color:#fff;border-color:#176b43}
#live-preview .pv-check-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;margin-top:5px}
#live-preview .pv-check-row .pv-check{margin:0;padding:5px;border-radius:7px;background:#f4f8f5;font-size:10px!important;line-height:1.2!important}
#live-preview .pv-check-row .pv-check input{flex-basis:15px;width:15px;height:15px;min-height:15px}
#live-preview .pv-site-setup{min-height:0}
#live-preview .pv-site-setup .pv-live-result{margin:0 0 5px;padding:7px 10px}
#live-preview .pv-live-result>strong{margin:1px 0 4px;font-size:16px}
#live-preview .pv-live-result p{margin:4px 0 0;font-size:9px;line-height:1.25}
#live-preview .pv-result-grid b{padding:5px 3px;font-size:10px}
#live-preview .pv-unit-switch{margin-bottom:6px;gap:6px}
#live-preview .pv-unit-switch button{min-height:32px;padding:4px 8px;font-size:11px}
#live-preview .pv-site-setup>label{margin:4px 0;font-size:11px}
#live-preview .pv-controls input[type=range]{height:17px;min-height:17px;margin-top:2px}
#live-preview .pv-size-mode{margin:3px 0 1px;font-size:10px}
#live-preview .pv-size-mode button{min-height:30px;padding:3px 8px;font-size:10px}
#live-preview .pv-lens-options{grid-template-columns:repeat(7,1fr);gap:4px;margin:4px 0 3px;overflow:visible}
#live-preview .pv-lens-options legend{font-size:12px;margin-bottom:2px}
#live-preview .pv-lens-options button{min-height:32px;padding:3px 2px;font-size:10px}
#live-preview .pv-lens-options button[data-tooltip]:hover:before,#live-preview .pv-lens-options button[data-tooltip]:focus-visible:before{content:attr(data-tooltip);position:absolute;z-index:30;left:50%;bottom:calc(100% + 8px);width:220px;transform:translateX(-50%);padding:8px 10px;border-radius:8px;background:#0b4228;color:#fff;box-shadow:0 8px 24px rgba(4,31,18,.25);font-size:10px;line-height:1.35;text-align:left;pointer-events:none}
#live-preview .pv-sizing-note{display:none}
#live-preview .pv-light-options{grid-template-columns:repeat(4,1fr);gap:5px;margin:4px 0}
#live-preview .pv-light-options legend{font-size:12px;margin-bottom:2px}
#live-preview .pv-light-options button{min-height:32px;padding:4px 3px;font-size:10px}
#live-preview .pv-footer-tools{display:none}
#live-preview .pv-footer-tools .pv-context{padding:6px 8px;font-size:9px}
#live-preview .pv-footer-tools button{min-height:32px;padding:5px 9px;font-size:10px}
@media(max-width:1100px) and (min-width:761px){#live-preview .pv-layout{grid-template-columns:minmax(0,1fr) 390px}#live-preview .pv-check-row{grid-template-columns:1fr 1fr}#live-preview .pv-lens-options{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){#live-preview .pv-upload-grid,#live-preview .pv-compact-options{grid-template-columns:1fr}#live-preview .pv-check-row{grid-template-columns:1fr 1fr}#live-preview .pv-lens-options{grid-template-columns:repeat(4,1fr)}#live-preview .pv-light-options{grid-template-columns:repeat(2,1fr)}}

/* V28: spacious control mockup, clear live metrics and polished interaction states. */
@media(min-width:761px){
 #live-preview .pv-layout{grid-template-columns:minmax(0,1fr) minmax(500px,31vw);gap:16px;padding:16px}
 #live-preview .pv-stage-card{background:radial-gradient(circle at 18% 48%,rgba(61,188,112,.08),transparent 29%),radial-gradient(circle at 83% 42%,rgba(61,188,112,.07),transparent 28%),#fbfdfc}
 #live-preview .pv-toolbar,#live-preview .pv-status,#live-preview .pv-actions,#live-preview .pv-note{background:rgba(255,255,255,.95)}
 #live-preview .pv-stage.has-photo{border-radius:10px;box-shadow:0 20px 55px rgba(11,66,40,.16),0 0 0 1px rgba(31,126,77,.12)}
 #live-preview .pv-controls{padding:16px;background:linear-gradient(155deg,#fff 0%,#fbfefc 55%,#f3faf6 100%);box-shadow:0 18px 50px rgba(12,67,41,.10)}
}
#live-preview .pv-controls button,#live-preview .pv-controls select,#live-preview .pv-controls input[type=file]{transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease,transform .18s ease}
#live-preview .pv-controls button:hover,#live-preview .pv-controls select:hover,#live-preview .pv-controls input[type=file]:hover{border-color:#55aa79;box-shadow:0 0 0 3px rgba(48,190,107,.10),0 7px 20px rgba(20,104,62,.10);transform:translateY(-1px)}
#live-preview .pv-controls button[aria-pressed=true]{box-shadow:0 0 0 3px rgba(43,205,111,.12),0 8px 22px rgba(18,112,65,.19)}
#live-preview .pv-live-result{border-color:#65ad82;box-shadow:0 0 0 3px rgba(62,201,117,.08),0 12px 28px rgba(18,80,49,.12)}
#live-preview .pv-result-grid-four{grid-template-columns:repeat(4,1fr)}
#live-preview .pv-lens-options button.is-unavailable{opacity:.42;filter:grayscale(.55);box-shadow:none}
#live-preview .pv-lens-options button.is-unavailable:hover{transform:none;border-color:#cbd8cf;box-shadow:none}
#live-preview input[type=range]::-webkit-slider-thumb{filter:drop-shadow(0 0 5px rgba(45,207,112,.55))}
#live-preview input[type=range]::-moz-range-thumb{filter:drop-shadow(0 0 5px rgba(45,207,112,.55))}
@media(min-width:1200px) and (min-height:850px){
 #live-preview .pv-layout{grid-template-columns:minmax(0,1fr) minmax(540px,31vw);gap:20px;padding:18px}
 #live-preview .pv-controls{padding:19px}
 #live-preview .pv-controls h2{font-size:15px;margin-bottom:8px}
 #live-preview .pv-controls section+section{margin-top:10px;padding-top:10px}
 #live-preview .pv-upload-grid,#live-preview .pv-compact-options{gap:10px}
 #live-preview .pv-upload-grid input[type=file]{min-height:43px;padding:6px;font-size:11px}
 #live-preview .pv-compact-options{margin-top:8px}
 #live-preview .pv-compact-options select,#live-preview .pv-motion-switch button{height:42px;min-height:42px}
 #live-preview .pv-check-row{gap:7px;margin-top:8px}
 #live-preview .pv-check-row .pv-check{padding:7px;font-size:11px!important}
 #live-preview .pv-site-setup .pv-live-result{padding:11px 13px;margin-bottom:9px}
 #live-preview .pv-live-result>strong{font-size:19px;margin:2px 0 7px}
 #live-preview .pv-live-result p{font-size:10px;line-height:1.4;margin-top:7px}
 #live-preview .pv-result-grid b{font-size:11px;padding:7px 4px}
 #live-preview .pv-unit-switch{margin-bottom:9px}
 #live-preview .pv-unit-switch button{min-height:36px;font-size:12px}
 #live-preview .pv-site-setup>label{margin:7px 0;font-size:12px}
 #live-preview .pv-controls input[type=range]{height:20px;min-height:20px;margin-top:4px}
 #live-preview .pv-size-mode{margin:6px 0 3px;font-size:11px}
 #live-preview .pv-lens-options{margin:7px 0 5px;gap:6px}
 #live-preview .pv-lens-options legend,#live-preview .pv-light-options legend{font-size:13px}
 #live-preview .pv-lens-options button,#live-preview .pv-light-options button{min-height:36px;font-size:11px}
 #live-preview .pv-light-options{margin:7px 0;gap:7px}
}
@media(max-width:1100px) and (min-width:761px){#live-preview .pv-layout{grid-template-columns:minmax(0,1fr) 410px;padding:10px;gap:10px}#live-preview .pv-result-grid-four{grid-template-columns:repeat(2,1fr)}}

/* V30: direct value entry, full lens highlighting and live wattage guidance. */
#live-preview .pv-range-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px}
#live-preview .pv-value-entry{display:flex;align-items:center;flex:0 0 auto;min-width:94px;height:34px;border:1px solid #9bbdac;border-radius:9px;background:#fff;overflow:hidden;box-shadow:0 4px 13px rgba(19,91,54,.08);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
#live-preview .pv-value-entry:focus-within{border-color:#20a25c;box-shadow:0 0 0 3px rgba(42,205,111,.14),0 7px 20px rgba(18,112,65,.15);transform:translateY(-1px)}
#live-preview .pv-value-entry input{width:58px;height:32px;min-height:0;padding:4px 3px 4px 9px;border:0!important;outline:0!important;background:transparent;box-shadow:none!important;font-size:13px;font-weight:800;color:#0d5632;font-variant-numeric:tabular-nums}
#live-preview .pv-value-entry em{display:grid;place-items:center;align-self:stretch;min-width:33px;padding:0 7px;background:#e9f5ed;color:#176b43;font-size:11px;font-style:normal;font-weight:800}
#live-preview .pv-range-control>input[type=range]{margin-top:5px}
#live-preview .pv-wattage-panel{margin:7px 0 9px;padding:9px 10px;border:1px solid #c8ded1;border-radius:11px;background:rgba(255,255,255,.82)}
#live-preview .pv-wattage-panel>span{display:block;margin-bottom:6px;color:#47705b;font-size:9px;font-weight:850;letter-spacing:.15em}
#live-preview .pv-watt-track{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}
#live-preview .pv-watt-track button{display:flex;align-items:baseline;justify-content:center;gap:1px;min-width:0;min-height:34px;padding:7px 2px;border:1px solid #ccdcd2;border-radius:8px;background:#fff;color:#456553;font-size:11px;font-weight:850;line-height:1;cursor:pointer;transition:.2s ease}
#live-preview .pv-watt-track small{font-size:7px;font-weight:800}
#live-preview .pv-watt-track button:hover{border-color:#48a872;background:#f0faf4;transform:translateY(-1px)}
#live-preview .pv-watt-track button.is-default{border-color:#7dbb96;background:#eef8f2;color:#12613a}
#live-preview .pv-watt-track button.is-selected{border-color:#08763c;background:linear-gradient(145deg,#1ba259,#0d7440);color:#fff;box-shadow:0 0 0 3px rgba(47,208,113,.14),0 7px 16px rgba(17,112,64,.20);transform:translateY(-1px)}
#live-preview .pv-wattage-panel p{margin:6px 0 0;color:#658071;font-size:8px;line-height:1.3}
#live-preview .pv-lens-options button.is-current:not([aria-pressed=true]){border-color:#0c8b49;background:linear-gradient(145deg,#25b866,#118249);color:#fff;box-shadow:0 0 0 3px rgba(46,210,115,.14),0 8px 18px rgba(17,112,64,.18);transform:translateY(-1px)}
#live-preview .pv-lens-options button.is-current:not([aria-pressed=true]):after{content:"AUTO";position:absolute;right:3px;top:2px;width:auto;height:auto;padding:1px 3px;border-radius:3px;background:rgba(255,255,255,.22);font-size:6px;font-weight:900;line-height:1.25;letter-spacing:.04em}
@media(max-width:1100px) and (min-width:761px){#live-preview .pv-watt-track{grid-template-columns:repeat(4,1fr)}#live-preview .pv-wattage-panel{padding:7px 8px}#live-preview .pv-value-entry{min-width:88px}}
@media(max-width:760px){#live-preview .pv-watt-track{grid-template-columns:repeat(4,1fr)}#live-preview .pv-range-head{align-items:flex-start}#live-preview .pv-value-entry{min-width:92px}}

/* V32: simplified four-value site-fit summary and explicit surface brightness. */
#live-preview .pv-check-row{grid-template-columns:1fr 1fr}
#live-preview .pv-fit-four{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:7px}
#live-preview .pv-fit-four>div{min-width:0;padding:8px 5px;border:1px solid #d9e8de;border-radius:8px;background:#fff;text-align:center;box-shadow:0 4px 12px rgba(18,80,49,.05)}
#live-preview .pv-fit-four small{display:block;margin-bottom:3px;color:#71887b;font-size:7px;font-weight:850;letter-spacing:.09em}
#live-preview .pv-fit-four b{display:block;overflow:hidden;color:#174b30;font-size:11px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
#live-preview .pv-light-options legend{color:#153e29;font-weight:850}
#live-preview .pv-light-options button[aria-pressed=true]{box-shadow:0 0 0 3px rgba(42,205,111,.14),0 8px 18px rgba(17,112,64,.17)}
@media(max-width:1100px) and (min-width:761px){#live-preview .pv-fit-four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){#live-preview .pv-fit-four{grid-template-columns:repeat(2,1fr)}}

/* V33: measured-lux override and two clear projector choices. */
#live-preview .pv-choice-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
#live-preview .pv-choice-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #d7e7dc}
#live-preview .pv-choice-summary>div:first-child{border-color:#2c9c5d;background:#edf9f1}
#live-preview .pv-choice-summary>div:last-child{border-color:#0d7140;background:#0d7140;color:#fff}
#live-preview .pv-choice-summary small{font-size:7px;font-weight:900;letter-spacing:.08em}
#live-preview .pv-choice-summary b{font-size:12px;white-space:nowrap}
#live-preview .pv-lux-control{display:grid;grid-template-columns:minmax(0,1fr) 118px 32px;gap:6px;align-items:center;margin-top:7px;padding:8px;border:1px solid #cadfd2;border-radius:10px;background:#f8fcf9;transition:.2s ease}
#live-preview .pv-lux-control.is-active{border-color:#22a15d;background:#eaf8ef;box-shadow:0 0 0 3px rgba(42,205,111,.10),0 8px 18px rgba(17,112,64,.10)}
#live-preview .pv-lux-control>div strong{display:block;color:#153f29;font-size:11px}
#live-preview .pv-lux-control>div small{display:block;color:#6b8174;font-size:8px;line-height:1.25}
#live-preview .pv-lux-control label{display:flex;align-items:center;height:34px;margin:0!important;border:1px solid #a8c8b5;border-radius:8px;background:#fff;overflow:hidden}
#live-preview .pv-lux-control input{min-width:0;width:78px;height:32px;min-height:0;padding:5px 7px;border:0!important;outline:0!important;background:transparent;box-shadow:none!important;color:#115b35;font-size:12px;font-weight:800}
#live-preview .pv-lux-control em{display:grid;place-items:center;align-self:stretch;min-width:35px;background:#e3f2e8;color:#176b43;font-size:9px;font-style:normal;font-weight:850}
#live-preview .pv-lux-control>button{min-height:32px;height:32px;padding:0;border-radius:8px;font-size:17px;line-height:1}
#live-preview .pv-lux-control>span{grid-column:1/-1;color:#5b7566;font-size:8px;line-height:1}
@media(max-width:1100px) and (min-width:761px){#live-preview .pv-lux-control{grid-template-columns:minmax(0,1fr) 105px 30px}#live-preview .pv-choice-summary small{font-size:6px}}
@media(max-width:760px){#live-preview .pv-lux-control{grid-template-columns:1fr 110px 32px}}
@media(min-width:761px) and (max-height:1020px){#live-preview .pv-wattage-panel{display:block}}

/* V34: short-screen recovery — keep brightness/lux visible and make the panel scrollable. */
@media(min-width:761px){
 #live-preview .pv-controls{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:24px}
 #live-preview .pv-controls::-webkit-scrollbar{width:9px}
 #live-preview .pv-controls::-webkit-scrollbar-track{background:#edf5f0;border-radius:10px}
 #live-preview .pv-controls::-webkit-scrollbar-thumb{background:#68aa83;border:2px solid #edf5f0;border-radius:10px}
 #live-preview .pv-controls::-webkit-scrollbar-thumb:hover{background:#2b8b58}
 #live-preview .pv-site-setup{display:flex;flex-direction:column}
 #live-preview .pv-site-setup>h2{order:1}
 #live-preview .pv-site-setup>.pv-live-result{order:2}
 #live-preview .pv-site-setup>.pv-light-options{order:3}
 #live-preview .pv-site-setup>.pv-wattage-panel{order:4}
 #live-preview .pv-site-setup>.pv-lux-control{order:5}
 #live-preview .pv-site-setup>.pv-unit-switch{order:6}
 #live-preview .pv-site-setup>label:nth-of-type(1){order:7}
 #live-preview .pv-site-setup>.pv-size-mode{order:8}
 #live-preview .pv-site-setup>label:nth-of-type(2){order:9}
 #live-preview .pv-site-setup>label:nth-of-type(3){order:10}
 #live-preview .pv-site-setup>.pv-lens-options{order:11}
 #live-preview .pv-site-setup>.pv-sizing-note{order:12}
 #live-preview .pv-site-setup>.pv-footer-tools{order:13}
}

/* V36: sharper preview presentation and a cleaner premium control surface. */
#live-preview{background:
 radial-gradient(circle at 8% 12%,rgba(66,190,117,.10),transparent 25%),
 radial-gradient(circle at 92% 88%,rgba(45,137,91,.08),transparent 24%),
 linear-gradient(145deg,#f5f9f6 0%,#edf4ef 100%)}
#live-preview .pv-header{background:rgba(255,255,255,.94);box-shadow:0 8px 28px rgba(20,72,47,.07);backdrop-filter:blur(12px)}
#live-preview .pv-stage-card,#live-preview .pv-controls{border-color:#c9ddd0;box-shadow:0 18px 48px rgba(18,74,47,.11)}
#live-preview .pv-stage-card{background:linear-gradient(180deg,#fff,#fbfdfc)}
#live-preview .pv-toolbar{gap:10px;padding:14px;background:linear-gradient(180deg,#fff,#f8fbf9)}
#live-preview .pv-toolbar button{font-weight:750;border-color:#bfd5c7;box-shadow:0 5px 14px rgba(18,80,49,.05);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
#live-preview .pv-toolbar button:hover{transform:translateY(-1px);border-color:#58a878;box-shadow:0 9px 20px rgba(18,100,57,.12)}
#live-preview .pv-status{border-top:1px solid #edf3ef;border-bottom:1px solid #dfeae3;background:linear-gradient(90deg,#eff9f2,#f9fcfa);color:#395f4b;font-weight:600}
#live-preview .pv-stage{background:linear-gradient(145deg,#10271d,#17392a);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
#live-preview .pv-actions{padding:14px;background:#fbfdfc;border-top:1px solid #e2ebe5}
#live-preview .pv-actions button{font-weight:700}
#live-preview .pv-actions .pv-primary{box-shadow:0 9px 22px rgba(17,113,64,.23)}
#live-preview .pv-upload-section,#live-preview .pv-site-setup{position:relative;padding:12px;border:1px solid #d9e7de;border-radius:14px;background:rgba(255,255,255,.76)}
#live-preview .pv-upload-section:before,#live-preview .pv-site-setup:before{content:"";position:absolute;left:12px;top:0;width:42px;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#11a052,#70d494)}
#live-preview .pv-controls h2{color:#103c27;font-weight:850;letter-spacing:-.01em}
#live-preview .pv-compact-options>label select,#live-preview .pv-upload-grid input[type=file]{min-height:42px;border-color:#bdd5c6;background:#fbfefc}
#live-preview .pv-live-result{background:linear-gradient(145deg,#f8fdf9 0%,#e7f6ec 100%);box-shadow:0 0 0 3px rgba(55,196,111,.07),0 14px 32px rgba(17,99,57,.12)}
#live-preview .pv-fit-four>div{border-color:#d2e5d8;box-shadow:0 7px 17px rgba(18,80,49,.07)}
#live-preview .pv-unit-switch,#live-preview .pv-motion-switch{padding:3px;border:1px solid #d3e2d8;border-radius:12px;background:#f2f8f4}
#live-preview .pv-unit-switch button,#live-preview .pv-motion-switch button{border:0;box-shadow:none}
#live-preview .pv-lens-options button,#live-preview .pv-light-options button{font-weight:750}
#live-preview input[type=range]{accent-color:#149250}
#live-preview input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:#d5e5da}
#live-preview input[type=range]::-webkit-slider-thumb{margin-top:-5px}
#live-preview .pv-note{color:#5d7868}
@media(max-width:760px){#live-preview .pv-upload-section,#live-preview .pv-site-setup{padding:10px}}

/* V37: user-controlled projection sharpness. */
#live-preview .pv-size-mode,#live-preview .pv-diameter-control{display:none!important}
#live-preview .pv-sharpness-control{margin-top:9px!important;padding:9px 10px;border:1px solid #d4e5da;border-radius:11px;background:linear-gradient(135deg,#fbfefc,#f0f8f3)}
#live-preview .pv-sharpness-control output{float:none;color:#117443;font-size:12px;font-weight:850}
#live-preview .pv-sharpness-control small{margin-top:3px;color:#6b8174;font-size:9px;line-height:1.25}
#live-preview .pv-sharpness-control input[type=range]{accent-color:#0d8d4a}

/* V38: area-light preview and lens-led image sizing. */
#live-preview .pv-light-options button[data-pv-light=dark]{background-image:linear-gradient(135deg,rgba(7,34,23,.09),rgba(20,71,46,.04))}
#live-preview .pv-light-options button[data-pv-light=average]{background-image:linear-gradient(135deg,rgba(82,132,103,.08),rgba(255,255,255,.25))}
#live-preview .pv-light-options button[data-pv-light=bright]{background-image:linear-gradient(135deg,rgba(192,226,205,.16),rgba(255,255,255,.55))}
#live-preview .pv-light-options button[data-pv-light=very]{background-image:linear-gradient(135deg,rgba(231,247,237,.30),rgba(255,255,255,.92))}
#live-preview .pv-light-options button[aria-pressed=true]{background-image:linear-gradient(145deg,#1b9855,#0e7040);color:#fff}
#live-preview .pv-lens-options legend:after{content:" · changes image size";color:#6d8476;font-size:8px;font-weight:650}

/* V45: dimensional controls and a projector-specific lens limit. */
#live-preview{font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;color:#173d30;background:radial-gradient(ellipse at top right,#d9f5e8,transparent 48%),#f2f7f5}
#live-preview button,#live-preview input,#live-preview select{font-family:inherit}
#live-preview .pv-header{background:linear-gradient(115deg,#fff,#effaf4);box-shadow:0 8px 28px #1648320b}
#live-preview h1{letter-spacing:-.035em;font-weight:750}
#live-preview .pv-upload-section,#live-preview .pv-site-setup{border:1px solid #d3e6da;border-radius:20px;background:linear-gradient(135deg,#fff,#f8fcfa);box-shadow:inset 0 1px 0 #fff,0 12px 28px #154b3210}
#live-preview .pv-live-result{background:linear-gradient(135deg,#eaf9f0,#fafffc)!important;border:1px solid #80bf9a;box-shadow:inset 0 1px 0 #fff,0 3px 0 #d3e9dc,0 12px 24px #12623a18!important}
#live-preview .pv-fit-five{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#live-preview .pv-fit-five>div{padding:11px 6px;border-radius:12px;background:linear-gradient(150deg,#fff,#f1f8f4);box-shadow:inset 0 1px 0 #fff,0 3px 0 #deebe3,0 7px 14px #1648320b}
#live-preview .pv-fit-five>div:nth-child(4){grid-column:1}
#live-preview .pv-fit-five>.pv-max-distance{grid-column:2/4;background:linear-gradient(125deg,#def5e7,#f4fcf7);border-color:#99c9ab}
#live-preview .pv-fit-five small{font-size:9px;letter-spacing:.055em;color:#486b59}
#live-preview .pv-fit-five b{font-size:15px;font-weight:750;line-height:1.35}
#live-preview button{box-shadow:inset 0 1px 0 #ffffffc0,0 3px 0 #dce9e1;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
#live-preview button[aria-pressed=true],#live-preview .pv-primary{box-shadow:inset 0 1px 0 #ffffff30,0 3px 0 #095231,0 8px 20px #16965328}
#live-preview button:focus-visible{outline:3px solid #58b988;outline-offset:3px}
@media(hover:hover){#live-preview button:hover:not(:disabled){transform:translateY(-2px);border-color:#63b889;box-shadow:0 0 0 3px #4aca8416,0 9px 20px #196b3920}#live-preview button:active:not(:disabled){transform:translateY(1px)}}
@media(prefers-reduced-motion:reduce){#live-preview button{transition:none}#live-preview button:hover{transform:none!important}}
