/* Reference layout: upload above the photo, tools below, demo in its own panel. */
body{background:radial-gradient(ellipse at 60% 0,#102b3a 0,#06141d 55%,#031019 100%);color:#f4f8fc}
body .site-header{position:relative;height:72px;flex:0 0 72px;padding:0 28px;border-bottom:1px solid #35617a;background:linear-gradient(100deg,#061721,#0a202c 55%,#03111a)}
body .site-header h1{position:absolute;left:50%;transform:translateX(-50%);font-size:clamp(25px,3vw,44px);letter-spacing:.035em;white-space:nowrap}
body .brand-symbol img,body .brand-wordmark img{mix-blend-mode:screen}
body .workspace{padding:14px 28px 18px;gap:20px}
body.controls-open .workspace{grid-template-columns:minmax(0,1fr) clamp(300px,26vw,400px)}
body .visualizer{gap:10px}
body .viewer-toolbar{min-height:48px;border-bottom:1px solid #234a5d;border-radius:12px;background:linear-gradient(110deg,#0b2634,#06151d);padding:2px 8px 2px 0;flex:0 0 auto}
body .viewer-toolbar>.segmented{border:0;background:transparent;padding:2px;gap:2px}
body .viewer-toolbar .segmented button{min-height:42px;padding:6px 25px;border:1px solid transparent;border-radius:11px;font-size:17px;color:#f1f7fc}
body .viewer-toolbar .segmented button.active{border-color:#5a9dc2;background:linear-gradient(125deg,#326382,#214a68);box-shadow:inset 0 0 14px #73c7ff15}
body .viewer-tip{color:#f0f5fa;font-size:16px}
.upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;flex:0 0 auto;align-items:stretch;min-width:0}
body .garage-upload-banner{position:static;grid-column:1;grid-row:1;display:flex;align-items:center;gap:16px;width:100%;max-width:none;min-height:52px;aspect-ratio:auto;padding:7px 18px;border:1px solid #31d3ff;border-radius:13px;overflow:visible;background:linear-gradient(180deg,#0c2633,#020e15);text-align:left;color:#fff;animation:ecc-upload-glow 2.8s ease-in-out infinite;box-shadow:inset 0 0 14px #33c4f818}
.garage-upload-icon{width:42px;height:34px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.garage-upload-icon .upload-sparkle{stroke:#f8d24b;stroke-width:3}
.garage-upload-divider{height:29px;width:1px;background:#7a9ba9;flex:0 0 auto}
.garage-upload-title{font-size:clamp(16px,1.35vw,21px);font-weight:700;line-height:1.2;white-space:nowrap}
.garage-upload-subtitle{margin-left:auto;font-size:clamp(13px,1.15vw,17px);line-height:1.25;white-space:nowrap}
.upload-row #saveButton{min-width:108px;min-height:52px;border-radius:12px;padding:8px 16px;gap:9px;background:linear-gradient(120deg,#b6edff,#99d6f0);color:#06131b;border:1px solid #cbf2ff;font-size:18px;font-weight:650}
.upload-row #saveButton:disabled{background:#466073;border-color:#536f81;color:#102331;opacity:.7}
body .stage-frame{border-radius:18px;border-color:#315468;background:#031018}
body .stage{border-radius:14px}
body .scene-badge{background:#0a2634ed;border:1px solid #3c6577;color:#f1f8fc;font-size:16px;gap:10px}
body .preview-badge{font-size:19px;border-radius:12px;padding:7px 13px;background:#f7fafc;color:#03090d}
body:not(.is-editing):not(.preview-expanded) .primary-tools{display:flex;flex:0 0 auto;justify-content:space-between;gap:5px;padding:4px 6px;border:1px solid #28566e;border-radius:14px;background:linear-gradient(110deg,#0b2633,#04131c)}
body:not(.is-editing):not(.preview-expanded) .primary-tools>button{flex:1;min-width:0;min-height:46px;flex-direction:row;padding:5px 8px;gap:10px;font-size:16px;line-height:1.2;color:#f1f5fa;border-radius:11px}
body .primary-tools>button.active{background:linear-gradient(120deg,#32627f,#214967);border-color:#4d91b5;box-shadow:inset 0 0 10px #7bcaff22}
body .primary-tools>button:hover{background-color:#18384b}
body .primary-tools .icon{width:25px;height:25px;flex:0 0 auto}
body .uploaded-photo-tools{display:flex;flex:0 0 auto;flex-direction:row;justify-content:center;gap:18px}
body .uploaded-photo-tools[hidden]{display:none!important}
body .uploaded-photo-tools .button{background:#14384c;border-color:#5c9fbe}
body .uploaded-photo-tools .default-garage-button{color:#c7e7f8;padding-inline:8px}
.cleanup-preview-row{display:flex;align-items:center;gap:26px;flex:0 0 auto;min-width:0;min-height:104px;padding:10px 18px;border:1px solid #2e6078;border-radius:16px;background:linear-gradient(110deg,#0b2634,#06151f);box-sizing:border-box}
body .cleanup-demo{display:flex;align-items:center;justify-content:flex-start;flex:1 1 60%;min-width:0;gap:22px;margin:0}
body .cleanup-demo video{width:clamp(164px,16vw,240px);height:auto;max-width:52%;border:1px solid #507184;border-radius:8px;flex:0 0 auto}
body .cleanup-demo figcaption{font-size:16px;line-height:1.25;color:#f3f8fc;max-width:170px;gap:0}
body .cleanup-demo .text-button{min-height:36px;font-size:15px;color:#f2f6fa;line-height:1.2}
body .cleanup-preview-row .preview-note{flex:1 1 40%;min-width:0;margin:0;padding-left:26px;border-left:1px solid #9bb7c5;color:#e5eef5;text-align:left;font-size:15px;line-height:1.4}
body .viewer-footer{display:none!important}
body .finish-panel{padding:14px;gap:12px;background:linear-gradient(130deg,#0b2533,#061720);border:1px solid #31596e;border-radius:16px;box-shadow:inset 0 0 18px #082c3b66}
body .finish-type-picker{padding:0;border:1px solid #28556d;border-radius:12px;background:#061924}
body .finish-type-picker button{min-height:45px;font-size:16px;color:#f5f8fc;border:1px solid transparent;border-radius:11px}
body .finish-type-picker button.active{background:linear-gradient(125deg,#326584,#193e59);border-color:#518bab;box-shadow:inset 0 0 14px #84d0ff22}
body .filters{gap:10px}
body .filters button{background:#071c28;color:#f5f8fc;border-color:#285c75;border-radius:10px;min-height:38px;font-size:15px}
body .filters button.active{background:linear-gradient(135deg,#c3efff,#a3d6ed);color:#03131c;border-color:#bae9fc}
body .blend-grid{gap:10px}
body .blend-card .blend-name{font-size:15px;color:#f2f7fb;line-height:21px}
body .blend-card[aria-pressed=true] .blend-art{border-color:#38d9ff;box-shadow:0 0 0 2px #38d9ff}
body .finish-summary{border-color:#315a70;padding-top:14px}
body .selected-swatch{width:44px;height:44px;border-radius:8px}
body .selected-finish strong{font-size:18px}
body .selected-finish .flake-size{font-size:14px;color:#e0edf6}
.visualizer-footnote{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:0 0 auto;min-height:50px;padding:8px 28px;border-top:1px solid #36677f;background:#04131c;box-sizing:border-box;color:#e6eff6;font:12px/1.4 system-ui,sans-serif}
.visualizer-footnote p{margin:0;flex:1;min-width:0}
.visualizer-footnote span{font-size:18px;margin-right:5px;vertical-align:-1px}
.visualizer-footnote .text-button{max-width:35%;min-height:36px;padding:0 0 0 24px;border-left:1px solid #7194a7;border-radius:0;text-align:left;white-space:normal;font:inherit;color:inherit}
body.is-editing .upload-row,body.is-editing .cleanup-preview-row,body.is-editing .visualizer-footnote{display:none!important}
body.preview-expanded .upload-row,body.preview-expanded .uploaded-photo-tools,body.preview-expanded .cleanup-preview-row,body.preview-expanded .visualizer-footnote{display:none!important}
@media(min-width:1100px){body.colours-active #closeControls{display:none}}
@media(max-width:1199px){
 body .site-header{padding-inline:18px}
 body .workspace{padding:10px 16px 12px;gap:12px}
 body .garage-upload-banner{gap:10px;padding-inline:12px}
 .garage-upload-title{font-size:16px}
 .garage-upload-subtitle{font-size:12px}
 .garage-upload-icon{width:32px}
 .upload-row{gap:10px}
 .upload-row #saveButton{min-width:88px;padding-inline:12px;font-size:16px}
 body .cleanup-demo{gap:14px}
 body .cleanup-demo video{width:144px}
 body .cleanup-demo figcaption{font-size:14px}
 body .cleanup-preview-row .preview-note{font-size:13px;padding-left:16px}
 .cleanup-preview-row{gap:16px;padding:8px 12px;min-height:94px}
 body:not(.is-editing):not(.preview-expanded) .primary-tools>button{gap:7px;font-size:14px}
}
@media(min-width:741px) and (max-width:1099px) and (min-height:521px){
 body .garage-upload-banner{display:grid;grid-template-columns:32px minmax(0,1fr);gap:2px 10px}
 .garage-upload-icon{grid-column:1;grid-row:1/3}
 .garage-upload-divider{display:none}
 .garage-upload-title{grid-column:2;white-space:normal}
 .garage-upload-subtitle{grid-column:2;margin:0;white-space:normal}
}
@media(max-width:740px){
 body:not(.is-editing):not(.preview-expanded) .site-header{position:relative;display:flex;height:52px;flex:0 0 52px;min-height:52px;gap:8px;padding:4px 10px;justify-content:space-between}
 body:not(.is-editing):not(.preview-expanded) .site-header h1{position:static;display:block;transform:none;left:auto;margin-left:auto;font-size:clamp(13px,3.8vw,20px);letter-spacing:.025em;white-space:nowrap}
 body .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:6px 8px 8px;gap:7px}
 body.controls-open .workspace,body.controls-open.settings-active .workspace,body.controls-open.curbs-active .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 body .visualizer{gap:7px}
 body .viewer-toolbar{min-height:40px;padding:0;background:#09202d}
 body .viewer-toolbar .segmented button{min-height:38px;padding:5px 7px;font-size:14px}
 .upload-row{gap:7px}
 body .garage-upload-banner{display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 9px;min-height:55px;padding:6px 9px;border-radius:10px}
 .garage-upload-icon{grid-column:1;grid-row:1/3;width:28px;height:28px}
 .garage-upload-divider{display:none}
 .garage-upload-title{grid-column:2;font-size:14px;white-space:normal}
 .garage-upload-subtitle{grid-column:2;margin:0;font-size:11px;white-space:normal}
 .upload-row #saveButton{min-width:54px;min-height:55px;padding:6px;gap:3px;flex-direction:column;border-radius:10px;font-size:12px}
 .upload-row #saveButton .icon{width:19px;height:19px}
 .upload-row #saveButton span{display:inline}
 body .stage-frame{border-radius:12px}
 body .scene-badge{font-size:12px;gap:5px}
 body .preview-badge{font-size:14px;padding:4px 8px;border-radius:8px}
 body:not(.is-editing):not(.preview-expanded) .primary-tools{gap:2px;padding:2px}
 body:not(.is-editing):not(.preview-expanded) .primary-tools>button{flex-direction:column;gap:3px;padding:3px 2px;min-height:48px;font-size:11px}
 body .primary-tools .icon{width:19px;height:19px}
 body .uploaded-photo-tools{gap:8px}
 body .uploaded-photo-tools .button,body .uploaded-photo-tools .default-garage-button{min-height:40px;font-size:12px}
 .cleanup-preview-row{min-height:74px;padding:7px 9px;gap:10px;border-radius:12px}
 body .cleanup-demo{flex:1;gap:10px}
 body .cleanup-demo video{width:110px;max-width:48%}
 body .cleanup-demo figcaption{font-size:13px;max-width:none}
 body .cleanup-demo .text-button{font-size:12px;min-height:32px}
 body .cleanup-preview-row .preview-note{display:none}
 body .finish-panel{padding:9px;gap:7px;border-radius:12px}
 body .finish-type-picker button{font-size:13px;min-height:36px}
 body .filters{gap:6px;margin-bottom:7px}
 body .filters button{min-height:30px;font-size:13px}
 body .blend-card .blend-name{font-size:13px;line-height:18px}
 body .finish-summary{padding-top:7px}
 body .selected-swatch{width:28px;height:28px}
 body .selected-finish strong{font-size:14px}
 body .selected-finish .flake-size{font-size:11px}
 .visualizer-footnote{display:none}
}
@media(max-height:520px) and (min-width:600px){
 body:not(.is-editing):not(.preview-expanded) .site-header{display:none}
 body .workspace,body.controls-open .workspace{padding:4px 8px;gap:8px}
 body .visualizer{gap:4px}
 body .viewer-toolbar{min-height:34px}
 body .viewer-toolbar .segmented button{min-height:32px;padding:4px 10px;font-size:13px}
 body .viewer-tip{display:none}
 body .garage-upload-banner{display:grid;grid-template-columns:26px minmax(0,1fr);min-height:44px;gap:0 7px;padding:3px 8px}
 .garage-upload-icon{grid-column:1;grid-row:1/3;width:26px;height:26px}
 .garage-upload-divider{display:none}
 .garage-upload-title{grid-column:2;font-size:13px;white-space:normal}
 .garage-upload-subtitle{grid-column:2;font-size:10px;white-space:normal;margin:0}
 .upload-row #saveButton{min-height:44px;min-width:58px;padding:4px 7px;gap:4px;font-size:12px;flex-direction:row}
 .upload-row #saveButton .icon{width:16px;height:16px}
 body:not(.is-editing):not(.preview-expanded) .primary-tools{padding:2px;gap:2px}
 body:not(.is-editing):not(.preview-expanded) .primary-tools>button{min-height:40px;flex-direction:row;font-size:11px;padding:3px;gap:4px}
 body .primary-tools .icon{width:16px;height:16px}
 .cleanup-preview-row{min-height:58px;padding:4px 8px}
 body .cleanup-demo video{width:84px}
 body .cleanup-demo figcaption{display:flex;font-size:12px;gap:0}
 body .cleanup-demo figcaption>span{display:block}
 body .cleanup-demo .text-button{max-width:none;font-size:12px;min-height:28px}
 body .cleanup-preview-row .preview-note{display:none}
 body .uploaded-photo-tools{gap:10px}
 body .uploaded-photo-tools .button,body .uploaded-photo-tools .default-garage-button{min-height:32px;font-size:12px;padding:3px 8px}
 .visualizer-footnote{display:none}
}
@media(prefers-reduced-motion:reduce){body .garage-upload-banner{animation:none}}

/* The small automatic comparison sits immediately below the upload bar. */
body .cleanup-preview-row{min-height:70px;padding:6px 14px;gap:18px}
body .cleanup-demo{gap:16px}
body .cleanup-demo video{width:100px;max-width:35%}
body .cleanup-demo figcaption{font-size:15px;max-width:none}
body .cleanup-preview-row .preview-note{font-size:13px;padding-left:18px}
body .uploaded-photo-tools{flex-wrap:wrap;gap:4px 16px}
.cleanup-inline-note,.cleanup-inline-status{flex:0 0 100%;margin:0;text-align:center;font:12px/1.4 system-ui,sans-serif;color:#b9d6e7}
.cleanup-inline-note[hidden],.cleanup-inline-status[hidden]{display:none!important}
.cleanup-inline-status{padding:4px 8px;font-size:14px;color:#e4f4ff}
.cleanup-inline-status[data-state=success]{color:#bdeccf}
.cleanup-inline-status[data-state=working]::before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid #a8dcff44;border-top-color:#a8dcff;border-radius:50%;animation:cleanup-busy 1s linear infinite;vertical-align:-1px}
@media(max-width:740px){
 body .cleanup-preview-row{min-height:60px;padding:5px 9px;gap:9px}
 body .cleanup-demo{gap:10px}
 body .cleanup-demo video{width:84px}
 body .cleanup-demo figcaption{font-size:13px}
 body .uploaded-photo-tools{gap:3px 8px}
 body .uploaded-photo-tools .text-button{min-height:40px;font-size:12px}
 .cleanup-inline-note{font-size:12px}
 .cleanup-inline-status{font-size:13px}
}
@media(max-height:520px) and (min-width:600px){
 body .cleanup-preview-row{min-height:48px;padding:4px 8px}
 body .cleanup-demo video{width:68px}
 body .cleanup-demo figcaption{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.cleanup-inline-status[data-state=working]::before{animation:none}}

/* Today's photos: default garage plus two customer uploads, beside the stage. */
.photo-workspace{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:9px;flex:1;min-height:0;min-width:0}
.photo-workspace[data-has-photos=false]{grid-template-columns:minmax(0,1fr)}
.photo-shelf{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#486d83 transparent}
.photo-shelf[hidden]{display:none!important}
.photo-shelf-list{display:flex;flex-direction:column;gap:9px}
.photo-shelf-tile{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:0;width:100%;padding:4px;border:1px solid #315b70;border-radius:9px;background:#071a25;color:#e5f2fa;font:12px/1.2 system-ui,sans-serif;text-align:center;cursor:pointer}
.photo-shelf-tile img{display:block;width:100%;height:48px;object-fit:cover;border-radius:5px;background:#06141d}
.photo-shelf-tile small{color:#a7cada;font-size:10px;line-height:1.2}
.photo-shelf-tile[aria-pressed=true]{border-color:#47d7ff;box-shadow:0 0 0 1px #47d7ff;background:#103548}
.photo-shelf-tile:focus-visible{outline:3px solid #bcf0ff;outline-offset:-3px}
.saved-looks-controls{display:flex;align-items:center;gap:8px;min-width:0;margin-left:auto}
.saved-looks-controls[hidden]{display:none!important}
.saved-looks-controls label{font-size:13px;white-space:nowrap;color:#c3deed}
.saved-looks-controls select{min-height:36px;min-width:0;max-width:230px;padding:6px 25px 6px 9px;border:1px solid #487b97;border-radius:8px;background:#0c2736;color:#f1f8fc;font:14px system-ui,sans-serif}
.viewer-toolbar:has(.saved-looks-controls:not([hidden])) .viewer-tip{display:none}
.upload-allowance{display:block;font:400 11px/1.35 system-ui,sans-serif;color:#bcdeee;margin-top:3px;white-space:normal}
body .garage-upload-banner:disabled{cursor:default;opacity:.72;animation:none}
.gallery-save-status{margin:0;color:#bdebcf;font:14px/1.4 system-ui,sans-serif}
body:has(.photo-workspace[data-has-photos=true]) #sampleButton{display:none!important}
body.is-editing .photo-workspace,body.preview-expanded .photo-workspace{grid-template-columns:minmax(0,1fr)}
body.is-editing .photo-shelf,body.preview-expanded .photo-shelf,body.is-editing .saved-looks-controls,body.preview-expanded .saved-looks-controls{display:none!important}
body.preview-expanded .photo-workspace{width:100%;height:100%}
@media(max-width:740px){
 .photo-workspace{grid-template-columns:minmax(0,1fr) 55px;gap:6px}
 .photo-shelf-list{gap:6px}
 .photo-shelf-tile{padding:3px;gap:3px;border-radius:7px;font-size:10px}
 .photo-shelf-tile img{height:32px;border-radius:4px}
 .photo-shelf-tile small{font-size:9px}
 .saved-looks-controls{flex:0 0 98px;gap:0;margin-left:0}
 .saved-looks-controls label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .saved-looks-controls select{width:100%;max-width:100%;min-height:36px;font-size:11px;padding-inline:5px}
 body .viewer-toolbar:has(.saved-looks-controls:not([hidden])){gap:5px}
 body .viewer-toolbar:has(.saved-looks-controls:not([hidden]))>.segmented{width:auto;flex:1;min-width:0}
 body .viewer-toolbar:has(.saved-looks-controls:not([hidden])) .segmented button{font-size:11px;min-width:0;padding-inline:2px}
 .upload-allowance{font-size:10px;line-height:1.3;margin-top:2px}
}
@media(max-height:520px) and (min-width:600px){
 .photo-workspace{grid-template-columns:minmax(0,1fr) 58px;gap:6px}
 .photo-shelf-list{gap:5px}
 .photo-shelf-tile{font-size:10px;padding:3px;gap:2px}
 .photo-shelf-tile img{height:29px}
 .photo-shelf-tile small{display:none}
 .saved-looks-controls label{display:none}
 .saved-looks-controls select{max-width:125px;min-height:32px;font-size:12px}
 .upload-allowance{font-size:9px}
}
@media(max-width:360px){.photo-shelf-tile small{display:none}.photo-shelf-tile img{height:26px}}
