/* Article editor: typography-first, spacious canvas — deliberately different presentation from
   the compact Post composer. See CREATE CONTENT V1 boundary. */
.ffArticleEditor{color:#eaf0fc;background:#0b1220;border:1px solid #263349;border-radius:20px;width:min(760px,calc(100% - 28px));max-height:94dvh;padding:0;box-shadow:0 28px 100px #0008;font:15px/1.6 Inter,system-ui,sans-serif;overflow:hidden}
.ffArticleEditor::backdrop{background:#020714b8;backdrop-filter:blur(7px)}
.ffArticleEditor.ffArticleWorkspace{position:fixed;inset:0 0 0 var(--ff-creator-workspace-left,0px);z-index:750;width:auto;max-width:none;height:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;overscroll-behavior:contain;box-shadow:none;background:#0b1220}
.ffArticleEditor.ffArticleWorkspace::backdrop{display:none}
.ffArticleEditor.ffArticleWorkspace .art-canvas{max-height:calc(100dvh - 58px)}
.ffArticleEditor.ffArticleWorkspace>.fs-storage-entry{position:fixed;left:calc(var(--ff-creator-workspace-left,0px) + 14px);bottom:14px;z-index:752;padding:8px 12px;border:1px solid #2b405c;border-radius:9px;background:#142138;color:#bed8f5;box-shadow:0 8px 24px #02081266}
.ffArticleEditor *{box-sizing:border-box}
.ffArticleEditor header{display:flex;align-items:center;gap:14px;padding:14px 22px;border-bottom:1px solid #202c40;position:sticky;top:0;background:#0b1220;z-index:2}
.ffArticleEditor header>button[data-art="close"]{background:none;border:0;color:#93a6c2;font-size:14px;padding:6px 0;cursor:pointer}
.ffArticleEditor header>button[data-art="close"]:hover{color:#e7edf9}
.art-status{flex:1;font-size:var(--fs-secondary);color:#7c93b3;text-align:left}
.art-header-actions{display:flex;gap:8px}
.ffArticleEditor button{font:inherit;cursor:pointer}
.art-header-actions button{background:#16233a;color:#dbe6f8;border:1px solid #2a3a52;border-radius:9px;padding:8px 16px;font-size:var(--fs-secondary)}
.art-header-actions button:hover{background:#1f3050}
/* CL MXH bug fix, 2026-09-25 - owner: "back thì về create post, close thì mới về homepage" - a
   distinct exit control, separate from Back (which now stays inside the Create flow - see
   header()'s own note in article.js). Small icon-only button, same quiet treatment as Story's own
   ffStoryCloseBtn, so it doesn't compete with Preview/Publish for attention. */
.art-header-actions .art-closeBtn{background:transparent;border:0;color:#7c93b3;width:34px;padding:8px 0;font-size:15px;border-radius:8px}
.art-header-actions .art-closeBtn:hover{background:#1f3050;color:#eef3ff}
/* CL MXH - PUBLISH BUTTON / FOCFOC DNA REQUIRED, 2026-09-25 (GPT): "current Publish button is too
   generic... must use the approved FOCFOC visual language" - was the same pale #b8d4ff-fill/dark-
   text pattern as creator.css's .fc-primary (fixed there too, same round). Real FF blue, white
   label, hover/active states from that one color family, its own focus ring - Preview stays on
   the plain quiet .art-header-actions button style above so Publish is the only accented control. */
.art-header-actions .art-primary{background:#0a97ff;border-color:#0a97ff;color:#fff;font-weight:700}
.art-header-actions .art-primary:hover{background:#2ba6ff;border-color:#2ba6ff}
.art-header-actions .art-primary:active{background:#0880dd;border-color:#0880dd}
.art-header-actions .art-primary:focus-visible{outline:2px solid #5ebbff;outline-offset:2px}

.art-canvas{padding:8px 40px 60px;overflow-y:auto;max-height:calc(94dvh - 58px)}
.art-cover{margin:16px auto 24px;max-width:640px}
.art-cover-add{width:100%;padding:30px;border:1px dashed #2c3c54;border-radius:14px;background:transparent;color:#7c93b3;font-size:var(--fs-secondary)}
.art-cover-add:hover{background:#101b2c;border-color:#3a557a;color:#cfe0fa}
.art-cover-set{position:relative;border-radius:14px;overflow:hidden}
.art-cover-set img{width:100%;max-height:320px;object-fit:contain;display:block;background:#0b1422}
.art-cover-set button{position:absolute;bottom:10px;background:#0b1626d9;color:#eaf1fb;border:0;border-radius:8px;padding:7px 12px;font-size:var(--fs-secondary)}
.art-cover-set button[data-art="pick-cover"]{right:100px}
.art-cover-set button[data-art="remove-cover"]{right:10px}

/* CL MXH - LONG-FORM EDITOR VISUAL/PRODUCT COMPOSITION FAIL, 2026-09-21 ("title focus thô",
   "input viết bài phải là trung tâm"): title/subtitle used to be full-width (stretching to the
   canvas's own 40px-padding edges) while the body column (.art-blocks) below was capped at 640px -
   the header of the piece and its own body didn't share a column, reading as unplanned rather than
   one deliberate writing surface. Both now share the exact same 640px centered column as the body.
   Title also gets its own hover/focus treatment (a soft highlight, matching .art-edit's own focus
   affordance below) instead of being a bare unstyled <input> indistinguishable from a form field -
   it should feel like the one thing on this screen that matters most. */
.art-title{display:block;width:100%;max-width:640px;margin:0 auto;border:0;background:transparent;color:#f4f7fd;font-size:38px;font-weight:750;letter-spacing:-.8px;line-height:1.25;padding:8px 10px;margin-top:4px;border-radius:10px;transition:background .15s}
.art-title::placeholder{color:#48597a}
.art-title:hover{background:#0f1a2b}
.art-title:focus{outline:none;background:#101c30;box-shadow:0 0 0 1px #2c3f5c}
.art-subtitle{display:block;width:100%;max-width:640px;margin:2px auto 0;border:0;background:transparent;color:#9fb0c8;font-size:19px;font-weight:450;padding:6px 10px;border-radius:10px;transition:background .15s}
.art-subtitle::placeholder{color:#3f5170}
.art-subtitle:hover{background:#0f1a2b}
.art-subtitle:focus{outline:none;background:#101c30;box-shadow:0 0 0 1px #2c3f5c}
/* Subtitle used to carry a border-bottom of its own - visually outranking the title, backwards.
   The divider now belongs to the header block as a whole, right before the body starts. */
.art-header-divider{max-width:640px;margin:18px auto 6px;border-top:1px solid #1a2438}

/* Read-only confirmation that a "Quote in post" attachment survived the 300-char hand-off into
   this editor (A2, CREATE CONTENT V1 dedup round) — reuses compose.js's own .rc-comment-ref
   markup/CSS (creator/compose.css, already loaded globally) rather than a second design. */
.art-comment-ref{max-width:640px;margin:4px auto 14px}
.art-blocks{margin:6px auto 0;max-width:640px}
.art-block{position:relative;outline:none;border-radius:12px}
/* Visual "this block is selected" feedback for clicking an image/divider/etc. and pressing
   Backspace/Delete to remove it (2026-09-25) — Google Docs/Notion show the same kind of highlight
   ring around a selected inline object. */
.art-block:focus{box-shadow:0 0 0 2px #3b9eff}
.art-block-actions{position:absolute;right:0;top:-2px;display:flex;gap:3px;opacity:0;transition:opacity .15s}
.art-block:hover .art-block-actions,.art-block:focus-within .art-block-actions{opacity:1}
.art-block-actions button{font-size:var(--fs-secondary);padding:3px 7px;background:#16233a;border:1px solid #2a3a52;border-radius:6px;color:#b9c9e0}
/* CL MXH - "chia tách nhau ra làm gì? ko để gần nhau được à?", 2026-09-22: 10px top+bottom padding
   per paragraph meant 20px of dead air between any two consecutive blocks - once the ↑/↓/× row
   was removed from text blocks (nothing left needing that room), the gap just read as paragraphs
   floating apart instead of one continuous page, the opposite of the Google Docs feel this whole
   redesign has been aiming for. Cut to close-but-not-touching paragraph spacing. */
.art-edit{outline:none;min-height:1.6em;font-size:18px;line-height:1.85;color:#e6ecf7;padding:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.art-edit:empty:before{content:attr(data-placeholder);color:#5a6f8c;pointer-events:none}
/* CL MXH - "có cái này làm gì?", 2026-09-22: a blue inset border + 14px indent shift used to
   appear on whichever paragraph currently had focus - real editors (Google Docs included) don't
   highlight/indent the paragraph you're typing in, they just show the native blinking caret.
   Removed; the caret itself is signal enough. */
.art-h2{font-size:26px;font-weight:700;letter-spacing:-.4px;padding-top:20px}
.art-quote{font-size:20px;font-style:italic;color:#c7d8ee;border-left:3px solid #63b3f8;padding-left:18px!important}
.art-media{margin:8px 0}
.art-media img,.art-media video{width:100%;max-height:460px;object-fit:contain;border-radius:12px;background:#040a13;display:block}
.art-media input{width:100%;margin-top:8px;font-size:var(--fs-secondary);border:0;border-bottom:1px solid #223047;background:transparent;color:#c3d2e8;padding:6px 0;text-align:center}
.art-media-empty{padding:26px;border:1px dashed #2c3c54;border-radius:12px;text-align:center}
.art-media-empty button{background:#16233a;border:1px solid #2a3a52;border-radius:9px;padding:9px 16px;color:#dbe6f8;font-size:var(--fs-secondary)}
.art-gallery{margin:8px 0}
.art-gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.art-gallery-item{position:relative;background:#0b1626;border:1px solid #223047;border-radius:10px;padding:6px}
.art-gallery-item img,.art-gallery-item video{width:100%;height:140px;object-fit:cover;border-radius:8px;background:#040a13;display:block}
.art-gallery-item input{width:100%;margin-top:6px;font-size:var(--fs-secondary);border:0;border-top:1px solid #223047;background:transparent;color:#c3d2e8;padding:6px 0 0;text-align:center}
.art-gallery-item-actions{display:flex;justify-content:flex-end;gap:3px;margin-bottom:4px}
.art-gallery-item-actions button{font-size:var(--fs-secondary);padding:3px 7px;background:#16233a;border:1px solid #2a3a52;border-radius:6px;color:#b9c9e0}
.art-gallery>button[data-art^="gallery-pick"]{margin-top:8px;background:#16233a;border:1px solid #2a3a52;border-radius:9px;padding:9px 16px;color:#dbe6f8;font-size:var(--fs-secondary)}
.art-link-fields{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #263349;border-radius:10px;background:#101a2b}
.art-link-fields input{border:1px solid #2a3a52;background:#0b1220;color:#e6ecf7;border-radius:8px;padding:9px 11px;font-size:14px}
.art-ref-pick{display:flex;gap:8px;padding:14px;border:1px solid #263349;border-radius:10px;background:#101a2b}
.art-ref-pick input{flex:1;border:1px solid #2a3a52;background:#0b1220;color:#e6ecf7;border-radius:8px;padding:9px 11px;font-size:14px}
.art-ref-pick button{background:#2c3b51;border:0;border-radius:8px;padding:0 16px;color:#fff;font-weight:700}
/* The inline "Insert link" box reuses .art-ref-pick's exact look (same input+button pairing) —
   [hidden] alone loses to that class's own `display:flex` at equal CSS specificity, so this needs
   its own slightly more specific rule to actually hide when not in use. */
.art-link-inline[hidden]{display:none}
.art-link-inline{margin-top:8px}
.art-reference{padding:12px 14px;border:1px solid rgba(56,181,241,.34);border-radius:10px;background:#092445}
.art-reference small{display:block;color:#82acd0;font-size:var(--fs-secondary);text-transform:uppercase;font-weight:900;margin-bottom:3px}
.art-reference b{font-size:15px;color:#fff}
.art-h3{font-size:21px;font-weight:700;letter-spacing:-.3px;padding-top:14px}
.art-list ul,.art-list ol{margin:0;padding-left:26px}
.art-list li{margin:4px 0}
.art-divider{padding:18px 0}
.art-divider hr{border:0;border-top:1px solid #263349;margin:0}
/* ONE real contenteditable for the whole canvas (2026-09-25 rewrite, second pass — "bôi đen text
   khi bị vướng hình ảnh" — two SEPARATE contenteditable=true regions can never share a selection,
   no matter what sits between them, so splitting into one-contenteditable-per-run around each
   image still couldn't select across the image itself; the whole canvas is now the ONE editable
   root, and every atomic block renders contenteditable="false" — a real nested "island" the
   cursor/selection moves through, standard for any block editor with inline images). Its direct
   children are real <p>/<h2>/<h3>/<blockquote>/<ul>/<ol> tags (flow) or .art-block islands (atomic)
   — the old .art-h2/.art-quote/.art-list styling (still used by nothing else) gets retargeted here.
   white-space reset to normal: pre-wrap was needed only for the old single-paragraph-per-div
   model's manual <br> handling, and would otherwise double-collapse spacing oddly around real
   block-level tags. */
.art-blocks{white-space:normal;outline:none}
.art-blocks>p,.art-blocks>h2,.art-blocks>h3,.art-blocks>blockquote{margin:0;padding:3px 0}
.art-blocks>h2{font-size:26px;font-weight:700;letter-spacing:-.4px;padding-top:20px}
.art-blocks>h3{font-size:21px;font-weight:700;letter-spacing:-.3px;padding-top:14px}
.art-blocks>blockquote{font-size:20px;font-style:italic;color:#c7d8ee;border-left:3px solid #63b3f8;padding-left:18px}
.art-blocks>ul,.art-blocks>ol{margin:4px 0;padding-left:26px}
.art-blocks>ul>li,.art-blocks>ol>li{margin:4px 0}
.art-blocks [data-ph]:empty:before{content:attr(data-ph);color:#5a6f8c;pointer-events:none}
/* Media toolbar button, icon-only (2026-09-25: merged into the single #art-float row, text label
   no longer fit the icon-only convention the rest of the row already uses — reuses the exact same
   photo-frame-plus-play-badge glyph creator/compose.css's own .rc-media-icon already established). */
.art-media-icon{position:relative;display:inline-flex}
.art-media-icon i{position:absolute;right:-4px;bottom:-4px;font-style:normal;font-size:var(--fs-secondary);background:#0f1a2c;border-radius:50%;width:13px;height:13px;display:flex;align-items:center;justify-content:center;line-height:1}
.art-edit a{color:#6fc9ff;text-decoration:underline}

/* Compact floating toolbar — shown only while text is selected, never a fixed always-visible
   bar (see CREATE CONTENT V1 §8). Positioned via JS, clamped against the panel's own live rect
   (see updateFloatingToolbar() in article.js) instead of hardcoded viewport numbers - see that
   function's own comment for why the old numbers read as "misplaced". Softened into more of an
   elevated card (bigger radius/shadow, a hairline border) and given a quick fade/scale-in instead
   of appearing instantly, so it reads as a deliberate control following the selection rather than
   a UI element popping up in a random spot. */
/* CL MXH - LONG-FORM EDITOR STILL "NGU" VS CREATE WORK'S "KHÔN", 2026-09-21: owner sent a direct
   screenshot comparison against Create Work's own persistent B/I/U/list/font/link toolbar
   (`.rc-format` in creator/compose.css) and called this editor's toolbar the "dumb" one by
   contrast - even after round 1 fixed its positioning and the `[hidden]`-vs-`display:flex` bug
   (that bug's own history is preserved below since it's still relevant to how `.art-float` behaves
   now), a floating, selection-only popup reads as a fundamentally weaker affordance next to a real
   always-on bar. Converted to a persistent bar in normal document flow, `position:sticky` so it
   stays visible while scrolling a long article (mirrors `.rc-format`'s own `position:sticky`),
   sitting right after the title/subtitle header and before the writing blocks - the same place
   Create Work's own toolbar sits relative to its own title/intro fields. No JS positions it
   anymore; article.js's `syncToolbarState()` only tracks which block it currently targets.
   HISTORY (round 1, still true of the base rule below): `display:flex` was set unconditionally
   here, which beat the browser's own `[hidden]{display:none}` default the instant an author
   stylesheet touches `display` on the same element - kept as `:not([hidden])` defensively even
   though the element no longer carries a `hidden` attribute at all in the current markup, in case
   a future change reintroduces one. */
.art-float:not([hidden]){display:flex}
.art-float{position:sticky;top:0;z-index:3;gap:2px;max-width:640px;margin:10px auto 4px;background:#16233a;border:1px solid #2f4162;border-radius:12px;padding:5px;box-shadow:0 10px 28px #0007}
.art-float button{background:transparent;border:0;color:#dbe6f8;padding:6px 9px;border-radius:7px;font-size:var(--fs-secondary);min-width:30px}
.art-float button:hover{background:#28405f}
/* CL MXH - "icon link cho đẹp đi", 2026-09-22: the emoji link glyph read as mismatched next to the
   rest of this row's flat, monochrome text/symbol buttons (B/I/H2/H3/❝/• ≡/1. ≡/―) - replaced with
   an inline SVG (Material "link" glyph, the same chain-link shape Google Docs' own link button
   uses) that inherits the button's own text color via currentColor, so it matches every state
   (default/hover) instead of rendering as a fixed-color platform emoji. */
.art-float button svg{vertical-align:-3px}

/* CL MXH - "phải đẩy đủ add media này nọ vào nữa chứ" + "khỏi nút add này đi, cứ xuống hàng rồi
   gõ, mọi thứ add khác cứ để trên thanh công cụ xài chung", 2026-09-22: mirrors Create Work's own
   `.rc-tools` row (creator/compose.css) - Media/Reference/Member, always visible, sitting directly
   above the text-format bar, same stacking order as `workToolbar()` renders its two rows. These
   two rows are now the ONLY way to add a block - the old between-block "+ Add" pill/menu
   (`.art-between`/`.art-add-menu`, hover-only, invisible at rest) is gone; pressing Enter while
   writing just continues into a new paragraph instead (see the keydown listener in article.js). */
.art-tools{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;gap:6px;max-width:640px;margin:10px auto 0;background:#16233a;border:1px solid #2f4162;border-radius:12px 12px 0 0;border-bottom:0;padding:8px 8px 4px}
.art-tools button{background:#101c30;border:1px solid #263349;color:#dbe6f8;padding:7px 12px;border-radius:8px;font-size:var(--fs-secondary);font-weight:600;white-space:nowrap}
.art-tools button:hover{background:#1f3050;border-color:#3a557a}
.art-float{border-radius:0 0 12px 12px;margin-top:0;flex-wrap:wrap}

.art-alert{color:#ffb5ad;font-size:var(--fs-secondary);min-height:0;margin:10px 0 0}
.art-alert:empty{display:none}

/* Preview: same typography rules as the real Single Article view. */
.art-preview{max-width:700px;margin:0 auto}
.art-cover-preview{margin:16px 0 24px;border-radius:14px;overflow:hidden}
.art-cover-preview img{width:100%;max-height:360px;object-fit:contain;display:block;background:#0b1422}
.art-preview-title{font-size:32px;line-height:1.25;letter-spacing:-.6px;font-weight:750;margin:0 0 8px}
.art-preview-subtitle{font-size:17px;color:#b9c6d8;margin:0 0 12px}
.art-preview-meta{font-size:var(--fs-secondary);color:#8294a8;display:flex;gap:14px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #1f2b3f}

@media(max-width:600px){
 .ffArticleEditor{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0}
 .ffArticleEditor header{padding:12px 16px}
 .art-canvas{padding:6px 18px 50px;max-height:calc(100dvh - 52px)}
 .art-title{font-size:27px}
 .art-subtitle{font-size:15px}
 .art-edit{font-size:16px}
 .art-h2{font-size:21px}
 .art-block-actions{opacity:1;position:static;justify-content:flex-end;margin-bottom:2px}
 .art-preview-title{font-size:25px}
 .art-gallery-grid{grid-template-columns:1fr}
}

/* Master mobile audit: existing actions need usable touch targets and the same FF styling. */
.ffArticleEditor header>button{background:transparent;color:#93bfff;border:1px solid #2a3a52;border-radius:9px;padding:8px 12px;min-height:44px;min-width:44px;font-size:var(--fs-secondary)}
.art-header-actions button,.art-header-actions .art-closeBtn,.art-float button{min-height:44px;min-width:44px}
.art-header-actions .art-closeBtn{width:44px}
.ffArticleEditor button:focus-visible{outline:2px solid #0a97ff;outline-offset:2px}
@media(max-width:600px){.ffArticleEditor header{gap:8px;padding:10px 12px}.art-header-actions{gap:6px}.art-header-actions button{padding:8px 12px}.art-status{min-width:0}}

.art-link-inline button,.art-link-inline input{min-height:44px;min-width:44px}

/* Long-form writing uses the full Create workspace; keep the narrower typography-first column
   for the compact Article dialog, but let desktop workspaces use the space the owner asked for. */
.ffArticleWorkspace .art-cover{max-width:900px}
.ffArticleWorkspace .art-title,.ffArticleWorkspace .art-subtitle,.ffArticleWorkspace .art-header-divider,
.ffArticleWorkspace .art-comment-ref,.ffArticleWorkspace .art-blocks{max-width:1080px}
.art-link-inline{display:flex;flex-wrap:wrap;gap:8px}
.art-link-inline input{flex:1;max-width:100%;width:180px;background:#101c30;border:1px solid #263349;border-radius:8px;color:#dbe6f8;padding:8px 12px;font:inherit}

.art-link-inline button[data-art="link-go"]{background:#0a97ff;border-color:#0a97ff;color:#fff}
@media(max-width:600px){.art-link-inline input{flex-basis:100%;width:100%}}

/* Let the real header size define the remaining scroll area at every breakpoint. */
.ffArticleEditor[open]{display:flex;flex-direction:column}
.ffArticleEditor header{flex:0 0 auto}
.ffArticleEditor .art-canvas{flex:1 1 auto;min-height:0;max-height:none}

/* Inherited quote source stays a full touch target in Edit and Preview. */
.ffArticleEditor .art-inherited-references button{min-height:44px;min-width:44px;}

/* SPEC_v2 short post -> long post (Owner 2026-10-07). Existing blue/green notice look: calm green strip under the header. */
.ffArticleEditor .art-notice{display:flex;align-items:center;gap:12px;margin:10px 16px 0;padding:12px 14px;border-radius:12px;background:rgba(46,204,113,.14);border:1px solid rgba(46,204,113,.5);color:#d9ffe8}
.ffArticleEditor .art-noticeText{flex:1;min-width:0}
.ffArticleEditor .art-noticeText strong{display:block;font-size:14px}
.ffArticleEditor .art-noticeText p{margin:2px 0 0;font-size:var(--fs-secondary);line-height:1.4;color:#bff0d3}
.ffArticleEditor .art-notice button{flex:0 0 auto;min-height:44px;min-width:56px;padding:0 16px;border-radius:10px;border:1px solid rgba(46,204,113,.7);background:transparent;color:#d9ffe8;font-weight:700;cursor:pointer}
@media(max-width:540px){.ffArticleEditor .art-notice{flex-direction:column;align-items:stretch}.ffArticleEditor .art-notice button{align-self:flex-start}}
@keyframes artFlash{from{background:rgba(255,236,150,.45)}to{background:transparent}}
.ffArticleEditor .art-blocks.art-flash{animation:artFlash 1.4s ease-out 1}
@media(prefers-reduced-motion:reduce){.ffArticleEditor .art-blocks.art-flash{animation:none}}
/* "Save this post?" box: centred card on large screens, bottom sheet on phones. One primary button. */
.ffArticleEditor .art-sheetBackdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(2,6,18,.6)}
.ffArticleEditor .art-sheet{width:min(380px,calc(100% - 32px));padding:20px;border-radius:16px;background:#0f1b33;border:1px solid #33455f;color:#eaf0fc;display:grid;gap:10px}
.ffArticleEditor .art-sheet h3{margin:0;font-size:18px}
.ffArticleEditor .art-sheet p{margin:0 0 4px;color:#b9c8e2;font-size:14px}
.ffArticleEditor .art-sheet .art-primary{min-height:48px;border-radius:12px}
.ffArticleEditor .art-sheetRow{display:flex;gap:8px}
.ffArticleEditor .art-sheetRow button{flex:1;min-height:44px;border-radius:10px;border:1px solid #33455f;background:transparent;color:#cfe0f7;cursor:pointer}
@media(max-width:540px){.ffArticleEditor .art-sheetBackdrop{place-items:end stretch}.ffArticleEditor .art-sheet{width:100%;border-radius:18px 18px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
.ffArticleEditor .art-sheet .art-primary{background:#0a97ff;color:#fff;border:0;font-weight:700;cursor:pointer}
.ffArticleEditor:has([data-art-sheet]) .fs-storage-entry{display:none}
.ffArticleEditor .art-sheetBackdrop{z-index:2000}

/* E2/E3: ProseMirror body. The editor element itself carries .art-blocks.art-edit, so every rule above keeps applying unchanged. */
.art-editor-host{display:block}
.art-blocks .art-empty[data-ph]:before{content:attr(data-ph);color:#5a6f8c;pointer-events:none;float:left;height:0}
.art-blocks.ProseMirror{white-space:pre-wrap;word-wrap:break-word}
.art-blocks .ProseMirror-selectednode,.art-blocks .art-block.ProseMirror-selectednode{box-shadow:0 0 0 2px #3b9eff}
.art-blocks .ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}
.art-blocks .ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid #e6ecf7;animation:artGap 1.1s steps(2,start) infinite}
@keyframes artGap{to{visibility:hidden}}
.art-blocks.ProseMirror-focused .ProseMirror-gapcursor{display:block}
.art-blocks .ProseMirror-trailingBreak{display:none}
.art-blocks p:has(>.ProseMirror-trailingBreak:only-child){min-height:1.85em}
.art-album{margin:8px 0}
.art-album-bar{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.art-album-bar button{font-size:var(--fs-secondary);padding:6px 10px;background:#16233a;border:1px solid #2a3a52;border-radius:8px;color:#dbe6f8}
.art-album-bar button:disabled{opacity:.4}
.art-album-caption{width:100%;margin-top:6px;font-size:var(--fs-secondary);border:0;border-top:1px solid #223047;background:transparent;color:#c3d2e8;padding:6px 0 0;text-align:center}
.art-album .ffAlbumThumb{touch-action:pan-x;cursor:grab;position:relative}
.art-album .ffAlbumThumb.art-dragging{opacity:.55;outline:2px dashed #63b3f8}
.art-album .ffAlbumThumb.art-drop-before:before,.art-album .ffAlbumThumb.art-drop-after:after{content:"";position:absolute;top:0;bottom:0;width:3px;background:#63b3f8;border-radius:2px}
.art-album .ffAlbumThumb.art-drop-before:before{left:-3px}
.art-album .ffAlbumThumb.art-drop-after:after{right:-3px}

/* B23 (09/10): the storage chip floats over the writing area, so it only shows when the space is nearly full or full; the numbers are always in Your space > Storage */
.fs-storage-entry[data-state="normal"]{display:none!important}
