/* Italian public configurator — visual refinement, shared by all four stages.
   Screen-only: print layouts and the calculation model remain independent. */
:root{--ink:#163c58;--muted:#53697a;--line:#dce5eb;--paper:#fff;--wash:#f3f6f8;--accent:#2c6882;--radius:16px}
html{background:var(--wash);color:var(--ink);scroll-padding-top:24px}
body{font-family:LocalSans,Arial,sans-serif;line-height:1.55;background:var(--wash)}
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #3388ab;outline-offset:4px}
button{transition:background-color .16s,border-color .16s,box-shadow .16s}
button:disabled{opacity:.5;cursor:not-allowed}
.header{height:92px;padding:0 max(32px,calc((100vw - 1360px)/2));border-bottom:1px solid var(--line);background:#fff}
.header-copy{font:italic 19px Georgia,serif;color:var(--muted)}
.demo-tag{font-size:11px;letter-spacing:1.1px;border:1px solid var(--line);background:var(--wash);border-radius:30px;padding:7px 13px;color:var(--muted)}
#app{max-width:1440px;padding:0 36px}
#steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:0;padding:24px 0 18px;background:transparent;border:0}
#steps button{position:relative;min-width:0;min-height:72px;justify-content:flex-start;gap:12px;padding:13px 18px;border:1px solid transparent;border-radius:12px;text-align:left;font-size:16px;color:var(--muted);box-shadow:none}
#steps button:not(:last-child):after{display:none}
#steps button:hover{background:#e9eff3}
#steps button.active{color:var(--ink);background:#fff;border-color:#b6ccda;box-shadow:0 3px 12px #1d40540a}
#steps .step-number{width:36px;height:36px;border:1px solid #c3d3dc;background:transparent;color:var(--muted);font-size:15px}
#steps button.active .step-number{background:var(--ink);color:white;border-color:var(--ink)}
#steps button.done .step-number{background:#e2edee;border-color:#b9d1d2;color:#315c65}
.step-copy{display:block;min-width:0;line-height:1.35}
.step-copy small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}
.request-tools{padding:0;gap:12px 22px;background:transparent;border:0;font-size:13px}
.request-tools>span{font-weight:700;letter-spacing:.5px;color:var(--muted);font-size:12px;text-transform:uppercase}
.request-tools button{font-size:13px;font-weight:600;text-decoration:none;color:var(--ink);padding:8px 0;min-height:44px;border-bottom:1px solid transparent;border-radius:0}
.request-tools button:hover{border-color:var(--accent)}
#draft-status{padding:0 0 17px;background:transparent;color:var(--muted);font-size:12px;line-height:1.5}
#draft-status[data-status=unavailable],#draft-status[data-status=incomplete],#import-status{padding:12px 16px;border-radius:10px;margin-bottom:16px}
.workspace,.workspace:has(#plan-wrap:not([hidden])){display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:24px;align-items:start;min-height:0}
.visual{position:sticky;top:24px;align-self:start;min-height:0;height:640px;height:min(760px,calc(100vh - 48px));max-height:none;min-height:540px;border-radius:var(--radius);background:#14334a;box-shadow:0 8px 28px #18374812;isolation:isolate}
#scene-wrap{min-height:0;flex:1}
.visual-toolbar{left:22px;right:22px;top:22px;gap:12px;align-items:start}
.glass-badge{padding:10px 13px;border-radius:10px;background:#102b40ce;box-shadow:none;backdrop-filter:blur(10px)}
.glass-badge b{font-size:20px;line-height:1.1}
.glass-badge span{display:block;font-size:11px;line-height:1.4;margin-top:5px;color:#e2edf2}
.view-switch{padding:4px;border-radius:9px;background:#102b40ce}
.view-switch button{min-height:38px;padding:7px 11px;font-size:12px;border-radius:6px}
.hero-copy{left:30px;right:24px;bottom:66px}
.hero-copy .eyebrow{font-size:10px;letter-spacing:1.8px;line-height:1.6;color:#d6e5ed;max-width:280px}
.hero-copy h1{font:400 clamp(31px,2.9vw,43px)/1.13 Georgia,serif;letter-spacing:-.7px;margin:15px 0}
.hero-copy p{font-size:15px;line-height:1.65;color:#e7eff3}
.scene-caption{left:30px;right:24px;font-size:11px;color:#e1eaf0;line-height:1.5}
#visual-footer{padding:17px 22px;gap:8px;flex-wrap:wrap;background:#112d43;color:#d1e2ec;font-size:12px}
#visual-footer b{color:white}
.panel,.workspace:has(#plan-wrap:not([hidden])) .panel{padding:32px;border:1px solid var(--line);border-radius:var(--radius);background:white;min-width:0;box-shadow:0 5px 22px #163c5805}
#panel-body{flex:0 0 auto;min-width:0}
.stage-heading{padding-bottom:23px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.stage-heading-main{gap:15px;margin-bottom:20px}
.stage-badge{height:54px;width:48px;border:0;border-radius:10px;background:#edf3f6;color:var(--ink);font-size:28px}
.stage-heading .stage-overline{font:700 11px/1.4 LocalSans,Arial,sans-serif;letter-spacing:1.5px;color:var(--muted);margin-bottom:5px}
.stage-heading .stage-title{font:700 clamp(26px,2.4vw,34px)/1.2 LocalSans,Arial,sans-serif;letter-spacing:-.8px;color:var(--ink)}
.stage-heading .stage-prompt{font:700 22px/1.35 Georgia,serif;color:var(--ink);margin:0 0 7px}
.stage-heading .intro{font-size:15px;line-height:1.65;color:var(--muted);margin:0;max-width:46ch}
.mobile-preview-link,.preview-return{display:none}
.field-label,.dimensions label,.preset-line label{font-size:19px;font-weight:800;line-height:1.4;color:var(--ink)}
.field-label,.preset-line label{border:0;padding:0}
.field-label{margin:30px 0 14px}
.stage-heading+#sizing-feedback+.field-label{margin-top:0}
.shape-options{gap:12px}
.shape-option{min-height:104px;padding:16px 8px;border:1px solid var(--line);border-radius:10px;font-size:15px;gap:12px;background:#fff}
.shape-option:hover,.fiber-option:hover,.lamp-choice:hover,.chip:hover{border-color:#709aac;box-shadow:0 2px 9px #1b50600b}
.shape-icon{width:34px;height:25px;border-width:2px;color:#486f87}
.shape-icon.square,.shape-icon.circle{width:27px;height:27px}
.dimensions{gap:18px;margin-top:26px}
.input-unit{border:1px solid #c7d6e0;border-radius:9px;margin-top:10px;overflow:hidden;background:#fbfcfd}
.input-unit input{min-height:54px;font-size:23px;font-weight:600;color:var(--ink);background:transparent;padding:10px 14px}
.input-unit>span{color:var(--muted);font-size:16px;padding-right:15px}
.note,.subtle-line,.position-reassurance{font-size:14px;color:var(--muted);line-height:1.65}
.subtle-line{margin-top:11px}
.note{margin-top:14px}
.area-total{margin:22px 0 26px;padding:18px 20px;border:1px solid #dce9ee;border-radius:10px;background:#eff6f8;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--ink)}
.area-total span{font-size:14px;line-height:1.45;max-width:170px}
.area-total b{font-size:29px;font-weight:700;white-space:nowrap}
.preset-line{padding-top:24px;margin-top:0;border-top:1px solid var(--line)}
.preset-line label{font-size:16px;margin-bottom:10px;display:block}
.preset-line select,.amount-details select,.amount-details input{font-size:16px;min-height:48px;border:1px solid #c7d6e0;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink)}
.fiber-options{gap:12px}
.fiber-option{padding:15px 12px;border-radius:10px;min-height:88px;font-size:20px;line-height:1.3}
.fiber-option small,.fiber-option[data-value="015"] small{font-size:14px;font-weight:500;line-height:1.5;margin-top:7px;color:var(--muted)}
.density-guidance{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;padding:18px;border:1px solid #dce9ee;border-radius:10px;background:#eff6f8;color:var(--muted)}
.density-guidance>div{padding-right:18px;border-right:1px solid #cddfe6}
.density-guidance strong{display:block;font-size:32px;line-height:1.1;color:var(--ink);white-space:nowrap}
.density-guidance strong small{font-size:14px;font-weight:600}
.density-guidance span{display:block;font-size:12px;line-height:1.4;margin-top:6px;color:var(--ink)}
.density-guidance p{font-size:14px;line-height:1.6;margin:0}
.amount-details{margin-top:8px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.amount-details summary{font-size:15px;font-weight:700;min-height:48px;text-decoration:none;color:var(--accent);display:list-item;list-style-position:inside;padding:12px 0}
.amount-details .field-label{font-size:16px;margin-top:15px}
.lamp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.lamp-list .lamp-choice{position:relative;display:grid;grid-template-columns:clamp(88px,38%,124px) minmax(0,1fr);gap:14px;align-items:center;padding:12px;min-height:126px;border-radius:10px;border:1px solid var(--line);text-align:left}
.lamp-list .lamp-choice img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;margin:0;border-radius:6px}
.lamp-list .lamp-choice strong{display:block;font-size:16px;line-height:1.3;padding-right:10px;color:var(--ink)}
.lamp-list .lamp-choice small{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:var(--muted)}
.lamp-list .radio-dot{position:absolute;right:10px;top:10px;width:11px;height:11px}
.chips{gap:10px}
.chip{padding:12px 14px;border-radius:9px;min-height:48px;font-size:15px;line-height:1.4}
.chip small{font-size:12px;margin-top:4px;color:var(--muted)}
.swatches{gap:12px}
.swatch{width:48px;height:48px}
.color-label{font-size:14px;color:var(--muted)}
.control-detail{padding:16px 18px;background:#f6f8fa;border:1px solid var(--line);border-radius:10px;gap:22px;min-height:110px}
.control-detail img{width:58px;height:94px}
.control-detail p{font-size:14px;line-height:1.65;color:var(--muted)}
.check{padding:15px 0;gap:10px;line-height:1.5;font-size:16px}
.check input{width:20px;height:20px;flex:none;accent-color:var(--ink)}
.notice{border-radius:10px;font-size:14px;line-height:1.65}
.notice strong{font-size:16px}
.panel-footer{padding-top:22px;margin-top:28px;border-top:1px solid var(--line)}
.footer-summary{font-size:12px;color:var(--muted);margin-bottom:12px}
.actions{display:flex;gap:20px;align-items:center;justify-content:space-between}
.primary,.f-primary{background:var(--ink);border:1px solid var(--ink);border-radius:9px;min-height:52px;padding:13px 21px;font-size:15px;font-weight:700;line-height:1.4;color:#fff;box-shadow:0 3px 10px #143b5810}
.primary:hover,.f-primary:hover{background:#245873;border-color:#245873}
#next{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:18px}
#next:after{content:'→';font-size:21px;line-height:1;font-weight:400}
.text-button{font-size:14px;font-weight:600;color:var(--muted);min-height:48px}
.text-button:before{content:'←';margin-right:8px}
#product-strip{margin:28px 0 0;border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;background:#fff;gap:26px;grid-template-columns:1fr 1.1fr 1.1fr}
.strip-intro .eyebrow{font-size:10px;letter-spacing:1.2px;color:var(--muted)}
.strip-intro h3{font-size:23px;line-height:1.25;color:var(--ink);margin-top:8px}
.strip-intro p,.strip-product p{font-size:12px;line-height:1.6;color:var(--muted)}
.strip-product{gap:15px;min-width:0}
.strip-product img{width:80px;height:90px;flex:none}
.strip-product img.control-photo{width:52px;height:92px}
.strip-product h3{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.strip-product .label{font-size:10px;letter-spacing:.8px;color:var(--muted)}
.page-footer{padding:25px 0 32px;font-size:12px;gap:12px;color:var(--muted)}
/* The area plan keeps priority when placing the illuminators. */
body[data-stage="2"] .workspace:has(#plan-wrap:not([hidden])){grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.visual:has(#plan-wrap:not([hidden])){position:relative;top:auto;height:auto;min-height:0;max-height:none;align-self:start;overflow:hidden}
.visual:has(#plan-wrap:not([hidden])) .visual-toolbar{position:static;padding:22px 24px 0}
#plan-wrap{padding:25px 24px 24px;min-height:0}
#plan-wrap .p-drawing{max-height:800px;width:100%;margin:12px 0}
.p-plan{background:#14334a;border-radius:var(--radius);padding:26px}
.p-plan h3{font-size:27px;font-weight:400}
.p-plan .eyebrow{font-size:10px;letter-spacing:1.4px}
.p-status{font-size:12px;line-height:1.4;padding:7px 10px}
.p-mode-choices{gap:12px;margin-top:18px}
.p-mode-choices button{border-radius:10px;padding:13px 12px;min-height:94px;gap:12px}
.p-mode-choices button:hover{background:#ffffff14}
.p-mode-choices button.active{background:#e5f1f519;border-color:#b5d4e2;box-shadow:inset 0 0 0 1px #b5d4e2}
.p-mode-choices b{font-size:16px;line-height:1.3}
.p-mode-choices small{font-size:12px;line-height:1.4}
.p-mode-choices svg{width:60px;height:42px}
.p-help{font-size:14px;line-height:1.6;color:#c9dce7}
.p-selection{font-size:14px;line-height:1.55}
.p-legend{margin-top:20px;padding:18px;border-radius:10px}
.p-how small{font-size:12px;color:#c9dce7}
.p-panel-summary{padding:18px 20px;border:1px solid #dce9ee;background:#eff6f8;border-radius:10px;margin:0 0 22px}
.p-panel-summary b{font-size:20px;color:var(--ink)}
.p-panel-summary span{font-size:13px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.p-unit-choices{display:grid;grid-template-columns:1fr;gap:10px}
.p-unit-choices button{padding:13px 14px;border-radius:9px;font-size:15px;min-height:52px}
.p-unit-choices i{height:28px;width:28px;font-size:14px;margin-right:6px}
.p-current-unit{font-size:14px;margin:12px 0 18px}
.p-quick button{min-height:46px;border-radius:8px;font-size:14px}
.p-stats{font-size:14px;line-height:1.5;gap:12px 22px}
.p-stats b{font-size:22px}
.p-lamps,.p-notice,.p-details{font-size:13px;line-height:1.6}
.p-table{overscroll-behavior:contain}
/* A consistent project and contact page. */
.final-page{max-width:none;padding:12px 0 0}
.f-heading{gap:24px;margin-bottom:24px;align-items:start}
.f-heading .stage-heading{border:0;padding:0;margin:0}
.f-heading>div>p{font-size:15px;color:var(--muted);margin-top:8px}
.f-heading-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex:none}
.f-contact-jump{display:none}
.f-edit{border:1px solid #bdcfdc;border-radius:9px;min-height:46px;padding:11px 18px;font-size:14px;color:var(--ink);background:#fff}
.f-customer-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}
.f-project{gap:18px;min-width:0}
.f-project>.p-plan{margin:0}
.f-contact{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:white;box-shadow:0 5px 22px #163c5805;min-width:0}
.f-contact h2{font-size:29px;color:var(--ink)}
.f-contact>p{font-size:14px;color:var(--muted);line-height:1.65}
.f-eyebrow{font-size:10px;letter-spacing:1.1px;color:var(--muted)}
#contact-form{gap:19px;scroll-margin-top:24px}
#contact-form label,#contact-form legend{font-size:16px;font-weight:700;color:var(--ink);line-height:1.5}
#contact-form label small{font-size:12px;color:var(--muted);font-weight:400}
#contact-form input:not([type=radio]),#contact-form textarea{font-size:16px;border:1px solid #c7d6e0;border-radius:8px;min-height:48px;background:#fbfcfd;padding:11px 12px;color:var(--ink);line-height:1.4}
.f-row{gap:13px}
.f-roles{gap:7px}
#contact-form .f-roles label{padding:10px 7px;font-size:13px;min-height:46px;line-height:1.5;border-radius:8px}
.f-products{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.f-products article{border-color:var(--line);border-radius:12px;padding:17px;gap:14px;min-width:0}
.f-products img{width:74px;height:90px;flex:none}
.f-products .f-remote{width:48px}
.f-products h3{font-size:15px;line-height:1.4;overflow-wrap:anywhere;color:var(--ink)}
.f-products p{font-size:13px;line-height:1.6;color:var(--muted)}
.f-choices{border-color:var(--line);border-radius:12px;padding:24px}
.f-choices h3{font-size:23px;margin-bottom:18px;color:var(--ink)}
.f-choices dl{gap:17px 25px}
.f-choices dl>div{border-top:1px solid #edf0f3;padding-top:11px}
.f-choices dt{font-size:12px;line-height:1.5;color:var(--muted)}
.f-choices dd{font-size:16px;line-height:1.5;font-weight:600;color:var(--ink);margin-top:4px}
.f-reference{border:1px solid var(--line);border-left:3px solid #739eac;border-radius:9px;padding:19px 22px;background:white}
.f-reference p{font-size:13px;line-height:1.6;color:var(--muted)}
.f-reference-id{font-size:12px!important}
.f-demo-note,.f-required{font-size:12px;line-height:1.5;color:var(--muted)}
.f-mail{max-width:1040px;padding:32px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 22px #163c5805}
.f-mail .p-plan{margin-bottom:22px}
.f-mail .f-choices,.f-mail .f-reference{margin-top:20px}
.f-contact-readout{font-size:15px;line-height:1.65;gap:24px}
.f-contact-readout p,.f-mail-foot{font-size:14px;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 100px #092d4840;padding:32px;max-width:min(620px,calc(100vw - 32px));color:var(--ink)}
dialog::backdrop{background:#132f4966;backdrop-filter:blur(4px)}
dialog h2{font-size:27px;line-height:1.25;padding-right:25px;color:var(--ink)}
dialog p{font-size:15px;line-height:1.65;color:var(--muted)}
.dialog-close{width:40px;height:40px;min-height:40px;border-radius:50%;background:var(--wash);font-size:26px}
.save-button{border:1px solid #bdcfdc;border-radius:9px;min-height:48px;padding:12px 16px;font-size:14px;font-weight:600;background:#fff}
@media(min-width:761px) and (max-width:1150px){
 #app{padding:0 24px}.header{padding:0 24px}#steps{gap:6px}#steps button{padding:12px 10px;font-size:14px;gap:9px}.step-copy small{font-size:11px}
 .workspace,.workspace:has(#plan-wrap:not([hidden])){grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:18px}
 .panel,.workspace:has(#plan-wrap:not([hidden])) .panel{padding:24px}.visual-toolbar{flex-direction:column;gap:10px}.hero-copy{left:24px}.hero-copy h1{font-size:32px}
 .lamp-list{grid-template-columns:1fr}.lamp-list .lamp-choice{grid-template-columns:clamp(88px,38%,124px) minmax(0,1fr);padding:12px 15px;min-height:126px}.lamp-list .lamp-choice img{width:100%;height:auto;aspect-ratio:1}
 body[data-stage="2"] .workspace:has(#plan-wrap:not([hidden])){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.p-mode-choices button{display:block}.p-mode-choices svg{margin-bottom:7px}.p-panel-summary b{font-size:18px}
 .f-customer-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}.f-contact{padding:22px}.f-products{grid-template-columns:1fr}
 .density-guidance{grid-template-columns:1fr;gap:10px}.density-guidance>div{padding:0;border:0}.density-guidance strong{display:inline-block;margin-right:10px}.density-guidance span{display:inline-block}
}
@media(max-width:760px){
 .header{height:72px;padding:0 20px}.header-copy{display:none}.brand{transform:scale(.85);transform-origin:left center}.demo-tag{font-size:10px;padding:5px 9px;letter-spacing:.6px}
 #app{padding:0 16px}#steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:16px 0 11px}#steps button{min-height:56px;padding:9px 10px;font-size:14px;gap:9px}#steps .step-number{width:29px;height:29px;font-size:13px}.step-copy small{display:none}
 .request-tools{gap:8px 16px}.request-tools>span{display:none}.request-tools button{font-size:12px;min-height:40px}
 #draft-status{font-size:11px;padding-bottom:13px;line-height:1.5}
 .workspace,.workspace:has(#plan-wrap:not([hidden])),body[data-stage="2"] .workspace:has(#plan-wrap:not([hidden])){display:flex;flex-direction:column;gap:20px}
 .panel,.workspace:has(#plan-wrap:not([hidden])) .panel{width:100%;padding:23px 20px;border-radius:14px}
 body[data-stage="0"] .panel,body[data-stage="1"] .panel{order:0}
 body[data-stage="0"] .visual,body[data-stage="1"] .visual{order:1}
 .visual{position:relative;top:auto;width:100%;height:450px;min-height:0;border-radius:14px}
 #scene-wrap{height:360px;min-height:0}.visual-toolbar{left:17px;right:17px;top:17px;gap:8px}.glass-badge{padding:9px 11px}.glass-badge b{font-size:18px}.glass-badge span{font-size:10px}
 .view-switch button{padding:6px 9px;font-size:11px;min-height:35px}.hero-copy{left:22px;bottom:56px}.hero-copy h1{font-size:31px}.hero-copy .eyebrow{font-size:9px}.hero-copy p{display:none}.scene-caption{left:22px;font-size:10px;bottom:18px}
 #visual-footer{padding:14px 18px;font-size:11px}
 .stage-heading{padding-bottom:21px;margin-bottom:23px}.stage-heading-main{gap:12px;margin-bottom:18px}.stage-badge{width:43px;height:48px;font-size:25px}.stage-heading .stage-title{font-size:28px}.stage-heading .stage-prompt{font-size:21px}.stage-heading .intro{font-size:14px;line-height:1.6}
 .mobile-preview-link{display:inline-flex;gap:12px;align-items:center;min-height:40px;margin-top:10px;font-size:13px;font-weight:700;color:var(--accent);text-decoration:none}
 body[data-stage="0"] .preview-return,body[data-stage="1"] .preview-return{display:block;background:#112d43;text-align:center;padding:12px;font-size:13px;font-weight:600;color:#d9edf7;border-top:1px solid #ffffff20;text-decoration:none}
 .field-label,.dimensions label{font-size:18px}.field-label{margin-top:25px}.shape-options{gap:8px}.shape-option{font-size:13px;padding:13px 6px;min-height:92px}.dimensions{gap:12px}.input-unit input{width:100%;min-width:0;padding:11px 12px;font-size:22px}
 .area-total{padding:16px}.area-total b{font-size:26px}.area-total span{font-size:13px}.preset-line label{font-size:16px}
 .note,.subtle-line,.position-reassurance{font-size:13px}.fiber-options{gap:10px}.fiber-option{font-size:19px;padding:14px 9px;min-height:88px}.fiber-option small,.fiber-option[data-value="015"] small{font-size:13px}
 .density-guidance{grid-template-columns:1fr;gap:10px;padding:16px}.density-guidance>div{border:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:10px}.density-guidance strong{font-size:29px}.density-guidance span{font-size:11px;max-width:80px;margin:0}.density-guidance p{font-size:13px}
 .lamp-list{grid-template-columns:1fr;gap:10px}.lamp-list .lamp-choice{grid-template-columns:clamp(88px,38%,124px) minmax(0,1fr);padding:12px;min-height:126px;gap:14px}.lamp-list .lamp-choice img{width:100%;height:auto;aspect-ratio:1}.lamp-list .lamp-choice strong{font-size:17px}.lamp-list .lamp-choice small{font-size:13px}
 .chips{gap:8px}.chip{font-size:14px;padding:11px 10px}.control-detail{padding:14px;gap:18px}.control-detail p{font-size:13px}
 .panel-footer{margin-top:25px;padding-top:20px}.actions{gap:14px}.primary,.f-primary{font-size:14px;padding:13px 15px;min-height:50px}#next{gap:12px}.text-button{font-size:13px}.footer-summary{font-size:11px}
 #product-strip{grid-template-columns:1fr;margin-top:22px;padding:22px;gap:20px;border-radius:14px}.strip-intro h3{font-size:25px}.strip-product{padding-top:18px;border-top:1px solid var(--line)}.strip-product img{width:76px;height:85px}.strip-product h3{font-size:16px}.strip-product p{font-size:13px}
 .page-footer{display:flex;flex-direction:column;align-items:flex-start;padding:23px 5px 26px;font-size:11px;gap:8px}
 .visual:has(#plan-wrap:not([hidden])) .visual-toolbar{padding:17px 16px 0;flex-direction:row}
 #plan-wrap{padding:20px 14px 18px}.p-plan h3{font-size:24px}.p-plan .eyebrow{font-size:10px}.p-status{font-size:11px}.p-mode-choices{gap:8px}.p-mode-choices button{display:block;padding:12px 10px;min-height:108px}.p-mode-choices b{font-size:14px}.p-mode-choices small{font-size:11px}.p-mode-choices svg{width:50px;height:33px;margin-bottom:6px}.p-help{font-size:13px}.p-selection{font-size:13px}
 .p-legend{padding:14px}.p-how small{font-size:11px}.p-how b{font-size:12px}.p-stats{font-size:12px;gap:10px 18px}.p-stats b{font-size:20px}.p-lamps,.p-notice,.p-details{font-size:12px}.p-panel-summary b{font-size:20px}.p-panel-summary span{font-size:12px}.p-unit-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.p-unit-choices button{font-size:12px;padding:10px 8px;gap:5px}.p-unit-choices i{height:24px;width:24px;margin:0;font-size:12px}
 .final-page{padding:8px 0 0}.f-heading{display:block;margin-bottom:22px}.f-heading-actions{margin-top:19px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.f-contact-jump{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;background:var(--ink);color:white;padding:11px 10px;font-size:13px;font-weight:700;text-decoration:none;line-height:1.5}.f-edit{font-size:13px;padding:10px}.f-customer-grid{display:grid;grid-template-columns:1fr;gap:22px}.f-contact{padding:24px 20px;border-radius:14px}.f-contact h2{font-size:29px}.f-contact>p{font-size:14px}
 .f-project>.p-plan{padding:22px 15px}.f-products{grid-template-columns:1fr;gap:10px}.f-products article{padding:16px;gap:20px}.f-products img{width:76px;height:90px}.f-products .f-remote{width:76px}.f-products h3{font-size:16px}.f-products p{font-size:13px}.f-choices{padding:21px}.f-choices h3{font-size:23px}.f-choices dl{gap:15px}.f-choices dt{font-size:12px}.f-choices dd{font-size:14px}.f-reference{padding:18px}.f-reference p{font-size:12px}
 .f-mail{padding:20px 16px;border-radius:14px}.f-mail .p-plan{padding:20px 12px}.f-mail-heading{gap:17px}.f-contact-readout{gap:20px}.f-mail-foot{font-size:13px}
 dialog{padding:26px 22px;border-radius:14px;width:calc(100vw - 32px);max-height:calc(100dvh - 40px)}dialog h2{font-size:24px}dialog p{font-size:14px}.dialog-close{top:12px;right:12px;width:36px;min-height:36px;height:36px}
}
@media(max-width:370px){#app{padding:0 10px}.panel,.workspace:has(#plan-wrap:not([hidden])) .panel{padding:22px 16px}.request-tools{gap:8px 10px}.request-tools button{font-size:11px}.fiber-option[data-value="015"] small{font-size:12px}.p-unit-choices{grid-template-columns:1fr}.f-row{grid-template-columns:1fr}.f-roles{grid-template-columns:1fr}#contact-form .f-roles label{font-size:14px}}
@media(prefers-reduced-motion:reduce){button{transition:none}html{scroll-behavior:auto}}
/* Explicit visibility wins over component display rules. */
[hidden]{display:none!important}
#contact-form .f-roles label:has(input:checked){background:var(--ink);border-color:var(--ink);color:#fff}
.f-project .p-drawing,.f-mail .p-drawing{max-height:740px;width:100%;min-height:0}
@media(max-width:760px){#plan-wrap .p-drawing,.f-project .p-drawing,.f-mail .p-drawing{max-height:none}}

.keyboard-help{margin-top:14px;color:var(--muted);font-size:13px;line-height:1.6}
.keyboard-help summary{cursor:pointer;padding:10px 0;min-height:44px;font-weight:600;color:var(--accent)}
.keyboard-help p{padding-bottom:10px}

@media(max-width:760px){.header .brand{transform:none}}

/* Keep product photos prominent without squeezing text on narrow phones. */
@media(max-width:370px){.lamp-list .lamp-choice{grid-template-columns:clamp(88px,38%,124px) minmax(0,1fr);gap:10px}}

/* Larger housings get more room; the compact 3 W / 4 W remain visibly smaller. */
.lamp-list .lamp-choice:is([data-family="white9"],[data-family="rgbw12"]){grid-template-columns:clamp(96px,44%,148px) minmax(0,1fr)}
.lamp-list .lamp-choice:is([data-family="white3"],[data-family="rgbw4"]) img{width:86%;justify-self:center}

/* Controls must be recognisable, including square photos with a slim remote. */
.control-detail:has(img){display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:24px;align-items:center}
.control-detail img{width:100%;height:220px;object-fit:contain;flex:none}
.control-detail p{min-width:0;font-size:16px;line-height:1.6}
.control-detail:not(:has(img)){min-height:0}
.strip-product img.control-photo,.f-products img.f-remote{width:140px;height:180px;object-fit:contain;flex:none;margin:0}
@media(max-width:480px){
 .control-detail:has(img){grid-template-columns:1fr;gap:12px;text-align:center}
 .control-detail img{width:min(100%,200px);height:220px;justify-self:center}
 .control-detail p{font-size:15px}
 .strip-product:has(.control-photo){display:grid;grid-template-columns:1fr;gap:12px;text-align:center}
 .strip-product img.control-photo,.f-products img.f-remote{width:160px;height:200px;justify-self:center;margin:0 auto 10px}
}

/* Match the product overview and final summary to the enlarged choice cards. */
.strip-product img:not(.control-photo),.f-products img:not(.f-remote){width:140px;height:160px;object-fit:contain;flex:none;margin:0}
.strip-product>div,.f-products article>div{min-width:0}
.strip-product h3,.f-products h3{font-size:17px;line-height:1.4}
.strip-product p,.f-products p{font-size:14px;line-height:1.6}
.strip-product .label,.f-products .f-eyebrow{font-size:11px}
.chip[data-key="control"]{font-size:16px;font-weight:600;min-height:52px;padding:12px 16px}
@media(max-width:480px){
 .strip-product{display:grid;grid-template-columns:1fr;gap:12px;text-align:center}
 .strip-product img:not(.control-photo),.f-products img:not(.f-remote){width:160px;height:170px;justify-self:center;margin:0 auto 10px}
 .f-products article{text-align:center}
}
