/* Precision workspace chrome. The book itself keeps the Decor Gallery theme. */
:root{--studio-paper:#fff;--studio-line:#e5e7eb;--studio-green:#2563eb;--studio-accent:#2563eb}
#editorUI{font:12px/1.5 Inter,Arial,sans-serif;color:#353a44;--studio-focus:#2563eb}
#editorUI .studio-icon{display:block;width:17px;height:17px;min-width:17px;fill:none;stroke:currentColor;flex-shrink:0}
#editorUI button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:7px 10px;border-radius:6px;border:1px solid #e2e5ea;background:#fff;color:#414651;font-size:11px;font-weight:500;transition:background .14s,border-color .14s,box-shadow .14s}
#editorUI button:hover:not(:disabled){background:#f0f3f8;border-color:#cdd3dd;color:#182332}
#editorUI button:disabled{opacity:.3}
#editorUI button:focus-visible,#editorUI input:focus-visible,#editorUI select:focus-visible,#editorUI summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
#editorUI .studio-icon-button{width:32px;min-width:32px;padding:6px;position:relative}
.studio-sr-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#editorUI .studio-primary{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 1px 2px #0002}
#editorUI .studio-primary:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
#editorUI .studio-danger{color:#c53c3c}#editorUI .studio-danger:hover:not(:disabled){color:#b42318;border-color:#ffd1cc;background:#fff0ef}
.studio-bar{height:64px;min-height:64px;padding:0 22px;background:#20242c;border-bottom:1px solid #13161d;gap:12px;box-shadow:0 2px 6px #11182712}
.studio-app-mark{height:34px;width:34px;border-radius:9px;background:#3b66f4;color:#fff;display:grid;place-items:center;flex-shrink:0;box-shadow:inset 0 1px 0 #ffffff40}
#editorUI .studio-app-mark .studio-icon{width:21px;height:21px}
.studio-name{position:relative;flex:1;min-width:0;display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-items:center}
.studio-name b{font-size:14px;color:#f5f7fa;font-weight:600;letter-spacing:-.3px;grid-column:1;grid-row:1}
.studio-name #studioStatus{font-size:10px;color:#aab4c6;letter-spacing:.1px;margin:2px 0 0;grid-column:1;grid-row:2;display:flex;align-items:center;gap:5px}
.studio-name #studioStatus::before{content:'';width:5px;height:5px;border-radius:50%;background:#7ec9a4}
.studio-name .studio-local-badge{grid-column:2;grid-row:1/3;justify-self:start;color:#9da8bb;border:1px solid #424954;background:#2b303a;border-radius:4px;font-size:8px;letter-spacing:1px;padding:4px 6px;margin:0}
.studio-actions{gap:7px}
#editorUI .studio-actions button{height:34px;background:#2e3440;color:#e4e8ef;border-color:#424a58;padding:7px 12px;font-size:11px}
#editorUI .studio-actions .studio-icon-button{padding:7px;width:34px}
#editorUI .studio-actions button:hover:not(:disabled){background:#3c4554;color:#fff;border-color:#5b6577}
#editorUI .studio-actions .studio-primary{background:#3b6cf5;border-color:#5680f6;color:white;margin-left:4px}
#editorUI .studio-actions .studio-primary:hover{background:#4a78fc;border-color:#7499ff}
.autosave-switch{color:#bfc8d7;font-size:10px;gap:7px;margin:0 9px}
.autosave-switch input{appearance:none;width:26px;height:15px;background:#535d6d;border-radius:20px;position:relative;margin:0;cursor:pointer;border:0}
.autosave-switch input:checked{background:#3b6cf5}.autosave-switch input::after{content:'';position:absolute;width:11px;height:11px;top:2px;left:2px;border-radius:50%;background:white;box-shadow:0 1px 2px #0003;transition:transform .15s}.autosave-switch input:checked::after{transform:translateX(11px)}
.studio-tools{inset:64px 0 auto;height:54px;min-height:54px;padding:0 20px;background:#fff;border-bottom:1px solid #dfe3e9;gap:14px;overflow:visible;z-index:1000}
.studio-tool-group{display:flex;align-items:center;gap:3px;border-right:1px solid #e2e5eb;padding-right:14px;height:30px;flex-shrink:0}
#editorUI .studio-tools button{font-size:11px;padding:7px 10px;border-color:transparent;background:transparent;height:32px}
#editorUI .studio-tools .studio-icon-button{padding:6px;width:32px;min-width:32px}
#editorUI .studio-tools button:hover:not(:disabled){background:#eef2f8;border-color:#e2e7ef}
#editorUI .studio-tools [data-action=parent]{margin-right:7px}
.studio-workspace-label{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;color:#8b93a2;white-space:nowrap}
#editorUI .studio-workspace-label .studio-icon{width:14px;height:14px;min-width:14px}
.studio-export{position:relative;flex-shrink:0}.studio-export summary{list-style:none;display:flex;gap:8px;align-items:center;padding:7px 10px;color:#333d4d;font-weight:500;cursor:pointer;border:1px solid #dce1e9;border-radius:6px;font-size:11px;background:#fff}
.studio-export summary::-webkit-details-marker{display:none}.studio-export summary:hover,.studio-export[open] summary{background:#f3f6fb}.studio-export summary>.studio-icon:last-child{width:13px;height:13px;min-width:13px}
.studio-export-menu{position:absolute;right:0;top:42px;width:210px;padding:6px;background:#fff;border:1px solid #e2e6ed;border-radius:10px;box-shadow:0 12px 36px #17213826,0 2px 6px #17213810;display:grid;gap:2px}
#editorUI .studio-export-menu button{width:100%;justify-content:flex-start;padding:10px 12px;height:36px}.studio-export-menu [data-action=import]{border-top:1px solid #e8ebf0!important;border-radius:0 0 4px 4px}
.studio-panel{top:118px;width:320px;background:#fff;border-left:1px solid #dce1e8;scrollbar-color:#cdd3dd transparent;scrollbar-width:thin}
.studio-tabs{padding:0 10px;height:50px;align-items:stretch;gap:2px;background:#fff;border-bottom:1px solid #e6e9ef}
#editorUI .studio-tabs button{flex:1;flex-direction:column;gap:3px;font-size:9px;padding:6px 3px;border:0;border-radius:0;position:relative;background:transparent;color:#8991a0}
#editorUI .studio-tabs button .studio-icon{width:16px;height:16px;min-width:16px}
#editorUI .studio-tabs button[aria-selected=true]{color:#2563eb;background:#f4f7ff}
#editorUI .studio-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:0;left:12px;right:12px;height:2px;background:#2563eb;border-radius:2px}
.studio-pane{padding:20px 20px 32px}
.property-heading{padding-bottom:17px;margin-bottom:20px;border-color:#e8ebf0}
.property-heading>span{font-size:9px;color:#7c8695;font-weight:600;letter-spacing:1.3px}
.property-heading h3{font-size:16px;font-weight:600;color:#252e3b;letter-spacing:-.3px;margin:7px 0 4px}
.property-heading p,.property-hint,.panel-note{font-size:11px;line-height:1.6;color:#8b93a0}
.property-hint{border:1px solid #e2e9f5;background:#f6f9ff;border-radius:8px;padding:13px;line-height:1.7;color:#68778f}
.studio-pane label{font-size:10px;color:#798392;font-weight:500;margin:10px 0 12px}
.studio-pane input:not([type=checkbox]):not([type=color]),.studio-pane select{background:#f6f7f9;border:1px solid #e4e7ec;border-radius:6px;height:34px;font-size:12px;font-weight:400;color:#303949;padding:7px 9px;margin-top:6px;box-shadow:inset 0 1px 2px #12203803}
.studio-pane input:hover,.studio-pane select:hover{border-color:#bdc7d7}.studio-pane input:focus,.studio-pane select:focus{background:#fff}
.property-grid{gap:0 12px}.property-section{padding-bottom:20px;margin-bottom:22px;border-color:#e8ebf0}
.property-section h4{display:flex;align-items:center;gap:8px;color:#333d4b;font-size:11px;font-weight:600;margin-bottom:13px}
#editorUI .property-section h4 .studio-icon{color:#8c97a7;width:14px;height:14px;min-width:14px}
.format-row{gap:3px;padding:3px;background:#f3f5f8;border:1px solid #e9ecf1;border-radius:7px;margin:10px 0}
#editorUI .format-row button{border:0;background:transparent;min-width:30px;height:29px;padding:5px 8px;flex:1;font-size:10px}
#editorUI .format-row .studio-icon-button{width:30px;min-width:30px;padding:5px}
#editorUI .format-row button:hover{background:#fff;box-shadow:0 1px 3px #14263f12}
#editorUI .format-row button[aria-pressed=true]{background:#fff;color:#2563eb;box-shadow:0 1px 4px #152c4e20}
#editorUI .size-modifier{font-size:10px;line-height:1;margin-left:-6px;align-self:flex-start}
.colour-field{border-top:1px solid #f0f2f5;padding-top:10px}.colour-field input{border:1px solid #e0e5ed;background:#fff;border-radius:6px;width:42px;height:30px;padding:4px;cursor:pointer}.colour-field input::-webkit-color-swatch-wrapper{padding:0}.colour-field input::-webkit-color-swatch{border:0;border-radius:3px}
.check-field input{accent-color:#2563eb}#editorUI .wide{display:flex;font-size:11px;width:100%;border-color:#dfe5ef;margin-top:12px}
.page-actions{gap:6px}#editorUI .page-actions button{font-size:10px;gap:5px;white-space:normal;min-height:36px}.page-actions .studio-icon{width:14px!important;height:14px!important;min-width:14px!important}
#editorUI .studio-page-list button{background:#fff;border:1px solid #e9ecf1;border-radius:7px;padding:12px 10px;justify-content:start;font-size:11px}
#editorUI .studio-page-list button.current{background:#edf3ff;border-color:#bed1ff;color:#245bd2}.studio-page-list b{display:grid;place-items:center;width:25px;height:30px;border:1px solid #e0e5ed;background:#f6f8fb;border-radius:3px;color:#8c96a7}
#editorUI .studio-layer-list button{background:#fff;border:0;border-bottom:1px solid #f0f2f5;border-radius:4px;font-size:11px;justify-content:start}.studio-layer-list small{color:#9ba4b3;font-size:9px}
.revision-row{border-color:#e8ebf0}.revision-row small{color:#969fad}#editorUI .revision-row button{justify-self:start;color:#2563eb;background:#f2f6ff;border-color:#d9e5ff}
.studio-open{padding-top:118px;background:#eef0f3}
.studio-open main{width:calc(100% - 320px);margin-right:320px;padding:20px 28px 30px;min-height:calc(100dvh - 118px)}
.studio-open .toolbar{border:0;padding:0 0 18px;color:#677285}.studio-open .contents-btn,.studio-open .page-caption,.studio-open .page-select{color:#667286}.studio-open .view-switch{background:#e0e4ea;border-radius:7px}.studio-open .view-switch button{border-radius:5px;color:#68758a}.studio-open .view-switch button[aria-pressed=true]{background:#fff;color:#245bd2;box-shadow:0 1px 4px #22334c1a}
.studio-open .viewer{background:#e1e5eb;padding:32px;border:1px solid #d8dde5;border-radius:3px}.studio-open #book{box-shadow:0 12px 28px #1c2d4920,0 1px 3px #1c2d4920}
.studio-open .navigation{padding-top:20px}.studio-open .nav-arrow{border-color:#d3dae5;color:#667285;background:#f9fafc;border-radius:5px}.studio-open .progress{background:#dce1e9}.studio-open #progressFill{background:#8998af}.studio-open .size-label,.studio-open .viewer-foot button{color:#8591a2}
.studio-open .page [data-editor-selected]{outline:1px solid #4e83f5!important;outline-offset:2px}
#selectionBox{border:1px solid #5086ff}#editorUI #selectionBox button{background:#fff;color:#2563eb;border:1px solid #5086ff;border-radius:3px;box-shadow:0 1px 5px #244c9820;min-height:0;min-width:0}.selection-move{width:26px;height:25px;top:-28px;display:grid!important;place-items:center}.selection-resize{width:9px;height:9px;right:-5px;bottom:-5px}
.studio-notice{top:130px;right:340px;border:1px solid #e3cf9c;background:#fffbf1;border-radius:8px;color:#765d2b}
.studio-toast{background:#202b3d;border-radius:9px;color:#fff;box-shadow:0 6px 28px #12213d26;font-size:11px}
#studioDialog{background:#fff;border:1px solid #e1e6ef;border-radius:14px;box-shadow:0 20px 100px #17213833;padding:26px}
#studioDialog::backdrop{background:#121a2b88;backdrop-filter:blur(5px)}.studio-dialog-head h2{font:600 18px Inter,Arial,sans-serif;color:#283345;letter-spacing:-.4px}
#elementHTML{background:#f7f9fc;border:1px solid #dce3ef;border-radius:7px;color:#41516b}.asset-library img{border-radius:5px}#editorUI .asset-library button{display:block;border-radius:8px;padding:8px;border-color:#e3e8f0}
@media(max-width:1100px){.studio-workspace-label{display:none}.studio-name .studio-local-badge{display:none}.studio-tools{gap:8px}.studio-open main{padding:18px}.studio-panel{width:300px}.studio-open main{width:calc(100% - 300px);margin-right:300px}}
@media(max-width:800px){#editorUI .studio-tools [data-action=parent] .studio-button-label{display:none}.studio-tools{padding:0 12px}.studio-tool-group{padding-right:8px}.studio-name .studio-local-badge{display:none}.autosave-switch{margin:0 3px}.studio-bar{padding:0 12px}.studio-app-mark{width:30px;height:30px}.studio-actions{gap:4px}.studio-panel{width:270px}.studio-open main{width:calc(100% - 270px);margin-right:270px}}
@media(max-width:650px){.studio-bar{height:60px;min-height:60px;padding:0 10px;gap:8px}.studio-name{display:block}.studio-name b{font-size:12px}.studio-name #studioStatus{font-size:8px;max-width:110px}.studio-actions [data-action=exit] .studio-button-label{display:none}#editorUI .studio-actions button{padding:6px 8px}#editorUI .studio-actions .studio-icon-button{width:29px;min-width:29px}.studio-app-mark{width:28px;height:28px;border-radius:7px}.studio-actions [data-action=save] .studio-button-label{display:none}.studio-tools{top:60px;height:48px;min-height:48px;gap:4px;padding:0 6px}.studio-tool-group{gap:0;padding-right:4px}.studio-tools .studio-tool-group:first-child .studio-button-label{display:none}#editorUI .studio-tools button{padding:6px;width:29px;min-width:29px}#editorUI .studio-tools [data-action=parent]{margin-right:0}.studio-export summary{gap:4px;padding:6px;font-size:10px}.studio-export summary>.studio-icon:first-child{display:none}.studio-export-menu{top:36px;right:0}.studio-export-menu .studio-button-label{display:inline!important}#editorUI .studio-export-menu button{width:100%;justify-content:start;padding:9px;height:35px}.studio-open{padding-top:108px;padding-bottom:36svh}.studio-open main{width:100%;margin:0;min-height:0;padding:12px}.studio-open .toolbar{padding-bottom:12px}.studio-open .viewer{padding:14px}.studio-panel{top:auto;bottom:0;width:100%;height:36svh;border-top:1px solid #d4dce8}.studio-tabs{height:46px}.studio-pane{padding:17px 20px}.studio-notice{top:116px;right:12px}}
@media print{.studio-open main{width:300mm!important;margin:0!important;padding:0!important;min-height:0}.studio-open .viewer{border:0;border-radius:0}}
