.sfs-tabs,.sfs-actions,.sfs-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.sfs-tabs [aria-pressed=true]{background:#177bd2;color:#fff;border-color:#177bd2}.sfs-active #storyMaterialCompact .sm-sources,.sfs-active .story-submit-row,.sfs-active #storyMediaDraftStatus{display:none!important}.sfs-active .story-form-stage{min-width:0}.sfs-import{padding:16px;border:1px dashed #b5cce1;border-radius:12px;background:#f8fbff}.sfs-import span{margin-left:12px}.sfs-folders{max-height:300px;overflow:auto;margin:12px 0}.sfs-folder{display:flex;align-items:center;gap:8px;border:1px solid #dbe7f1;padding:8px;margin:6px 0;border-radius:10px}.sfs-folder.selected{background:#eaf4ff;border-color:#71b4ee}.sfs-folder>input{width:auto!important}.sfs-folder>button:first-of-type{flex:1;text-align:left;overflow-wrap:anywhere}.sfs-folder>span{color:#63809b;font-size:12px}.sfs-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.sfs-fields label,.sfs-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:0}.sfs-toolbar label{flex:1}.sfs-fields input,.sfs-fields select,.sfs-toolbar select{width:100%;min-width:0}.sfs-table{overflow:auto}.sfs-table table{width:100%;border-collapse:collapse}.sfs-table th,.sfs-table td{padding:10px;text-align:left;border-bottom:1px solid #e3edf6}.sfs-table td:last-child{overflow-wrap:anywhere;max-width:260px}.sfs-error{color:#b42318}.sfs-run{border:1px solid #d7e5f2;border-radius:12px;padding:16px;margin:12px 0}.sfs-result{display:flex;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e3edf6}.sfs-result>span:first-child{flex:1;min-width:160px}.sfs-result>span:nth-child(3){color:#b42318}.sfs-dialog{border:1px solid #d6e4f1;border-radius:16px;padding:24px;max-width:620px;width:90%;max-height:85vh;overflow:auto}.sfs-dialog::backdrop{background:#173c5e66}.sfs-dialog label{display:flex;gap:10px;align-items:center;margin:10px 0}.sfs-dialog input{width:auto!important}.sfs-busy #storyFolderSchedule,.sfs-busy .sfs-toolbar,.sfs-busy #sfsTiming{opacity:.65;pointer-events:none}[data-stf-repeat-wrap]{font-weight:500!important;margin:12px 0}[data-stf-repeat-wrap][hidden]{display:none!important}@media(max-width:800px){.sfs-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sfs-folder{flex-wrap:wrap}.sfs-toolbar{align-items:stretch}.sfs-toolbar label{flex-basis:100%}}@media(max-width:480px){.sfs-fields{grid-template-columns:1fr}}

.sfs-toolbar[hidden],#storyFolderSchedule[hidden],#sfsTiming[hidden],#sfsReview[hidden],.sfs-history[hidden]{display:none!important}

.sfs-picker{max-width:780px;box-sizing:border-box}.sfs-picker[open]{display:flex;flex-direction:column;gap:8px}.sfs-picker h3{margin:0}.sfs-picker .sfs-actions{margin:4px 0;flex-shrink:0}.sfs-picker>label{margin:0;flex-shrink:0}.sfs-picker #sfsPickerList{flex:1 1 auto;min-height:80px}.sfs-picker #sfsPickerList{max-height:48vh;overflow:auto;border:1px solid #d7e5f2;border-radius:10px}.sfs-picker .sfs-pick-row{margin:0;padding:10px 12px;border-bottom:1px solid #e3edf6}.sfs-pick-row span{flex:1;overflow-wrap:anywhere}.sfs-pick-row small{color:#63809b;white-space:nowrap}.sfs-picker #sfsPickerNote{color:#b42318}.sfs-dragover .sfs-import{outline:3px solid #177bd2;background:#eaf4ff}

#sfsItemLinks{margin-top:24px;padding-top:18px;border-top:1px solid #d7e5f2}#sfsItemLinks[hidden],#sfsLinkCustom[hidden],#sfsModelControls[hidden],#sfsLinkPositionLabel[hidden],#sfsItemButton[hidden],#sfsItemImage[hidden],#sfsItemVideoLabel[hidden],#sfsItemReady[hidden]{display:none!important}.sfs-item-layout{display:grid;grid-template-columns:minmax(170px,280px) minmax(0,1fr);gap:24px}.sfs-item-preview{position:relative;aspect-ratio:9/16;max-height:390px;background:#e8eff6;border:1px solid #c8dceb;border-radius:16px;overflow:hidden}.sfs-item-preview img{width:100%;height:100%;object-fit:cover}.sfs-item-preview>span{position:absolute;top:12px;left:12px;border-radius:6px;padding:4px 8px;background:#fff;color:#234a68}.sfs-item-preview button{position:absolute;margin:0;transform:translate(-50%,-50%);max-width:80%;overflow-wrap:anywhere;touch-action:none;cursor:move;padding:8px 12px;border-radius:8px;background:white;color:#176daf;border:1px solid #c5dcf0}.sfs-item-layout label{display:flex;flex-direction:column;gap:5px}.sfs-item-layout input,.sfs-item-layout select{width:100%;min-width:0}#sfsItemCaption{white-space:pre-wrap;overflow-wrap:anywhere}#sfsItemDestination{overflow-wrap:anywhere}#sfsModelControls{display:flex;gap:12px}#sfsModelControls label{flex:1;display:flex;flex-direction:column}#sfsModelControls select{width:100%;min-width:0}@media(max-width:650px){.sfs-item-layout{grid-template-columns:1fr}.sfs-item-preview{max-width:240px}.sfs-item-layout>div:first-child{max-width:100%}#sfsModelControls{flex-direction:column}}

/* The album badges use the same styles as the Models album chooser. */
#sfsPickerList .ml-album-name{min-width:0;overflow-wrap:anywhere;white-space:normal;line-height:1.45}
#sfsPickerList .ml-album-counts{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:flex-end}
#sfsPickerList .ml-album-type{display:inline-block;white-space:nowrap;border-radius:6px;padding:4px 7px;font-size:12px;font-weight:600;line-height:1.35;font-variant-numeric:tabular-nums}
#sfsPickerList .ml-album-type-image{color:#075996;background:#e5f2ff}
#sfsPickerList .ml-album-type-video{color:#7040a0;background:#f2eafa}
#sfsPickerList .ml-album-type-video_note{color:#236444;background:#e7f5ed}
#sfsPickerList .ml-album-type-empty{color:#526779;background:#edf2f6}
.sfs-picker #sfsPickerList{border-color:#a9c9e7;padding:4px;background:#fff;overscroll-behavior:contain;box-shadow:0 8px 24px #16324f26}
#sfsPickerList .sfs-pick-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 8px;margin:0;border:0;border-radius:6px;cursor:pointer;font-size:13px;color:#193e5a}
#sfsPickerList .sfs-pick-row:hover,#sfsPickerList .sfs-pick-row:focus-within{background:#edf6ff}
#sfsPickerList .sfs-pick-row.sfs-pick-selected{box-shadow:inset 3px 0 #1483e4;background:#f0f7fd}
#sfsPickerList .sfs-pick-row input{margin:0;accent-color:#1483e4}
@media(max-width:650px){#sfsPickerList .sfs-pick-row{grid-template-columns:auto minmax(0,1fr);gap:6px 12px}#sfsPickerList .ml-album-counts{grid-column:2;justify-content:flex-start}}

#sfsScheduleFields[hidden],#sfsNowNote[hidden],#sfsItemCaption[hidden],#sfsItemDestination[hidden]{display:none!important}
#sfsPublishMode [aria-pressed=true]{background:#177bd2;color:#fff;border-color:#177bd2}
#sfsItemLinks{margin:0 0 16px;padding:0 0 12px;border-top:0;border-bottom:1px solid #d7e5f2}
#sfsItemLinks label{display:flex;flex-direction:column;gap:5px;margin:8px 0}#sfsItemLinks input:not([type=checkbox]),#sfsItemLinks select{width:100%;min-width:0}
#sfsItemLinks label:has(input[type=checkbox]){flex-direction:row;align-items:center}#sfsItemLinks input[type=checkbox]{width:auto}
.sfs-file-custom #storyTextFolders,.sfs-file-custom #storyLibraries{display:none!important}

:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-counts{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:flex-end}
:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-type{display:inline-block;white-space:nowrap;border-radius:6px;padding:4px 7px;font-size:12px;font-weight:600;line-height:1.35;font-variant-numeric:tabular-nums}
:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-type-image{color:#075996;background:#e5f2ff}
:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-type-video{color:#7040a0;background:#f2eafa}
:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-type-video_note{color:#236444;background:#e7f5ed}
:is(#storyFolderSchedule,[data-sm-folder-context]) .ml-album-type-empty{color:#526779;background:#edf2f6}
.sfs-totals{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 8px;padding:12px 14px;border:1px solid #cfe0ef;border-radius:10px;background:#f2f8fd;color:#193e5a}
.sfs-open-composition{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 14px;color:#193e5a}.sfs-open-composition[hidden]{display:none!important}
[data-sm-title]{min-width:0;overflow-wrap:anywhere}[data-sm-order]{white-space:nowrap}
.sfs-folder>[data-sfs-badges]{flex-shrink:0}.sfs-folder>[data-sfs-badges] .ml-album-counts{justify-content:flex-start}

.sfs-folder-step{padding:12px 14px;margin:12px 0;border:1px solid #b5cce1;border-radius:10px;background:#f0f7ff;scroll-margin-top:20px}.sfs-folder-step strong{display:block;color:#13598f;font-size:16px}.sfs-folder-step>span{display:block;margin-top:6px;overflow-wrap:anywhere}.sfs-folder-step p{margin-bottom:0}.sfs-folder-step-actions{border-top:1px solid #d7e5f2;margin-top:16px;padding-top:12px}.sfs-folder-step-actions .sfs-actions{justify-content:space-between;flex-wrap:wrap}.sfs-folder-step[hidden],.sfs-folder-step-actions[hidden]{display:none!important}

/* Keep the selected material visible even when its folder has no button. */
.sfs-active .sfs-link-off #storyLibraries,.sfs-active .sfs-link-off #storyTextFolders,.sfs-active .sfs-link-off .stf-position{display:none!important}

/* Match the Models album list while retaining multiple selection. */
.sfs-picker.sfs-model-albums #sfsPickerList{max-height:min(595px,75vh)}
.sfs-picker .sfs-actions[hidden]{display:none!important}
#sfsPickerList .sfs-pick-row:has(input:disabled){cursor:default;opacity:.65}

/* Main publication mode selector, above the shared account picker. */
#storiesView .sfs-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:700px;margin:24px auto 10px;box-sizing:border-box}
#storiesView .sfs-tabs button{width:100%;margin:0;min-height:56px;padding:12px 16px;border:1px solid #bddbfa;border-radius:10px;background:#fff;color:#176bb1;font-size:16px;font-weight:600;line-height:1.35;box-shadow:none;white-space:normal}
#storiesView .sfs-tabs button[aria-pressed="true"]{background:#177bd2;border-color:#177bd2;color:#fff}
#storiesView .sfs-tabs button[aria-pressed="false"]:hover:not(:disabled){background:#f0f7ff;border-color:#7eb8ec}
#storiesView .sfs-tabs button:focus-visible{outline:3px solid #85bcf0;outline-offset:3px}
#storiesView .sfs-tabs button:disabled{opacity:.55;cursor:not-allowed}
#storiesView .sfs-mode-hint{max-width:700px;margin:0 auto 20px;text-align:center;color:#63809b;font-size:13px;line-height:1.5}
@media(max-width:480px){#storiesView .sfs-tabs{gap:8px}#storiesView .sfs-tabs button{padding:10px 8px;font-size:14px}}

/* Secondary actions in Stories and its own pickers use the same outline style. */
:is(#storiesView,#storyDetailsDialog,.sfs-dialog,.sm-dialog) button.alt:not(.danger):not(.active):not([aria-pressed="true"]),
#storiesView [data-sfs="models"]{background:#fff;color:#176bb1;border:1px solid #bddbfa;box-shadow:none}
:is(#storiesView,#storyDetailsDialog,.sfs-dialog,.sm-dialog) button.alt:not(.danger):not(.active):not([aria-pressed="true"]):hover:not(:disabled),
#storiesView [data-sfs="models"]:hover:not(:disabled){background:#f0f7ff;border-color:#7eb8ec;color:#176bb1}
:is(#storiesView,#storyDetailsDialog,.sfs-dialog,.sm-dialog) button.alt:focus-visible,
#storiesView [data-sfs="models"]:focus-visible{outline:3px solid #85bcf0;outline-offset:3px}

/* Fixed number column: periods and publication numbers align across all rows. */
#sfsPickerList .ml-album-name.ml-album-numbered{display:grid;grid-template-columns:4.5ch minmax(0,1fr);gap:8px;align-items:baseline}
#sfsPickerList .ml-album-order{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:0}
#sfsPickerList .ml-album-title{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

.sfs-model-field{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.sfs-model-choice{position:relative;text-align:left}
.sfs-model-choice button{margin:0;width:100%;display:flex;align-items:center;gap:10px;text-align:left;white-space:normal}
.sfs-model-toggle{min-height:54px}
.sfs-model-avatar{position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#e5f2ff;color:#176bb1;display:grid;place-items:center;font-size:13px}
.sfs-model-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sfs-model-identity{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.sfs-model-identity small{color:#63809b;font-size:12px}
.sfs-model-options{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;max-height:300px;overflow:auto;border:1px solid #bddbfa;border-radius:10px;background:#fff;box-shadow:0 6px 20px #173c5e25;padding:4px}
.sfs-model-options[hidden],#sfsFolderModel[hidden]{display:none!important}
.sfs-model-options button{background:#fff;color:#176bb1;border:1px solid transparent;padding:8px;border-radius:7px;box-shadow:none}
.sfs-model-options button[aria-selected=true]{background:#eaf4ff;border-color:#9dcbf5}
.sfs-model-choice button:focus-visible{outline:2px solid #177bd2;outline-offset:-2px}
.sfs-model-options button:hover{background:#f0f7ff}
.sfs-folder>[data-sfs-move],.sfs-folder>.sfs-folder-remove{flex:0 0 34px;width:34px;height:34px;padding:0;margin:0;display:grid;place-items:center}
.sfs-folder>.sfs-folder-remove{font-size:21px}
.sm-material-preview .sm-view-actions{position:absolute;left:6px;right:6px;bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:4px}
#storiesView .sm-view-actions .sm-view-open{margin:0;padding:4px 6px;font-size:11px;line-height:1.25;border:1px solid #bddbfa;background:#fff;color:#176bb1;border-radius:5px}
.sm-view-actions .sm-video-label{position:static}
.sm-material-preview>img,.sm-material-preview>video{cursor:zoom-in}

/* All new layout is scoped to folder publication; ordinary Stories keep their DOM/styles. */
#sfsSimpleEditor[hidden],#sfsSimpleLayout[hidden],#sfsSimpleEmpty[hidden],#sfsSimpleFields[hidden],#sfsSimpleNone[hidden],#sfsUntilLabel[hidden],#sfsTiming label[hidden]{display:none!important}
#storiesView.sfs-active #storyCaptionBlock,#storiesView.sfs-active .sfs-toolbar,#storiesView.sfs-active #storyMaterialCompact,#storiesView.sfs-active #eternalLinkFields,#storiesView.sfs-active label:has(>#eternalLinkEnabled),#storiesView.sfs-active .sfs-folder-step,#storiesView.sfs-active .sfs-folder-step-actions{display:none!important}
#sfsSimpleLayout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;margin-top:22px}
#sfsSimpleLayout>*{min-width:0}#sfsSimpleLayout>aside{border-right:1px solid #d4e5f4;padding-right:16px}#sfsSimpleSearch{width:100%;margin:12px 0}#sfsSimpleFolders{max-height:670px;overflow:auto}
#storiesView .sfs-simple-folder{display:flex;flex-direction:column;gap:10px;margin:0 0 8px;padding:13px;width:100%;text-align:left;border:1px solid transparent;background:white;color:#194a72;border-radius:9px;overflow-wrap:anywhere}
#storiesView .sfs-simple-folder[aria-pressed=true]{background:#edf6ff;color:#194a72;border-color:#82b9ee}#storiesView .sfs-simple-folder .hint{font-size:12px}#sfsSimpleFolders .ml-album-counts{display:flex;gap:5px;flex-wrap:wrap}#sfsSimpleFolders .ml-album-type{font-size:12px;padding:4px 6px;border-radius:5px}#sfsSimpleFolders .ml-album-type-image{color:#075996;background:#e5f2ff}#sfsSimpleFolders .ml-album-type-video{color:#7040a0;background:#f2eafa}
.sfs-simple-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0 16px}.sfs-simple-heading strong{font-size:16px;overflow-wrap:anywhere}
#sfsSimpleThumbs{display:flex;gap:9px;overflow:auto;padding:2px 2px 14px}#storiesView .sfs-simple-thumb{position:relative;flex:0 0 88px;padding:4px;border:1px solid #c6ddf4;background:white;color:#195587;margin:0;overflow:hidden}#storiesView .sfs-simple-thumb[aria-pressed=true]{border:2px solid #177bd2;background:#edf6ff;color:#195587}.sfs-simple-thumb img,.sfs-simple-thumb video{width:100%;height:78px;object-fit:cover;display:block;border-radius:4px}.sfs-simple-thumb>span{display:block;font-size:11px;margin-top:5px}.sfs-simple-thumb>small{position:absolute;top:6px;right:6px;background:white;border-radius:8px;color:#167052;padding:2px 5px}
.sfs-simple-workspace{display:grid;grid-template-columns:minmax(200px,300px) minmax(220px,1fr);gap:25px;margin-top:12px;align-items:start}.sfs-simple-workspace>*{min-width:0}
#storiesView.sfs-active #sfsSimplePreview .stf-nav,#storiesView.sfs-active #sfsSimplePreview .stf-ready-control,#storiesView.sfs-active #sfsSimplePreview .stf-position,#storiesView.sfs-active #eternalStoryFilmstrip{display:none!important}
#sfsSimplePreview .eternal-story-canvas{box-sizing:border-box;width:100%;max-width:300px;min-height:0;aspect-ratio:9/16}#sfsSimplePreview .eternal-story-button[hidden],#sfsSimplePreview #eternalStoryEmpty.hidden,#sfsSimplePreview #eternalStoryImage.hidden,#sfsSimplePreview #eternalStoryVideo.hidden{display:none!important}.sfs-simple-preview-actions{display:none}#storiesView.sfs-active .sfs-simple-preview-actions{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:10px}#storiesView .sfs-simple-preview-actions button{font-size:12px;padding:6px;margin:0}
#sfsSimpleForm h3{margin:5px 0 7px}#sfsSimpleFile{overflow-wrap:anywhere;font-size:12px;margin:0 0 15px}#sfsSimpleForm label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}#sfsSimpleForm input:not([type=checkbox]),#sfsSimpleForm select{width:100%;min-width:0}#sfsSimpleForm .sfs-simple-toggle,#sfsSimpleForm .sfs-simple-pin{flex-direction:row;align-items:center;gap:9px}#sfsSimpleForm input[type=checkbox]{width:auto;flex-shrink:0}#sfsSimpleForm .sfs-simple-toggle{border-top:1px solid #d5e5f5;border-bottom:1px solid #d5e5f5;padding:14px 0;font-weight:600;margin:12px 0 20px}.sfs-simple-small,.sfs-simple-pin{font-size:12px}.sfs-simple-texts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sfs-simple-tip{padding:12px 14px;background:#f1f8fe;color:#426d90;font-size:13px;line-height:1.6;border-radius:8px;margin:12px 0}.sfs-simple-save-link{margin:0 0 18px;font-size:12px}.sfs-simple-save-link summary{color:#176bb1;cursor:pointer;margin-bottom:8px}.sfs-simple-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #d5e5f5;margin-top:20px;padding-top:16px;flex-wrap:wrap}.sfs-simple-nav .hint{font-size:12px}.sfs-simple-empty{padding:30px 15px;text-align:center;color:#63809b}
#sfsTiming .sfs-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.sfs-simple-window{display:flex;gap:15px;margin-top:16px}.sfs-simple-window>label{display:flex;flex-direction:column;gap:7px;max-width:180px;flex:1}#sfsSimplePeriod [aria-pressed=true],#sfsSimpleDaily [aria-pressed=true]{background:#177bd2;color:#fff;border-color:#177bd2}#sfsPlan{max-height:460px;overflow:auto}.sfs-plan-row{display:grid;grid-template-columns:150px 105px minmax(100px,1fr) auto;gap:13px;align-items:center;padding:12px 0;border-top:1px solid #e0ebf6}.sfs-plan-row label{font-size:12px;display:flex;flex-direction:column;gap:5px}.sfs-plan-row input{width:100%;min-width:0}.sfs-plan-row .hint{display:block;margin:5px 0;font-size:12px}.sfs-plan-row strong{overflow-wrap:anywhere}
@media(max-width:1050px){#sfsSimpleLayout{grid-template-columns:185px minmax(0,1fr);gap:16px}.sfs-simple-workspace{grid-template-columns:minmax(180px,250px) minmax(180px,1fr);gap:16px}.sfs-plan-row{grid-template-columns:135px 100px minmax(100px,1fr)}.sfs-plan-row>span{grid-column:3}}
@media(max-width:850px){#sfsSimpleLayout{grid-template-columns:minmax(0,1fr)}#sfsSimpleLayout>aside{border:0;padding:0}#sfsSimpleFolders{display:flex;gap:8px;overflow:auto;max-height:none}#storiesView .sfs-simple-folder{flex:0 0 200px}#sfsSimpleSearch{max-width:320px}}
@media(max-width:600px){.sfs-simple-workspace{grid-template-columns:minmax(0,1fr)}#sfsSimplePreview{max-width:300px;margin:auto;width:100%}.sfs-simple-texts{grid-template-columns:1fr}#sfsTiming .sfs-fields{grid-template-columns:1fr}.sfs-plan-row{grid-template-columns:minmax(0,1fr) 100px}.sfs-plan-row>div{grid-column:1/-1}.sfs-plan-row>span{grid-column:auto}.sfs-simple-heading{flex-wrap:wrap}.sfs-simple-nav{align-items:stretch}.sfs-simple-nav .hint{order:3;width:100%}}

/* Folder mode: one folder navigator and a local, short-lived draft acknowledgement. */
#storiesView.sfs-active > [data-form-autosave]:not([data-save-error]){display:none!important}
#storiesView.sfs-active > [data-form-autosave][data-save-error]{position:static!important;top:auto!important}
#storiesView.sfs-active .story-form-stage:has(>#storyFolderSchedule)>p.hint{display:none}
#sfsFolders[hidden],#sfsSimpleSavedNote[hidden]{display:none!important}
#sfsSimpleSavedNote{position:static;padding:9px 12px;margin:0 0 12px;border:1px solid #c8deef;background:#f4fbff;border-radius:8px;font-size:13px;color:#214c6b}
#sfsSimpleSavedNote.sfs-error{color:#b42318;border-color:#f4b5b1;background:#fff8f7}
#storiesView .sfs-compact-folder{box-sizing:border-box;display:flex;flex-direction:column;gap:9px;padding:11px;margin:0 0 8px;border:1px solid #d4e5f4;border-radius:9px;background:#fff;color:#194a72;overflow-wrap:anywhere}
#storiesView .sfs-compact-folder.selected{border-color:#82b9ee;background:#edf6ff}
.sfs-compact-folder-title{display:flex;align-items:flex-start;gap:7px;min-width:0}
#storiesView .sfs-compact-folder-title input{width:auto;margin:8px 0 0;flex-shrink:0}
#storiesView .sfs-compact-folder-title button{min-width:0;flex:1;text-align:left;white-space:normal;overflow-wrap:anywhere;background:transparent;color:#194a72;border:0;padding:4px 0;margin:0;box-shadow:none;font-weight:600}
#storiesView .sfs-compact-folder .hint{font-size:12px}
.sfs-compact-folder-actions{display:flex;align-items:center;gap:5px}
.sfs-compact-folder-actions>span{flex:1}
#storiesView .sfs-compact-folder-actions button{width:28px;height:28px;padding:0;margin:0;flex-shrink:0;background:#fff;border:1px solid #bdd7ee;color:#177bd2;box-shadow:none}
#storiesView .sfs-compact-folder-actions button:disabled{opacity:.4}
@media(max-width:850px){#storiesView .sfs-compact-folder{flex:0 0 215px}}

/* Common rules are scoped to the folder composer; ordinary publication is unchanged. */
#sfsBulkCommon{padding:20px;border:1px solid #cde1f5;background:#f5faff;border-radius:12px;margin:18px 0 24px}.sfs-bulk-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:18px}.sfs-bulk-heading h3{margin:0 0 7px}.sfs-bulk-heading p{margin:0}.sfs-bulk-heading>span{white-space:nowrap;font-size:12px;padding:6px;background:#e4f2ff;border-radius:6px}.sfs-bulk-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.sfs-bulk-rule label:not(.sfs-bulk-inline){display:flex;flex-direction:column;gap:7px;font-weight:500;margin-bottom:9px}.sfs-bulk-rule input:not([type=checkbox]),.sfs-bulk-rule select{width:100%;min-width:0}.sfs-bulk-rule [data-bulk-field=nth]{width:70px}.sfs-bulk-pick{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.sfs-bulk-pick select{flex:1;min-width:150px}.sfs-bulk-pick button{font-size:12px;white-space:nowrap}.sfs-bulk-text{border-top:1px solid #d5e5f4;padding-top:16px;margin-top:16px}.sfs-bulk-phrases{display:flex;gap:6px;flex-wrap:wrap;max-height:170px;overflow:auto}.sfs-bulk-phrases button{font-size:12px;padding:6px 9px}.sfs-bulk-inline{display:flex!important;flex-direction:row!important;gap:8px;align-items:center;margin:12px 0;font-size:13px}.sfs-bulk-inline input{width:auto!important;flex-shrink:0}.sfs-bulk-filters{display:flex;align-items:center;justify-content:space-between;gap:10px}.sfs-bulk-filters button{font-size:12px}#sfsBulkFolder{margin:12px 0 18px}#sfsBulkFolder summary{cursor:pointer;color:#177bd2;font-size:13px}#sfsBulkFolder details[open]{border:1px solid #cde1f5;border-radius:8px;padding:12px}#sfsBulkFolder .sfs-bulk-grid{grid-template-columns:minmax(0,1fr)}.sfs-bulk-assigned{padding:16px;background:#f8fbff;border:1px solid #cde1f5;border-radius:9px;display:grid;gap:8px}.sfs-bulk-assigned span{font-size:12px;color:#63809b}.sfs-bulk-assigned strong{overflow-wrap:anywhere;font-size:14px}.sfs-bulk-assigned span:nth-of-type(2){margin-top:10px}#sfsSimpleEditor .sfs-bulk-legacy{display:none!important}#sfsSimpleEditor [hidden]{display:none!important}#sfsSimpleThumbs .sfs-simple-thumb{position:relative;min-width:95px;max-width:110px}.sfs-bulk-thumb-text{font-size:10px!important;line-height:1.35;white-space:normal!important;min-height:28px}.sfs-simple-thumb [data-bulk-manual]{display:block;margin:8px auto 3px;width:16px;height:16px}.sfs-bulk-dialog{max-width:750px!important;width:90vw!important}.sfs-bulk-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:center}.sfs-bulk-dialog input:not([type=checkbox]),.sfs-bulk-dialog textarea{box-sizing:border-box;width:100%!important;font:inherit;padding:10px;border:1px solid #cde1f5;border-radius:7px;color:#17486e}.sfs-bulk-dialog textarea{resize:vertical;line-height:1.6}.sfs-bulk-dialog label{display:flex;flex-direction:column;align-items:stretch;gap:7px}.sfs-bulk-dialog button{border:1px solid #bdd7ee;background:#fff;color:#177bd2;border-radius:7px;padding:8px 12px}.sfs-bulk-dialog button[data-bulk-use],#sfsBulkSaveLibrary{background:#177bd2;color:white}.sfs-bulk-library-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #d5e5f4}.sfs-bulk-library-row>div:first-child{flex:1;min-width:0}.sfs-bulk-library-row p{overflow-wrap:anywhere}.sfs-bulk-library-actions{display:flex;flex-direction:column;gap:6px;min-width:110px}.sfs-bulk-library-actions button{font-size:12px}#sfsBulkLibraryRows{max-height:55vh;overflow:auto}#sfsBulkLibraryStatus{font-size:13px}#sfsBulkLibraryError{font-size:13px;color:#a33e2d}#sfsBulkLibraryDialog [hidden],#sfsBulkEditDialog [hidden]{display:none!important}#storiesView.sfs-active .sfs-bulk-rule button[aria-pressed=true],#storiesView.sfs-active .sfs-bulk-filters button[aria-pressed=true]{background:#177bd2;color:#fff;border-color:#177bd2}
@media(max-width:1100px){.sfs-bulk-grid{grid-template-columns:minmax(0,1fr)}.sfs-bulk-filters{align-items:start;flex-direction:column}}
@media(max-width:600px){#sfsBulkCommon{padding:13px}.sfs-bulk-heading{flex-wrap:wrap}.sfs-bulk-pick select{flex-basis:100%}.sfs-bulk-library-actions{min-width:90px}.sfs-bulk-library-row{gap:10px}.sfs-bulk-rule .sfs-actions button{font-size:12px}}

/* Autosave feedback must not move the editor or change the page's scroll anchor. */
#sfsSimpleEditor #sfsSimpleSavedNote{box-sizing:border-box;min-height:20px;line-height:20px;padding:0;margin:0 0 8px;border:0;background:none;font-size:12px;color:#426d90}
#sfsSimpleEditor #sfsSimpleSavedNote[hidden]{display:block!important;visibility:hidden}
#sfsSimpleEditor #sfsSimpleSavedNote.sfs-error{color:#b42318}
#sfsSimpleFolders .sfs-compact-folder-name{display:block;flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.4;color:#214c6b;overflow-wrap:anywhere;background:none;border:0;padding:0}
#sfsSimpleFolders .sfs-compact-folder-title{align-items:flex-start;gap:7px}
@media(min-width:851px){#sfsSimpleFolders.sfs-short-folder-list{max-height:none;height:auto;overflow:visible}}
