/* One bounded flex workspace. The document scrolls inside its own canvas. */
.app-editor-mode .editor-workbench{height:calc(var(--input-viewport-height,100dvh) - var(--shell-top,68px) - 145px);min-height:0!important;max-height:none;box-sizing:border-box;isolation:isolate}
.native-local.app-editor-mode .editor-workbench{height:calc(var(--input-viewport-height,100dvh) - 135px)}
.app-editor-mode .editor-workbench .editor-canvas{display:flex!important;flex-direction:column;flex:1 1 0!important;min-height:0!important;max-height:100%;overflow:hidden!important;box-sizing:border-box}
.app-editor-mode .editor-workbench .rich-toolbar{position:relative!important;top:auto!important;flex:0 1 auto;min-height:0;max-height:42%;overflow:auto;z-index:2}
.app-editor-mode .editor-workbench .rich-editor{display:flex;flex-direction:column;flex:1 1 0;min-height:0!important;max-height:100%;overflow:hidden;box-sizing:border-box}
.app-editor-mode .editor-workbench .rich-editor .tiptap{flex:1 1 0;min-height:0!important;max-height:none!important;overflow:auto!important;box-sizing:border-box;scroll-padding:20px;overflow-wrap:anywhere}
.app-editor-mode .editor-workbench>.publication-gallery{flex:0 0 auto;min-height:0;max-height:28%;box-sizing:border-box;position:relative;z-index:1}
.app-editor-mode.editor-typing .rich-voice,.app-editor-mode.editor-typing .editor-actions,.editor-typing .app-dock,.app-editor-mode.editor-keyboard .rich-voice,.app-editor-mode.editor-keyboard .editor-actions{display:none!important}
.app-editor-mode.editor-typing,.app-editor-mode.editor-keyboard{--shell-bottom:12px;padding-bottom:12px!important}
.native-local.app-editor-mode.editor-typing #mainContent,.native-local.app-editor-mode.editor-keyboard #mainContent{padding-bottom:12px!important}
.app-editor-mode.editor-typing .editor-workbench,.app-editor-mode.editor-keyboard .editor-workbench{height:calc(var(--input-viewport-height,100dvh) - var(--shell-top,68px) - 18px)}
.native-local.app-editor-mode.editor-typing .editor-workbench,.native-local.app-editor-mode.editor-keyboard .editor-workbench{height:calc(var(--input-viewport-height,100dvh) - 18px)}
.editor-typing .rich-wave,.editor-keyboard .rich-wave{bottom:8px!important;pointer-events:none;opacity:.7}
.editor-input-done{display:none;position:fixed;top:calc(var(--shell-top,68px) + 4px);right:12px;z-index:1005;width:34px;height:34px;padding:5px;background:var(--bg-2);color:var(--accent);border:1px solid var(--border);border-radius:10px}.editor-typing .editor-input-done,.editor-keyboard .editor-input-done{display:grid;place-items:center}.native-local .editor-input-done{top:4px}
.rich-editor blockquote,.post-content blockquote,.native-preview blockquote{position:relative;margin:14px 0;padding:16px 18px 16px 42px!important;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--border));border-inline-start:4px solid var(--accent);border-radius:12px;background:color-mix(in srgb,var(--accent) 9%,var(--bg-1));font-style:italic;color:var(--text-0);box-sizing:border-box}
.rich-editor blockquote::before,.post-content blockquote::before,.native-preview blockquote::before{content:'“';position:absolute;left:12px;top:6px;color:var(--accent);font:32px Georgia,serif}
.rich-editor blockquote p,.post-content blockquote p{margin:0!important;padding:0!important;background:none!important}
.rich-tool{position:relative}.rich-delete-badge{position:absolute;right:1px;bottom:0;font-size:12px!important;background:var(--bg-1);border-radius:3px;color:#f27988}
.rich-table-style{flex-basis:100%;font-size:12px;border-top:1px solid var(--border)}.rich-table-style summary{padding:6px;cursor:pointer}.rich-table-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;padding:8px}
.rich-table-fields label{display:grid;gap:4px}.rich-table-fields input{width:100%;min-width:0;box-sizing:border-box}.rich-table-fields input[type=color]{height:30px}.rich-table-fields select{max-width:100%!important;width:100%}
.rich-editor table,.post-content table,.native-preview table{border-collapse:collapse;max-width:100%}.rich-editor td,.rich-editor th,.post-content td,.post-content th,.native-preview td,.native-preview th{border:1px solid var(--border);padding:8px;overflow-wrap:anywhere}.post-content table{width:100%}
.rich-editor .selectedCell{position:relative}.rich-editor .selectedCell::after{content:'';position:absolute;inset:0;pointer-events:none;background:#a78bfa30}
.cover-layer-settings{border:1px solid var(--border);border-radius:12px;overflow:hidden;min-width:0}.cover-layer-settings>summary{padding:10px;cursor:pointer;font-size:12px;overflow-wrap:anywhere}.cover-layer-settings[open]>summary{border-bottom:1px solid var(--border);color:var(--accent)}.cover-layer-settings .cover-layer-row{padding:10px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.cover-layer-row input[type=range]{padding:0;height:24px;accent-color:var(--accent)}.cover-layer-row output{color:var(--text-2);font-variant-numeric:tabular-nums}.cover-workspace__crop input[type=range]{accent-color:var(--accent)}
