.editor-mode-controls{display:flex;align-items:center;gap:9px;min-width:0}.editor-mode-controls #visualEditorToggle{font-weight:600;font-size:10px;border:1px solid var(--stroke);padding:5px 8px;background:var(--pale)}
.visual-manuscript-editor{position:absolute;inset:0;min-width:0;min-height:0;overflow:auto;box-sizing:border-box;padding:26px 27px;background:#fff!important;color:#26344e!important;caret-color:#26344e;font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;font-size:16px;line-height:2;white-space:pre-wrap;overflow-wrap:break-word;outline:none;tab-size:2;font-kerning:none;font-variant-ligatures:none;z-index:2}
.visual-manuscript-editor.vertical{writing-mode:vertical-rl;text-orientation:mixed;overflow-y:hidden;overflow-x:auto}.visual-manuscript-editor ruby{ruby-position:over}.visual-manuscript-editor rt{font-size:.5em;letter-spacing:0;line-height:1}.visual-manuscript-editor:empty::before{content:'ここから物語を書き始めましょう。';color:#9aa3b4;pointer-events:none}.visual-editing .memo-highlight-layer,.visual-editing .memo-popup{display:none!important}
.manuscript-tcy{text-combine-upright:all;-webkit-text-combine:horizontal;letter-spacing:0}
#rubyMonoFields{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0;max-height:220px;overflow:auto}.ruby-mono-field{display:flex;align-items:center;gap:6px;width:140px}.ruby-mono-field>span{font-size:18px}.ruby-mono-field input{min-width:0;width:100px;border:1px solid var(--stroke);border-radius:5px;padding:7px;background:var(--bg);color:var(--ink)}
.focus-edit-toolbar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;background:var(--pale);border:1px solid var(--stroke);padding:4px;border-radius:7px}.focus-edit-toolbar button{font-size:11px;padding:5px 8px;border-radius:4px;background:transparent;color:var(--ink)}.focus-edit-toolbar button:hover{background:var(--bg);color:var(--primary)}.focus-dialog-head{flex-wrap:wrap}#focusChapterTitle{flex:1 1 80px}.focus-edit-toolbar{flex:0 1 auto}.focus-dialog-head #focusModeClose{margin-left:auto}
@media(max-width:1100px){.focus-edit-toolbar{order:3;flex-basis:100%}.focus-dialog-head .focus-exit-hint{margin-left:auto}}

/* Decoration belongs to the editor; the global toolbar contains display settings. */
.editor-pane-heading{flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:42px;height:auto;padding:7px 12px}.editor-pane-heading>.editor-pane-label{flex:none;white-space:nowrap}.editor-pane-heading>.formatting-set{display:flex;align-items:center;flex-wrap:wrap;gap:3px;min-width:0;max-width:100%;padding:3px 5px;background:var(--pale);border:1px solid var(--stroke);border-radius:7px;flex:0 1 auto}.editor-pane-heading .formatting-set .tool{padding:4px 6px;font-size:11px;min-height:26px}.editor-pane-heading .md-format-picker{max-width:145px;min-width:95px;padding:4px;font-size:10px}.editor-pane-heading>.editor-mode-controls{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.editor-pane-heading #editorCount{white-space:nowrap;font-size:10px}.editor-pane-heading .formatting-set button:hover{background:var(--bg)}
@media(max-width:1000px){.editor-pane-heading>.formatting-set{order:3;flex-basis:100%}.editor-pane-heading>.editor-mode-controls{max-width:calc(100% - 90px)}}

.ruby-dialog.ruby-dialog-fallback[open]{display:flex;position:fixed;inset:0;margin:auto;z-index:1001;max-height:calc(100dvh - 30px);box-shadow:0 0 0 100vmax #141824aa,0 15px 60px #0005;background:var(--bg);color:var(--ink)}

/* v0.23.3: stable editor chrome, sized by the pane rather than the monitor viewport. */
.draft-pane{container-type:inline-size;container-name:manuscript-pane}
.editor-pane-heading{display:grid;grid-template-columns:minmax(72px,max-content) minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:6px 10px;justify-content:normal}
.editor-pane-heading>.editor-pane-label{grid-column:1;grid-row:1}
.editor-pane-heading>.editor-mode-controls{grid-column:2;grid-row:1;justify-self:end;margin-left:0;display:flex;flex-wrap:nowrap;max-width:none;gap:6px}
.editor-pane-heading>.formatting-set{grid-column:1 / -1;grid-row:2;order:0;flex-basis:auto;justify-self:stretch;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;max-width:100%;box-sizing:border-box}
.editor-pane-heading .formatting-set>*{flex:none}
.editor-pane-heading #visualEditorToggle,.focus-edit-toolbar #focusVisualToggle{box-sizing:border-box;width:164px;min-width:164px;max-width:164px;white-space:nowrap}
.editor-pane-heading #editorCount{display:inline-block;width:64px;min-width:64px;max-width:64px;text-align:right;overflow:hidden;text-overflow:ellipsis}
@container manuscript-pane (min-width:840px){.editor-pane-heading{grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto}.editor-pane-heading>.formatting-set{grid-column:2;grid-row:1}.editor-pane-heading>.editor-mode-controls{grid-column:3;grid-row:1}}
@container manuscript-pane (max-width:360px){.editor-pane-heading>.editor-mode-controls{grid-column:1 / -1;grid-row:2}.editor-pane-heading>.formatting-set{grid-row:3}}
