.extended-toolbar{flex-basis:100%;display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:7px;margin-top:5px}.extended-toolbar button{font-size:11px!important;padding:4px 7px!important}.extended-toolbar select{width:auto!important;max-width:95px}.color-control{display:flex;align-items:center;gap:3px;margin:0;color:#69745e;font-size:12px}.color-control input{width:23px;height:24px;border:0;margin:0;padding:0;background:transparent}.content-editor img{max-width:100%;height:auto;display:block;border-radius:5px;margin:12px 0}.content-editor table{width:100%;border-collapse:collapse;margin:16px 0;table-layout:fixed}.content-editor td,.content-editor th{border:1px solid #d9e2d1;min-width:40px;padding:8px;vertical-align:top;overflow-wrap:anywhere}.content-editor th{background:#f3f7ed}.content-editor input[type=checkbox]{accent-color:var(--green);margin-right:6px}.content-editor hr{border:0;border-top:1px solid #dce5d2;margin:22px 0}.content-editor a[href*="/assets/"]{display:inline-block;padding:6px 9px;border:1px solid #dce5d2;border-radius:5px;background:#f9fbf6}.reader-content input[type=checkbox]{opacity:1}.user{flex-wrap:wrap}.share-management input{accent-color:var(--green);margin-right:8px}.editor-actions{gap:5px}@media(max-width:580px){.extended-toolbar{max-height:145px;overflow:auto}.extended-toolbar button{font-size:10px!important}.editor-top{flex-wrap:wrap}.editor-actions{margin-left:auto}.editor-layout{padding:10px}.content-editor table{font-size:12px}}
.document-tools{display:flex;gap:4px;flex-wrap:wrap;width:100%;border-top:1px solid #e5ebe4;padding-top:6px}.focus-mode{position:fixed;inset:0;z-index:35;background:#f7f9f6;overflow:auto}.outline-h4{padding-left:24px!important}.outline-open{display:block!important;position:fixed;right:12px;top:150px;max-height:65vh;overflow:auto;width:220px;z-index:40;background:white;box-shadow:0 4px 25px #0002;padding:18px;border-radius:8px}#print-document{display:none}
@media print{@page{margin:18mm}body>*{display:none!important}#print-document{display:block!important;color:#111;font:12pt/1.7 sans-serif}#print-document h1{font-size:24pt}#print-document img{max-width:100%;break-inside:avoid}#print-document table{width:100%;border-collapse:collapse}#print-document td,#print-document th{border:1px solid #bbb;padding:6px}#print-document pre{white-space:pre-wrap}#print-document a{color:inherit}}
.reader-outline{border:1px solid #e2e9da;padding:10px 14px;border-radius:6px;margin:20px 0}.reader-outline summary{cursor:pointer}.reader-outline button{display:block;text-align:left;padding:6px 0;color:#527242}
.outline-close{display:none}.outline-open .outline-close{display:block;margin-left:auto;font-size:12px;color:#547749}
.organization-actions{display:flex;gap:6px;padding:4px 10px 8px}.organization-actions button{font-size:11px;color:#597450;padding:5px}.folder-tree summary{display:flex;align-items:center;gap:3px;cursor:pointer;padding:6px 5px;border-radius:5px;list-style:none}.folder-tree summary:before{content:'▸';font-size:10px}.folder-tree[open]>summary:before{content:'▾'}.folder-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.folder-tree summary button{padding:2px 5px;color:#8a9980}.folder-children{padding-left:12px;border-left:1px solid #e2e8de;margin-left:9px}.folder-path{color:#758b64}.batch-list{max-height:260px;overflow:auto;border:1px solid #e0e7da;border-radius:6px;margin-bottom:12px}.batch-list label{display:flex;gap:8px;padding:9px;margin:0;border-bottom:1px solid #edf0e9}.batch-list input,.batch-all input{width:auto!important}.batch-list small{display:block;color:#8a9980;margin-top:4px}.batch-all{display:flex;gap:8px}
.reader-folder-path{display:block;margin-top:4px;color:#8a9980;font-size:10px}
.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:3px}.backup-actions button{justify-content:flex-start;padding:5px;font-size:10px}.library-list{max-height:370px;overflow:auto}.library-list>div{padding:12px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.library-list strong{display:block;font-size:12px}.library-list small{display:block;font-size:11px;color:var(--muted);margin:5px 0}.library-list a,.library-list button{font-size:11px;padding:5px}.tag-filters{display:flex;gap:16px;flex-wrap:wrap}.tag-filters label{flex:1;min-width:140px}.doc-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.doc-tags button{background:#edf5e9;color:#497b45;border-radius:12px;padding:4px 10px;font-size:11px}.editor-paper{max-width:var(--paper-width,880px)}.content-editor{font-size:var(--editor-font,16px)}[data-theme=dark]{background:#18221e;color:#e0e9e1;--border:#35443a;--muted:#a0b4a2}[data-theme=dark] body,[data-theme=dark] .main,[data-theme=dark] .editor-layout,[data-theme=dark] .book-page,[data-theme=dark] .focus-mode{background:#18221e;color:#e0e9e1}[data-theme=dark] .sidebar,[data-theme=dark] .toolbar,[data-theme=dark] .editor-top,[data-theme=dark] .editor-paper,[data-theme=dark] .book-paper,[data-theme=dark] dialog,[data-theme=dark] .book-card,[data-theme=dark] .outline-open{background:#233229;color:#e0e9e1;border-color:#405344}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{background:#1c2b22;color:#e0e9e1;border-color:#405344}[data-theme=dark] .nav-item.active,[data-theme=dark] button:hover,[data-theme=dark] .tree-item.active,[data-theme=dark] .quick-actions>button{background:#304538;color:#e0e9e1}[data-theme=dark] .content-editor,[data-theme=dark] .doc-title,[data-theme=dark] .page-heading h1,[data-theme=dark] .book-header h1{color:#e0e9e1}[data-theme=dark] .content-editor pre,[data-theme=dark] .content-editor th,[data-theme=dark] .side-search>button:first-child,[data-theme=dark] .doc-tags button{background:#304538;color:#d4e6d3}@media(max-width:580px){.side-bottom{padding-top:5px}.backup-actions button{font-size:10px}.library-list{max-height:45vh}}@media print{[data-theme=dark] #print-document{background:white;color:black}}
.reader-controls{display:flex;justify-content:flex-end;gap:15px;max-width:1100px;margin:12px auto;padding:0 15px;flex-wrap:wrap}.reader-controls label{display:flex;gap:6px;align-items:center;margin:0;font-size:11px}.reader-controls select{width:auto;margin:0;padding:4px 7px}.reader-paper{overflow-wrap:anywhere}.reader-content{line-height:1.9}@media(max-width:580px){.reader-controls{justify-content:center;margin:10px}.reader-layout{padding:0 10px!important}.reader-paper{padding:25px 18px!important}.reader-nav{width:100%!important}.reader-content img{max-width:100%}}
[data-theme=dark] .toolbar button,[data-theme=dark] .toolbar label,[data-theme=dark] .save-status,[data-theme=dark] .breadcrumbs,[data-theme=dark] .nav-item,[data-theme=dark] .tree-item,[data-theme=dark] .backup-actions button,[data-theme=dark] .organization-actions button,[data-theme=dark] .outline button,[data-theme=dark] label{color:#bcd0b6}[data-theme=dark] .subtle,[data-theme=dark] .icon-button{background:#304538;color:#dceadb}[data-theme=dark] .hint,[data-theme=dark] .doc-meta,[data-theme=dark] .storage-note,[data-theme=dark] .page-heading p{color:#abc0a5}.outline .outline-close{display:none}.outline.outline-open .outline-close{display:block}.share-intro{white-space:pre-wrap;padding:12px 15px;border:1px solid var(--border);border-radius:6px;line-height:1.8;font-size:14px}
.import-result{padding:12px 16px;border:1px solid var(--border);border-radius:6px;margin:20px 0;color:var(--green);font-size:12px}.import-result summary{cursor:pointer}.import-result li{line-height:1.9}
.history-diff{max-height:45vh;overflow:auto;border:1px solid var(--border);padding:12px}.history-diff pre,.history-diff del,.history-diff ins{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0;padding:5px;text-decoration:none}.history-diff del{background:#ffe6e6;color:#8b2020}.history-diff ins{background:#dff5e7;color:#185632}.search-results mark{background:#fff0a8;color:#333}.tag-filters{flex-wrap:wrap}.tag-filters select{max-width:100%}
@media(max-width:600px){.toolbar,.editor-extra-toolbar,.document-tools{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:8px}.toolbar>*,.editor-extra-toolbar>*,.document-tools>*{flex-shrink:0}.tag-filters{display:grid;grid-template-columns:1fr}.library-list button{margin:5px}.history-diff{max-height:35vh}}
@media(max-width:600px){.toolbar{flex-wrap:wrap;overflow:visible}.extended-toolbar,.document-tools{flex-basis:100%;width:100%;max-height:none;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px}.extended-toolbar>*{flex-shrink:0}.extended-toolbar label{flex-shrink:0}}
.history-diff{white-space:pre-wrap;overflow-wrap:anywhere}.history-diff del,.history-diff ins{display:inline;padding:0 2px}.conflict-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px;max-height:45vh;overflow:auto}.conflict-columns section{min-width:0;border:1px solid var(--border);padding:12px;overflow-wrap:anywhere}.conflict-columns img{max-width:100%}.conflict-columns table{max-width:100%;table-layout:fixed}#export-progress{overflow-wrap:anywhere}.doc-table>[data-action=rows-more]{margin:12px}.doc-tree>[data-action=tree-more],.folder-children>[data-action=tree-more]{font-size:11px;color:var(--green);padding:8px}@media(max-width:580px){.conflict-columns{grid-template-columns:1fr;max-height:50vh}}

/* Comfortable interface: UI sizing is independent of document typography. */
:root{--ui-font:16px;--ui-meta:14px;--ui-small:13px;--ui-heading:32px;--ui-section:20px;--side:280px;--muted:#637168}
:root[data-ui-size=large]{--ui-font:18px;--ui-meta:16px;--ui-small:14px;--ui-heading:36px;--ui-section:22px;--side:300px}
body{font-size:var(--ui-font);line-height:1.6}
button,input,select,textarea{font-size:var(--ui-font)}
button{min-height:40px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #249969;outline-offset:3px}
.icon{width:21px;height:21px}.icon-button{width:40px;min-width:40px;min-height:40px;padding:9px}
.sidebar{padding:22px 14px 0}.brand{padding-bottom:24px}.brand-sub{font-size:var(--ui-small);color:#637168;margin-left:0;padding-left:8px}
.side-search{margin-bottom:16px}.side-search>button:first-child{font-size:var(--ui-meta);color:#56655c;min-height:44px}.side-search kbd{font-size:12px;color:#62746a}.side-search>.icon-button{width:40px}
.nav-item,.book-nav .nav-item,.tree-item{font-size:var(--ui-font);min-height:44px;color:#415249;padding:10px 12px}.nav-item .icon,.tree-item .icon{width:21px;height:21px}
.tree-label{font-size:var(--ui-meta);color:#627168;margin:20px 12px 8px;letter-spacing:0}.tree-label .icon-button{padding:8px}.nav-count{font-size:var(--ui-small);padding:1px 6px}
.tree-item.active,.nav-item.active{background:#e3f0e8;color:#176344}.folder-name{font-size:var(--ui-font)}.folder-tree summary{min-height:44px}.folder-tree summary button{min-height:36px;min-width:36px}.organization-actions{flex-wrap:wrap}.organization-actions button{font-size:var(--ui-meta);min-height:40px}
.storage-note{font-size:var(--ui-small);color:#546b5c;margin:14px 10px 8px}.status-dot{width:7px;height:7px}
.backup-actions{display:grid;grid-template-columns:1fr 1fr;margin:0 4px 8px;gap:4px}.backup-actions button{font-size:var(--ui-meta);padding:9px 6px;min-height:44px;color:#415d4b;gap:6px}.backup-actions .icon{width:18px;height:18px}
.tools-settings{margin:12px 0 8px;border-top:1px solid var(--border);padding-top:8px}.tools-settings>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 12px;cursor:pointer;color:#415249;border-radius:7px;font-size:var(--ui-font)}
.tools-settings>summary::-webkit-details-marker,.format-more>summary::-webkit-details-marker,.document-more>summary::-webkit-details-marker{display:none}.tools-settings>summary:hover{background:#eaf1eb}.tools-settings[open]>summary span{transform:rotate(180deg)}
.tools-groups{padding:0 8px 8px}.tools-groups section{padding-top:10px}.tools-groups h3{margin:0 0 4px;padding-left:5px;font-size:var(--ui-small);font-weight:500;color:#637168}.tools-groups button{display:flex;justify-content:flex-start;width:100%;min-height:44px;border-radius:6px;font-size:var(--ui-font);padding:8px 10px}
.user{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:6px 8px;padding:12px 4px;align-items:center}.avatar{width:36px;height:36px;font-size:var(--ui-meta)}.user>div{min-width:0}.user strong{font-size:var(--ui-meta);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user small{font-size:12px;color:#637168;margin-top:2px}.personal-tag{font-size:12px;color:#42654e;margin-left:0}.user button[data-action=account]{grid-column:2;grid-row:2;justify-self:start}.user button[data-action=logout]{grid-column:3;grid-row:2}.logout-button{font-size:var(--ui-meta);padding:4px 8px!important;min-height:36px}
.workspace{max-width:1500px;margin:0 auto;padding:36px 40px 24px}.page-heading{margin-bottom:24px}.page-heading h1,h1{font-size:var(--ui-heading);line-height:1.45;margin:8px 0}.eyebrow{font-size:var(--ui-meta);color:#526b5a;letter-spacing:1px}.page-heading p{font-size:var(--ui-meta);color:#637168}.date{font-size:var(--ui-meta);color:#56695c;padding:8px 12px}.section-heading{margin-bottom:14px}h2{font-size:var(--ui-section)}.section-heading h2 span{font-size:var(--ui-meta);color:#637168}.text-button{font-size:var(--ui-meta);min-height:40px;color:#426950;padding:8px}
.quick-actions{gap:14px;margin-bottom:28px;grid-template-columns:1.15fr 1fr 1fr}.quick-actions>button{padding:20px;text-align:left;min-height:94px}.quick-actions>button:first-child{border-color:#b7d8c4;background:#f1f8f4}.quick-actions strong{font-size:18px}.quick-actions small{font-size:var(--ui-meta);color:#637168;line-height:1.6;margin-top:4px}.quick-icon{width:44px;height:44px}.quick-icon .icon{width:25px;height:25px}
.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px}.book-card{max-width:430px;padding:20px;min-height:168px}.book-card strong{font-size:18px}.book-card p{font-size:var(--ui-meta);color:#637168;line-height:1.7;margin-bottom:10px;min-height:0}.book-card>div{font-size:var(--ui-meta);color:#58715e}.book-cover{margin-bottom:12px}.recent-section{margin-top:28px}.muted,.sort-note{font-size:var(--ui-meta);color:#637168}.tabs button{font-size:var(--ui-meta);min-height:40px;padding:8px 16px}
.table-header,.doc-row{grid-template-columns:minmax(160px,1fr) 160px 132px 96px;gap:14px}.table-header{font-size:var(--ui-meta);color:#57675e;padding:10px 12px}.doc-row{min-height:82px}.doc-name strong{font-size:var(--ui-font);font-weight:600}.doc-name small{font-size:var(--ui-meta);color:#637168;margin-top:4px;max-width:100%}.book-cell,.row-date{font-size:var(--ui-meta);color:#637168}.row-actions{gap:4px}.row-actions .icon{width:20px;height:20px;color:#647a69}
.empty-state{padding:24px 16px 30px;border:1px dashed #d9e5db;border-radius:10px;background:#fafcf9}.empty-art{width:56px;height:54px;margin:0}.empty-art:before{width:48px;height:46px}.empty-art .icon{width:35px;height:35px}.empty-state h3{font-size:18px;color:#354c3d;margin:6px 0}.empty-state p{font-size:var(--ui-meta);color:#637168;max-width:650px;margin:0 auto 14px}.first-steps{display:flex;justify-content:center;gap:24px;list-style:none;padding:0;margin:0 0 18px;color:#496454;font-size:var(--ui-meta)}.first-steps li{display:flex;align-items:center;gap:7px}.first-steps span{display:grid;place-items:center;background:#e3f0e7;border-radius:50%;width:26px;height:26px;font-weight:600}.primary,.subtle,.restore-button{font-size:var(--ui-font);min-height:44px;padding:9px 16px}.primary .icon,.subtle .icon{width:20px;height:20px}.page-footer{font-size:var(--ui-small);color:#637168;margin-top:24px}
.book-page{padding:32px 36px}.book-paper{padding:36px;min-height:calc(100vh - 64px)}.book-header h1{font-size:var(--ui-heading)}.book-header p,.book-intro p{font-size:var(--ui-meta);color:#637168}.book-intro{margin:28px 0;padding-left:16px}.book-intro h3{font-size:18px}.book-paper .table-header,.book-paper .doc-row{grid-template-columns:minmax(100px,1fr) 130px 132px 96px}
.editor-top{padding:12px 20px;flex-wrap:wrap}.breadcrumbs,.breadcrumbs button{font-size:var(--ui-meta);color:#536d5c}.editor-actions{gap:8px;flex-wrap:wrap}.save-status{font-size:var(--ui-meta);color:#267348;gap:8px;min-height:40px;border-radius:6px;padding:4px 8px}.save-status[data-state=pending],.save-status[data-state=saving]{color:#765f21;background:#fff8e8}.save-status[data-state=error]{color:#a43131;background:#fff0ef;flex-wrap:wrap}.save-status button{font-size:var(--ui-meta);text-decoration:underline;min-height:36px}
.toolbar{gap:5px;padding:10px 16px;flex-wrap:wrap;overflow:visible;max-height:none;flex-shrink:0}.toolbar button{font-size:var(--ui-meta);min-height:40px;min-width:40px;padding:8px}.toolbar select{font-size:var(--ui-meta);height:40px;width:auto;max-width:150px;padding:6px 9px}.toolbar label{font-size:var(--ui-meta);margin:0;min-height:40px}.toolbar-divider{height:25px;margin:0 3px}.extended-toolbar{gap:6px;display:flex;flex-wrap:wrap;align-items:center;width:100%;padding-top:6px;border-top:1px solid var(--border)}.color-control{display:inline-flex;align-items:center;gap:5px}.document-tools{gap:7px;align-items:flex-start;margin-top:0}.document-tools>button,.document-panel button{font-size:var(--ui-meta)}
.format-more,.document-more{font-size:var(--ui-meta);min-width:0}.format-more>summary,.document-more>summary{list-style:none;cursor:pointer;padding:8px 12px;min-height:40px;border:1px solid #d5e2d7;border-radius:6px;color:#385d46;background:#f5f9f4}.format-more[open],.document-more[open]{flex-basis:100%;width:100%}.format-more[open]>summary,.document-more[open]>summary{display:inline-flex;min-width:120px}.format-panel,.document-panel{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;padding:12px;border:1px solid #dfe8df;border-radius:8px;background:#f9fbf7}.format-panel p{flex-basis:100%;margin:0 0 4px;font-size:var(--ui-meta);color:#637168}
.editor-layout{min-height:0;overflow:auto;padding:24px;align-items:flex-start}.editor-paper{padding:32px 36px}.doc-title{font-size:32px}.doc-meta,.paper-end{font-size:var(--ui-meta);color:#637168}.outline h4{font-size:var(--ui-font)}.outline button,.outline p{font-size:var(--ui-meta);line-height:1.7;color:#536c5a}.outline button{min-height:40px}.draft-banner{font-size:var(--ui-meta);line-height:1.7;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
dialog{max-width:min(760px,calc(100vw - 32px));width:640px;max-height:calc(100dvh - 32px);padding:26px;overflow:auto;border-radius:12px}.modal-heading h2{font-size:24px}.modal-heading .close-modal{font-size:24px;width:44px;height:44px;min-width:44px}.modal-footer{gap:12px;padding-top:20px;position:sticky;bottom:-26px;background:inherit}.modal-footer button{min-height:44px;font-size:var(--ui-font)}label{font-size:var(--ui-font);line-height:1.6}input:not([type=color]):not([type=checkbox]),select,textarea{font-size:var(--ui-font);min-height:44px;padding:10px 12px}.hint{font-size:var(--ui-meta);color:#637168;line-height:1.8}.library-list strong{font-size:var(--ui-font)}.library-list small,.library-list a,.library-list button{font-size:var(--ui-meta)}.library-list button,.library-list a{min-height:40px;padding:8px}.library-list{max-height:50dvh}.doc-tags button,.reader-controls label,.reader-controls select,.reader-header small{font-size:var(--ui-meta)}.doc-tags button{min-height:36px}.reader-controls select{height:40px;min-height:40px;padding:6px}.reader-label{font-size:var(--ui-meta)}
#toast{font-size:var(--ui-font);line-height:1.6;max-width:calc(100vw - 32px);padding:12px 18px}.login-page form,.login-page section{width:min(460px,calc(100vw - 32px))}.login-page .hint{color:#637168}.login-page button{min-height:44px}
[data-theme=dark]{--muted:#b5c8bb}[data-theme=dark] .tools-settings>summary,[data-theme=dark] .tools-groups h3,[data-theme=dark] .quick-actions small,[data-theme=dark] .book-card p,[data-theme=dark] .book-card>div,[data-theme=dark] .row-date,[data-theme=dark] .doc-name small,[data-theme=dark] .book-cell,[data-theme=dark] .muted,[data-theme=dark] .hint,[data-theme=dark] .brand-sub,[data-theme=dark] .user small,[data-theme=dark] .page-footer,[data-theme=dark] .page-heading p,[data-theme=dark] .eyebrow,[data-theme=dark] .date,[data-theme=dark] .book-intro p,[data-theme=dark] .book-header p,[data-theme=dark] .outline p,[data-theme=dark] .outline button{color:#b5c8bb}
[data-theme=dark] .tools-settings>summary:hover,[data-theme=dark] .format-panel,[data-theme=dark] .document-panel,[data-theme=dark] .format-more>summary,[data-theme=dark] .document-more>summary,[data-theme=dark] .empty-state,[data-theme=dark] .quick-actions>button:first-child,[data-theme=dark] .table-header{background:#293b30;color:#e0e9e1;border-color:#496151}[data-theme=dark] .empty-state h3,[data-theme=dark] .first-steps,[data-theme=dark] .personal-tag,[data-theme=dark] .format-panel p{color:#c0d5c6}[data-theme=dark] .first-steps span{background:#3a5343}[data-theme=dark] .save-status[data-state=error]{background:#532d2d;color:#ffcccc}[data-theme=dark] .save-status[data-state=pending],[data-theme=dark] .save-status[data-state=saving]{background:#493d26;color:#ffde92}
@media(max-width:1150px){:root{--side:260px}:root[data-ui-size=large]{--side:280px}.workspace{padding:28px}.quick-actions{gap:10px}.quick-actions>button{padding:16px}.quick-actions small{font-size:var(--ui-meta)}.table-header,.doc-row,.book-paper .table-header,.book-paper .doc-row{grid-template-columns:minmax(120px,1fr) 110px 112px 92px;gap:10px}.editor-paper{padding:28px}.book-page{padding:28px}.book-paper{padding:28px}}
@media(max-width:900px){.table-header,.doc-row,.book-paper .table-header,.book-paper .doc-row{grid-template-columns:minmax(0,1fr) 92px}.table-header>span:nth-child(2),.table-header>span:nth-child(3),.book-cell,.row-date{display:none}.quick-actions{grid-template-columns:1fr}.quick-actions>button{min-height:78px;padding:14px 18px}.brand-sub{display:none}.book-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}.editor-actions{margin-left:auto}.editor-layout{padding:16px}.book-header-actions{flex-direction:column}}
@media(max-width:580px){.sidebar{width:min(310px,calc(100vw - 32px));padding-top:18px;height:100dvh}.main{margin-left:0}.mobile-menu{width:44px;height:44px}.workspace{padding:72px 18px 24px}.page-heading h1{font-size:28px}:root[data-ui-size=large] .page-heading h1{font-size:32px}.page-heading .primary{font-size:var(--ui-meta);margin-top:0}.page-heading{margin-bottom:20px}.quick-actions{margin-bottom:24px}.quick-actions small{font-size:var(--ui-meta)}.section-heading{gap:8px}.text-button{font-size:var(--ui-meta);white-space:nowrap}.book-card{padding:18px}.first-steps{gap:10px;flex-wrap:wrap}.empty-state{padding:20px 12px}.empty-state p{margin-bottom:12px}.book-page{padding:70px 12px 18px}.book-paper{padding:24px 18px}.book-header{flex-wrap:wrap}.book-header h1{font-size:28px}.book-header-actions{flex-direction:row;flex-wrap:wrap;margin-left:0;width:100%}.book-header>.subtle{font-size:var(--ui-meta)}.editor-page{height:100dvh}.editor-top{padding:10px 12px 10px 64px;gap:8px}.editor-actions{width:100%;margin-left:0;gap:6px}.editor-actions .subtle{font-size:var(--ui-meta);min-height:40px;padding:8px}.save-status{font-size:var(--ui-meta);flex-basis:100%;justify-content:flex-start}.breadcrumbs button{font-size:var(--ui-meta)}.toolbar{padding:8px 10px;gap:4px;max-height:38dvh;overflow:auto}.toolbar button,.toolbar select{min-height:44px;height:44px;font-size:var(--ui-meta)}.toolbar select{max-width:120px}.extended-toolbar,.document-tools{flex-wrap:wrap;overflow:visible;gap:5px;max-height:none}.toolbar label{min-height:44px}.editor-layout{padding:12px}.editor-paper{padding:24px 18px;width:100%;min-width:0}.doc-title{font-size:28px}.doc-meta{flex-wrap:wrap;font-size:var(--ui-meta)}.organization-actions button,.backup-actions button{font-size:var(--ui-meta)}dialog{padding:20px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.modal-footer{bottom:-20px;flex-wrap:wrap}.modal-footer .primary{flex:1}.library-list{max-height:40dvh}.outline-open{top:80px;right:12px;width:min(280px,calc(100vw - 24px))}.reader-header small{font-size:var(--ui-meta)}.reader-controls{gap:10px}.reader-paper{padding:24px 18px!important}}
#doc-title.doc-title{font-size:32px;min-height:48px;padding:0;line-height:1.5}
.workspace .book-card{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;min-height:150px}.workspace .book-cover{grid-row:1/span 3;margin:0}.workspace .book-card strong,.workspace .book-card p,.workspace .book-card>div{grid-column:2}.workspace .book-card p{margin:6px 0 12px}
@media(max-width:580px){#doc-title.doc-title{font-size:28px}}
[data-theme=dark] .breadcrumbs,[data-theme=dark] .breadcrumbs button{color:#b5c8bb}
/* Simplified workspace: documents first, management below navigation. */
.sidebar{background:#f7f9f8}.brand{margin-bottom:24px}.side-search{grid-template-columns:1fr}.sidebar:has(.doc-tree) .side-search{grid-template-columns:minmax(0,1fr) 44px}.side-search>button:first-child{background:#fff;border:1px solid var(--border)}.sidebar .side-bottom{padding-top:12px}.side-bottom>.tools-settings{border-top:0;border-bottom:1px solid var(--border);margin:0 0 10px;padding:0 0 10px}.tools-groups{max-height:38dvh;overflow:auto}.tools-settings>summary{font-size:var(--ui-meta);font-weight:400}.account-menu>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:52px;padding:8px 10px;font-size:var(--ui-meta)}.account-menu>summary>span:last-child{margin-left:auto;color:var(--muted)}.account-panel{padding:0 10px 8px}.account-panel p{font-size:var(--ui-meta);color:var(--muted);margin:4px 0}.account-panel button{min-height:40px;font-size:var(--ui-meta);padding:8px 12px!important}.simple-home{max-width:1450px;padding:56px 64px}.simple-home .page-heading{margin-bottom:44px;align-items:center}.simple-home .page-heading h1{font-size:30px;font-weight:600;margin:0 0 6px}.simple-home .page-heading p{margin:0}.simple-home .recent-section{margin-top:0}.simple-home .section-heading{border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:0}.simple-home .section-heading h2{font-weight:600}.create-menu{display:flex;position:relative;flex-shrink:0}.create-menu>.primary{border-radius:7px 0 0 7px}.create-menu>details>summary{cursor:pointer;list-style:none;background:var(--green);color:#fff;min-height:44px;padding:10px 13px;border-left:1px solid #ffffff50;border-radius:0 7px 7px 0}.create-menu>details>div{position:absolute;top:52px;right:0;min-width:190px;z-index:5;background:#fff;border:1px solid var(--border);border-radius:8px;padding:6px;box-shadow:0 8px 24px #203d2b15}.create-menu>details button{display:flex;min-height:44px;padding:10px 14px;font-size:var(--ui-meta);width:100%;justify-content:flex-start;border-radius:5px}.create-menu>details button:hover{background:#edf5f0}.simple-empty{text-align:center;padding:100px 12px 60px}.simple-empty-icon{display:grid;place-items:center;width:52px;height:58px;border:1px solid #d3e1d8;border-radius:8px;margin:0 auto 20px;color:#6b9a7d;background:#f6faf7}.simple-empty-icon .icon{width:28px;height:28px}.simple-empty h3{font-size:18px;font-weight:500;margin:0 0 10px}.simple-empty p{font-size:var(--ui-meta);color:var(--muted);margin:0}.simple-home .table-header{background:none;padding:14px 0;font-weight:400}.simple-home .doc-row{border:0;border-bottom:1px solid #edf1ee;border-radius:0;padding:10px 0;min-height:94px}.simple-home .doc-name strong{font-weight:500}.simple-home .doc-name .icon{color:#799286}.simple-home .doc-row:hover{background:#f8fbf9}.simple-home .doc-table{border:0}.simple-home .doc-name small{line-height:1.7}.simple-home .row-actions .icon{width:20px;height:20px}[data-theme=dark] .create-menu>details>div{background:#233229}[data-theme=dark] .create-menu>details button:hover,[data-theme=dark] .simple-home .doc-row:hover{background:#304538}[data-theme=dark] .simple-empty-icon{background:#293b30;border-color:#496151;color:#b5c8bb}[data-theme=dark] .simple-home .doc-row{border-color:#35443a}[data-theme=dark] .simple-home .page-heading h1{color:#e0e9e1}:root[data-ui-size=large] .simple-home .page-heading h1{font-size:34px}:root[data-ui-size=large] .simple-empty h3{font-size:20px}
@media(max-width:1000px){.simple-home{padding:40px 32px}.simple-home .page-heading{margin-bottom:34px}}@media(max-width:580px){.simple-home{padding:80px 20px 28px}.simple-home .page-heading{align-items:flex-start;gap:12px}.simple-home .page-heading h1{font-size:26px}.simple-home .page-heading p{max-width:170px}.create-menu>.primary{padding:10px 12px;font-size:14px}.create-menu>details>summary{padding:10px;min-height:44px}.simple-home .sort-note{font-size:12px}.simple-empty{padding:80px 0 50px}.simple-home .table-header{display:none}.simple-home .doc-row{min-height:96px}:root[data-ui-size=large] .simple-home .page-heading h1{font-size:30px}.tools-groups{max-height:36dvh}}
