/* The shared Create Work frame (creator/work-overview.js). Only what the frame ADDS on top of the classes the kinds already use (ffStory*): the lock sentence, the reason under a closed main action, the toolbar slot, the watermark drawn INSIDE the frame. */
.ffOwNotice{margin:10px 0 0;padding:10px 12px;border:1px solid #6b5a1f;background:#1b1a0d;border-radius:12px;font-size:16px;color:#f3e6b3}
.ffOwWhy{margin:6px 0 0;color:#a9bad0;font-size:var(--fs-secondary,14px)}
.ffOwToolbar{display:inline-flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.ffOwIntro{display:block}.ffOwIntroLabel{display:block;color:#f5f8fc;font-size:var(--fs-secondary,14px);font-weight:650;margin:0 0 2px}.ffOwIntroHint{display:block;color:#9fb2cc;font-size:var(--fs-secondary,14px);line-height:1.45;margin:0 0 8px}
.ffOwWatermark{position:sticky;bottom:56px;height:300px;margin:-300px 0 0;pointer-events:none;background:var(--ff-wm-img) no-repeat right -30px bottom 0/300px 300px}
@media(max-width:540px){.ffOwWatermark{height:200px;margin-top:-200px;background-position:right -20px bottom 0;background-size:200px 200px}}
.ffCreator.ffCreator[data-wm][data-wm-frame]{background-image:none!important}
/* the Game keeps its own control classes (gpInput, gpLabel, gpPick...): inside the frame they sit in the meta column / the cover column */
.ffCreator .ffStoryMetaCol.gpHome{max-width:none;margin:0;padding:0}
.ffStoryCoverCol .gpThumb{display:block;width:100%;aspect-ratio:3/4;border-radius:12px;overflow:hidden;border:0;padding:0}.ffStoryCoverCol .gpThumb img{display:block;width:100%;height:100%;object-fit:contain}
.ffStoryCoverCol .gpBtnLike{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:8px;padding:0 18px;border-radius:10px;border:1px solid #4a6fa0;background:#12233b;color:#e8f2ff;font-size:16px;font-weight:650;cursor:pointer}
/* Comic inside the frame: its editor root only groups, the chapter list keeps its own rows, the toolbar sits beside "+ Add chapter" */
.ffComicEditor.ffOwRoot{padding:0;display:contents}
.ffComicChapterList{display:flex;flex-direction:column;gap:8px}
.ffOwToolbar .ffComicImportBtn{display:inline-flex;align-items:center;min-height:48px;padding:0 14px;cursor:pointer}.ffOwToolbar .ffComicFind{min-height:48px;font-size:16px;border-radius:10px;border:1px solid #3a5272;background:#0d1626;color:#e8f1ff;padding:0 12px}
.ffComicImportHint{color:#8fa2ba;font-size:var(--fs-secondary,14px);margin:6px 0}
.ffOwDetail{padding:14px 24px 24px}

/* B131/B132/B135 (phone): one footer for every kind. Main action on its own full row, its reason right under it, then the small buttons; nothing wraps or overlaps. */
.ffCreator .ffStoryBrand{white-space:nowrap;min-width:0}
.ffCreator .ffStoryFooterActions .ffStoryPrimaryBtn,.ffCreator .ffStoryFooterActions .ffStorySecondaryBtn{white-space:nowrap}
@media(max-width:540px){
 .ffCreator .ffStoryBrandName,.ffCreator .ffStoryBrandDivider{display:none}
 .ffCreator .ffStoryTopBar{gap:8px;padding:12px}
 .ffCreator .ffStoryBrand{flex:0 1 auto;min-width:0;padding:6px 2px;gap:6px}
 .ffCreator .ffStoryBrand .ffIc{margin-right:2px}
 .ffCreator .ffStoryBrandMark{display:none}                       /* the logo gives way to the full kind name ("Story / Novel") on a phone */
 .ffCreator .ffStoryBrandKind{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .ffCreator .ffStoryTopBar .ffStoryCloseBtn{width:44px;min-width:44px}
 /* MA-001 (KTS 16/10, add-only, phone only): in the chapter editor the long '← Back to story overview' takes what is left and ends in '…', so Done / Preview / Close always fit (Preview was cut, Close outside) */
 .ffCreator .ffStoryTopBar .ffStoryBackToWork{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ffCreator .ffStoryTopBar .ffStoryDoneBtn,.ffCreator .ffStoryTopBar .ffStoryChapterPreviewBtn{flex:0 0 auto;padding-left:10px;padding-right:10px}
 .ffCreator .ffStoryTopBar.ffStoryTopBar{gap:8px;padding:12px}      /* story.css (loaded later) set 14 px gaps and 28 px sides again: measured, Close was still out at 360 / 320 */
 .ffCreator .ffStoryFooterActions{flex-wrap:wrap;align-items:stretch;gap:10px}
 .ffCreator .ffStoryFooterActions .ffStoryPrimaryBtn{order:1;flex:1 1 100%;min-height:48px;font-size:16px}
 .ffCreator .ffStoryFooterActions .ffOwWhy{order:2;flex:1 1 100%;margin:0;font-size:14px;line-height:1.35}
 .ffCreator .ffStoryFooterActions .ffStorySecondaryBtn{order:3;flex:1 1 calc(50% - 5px);min-width:0;min-height:48px;font-size:16px;padding:0 10px}
 .ffCreator .ffStoryFooterActions [data-ow-slot="footerExtra"]{order:4;flex:1 1 100%}
}

/* B136: the "More" row is exactly the 44px it was before the shared frame (the "+" glyph no longer adds height) */
.ffCreator details.ffMore>summary[data-ow="more"]{box-sizing:border-box;height:44px;min-height:44px;padding-top:0;padding-bottom:0}
.ffCreator details.ffMore>summary[data-ow="more"]::after{line-height:1}

/* KTS condition (b): a long status ("Waiting for review") shrinks with an ellipsis; it never pushes the close button off the bar (390 and 360) */
.ffCreator .ffStoryTopBar .ffStoryStatus{flex:0 1 auto;min-width:0;max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.ffCreator .ffStoryTopBar .ffStoryStatus:empty{display:none}
.ffCreator .ffStoryTopBar .ffStoryCloseBtn,.ffCreator .ffStoryTopBar .ffStoryCreateBack{flex-shrink:0}
.ffCreator .ffStoryTopBar .ffStoryStatus::before{display:inline-block;vertical-align:middle;margin-right:6px}

/* B135: the Game's empty cover is a <label>; ".ffCreator label{display:block;margin:16px 0}" beat the cell's own flex, so the icon sat top-left and 'Add cover' ran into 'PNG · JPG · WEBP'. Same centred cell as Story's. */
.ffCreator label.ffStoryCoverEmpty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin:0;text-align:center}

/* B144 (T1): the 'Cancel review' button of a game in review is at least 48px at every width */
.ffOwNotice .gcBtn,.gpWaiting .gcBtn{min-height:48px}

/* the stacked phone footer is sticky: anything scrolled into view stops ABOVE it, never behind it */
@media(max-width:540px){.ffCreator{scroll-padding-bottom:260px}}

/* B169: a refused ZIP: red block with the reason and the one next step (red as the rest of the errors, text >=14px, button 48px on a phone) */
.ffCreator .mwFailed{margin:10px 0;padding:12px 14px;border:1px solid #8a2b2b;border-left-width:4px;border-radius:12px;background:#2a1215;color:#ffd7d7}
.ffCreator .mwFailed b{display:block;color:#ffb4b4;font-size:16px;margin-bottom:4px;overflow-wrap:anywhere}
.ffCreator .mwFailed p{margin:0 0 10px;font-size:var(--fs-secondary,14px);line-height:1.45;color:#ffd7d7;overflow-wrap:anywhere}
.ffCreator .mwFailed .ffStorySecondaryBtn{min-height:44px}
@media(max-width:540px){.ffCreator .mwFailed .ffStorySecondaryBtn{min-height:48px;width:100%}}

/* B165: the one 'Delete series' button of a TapShow overview: red, 48px on a phone, apart from the Taps */
.ffCreator .mwSeriesDelete{margin:18px 0 6px}
.ffCreator .mwDangerBtn{min-height:44px;border-color:#8a2b2b;color:#ffb4b4;background:transparent}
@media(max-width:540px){.ffCreator .mwDangerBtn{min-height:48px;width:100%}}

/* Game declarations cannot share a nonshrinking action row with the buttons.
   Keep the notice, declarations, actions and validation in separate rows. */
.ffCreator .ffStoryFooter:has([data-gc="play-first"]){flex-direction:column;align-items:stretch}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffStoryFooterNote{flex:none;align-items:flex-start}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffStoryFooterActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);justify-content:end;align-items:start;flex:none;min-width:0;width:100%}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) [data-ow-slot="footerExtra"]{grid-column:1/-1;order:0;min-width:0}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .gpDecl{display:flex;flex-direction:column;align-items:stretch;margin:0 0 4px}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .gpDecl label{margin:0}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .gpDecl select{width:auto;max-width:100%}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .gpRights{display:flex;align-items:flex-start;gap:8px;flex-basis:auto}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .gpRights input{flex:none;width:auto;margin:3px 0 0}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffOwWhy{grid-column:1/-1;order:2;margin:0;overflow-wrap:anywhere}
.ffCreator .ffStoryFooter:has([data-gc="play-first"]) button{order:1;align-self:start;justify-self:end;margin:0;max-width:100%;white-space:normal}
@media(max-width:540px){
 .ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffStoryFooterActions{grid-template-columns:minmax(0,1fr)}
 .ffCreator .ffStoryFooter:has([data-gc="play-first"]) button{justify-self:stretch}
 .ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffStoryPrimaryBtn{order:1}
 .ffCreator .ffStoryFooter:has([data-gc="play-first"]) .ffStorySecondaryBtn{order:3}
}
