/* FF Story/Novel authoring — SN-5 UX/UI V1 + SN-6 STORY WRITING EXPERIENCE LOCK (2026-09-24,
   GPT-owned design, this file is the implementation; reference:
   FF_STORY_UXUI_PROTOTYPE_V8_3_ALBUM_REORDER.html). Tokens reuse FF's own surface/accent colors
   (creator.css's #258afa/#60abff family, #0c1423/#0d1527 navy surfaces) — no new color language. */
.ffCreator input#story-file[hidden],.ffCreator input#story-cover-file[hidden],.ffCreator input#story-inline-file[hidden],.ffCreator input#story-import-file[hidden]{display:none}

.ffCreator:has(.ffStoryOverview),.ffCreator:has(.ffStoryChapterCanvasWrap),.ffCreator:has(.ffComicEditor){width:min(1120px,calc(100% - 40px));max-height:90dvh;padding:0;background:#0a1220}

/* STORY OVERVIEW - FULL VISUAL POLISH PASS, 2026-09-25 (GPT: "vẫn cảm giác prototype hơn là
   Creator product cao cấp" - functional flow unchanged, this pass only touches hierarchy/spacing/
   surfaces/typography/FF DNA). Topbar gets a hair more depth (subtle shadow, not just a hairline)
   so it reads as a real surface, not a flat bar. */
/* STORY OVERVIEW - FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): hierarchy/emphasis only, no
   layout change. The topbar's own border-bottom is now a two-layer shadow ending in a thin real
   FF-blue line - a restrained "you are inside FOCFOC" cue GPT asked for, without making the
   header louder than the content below it. */
/* .ffCreator prefix here is load-bearing, not stylistic: creator.css's own generic
   ".ffCreator header{border-bottom:1px solid #233047}" (class+element, 0,1,1) was silently
   winning over a bare ".ffStoryTopBar" (0,1,0) regardless of source order - confirmed via
   document.styleSheets inspection, the real FF-blue border-bottom below was computing as the
   generic gray one instead. Same specificity-collision bug class already hit buttons/inputs/
   labels in this file; now hit a <header> too. ".ffCreator .ffStoryTopBar" (0,2,0) beats it
   unconditionally. */
.ffCreator .ffStoryTopBar{display:flex;align-items:center;gap:14px;padding:16px 28px;border-bottom:1.5px solid #0a97ff40;position:sticky;top:0;z-index:20;background:#0a1220;border-radius:22px 22px 0 0;box-shadow:0 6px 16px -10px #000a}
/* .ffCreator button prefix throughout this file (not just plain .ffStoryXxxBtn classes) — a bare
   single-class selector on a <button> loses to creator.css's own generic ".ffCreator button"
   rule(s) (class+type = higher specificity), the exact same bug class the SN-5 report already
   caught once for inputs/selects; recurred here for buttons because that fix was only ever applied
   to input/select/textarea, never audited across every new button class SN-6 added. */
.ffCreator button.ffStoryBackBtn{border:0;background:transparent;color:#8a9db0;padding:6px 8px;font-size:17px;border-radius:8px;flex-shrink:0}
.ffCreator button.ffStoryBackBtn:hover{background:#152036;color:#f2f6fa}
.ffStoryBackToWork{font-size:15px;font-weight:600;color:#f2f6fa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}
/* "Saved" as a quiet status PILL (was bare floating text - GPT: "Saved đang trôi, không có
   trọng tâm"), same restrained chip language the rest of the screen already uses. */
.ffStoryStatus{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-secondary);font-weight:600;color:#7fd88f;flex-shrink:0;cursor:default;padding:5px 11px;border-radius:999px;background:#0f2419;border:1px solid #1c3a28}
.ffStoryStatus:empty{display:none}
.ffStoryStatus::before{content:'';width:5px;height:5px;border-radius:50%;background:#7fd88f;flex-shrink:0}
.ffStoryStatus.ffStoryStatusError{color:#ff9a8f;background:#2a1512;border-color:#4a231d;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ffStoryStatus.ffStoryStatusError::before{background:#ff9a8f}
.ffStoryStatus.ffStoryStatusSaving{color:#8a9db0;background:#16243d;border-color:#253047}
.ffStoryStatus.ffStoryStatusSaving::before{background:#8a9db0}
/* STORY V1 PHASE A2, 2026-09-25: direct Preview action from inside the chapter editor itself —
   previously only reachable via the Overview screen. */
.ffCreator button.ffStoryChapterPreviewBtn{border:1px solid #223050;background:#101a2e;color:#c7d3e2;padding:7px 14px;font-size:var(--fs-secondary);font-weight:600;border-radius:999px;flex-shrink:0}
.ffCreator button.ffStoryChapterPreviewBtn:hover{background:#152036;color:#f2f6fa;border-color:#2c3f66}
.ffCreator button.ffStoryDoneBtn,.ffCreator button.ffComicSaveDraft{border:1px solid #2178cb;background:#123253;color:#dff1ff;padding:7px 14px;font-size:var(--fs-secondary);font-weight:650;border-radius:999px;flex-shrink:0}
.ffCreator button.ffStoryDoneBtn:hover,.ffCreator button.ffComicSaveDraft:hover{background:#17436f;border-color:#379cff}
/* PHASE A FIX ROUND, 2026-09-25 (GPT Soi CL, P0.1): Overview/Chapter Editor had no visible way to
   leave Story editing at all — Escape/'cancel' reached close()'s dirty-exit logic, but nothing a
   user could see or click did. A compact, quiet ✕ — distinct from Chapter Editor's own "← Story
   title" (that only ever means "back to Overview", never "leave editing"). */
.ffCreator button.ffStoryCloseBtn{border:0;background:transparent;color:#8a9db0;width:30px;height:30px;font-size:15px;border-radius:8px;flex-shrink:0}
.ffCreator button.ffStoryCloseBtn:hover{background:#152036;color:#f2f6fa}

/* ---------- Work Overview (Screen A) — STORY OVERVIEW UX/UI, 2026-09-25 (GPT-locked visual
   target, owner-supplied reference screenshot). Top bar is brand+section only (the old
   single-option "Work type" <select> is gone — owner removed Story-type/style selection
   entirely); a breadcrumb+heading block owns the "where am I / what is this" job instead, kept
   compact per the spec ("do not create a giant hero header"). ---------- */
/* CL MXH bug fix, 2026-09-25 - owner: "phải chèn logo FOCFOC" (FF/FOCFOC DNA First gate, see
   BRAIN/CURRENT.md) - was a generic ◈ glyph placeholder, not the real brand asset (real symbol,
   creator/ff-brand-symbol.png, the same asset the app's own boot screen already uses - not
   redrawn). Full visual polish pass, same day (GPT: "Logo FOCFOC quá nhỏ, gần như mất DNA") -
   the mark itself is bigger now and sits on its own faint chip surface so the brand presence
   reads as real chrome, not a stray icon next to text. */
.ffStoryBrand{color:#e2e8f2;font-size:14px;font-weight:700;letter-spacing:.2px;padding:6px 10px 6px 8px;display:flex;align-items:center;gap:10px}
.ffCreator button.ffStoryCreateBack{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 12px;border:1px solid #2b4666;border-radius:9px;background:#142138;color:#cfe4ff;font-size:var(--fs-secondary);white-space:nowrap;flex-shrink:0}
.ffCreator button.ffStoryCreateBack:hover{border-color:#3e75ac;background:#182b45}
.ffStoryBrandMark{width:32px;height:25px;object-fit:contain;flex-shrink:0}
.ffStoryBrandDivider{color:#2a3c56;font-weight:400;margin:0 2px}
.ffStoryOverviewHead{padding:24px 28px 8px}
.ffStoryBreadcrumb{margin:0 0 16px;color:#5c7191;font-size:var(--fs-secondary);font-weight:600;display:flex;align-items:center;gap:6px}
.ffStoryOverviewHeadRow{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
/* GPT: "Story overview nên là page title rõ, title của story là field content, không cạnh
   tranh" - page heading keeps clear ownership of "biggest/boldest text in the chrome" (see the
   matching ffStoryTitleInput size reduction below, which used to be the single largest text on
   the whole screen at 32px - larger than this page title itself). */
.ffStoryOverviewHeadRow h1{margin:0 0 4px;font-size:22px;font-weight:750;letter-spacing:-.2px;color:#f5f8fc}
.ffStoryOverviewHelper{margin:0;color:#5c7191;font-size:var(--fs-secondary)}
.ffStoryDraftChip{flex-shrink:0;padding:5px 12px;border-radius:999px;border:1px solid #2a3c56;background:#101b2d;color:#8ec6ff;font-size:var(--fs-secondary);font-weight:650;text-transform:uppercase;letter-spacing:.4px;margin-top:2px}
.ffStoryOverview{display:grid;grid-template-columns:260px 1fr;gap:32px;padding:24px 28px 28px}
.ffStoryCoverCol{min-width:0}
.ffStoryFieldLabel{margin:0 0 8px;font-size:var(--fs-secondary);font-weight:650;color:#8a9db0;text-transform:uppercase;letter-spacing:.4px}
.ffStoryCover{position:relative;width:100%;aspect-ratio:2/3;border-radius:14px;overflow:hidden;background:#0d1729;border:1px solid #1c2740;transition:border-color .12s}
.ffStoryCoverMeta{margin:10px 0 0;text-align:center;color:#5c7191;font-size:var(--fs-secondary);line-height:1.6}
.ffStoryCoverEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;color:#8a9db0;padding:0}
/* STORY OVERVIEW - FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): "cover placeholder quá lớn,
   trống rỗng" - the icon slot used to render literally nothing (empty span, just a colored box) -
   now a real upload-arrow glyph so the empty state reads as an action, not a blank tile. Hover/
   focus both move to the real FF blue (was a duller #2c5a8c) so the cue matches the rest of the
   redesigned flow's accent. */
.ffStoryCover:has(.ffStoryCoverEmpty:hover),.ffStoryCover:has(.ffStoryCoverEmpty:focus-visible){border-color:#0a97ff}
.ffStoryCoverEmpty:hover{background:#122036}
.ffStoryCoverEmpty:hover .ffStoryCoverIcon,.ffStoryCoverEmpty:focus-visible .ffStoryCoverIcon{background:#123253;color:#4fb2ff}
.ffStoryCoverIcon{width:36px;height:36px;border-radius:10px;background:#16243d;color:#8a9db0;display:grid;place-items:center;transition:background .12s,color .12s}
.ffStoryCoverLabel{font-size:14px;font-weight:650;color:#dbe4f0}
.ffStoryCoverHint{font-size:var(--fs-secondary);color:#5c7191}
.ffStoryCover.has-cover img{width:100%;height:100%;object-fit:contain;display:block}
.ffStoryCoverActions{position:absolute;inset:auto 0 0 0;display:flex;gap:1px;opacity:0;transition:opacity .15s;background:linear-gradient(0deg,#000c 0%,transparent 100%);padding-top:24px}
.ffStoryCover.has-cover:hover .ffStoryCoverActions,.ffStoryCover.has-cover:focus-within .ffStoryCoverActions{opacity:1}
.ffCreator button.ffStoryCoverBtn{flex:1;border:0;border-radius:0;background:#000a;color:#f2f6fa;font-size:var(--fs-secondary);padding:9px 4px}
.ffCreator button.ffStoryCoverBtn:hover{background:#0009}
.ffCreator button.ffStoryCoverBtn.danger{color:#ffb5ad}

.ffStoryImportCard{margin-top:12px}
.ffCreator button.ffStoryImportBtn{width:100%;height:36px;border-radius:9px;border:1px solid #2a3c56;background:#101b2d;color:#8ec6ff;font-size:var(--fs-secondary);font-weight:600}
.ffCreator button.ffStoryImportBtn:hover{background:#152036}
.ffStoryImportHint{text-align:center;color:#5c7191;font-size:var(--fs-secondary);margin-top:6px;letter-spacing:.3px}

.ffStoryMetaCol{min-width:0}
/* STORY OVERVIEW - FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): "Untitled story hiện quá mờ...
   phải là focal point chính". Bumped past the page h1 (22px/750) so the real content - the title
   the reader will actually see - unambiguously outranks the chrome around it; placeholder stays
   dimmer than a real title but is no longer near-invisible (#3d4f6b, ~2:1 against the #0a1220
   panel bg, raised to #5a7397, ~3.4:1). */
.ffCreator input.ffStoryTitleInput{display:block;width:100%;background-color:transparent;border:0;color:#f8fafd;font-size:32px;font-weight:700;letter-spacing:-.5px;padding:4px 0;margin:0 0 8px}
.ffCreator input.ffStoryTitleInput::placeholder{color:#5a7397}
.ffCreator input.ffStoryTitleInput.ffStoryFieldInvalid{outline:2px solid #ff9a8f;outline-offset:4px;border-radius:6px}
.ffStoryFieldError{color:#ff9a8f;font-size:var(--fs-secondary);margin:2px 0 16px}
.ffCreator textarea.ffStoryIntroInput{display:block;width:100%;background-color:transparent;border:0;color:#8a9db0;font-size:14.5px;line-height:1.6;padding:0;margin:0 0 24px;resize:vertical;min-height:44px}
.ffCreator textarea.ffStoryIntroInput::placeholder{color:#5c7191}

/* Visibility + Tags — both real, both scoped narrow per the locked spec: Visibility shows only
   the one real published state that exists today (no fake Private/Unlisted), Tags is the sole
   classification mechanism (no separate genre/type field reintroduced). */
.ffStoryFieldRow{margin:0 0 24px;display:grid;grid-template-columns:minmax(0,260px);gap:16px}
.ffStoryField{min-width:0}
.ffStoryField>label{display:block;margin:0 0 8px;font-size:var(--fs-secondary);font-weight:650;color:#8a9db0}
.ffCreator select.ffStoryVisibilitySelect{width:100%;background-color:#101b2d;border:1px solid #253047;color:#e8edf4;font-size:var(--fs-secondary);font-weight:600;padding:10px 30px 10px 12px;border-radius:10px;margin:0;appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8a9db0 50%),linear-gradient(135deg,#8a9db0 50%,transparent 50%);background-position:calc(100% - 14px) 55%,calc(100% - 9px) 55%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.ffCreator select.ffStoryVisibilitySelect:focus{outline:2px solid #88b7ff;outline-offset:2px}
.ffStoryFieldHead{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.ffStoryFieldHead label{font-size:var(--fs-secondary);font-weight:650;color:#8a9db0}
.ffStoryFieldCount{font-size:var(--fs-secondary);color:#5c7191}
.ffStoryFieldHint{margin:8px 0 0;font-size:var(--fs-secondary);color:#5c7191;line-height:1.5}
.ffStoryTagsBox{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-height:42px;padding:6px 8px;background:#101b2d;border:1px solid #253047;border-radius:10px}
.ffStoryTagsBox:focus-within{outline:2px solid #88b7ff;outline-offset:1px}
.ffStoryTagChip{display:flex;align-items:center;gap:5px;background:#16243d;border:1px solid #2a3c56;color:#c7d3e2;font-size:var(--fs-secondary);font-weight:600;padding:5px 6px 5px 11px;border-radius:999px}
.ffCreator .ffStoryTagChip button{border:0;background:transparent;color:#7c8ea6;font-size:15px;line-height:1;padding:2px 4px;border-radius:50%}
.ffCreator .ffStoryTagChip button:hover{background:#233450;color:#f2f6fa}
.ffCreator input.ffStoryTagInput{flex:1;min-width:120px;background:transparent;border:0;color:#e8edf4;font-size:var(--fs-secondary);padding:6px 4px}
.ffCreator input.ffStoryTagInput::placeholder{color:#5c7191}
.ffCreator input.ffStoryTagInput:disabled{display:none}

.ffStoryDivider{border-top:1px solid #1c2740;margin:8px 0 24px}

/* STORY OVERVIEW - FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): "Chapters 1 và row chapter đang
   khá chìm" - section title a shade stronger/brighter, Add-chapter border brighter by default (not
   just on hover) so it reads as a real secondary action rather than nearly invisible chrome, row
   hover surface lightened so the currently-hovered row is unambiguous. */
.ffStoryChHead{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.ffStoryChHead h3{margin:0;font-size:15.5px;font-weight:700;color:#e2e8f2;display:flex;align-items:center;gap:8px}
.ffStoryChCount{color:#5c7191;font-size:var(--fs-secondary);font-weight:600}
.ffStoryChHeadHint{flex:1;min-width:0;color:#5c7191;font-size:var(--fs-secondary)}
.ffCreator button.ffStoryAddBtn{background:transparent;border:1px solid #33455f;color:#8ec6ff;font-size:var(--fs-secondary);font-weight:650;padding:6px 12px;border-radius:8px}
.ffCreator button.ffStoryAddBtn:hover{background:#152036;border-color:#3d688e;color:#a8d4ff}
.ffStoryChList{display:flex;flex-direction:column;gap:6px}

.ffStoryChRow{display:flex;align-items:center;gap:10px;border-radius:12px;padding:4px 6px 4px 2px;transition:background .12s}
.ffStoryChRow:hover{background:#132339}
.ffStoryChDrag{cursor:grab;color:#3d4f6b;font-size:var(--fs-secondary);letter-spacing:-2px;touch-action:none;padding:4px;flex-shrink:0}
.ffStoryChRow:hover .ffStoryChDrag{color:#5c7191}
.ffStoryChNum{flex-shrink:0;width:24px;color:#5c7191;font-size:var(--fs-secondary);font-weight:650;font-variant-numeric:tabular-nums}
.ffCreator button.ffStoryChBody{flex:1;min-width:0;text-align:left;background:none;border:0;padding:8px 0;color:inherit;font:inherit;cursor:pointer}
.ffStoryChBody b{display:block;font-size:14.5px;font-weight:600;color:#f2f6fa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ffStoryChBody small{display:block;color:#8a9db0;font-size:var(--fs-secondary);margin-top:2px}
.ffStoryDragging{opacity:.5;outline:2px dashed #60abff;border-radius:12px}
.ffStoryDropTarget{outline:2px dashed #60abff;border-radius:12px}

/* GPT: "Empty chapter state and populated chapter list must feel like the same product" - was a
   dashed placeholder-box language (a different visual system from the real rows below it); now a
   plain rounded surface using the exact same background/radius tone as a real .ffStoryChRow, just
   quieter (no hover state of its own, softer border) so switching between empty/populated never
   feels like two different screens. */
.ffStoryEmptyChapters{background:#0d1729;border:1px solid #1c2740;border-radius:12px;padding:32px 20px;text-align:center}
.ffStoryEmptyIcon{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 12px;border-radius:11px;background:#16243d;font-size:17px}
.ffStoryEmptyTitle{margin:0 0 4px;font-size:15px;font-weight:650;color:#c7d3e2}
.ffStoryEmptyHint{margin:0 0 16px;font-size:var(--fs-secondary);color:#8a9db0}
/* PUBLISH BUTTON / FOCFOC DNA REQUIRED, 2026-09-25 (GPT, applies site-wide - same fix as
   creator.css's .fc-primary and article.css's .art-primary): was the app's older generic button
   blue (#258afa), not the real sampled FOCFOC blue. */
.ffCreator button.ffStoryPrimaryBtn{background:#0a97ff;color:#fff;border-color:#0a97ff;font-weight:700;padding:10px 18px;border-radius:10px}
.ffCreator button.ffStoryPrimaryBtn:hover{background:#2ba6ff;border-color:#2ba6ff}
.ffCreator button.ffStoryPrimaryBtn:active{background:#0880dd;border-color:#0880dd}
.ffCreator button.ffStoryPrimaryBtn:focus-visible{outline:2px solid #5ebbff;outline-offset:2px}

.ffStoryRowMenu{position:relative;flex-shrink:0}
.ffStoryRowMenu summary{list-style:none;cursor:pointer;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#5c7191;font-size:15px}
.ffStoryRowMenu summary::-webkit-details-marker{display:none}
.ffStoryRowMenu summary:hover{background:#152036;color:#c7d3e2}
.ffStoryMenuPanel{position:absolute;right:0;top:calc(100% + 4px);z-index:5;background:#111d30;border:1px solid #253047;border-radius:12px;padding:6px;display:flex;flex-direction:column;gap:2px;min-width:150px;box-shadow:0 14px 40px #0009}
.ffStoryMenuPanel button{text-align:left;background:transparent;border:0;color:#c7d3e2;font-size:var(--fs-secondary);padding:8px 10px;border-radius:7px;width:100%}
.ffStoryMenuPanel button:hover{background:#1c304c}
.ffStoryMenuPanel button.danger{color:#ff9a8f}
/* STORY CHAPTER ACCESS UX CORRECTION, 2026-09-25 (GPT spec) — Free/Paid is a PRIMARY chapter
   property, shown as its own directly-tappable chip on the row (never buried in the "..." menu
   with secondary actions like Rename/Delete). Tapping the chip opens a small local popover
   (.ffStoryChAccessPanel, reusing .ffStoryMenuPanel's own look) for Free/Paid + price.

   VISUAL REVISION, same day (GPT: "functionally correct, but visually this is NOT approved" —
   popover was too large/heavy, detached from the chip, oversized segmented Free/Paid control read
   as an admin settings panel, native number spinner looked unfinished, green "Paid" chip was too
   saturated/system-badge-like). Redesigned compact per GPT's exact target: plain "Access" label +
   two ordinary radio rows (no segmented box), a "Price" label + a quiet bordered field (no native
   spinner arrows), popover capped at 230px, quieter chip color (muted blue-grey, not bright
   green) — same interaction model, only the visual weight changed. */
.ffStoryChAccessMenu{margin-left:auto}
/* SIXTH VISUAL PASS, same day (GPT: "selected state không rõ, chỉ khác chút border/chấm" +
   "màu hiện tại đù và đục... quá nhiều navy xám/blue bẩn, thiếu contrast tinh tế"). Two fixes:
   (1) a real, tight color SYSTEM instead of ad hoc hex values scattered across every rule (one
   `--ff-*` set defined once on the popover, every descendant reads from it - so "the same blue"
   and "the same secondary text tone" are actually guaranteed the same value everywhere instead of
   6 slightly-different blue-grays by accident); (2) the FF blue itself is now sampled directly
   from the owner's real logo asset (creator/ff-brand-symbol.png, ~rgb(1,151,254)), not a re-used
   generic `#258afa` app-button blue. (2) selected vs unselected now differs on THREE signals at
   once (surface + border + dot fill), never just the dot alone; unselected visibly recedes
   (dimmer text, no border) instead of looking like an equally-weighted second card. */
.ffStoryChAccessPanel{--ff-bg:#070c16;--ff-surface:#0c1420;--ff-surface-active:#0d2036;--ff-blue:#0a97ff;--ff-blue-dim:#155e94;--ff-text:#f4f8ff;--ff-text-dim:#8092a8;--ff-text-faint:#4c6178;--ff-border:#26374d;
 width:min(240px,calc(100vw - 16px));box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:var(--ff-bg);border:1px solid var(--ff-border);box-shadow:0 10px 26px #000a}
/* STORY OVERVIEW - FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): "Free chip hơi yếu; cần
   consistent với hệ chip FF" - Free now carries its own visible (if quiet) border instead of
   relying on background alone to read as a chip, matching the real bordered-chip language used
   elsewhere (.ffStoryDraftChip, .ffStoryTagChip). Unlock's border/background move onto the real
   FF-blue family (richer than the old #154267/#0d2036) - its label text stays the same light-blue
   tint used for on-dark text throughout this file (labels/icons use tints of --ff-blue, filled
   surfaces use the raw value), so it's darker-surface-plus-bright-text, not a color swap. */
.ffStoryRowMenu summary.ffStoryChAccess{width:auto;height:auto;padding:4px 10px;border-radius:20px;background:#0f1a28;color:#8fa2ba;font-size:var(--fs-secondary);font-weight:650;white-space:nowrap;border:1px solid #22314a}
.ffStoryRowMenu summary.ffStoryChAccess:hover{background:#152036;color:#c7d3e2;border-color:#33455f}
.ffStoryRowMenu summary.ffStoryChAccess.paid{background:#0d2440;color:#4fb2ff;border-color:#175386}
/* Collision flip - see the matching 'toggle' listener (story.js) that measures real available
   space and applies this class only when the default below-the-chip position would overflow past
   the dialog's own bottom edge (footer). */
.ffStoryChAccessPanel.flipUp{top:auto;bottom:calc(100% + 4px)}
.ffStoryChAccessTitle{display:block;font-size:14px;font-weight:700;color:var(--ff-text)}
.ffStoryChAccessPanel[popover]{max-height:min(80vh,620px);overflow:auto;overscroll-behavior:contain}
.ffStoryChAccessHeader{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:12px}
.ffStoryChAccessHeader .ffStoryChAccessTitle{flex:1 1 auto;white-space:nowrap}
.ffStoryChAccessHeader>button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ff-border);border-radius:9px;background:transparent;color:var(--ff-text-dim);font-size:20px;line-height:1;cursor:pointer}
.ffStoryChAccessHeader>button:hover{background:var(--ff-surface-active);color:var(--ff-text)}
.ffStoryChAccessActions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px}
.ffStoryChAccessActions button{min-width:70px;min-height:40px;padding:7px 13px;border:1px solid var(--ff-border);border-radius:9px;background:var(--ff-surface);color:var(--ff-text);font:inherit;font-size:var(--fs-secondary);font-weight:650;cursor:pointer}
.ffStoryChAccessActions .ffStoryChAccessSave{border-color:#0787dc;background:#0787dc;color:#fff}
.ffStoryChAccessActions .ffStoryChAccessCancel:hover{background:#15243a}
.ffStoryChOptionList{display:flex;flex-direction:column;gap:8px}
/* CL MXH bug fix, 2026-09-25 - GPT: "icon trông như vệt dọc vô nghĩa" - ROOT CAUSE found by
   inspecting real computed styles, not guessed: this row is a <label>, and creator.css's own
   generic `.ffCreator label{display:block;margin:17px 0}` (element+class = higher specificity
   than a bare class selector) was silently overriding this rule's `display:flex` entirely -
   confirmed live, computed display was "block" not "flex", collapsing the 15x15 radio dot into a
   ~2px sliver. Same bug CLASS already documented once in this file for buttons/inputs, now hit
   labels too - fixed the same established way, prefixing with `.ffCreator label` for equal-or-
   higher specificity instead of patching the symptom. */
.ffCreator label.ffStoryChOptionRow{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 10px;margin:0;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;transition:background .12s,border-color .12s}
.ffStoryChOptionRow:hover{background:#0e1622}
/* Selected = surface + border + dot fill, all three at once - never rely on the dot alone. */
.ffStoryChOptionRow.on{background:var(--ff-surface-active);border-color:var(--ff-blue-dim)}
.ffStoryChOptionRow input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.ffStoryChOptionDot{flex-shrink:0;width:15px;height:15px;border-radius:50%;border:1.5px solid #33465c;position:relative}
.ffStoryChOptionRow.on .ffStoryChOptionDot{border-color:var(--ff-blue)}
.ffStoryChOptionRow.on .ffStoryChOptionDot::after{content:'';position:absolute;inset:3px;border-radius:50%;background:var(--ff-blue)}
.ffStoryChOptionText{display:flex;flex-direction:column;gap:1px;min-width:0}
/* Unselected recedes (dimmer title, no bright text) instead of reading as an equally-weighted
   second option - selected is the ONLY one in full-contrast white. */
.ffStoryChOptionText b{font-size:var(--fs-secondary);font-weight:650;color:var(--ff-text-dim);transition:color .12s}
.ffStoryChOptionRow.on .ffStoryChOptionText b{color:var(--ff-text)}
.ffStoryChOptionText small{font-size:var(--fs-secondary);color:var(--ff-text-faint)}
.ffStoryChOptionRow.on .ffStoryChOptionText small{color:var(--ff-text-dim)}
.ffStoryChUnlockGroup,.ffStoryChPriceGroup{display:flex;flex-direction:column;gap:6px}
.ffStoryChAccessLabel{font-size:var(--fs-secondary);font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--ff-text-faint)}
.ffStoryChMethodRow{display:flex;gap:6px}
.ffStoryChMethodChip{display:inline-flex;align-items:center;font-size:var(--fs-secondary);font-weight:650;color:var(--ff-blue);background:var(--ff-surface-active);border:1px solid var(--ff-blue-dim);border-radius:8px;padding:5px 10px}
/* CL MXH bug fix, 2026-09-25 round 3 - GPT FINAL VISUAL DECISION, Option A (owner: "chỉ có 2
   viền? mày ngu quá thì bỏ mịa viền cho rồi"): a bordered [-][value][+][FFC] box kept reading as
   "3 blocks glued together" no matter how the internal dividers/outer border were tuned - round 1
   fixed a real geometric clipping bug, round 2 fixed a real 1.52:1 contrast failure, and it STILL
   looked broken, because the actual problem was never one border's color - it was 3 visually
   separate pieces trying to fake being 1 piece. Per GPT's explicit rule ("if it can't be made
   pixel-perfect, remove the outer border completely rather than ship an ugly broken control"):
   outer box, inner dividers and the boxed number field are gone. This is now a flat inline
   control - no rectangle anywhere - with only a soft hover/focus background per interactive
   piece, matching the sitewide "fewer boxes, fewer borders" direction GPT gave for this pass. */
.ffStoryChPriceStepper{display:inline-flex;align-items:center;gap:2px;height:37px}
.ffCreator button.ffStoryChPriceStep{width:30px;height:30px;flex-shrink:0;background:transparent;border:0;border-radius:8px;color:var(--ff-text-dim);font-size:16px;font-weight:650;display:grid;place-items:center;padding:0;transition:background .12s,color .12s}
.ffCreator button.ffStoryChPriceStep:hover{background:var(--ff-surface-active);color:var(--ff-text)}
.ffCreator input.ffStoryChPriceInput{flex:0 0 auto;width:52px;height:30px;margin:0;box-sizing:border-box;appearance:none;-webkit-appearance:none;background:transparent;border:0;border-radius:7px;color:var(--ff-text);font-size:15px;font-weight:650;padding:0;text-align:center;transition:background .12s}
.ffStoryChPriceInput:hover{background:var(--ff-surface-active)}
/* Focus reads as "the value is active," not "a box appeared" - an inset underline scoped to just
   this segment, per GPT: "subtle FF-blue underline... do not draw a full box around the whole
   stepper." outline is suppressed (this replaces it) so no double indicator competes with it. */
.ffStoryChPriceInput:focus{outline:0;background:var(--ff-surface-active);box-shadow:inset 0 -2px 0 var(--ff-blue)}
/* CL MXH bug fix, 2026-09-25 - owner: "mày còn làm xấu chỗ này" (empty price box, no visible
   placeholder digit against the dark background - looked like a broken empty control). Placeholder
   had no explicit color so it fell back to the invisible browser default. The field is a plain
   type="text" now (see story.js), so there is no native spinner to fight at all. */
.ffStoryChPriceInput::placeholder{color:var(--ff-text-faint);opacity:1}
/* FFC as a muted suffix, sitting right after the stepper - no divider, no border, just spacing
   and a dimmer tone so it reads as a unit label, not a fourth boxed segment. */
.ffStoryChPriceUnit{flex-shrink:0;display:flex;align-items:center;padding:0 4px 0 6px;color:var(--ff-text-faint);font-size:var(--fs-secondary);font-weight:650}
.ffCreator button.ffStoryChAccessSave{background:var(--ff-blue);color:#031522;text-align:center;font-weight:700;font-size:var(--fs-secondary);height:39px;padding:0;border-radius:8px}
.ffCreator button.ffStoryChAccessSave:hover{background:#2ba6ff}

/* GPT: "footer cần premium hơn... nền hơi tách khỏi content... tránh cảm giác một thanh form
   admin" - was the exact same background as the content area above it (zero separation beyond
   the 1px line); now a hair darker so it reads as its own resting surface.
   FINAL VISUAL EMPHASIS PASS, 2026-09-25 (GPT): "footer gần như dính vào content" - the 1px
   border alone wasn't enough separation; added a soft upward shadow on top of it for real surface
   elevation (footer now reads as sitting slightly in front of the content, not just a hairline
   under it), and the note's own text toned down a touch further so it stays clearly quieter than
   the two action buttons next to it. */
/* Same ".ffCreator" specificity fix as .ffStoryTopBar above, and for the same reason: creator.css
   has THREE separate later ".ffCreator footer{...}" rules (each 0,1,1) that were all silently
   beating a bare ".ffStoryFooter" (0,1,0) for border-top/background - confirmed via
   document.styleSheets, not assumed. */
.ffCreator .ffStoryFooter{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 28px;border-top:1px solid #1c2740;position:sticky;bottom:0;background:#070e1a;border-radius:0 0 22px 22px;box-shadow:0 -8px 20px -14px #000c}
.ffStoryFooterNote{margin:0;min-width:0;color:#54687f;font-size:var(--fs-secondary);display:flex;align-items:center;gap:6px}
.ffStoryFooterActions{display:flex;gap:10px;flex-shrink:0}
.ffCreator button.ffStorySecondaryBtn{background:transparent;border:1px solid #2a3c56;color:#c7d3e2;padding:10px 18px;border-radius:10px}
.ffCreator button.ffStorySecondaryBtn:hover{background:#152036}

/* ---------- Chapter Editor (Screen B) — SN-6 freeform canvas, no +block UI. ---------- */
.ffStoryChapterCanvasWrap{overflow-y:visible;max-height:calc(90dvh - 62px);overflow-y:auto}
.ffStoryChapterCanvas{max-width:1080px;margin:0 auto;padding:36px clamp(24px,4vw,48px) 140px}
.ffCreator input.ffStoryChTitleInput{display:block;width:100%;background-color:transparent;border:0;color:#f2f6fa;font-size:28px;font-weight:650;letter-spacing:-.4px;padding:4px 0;margin:0 0 18px}
.ffCreator input.ffStoryChTitleInput::placeholder{color:#3d4f6b}

/* Sticky toolbar — always visible while scrolling a long chapter, per the lock's own explicit
   requirement ("Toolbar phải sticky khi cuộn chapter dài"). */
.ffStoryToolbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:7px;border:1px solid #1c2740;background:rgba(10,18,32,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:11px;margin:0 0 18px}
.ffStoryToolbar button{height:31px;min-width:31px;border:1px solid transparent;background:transparent;color:#8a9db0;border-radius:7px;padding:0 9px;font-size:var(--fs-secondary)}
.ffStoryToolbar button:hover{background:#152036;border-color:#253047;color:#f2f6fa}
.ffStorySep{width:1px;height:18px;background:#1c2740;margin:0 3px}

.ffStorySelectionBubble{position:fixed;display:none;background:#111d30;border:1px solid #253047;border-radius:10px;padding:4px;box-shadow:0 14px 36px #0009;z-index:60}
.ffStorySelectionBubble.show{display:flex}
.ffStorySelectionBubble button{border:0;background:transparent;color:#e6ecf5;border-radius:6px;padding:6px 8px;font-size:var(--fs-secondary);font-weight:650}
.ffStorySelectionBubble button:hover{background:#1c304c}

.ffStoryBlocks{display:flex;flex-direction:column;gap:2px}
.ffStoryBlock{position:relative}
.ffStoryEdit{min-width:0;min-height:1.7em;line-height:1.78;font-size:17px;color:#eaf0fc;outline:none;padding:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.ffStoryEdit:empty:before{content:attr(data-placeholder);color:#4a5d7a}
.ffStoryHeading{font-size:23px;font-weight:650;margin-top:20px;color:#f2f6fa}
.ffStoryHeading:empty:before{color:#4a5d7a}
.ffStoryH3{font-size:19px;font-weight:650;margin-top:16px;color:#f2f6fa}
.ffStoryH3:empty:before{color:#4a5d7a}
.ffStoryQuote{font-size:17px;color:#cfe0f5;background:#0e2733;border-left:2px solid #4fd1ff;padding:10px 16px;border-radius:0 8px 8px 0;margin:4px 0;font-style:italic}
.ffStoryQuote:empty:before{color:#3d6b78}
.ffStoryList{font-size:17px;line-height:1.78;color:#eaf0fc}
.ffStoryList ul,.ffStoryList ol{margin:6px 0;padding-left:24px}
.ffStoryList li{margin:2px 0}

/* ---------- Single media block — caret-inserted, always-continuable, clear Remove. ---------- */
.ffStoryMediaBlock{position:relative;margin:20px 0 24px;text-align:center}
.ffStoryMediaBlock img,.ffStoryMediaBlock video{display:block;max-width:100%;max-height:520px;margin:0 auto;border-radius:12px;object-fit:contain;background:#0a1220}
.ffStoryMediaBlock.inline img,.ffStoryMediaBlock.inline video{max-width:62%}
.ffCreator button.ffStoryMediaRemove{position:absolute;top:8px;right:8px;z-index:3;height:32px;padding:0 11px;border-radius:9px;border:1px solid #2a3c56;background:rgba(8,13,22,.82);color:#ffd7d2;font-size:var(--fs-secondary);font-weight:650;opacity:0;transition:opacity .12s}
.ffStoryMediaBlock:hover .ffStoryMediaRemove,.ffStoryMediaBlock:focus-within .ffStoryMediaRemove{opacity:1}
.ffCreator button.ffStoryMediaRemove:hover{background:#4a1420}
.ffStoryMediaModes{display:flex;justify-content:center;gap:5px;margin-top:8px}
.ffStoryMediaModes button{height:27px;padding:0 10px;border-radius:7px;border:1px solid #253047;background:#101b2d;color:#8a9db0;font-size:var(--fs-secondary)}
.ffStoryMediaModes button.on{background:#1c3247;border-color:#3f6a82;color:#b7e4f6}
.ffCreator input.ffStoryCaption{display:block;width:100%;max-width:520px;margin:8px auto 0;background-color:transparent;border:0;color:#8a9db0;font-size:var(--fs-secondary);text-align:center}
.ffCreator input.ffStoryCaption::placeholder{color:#4a5d7a}

/* ---------- Album block — mixed image/video, real drag reorder desktop + long-press mobile +
   Move left/right fallback (matches the lock's explicit requirement). ---------- */
.ffStoryAlbum{margin:24px 0 28px;border:1px solid #1c2740;border-radius:14px;overflow:hidden;background:#0a1220}
.ffStoryAlbumMain{position:relative;min-height:280px;background:#060b13;display:grid;place-items:center}
.ffStoryAlbumMain img,.ffStoryAlbumMain video{display:block;width:100%;max-height:480px;object-fit:contain;background:#060b13}
.ffStoryAlbumNav{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.ffStoryAlbumNav button{pointer-events:auto;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(4,9,14,.6);color:#fff;font-size:16px}
.ffStoryAlbumCount{position:absolute;right:8px;top:8px;padding:4px 8px;border-radius:999px;background:rgba(4,9,14,.65);color:#dce8ef;font-size:var(--fs-secondary)}
.ffStoryAlbumThumbs{display:flex;gap:6px;overflow:auto;padding:8px;background:#101b2d;border-top:1px solid #1c2740}
.ffStoryAlbumThumb{flex:0 0 60px;height:46px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#060b13;position:relative;cursor:grab;touch-action:none}
.ffStoryAlbumThumb.on{border-color:#55c7f3}
.ffStoryAlbumThumb img,.ffStoryAlbumThumb video{width:100%;height:100%;object-fit:cover;display:block}
.ffStoryVideoBadge{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.18);font-size:var(--fs-secondary)}
.ffStoryAlbumThumb.ffStoryDragging{opacity:.45;outline:2px dashed #62cdf6}
.ffStoryAlbumThumb.ffStoryDropTarget{border-color:#62cdf6}
.ffStoryAlbumTools{display:flex;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #1c2740;color:#8a9db0;font-size:var(--fs-secondary)}
.ffStoryAlbumTools button{border:1px solid #253047;background:#101b2d;color:#9bb1bf;border-radius:8px;height:29px;padding:0 9px;font-size:var(--fs-secondary)}
.ffCreator button.ffStoryAlbumMoveBtn{display:none}
.ffStoryAlbumRemoveItem,.ffStoryAlbumRemove{color:#ffc4ce}
.ffStoryAlbumReorderHint{color:#5c7191;font-size:var(--fs-secondary);white-space:nowrap}
.ffCreator input.ffStoryAlbumCaption{flex:1;border:0;background:transparent;color:#8a9db0;outline:none;text-align:center;font-size:var(--fs-secondary)}
@media(hover:none),(pointer:coarse){
 .ffCreator button.ffStoryAlbumMoveBtn{display:inline-flex}
 .ffStoryAlbumReorderHint{display:none}
 .ffStoryMediaRemove{opacity:1}
}

/* ---------- Cover Adjust modal + Import document modal (shared lightweight overlay chrome). ---------- */
.ffStoryOverlay{position:fixed;inset:0;background:rgba(5,10,15,.66);backdrop-filter:blur(6px);display:none;place-items:center;z-index:100;padding:20px}
.ffStoryOverlay.open{display:grid}
.ffStoryModal,.ffStoryCoverAdjustModal{width:min(720px,100%);max-height:88vh;overflow:auto;background:#101820;border:1px solid #253047;border-radius:16px;box-shadow:0 28px 90px #0008}
.ffStoryModal{width:min(860px,calc(100vw - 48px))}
.ffStoryCoverAdjustModal{width:min(480px,100%)}
.ffStoryModalTop{height:54px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid #1c2740}
.ffStoryModalTop b{font-size:14px;color:#f2f6fa}
.ffStoryModalTop button{margin-left:auto;width:30px;height:30px;border:0;border-radius:8px;background:#152036;color:#8a9db0}
.ffStoryModalBody,.ffStoryCoverAdjustBody{padding:18px}
.ffStoryDrop{border:1px dashed #2a3c56;background:#101b2d;border-radius:13px;padding:26px;text-align:center}
.ffStoryDrop p{font-size:var(--fs-secondary);color:#8a9db0;margin:4px 0 12px}
.ffStoryImportOpts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.ffCreator button.ffStoryImportOpt{border:1px solid #253047;background:#101b2d;color:#c7d3e2;border-radius:11px;padding:11px;text-align:left}
.ffCreator button.ffStoryImportOpt.on{border-color:#3d7b9c;background:#132433}
.ffStoryImportOpt b{font-size:var(--fs-secondary)}
.ffStoryImportOpt small{display:block;font-size:var(--fs-secondary);color:#8a9db0;margin-top:3px}
.ffStoryImportPreview{margin-top:14px;border-top:1px solid #1c2740;padding-top:12px}
.ffStoryImportEmpty{color:#5c7191;font-size:var(--fs-secondary);margin:0}
.ffStoryImportList{display:grid;gap:6px}
.ffStoryImportRow{display:flex;align-items:center;gap:8px;border:1px solid #1c2740;background:#0a1220;border-radius:9px;padding:8px}
.ffStoryImportRow i{font-style:normal;color:#60abff;font-size:var(--fs-secondary);font-weight:800}
.ffStoryImportRow b{font-size:var(--fs-secondary);color:#eaf0fc}
.ffStoryImportRow small{margin-left:auto;color:#8a9db0;font-size:var(--fs-secondary)}
.ffStoryModalFoot{display:flex;justify-content:flex-end;gap:7px;padding:11px 16px;border-top:1px solid #1c2740}

.ffStoryCropStage{width:min(300px,80vw);aspect-ratio:3/4;margin:0 auto;position:relative;overflow:hidden;border-radius:16px;background:#060b13;border:1px solid #253047;cursor:grab;touch-action:none}
.ffStoryCropStage.dragging{cursor:grabbing}
.ffStoryCropStage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:center;user-select:none;pointer-events:none}
.ffStoryCropGrid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.1%,rgba(255,255,255,.16) 33.1%,rgba(255,255,255,.16) 33.5%,transparent 33.5%,transparent 66.5%,rgba(255,255,255,.16) 66.5%,rgba(255,255,255,.16) 66.9%,transparent 66.9%),linear-gradient(to bottom,transparent 33.1%,rgba(255,255,255,.16) 33.1%,rgba(255,255,255,.16) 33.5%,transparent 33.5%,transparent 66.5%,rgba(255,255,255,.16) 66.5%,rgba(255,255,255,.16) 66.9%,transparent 66.9%)}
.ffStoryCoverAdjustHint{text-align:center;color:#8a9db0;font-size:var(--fs-secondary);margin:12px 0 14px}
.ffStoryZoomRow{max-width:400px;margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
.ffStoryZoomRow span{color:#8a9db0;font-size:var(--fs-secondary)}
.ffStoryZoomRow button{height:32px;padding:0 10px;border-radius:8px;border:1px solid #253047;background:#101b2d;color:#c7d3e2;font-size:var(--fs-secondary)}

/* ---------- Story-specific Preview (creator.js's shared summary() calls FFStory.previewHTML for
   Story — reuses the real reader's own novelColumn typography, not a second reader).
   OWNER UX REJECTION ROUND 2, 2026-09-25 (GPT-locked visual spec, concrete mockup supplied in
   chat — implemented as closely as a text-only edit can match a reference image, structure and
   hierarchy over pixel-perfect color/spacing): the modal shell is now a thin wrapper (its own
   header/footer below), and the content reads like the real published reader — a hero cover with
   an overlaid category pill, title/intro/byline as real metadata (not admin-form labels),
   pill-style chapter nav plus a real Table of Contents jump list, an in-content chapter heading,
   and a drop cap on the opening paragraph. No second reader is built — same novelColumn/
   blockToHTML the real reader uses, still full content, no height cap. */
.ffStoryPreviewHero{position:relative;margin:0 0 20px;border-radius:14px;overflow:hidden;background:#101b2d}
.ffStoryPreviewCover{width:100%;aspect-ratio:2/1;object-fit:contain;display:block;background:#0b1422}
.ffStoryPreviewBadge{position:absolute;left:14px;bottom:14px;padding:4px 11px;border-radius:999px;background:#0d1524cc;backdrop-filter:blur(6px);color:#cfe0ff;font-size:var(--fs-secondary);font-weight:650;text-transform:uppercase;letter-spacing:.5px}
.ffStoryPreviewMeta{margin:0 0 20px}
.ffStoryPreviewTitle{margin:0 0 8px;font-size:26px;font-weight:700;color:#f5f8fc;overflow-wrap:anywhere;font-family:Georgia,"Times New Roman",serif}
.ffStoryPreviewIntro{margin:0 0 12px;color:#a7b6ca;font-size:14.5px;line-height:1.6}
.ffStoryPreviewByline{display:flex;align-items:center;gap:9px;color:#7c8ea6;font-size:var(--fs-secondary)}
.ffStoryPreviewAvatar{flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:#2b4d71;color:#dce8ff;display:grid;place-items:center;font-size:var(--fs-secondary);font-weight:700}
.ffStoryPreviewNavBar{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #1c2740;border-bottom:1px solid #1c2740;margin:0 0 4px}
.ffStoryPreviewNavBtn{flex:0 0 auto;width:34px;height:34px;padding:0;border-radius:9px;border:1px solid #253047;background:#101b2d;color:#c7d3e2;font-size:16px;line-height:1}
.ffStoryPreviewNavBtn:disabled{opacity:.35;cursor:default}
.ffStoryPreviewNavCenter{flex:1;min-width:0;overflow-wrap:anywhere;text-align:center;display:flex;flex-direction:column;gap:1px}
.ffStoryPreviewNavCenter strong{font-size:var(--fs-secondary);color:#e8edf4;font-weight:650}
.ffStoryPreviewNavCenter small{font-size:var(--fs-secondary);color:#5c7191}
.ffStoryPreviewTocBtn{flex:0 0 auto;height:34px;padding:0 12px;border-radius:9px;border:1px solid #253047;background:#101b2d;color:#8ec6ff;font-size:var(--fs-secondary);white-space:nowrap}
.ffStoryPreviewToc{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #1c2740;margin:0 0 4px}
.ffStoryPreviewTocItem{text-align:left;padding:9px 12px;border-radius:9px;border:1px solid transparent;background:transparent;color:#a7b6ca;font-size:var(--fs-secondary)}
.ffStoryPreviewTocItem:hover{background:#101b2d}
.ffStoryPreviewTocItem.current{background:#132238;border-color:#253047;color:#e8edf4;font-weight:650}
.ffStoryPreviewChapter{padding-top:18px}
.ffStoryPreviewChapterHeading{margin:0 0 18px;font-size:22px;font-weight:700;color:#f2f6fa;font-family:Georgia,"Times New Roman",serif;overflow-wrap:anywhere}
.ffStoryPreviewArticle>p:first-child::first-letter{float:left;font-family:Georgia,"Times New Roman",serif;font-size:2.9em;line-height:.86;font-weight:700;padding:.04em .07em 0 0;color:#e8edf4}

/* Story preview's own thin modal shell (creator.js's storyPreviewShell branch) — icon+subtitle
   header, icon+label+subtext footer, no fc-topline Edit/"Story / Novel" row (the hero/byline
   inside the content now carries that context instead). */
.ffStoryPreviewHeader{padding:22px 26px 16px;border-bottom:1px solid #1c2740}
.ffStoryPreviewHeaderMain{display:flex;align-items:flex-start;gap:12px}
.ffStoryPreviewHeaderIcon{flex:0 0 auto;font-size:20px;line-height:1.3;opacity:.9}
.ffStoryPreviewHeaderText h2{margin:0 0 2px;font-size:19px}
.ffStoryPreviewHeaderText p{margin:0;font-size:var(--fs-secondary);color:#7c8ea6}
.ffStoryPreview{padding:22px 26px}
.ffStoryPreviewFooter{padding:18px 26px;border-top:1px solid #1c2740;margin:0}
.ffStoryPreviewFooter button{display:flex;align-items:center;gap:10px;text-align:left;padding:11px 16px}
.ffStoryPreviewFooterIcon{flex:0 0 auto;font-size:16px}
.ffStoryPreviewFooter small{display:block;font-weight:400;opacity:.75;margin-top:1px;font-size:var(--fs-secondary)}
.ffStoryPreviewFooter .fc-primary small{opacity:.65}

/* Real reader — additive media/album block rendering (index.html's renderReader novel branch
   calls window.FFStory.blockToHTML; .novelColumn already exists in index.html's own stylesheet,
   these are the two new block kinds only). */
.novelColumn .ffStoryReaderMedia{margin:1.8em 0;text-align:center}
.novelColumn .ffStoryReaderMedia img,.novelColumn .ffStoryReaderMedia video{max-width:100%;max-height:70vh;border-radius:12px;display:block;margin:0 auto}
.novelColumn .ffStoryReaderMedia.inline img,.novelColumn .ffStoryReaderMedia.inline video{max-width:62%}
.novelColumn .ffStoryReaderAlbum{margin:1.8em 0;display:flex;flex-direction:column;gap:10px}
.novelColumn .ffStoryReaderAlbum img,.novelColumn .ffStoryReaderAlbum video{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:#050b16}
.novelColumn .ffStoryReaderList{font:17px/1.82 Georgia,"Times New Roman",serif;color:#d9e4ea;margin:0 0 1.3em;padding-left:26px}
.novelColumn .ffStoryReaderList li{margin:0 0 .4em}
/* index.html's own novelColumn CSS only ever defined h1 (the reader's original single heading
   level) — SN-6 source-audit fix #1 adds real H2/H3 level semantics, so the reader needs actual
   H2/H3 typography too, not just the data-level fix. Scoped here (not index.html's own core CSS)
   since h2/h3 only ever appear inside .novelColumn for Story content. */
.novelColumn h2{font-size:1.4em;line-height:1.3;font-weight:700;margin:1.4em 0 .6em}
.novelColumn h3{font-size:1.15em;line-height:1.35;font-weight:700;margin:1.2em 0 .5em}

@media(max-width:760px){
 .ffCreator:has(.ffStoryOverview),.ffCreator:has(.ffStoryChapterCanvasWrap),.ffCreator:has(.ffComicEditor){width:calc(100% - 16px);border-radius:16px;max-height:94dvh}
 .ffStoryTopBar{padding:14px 16px;border-radius:16px 16px 0 0}
 .ffStoryOverviewHead{padding:16px 16px 4px}
 .ffStoryOverviewHeadRow{flex-direction:column;align-items:flex-start;gap:8px}
 .ffStoryOverview{grid-template-columns:1fr;gap:20px;padding:16px}
 .ffStoryCoverCol{max-width:190px;margin:0 auto;width:100%}
 .ffStoryCover{aspect-ratio:2/3}
 .ffStoryCoverActions{opacity:1;background:#0009}
 .ffCreator button.ffStoryCoverBtn{font-size:var(--fs-secondary);padding:9px 2px;letter-spacing:-.1px}
 .ffStoryTitleInput{font-size:27px}
 .ffStoryChHead{flex-wrap:wrap;align-items:flex-start;gap:8px 10px}
 .ffStoryChHeadHint{flex-basis:100%;order:3}
 .ffCreator button.ffStoryAddBtn{order:2;margin-left:auto}
 .ffStoryFieldRow{grid-template-columns:1fr}
 .ffStoryChBody{padding:12px 0}
 .ffStoryChBody b,.ffStoryChBody small{font-size:14px}
 .ffStoryRowMenu summary{width:40px;height:40px}
 .ffStoryFooter{padding:12px 16px;flex-wrap:wrap}
 .ffStoryFooterNote{order:1;flex-basis:100%}
 .ffStoryFooterActions{order:2;flex:1}
 .ffCreator button.ffStorySecondaryBtn,.ffCreator button.ffStoryPrimaryBtn{flex:1;text-align:center}
 .ffStoryChapterCanvas{padding:18px 16px 160px}
 .ffStoryChTitleInput{font-size:24px}
 .ffStoryEdit{font-size:16px}
 .ffStoryHeading{font-size:21px}
 .ffStoryToolbar{top:0}
 .ffStoryToolbar button{height:36px;min-width:36px}
 .ffStoryMediaBlock.inline img,.ffStoryMediaBlock.inline video{max-width:80%}
 .ffStoryModal,.ffStoryCoverAdjustModal{width:calc(100vw - 20px)}
 .ffStoryImportOpts{grid-template-columns:1fr}
}

/* The chapter writer is a full-page workspace, like the Story overview and Comic editor.
   The legacy dialog sizing above otherwise constrains it to 90vh and lets the feed show
   underneath, which also makes the chapter canvas feel cramped. */
.ffCreator.ffCreatorWorkspace:has(.ffStoryChapterCanvasWrap){width:auto!important;max-width:none!important;height:auto;max-height:none!important;margin:0;border:0;border-radius:0;overflow:hidden}
.ffCreator.ffCreatorWorkspace:has(.ffStoryChapterCanvasWrap) .ffStoryTopBar{border-radius:0}
.ffCreator.ffCreatorWorkspace:has(.ffStoryChapterCanvasWrap) .ffStoryChapterCanvasWrap{height:calc(100dvh - 74px);max-height:none;overflow-y:auto;overscroll-behavior:contain}

.ffStoryChRow.is-live span.ffStoryChAccess,.ffStoryChRow.is-live button.ffStoryChAccessLive{display:inline-block;padding:4px 10px;border-radius:20px;background:#0f1a28;color:#8fa2ba;font-size:var(--fs-secondary);font-weight:650;white-space:nowrap;border:1px solid #22314a}.ffStoryChRow.is-live span.ffStoryChAccess.paid{background:#0d2440;color:#4fb2ff;border-color:#175386}.ffStoryChRow.is-live .ffStoryChBody{cursor:default}

.ffStoryBox{max-width:min(440px,calc(100vw - 32px));width:100%;border:1px solid #2a3b58;border-radius:16px;background:#101b2d;color:#e8f0fc;padding:20px}.ffStoryBox::backdrop{background:rgba(3,8,16,.62)}
.ffStoryBox h3{margin:0 0 8px;font-size:16px}.ffStoryBox p{margin:0 0 16px;font-size:var(--fs-secondary);line-height:1.5;color:#c3d1e6}.ffStoryBoxRow{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.ffStoryBoxRow button{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid #35557a;background:#13233a;color:#e8f0fc;font:inherit;font-size:14px;font-weight:650;cursor:pointer}.ffStoryBoxRow button.danger{background:#7a3340;border-color:#a14a59;color:#fff}
.ffStoryChRule{margin:8px 0 0;font-size:var(--fs-secondary);color:#8fa2ba;line-height:1.45}

/* Film / Series and Music / Album editor (creator/media-work.js): the Story frame, plus its rows */
.mwSeg{display:inline-flex;gap:6px;flex-wrap:wrap}.mwSeg button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #2a3b58;background:#0f1a28;color:#a9bad0;font:inherit;font-size:var(--fs-secondary);font-weight:650;cursor:pointer}.mwSeg button.on{background:#0d2440;color:#4fb2ff;border-color:#175386}.mwSeg button:disabled{opacity:.55;cursor:not-allowed}
.mwCover{display:flex;align-items:center;justify-content:center;width:100%;padding:0;overflow:hidden}.mwCoverEmpty{display:flex;flex-direction:column;align-items:center;gap:4px;color:#c3d1e6;font-size:14px;font-weight:650}.mwCoverEmpty small{font-size:var(--fs-secondary);color:#7f93ad;font-weight:500}
.mwList{display:flex;flex-direction:column;gap:8px}.mwRow{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #22314a;border-radius:12px;background:#0b1626;min-width:0}.mwNum{font-size:var(--fs-secondary);color:#7f93ad;min-width:22px}
.mwBody{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.mwBody b{font-size:14px;color:#e8f0fc}.mwTitle{width:100%;min-height:36px;padding:0 10px;border-radius:8px;border:1px solid #22314a;background:#0f1a28;color:#e8f0fc;font:inherit;font-size:14px;font-weight:650}
.mwBody small{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:#8fa2ba;font-size:var(--fs-secondary)}.mwFile{display:inline-flex;align-items:center;gap:6px}.mwFile.ok{color:#6fd39a}.mwFile.pick{cursor:pointer;color:#8cc4ff;text-decoration:underline}
.mwUp{color:#9bd0ff}.mwUp.bad{color:#ff9a9a}.mwBar{height:5px;border-radius:99px;background:#1a2c45;overflow:hidden}.mwBar i{display:block;height:100%;background:#4fa3ff;transition:width .2s}
.mwChip{padding:4px 10px;border-radius:20px;background:#0f1a28;color:#8fa2b3;font-size:var(--fs-secondary);font-weight:650;border:1px solid #22314a;white-space:nowrap}.mwRow.is-live .mwBody b{color:#e8f0fc}.mwReplace{display:block;padding:6px 8px;cursor:pointer;font-size:var(--fs-secondary)}
@media(max-width:540px){.mwRow{flex-wrap:wrap}.mwChip{order:3}}

/* the chapter price box is always inside the window with its Save button visible (Tester 1: Save could sit outside the window, the price was never saved and the chapter went out free) */
.ffStoryChAccessPanel[popover]:popover-open{position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(380px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
.ffStoryChAccessPanel .ffStoryChAccessActions{position:sticky;bottom:0;background:var(--ff-surface,#0c1420);padding-bottom:6px}

/* the price of a Film / Music part sits in its row: always inside the window, Save beside it */
.mwPrice{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}.mwPrice select,.mwPriceIn{background:#0f1a28;color:#e8f0f8;border:1px solid #22314a;border-radius:8px;padding:6px 8px;font:inherit;font-size:var(--fs-secondary);min-height:34px}.mwPriceIn{width:74px}.mwPrice small{color:#8fa2b3}.mwPriceSave{min-height:34px;padding:0 12px;border-radius:8px;border:0;background:#0a97ff;color:#031522;font-weight:700;font-size:var(--fs-secondary)}.mwPriceErr{flex-basis:100%;color:#ff9aa2;font-size:var(--fs-secondary);font-style:normal}.mwPriceErr:empty{display:none}.mwChip.paid{color:#ffd69b;border-color:#6b5428}

/* Create → Game: My games */
.gpPage{padding:14px 16px 90px;max-width:760px;margin:0 auto;color:#e8f0f8}.gpPage h2{margin:6px 0 4px;font-size:20px}.gpMeta{color:#8fa2b3;font-size:var(--fs-secondary);margin:4px 0}.gpHint{color:#8fa2b3;font-size:var(--fs-secondary);margin:6px 0}
.gpPick{display:flex;align-items:center;justify-content:center;min-height:48px;margin:12px 0;border:1px dashed #36507a;border-radius:12px;background:#0d1626;color:#cfe3ff;font-weight:650;cursor:pointer}.gpPick.busy{opacity:.6;cursor:default}
.gpUp{margin:6px 0;font-size:var(--fs-secondary)}.gpUp.bad{color:#ff9aa2}.gpList{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.gpRow{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:12px;border:1px solid #22314a;border-radius:12px;background:#0c1420;color:inherit;font:inherit;cursor:pointer}.gpRow.on{border-color:#0a97ff}.gpRow small{display:block;color:#8fa2b3;margin-top:2px}
.gpChip{padding:3px 10px;border-radius:20px;background:#0f1a28;border:1px solid #22314a;font-size:var(--fs-secondary);font-weight:650;white-space:nowrap;color:#8fa2b3}.gp-approved{color:#7bdc9a;border-color:#2f6b45}.gp-needs_changes,.gp-rejected,.gp-blocked,.gp-unpublished{color:#ff9aa2;border-color:#6b2f37}.gp-submitted,.gp-in_review{color:#ffd69b;border-color:#6b5428}
.gpDetail{margin-top:14px;padding:14px;border:1px solid #22314a;border-radius:14px;background:#0a111d}.gpDetail h3{margin:0 0 6px;font-size:17px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gpFinds{margin:8px 0;padding-left:18px;font-size:var(--fs-secondary)}.gpFinds li{margin:4px 0}.gpFinds .gp-block b{color:#ff9aa2}.gpFinds .gp-warn b{color:#ffd69b}
.gpDecl{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}.gpDecl select{background:#0f1a28;color:#e8f0f8;border:1px solid #22314a;border-radius:8px;padding:6px 8px;font:inherit;min-height:36px}.gpRights{flex-basis:100%;font-size:var(--fs-secondary)}
.gpBtn{min-height:40px;padding:0 14px;border-radius:9px;border:1px solid #26374d;background:#0c1420;color:#f4f8ff;font:inherit;font-weight:650;cursor:pointer;margin:4px 6px 4px 0}.gpBtn.primary{background:#0a97ff;border-color:#0a97ff;color:#031522}.gpBtn[disabled]{opacity:.45;cursor:default}
.gpErr{color:#ff9aa2;font-size:var(--fs-secondary)}.gpWhy{padding:10px;border-radius:10px;background:#1a1117;border:1px solid #5a2a34;font-size:var(--fs-secondary)}

.gpBanner{margin:8px 0;padding:10px 12px;border-radius:10px;background:#1a1608;border:1px solid #6b5428;color:#ffd69b;font-size:var(--fs-secondary)}.gpFrame{width:100%;height:min(70vh,640px);min-height:320px;border:1px solid #22314a;border-radius:12px;background:#000}.gpPlay{max-width:960px}

.gpPublish{margin-top:14px;padding:12px;border:1px solid #2f6b45;border-radius:12px;background:#0a1710}.gpPublish h4{margin:0 0 6px}.gpChapter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #1c2f24}.gpChapter span:first-child{flex:1 1 140px}.gpChapter select,.gpChapter input{background:#0f1a28;color:#e8f0f8;border:1px solid #22314a;border-radius:8px;padding:6px 8px;font:inherit;min-height:34px}.gpChapter input{width:80px}.gpLive{padding:10px;border-radius:10px;background:#0a1710;border:1px solid #2f6b45}

.fc-albumFree{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:var(--fs-secondary)}.fc-albumFree button{min-width:34px;min-height:34px;border-radius:8px;border:1px solid #26374d;background:#0c1420;color:#f4f8ff;font:inherit;font-weight:700;cursor:pointer}.utilityNote{font-size:var(--fs-secondary);color:#8fa2b3}

/* Create → Game, made simple (Boss 12/10): one main action (Choose your game), the name, the cover picked from the game, everything else folded away. Text 16px+, buttons 48px+, contrast AA. */
.ffCreator .gpHome{max-width:640px;margin:0 auto;padding:20px 20px 96px}
.gpHome .gpHead{margin:4px 0 6px;font-size:26px;line-height:1.2;color:#f5f8fc}
.gpHome p,.gpHome .gpCoverText{font-size:16px;line-height:1.45}
.gpHome .gpLead{margin:0 0 16px;color:#c3d1e6}
.gpHome .gpPick{display:flex;align-items:center;justify-content:center;min-height:64px;margin:8px 0 16px;padding:0 20px;border:0;border-radius:14px;background:#0a64c8;color:#fff;font-size:18px;font-weight:700;cursor:pointer}
.gpHome .gpPick:hover{background:#0b72e0}.gpHome .gpPick.busy{opacity:.7;cursor:default}
.gpHome .gpLabel{display:block;margin:16px 0 6px;font-size:16px;font-weight:650;color:#e8f0f8}
.gpHome .gpInput{width:100%;box-sizing:border-box;min-height:48px;padding:10px 12px;border-radius:10px;border:1px solid #3a5272;background:#0d1626;color:#f5f8fc;font:inherit;font-size:16px}
.gpHome .gpInput::placeholder{color:#9fb2cc}
.gpHome textarea.gpInput{resize:vertical}
.gpHome .gpCoverRow{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0;padding:12px;border:1px solid #22314a;border-radius:12px;background:#0b1626}
.gpHome .gpThumb{display:block;flex:0 0 72px;width:72px;aspect-ratio:3/4;border-radius:8px;overflow:hidden;border:0;padding:0}
.gpHome .gpThumb img{display:block;width:100%;height:100%;object-fit:contain}
.gpHome .gpCoverText{flex:1;min-width:160px;display:flex;flex-direction:column;gap:2px;color:#c3d1e6}.gpHome .gpCoverText b{color:#f5f8fc}
.gpHome .gpCoverHint{color:#ffd69b}
.gpHome .gpBtnLike{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:10px;border:1px solid #4a6fa0;background:#12233b;color:#e8f2ff;font-size:16px;font-weight:650;cursor:pointer}
.gpHome .gpMore{margin:12px 0;border:1px solid #22314a;border-radius:12px;padding:0 14px 14px;background:rgba(15,27,46,.5)}
.gpHome .gpMore>summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-size:16px;font-weight:650;color:#e8f0f8}
.gpHome .gpCount{color:#9fb2cc;font-weight:400}
.gpHome .gpPackage h2{display:none}
.gpHome .gpMain{min-height:56px;font-size:18px;width:100%}
.ffCreator .gpHome.ffStoryOverview{display:block;grid-template-columns:none;gap:0}
.gpHome .gpMore>summary{list-style:none}.gpHome .gpMore>summary::-webkit-details-marker{display:none}
.gpHome .gpMore>summary::after{content:"+";margin-left:auto;font-size:24px;color:#a9b9ce}.gpHome .gpMore[open]>summary::after{content:"–"}

/* Create Work (Story, Comic, Film, Music): every field LOOKS like a field (Boss 12/10, T1: they read as grey text) — one clear style: border, background, 48 px, 16 px+, the empty cover is a framed button. */
.ffCreator input.ffStoryTitleInput{background:#0d1626;border:1px solid #3a5272;border-radius:10px;padding:10px 14px;min-height:56px;font-size:24px;margin:0 0 12px}
.ffCreator textarea.ffStoryIntroInput,.ffCreator .ffStoryTagsBox{background:#0d1626;border:1px solid #3a5272;border-radius:10px;padding:10px 14px;min-height:48px;font-size:16px;color:#f5f8fc}
.ffCreator .ffStoryTagsBox .ffStoryTagInput{min-height:36px;font-size:16px;background:transparent;border:0;color:#f5f8fc}
.ffCreator input.ffStoryTitleInput::placeholder,.ffCreator textarea.ffStoryIntroInput::placeholder,.ffCreator .ffStoryTagInput::placeholder{color:#9fb2cc;opacity:1}
.ffCreator input.ffStoryTitleInput:focus-visible,.ffCreator textarea.ffStoryIntroInput:focus-visible,.ffCreator .ffStoryTagsBox:focus-within{outline:2px solid #8fc4ff;outline-offset:2px}
.ffCreator .ffStoryCover:not(.has-cover){border:2px dashed #4a6fa0;background:#0d1626;border-radius:12px;color:#e8f2ff;cursor:pointer}
.ffCreator .ffStoryCover:not(.has-cover) .mwCoverEmpty,.ffCreator .ffStoryCover:not(.has-cover) .ffStoryCoverLabel{color:#e8f2ff;font-size:16px;font-weight:700}
/* icon-only buttons in the Create editors are finger-sized on a phone */
@media(max-width:700px){.ffCreator button[data-comic-page-up],.ffCreator button[data-comic-page-down],.ffCreator button[data-comic-tag-remove],.ffCreator button[data-comic-cover-action="close"],.ffCreator .ffComicChapterDrag,.ffCreator button[data-story="album-prev"],.ffCreator button[data-story="album-next"],.ffCreator .ffStoryAlbumMoveBtn,.ffCreator .ffStoryCloseBtn,.ffCreator .ffComicClose,.ffCreator .ffStoryTagChip button,.ffCreator .ffStoryChPriceStep{min-width:48px;min-height:48px}}

/* Quote FocFoc: a card that points at one public FocFoc work or post (editor, preview and reader). Touch target 64 px, text 16 px+. */
.ffQuoteCard{display:flex;align-items:center;gap:12px;min-height:64px;margin:14px 0;padding:10px 14px;border:1px solid #3a5272;border-radius:12px;background:#0d1626;color:#f5f8fc;text-decoration:none;font-size:16px;line-height:1.35}
a.ffQuoteCard:hover{border-color:#6aa9ff}
.ffQuoteCard img{flex:0 0 56px;width:56px;height:56px;border-radius:8px;object-fit:cover}
.ffQuoteText{display:flex;flex-direction:column;min-width:0}.ffQuoteText strong{font-size:16px;overflow-wrap:anywhere}.ffQuoteText small{font-size:16px;color:#c3d1e6}
.ffQuoteCard.gone{color:#c3d1e6;border-style:dashed}
.ffStoryQuoteFF{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.ffStoryQuoteFF .ffQuoteCard{width:100%;box-sizing:border-box}
.ffQuoteRemove,.ffQuoteAsk button{min-height:48px;padding:0 18px;border-radius:10px;border:1px solid #4a6fa0;background:#12233b;color:#e8f2ff;font-size:16px;font-weight:650;cursor:pointer}
.ffQuoteAsk{border:1px solid #2b4466;border-radius:16px;background:#0c1526;color:#e8f1ff;padding:22px;max-width:min(440px,calc(100vw - 32px))}
.ffQuoteAsk h2{margin:0 0 8px;font-size:22px}.ffQuoteAsk p{margin:0 0 12px;font-size:16px;color:#c3d1e6}
.ffQuoteAsk input{width:100%;box-sizing:border-box;min-height:48px;padding:10px 12px;border-radius:10px;border:1px solid #3a5272;background:#0d1626;color:#f5f8fc;font-size:16px}
.ffQuoteAsk .ffQuoteMsg{min-height:22px;color:#ffb4b4;margin:8px 0}.ffQuoteBtns{display:flex;gap:10px}.ffQuoteBtns button{flex:1}
.ffQuoteAsk .ffQuoteAdd{background:#0a64c8;border-color:#0a64c8;color:#fff}
.ffCreator .ffQuoteCard .ffQuoteText small,.storyPreview .ffQuoteCard .ffQuoteText small,#readerViewer .ffQuoteCard .ffQuoteText small{font-size:16px!important;line-height:1.35}
.ffCreator details.ffMore textarea,.ffCreator details.ffMore .ffStoryTagsBox,.ffCreator details.ffMore input{max-width:100%;box-sizing:border-box}
.ffCreator details.ffMore{overflow:visible;box-sizing:border-box;max-width:100%}
.ffCreator.ffCreator input.ffStoryTitleInput.ffStoryTitleInput[data-field]{min-height:56px!important;font-size:24px!important}

/* Create → Game with chapters (lot 15): the list of chapters is the page's main part (same frame as Story / Comic / Film / Music) */
.gpHome .gcHead h2{margin:18px 0 8px;font-size:20px;color:#f5f8fc}
.gpHome .gcList{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:10px}
.gpHome .gcEmpty{padding:14px;border:1px dashed #3a5272;border-radius:12px;color:#c3d1e6;font-size:16px}
.gpHome .gcRow{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;padding:12px;border:1px solid #22314a;border-radius:12px;background:#0b1626}
.gpHome .gcNum{flex:0 0 28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#12233b;color:#c3d1e6;font-weight:700;margin-top:10px}
.gpHome .gcMain{flex:1 1 260px;min-width:0}.gpHome .gcState{margin:6px 0;font-size:16px;color:#c3d1e6}.gpHome .gcState.ok{color:#7fe0a3}.gpHome .gcState.bad{color:#ffb4b4}
.gpHome .gcSaveNote{margin:2px 0 6px;font-size:14px;color:#a9bbd0}.gpHome .gcSaveNote a{color:#7cc4f2;font-weight:650}
.gpHome .gcPrice{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gpHome .gcPriceLab{display:flex;gap:8px;align-items:center;font-size:16px;color:#e8f0f8}
.gpHome .gcPrice select,.gpHome .gcAmount{min-height:48px;font-size:16px}.gpHome .gcAmount{width:120px}
.gpHome .gcSide{display:flex;gap:8px;flex-wrap:wrap}
.gpHome .gcBtn{min-height:48px;min-width:48px;padding:0 16px;border-radius:10px;border:1px solid #4a6fa0;background:#12233b;color:#e8f2ff;font-size:16px;font-weight:650;cursor:pointer}.gpHome .gcBtn:disabled{opacity:.5;cursor:default}
.gpHome .gcDanger{color:#ffc4c4;border-color:#7a3340;background:#1a1118}
.ffCreator .gpHome .gcRow button,.ffCreator .gpHome .gcRow select,.ffCreator .gpHome .gcRow input:not([hidden]),.ffCreator .gpHome .gpPick{min-height:48px!important}
.ffCreator.ffCreator .gpHome .gcRow input.gpInput.gcName,.ffCreator.ffCreator .gpHome .gcRow input.gpInput.gcAmount{min-height:48px!important}
.gpHome .gcAsk{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gpHome .gcAsk b{font-size:16px;color:#ffc4c4}
.gpHome .gcFixNote{margin:0 0 12px;padding:10px 12px;border:1px solid #7a3340;border-radius:10px;background:#1a1118;color:#ffc4c4;font-size:16px}

.ffStoryChRow.is-live button.ffStoryChAccessLive{border:0;cursor:pointer;position:relative;font-family:inherit}.ffStoryChRow.is-live button.ffStoryChAccessLive::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,48px);height:48px;transform:translate(-50%,-50%)}
.ffComicChapterRow.is-live button.ffStoryChAccessLive{display:inline-block;padding:4px 10px;border-radius:20px;border:0;background:#0f1a28;color:#8fa2ba;font-size:var(--fs-secondary);font-weight:650;white-space:nowrap;cursor:pointer;position:relative;font-family:inherit}
.ffComicChapterRow.is-live button.ffStoryChAccessLive::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,48px);height:48px;transform:translate(-50%,-50%)}

.gpWaiting{border:1px solid #6b5a1f;background:#1b1a0d;border-radius:12px;padding:12px 14px;margin:0 0 12px}.gpWaiting p{margin:0 0 8px;font-size:16px}.gpWaiting .gcBtn{min-height:48px;font-size:16px}
.gpPage input:disabled,.gpPage textarea:disabled,.gpPage select:disabled{opacity:.6}
/* Create > Music: the Lyrics box of a draft track (free text, many lines); dark like the row, the text at the 16px main size */
.mwLyrics{margin-top:8px}.mwLyrics>summary{cursor:pointer;color:#9fb2cc;font-size:var(--fs-secondary,14px);font-weight:600;list-style:none}.mwLyrics>summary::-webkit-details-marker{display:none}.mwLyrics[open]>summary{margin-bottom:6px}
.mwLyricsText{display:block;width:100%;box-sizing:border-box;min-height:120px;resize:vertical;padding:10px 12px;border:1px solid #22314a;border-radius:10px;background:#07101d;color:#e8f1ff;font:inherit;font-size:var(--fs-main,16px);line-height:1.5}
.mwRow .mwBody{min-width:0}

/* Owner #1401: Game editor hierarchy. The Update button lives in the shared frame's footer slot (.ffCreator .ffStoryFooterActions [data-ow-slot="footerExtra"] .gcMetaUpdate), OUTSIDE .gpHome, so every rule here is scoped by .gcMetaUpdate (used by this one button only). Update = PRIMARY when there is a change, quiet+disabled when clean, primary-looking+disabled while sending; the live state is a label, not a button */
.ffCreator .gcMetaUpdate button.gcBtn{min-height:48px;min-width:48px;padding:0 16px;border-radius:10px;border:1px solid #4a6fa0;background:#12233b;color:#e8f2ff;font-size:16px;font-weight:650;cursor:pointer}
.ffCreator .gcMetaUpdate button.gcBtn.gcBtnPrimary{background:#0a97ff;border-color:#0a97ff;color:#fff;font-weight:750;opacity:1;box-shadow:0 0 0 2px rgba(10,151,255,.35)}.ffCreator .gcMetaUpdate button.gcBtn.gcBtnPrimary:hover:not(:disabled){background:#2ba6ff;border-color:#2ba6ff}
.ffCreator .gcMetaUpdate button.gcBtn.gcBtnQuiet:disabled{background:transparent;border:1px dashed #3a4a60;color:#7d8da3;opacity:1;font-weight:500;cursor:not-allowed;box-shadow:none}
.ffCreator .gcMetaUpdate button.gcBtn.gcBtnBusy:disabled{opacity:.7;cursor:progress}
.ffOwLiveState{display:inline-flex;align-items:center;gap:6px;margin:0;padding:8px 2px;color:#6fd39a;font-size:16px;font-weight:650}
