.story-editor{display:grid;gap:9px;margin:0 0 18px}.story-editor [hidden]{display:none!important}
.editor-toolbar,.editor-media-tabs{display:flex;flex-wrap:wrap;gap:5px}
.editor-toolbar button,.editor-media-tabs button{padding:6px 9px;border:1px solid #dfe3e9;border-radius:5px;background:#f6f7f9;color:#262c38;font-size:13px}
.editor-toolbar button:hover,.editor-media-tabs button[aria-pressed=true]{background:#fff2f4;border-color:#e5a8b5;color:#a7132d}
.editor-canvas{min-height:300px;padding:14px;border:1px solid #dfe3e9;border-radius:7px;background:white;line-height:1.65;overflow-wrap:anywhere}
.editor-canvas:focus{outline:2px solid #a7132d;outline-offset:1px}.editor-canvas h2{font-size:23px;margin:16px 0 6px}
.editor-media{display:grid;gap:9px;padding:12px;background:#fff;border:1px solid #e8e9ed;border-radius:7px}
.editor-media p{margin:0;font-size:13px;color:#4f5560}.editor-media [role=status]:empty{display:none}.editor-media .button{justify-self:start}
.editor-file>span{display:block;font-weight:700;font-size:13px;margin-bottom:3px}.editor-cover-preview{width:auto;max-width:100%;max-height:160px;border-radius:6px}
.editor-canvas img,.editor-canvas video,.story-main .bodycopy img,.story-main .bodycopy video{display:block;width:auto;max-width:100%;height:auto;max-height:520px;margin:12px auto;border-radius:7px}
.story-main .bodycopy blockquote,.editor-canvas blockquote{margin:16px 0;padding:9px 14px;border-left:3px solid #c41130;background:#f5f6f8}.story-main .bodycopy h2{font-size:1.45em;line-height:1.25;margin:1em 0 .45em}

.story-editor{gap:0;border:1px solid #dce0e7;border-radius:12px;background:white;box-shadow:0 6px 18px #1a21350d}
.editor-desk-head{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#202632;color:white;border-top:3px solid #c41130;border-radius:11px 11px 0 0;padding:14px 16px}
.editor-desk-head span{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#d7dbe3}.editor-desk-head h3{font-size:20px;margin:4px 0 0}
.editor-modes{display:flex;gap:3px;background:#343c4b;border-radius:7px;padding:3px}
.editor-modes button{padding:6px 10px;border-radius:5px;font-size:13px;font-weight:700;color:#f4f6f9}
.editor-modes button[aria-pressed=true]{background:#fff;color:#a5102c}
.story-editor .editor-toolbar{position:sticky;top:0;z-index:2;padding:9px 12px;background:#f7f8fa;border-bottom:1px solid #e3e6eb}
.story-editor .editor-toolbar button{background:white}.story-editor .editor-toolbar button:hover{background:#fff0f3}
.story-editor .editor-canvas{border:0;border-radius:0;padding:20px 16px;min-height:340px;outline-offset:-2px}
.editor-meter{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;background:#f8f9fb;border-top:1px solid #e8eaf0;font-size:12px;color:#4d586c}
.story-editor .editor-media{margin:12px;border-color:#e4e8ee;background:#f8f9fb}
.editor-media-title{font-size:15px}.editor-media-title svg{color:#a5102c}
.editor-live-preview{min-height:340px;padding:20px 16px;overflow-wrap:anywhere}.editor-live-preview>img{aspect-ratio:16/9;max-height:290px;border-radius:7px;margin-bottom:14px}.editor-live-preview h2{font-size:26px;margin:0 0 8px}.editor-live-preview>p{color:#535e71}.editor-live-preview [data-preview-content]{line-height:1.7}.editor-live-preview [data-preview-content] :is(img,video){max-width:100%;height:auto;border-radius:6px}
@media(max-width:480px){.editor-desk-head{padding:10px}.editor-modes button{font-size:12px;padding-inline:6px}}

.story-main .bodycopy figure,.editor-canvas figure,.editor-live-preview figure{display:block;margin:18px 0}
.story-main .bodycopy figure>img,.editor-canvas figure>img,.editor-live-preview figure>img{display:block;width:auto;height:auto;max-width:100%;max-height:none;margin:0 auto;border-radius:7px}
