@import url('./app-studio-save.css');
@import url('./app-lighting-render.css');
.ucl-manual-lighting{min-width:0;color:#e7eef1;--ml-border:#334048;--ml-muted:#98a9b6;--ml-accent:#009f78;--ml-panel:#171d20;--ml-input:#242e38;font:13px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
.ucl-manual-lighting [hidden]{display:none!important}
.ucl-manual-lighting *{box-sizing:border-box}
.ucl-manual-lighting .ml-studio{height:var(--ml-studio-height,calc(100dvh - 218px));min-height:520px;display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;border:1px solid #2b383d;border-radius:12px;background:#0a0e10;isolation:isolate}
.ucl-manual-lighting .ml-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--ml-panel);padding:0;overflow:hidden;border-right:1px solid var(--ml-border)}
.ucl-manual-lighting .ml-sidebar-scroll{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1;overflow:auto;padding:8px;scrollbar-width:thin}
.ucl-manual-lighting output{display:inline;padding:0;font:inherit}
.ucl-manual-lighting .ml-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:2px}
.ucl-manual-lighting .ml-brand strong{font-size:14px;color:#4fe3b5;letter-spacing:.03em;white-space:nowrap}
.ucl-manual-lighting .ml-brand strong span{font-size:10px;color:var(--ml-muted);font-weight:500;letter-spacing:0}
.ucl-manual-lighting button,.ucl-manual-lighting select,.ucl-manual-lighting input[type=text]{font:inherit;font-size:11px;border:1px solid var(--ml-border);border-radius:6px;background:var(--ml-input);color:#f1f6f7;min-height:28px;box-shadow:none}
.ucl-manual-lighting button{padding:4px 6px;cursor:pointer;line-height:1.25;touch-action:manipulation;font-weight:600}
.ucl-manual-lighting button:hover:not(:disabled){background:#334450;border-color:#689d92}
.ucl-manual-lighting button:disabled,.ucl-manual-lighting input:disabled,.ucl-manual-lighting select:disabled{opacity:.45;cursor:not-allowed}
.ucl-manual-lighting button:focus-visible,.ucl-manual-lighting select:focus-visible,.ucl-manual-lighting input:focus-visible,.ucl-manual-lighting summary:focus-visible{outline:2px solid #67e5c1;outline-offset:2px}
.ucl-manual-lighting select,.ucl-manual-lighting input[type=text]{width:100%;min-width:0;padding:3px 6px}
.ucl-manual-lighting select{height:26px;min-height:26px}
.ucl-manual-lighting input[type=range]{width:100%;min-width:0;margin:0;height:18px;min-height:18px;padding:0;accent-color:#34d3ab;cursor:pointer}
.ucl-manual-lighting label{display:grid;gap:2px;font-size:10px;line-height:1.3;color:#e1eaf0}
.ucl-manual-lighting .ml-eyebrow{color:#9cb4c2;text-transform:uppercase;letter-spacing:.1em;font-size:9px;margin:0 0 4px;line-height:1.3;font-weight:500}
.ucl-manual-lighting .ml-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ucl-manual-lighting .ml-photo-hint{margin:3px 0 0;color:var(--ml-muted);font-size:10px}
.ucl-manual-lighting .ml-tools{display:grid;gap:5px}
.ucl-manual-lighting .ml-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:2px;border:1px solid var(--ml-border);background:#10171e;border-radius:7px}
.ucl-manual-lighting .ml-tabs button{padding:4px 2px;min-height:26px;border-color:transparent;background:transparent;font-weight:500;font-size:11px}
.ucl-manual-lighting button[aria-pressed=true]{border-color:#23c49e;background:#144a3f;color:#ecfff9}
.ucl-manual-lighting .ml-tabs button[aria-pressed=true],.ucl-manual-lighting .ml-primary{background:var(--ml-accent);border-color:#1bb68d;color:#fff}
.ucl-manual-lighting .ml-primary:hover:not(:disabled){background:#008564;border-color:#32d8ad;color:#fff}
.ucl-manual-lighting .ml-wide{width:100%}
.ucl-manual-lighting .ml-draw-actions{display:grid;grid-template-columns:1fr 1fr 26px;gap:4px}
.ucl-manual-lighting .ml-draw-actions button{padding-inline:4px;font-size:10px}
.ucl-manual-lighting .ml-help{font-size:9px;margin:0;color:var(--ml-muted);line-height:1.3;min-height:0}
.ucl-manual-lighting .ml-selection{padding:6px;border:1px solid #19b990;border-radius:8px;background:#132922;display:grid;gap:4px}
.ucl-manual-lighting .ml-selection-title{display:flex;gap:5px;align-items:center;margin-bottom:2px}
.ucl-manual-lighting .ml-selection-title input{font-size:11px;font-weight:600;min-height:22px;height:22px;padding:1px 5px;border-color:#376653;background:#e2efe9;color:#15251f}
.ucl-manual-lighting .ml-selection-title span{font-size:9px;color:var(--ml-muted);flex-shrink:0}
.ucl-manual-lighting .ml-selection .ml-eyebrow{margin:0}
.ucl-manual-lighting .ml-patterns{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.ucl-manual-lighting .ml-patterns button{min-height:23px;font-size:9px;padding:3px}
.ucl-manual-lighting .ml-more-patterns{font-size:9px;color:var(--ml-muted)}
.ucl-manual-lighting .ml-more-patterns summary{cursor:pointer;line-height:1.6}
.ucl-manual-lighting .ml-more-patterns label{margin-top:4px}
.ucl-manual-lighting .ml-more-patterns select{font-size:10px;height:30px;min-height:30px}
.ucl-manual-lighting .ml-color-editor{padding-bottom:4px;border-bottom:1px solid #36534a}
.ucl-manual-lighting .ml-setting-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px;line-height:1.3}
.ucl-manual-lighting .ml-setting-heading small{font-size:8px;color:var(--ml-muted)}
.ucl-manual-lighting .ml-stepper{display:flex;align-items:center;gap:5px}
.ucl-manual-lighting .ml-stepper button{min-height:20px;width:20px;padding:0;font-size:13px}
.ucl-manual-lighting .ml-color-chips{display:flex;gap:4px;margin-top:3px;flex-wrap:wrap}
.ucl-manual-lighting .ml-color-chips input{width:20px;height:20px;padding:0;border:0;border-radius:5px;cursor:pointer;background:transparent;min-height:0}
.ucl-manual-lighting .ml-color-chips input::-webkit-color-swatch-wrapper{padding:0}
.ucl-manual-lighting .ml-color-chips input::-webkit-color-swatch{border:1px solid #b6c6bd;border-radius:5px}
.ucl-manual-lighting .ml-slider{display:grid;gap:0;font-size:10px;min-width:0}
.ucl-manual-lighting .ml-slider>span{display:flex;align-items:center;gap:6px;min-height:15px}
.ucl-manual-lighting .ml-slider output{color:var(--ml-muted);margin-left:auto;font-variant-numeric:tabular-nums}
.ucl-manual-lighting .ml-slider span button{min-height:17px;padding:1px 7px;margin-left:auto;font-size:9px;font-weight:400;line-height:1.2;background:transparent;color:#adc6d4}
.ucl-manual-lighting .ml-slider span button+output{margin-left:0;min-width:28px;text-align:right}
.ucl-manual-lighting .ml-selection-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #36534a;padding-top:4px;gap:6px}
.ucl-manual-lighting .ml-check{display:flex;align-items:center;gap:6px;font-size:10px}
.ucl-manual-lighting .ml-check input{margin:0;accent-color:#00b588;width:14px;height:14px;min-height:0}
.ucl-manual-lighting .ml-delete{min-height:22px;padding:2px 7px;font-size:10px;color:#ff8a85;background:transparent;border-color:#b94943}
.ucl-manual-lighting .ml-object-section{padding-top:4px}
.ucl-manual-lighting .ml-object-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-content:start}
.ucl-manual-lighting .ml-object-row{min-width:0;display:flex;gap:0;border:1px solid #34444c;border-radius:5px;overflow:hidden}
.ucl-manual-lighting .ml-object-row button{border:0;min-height:24px;font-size:10px;background:transparent;border-radius:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ucl-manual-lighting .ml-object-row button:first-child{width:22px;flex-shrink:0;text-align:center;padding:2px;color:#34d9af}
.ucl-manual-lighting .ml-object-row button:last-child{flex:1;min-width:0;padding-left:2px}
.ucl-manual-lighting .ml-object-row.is-selected{border-color:#00b58c;background:#14352b}
.ucl-manual-lighting .ml-no-objects{grid-column:1/-1;font-size:10px;color:var(--ml-muted);margin:0}
.ucl-manual-lighting .ml-defaults{border-top:1px solid #2c383d;padding-top:5px;font-size:10px;color:var(--ml-muted)}
.ucl-manual-lighting .ml-defaults summary{cursor:pointer;line-height:1.7;color:#b8c8d0}
.ucl-manual-lighting .ml-defaults label{margin-top:9px}
.ucl-manual-lighting .ml-defaults p{font-size:10px;line-height:1.6;margin:9px 0 0}
.ucl-manual-lighting .ml-sidebar-footer{flex:none;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--ml-border);background:var(--ml-panel)}
.ucl-manual-lighting .ml-status{font-size:10px;line-height:1.3;color:#92eacb;margin:0 0 5px;overflow-wrap:anywhere}
.ucl-manual-lighting .ml-status:empty{display:none}
.ucl-manual-lighting .ml-canvas-area{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:#090d10}
.ucl-manual-lighting .ml-canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:6px 10px;border-bottom:1px solid #202c31;font-size:10px;color:var(--ml-muted)}
.ucl-manual-lighting .ml-canvas-toolbar button{min-height:25px;font-size:10px;padding:4px 8px;background:transparent}
.ucl-manual-lighting .ml-viewport{min-width:0;min-height:0;flex:1;overflow:scroll;position:relative;display:flex;scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:none;overflow-anchor:none;scroll-behavior:auto;background:#080c0e}
.ucl-manual-lighting .ml-stage{position:relative;flex:none;width:100%;height:fit-content;line-height:0;align-self:flex-start;margin:auto;isolation:isolate}
.ucl-manual-lighting .ml-stage svg{display:block;width:100%;height:auto;touch-action:none;outline-offset:-3px;max-width:none}
.ucl-manual-lighting .ml-stage svg:focus-visible{outline:2px solid #62e9c4}
.ucl-manual-lighting .ml-placing svg{cursor:crosshair}
.ucl-manual-lighting .ml-hit{cursor:move;pointer-events:all}
.ucl-manual-lighting .ml-handle{cursor:grab;pointer-events:all}
.ucl-manual-lighting .ml-panning{cursor:grabbing!important}
.ucl-manual-lighting .ml-pan-mode svg,.ucl-manual-lighting .ml-pan-mode .ml-hit,.ucl-manual-lighting .ml-pan-mode .ml-handle{cursor:grab}
.ucl-manual-lighting .ml-view-actions{display:flex;gap:6px;flex-shrink:0}
.ucl-manual-lighting .ml-before{position:absolute;left:12px;top:12px;font-size:11px;line-height:1.5;background:#091512c9;color:#fff;padding:3px 8px;border-radius:4px;pointer-events:none}
.ucl-manual-lighting .ml-canvas-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 10px;background:#101719;border-top:1px solid #2c393e;flex-shrink:0}
.ucl-manual-lighting .ml-canvas-bottom>label{border:1px solid #344046;border-radius:7px;padding:5px 8px;background:#192023;font-size:11px}
.ucl-manual-lighting .ml-canvas-bottom{grid-template-columns:minmax(85px,1fr) minmax(235px,2fr)}
.ucl-manual-lighting .ml-zoom-control{border:1px solid #344046;border-radius:7px;padding:5px 8px;background:#192023;font-size:11px}
.ucl-manual-lighting .ml-zoom-buttons{display:flex;align-items:center;gap:4px;min-width:0}
.ucl-manual-lighting .ml-zoom-control{display:flex;align-items:center}
.ucl-manual-lighting .ml-zoom-buttons{flex:1}
.ucl-manual-lighting .ml-zoom-buttons output{min-width:46px;text-align:center;font-variant-numeric:tabular-nums;color:#e1eaf0;font-size:11px}
.ucl-manual-lighting .ml-zoom-buttons [data-ml=fit]{margin-left:auto}
.ucl-manual-lighting .ml-zoom-buttons button{flex:none;white-space:nowrap;min-height:28px}
.ucl-manual-lighting .ml-zoom-buttons [data-ml=zoom-in],.ucl-manual-lighting .ml-zoom-buttons [data-ml=zoom-out]{min-width:28px;font-size:17px;padding:1px 5px}
.ucl-manual-lighting .ml-compare-range{display:flex;align-items:center;gap:12px;padding:4px 12px;background:#14231f;font-size:10px;flex-shrink:0}
.ucl-manual-lighting .ml-compare-range input{flex:1}
.ucl-manual-lighting .ml-empty{margin:auto;text-align:center;padding:32px;max-width:440px;color:#c9d9df}
.ucl-manual-lighting .ml-empty-icon{font-size:30px;width:58px;height:58px;display:grid;place-items:center;border:1px dashed #38806a;border-radius:16px;background:#14251f;color:#5ee2b9;margin:0 auto 16px;line-height:1}
.ucl-manual-lighting .ml-empty h2{font-size:19px;color:#f5f8f9;margin:0 0 8px;line-height:1.35}
.ucl-manual-lighting .ml-empty p{font-size:12px;line-height:1.7;color:var(--ml-muted);margin:0 0 20px}
.ucl-manual-lighting .ml-empty button{padding:9px 18px}
.ucl-manual-lighting .ml-warning{padding:10px 12px;background:#493c1c;border-bottom:1px solid #b79f60;flex-shrink:0;font-size:11px;color:#fff0c3}
.ucl-manual-lighting .ml-warning p{margin:0 0 6px}
.ucl-manual-lighting .ml-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;border:0!important}
@media(min-width:701px) and (max-height:760px){.ucl-manual-lighting .ml-studio{min-height:430px}.ucl-manual-lighting .ml-sidebar-scroll{gap:6px}.ucl-manual-lighting .ml-brand{padding-bottom:0}}
@media(max-width:1000px) and (min-width:701px){.ucl-manual-lighting .ml-studio{grid-template-columns:220px minmax(0,1fr)}.ucl-manual-lighting .ml-sidebar-scroll{padding:8px}}
@media(max-width:700px){.ucl-manual-lighting .ml-sidebar-scroll{display:contents}.ucl-manual-lighting .ml-studio{height:auto;min-height:0;display:flex;flex-direction:column;border-radius:9px;overflow:visible}.ucl-manual-lighting .ml-canvas-area{order:0;height:min(66dvh,620px);min-height:320px;border-radius:8px 8px 0 0;position:relative;z-index:2}.ucl-manual-lighting .ml-sidebar{order:1;border:0;border-top:1px solid var(--ml-border);display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:10px;padding:12px;overflow:visible;border-radius:0 0 8px 8px}.ucl-manual-lighting .ml-brand{grid-column:1/-1}.ucl-manual-lighting .ml-tools{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:8px 12px}.ucl-manual-lighting .ml-tabs{grid-column:1/-1}.ucl-manual-lighting .ml-tabs button{min-height:40px;font-size:12px}.ucl-manual-lighting .ml-category{grid-column:1}.ucl-manual-lighting .ml-tools>[data-ml=draw],.ucl-manual-lighting .ml-tools>[data-ml=wreath]{grid-column:2;grid-row:2;min-height:40px}.ucl-manual-lighting .ml-tools>[data-ml=wreath]{grid-column:1/-1}.ucl-manual-lighting .ml-help,.ucl-manual-lighting .ml-draw-actions{grid-column:1/-1}.ucl-manual-lighting .ml-selection{grid-column:1;grid-row:5/span 3}.ucl-manual-lighting .ml-object-section{grid-column:2;grid-row:5}.ucl-manual-lighting .ml-defaults{grid-column:2;grid-row:6}.ucl-manual-lighting .ml-photo-tools{grid-column:1}.ucl-manual-lighting .ml-sidebar-footer{grid-column:2;grid-row:2;margin:0;padding:0;border:0}.ucl-manual-lighting .ml-sidebar-footer>button{min-height:40px;margin-top:16px}.ucl-manual-lighting .ml-status{margin-top:2px}.ucl-manual-lighting .ml-pair button{min-height:40px;font-size:10px}.ucl-manual-lighting .ml-patterns button{min-height:32px}.ucl-manual-lighting .ml-stepper button{min-height:28px;width:28px}.ucl-manual-lighting input[type=range]{min-height:28px}.ucl-manual-lighting .ml-color-chips input{width:26px;height:28px}.ucl-manual-lighting .ml-slider span button{min-height:24px}.ucl-manual-lighting .ml-canvas-bottom{gap:6px;padding:6px}.ucl-manual-lighting .ml-canvas-bottom>label{padding:3px 7px;font-size:10px}.ucl-manual-lighting .ml-canvas-toolbar{padding:6px;font-size:9px}.ucl-manual-lighting .ml-canvas-toolbar button{font-size:9px;min-height:30px}.ucl-manual-lighting .ml-selection-title{flex-wrap:wrap}.ucl-manual-lighting .ml-selection-title span{display:none}.ucl-manual-lighting .ml-object-row button{min-height:36px}.ucl-manual-lighting .ml-draw-actions button{min-height:36px;font-size:11px}.ucl-manual-lighting .ml-draw-actions{grid-template-columns:1fr 1fr 36px}.ucl-manual-lighting .ml-object-list{grid-template-columns:1fr;max-height:250px;overflow:auto}.ucl-manual-lighting .ml-photo-hint{font-size:9px}}
@media(prefers-reduced-motion:reduce){.ucl-manual-lighting *{scroll-behavior:auto!important}}
@media(pointer:coarse){.ucl-manual-lighting .ml-canvas-toolbar button,.ucl-manual-lighting .ml-zoom-buttons button{min-height:38px}.ucl-manual-lighting .ml-zoom-buttons [data-ml=zoom-in],.ucl-manual-lighting .ml-zoom-buttons [data-ml=zoom-out]{min-width:34px}.ucl-manual-lighting .ml-zoom-buttons{gap:3px}}
@media(max-width:400px){.ucl-manual-lighting .ml-canvas-toolbar{flex-wrap:wrap}.ucl-manual-lighting .ml-canvas-toolbar>span{flex:1;min-width:90px}.ucl-manual-lighting .ml-canvas-bottom{grid-template-columns:minmax(64px,1fr) minmax(220px,3fr)}.ucl-manual-lighting .ml-zoom-control{padding:3px 5px}.ucl-manual-lighting .ml-canvas-bottom>label{padding-inline:5px}}

.ucl-manual-lighting .ml-selection-footer{flex-wrap:wrap;gap:6px}
.ucl-manual-lighting .ml-selection-footer [data-ml="duplicate"]{margin-left:auto;min-height:32px;padding:5px 10px}
@media(max-width:700px){.ucl-manual-lighting [data-ml="greenery-field"]{grid-column:1}.ucl-manual-lighting .ml-tools>[data-ml=wreath]{grid-column:2}.ucl-manual-lighting .ml-selection-footer [data-ml="duplicate"]{min-height:40px}.ucl-manual-lighting .ml-selection-footer .ml-delete{min-height:40px}}


/* Named palettes and strand editing keep the existing compact studio layout. */
.ucl-manual-lighting .ml-color-chips{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.ucl-manual-lighting .ml-color-chip{display:flex;align-items:center;gap:6px;min-width:0}
.ucl-manual-lighting .ml-color-swatch{width:18px;height:18px;border:1px solid #a9c3bd;border-radius:4px;flex:none}
.ucl-manual-lighting .ml-color-chip select{width:100%;min-width:0;min-height:30px;padding:3px 5px}
.ucl-manual-lighting .ml-strand-actions{display:grid;gap:5px}
.ucl-manual-lighting .ml-strand-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.ucl-manual-lighting .ml-strand-actions button{min-height:30px}
.ucl-manual-lighting .ml-slider span button[aria-pressed=true]{background:#17a9cf;color:#061e26;border-color:#42d5ee}
@media(pointer:coarse){.ucl-manual-lighting .ml-color-chip select,.ucl-manual-lighting .ml-strand-actions button{min-height:40px}.ucl-manual-lighting .ml-slider span button{min-height:32px;min-width:36px}}
