/* Paper writing surface, independent from the dark navigation chrome. */
html:has(body.ed-editor-mode){overflow-x:clip}
body.ed-editor-mode{max-width:100%;overflow-x:clip}
.ed-editor-mode #editorialStudio,.ed-editor-mode .ed-workspace,.ed-editor-mode #edMain,.ed-editor-mode .ed-writing,.ed-editor-mode .ed-content-editor{min-width:0;max-width:100%}
.ed-editor-mode .ed-writing{color:#151515;color-scheme:light;--studio-text:#151515;--studio-muted:#454545}
.ed-editor-mode .ed-writing .ed-field>span,.ed-editor-mode .ed-writing .ed-check{color:#151515}
.ed-editor-mode .ed-writing .ed-field :is(input,textarea,select){background:#fff;color:#151515;border-color:#777;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.ed-editor-mode .ed-writing :is(input,textarea)::placeholder{color:#555}
.ed-editor-mode .ed-writing .ql-toolbar.ql-snow{background:#f3f2e9;color:#151515;border-color:#777}
.ed-editor-mode .ed-writing .ql-toolbar.ql-snow :is(.ql-picker,.ql-picker-label,button){color:#151515}
.ed-editor-mode .ed-writing .ql-snow .ql-stroke{stroke:#151515}
.ed-editor-mode .ed-writing .ql-snow .ql-fill{fill:#151515}
.ed-editor-mode .ed-writing .ql-snow :is(.ql-picker-options,.ql-tooltip){background:#fff;color:#151515;border-color:#777}
.ed-editor-mode .ed-writing .ql-editor{color:#151515;overflow-wrap:anywhere}
.ed-editor-mode .ed-writing .ed-body-toolbar{--studio-text:#fff;--studio-muted:#ccc;color:#fff}
.ed-editor-mode .ed-writing .ed-body-toolbar :is(button,svg){color:#fff}
.ed-editor-mode .ed-writing .ed-body-toolbar{flex-wrap:wrap;gap:8px}
.ed-editor-mode .ed-writing .ed-body-toolbar>div{display:flex;flex-wrap:wrap;min-width:0}
.ed-editor-mode .ed-schedule-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ed-editor-mode .ed-schedule-actions button{min-height:44px;white-space:normal}
.ed-editor-mode [data-schedule-error]{color:#ffb8b8;overflow-wrap:anywhere}
@media(max-width:850px){
 .ed-editor-mode .ed-topbar{width:100%;box-sizing:border-box;max-width:100%;min-width:0}
 .ed-editor-mode #edViewTitle{min-width:0;overflow-wrap:anywhere;font-size:clamp(22px,7vw,40px)}
 .ed-editor-mode #edSaveStatus{font-size:12px;flex-shrink:1;min-width:0}
 .ed-editor-mode #edTopActions{display:flex;flex-wrap:wrap;width:100%;min-width:0;gap:6px}
 .ed-editor-mode #edTopActions :is(button,a){min-height:44px;flex-shrink:0}
 .ed-editor-mode .ed-form-grid{grid-template-columns:minmax(0,1fr)}
 .ed-editor-mode .ed-field,.ed-editor-mode .ed-body-block{min-width:0;max-width:100%}
 .ed-editor-mode .ed-writing .ql-toolbar.ql-snow .ql-formats{margin-right:8px}
 .ed-editor-mode .ed-table-wrap{max-width:100%;overflow-x:auto}
 .ed-editor-mode .ed-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-width:calc(100% - 24px)}
}
.ed-editor-mode .ed-writing .ql-toolbar.ql-snow :is(button:hover,button.ql-active,.ql-picker-label:hover,.ql-picker-label.ql-active,.ql-picker-item:hover,.ql-picker-item.ql-selected){background:#e1e0d5;color:#151515}
.ed-editor-mode .ed-writing .ql-toolbar.ql-snow button{min-width:44px;min-height:44px}
.ed-editor-mode .ed-writing .ql-snow .ql-tooltip input[type=text]{background:#fff;color:#151515}
.ed-editor-mode #edViewTitle{white-space:normal}
.ed-editor-mode .ed-writing{background:#f3f2e9;--studio-surface:#fff;--studio-raised:#fff;--studio-hover:#e1e0d5;--studio-line:#888;--ed-muted:#454545}
.ed-editor-mode .ed-writing .ql-container{background:#f3f2e9;color:#151515}
.ed-editor-mode .ed-writing .ed-body-toolbar{--studio-surface:#0b0b0b;--studio-raised:#141414;--studio-hover:#242424;--studio-line:#666;background:#0b0b0b}
