/* Readable editor, while retaining the original feature-rich workspace. */
:root{--left-panel:245px;--right-panel:330px;--ink:#1a293b}
body{font-size:16px;line-height:1.5;color:#172839}
button,input,select,textarea{font-size:15px}
header{height:auto;min-height:65px;flex-wrap:wrap;padding:13px 20px;gap:12px}
header h1,header .brand h1{font-size:23px;line-height:1.15}
.eyebrow{font-size:12px;letter-spacing:1px;color:#3856b9}
.headeractions button{font-size:15px;min-height:40px;padding:8px 12px}
.headercontext strong{font-size:15px}.headercontext .sub,.pill{font-size:13px}
.sidehead{padding:14px 12px}.sidehead b{font-size:16px}.sidehead #addBtn{font-size:14px;min-height:36px}
.sidehead .hint,.searchbox input{font-size:14px;color:#405368}
.searchbox{padding:8px}.pages{padding:8px}
.thumb{padding:9px 6px;gap:8px}.thumb img{width:44px;height:61px}
.thumb .num{font-size:15px}.thumb .name,.thumb .thumbmeta{font-size:13px;color:#43566b}
.thumb .draghandle{font-size:16px}
.follows-blank{display:block;margin-top:3px;color:#216548;font-size:12px;font-weight:700}
.blank-list-item img{border:1px dashed #8c9eae}
.sidefoot{padding:10px}.sidefoot .row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sidefoot button{font-size:14px;min-height:36px;padding:6px 8px}
#blankRangeBtn{grid-column:1/-1}
.toolbar{padding:8px;min-height:42px;flex-wrap:wrap;gap:6px}
.toolbar .row{flex-wrap:wrap;flex-shrink:1;gap:5px}
.toolbar button{font-size:14px!important;height:auto;min-height:33px;padding:5px 8px}
.toolbar .documentbar{display:none}
.toolbar #zoomLabel{font-size:14px}
.stage{padding:12px;background:#e8edf4}
.preview-views{display:flex;align-items:center;gap:7px;padding:8px 12px;background:#f8fafc;border-bottom:1px solid #d3dae5;flex-wrap:wrap}
.preview-views button{font-size:15px;padding:7px 12px;min-height:36px;border-radius:7px}
.preview-views button[aria-pressed=true]{background:#e9efff;border-color:#a7b7fa;color:#2849ca}
.grid-count{font-size:13px;color:#3f5066;margin-left:auto}
.thumbnail-size{display:flex;gap:7px;align-items:center;font-size:14px;color:#293c52}
.thumbnail-size select{font-size:14px;width:auto;padding:6px 24px 6px 8px}
.grid-stage{display:block}
.page-grid{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:13px;align-items:start}
.page-grid[data-size=small]{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.page-grid[data-size=large]{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.preview-tile{display:flex;flex-direction:column;gap:7px;align-items:center;background:#f8fafc;border:2px solid transparent;padding:10px 8px;min-width:0;font-weight:500}
.preview-tile.selected{border-color:#3358d0;background:#edf1ff}
.thumbnail-paper{position:relative;width:100%;background:white;box-shadow:0 2px 6px #233c5826;overflow:hidden}
.thumbnail-paper canvas{display:block;width:100%;height:100%}
.is-blank .thumbnail-paper{border:1px dashed #9ba9bd}
.blank-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#edf1f6;color:#43566b;padding:4px 6px;border-radius:4px;white-space:nowrap;font-size:11px;font-weight:750}
.tile-caption{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#415470}
.preview-tile strong{font-size:15px}
.grid-empty{padding:24px;text-align:center;color:#43566b;grid-column:1/-1}
.previewfoot{padding:8px 12px;min-height:45px;font-size:14px;flex-wrap:wrap}
.previewfoot button{min-height:33px;height:auto}.previewfoot input[type=number]{height:33px;font-size:15px}
.previewfoot .small,.previewfoot #sideLabel{font-size:14px}
.inspector-head{padding:14px 14px 0}.inspector-head h2{font-size:20px}
.tabs{padding:4px}.tabs button{font-size:15px;min-height:37px}
.panel{padding:12px 14px 20px}.section{padding:14px 12px;margin-bottom:12px}
.section h3{font-size:16px}.section label{font-size:15px;margin:12px 0 6px;color:#2b4258}
.section select,.section input[type=number],.section input[type=text]{font-size:15px;min-height:40px;padding:9px}
.section .switch{font-size:15px;padding:9px}.section .switch input{width:18px;height:18px}
.section .btnfull,.section .grid2 button{font-size:14px;min-height:38px;padding:7px}
.section .hint,.section .note,.hint,.note,.sub,.small{font-size:14px;line-height:1.5;color:#40536a}
.section .tag,.tag{font-size:12px}
details.section>summary{font-size:16px;padding:12px}
.guide-card summary{font-size:15px}
.statusbar{height:auto;min-height:30px;padding:6px 12px;font-size:13px;line-height:1.4}
.help-icon{width:15px;height:15px;flex-basis:15px;font-size:10px;border-color:#9aa9b9;color:#5b6d81}
.studio-tooltip{font-size:14px;max-width:min(380px,calc(100vw - 24px))}
.modalbox{font-size:16px}.modalbox .checkrow{font-size:14px}.modalbox button{font-size:15px;min-height:39px}
.range-dialog{border:1px solid #d0d9e5;border-radius:14px;padding:24px;max-width:480px;width:calc(100% - 28px);color:#18293b;background:white;box-shadow:0 20px 80px #18304850}
.range-dialog::backdrop{background:#15253a70}
.range-dialog h2{font-size:23px;margin-bottom:12px}
.range-dialog p{font-size:16px;line-height:1.5;margin:10px 0;color:#40536a}
.range-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.range-fields label{font-weight:650;font-size:15px}
.range-fields input{width:100%;min-height:44px;border:1px solid #b7c5d4;border-radius:7px;padding:9px;margin-top:6px}
.range-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.sample-book{margin-top:10px;font-size:15px;display:block;margin-inline:auto}
@media(max-width:1250px){:root{--left-panel:210px;--right-panel:295px}.toolbar .row{gap:5px}.toolbar button{font-size:13px!important}}
@media(max-width:800px){
 body:not(.focus-mode){height:auto;overflow:auto}
 body:not(.focus-mode) .layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(520px,75vh) auto;height:auto}
 body:not(.focus-mode) .sidebar{grid-column:1;grid-row:1;max-height:330px;min-height:150px}
 body:not(.focus-mode) .workspace{grid-column:1;grid-row:2;min-height:520px}
 body:not(.focus-mode) .inspector{grid-column:1;grid-row:3}
 body.hide-pages:not(.focus-mode) .layout{grid-template-columns:1fr;grid-template-rows:minmax(520px,75vh) auto}
 body.hide-pages:not(.focus-mode) .workspace{grid-row:1}
 body.hide-pages:not(.focus-mode) .inspector{grid-row:2}
 body.hide-settings:not(.focus-mode) .layout{grid-template-rows:auto minmax(520px,80vh)}
 body.hide-settings.hide-pages:not(.focus-mode) .layout{grid-template-rows:minmax(520px,80vh)}
 header{padding:12px}.headeractions{flex-wrap:wrap}
 .headeractions button{font-size:14px}
 .sidefoot .row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .thumb img{width:42px;height:58px}.thumb .thumbmeta{display:block}
 .page-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
 .page-grid[data-size=large]{grid-template-columns:repeat(2,minmax(0,1fr))}
 .preview-views{padding:8px}.grid-count{margin-left:0}
 .section label{font-size:16px}
 .toolbar button{font-size:14px!important;min-height:36px}
}
