
/* ---------- 顶栏：60 高，右侧留白 28 ---------- */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-mhead { height: 60px !important; min-height: 60px !important; box-sizing: border-box !important; padding: 0 28px 0 20px !important; border-bottom: 1px solid #E4E4E7 !important; display: flex !important; align-items: center !important; gap: 16px !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-lhead { height: 60px !important; min-height: 60px !important; box-sizing: border-box !important; border-bottom: 1px solid #E4E4E7 !important; align-items: center !important; }
/* 左上剧名 */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-ltitle .sw2-tline, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-ltitle .sw2-tline * { font-family: "Songti SC", "STSong", "SimSun", serif !important; font-size: 16px !important; line-height: 22px !important; font-weight: 600 !important; color: #09090B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-lsub { font-size: 11px !important; line-height: 16px !important; color: #71717A !important; }
/* 规划 | 写作：分段胶囊 */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-modes { display: inline-flex !important; gap: 0 !important; padding: 3px !important; border-radius: 9999px !important; background: #F4F4F5 !important; flex-shrink: 0; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-modes .sw2-mode { height: 30px !important; padding: 0 14px !important; border: 0 !important; border-radius: 9999px !important; background: transparent !important; box-shadow: none !important; color: #52525B !important; font-size: 13px !important; line-height: 18px !important; font-weight: 400 !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-modes .sw2-mode svg { display: none !important; }
html body.sw-pp #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-modes .sw2-mode:not(.is-on) { color: #52525B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-modes .sw2-mode.is-on { background: #FFFFFF !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; color: #18181B !important; font-weight: 600 !important; }
/* 中间：当前位置居中 */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-mid { flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 12px !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-pagetitle { display: inline-flex !important; align-items: baseline !important; gap: 8px !important; white-space: nowrap; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-pagetitle b { font-size: 13px !important; font-weight: 600 !important; color: #18181B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-pagetitle span { font-family: "DM Mono", ui-monospace, monospace !important; font-size: 12px !important; color: #71717A !important; }
/* 右侧：状态 + 轻按钮 + 唯一主按钮 */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right { display: flex !important; align-items: center !important; gap: 4px !important; flex-shrink: 0; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status { margin-right: 10px !important; font-size: 12px !important; color: #71717A !important; white-space: nowrap; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 9999px; background: #16A34A; vertical-align: 1px; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status[data-s="true"]::before, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status.is-dirty::before { background: #D97706; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-nav, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .btn-download-script, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw-pp-btn, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-save { height: 32px !important; padding: 0 10px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important; color: #3F3F46 !important; font-size: 13px !important; font-weight: 600 !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; white-space: nowrap; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-nav:hover, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .btn-download-script:hover, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw-pp-btn:hover, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-save:hover { background: #F4F4F5 !important; color: #18181B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-save { color: #52525B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-ai#btn-toolbar-ai { order: 9; margin-left: 6px !important; height: 32px !important; padding: 0 14px !important; border: 1px solid #18181B !important; border-radius: 6px !important; background: #18181B !important; color: #FAFAFA !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-ai#btn-toolbar-ai svg { color: #FAFAFA !important; stroke: currentColor; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-ai#btn-toolbar-ai:hover { background: #27272A !important; }
html.dark-mode body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-ai { background: #FAFAFA !important; border-color: #FAFAFA !important; color: #18181B !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status svg, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw2-status i { display: none !important; }
/* 左下角工具条取消（按钮已搬到顶栏） */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-lbar.ede1-empty { display: none !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-lbody { bottom: 0 !important; }
/* 格式工具条居中 */
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .editor-toolbar { justify-content: center !important; border-bottom: 1px solid #F4F4F5 !important; }
html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .editor-toolbar .toolbar-left { margin: 0 auto !important; }
/* 左栏分组小标：V1.0.1 起由「写作页方案①」V3.0.2 统一负责（规则书 V2.49 · L1），这里不再重复 */
/* V1.0.4：打开时的幕布——白底（和编辑器同色）、不画旧骨架屏；超过 0.3 秒还没打开，正中显示三颗墨点 */
html.storyos-writer-preload.storyos-writer-preload:has(body.postid-221), html.storyos-writer-preload.storyos-writer-preload body.postid-221 { background: #FFFFFF !important; }
html.storyos-writer-preload.storyos-writer-preload:has(body.postid-221)::before { background: #FFFFFF !important; }
html.dark-mode.storyos-writer-preload.storyos-writer-preload:has(body.postid-221), html.dark-mode.storyos-writer-preload.storyos-writer-preload body.postid-221, html.dark-mode.storyos-writer-preload.storyos-writer-preload:has(body.postid-221)::before { background: #18181B !important; }
html body #storyos-skeleton { display: none !important; }
@keyframes ede1WaitIn { to { opacity: 1; } }
@keyframes ede1WaitDots { 0%, 100% { background-color: rgba(24,24,27,.3); box-shadow: -16px 0 0 0 rgba(24,24,27,.9), 16px 0 0 0 rgba(24,24,27,.3); } 33% { background-color: rgba(24,24,27,.9); box-shadow: -16px 0 0 0 rgba(24,24,27,.3), 16px 0 0 0 rgba(24,24,27,.3); } 66% { background-color: rgba(24,24,27,.3); box-shadow: -16px 0 0 0 rgba(24,24,27,.3), 16px 0 0 0 rgba(24,24,27,.9); } }
html.storyos-writer-preload.storyos-writer-preload::after { content: "" !important; position: fixed !important; left: 50% !important; top: 50% !important; z-index: 2147483647 !important; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; opacity: 0; animation: ede1WaitIn .15s ease-out .3s forwards, ede1WaitDots 1.2s ease-in-out .3s infinite; }
html.dark-mode.storyos-writer-preload.storyos-writer-preload::after { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { html.storyos-writer-preload.storyos-writer-preload::after { animation: ede1WaitIn .15s ease-out .3s forwards; background-color: rgba(24,24,27,.5); box-shadow: -16px 0 0 0 rgba(24,24,27,.5), 16px 0 0 0 rgba(24,24,27,.5); } }
@media (max-width: 1100px) { html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right .sw-pp-btn .sw2-bl, html body #saas-fullscreen-app-wrapper#saas-fullscreen-app-wrapper.sw2 .sw2-right #btn-toolbar-nav span { display: none !important; } }
