/* V1.6.6: bounded decoration workspace, independent panel scrolling, truthful draft status. */
.bg-tabs166[hidden],.bg-library166[hidden],.decor-form166[hidden]{display:none!important}
.bg-tabs166{margin:0 0 10px;gap:8px}.bg-tabs166 [aria-pressed=true]{background:var(--hero);color:var(--accent);border-color:var(--accent)}
.nav-top165{justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.nav-state166{display:grid;gap:3px;min-width:0;flex:1}.nav-state166 .meta{font-size:12px}.nav-head166{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr) minmax(48px,.65fr) minmax(50px,.65fr) minmax(75px,1fr);gap:12px;padding:10px 16px;background:var(--bg);color:var(--muted);font-weight:600;font-size:12px;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}.nav-head166>span:first-child{padding-left:12px}
.editor-status166{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:0 0 12px}.editor130 .editor-status166 .autosave-status{margin:0;max-width:100%;overflow-wrap:anywhere;font-weight:600;color:var(--muted)}.editor-autosave-help166{font-size:12px!important;line-height:1.5}.editor130 .autosave-status[data-save-state166=saved]{color:#15803d}.editor130 .autosave-status[data-save-state166=error]{color:#b91c1c}.editor130 .autosave-status[data-save-state166=saving],.editor130 .autosave-status[data-save-state166=pending]{color:var(--accent)}
html[data-theme=dark] .editor130 .autosave-status[data-save-state166=saved]{color:#86efac}html[data-theme=dark] .editor130 .autosave-status[data-save-state166=error]{color:#fca5a5}
/* Desktop only. The mobile document uses natural scrolling, with no fixed action overlay. */
@media(min-width:1101px) and (min-height:620px){
 body.decor-viewport166{overflow:hidden}
 body.decor-viewport166 main.wide{box-sizing:border-box;height:calc(100dvh - var(--head166,62px));min-height:0;padding-block:16px;display:flex;flex-direction:column;overflow:hidden}
 body.decor-viewport166 main>.notice{flex:none;margin:0 0 6px;max-height:72px;overflow:auto}
 body.decor-viewport166 .admin-grid{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}
 body.decor-viewport166 .admin-main{display:flex;flex-direction:column;flex:1;width:100%;min-height:0;overflow:hidden}
 body.decor-viewport166 .admin-main>h1{flex:none;margin:0 0 10px}
 body.decor-viewport166 .admin-main> :not(.decor-form166):not(.bg-library166){flex:none}
 body.decor-viewport166 footer{display:none}
 body.decor-viewport166 .decor-form166{flex:1;display:flex;flex-direction:column;min-height:0;margin:0;padding:12px;overflow:visible}
 body.decor-viewport166 .decor-form166>.decor-work165{flex:1;min-height:0;align-items:stretch;grid-template-rows:minmax(0,1fr);gap:12px}
 body.decor-viewport166 .decor-form166 .decor-controls165{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 8px 4px 2px;min-height:0}
 body.decor-viewport166 .decor-form166 .decor-stage165{position:static;min-height:0;display:flex;flex-direction:column}
 body.decor-viewport166 .decor-form166 .live164:not(:fullscreen):not(.preview-full-active165){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;box-sizing:border-box}
 body.decor-viewport166 .decor-form166 .live164 .toolbar,body.decor-viewport166 .decor-form166 .live-status164{flex:none}
 body.decor-viewport166 .decor-form166 .live-scroll164{flex:1;min-height:0;height:auto;max-height:none;overflow:hidden;display:flex;align-items:center;justify-content:center}
 body.decor-viewport166 .decor-form166 .live-frame164{display:block;flex:none;max-width:none;border:0}
 body.decor-viewport166 .decor-form166 .decor-save165{position:static;flex:none;margin:8px 0 0;padding:8px 0 0;box-shadow:none}
 body.decor-viewport166 .bg-library166{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 body.decor-viewport166 .live164:fullscreen .live-scroll164,body.decor-viewport166 .live164.preview-full-active165 .live-scroll164{flex:1;min-height:0;height:auto;max-height:none}
 /* Editor content scrolls above its own action strip. Existing delete form stays accessible below. */
 .editor-shell160{display:flex;flex-direction:column;max-height:calc(100dvh - var(--head166,62px) - 48px);min-height:0;box-sizing:border-box}
 .editor-shell160>.editor-head161{flex:none}.editor-shell160>.editor130{flex:1;min-height:0;display:flex;flex-direction:column}
 .editor130>.editor-status166{flex:none}.editor130>.editor-grid160{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;align-content:start;padding:2px 9px 12px 2px;scroll-padding-block:50px 12px}
 .editor130 .editor-main160 .rich-tools{top:0}.editor130>.editor-actions160{position:static;flex:none;box-shadow:none;margin:8px 0 0;padding:8px 0 0}
 .editor130>.toolbar:last-child:not(.editor-actions160){flex:none;margin:4px 0 0}
}
@media(max-width:1100px),(max-height:619px){.editor130 .editor-actions160{position:static;box-shadow:none}.decor-form166 .decor-save165{position:static}.decor-form166 .decor-stage165{position:static}}
@media(max-width:900px){.nav-head166{grid-template-columns:minmax(90px,1fr) minmax(0,1fr) minmax(45px,.7fr) minmax(55px,.7fr);gap:6px}.nav-head166 .nav-url165{display:none}.editor-status166{display:block}.editor-autosave-help166{display:block;margin-top:4px}.editor130 .editor-actions160{padding-bottom:12px}}
@media(max-width:540px){.nav-head166{grid-template-columns:minmax(0,1fr) auto auto;padding:10px 8px}.nav-head166>span:nth-child(4){display:none}.nav-top165 button{flex:none}.nav-state166{flex-basis:100%}}
@media(prefers-color-scheme:dark){html:not([data-theme]) .editor130 .autosave-status[data-save-state166=saved]{color:#86efac}html:not([data-theme]) .editor130 .autosave-status[data-save-state166=error]{color:#fca5a5}}
/* V1.7.0 storage tables only; existing page styling unchanged. */
.storage-name170{overflow-wrap:anywhere;word-break:break-word}
.storage-table170{overflow-x:auto;max-width:100%}
