.editor-load-state,.editor-recovery-notice{box-sizing:border-box;max-width:1600px;margin:12px auto;padding:12px 16px;border:1px solid #dce3e7;border-radius:6px;background:#fff;color:#082338;font-size:14px;line-height:1.7}
.editor-load-state{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.editor-load-state[hidden]{display:none}
.editor-recovery-notice{border-color:#d6c399;background:#fff9ec}.editor-recovery-notice p{margin:4px 0 8px}.editor-recovery-notice details{margin:8px 0}.editor-recovery-notice details p{white-space:pre-wrap;overflow-wrap:anywhere}
.editor-load-state button,.editor-recovery-notice button,.admin-inline-status~button{padding:6px 12px;margin:4px 8px 0 0;border:1px solid #dce3e7;border-radius:4px;background:#fff;color:#082338;font:inherit;cursor:pointer}
.editor-recovery-notice>button:first-of-type{background:#006bff;border-color:#006bff;color:#fff}
.admin-inline-status{display:block;line-height:1.6;font-size:12px;color:#536779;margin-top:6px}.admin-inline-status[role=alert]{color:#b42318}
.studio-stream-error{color:#b42318;font-size:13px;line-height:1.6;border-top:1px solid #dce3e7;padding-top:10px}
@media(max-width:700px){.editor-load-state,.editor-recovery-notice{margin:8px 12px;padding:12px}.editor-recovery-notice button{min-height:44px}}
html body #btn-ai-digest{display:inline-flex!important;align-items:center;justify-content:center;min-height:30px;padding:4px 10px;border:1px solid #dce3e7;border-radius:4px;background:#fff;color:#006bff;font:inherit;font-size:12px;cursor:pointer}
html body #btn-ai-digest:disabled{opacity:.55;cursor:wait}
/* Narrow layouts must stretch the editable canvas, even when the desktop flex height is released. */
@media(max-width:1100px){body.writing-editor-page .editor-card .ed-left{width:100%;align-items:stretch}body.writing-editor-page .editor-card #editor{width:100%;box-sizing:border-box}}
@media(max-width:700px){
 body.writing-editor-page .workbench[data-view=edit]>.editor-card{height:auto!important;min-height:0}
 body.writing-editor-page .editor-card .ed-layout{display:flex!important;flex-direction:column;flex:none;height:auto}
 body.writing-editor-page .editor-card .ed-left{flex:none;min-height:0}
 body.writing-editor-page .editor-card #editor{flex:none;height:360px;min-height:360px}
 body.writing-editor-page .editor-card #editor-stats{gap:6px 10px;flex:none}
 body.writing-editor-page .editor-card>div:last-child{flex:none}
 body.writing-editor-page .editor-card>div:last-child .btn{min-height:44px!important;margin:0}
 body.writing-editor-page .editor-card>div:last-child #status{flex-basis:100%;margin:0}
 body.writing-editor-page .title-row{width:100%;box-sizing:border-box}
 body.writing-editor-page .title-row input{min-width:0}
}
