.cb-decor-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}.studio-decor-options{margin-top:16px;padding-top:12px;border-top:1px solid #cfad6c}.studio-decor-options h3{font:700 19px Georgia,serif;color:#fff0c5;margin:12px 0 8px}.studio-decor-hint,.studio-decor-status{font-size:12px;line-height:1.4;color:#fff0d7}.studio-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.studio-decor-options button,.studio-decor-options select{font:700 13px system-ui;min-height:44px;border:2px solid #d4ac61;border-radius:10px;background:#fff0cb;color:#274631;padding:7px;cursor:pointer}.studio-decor-options button:disabled{opacity:.45}.studio-decor-options button:focus-visible,.studio-decor-options select:focus-visible{outline:3px solid white;outline-offset:2px}.studio-stickers button{display:grid;justify-items:center;gap:4px}.studio-stickers button>span{display:block;width:60px;height:60px;background-image:url('/assets/img/coloring-studio/christmas-stickers.webp');background-size:300% 200%;background-repeat:no-repeat}.studio-stickers small{font-size:11px;line-height:1.2}.studio-sticker-size{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;font-size:13px;color:#fff0c5}.studio-frames{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-frames [aria-pressed=true]{background:#9d3541;color:#fff4d8;box-shadow:0 0 0 2px #ffe1a0}.cb-menu--tools{overflow-y:auto!important;max-height:min(78dvh,680px)!important}.cb-menu--tools .cb-menu-head{position:sticky;top:0;z-index:5;background:#214634;padding-bottom:9px}.studio-remove-sticker{width:100%}@media(max-width:700px){.cb-menu--tools{max-height:95%!important}.studio-stickers button>span{width:50px;height:50px}.studio-decor-options h3{font-size:18px}}

.studio-library,.studio-story{max-width:96vw}.studio-library .library-head>div{min-width:0}.studio-library .library-picture strong{overflow-wrap:anywhere}.studio-library .library-controls select{width:100%;min-width:0}@media(max-width:360px){.studio-library-elf{width:56px}.studio-library .library-head{gap:6px}.studio-library .library-head h2{font-size:20px}.studio-library .library-head [data-close]{flex:none;width:44px;padding:4px}.studio-library .library-eyebrow{font-size:9px;letter-spacing:.08em}}

.cb-menu--save{max-height:95%!important}.cb-menu--save .cb-menu-head{position:sticky;top:0;z-index:5;background:#214634;padding-bottom:9px}

.cb-menu--tools{max-height:95%!important}

/* Selection furniture never enters saved artwork or exports. */
.studio-selection{position:absolute;pointer-events:none;z-index:8;border:2px dashed #14674c;outline:2px solid #fff;box-sizing:border-box;border-radius:8px;background:transparent!important}
.studio-selection[hidden],.studio-decor-edit[hidden]{display:none!important}
.studio-decor-edit{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);z-index:12;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:max-content;max-width:calc(100% - 12px);padding:8px;border:3px solid #a45c2d;border-radius:14px;background:#fff3d5;box-shadow:0 4px 12px #0004;color:#432512}
.studio-decor-edit .studio-decor-name{flex-basis:100%;text-align:center;font:800 13px/1.2 system-ui}
.studio-decor-edit button{min-height:44px;padding:8px 12px;border:2px solid #754023;border-radius:9px;background:var(--studio-cookie);color:#36200f;font:800 13px system-ui}
.studio-decor-edit button:disabled{opacity:.5}.studio-decor-edit button:focus-visible{outline:3px solid #17543b;outline-offset:2px}
.cb-workshop .cb-tool-block[aria-pressed=true]{outline:3px solid #fff0b5;outline-offset:2px}
.cb-workshop .studio-color-materials{padding-top:8px}
.cb-workshop #cbPanel{overflow-y:auto;max-height:95%}
.studio-stickers [data-sticker="6"]>span,.studio-stickers [data-sticker="7"]>span,.studio-stickers [data-sticker="8"]>span{background-position:center}
.cb-workshop .studio-decor-options{margin-top:0;padding-top:6px;border-top:0}
@media(max-width:700px){.cb-workshop .cb-tool-block{width:70px}.studio-decor-edit{bottom:52px;gap:5px;padding:6px}.studio-decor-edit button{padding:7px;font-size:12px}.studio-decor-edit .studio-decor-name{font-size:12px}}

/* Reserve a row for selected-object controls so neither art nor navigation is blocked. */
.studio-decor-edit{grid-area:edit;position:static;transform:none;width:100%;max-width:none;padding:5px 8px;gap:4px;box-shadow:none}
.cb-workshop[data-decor-selected=true]{grid-template-rows:48px minmax(0,1fr) auto 28px;grid-template-areas:'head head' 'sidebar stage' 'edit edit' 'status status'}
@media(max-width:700px){.cb-workshop[data-decor-selected=true]{grid-template-rows:44px minmax(0,1fr) auto 50px 54px auto;grid-template-areas:'head' 'stage' 'edit' 'palette' 'tools' 'status'}}
@media(orientation:landscape) and (max-height:560px){.cb-workshop[data-decor-selected=true]{grid-template-rows:44px minmax(0,1fr) auto 20px;grid-template-areas:'head head head' 'palette stage tools' 'edit edit edit' 'status status status'}}

@media(min-width:701px){.studio-decor-edit .studio-decor-name{flex-basis:auto;align-self:center;margin-right:10px}.studio-decor-edit{min-height:56px}}
@media(max-width:700px){.studio-decor-edit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.studio-decor-edit .studio-decor-name{grid-column:1/-1}.studio-decor-edit button{min-width:0;padding:6px 3px;white-space:normal}}
