/* Independent backdrop experiment. Product selectors are intentionally absent:
   only the body background layers and appearance-controller UI change here. */
:root{--bg-porcelain:#f7f8f6;--bg-ivory:#efebe3;--bg-stone:#dfe5e5;--bg-mist:#e5f0f3}
html[data-skin=obsidian]{--bg-porcelain:#091d28;--bg-ivory:#262b29;--bg-stone:#142933;--bg-mist:#14333f}
html[data-background=studio] body:before{background-image:url('./assets/renovation-interior.jpg')!important;background-position:center!important;background-size:cover!important}
html[data-background=sunlit] body:before{background-image:url('./assets/renovation-room.jpg')!important;background-position:center!important;background-size:cover!important}
html[data-background=site] body:before{background-image:url('./assets/renovation-site.jpg')!important;background-position:center!important;background-size:cover!important}
html[data-background=porcelain] body:before{background-color:var(--bg-porcelain)!important}
html[data-background=ivory] body:before{background-color:var(--bg-ivory)!important}
html[data-background=stone] body:before{background-color:var(--bg-stone)!important}
html[data-background=mist] body:before{background-color:var(--bg-mist)!important}
html:is([data-background=porcelain],[data-background=ivory],[data-background=stone],[data-background=mist]) body:before{background-image:none!important;opacity:1!important;filter:none!important}
html:is([data-background=porcelain],[data-background=ivory],[data-background=stone],[data-background=mist]) body:after{background:transparent!important;opacity:0!important}
/* Original kitchen has no override, so existing appearance links retain their look. */
#jg-style-lab .lab-mode-tabs{display:flex;gap:5px;padding:4px;margin:14px 0 10px;background:rgba(75,119,134,.10);border:1px solid var(--lab-panel-line);border-radius:10px}
#jg-style-lab .lab-mode-tabs button{flex:1;border:1px solid transparent;border-radius:7px;background:none;color:var(--lab-panel-ink);padding:10px 9px;min-height:41px;font-size:12px;font-weight:750}
#jg-style-lab .lab-mode-tabs button.active{background:var(--lab-panel-bg);border-color:var(--lab-panel-line);box-shadow:0 2px 7px #09263710;color:#076b79}
#jg-style-lab .lab-bg-lock{margin:12px 0 14px;padding:12px 13px;background:#e5f6f3;border:1px solid #bfded7;border-radius:10px;color:#215d61}
#jg-style-lab .lab-bg-lock strong{display:block;font-size:12px;line-height:1.5}
#jg-style-lab .lab-bg-lock p{font-size:11px;line-height:1.6;margin:4px 0 0}
#jg-style-lab .lab-bg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#jg-style-lab .lab-bg-choice{display:block;position:relative;border:1px solid rgba(20,67,82,.16);border-radius:10px;overflow:hidden;padding:5px;background:rgba(255,255,255,.55);text-align:left;color:var(--lab-panel-ink);min-width:0}
#jg-style-lab .lab-bg-choice:hover{border-color:#188d98;background:rgba(255,255,255,.83)}
#jg-style-lab .lab-bg-choice.active{border-color:#008997;box-shadow:0 0 0 2px #078b9828;background:rgba(255,255,255,.90)}
#jg-style-lab .lab-bg-swatch{display:block;height:64px;width:100%;border:1px solid #45657326;border-radius:6px;background-position:center;background-size:cover;background-repeat:no-repeat}
#jg-style-lab [data-bg-swatch=original]{background-image:url('./assets/atelier-background.jpg')}
#jg-style-lab [data-bg-swatch=porcelain]{background-color:var(--bg-porcelain)}
#jg-style-lab [data-bg-swatch=ivory]{background-color:var(--bg-ivory)}
#jg-style-lab [data-bg-swatch=stone]{background-color:var(--bg-stone)}
#jg-style-lab [data-bg-swatch=mist]{background-color:var(--bg-mist)}
#jg-style-lab [data-bg-swatch=studio]{background-image:url('./assets/renovation-interior.jpg')}
#jg-style-lab [data-bg-swatch=sunlit]{background-image:url('./assets/renovation-room.jpg')}
#jg-style-lab [data-bg-swatch=site]{background-image:url('./assets/renovation-site.jpg')}
#jg-style-lab .lab-bg-copy{display:block;padding:7px 5px 5px}
#jg-style-lab .lab-bg-copy strong{font-size:11px;font-weight:750;display:block;line-height:1.4}
#jg-style-lab .lab-bg-copy small{font-size:10px;color:#688595;display:block;margin-top:3px}
#jg-style-lab .lab-bg-selected{display:none;position:absolute;right:10px;top:10px;background:#006a73;border:1px solid #b4efec;color:white;border-radius:50%;height:22px;width:22px;font-size:13px;line-height:20px;text-align:center;font-weight:800}
#jg-style-lab .lab-bg-choice.active .lab-bg-selected{display:block}
#jg-style-lab .lab-bg-cycle{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;color:#617e8b;font-size:10px}
#jg-style-lab .lab-bg-cycle button{border:1px solid var(--lab-panel-line);border-radius:7px;background:var(--lab-panel-bg);color:var(--lab-panel-ink);min-height:38px;padding:8px 13px;font-size:11px;font-weight:700}
#jg-style-lab .lab-bg-shortcut{width:100%;display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;text-align:left;border:1px solid var(--lab-panel-line);background:var(--lab-panel-bg);color:var(--lab-panel-ink);padding:12px;border-radius:9px;margin-top:13px;font-size:11px;min-height:44px}
#jg-style-lab .lab-bg-shortcut>span:last-child{color:#0d8490;font-weight:700}
#jg-style-lab .lab-segment button:disabled{opacity:.5;cursor:default}
html[data-lab-panel=backgrounds] #jg-style-lab .lab-panel{width:min(422px,calc(100vw - 24px));max-height:min(820px,calc(100dvh - 40px))}
/* An unobtrusive footer control keeps the whole page visible while cycling. */
.rr-footer>div{flex-wrap:wrap;justify-content:flex-end}
.rr-background-controls{display:inline-flex;align-items:center;gap:2px;border-radius:7px;border:1px solid #a7c5c647;background:#ffffff35}
.rr-footer .rr-background-controls button{margin:0;border-radius:5px}
.rr-footer .rr-background-controls button[data-background-step]{width:30px;padding:2px 8px;font-size:19px;line-height:1}
.rr-footer .rr-background-controls button[data-background-picker]{font-weight:650}
html[data-skin=obsidian] #jg-style-lab .lab-mode-tabs button.active{background:#143c4a;color:#c8f1f2;border-color:#43808b}
html[data-skin=obsidian] #jg-style-lab .lab-bg-lock{background:#0c3a42;color:#c6eff1;border-color:#397079}
html[data-skin=obsidian] #jg-style-lab .lab-bg-choice{background:#0d2b37;color:#e7f7fb;border-color:#326073}
html[data-skin=obsidian] #jg-style-lab .lab-bg-choice.active{background:#15424d;border-color:#68d4d2}
html[data-skin=obsidian] #jg-style-lab .lab-bg-copy small{color:#acd0da}
html[data-skin=obsidian] .rr-background-controls{background:#10303e85;border-color:#3e718369}
@media(max-width:760px){html[data-lab-panel=backgrounds] #jg-style-lab .lab-panel{max-height:calc(100dvh - 102px);width:min(422px,calc(100vw - 20px))}.rr-footer>div{justify-content:center}.rr-footer .rr-background-controls button[data-background-step]{min-height:38px;width:35px}.rr-footer .rr-background-controls button[data-background-picker]{min-height:38px}#jg-style-lab .lab-bg-grid{gap:8px}#jg-style-lab .lab-bg-copy strong{font-size:11px}#jg-style-lab .lab-bg-swatch{height:58px}}
@media print{.rr-background-controls{display:none!important}}
