
            
            #wpadminbar { display: none !important; }
            html { margin-top: 0 !important; }
            body.saas-takeover-active { overflow: hidden !important; background-color: #edf0f5 !important; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; margin: 0 !important; padding: 0 !important; -webkit-font-smoothing: antialiased; }
            body.saas-takeover-active > *:not(#saas-fullscreen-app-wrapper):not(#saas-global-login-mask):not(#saas-global-login-modal):not(#storyos-sidebar-login-test-mask):not(#storyos-sidebar-login-test-modal):not([class^="ql-"]):not(script):not(style):not(link):not([id^="saas-toast-"]):not([id^="saas-dialog-"]):not([id$="-modal-bg"]):not([id$="-modal-box"]) { display: none !important; opacity: 0 !important; visibility: hidden !important; height: 0 !important; width: 0 !important; position: absolute !important; z-index: -9999 !important; }
            
            #saas-fullscreen-app-wrapper { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: #edf0f5 !important; z-index: 2147483640 !important; overflow: hidden !important;box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; display: flex; align-items: flex-start; justify-content: center; }
            #saas-fullscreen-app-wrapper * { box-sizing: border-box; }
            #saas-dashboard-main-container { width: 100%; max-width: none; height: 100vh; min-height: 100vh; max-height: none; background-color: transparent; border-radius: 0; box-shadow: none; display: flex; flex-direction: row; overflow: hidden; }
            .ds-col-center-wrapper { flex: 1; display: flex; flex-direction: column; padding: 36px 40px; overflow-y: auto; overflow-x: hidden; background: #edf0f5; }

            /* 🎯 Tab 切换栏 */
            .saas-tab-header { display: flex; align-items: center; justify-content: space-between; border-bottom: none; margin-bottom: 32px; padding-bottom: 0; }
            .html-tabs { display: flex; gap: 8px; padding: 4px; background: #edf0f5; border-radius: 999px; border: 1px solid #e0e2ea; flex-shrink: 0; }
            .html-tab { font-size: 14px; font-weight: 600; letter-spacing: 0; color: #6b6b9a; cursor: pointer; padding: 8px 22px; border: none; background: transparent; position: relative; transition: all 0.2s ease; box-shadow: none; flex-shrink: 0; border-radius: 999px; }
            .html-tab.active { background: #fff; color: #1a1a2e; box-shadow: 0 1px 3px rgba(5,0,56,0.08); font-weight: 700; }
            .html-tab.active::after { display: none; }
            .html-tab:hover:not(.active) { color: #7083df; background: rgba(255,255,255,0.5); }
            .html-tabs .html-tab:not(.active) { background: transparent !important; box-shadow: none !important; }
            .html-tabs .html-tab.active { background: #fff !important; color: #1a1a2e !important; box-shadow: 0 1px 3px rgba(5,0,56,0.08) !important; }

            /* 🎯 新建按钮 */
            .saas-tab-action-btn { display: inline-flex; align-items: center; background: #7083df; color: #fff; padding: 0 16px; height: 36px; border-radius: 8px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s ease; margin-bottom: 4px; gap: 6px; box-shadow: 0 1px 3px rgba(5,0,56,0.08); }
            .saas-tab-action-btn:hover { background: #5a6fd0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(112,131,223,0.25); }

/* StoryOS：故事灵感结构化编辑器 */
.storyos-story-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #d8dbee;
    border-radius: 999px;
    background: #fff;
    color: #6b6b9a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all .16s ease;
}

.storyos-story-tag:hover {
    border-color: #7083df;
    color: #7083df;
    background: #f4f6ff;
}

.storyos-story-tag.selected {
    border-color: #7083df;
    background: #eef2ff;
    color: #7083df;
    font-weight: 700;
}

.storyos-story-mini-textarea {
    width: 100%;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #edf0f5;
    background: #fafbfc;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    outline: none;
    resize: vertical;
    color: #1a1a2e;
    transition: 0.2s ease;
}

.storyos-story-mini-textarea:focus {
    border-color: #7083df;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(112,131,223,0.10);
}

/* StoryOS 灵感构建：款2 左导航分区布局 */
.storyos-story-modal-box { flex-direction:column; }
.storyos-story-head { padding:22px 30px; border-bottom:1px solid #eef0f5; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-shrink:0; }
.storyos-story-main { flex:1; display:flex; min-height:0; overflow:hidden; }
.storyos-story-nav { width:176px; flex-shrink:0; border-right:1px solid #f1f2f6; background:#fbfcfd; padding:20px 0; display:flex; flex-direction:column; overflow-y:auto; }
.storyos-story-navlink { display:flex; align-items:center; gap:10px; padding:8px 18px; font-size:14px; font-weight:600; color:#8a90a6; cursor:pointer; text-decoration:none; transition:all .16s ease; }
.storyos-story-navnum { width:22px; height:22px; flex-shrink:0; border-radius:6px; background:#eef0f5; color:#a5abc0; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; transition:all .16s ease; }
.storyos-story-navlink:hover { color:#7083df; }
.storyos-story-navlink:hover .storyos-story-navnum { background:#e6eaff; color:#7083df; }
.storyos-story-navlink.active { color:#5365e6; font-weight:700; }
.storyos-story-navlink.active .storyos-story-navnum { background:#eef2ff; color:#5365e6; }
.storyos-story-nav-meta { margin:18px 24px 0; padding:18px 0 4px; border-top:1px solid #eef0f5; }
.storyos-story-nav-meta-label { font-size:12px; font-weight:600; color:#9aa0b8; margin-bottom:7px; }
.storyos-story-content { flex:1; overflow-y:auto; padding:10px 36px 32px; min-width:0; }
.storyos-story-sec { padding:26px 0; border-bottom:1px solid #f3f4f8; scroll-margin-top:8px; }
.storyos-story-sec:last-child { border-bottom:none; }
.storyos-story-sec-head { font-size:15px; font-weight:800; color:#1a1a2e; display:flex; align-items:center; gap:8px; margin-bottom:20px; }
.storyos-story-sec-bar { width:4px; height:16px; border-radius:99px; display:inline-block; }
.storyos-story-field-label { font-size:13px; font-weight:600; color:#8a90a6; margin:0 0 9px; }
.storyos-story-sec .storyos-story-field-label:not(:first-child) { margin-top:20px; }
.storyos-story-input { width:100%; padding:13px 15px; border:1px solid #e6e8f0; background:#fff; border-radius:10px; font-family:'DM Sans',sans-serif; font-size:14px; color:#1a1a2e; outline:none; transition:.18s ease; }
.storyos-story-input::placeholder { color:#b8bdce; }
.storyos-story-input:focus { border-color:#7083df; box-shadow:0 0 0 3px rgba(112,131,223,.10); }
.storyos-story-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; }
.storyos-story-grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px 18px; }
.storyos-story-grid2 .storyos-story-field-label, .storyos-story-grid3 .storyos-story-field-label { margin-top:0 !important; }
.storyos-story-footer { padding:16px 32px; border-top:1px solid #eef0f5; background:#fff; text-align:right; flex-shrink:0; }
.storyos-story-sec-corehead { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.storyos-story-titlebox { display:flex; align-items:center; gap:8px; background:#f6f7fb; border:1px solid #edf0f5; border-radius:10px; padding:6px 10px; max-width:300px; flex:1; }
.storyos-story-titlebox-label { font-size:11px; color:#9aa0b8; flex-shrink:0; }
.storyos-story-titlebox-input { flex:1; min-width:0; border:none; background:transparent; outline:none; font-family:'DM Sans',sans-serif; font-size:13px; color:#1a1a2e; }
.storyos-story-titlebox-input::placeholder { color:#b8bdce; }
html.dark-mode .storyos-story-titlebox { background:#161724 !important; border-color:#2a2b40 !important; }
html.dark-mode .storyos-story-titlebox-input { color:#e0e4f8 !important; }
@media (max-width:980px) {
    .storyos-story-main { flex-direction:column; }
    .storyos-story-nav { width:100%; flex-direction:row; flex-wrap:wrap; border-right:none; border-bottom:1px solid #eef0f5; padding:10px 16px; gap:4px; }
    .storyos-story-navlink { border-radius:8px; padding:8px 14px; }
    .storyos-story-nav-meta { width:100%; margin:8px 0 0; border-top:none; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .storyos-story-grid2, .storyos-story-grid3 { grid-template-columns:1fr; }
}
html.dark-mode .storyos-story-head, html.dark-mode .storyos-story-footer { border-color:#2a2b40 !important; }
html.dark-mode .storyos-story-footer { background:#1a1b2e !important; }
html.dark-mode .storyos-story-nav { background:#161724 !important; border-right-color:#2a2b40 !important; }
html.dark-mode .storyos-story-navlink { color:#8890b8 !important; }
html.dark-mode .storyos-story-navlink.active { color:#cfd6ff !important; }
html.dark-mode .storyos-story-navnum { background:#22243a !important; color:#6b7299 !important; }
html.dark-mode .storyos-story-navlink.active .storyos-story-navnum { background:rgba(112,131,223,.22) !important; color:#cfd6ff !important; }
html.dark-mode .storyos-story-sec { border-bottom-color:#23263a !important; }
html.dark-mode .storyos-story-sec-head { color:#e0e4f8 !important; }
html.dark-mode .storyos-story-input { background:#12131f !important; border-color:#2a2b40 !important; color:#e0e4f8 !important; }
html.dark-mode .storyos-story-nav-meta { border-top-color:#2a2b40 !important; }

html.dark-mode .storyos-story-tag {
    background: #1a1b2e !important;
    border-color: #3a3c58 !important;
    color: #8890b8 !important;
}

html.dark-mode .storyos-story-tag.selected {
    background: rgba(112,131,223,0.18) !important;
    border-color: #7083df !important;
    color: #cfd6ff !important;
}

html.dark-mode .storyos-story-mini-textarea {
    background: #12131f !important;
    border-color: #2a2b40 !important;
    color: #e0e4f8 !important;
}

/* StoryOS：随手记录信纸区 */
#story-quill-paper-wrap .ql-toolbar {
    border: none !important;
    border-bottom: 1px solid #eef0f8 !important;
    background: #fafbfc;
}

#story-quill-paper-wrap .ql-container {
    border: none !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

#story-quill-paper-wrap .ql-editor {
    min-height: 180px;
    padding: 16px 18px !important;
    line-height: 32px !important;
    color: #1a1a2e !important;
    background:
        repeating-linear-gradient(
            to bottom,
            #ffffff 0px,
            #ffffff 30px,
            #eef2fb 31px,
            #ffffff 32px
        ) !important;
}

#story-quill-paper-wrap .ql-editor.ql-blank::before {
    left: 18px !important;
    right: 18px !important;
    color: #a5abc0 !important;
    font-style: normal !important;
}

html.dark-mode #story-quill-paper-wrap {
    border-color: #2a2b40 !important;
    background: #12131f !important;
}

html.dark-mode #story-quill-paper-wrap .ql-toolbar {
    background: #1a1b2e !important;
    border-bottom-color: #2a2b40 !important;
}

html.dark-mode #story-quill-paper-wrap .ql-editor {
    color: #e0e4f8 !important;
    background:
        repeating-linear-gradient(
            to bottom,
            #12131f 0px,
            #12131f 30px,
            #23263a 31px,
            #12131f 32px
        ) !important;
}

html.dark-mode #story-quill-counter {
    background: #1a1b2e !important;
    border-top-color: #2a2b40 !important;
    color: #9aa3c7 !important;
}



            /* 🎯 分类标题 (紧凑排布) */
            .saas-folder-group { margin-bottom: 32px; transition: 0.3s; }
            .saas-folder-header { display: flex; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; margin-bottom: 12px; user-select: none; transition: opacity 0.2s;}
            .saas-folder-header:hover { opacity: 0.8; }
            
            .saas-folder-line { width: 4px; height: 16px; background: #7083df; border-radius: 2px; flex-shrink: 0; }
            .saas-folder-title { font-size: 16px; font-weight: 600; color: #1a1a2e; line-height: 1.4; }
            .saas-folder-count { font-family: 'DM Mono', monospace; background: #f0f2f6; color: #6b6b9a; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 500; }
            
            /* 🎯 折叠箭头紧随其后 */
            .saas-folder-toggle-icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #9aa0b8; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-left: 2px; }
            .saas-folder-group.collapsed .saas-folder-toggle-icon { transform: rotate(-90deg); }
            .saas-folder-group.collapsed .saas-folder-content { display: none; }
            .saas-folder-group.collapsed .saas-folder-header { margin-bottom: 0; opacity: 0.6; }

            /* 🎯 方案E：右侧竖向色带 */
            .saas-folder-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }

            .saas-grid-card { background: #fff; border-radius: 16px; border: 1px solid #eef0f8; display: flex; flex-direction: row; overflow: hidden; transition: 0.2s ease; position: relative; height: 100%; padding: 0; box-shadow: 0 1px 3px rgba(5,0,56,0.05); }
            .saas-grid-card:hover { box-shadow: 0 6px 20px rgba(5,0,56,0.10); border-color: #d0d4f0; transform: translateY(-2px); }

            /* 左侧主体 (增加 padding-right 防文本截断) */
            .saas-card-body { flex: 1; padding: 16px 12px 16px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
            .saas-card-icon { width: 32px; height: 32px; border-radius: 8px; background: #f0f2ff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #7083df; flex-shrink: 0; margin-bottom: 8px; }
            .saas-card-icon svg { width: 16px; height: 16px; }
            
            .saas-card-name { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; padding-right: 140px; }
            .saas-card-desc { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: #6b6b9a; line-height: 1.4; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.04em; margin-bottom: 0; padding-right: 140px; }

            /* 底部操作行 (绝对悬浮至右上方) */
            .saas-card-footer { position: absolute; top: 16px; height: 32px; right: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0; margin: 0; background: transparent; border: none; border-radius: 0; flex-shrink: 0; z-index: 10;}
            .saas-card-status { display: none; }
            .status-dot { display: none; }
            
            .saas-card-actions { display: flex; gap: 8px; align-items: center; }
            .saas-action-btn, .saas-title-edit-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e4e6f2; background: #fff; color: #c0c5d8; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.18s ease; padding: 0; flex-shrink: 0; box-shadow: 0 1px 3px rgba(5,0,56,0.04); opacity: 0;}
            .saas-action-btn svg, .saas-title-edit-btn svg { width: 12px; height: 12px; }
            
            /* Hover 展现按钮 */
            .saas-grid-card:hover .saas-action-btn, .saas-grid-card:hover .saas-title-edit-btn { opacity: 1; }
            
            .saas-grid-card:hover .saas-action-btn, .saas-grid-card:hover .saas-title-edit-btn { border-color: #c8ccd8; color: #a0a8c0; }
            .saas-action-btn:hover, .saas-title-edit-btn:hover { background: #7083df !important; color: #fff !important; border-color: #7083df !important; box-shadow: 0 4px 12px rgba(112,131,223,0.25) !important;}
            .saas-action-btn.danger:hover { background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important; box-shadow: 0 4px 12px rgba(239,68,68,0.25) !important;}

            /* 隐藏旧结构 */
            .saas-card-header-top { display: none; }
            .saas-card-top-right { display: none; }
            .saas-card-type-label { display: none; }

            /* 右侧竖向色带 */
            .saas-card-side { width: 28px; background: #7083df; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }
            .saas-card-side-text { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.08em; text-transform: uppercase; user-select: none; }
            .saas-card-side-line { width: 12px; height: 2px; background: rgba(255,255,255,0.35); }


            /* StoryOS V2.0.17-45：白板结构骨架轻量时间线版 */
            .storyos-structure-modal-box { width: 96%; max-width: 1120px; height: 90vh; padding: 0; overflow: hidden; }
            .storyos-structure-head { padding: 22px 30px; border-bottom: 1px solid #edf0f5; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
            .storyos-structure-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: #1a1a2e; }
            .storyos-structure-sub { margin-top: 5px; font-size: 12px; color: #9aa0b8; font-weight: 600; }
            .storyos-structure-body { flex: 1; overflow-y: auto; background: #fff; padding: 24px 30px 28px; }
            .storyos-structure-card { border: 1px solid #eef0f8; border-radius: 22px; background: #fff; box-shadow: 0 1px 3px rgba(5,0,56,0.04); }
            .storyos-structure-hero { padding: 22px; margin-bottom: 18px; }
            .storyos-structure-compact-row { display: grid; grid-template-columns: 1.35fr .75fr; gap: 12px; align-items: end; }
            .storyos-structure-field { margin-bottom: 0; }
            .storyos-structure-label { font-size: 12px; font-weight: 800; color: #6b6b9a; margin-bottom: 7px; }
            .storyos-structure-input, .storyos-structure-select, .storyos-structure-textarea { width: 100%; border: 1px solid #edf0f5; background: #fafbfc; border-radius: 12px; padding: 11px 13px; font-size: 13px; color: #1a1a2e; font-family: 'DM Sans', sans-serif; outline: none; transition: .18s ease; }
            .storyos-structure-textarea { min-height: 74px; resize: vertical; line-height: 1.6; }
            .storyos-structure-input:focus, .storyos-structure-select:focus, .storyos-structure-textarea:focus { border-color: #7083df; background: #fff; box-shadow: 0 0 0 3px rgba(112,131,223,.10); }
            .storyos-structure-mini-btn { border: 1px solid #e5e8f2; background: #fff; color: #6b7280; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
            .storyos-structure-mini-btn:hover { border-color: #7083df; color: #7083df; background: #f6f8ff; }
            .storyos-structure-mini-btn.danger:hover { border-color: #ef4444; color: #ef4444; background: #fff7f7; }
            .storyos-structure-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 18px; align-items: start; }
            .storyos-structure-timeline-card { padding: 24px; min-height: 360px; }
            /* V2.0.17-63：继续压缩骨架分法下拉框宽度，避免控件视觉过重 */
            .storyos-structure-timeline-top { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:nowrap; margin-bottom:22px; padding:0; border:none; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
            .storyos-structure-timeline-top .storyos-structure-section-title { font-size:18px; min-width:128px; flex:0 0 auto; margin:0; white-space:nowrap; }
            .storyos-structure-timeline-controls { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:nowrap; margin-left:auto; min-width:0; flex:0 1 auto; }
            .storyos-structure-timeline-controls .storyos-structure-field { min-width:0; display:flex; align-items:center; gap:8px; margin:0; flex:0 0 auto; }
            .storyos-structure-timeline-controls .storyos-structure-field:first-child { flex:0 0 auto; }
            .storyos-structure-timeline-controls .storyos-structure-field.small { min-width:0; width:auto; flex:0 0 auto; }
            .storyos-structure-timeline-controls .storyos-structure-label { color:#767fa3; letter-spacing:.02em; margin:0; white-space:nowrap; flex:0 0 auto; }
            .storyos-structure-timeline-controls .storyos-structure-select,
            .storyos-structure-timeline-controls .storyos-structure-input { height:36px; border-radius:12px; background:#fff; border-color:#e5e9f4; box-shadow:none; font-size:13px; font-weight:800; padding:7px 10px; line-height:20px; }
            .storyos-structure-timeline-controls .storyos-structure-select { width:144px; max-width:144px; flex:0 0 144px; }
            #structure-family.storyos-structure-select { width:144px !important; max-width:144px !important; flex-basis:144px !important; }
            .storyos-structure-timeline-controls .storyos-structure-input { width:72px; max-width:72px; min-width:72px; text-align:center; flex:0 0 72px; }
            .storyos-structure-timeline-controls #structure-episode-count::-webkit-outer-spin-button,
            .storyos-structure-timeline-controls #structure-episode-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
            .storyos-structure-timeline-controls #structure-episode-count { appearance: textfield; -moz-appearance: textfield; }
            @media (max-width: 1100px) {
                .storyos-structure-timeline-top { gap:12px; }
                .storyos-structure-timeline-top .storyos-structure-section-title { min-width:112px; font-size:17px; }
                .storyos-structure-timeline-controls { gap:10px; }
                .storyos-structure-timeline-controls .storyos-structure-select { width:136px; max-width:136px; flex-basis:136px; }
                #structure-family.storyos-structure-select { width:136px !important; max-width:136px !important; flex-basis:136px !important; }
                .storyos-structure-timeline-controls .storyos-structure-input { width:70px; max-width:70px; min-width:70px; flex-basis:70px; }
            }
            @media (max-width: 980px) {
                .storyos-structure-timeline-top { flex-wrap:wrap; align-items:flex-start; }
                .storyos-structure-timeline-controls { width:100%; justify-content:flex-start; flex-wrap:wrap; margin-left:0; }
            }
            .storyos-structure-tag-box { padding: 13px 14px; border: 1px solid #edf0f5; background: #fafbfc; border-radius: 14px; min-height: 46px; display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; }
            .storyos-structure-tag { min-height: 28px; height: 28px; max-width: 178px; padding: 0 12px; border-radius: 999px; border: 1px solid #e1e6f2; background: #fff; color: #6b7280; font-size: 12px; line-height: 26px; font-weight: 800; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; user-select:none; transition: all .16s ease; font-family:'DM Sans', sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
            .storyos-structure-tag:hover { border-color: #7083df; color: #7083df; background: #f6f8ff; }
            .storyos-structure-tag.selected { border-color: #7083df; background: #eef2ff; color: #7083df; box-shadow: 0 2px 8px rgba(112,131,223,.10); }
            .storyos-structure-tag.custom-add { border-style: dashed; background: transparent; color: #8a92a6; }
            .storyos-structure-tag-input { width: 120px; height: 28px; border: 1px solid #7083df; border-radius: 999px; background: #fff; color: #1a1a2e; font-size: 12px; font-weight: 800; padding: 0 12px; outline: none; font-family:'DM Sans', sans-serif; box-shadow: 0 0 0 3px rgba(112,131,223,.10); }

                        .storyos-structure-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
            .storyos-structure-section-title { font-size:15px; font-weight:800; color:#1a1a2e; display:flex; align-items:center; gap:8px; flex-wrap: wrap; }
            .storyos-structure-section-title::before { content:''; width:4px; height:16px; border-radius:99px; background:#7083df; display:inline-block; }
            .storyos-structure-current-meta { display:inline-flex; align-items:center; gap:8px; margin-left:8px; padding:4px 10px; border-radius:999px; background:#f3f6ff; border:1px solid #e5e9ff; color:#7083df; font-size:12px; font-weight:900; line-height:1; }
            .storyos-structure-current-meta em { font-style:normal; color:#7f8798; font-weight:800; }
            .storyos-structure-timeline-wrap { padding: 18px 10px 14px; }
            .storyos-structure-timeline { position: relative; min-height: 172px; margin: 0 8px; overflow: visible; }
            .storyos-structure-stage-bar { position:absolute; left:0; right:0; top:78px; height:44px; border-radius:999px; background:transparent; box-shadow:none; overflow: visible; }
            .storyos-structure-segment { position: absolute; top:0; height:44px; min-width: 34px; cursor: pointer; z-index: 2; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:900; text-align:center; user-select:none; transition: filter .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; box-shadow: inset -1px 0 0 rgba(255,255,255,.36); opacity:.78; }
            /* V2.0.17-68：时间线端点圆形化；不能依赖 :last-child，因为分隔线元素会跟在分段后面 */
            .storyos-structure-segment { border-radius:0; }
            .storyos-structure-segment.is-row-start { border-radius:999px 0 0 999px; }
            .storyos-structure-segment.is-row-end { border-radius:0 999px 999px 0; box-shadow:none; }
            .storyos-structure-segment.is-row-start.is-row-end { border-radius:999px; }
            /* V2.0.17-69：双行时间线是同一条线的折行，第一行收尾、第二行开头使用直边，避免看成两条独立时间线 */
            .storyos-structure-timeline.is-split .storyos-structure-timeline-row:first-child .storyos-structure-segment.is-row-end { border-radius:0; }
            .storyos-structure-timeline.is-split .storyos-structure-timeline-row:first-child .storyos-structure-stage-bar::after { display:none; }
            .storyos-structure-timeline.is-split .storyos-structure-timeline-row:last-child .storyos-structure-segment.is-row-start { border-radius:0; }
            .storyos-structure-timeline.is-split .storyos-structure-timeline-row:last-child .storyos-structure-stage-bar::before { display:none; }
            .storyos-structure-stage-bar::before,
            .storyos-structure-stage-bar::after { content:''; position:absolute; top:50%; width:10px; height:10px; border-radius:50%; background:#fff; border:2px solid rgba(255,255,255,.92); box-shadow:0 3px 10px rgba(75,88,145,.14); transform:translateY(-50%); z-index:9; pointer-events:none; }
            .storyos-structure-stage-bar::before { left:4px; }
            .storyos-structure-stage-bar::after { right:4px; }
            .storyos-structure-segment.active { opacity:1; filter:saturate(1.18) brightness(1.04); transform:translateY(-8px); box-shadow: 0 12px 26px rgba(83,99,219,.22); z-index:6; }
            .storyos-structure-segment.active::after { display:none !important; content:none !important; }
            .storyos-structure-segment-label { pointer-events:none; max-width:92%; padding:0 8px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 2px rgba(20,28,60,.18); }
            .storyos-structure-stage-meta { position:absolute; top:0; transform:translateX(-50%); width:132px; max-width:132px; text-align:center; cursor:pointer; user-select:none; z-index:4; transition:top .18s ease, opacity .18s ease, transform .18s ease; }
            .storyos-structure-stage-meta strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; min-height:15px; overflow:hidden; word-break:break-all; color:#1a1a2e; font-size:12px; line-height:1.22; font-weight:900; transition:color .16s ease, transform .16s ease; }
            .storyos-structure-stage-meta span { display:block; margin-top:4px; color:#8c96aa; font-size:11px; line-height:1.1; font-weight:800; transition:color .16s ease; }
            .storyos-structure-stage-meta.active { transform:translateX(-50%) translateY(-8px); z-index:7; }
            .storyos-structure-stage-meta.active strong { color:#5365e6; transform:none; }
            .storyos-structure-stage-meta.active span { color:#5365e6; }
            .storyos-structure-boundary { position:absolute; top:-8px; width:18px; height:60px; margin-left:-9px; z-index:8; cursor:ew-resize; display:flex; align-items:center; justify-content:center; }
            .storyos-structure-boundary::before { content:''; width:4px; height:54px; border-radius:999px; background:#fff; border:1px solid #d8deeb; box-shadow:0 7px 18px rgba(32,44,88,.14); }
            .storyos-structure-boundary:hover::before, .storyos-structure-boundary.dragging::before { border-color:#7083df; box-shadow:0 8px 22px rgba(112,131,223,.24); }
            .storyos-structure-axis { display:flex; justify-content:space-between; font-size:11px; color:#a0a7b8; font-weight:800; margin-top: 18px; }
            .storyos-structure-timeline.is-split { min-height:auto; margin:0; }
            .storyos-structure-timeline-row { position:relative; margin:0 0 28px; padding:0 0 8px; }
            .storyos-structure-timeline-row-inner .storyos-structure-stage-bar { left:0; right:0; }
            .storyos-structure-timeline-row:last-child { margin-bottom:0; }
            .storyos-structure-timeline-row-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 8px; padding:0 2px; }
            .storyos-structure-timeline-row-title { font-size:12px; font-weight:900; color:#1a1a2e; }
            .storyos-structure-timeline-row-title span { color:#7083df; margin-right:6px; }
            .storyos-structure-timeline-row-desc { font-size:11px; color:#a0a7b8; font-weight:800; }
            .storyos-structure-timeline-row-track { position:relative; min-height:148px; margin:0 8px; overflow:visible; }
            .storyos-structure-timeline-row-track .storyos-structure-stage-bar { top:76px; }
            .storyos-structure-timeline-row-axis { display:flex; justify-content:space-between; padding:0 8px; margin-top:8px; font-size:11px; color:#a0a7b8; font-weight:800; }
            .storyos-structure-axis.is-split { margin-top:2px; justify-content:center; color:#9aa3ba; }
            .storyos-structure-axis.is-split span { display:none; }
            .storyos-structure-axis.is-split span:nth-child(2) { display:inline; }
            .storyos-structure-node-strip { display:flex; flex-wrap:wrap; gap:8px; margin-top: 18px; }
            .storyos-structure-node-strip.is-split { gap:10px 8px; }
            .storyos-structure-node-group { width:100%; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
            .storyos-structure-node-chip { height:30px; padding:0 12px; border-radius:999px; border:1px solid #edf0f5; background:#fafbfc; color:#6b7280; font-size:12px; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
            .storyos-structure-node-chip.active { border-color:#7083df; background:#f3f5ff; color:#7083df; }
            .storyos-structure-add-node-chip { border-style: dashed; background:#fff; color:#8a92a6; }
            .storyos-structure-add-node-chip:hover { border-color:#7083df; background:#f6f8ff; color:#7083df; }
            .storyos-structure-editor-card { padding: 22px; }
            .storyos-structure-editor-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
            .storyos-structure-editor-grid .wide { grid-column:1 / -1; }
            .storyos-structure-note-counter { margin-top:6px; text-align:right; font-size:11px; font-weight:700; color:#9aa0b8; }
            .storyos-structure-global { margin: 18px 0 24px; border: 1px solid #eef0f8; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(5,0,56,.04); }
            .storyos-structure-global summary { list-style:none; cursor:pointer; padding: 18px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:15px; font-weight:900; color:#1a1a2e; }
            .storyos-structure-global summary::-webkit-details-marker { display:none; }
            .storyos-structure-global-title { display:flex; flex-direction:column; gap:5px; }
            .storyos-structure-global-title strong { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:900; color:#1a1a2e; }
            .storyos-structure-global-title strong::before { content:''; width:4px; height:16px; border-radius:99px; background:#7083df; display:inline-block; }
            .storyos-structure-global-title span { font-size:12px; line-height:1.5; color:#9aa0b8; font-weight:700; }
            .storyos-structure-global-summary { font-size:12px; color:#7083df; font-weight:900; white-space:nowrap; }
            .storyos-structure-global-body { padding: 0 22px 22px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
            .storyos-structure-global-body .wide { grid-column:1 / -1; }
            .storyos-structure-global .storyos-structure-tag-box { min-height:72px; }
            .storyos-structure-advanced { margin-top: 18px; border: 1px solid #eef0f8; border-radius: 18px; background: #fff; overflow: hidden; }
            .storyos-structure-advanced summary { list-style:none; cursor:pointer; padding: 16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:14px; font-weight:900; color:#1a1a2e; }
            .storyos-structure-advanced summary::-webkit-details-marker { display:none; }
            .storyos-structure-advanced summary span:last-child { font-size:12px; color:#9aa0b8; font-weight:700; }
            .storyos-structure-advanced-body { padding: 0 20px 20px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
            .storyos-structure-advanced-body .wide { grid-column:1 / -1; }
            .storyos-structure-footer { padding: 16px 30px; border-top: 1px solid #edf0f5; background: #fff; display: flex; justify-content: flex-end; gap: 12px; }
            .storyos-structure-save { height: 40px; padding: 0 22px; border-radius: 12px; border: none; background: #7083df; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(112,131,223,.22); }
            .storyos-structure-cancel { height: 40px; padding: 0 20px; border-radius: 12px; border: 1px solid #eef0f8; background: #f4f5fb; color: #6b6b9a; font-size: 14px; font-weight: 800; cursor: pointer; }
            .storyos-structure-tip { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef0f8; font-size: 12px; line-height: 1.7; color: #8a92a6; font-weight: 600; }
            .storyos-structure-stage-purpose { margin: -2px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f8faff; border: 1px solid #eef2ff; color: #6b7390; font-size: 12px; line-height: 1.7; font-weight: 700; }
            .storyos-structure-stage-purpose strong { color:#5365e6; margin-right: 4px; }
            .storyos-structure-diagnostics { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fbfcff; border: 1px solid #eef0f8; font-size: 12px; line-height: 1.7; color: #7b8498; font-weight: 700; }
            .storyos-structure-diagnostics.is-ok { color:#6b8f7c; background:#f7fcfa; border-color:#e2f2ea; }
            .storyos-structure-diagnostics strong { color:#1a1a2e; margin-right: 8px; }
            .storyos-structure-diagnostics ul { margin: 6px 0 0 18px; padding: 0; }
            .storyos-structure-diagnostics li { margin: 2px 0; }
            .storyos-structure-select-empty { min-height: 280px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px dashed #dfe5f2; border-radius:18px; background:#fbfcff; color:#8a92a6; padding:28px; }
            .storyos-structure-select-empty strong { display:block; font-size:15px; color:#1a1a2e; margin-bottom:8px; }
            .storyos-structure-hidden-fields { display:none !important; }
            @media (max-width: 980px) { .storyos-structure-compact-row, .storyos-structure-main, .storyos-structure-editor-grid, .storyos-structure-advanced-body, .storyos-structure-global-body { grid-template-columns: 1fr; } .storyos-structure-modal-box { height: 94vh; } }

            /* 模态框与通用 */
            .global-saas-modal { display:none; position:fixed; top:0; left:0; width:100vw; height:100vh; background:rgba(5,0,56,0.45); backdrop-filter: blur(4px); z-index:2147483648; }
            .global-saas-modal-box { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); background:#fff; border-radius: 24px; z-index: 2147483649; flex-direction:column; border: 1px solid #eef0f8; box-shadow: 0 24px 64px rgba(5,0,56,0.18);}
            
            .ql-toolbar { display: none !important; }
            .ql-container.ql-snow { border: none !important; font-family: "Courier Prime", "Courier New", Courier, monospace !important; font-size: 15px !important; }
            .ql-editor { line-height: 1.65 !important; color: #1a1a2e !important; outline: none !important; text-align: left; padding: 0 !important; }

            /* 响应式恢复 */
            @media (max-width: 1200px) {
                #saas-fullscreen-app-wrapper { padding: 0 !important; } 
                #saas-dashboard-main-container { flex-direction: column; height: auto; max-height: none; border-radius: 0; box-shadow: none; }
                .ds-col-center-wrapper { padding: 20px; overflow: visible; }
            }

            /* 暗黑模式完整恢复 */
            html.dark-mode body.saas-takeover-active, html.dark-mode #saas-fullscreen-app-wrapper, html.dark-mode .ds-col-center-wrapper { background: #12131f !important; }
            html.dark-mode .saas-tab-header { border-color: #2a2b40 !important; }
            html.dark-mode .html-tabs { background: #1e2030 !important; border-color: #2a2b40 !important; }
            html.dark-mode .html-tab { color: #6b7299 !important; background: transparent !important; }
            html.dark-mode .html-tab.active { background: #2a2b40 !important; color: #e0e4f8 !important; box-shadow: 0 1px 6px rgba(0,0,0,0.3) !important; }
            html.dark-mode .html-tab.active::after { display: none !important; }
            html.dark-mode .html-tab:hover:not(.active) { background: rgba(255,255,255,0.05) !important; color: #9aa8d8 !important; }
            
            html.dark-mode .saas-tab-action-btn { background: #3a4580 !important; color: #e0e4f8 !important; box-shadow: 0 4px 12px rgba(112,131,223,0.2) !important;}
            html.dark-mode .saas-tab-action-btn:hover { background: #4a56a0 !important; }
            html.dark-mode .saas-folder-title { color: #e0e4f8 !important; }
            html.dark-mode .saas-folder-count { background: #22243a !important; color: #6b7299 !important; }
            html.dark-mode .saas-folder-toggle-icon { color: #6b7299 !important; }
            
            html.dark-mode .saas-grid-card { background: #1a1b2e !important; box-shadow: 0 1px 3px rgba(5,0,56,.15) !important; border: 1px solid #2a2b40 !important; }
            html.dark-mode .saas-grid-card:hover { border-color: #7083df !important; box-shadow: 0 6px 24px rgba(5,0,56,.3) !important; transform: translateY(-2px) !important;}
            html.dark-mode .saas-card-name { color: #e0e4f8 !important; }
            html.dark-mode .saas-card-desc { color: #6b7299 !important; }
            
            html.dark-mode .saas-card-footer { background: transparent !important; border: none !important; }
            html.dark-mode .saas-card-status { color: #c0c4e0 !important; }
            
            html.dark-mode .saas-action-btn, html.dark-mode .saas-title-edit-btn { background: #1a1b2e !important; border-color: #3a3c58 !important; color: #6b7299 !important; }
            html.dark-mode .saas-grid-card:hover .saas-action-btn, html.dark-mode .saas-grid-card:hover .saas-title-edit-btn { border-color: #4a4d6b !important; color: #8890b8 !important; }
            html.dark-mode .saas-action-btn:hover, html.dark-mode .saas-title-edit-btn:hover { background: #7083df !important; color: #fff !important; border-color: #7083df !important; }
            html.dark-mode .saas-action-btn.danger:hover { background: #ef4444 !important; border-color: #ef4444 !important; }
            
            html.dark-mode .saas-card-icon[style*="#f0f0fc"] { background: rgba(112, 131, 223, 0.15) !important; }
            html.dark-mode .saas-card-icon[style*="#fff8eb"] { background: rgba(245, 158, 11, 0.15) !important; }
            html.dark-mode .saas-card-icon[style*="rgba(239, 68, 68, 0.12)"] { background: rgba(239, 68, 68, 0.15) !important; }
            html.dark-mode .saas-card-type-label { color: #6b7299 !important; }
            
            html.dark-mode .global-saas-modal-box { background: #1a1b2e !important; border-color: #2a2b40 !important; box-shadow: 0 24px 64px rgba(5,0,56,.5) !important; }
            html.dark-mode .global-saas-modal-box h3 { color: #e0e4f8 !important; }
            html.dark-mode .global-saas-modal-box input, html.dark-mode .global-saas-modal-box select { background: #12131f !important; border-color: #2a2b40 !important; color: #e0e4f8 !important; }
            html.dark-mode .global-saas-modal-box input:focus { border-color: #7083df !important; }
            html.dark-mode .ql-editor { color: #e0e4f8 !important; }
            html.dark-mode #story-quill-container { border-color: #2a2b40 !important; background: #12131f !important;}
        