/* Shared design system. Shell rules live here; feature-specific mechanics stay in style.css. */
:root{--accent:#2860ef;--accent-soft:#e7ecf8;--text:#242a32;--muted:#626b76;--line:#e3e3df;--surface:#fff;--canvas:#f5f4f1;--surface-nav:#eaece9;--surface-inset:#eeefec;--surface-detail:#fdfcf9;--bg:var(--canvas);--panel:var(--surface);--raised:var(--surface-inset);--success:#27664c;--success-soft:#e0f0e5;--warning:#87581d;--warning-soft:#fff2db;--danger:#ac4040;--danger-soft:#fbecec;--violet:#66528e;--violet-soft:#eee8f8;--teal:#2d7166;--teal-soft:#e0efe9;--radius:12px;--control-radius:10px;--control-border:#e2e8f0}
body{font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif;background:var(--canvas);color:var(--text);font-size:15px;line-height:1.65}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--accent)}
.app{display:flex;width:100%;min-width:0;min-height:100dvh;overflow-x:clip}.workspace{flex:1;min-width:0}#main{min-width:0}
.rail{width:208px;flex:0 0 208px;height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;padding:26px 16px 18px;background:var(--surface-nav);border-right:1px solid var(--line);overflow-y:auto}
.rail .brand{padding:0 10px 24px;gap:12px}.rail .brand strong{font-size:24px}.rail .brand strong span{font-size:8px;letter-spacing:5px}
.rail .tenant{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 10px 20px;margin:0 0 15px;min-height:0}.rail .tenant b{font-size:13px}.rail .tenant small{font-size:12px;color:var(--muted)}
.nav-label{display:none}.rail #nav{flex:1;display:block;position:relative}.rail .nav-item{width:100%;display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;padding:10px 13px;margin:3px 0;border:0;border-radius:10px;font-size:14px;color:var(--muted);min-height:44px;position:relative;background:transparent}
.rail .nav-item .icon{width:18px;height:18px;flex-shrink:0}.rail .nav-item:hover{background:var(--surface-inset);color:var(--text)}.rail .nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.rail .nav-item[data-page="trends"],.rail .nav-item[data-page="settings"]{margin-top:18px}.nav-marker{display:none}
.rail-bottom{margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}.rail #account.person{display:flex;width:100%;align-items:center;gap:12px;text-align:left;border:0;padding:9px;border-radius:10px;background:transparent;min-height:55px}.rail #account.person:hover{background:var(--canvas)}.rail #account.person>span:nth-child(2){font-size:13px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis}.rail #account.person small{display:block;font-size:12px;color:var(--muted);font-weight:400}.rail #account.person>.avatar{height:34px;width:34px;flex:0 0 34px;border-radius:11px;background:var(--accent-soft);color:var(--accent)}
.topbar{height:64px;min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--surface-detail);border-bottom:1px solid var(--line);gap:16px}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:13px;white-space:nowrap;min-width:0}.breadcrumb .workspace-home{color:var(--muted)}.breadcrumb .breadcrumb-divider{color:#bcc7d4;margin:0}.breadcrumb strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}.top-actions #saveState{font-size:12px;color:var(--muted);max-width:185px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.top-actions .icon-button{min-height:32px;padding:5px 8px;font-size:12px}
.page{max-width:1380px;margin:auto;padding:40px 44px 64px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading h1{font-size:28px;line-height:1.35;font-weight:600;letter-spacing:0}.page-heading p{color:var(--muted);font-size:14px;margin-top:9px}.page-heading .eyebrow{font-size:12px;letter-spacing:1px;margin:0 0 10px;color:#8594a7}.heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.heading-actions button{white-space:nowrap}
.primary{background:var(--accent);color:white;border:1px solid var(--accent);padding:10px 18px;min-height:42px;border-radius:10px;font-weight:600;box-shadow:0 4px 10px #2860ef12}.primary:hover{background:#1d50d9;box-shadow:0 5px 16px #2860ef24}.outline,.secondary,.quiet-action{background:transparent;border:0;color:var(--muted);min-height:38px;padding:8px 12px;border-radius:9px}.outline:hover,.secondary:hover,.quiet-action:hover{background:var(--surface-inset);color:var(--accent)}
.panel{background:var(--surface);border:0;border-radius:var(--radius);padding:26px;box-shadow:none}.panel-head{margin-bottom:22px}.panel-head h2,.section-heading h2{font-size:18px;font-weight:600}.section-note{font-size:12px;line-height:1.8;color:var(--muted)}small{color:var(--muted)}
input:not([type=checkbox]):not([type=range]):not([type=file]),textarea,.picker-trigger{background:var(--surface-inset);border:1px solid transparent;border-radius:10px;min-height:42px;color:var(--text);font-size:14px;box-shadow:none}input:focus,textarea:focus{background:#fff!important;border-color:#9eb9ff!important;box-shadow:0 0 0 3px #2860ef0b!important}textarea{line-height:1.8}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.industry-bar{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px;font-size:13px;flex-wrap:wrap}.industry-bar>span:not(.industry-dot){color:var(--muted)}.industry-bar>button{margin-left:auto}.industry-dot{width:7px;height:7px;background:var(--accent);border-radius:50%}
.workflow-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:26px;overflow-x:auto}.workflow-tabs button{background:transparent;color:var(--muted);padding:14px 0;border:0;border-radius:0;white-space:nowrap;border-bottom:2px solid transparent}.workflow-tabs button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.workflow-tabs small{margin-left:8px;color:inherit;font-size:12px}
.topic-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:14px}.topic-card footer>span{font-size:12px;color:var(--muted)}
.workflow-empty{text-align:center;padding:64px 20px;max-width:580px;margin:0 auto}.empty-symbol{display:grid;place-items:center;background:#edf2ff;border-radius:18px;width:60px;height:60px;margin:0 auto 24px;color:#5b82e9}.empty-symbol .icon{width:25px;height:25px}.workflow-empty h2{font-size:21px;font-weight:600;margin-bottom:10px}.workflow-empty p{font-size:14px;line-height:1.9;color:var(--muted);margin-bottom:22px}.workflow-empty button{margin:4px}.workflow-pager{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:28px;font-size:12px;color:var(--muted)}.workflow-pager button{background:transparent;padding:8px;border:0}
.research-tools{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}.workflow-chips{display:flex;gap:5px;flex-wrap:wrap}.workflow-chips button{background:transparent;padding:7px 11px;border:0;border-radius:8px;color:var(--muted);font-size:13px}.workflow-chips button.active{background:var(--accent-soft);color:var(--accent)}#researchSearch{display:flex;gap:8px}#researchSearch input{width:230px}#researchSearch button{background:transparent;border:0;padding:6px 10px}.selection-bar{display:flex;align-items:center;gap:10px;padding:14px 0;font-size:12px;color:var(--muted)}.selection-bar>span{margin-right:auto}.selection-bar .primary{font-size:13px;min-height:36px;padding:7px 14px}
.research-list{background:#fff;border-radius:14px;padding:0 24px}.research-row{display:flex;align-items:center;gap:20px;padding:25px 0;border-bottom:1px solid var(--line)}.research-row:last-child{border:0}.research-row>div{flex:1;min-width:0}.research-row h2{font-size:17px;font-weight:600;margin-bottom:8px}.research-row h2 button{font:inherit;padding:0;text-align:left;border:0;background:transparent}.research-row p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:8px}.research-row small{font-size:12px}.research-row>.quiet-action{white-space:nowrap;font-size:13px}.research-row .topic-meta{justify-content:flex-start;margin-bottom:8px}
.settings-section{padding:26px 0;border-bottom:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.section-heading p{font-size:13px;color:var(--muted);margin-top:5px}.section-heading small{font-size:12px;font-weight:400;margin-left:8px}.industry-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}.industry-list article{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;background:#fff;border-radius:12px}.industry-list h3,.source-row h3{font-size:16px}.industry-list p,.source-row p{font-size:13px;color:var(--muted);margin:5px 0}.source-row{display:flex;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.source-row small{font-size:12px}.source-row>div:last-child{display:flex;align-items:center}.run-row{display:grid;grid-template-columns:1fr 1fr 2fr;gap:15px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line);color:var(--muted)}.error-text{color:var(--danger)!important}
.review-totals{display:flex;gap:80px;padding:12px 0 30px}.review-totals span{font-size:13px;color:var(--muted)}.review-totals strong{display:block;font-size:34px;font-weight:500}
.home-lead{display:grid;grid-template-columns:1fr 220px;gap:60px;padding:38px 40px;background:#eeede6;border-radius:18px;margin:5px 0 42px}.home-lead .eyebrow{color:var(--muted);font-size:12px;letter-spacing:1px}.home-lead h2{font-size:27px;line-height:1.5;font-weight:600;margin:12px 0;max-width:650px}.home-lead p{font-size:14px;color:var(--muted);margin-bottom:24px}.home-path{border-left:1px solid var(--line);padding-left:28px;display:flex;flex-direction:column;justify-content:center;gap:19px;font-size:13px;color:var(--muted)}.home-path span:first-child{color:var(--accent)}.home-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:56px}.home-task{display:flex;align-items:center;gap:18px;background:transparent;border:0;width:100%;padding:20px 0;text-align:left;border-bottom:1px solid var(--line)}.home-task>div{flex:1}.home-task h3{font-size:15px;font-weight:600}.home-task p{font-size:12px;color:var(--muted);margin-top:5px}.task-index{font-size:20px;font-weight:300;color:#929b98}.home-link{display:flex;width:100%;align-items:center;gap:16px;text-align:left;padding:20px 0;background:transparent;border:0;border-bottom:1px solid var(--line)}.home-link .icon{color:var(--accent);width:23px;height:23px;flex-shrink:0}.home-link>div{flex:1}.home-link b{font-size:14px;font-weight:600}.home-link p{font-size:12px;color:var(--muted);margin-top:5px}
.script-task{background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:26px;gap:20px}.script-task:first-child{border-radius:14px 14px 0 0}.script-task:last-child{border-radius:0 0 14px 14px;border:0}.script-task h2{font-size:19px}.script-task p{font-size:14px;line-height:1.9}.script-editor{font-size:16px;line-height:2.15;background:#fff!important;min-height:420px;border:0!important;padding:16px 0!important;box-shadow:none!important}.script-layout{grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:28px}.script-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#scriptVersions{margin-left:auto;font-size:12px}.check-shot{font-size:14px;line-height:1.8;padding:16px 0}
.profile-page{max-width:1280px}.profile-page .page-heading{margin-bottom:24px}.profile-page .page-heading .primary{font-size:14px}.profile-page .brand-tabs{margin:0 0 16px;gap:28px}.profile-page .brand-tabs button{font-size:14px;padding:12px 0}.profile-page #brandIndustryBinding{margin:0 0 24px;padding:12px 0;border-top:0;gap:12px;font-size:13px}.profile-page #brandIndustryBinding>b{font-weight:500}.profile-page #brandIndustryBinding>.quiet-action{margin-left:auto;font-size:13px}
.profile-page .profile-document{border:0;max-width:none;display:grid;gap:20px}.profile-page .profile-section{display:block;margin:0;padding:24px 28px;background:#fff;border:1px solid var(--line);border-radius:12px}.profile-page .profile-section-title{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}.profile-page .section-index{font-size:12px;letter-spacing:0;color:var(--accent);padding:0;align-self:start;line-height:28px}.profile-page .profile-section-title h2{font-size:17px;line-height:1.6;font-weight:600}.profile-page .profile-section-title p{font-size:13px;line-height:1.6;color:var(--muted);margin:4px 0 0}.profile-page .profile-edit{grid-column:3;grid-row:1;align-self:start;justify-self:end;margin:0;padding:6px 14px;font-size:13px;line-height:24px;color:var(--accent);background:#f0f5ff;border-radius:8px;border:0}.profile-page .profile-edit:hover{text-decoration:none;background:#e5eeff}.profile-page .profile-fields.profile-long{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 30px;padding:0}.profile-page .profile-section:first-child .profile-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-page .profile-field>label{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 10px}.profile-page .profile-value{font-size:15px;line-height:1.8;min-height:28px;margin:0;color:var(--text);max-width:none}.profile-page .profile-value.is-empty{font-size:14px;color:#778079}.profile-page .profile-field input,.profile-page .profile-field textarea{width:100%;padding:10px 12px!important;background:var(--surface-inset)!important;border:1px solid var(--control-border)!important;border-radius:8px!important;box-sizing:border-box;line-height:1.7}.profile-page .profile-field input:focus,.profile-page .profile-field textarea:focus{border-color:#87aaf8!important;box-shadow:0 0 0 3px #2860ef0b!important}.profile-page .profile-field textarea{min-height:110px}.profile-page .profile-section.is-editing{background:#fff;border-color:#ccdaf6}.profile-page .profile-privacy{font-size:12px;max-width:none;margin:0;padding-top:18px;color:var(--muted)}.profile-page .library-tools{display:flex;gap:18px;align-items:center;margin:22px 0}.profile-page .library-tools input{max-width:360px;width:100%}.profile-page #knowledgeRows .script-task{border:0;border-bottom:1px solid var(--line);background:#fff;padding:22px 24px;margin:0;border-radius:0}.profile-page #knowledgeRows .script-task:first-child{border-radius:12px 12px 0 0}.profile-page #knowledgeRows .script-task:last-child{border-radius:0 0 12px 12px}.profile-page #knowledgeRows h2{font-size:17px}.profile-page #knowledgeRows p{font-size:14px;line-height:1.8;color:var(--muted)}
@media(max-width:1100px){.profile-page .profile-section:first-child .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-page .profile-fields.profile-long{gap:20px}.profile-page .profile-section{padding:22px}}
@media(max-width:700px){.profile-page .profile-section{padding:20px}.profile-page .profile-section-title{grid-template-columns:20px minmax(0,1fr) auto;gap:10px}.profile-page .profile-fields.profile-long,.profile-page .profile-section:first-child .profile-fields{grid-template-columns:1fr;padding:0}.profile-page .profile-edit{padding:5px 10px}.profile-page .library-tools{align-items:flex-start;flex-direction:column}.profile-page #knowledgeRows .script-task{padding:20px 16px}.profile-page #brandIndustryBinding{flex-wrap:wrap}}
.media-large{gap:22px}.media-large .asset-thumb{height:170px;border-radius:12px}.media-large .asset-card p{font-size:14px}.publish-table{font-size:14px}.publish-table td{font-size:14px;padding:22px 14px}.publish-table th{font-size:12px;padding:14px}
.editor-heading{background:white;padding:16px 24px;min-height:84px;height:auto;border-bottom:1px solid var(--line);gap:15px}.editor-heading h1{font-size:20px;font-weight:600}.editor-heading .heading-actions{gap:5px}.editor-heading button{font-size:12px}.editor-grid{display:grid;grid-template-columns:230px minmax(180px,1fr) 235px;height:calc(100dvh - 466px);min-height:300px;background:white}.editor-grid.hide-assets{grid-template-columns:0 minmax(180px,1fr) 235px}.editor-grid.hide-inspector{grid-template-columns:230px minmax(180px,1fr) 0}.editor-grid.hide-assets.hide-inspector{grid-template-columns:0 minmax(180px,1fr) 0}.editor-grid.hide-assets .asset-panel,.editor-grid.hide-inspector .inspector{visibility:hidden;padding:0;overflow:hidden}.viewer{background:var(--surface-inset);min-width:0;padding:20px 24px 32px}.asset-panel,.inspector{min-width:0}.timeline-toolbar{background:#fff}.track-label{font-size:12px}.timeline-foot{font-size:12px}.editor-grid .tabs button{font-size:14px}.editor-grid .empty{font-size:13px;line-height:1.8}#editorPanelControls{display:flex;gap:2px}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}.weekday{background:var(--surface-inset);text-align:center;padding:10px;font-size:12px;color:var(--muted)}.month-day{min-height:112px;padding:10px;background:#fff}.month-day>b{font-size:12px;color:var(--muted)}.month-day.today>b{background:var(--accent);color:#fff;border-radius:20px;padding:4px 7px}.month-day button{display:block;width:100%;font-size:12px;text-align:left;margin-top:8px;padding:6px;border:0;border-radius:6px;background:#eff4ff;color:#365d99}.month-day small{display:block;font-size:10px}.month-day.blank{background:var(--canvas)}
dialog{border:0;border-radius:18px;padding:28px;width:min(580px,94vw);box-shadow:0 24px 90px #182e512b;max-height:90dvh}dialog::backdrop{background:#14274142;backdrop-filter:blur(4px)}dialog label{font-size:13px;margin-top:18px}dialog p{font-size:14px}dialog h2{line-height:1.5}dialog.workflow-drawer{height:100dvh;max-height:100dvh;width:min(580px,100vw);max-width:100vw;inset:0 0 0 auto;margin:0;border-radius:18px 0 0 18px;padding:30px 34px}.workflow-drawer .dialog-head{position:sticky;top:-30px;background:white;z-index:2;padding:10px 0 20px}.workflow-drawer .dialog-footer{position:sticky;bottom:-30px;background:white;padding:18px 0;border-top:1px solid var(--line);flex-wrap:wrap}.topic-reading section{padding:18px 0;border-bottom:1px solid var(--line)}.topic-reading h3{font-size:12px;color:var(--muted);margin-bottom:8px}.topic-reading p,.reading-copy{white-space:pre-wrap;line-height:1.9}.topic-reading small{display:block;margin-top:6px;line-height:1.8}.draft-topic{padding:22px 0;border-bottom:1px solid var(--line)}.draft-topic p{white-space:pre-line;margin-top:12px}#workflowStatus,#topicStatus{color:var(--danger);margin-top:14px;font-size:13px}
.workflow-skeleton{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.workflow-skeleton i{height:240px;border-radius:14px;background:linear-gradient(100deg,#edf1f6 20%,var(--surface-inset) 40%,#edf1f6 60%);background-size:300% 100%;animation:skeleton-flow 1.6s ease infinite}@keyframes skeleton-flow{to{background-position:100% 0}}
.topic-categories{margin-bottom:22px}.topic-card>p,.media-choice{position:relative;min-width:0}.media-choice>.asset-card{width:100%}.media-choice>input{position:absolute;top:10px;left:10px;z-index:3;box-shadow:0 1px 4px #14274130}

.rail .tenant{display:none}.rail .brand{padding-bottom:36px}.workspace-tools{display:flex;align-items:center;gap:20px;min-width:0}.brand-context{font-size:14px;font-weight:600;max-width:190px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;background:var(--surface-inset);padding:10px 16px;border:0;border-radius:9px}#topicSearch{display:flex;align-items:center;background:var(--surface-inset);border-radius:9px}#topicSearch input{width:260px;min-width:0;background:transparent;font-size:14px}#topicSearch button{font-size:13px}.topbar .top-actions{margin-left:auto}.breadcrumb[hidden]{display:none}.workspace-tools+.breadcrumb{margin-right:auto}
@media(max-width:900px){.workspace-tools{gap:6px}.brand-context{max-width:140px}#topicSearch input{width:170px}.topbar{gap:8px}}@media(max-width:600px){.workspace-tools .brand-context{display:none}#topicSearch input{width:130px}#topicSearch button{padding:5px}.workspace-tools:has(+.breadcrumb:not([hidden])){display:none}}
/* Option 1: list and contextual detail share a stable application surface. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--motion-fast:160ms;--motion-panel:220ms;--motion-ease:cubic-bezier(.2,.8,.2,1)}
body{font-weight:400;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,h3,b,strong{font-weight:600}button,input,textarea{letter-spacing:0}
button,a,input,textarea{transition:background-color var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast),box-shadow var(--motion-fast)}
.rail{width:208px;flex-basis:208px;padding:24px 16px}.rail .nav-item{font-size:14px;min-height:46px;margin:4px 0}.rail .brand strong{font-size:25px}.rail .tenant{padding:12px 10px 20px}.topbar{height:68px;min-height:68px}.top-actions #saveState{font-size:12px}
.page-heading{margin-bottom:28px}.page-heading h1{font-size:28px;font-weight:600}.page-heading p{font-size:15px}.page-heading .eyebrow{font-size:12px;letter-spacing:0}.page{padding:36px 36px 56px}.section-note{font-size:13px}.primary,.outline,.quiet-action{font-size:14px}.primary{box-shadow:none;min-height:42px}.primary:hover{box-shadow:0 3px 10px #2860ef18}.workflow-tabs button{font-size:14px}.workflow-tabs button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid var(--accent);font-weight:600}.workflow-tabs button[aria-pressed=false]{border-bottom:2px solid transparent}.workflow-tabs small{font-size:12px}
.ui-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:12px;line-height:1.5}.ui-badge-green{background:var(--success-soft);color:var(--success)}.ui-badge-amber{background:var(--warning-soft);color:var(--warning)}
/* Category tints describe content; status colors always retain text labels. */
.ui-badge-violet{background:var(--violet-soft);color:var(--violet)}.ui-badge-teal{background:var(--teal-soft);color:var(--teal)}.ui-badge-neutral{background:var(--surface-inset);color:var(--muted)}
.topic-card[data-category="客户问题"],.topic-card[data-category="节点选题"]{--topic-tint:#fffaf0}.topic-card[data-category="行业动态"],.topic-card[data-category="同行灵感"]{--topic-tint:#f2f8f3}.topic-card[data-category="品牌故事"]{--topic-tint:#f7f4fc}
.detail-note p{color:var(--warning)}.topic-card .topic-meta>.ui-badge{font-weight:500}
.topic-workspace{display:grid;grid-template-columns:minmax(0,1fr);min-height:calc(100dvh - 68px)}.topic-workspace.has-detail{grid-template-columns:minmax(0,1fr) 460px}.topics-page{width:100%;max-width:1100px;margin:0 auto;padding:36px 32px}.has-detail .topics-page{padding:36px 28px}.topics-page .eyebrow{display:none}.topics-page .page-heading{gap:16px;margin-bottom:30px}.topics-page .heading-actions{flex-shrink:0}.topics-page .page-heading h1{font-size:30px}.topic-toolbar{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.topic-toolbar .workflow-tabs{flex:1;border:0;margin:0;gap:18px;overflow-x:auto}.topic-toolbar .quiet-action{font-size:12px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topic-categories{padding:16px 0;margin:0 0 6px;gap:2px}.topic-categories button{font-size:12px;padding:6px 9px}
.topic-grid{display:flex;flex-direction:column;gap:14px}.topic-card{position:relative;padding:22px 24px;background:var(--topic-tint,var(--surface));border:1px solid transparent;border-radius:10px;transition:background-color var(--motion-fast),border-color var(--motion-fast)}.topic-card:hover{border-color:#b8c3d2}.topic-card.is-selected{background:var(--topic-tint,var(--surface));border-color:#a4b3d3}.topic-card .topic-meta{font-size:12px;margin-bottom:12px}.topic-title{display:block;border:0;background:transparent;padding:0;text-align:left;font-size:20px;line-height:1.6;color:var(--text);font-weight:600}.topic-card>p{font-size:16px;line-height:1.8;color:var(--muted);margin-top:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.topic-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:12px;color:var(--muted)}.topic-card footer>span{display:flex;align-items:center;gap:6px}.topic-card footer .icon{width:15px;height:15px}.topic-card footer button{font-size:13px;min-height:30px;padding:4px 8px}
.topic-detail{position:sticky;top:0;align-self:start;height:calc(100dvh - 68px);display:flex;flex-direction:column;background:var(--surface-detail);border-left:1px solid var(--line);min-width:0;animation:detail-enter var(--motion-panel) var(--motion-ease)}.detail-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 26px 8px;font-size:13px;color:var(--muted)}.detail-heading button{min-height:32px;padding:4px 8px}.detail-scroll{overflow:auto;flex:1;min-height:0;padding:18px 28px}.detail-scroll h2{font-size:23px;line-height:1.55;margin:16px 0 26px;font-weight:600}.detail-section{padding:24px 0;border-top:1px solid var(--line)}.detail-section h3{font-size:16px;margin:0 0 12px}.detail-section p{font-size:16px;line-height:1.9;white-space:pre-line;color:var(--muted)}.detail-caption{margin-top:12px}.detail-note{background:var(--warning-soft);border-radius:8px;padding:12px 14px;margin-top:16px;font-size:13px;color:var(--warning)}.detail-note p{font-size:13px}.detail-source{display:flex;gap:12px;margin-top:16px}.detail-source .icon{width:18px;height:18px;flex-shrink:0;margin-top:3px;color:var(--muted)}.detail-source b,.detail-source a{font-size:14px;line-height:1.6}.detail-source p{font-size:12px;margin-top:4px}.detail-footer{padding:12px 28px 24px;border-top:1px solid var(--line);background:#fff}.detail-footer>div{display:flex;justify-content:space-between;margin-bottom:12px}.detail-footer .primary{width:100%}.detail-footer #topicStatus{font-size:13px;color:var(--danger)}.detail-footer #topicStatus:empty{display:none}
@keyframes detail-enter{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1250px){.topic-workspace.has-detail{grid-template-columns:minmax(0,1fr) 340px}.has-detail .topics-page{padding:30px 22px}.topic-toolbar{align-items:stretch;flex-direction:column;gap:0}.topic-toolbar>.quiet-action{align-self:flex-start;margin-bottom:8px}.topics-page .page-heading{align-items:flex-start;flex-direction:column}.detail-scroll{padding:16px 24px}}
@media(max-width:900px){.topic-workspace.has-detail{grid-template-columns:1fr}.topic-detail{position:fixed;inset:68px 0 0 auto;z-index:40;width:min(420px,100vw);height:calc(100dvh - 68px);box-shadow:-20px 0 60px #17294018}.topics-page{padding:28px 24px}.topics-page .page-heading{flex-direction:row}}
@media(max-width:600px){.topics-page,.has-detail .topics-page{padding:24px 18px}.topics-page .page-heading{flex-direction:column}.topics-page .page-heading h1{font-size:26px}.topic-detail{inset:0;width:100%;height:100dvh}.topic-card{padding:20px}.topic-title{font-size:17px}.topic-toolbar .workflow-tabs{gap:18px}.detail-scroll h2{font-size:23px}.detail-footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}}
@media(min-width:1650px){.editor-grid{grid-template-columns:260px minmax(220px,1fr) 270px}.editor-grid.hide-assets{grid-template-columns:0 minmax(220px,1fr) 270px}.editor-grid.hide-inspector{grid-template-columns:260px minmax(220px,1fr) 0}}
@media(max-width:1200px){.rail{width:180px;flex-basis:180px;padding-left:10px;padding-right:10px}.page{padding:30px 28px 48px}.home-lead{gap:30px;padding:30px}.home-columns{gap:28px}.editor-heading{align-items:flex-start;flex-wrap:wrap}.editor-grid{grid-template-columns:195px minmax(150px,1fr) 210px}#editorPanelControls{display:none}}
@media(max-width:900px){.rail{width:66px;flex-basis:66px;padding:20px 6px}.rail .brand{padding:0 8px 22px}.rail .brand strong,.rail .tenant,.rail .nav-item>span,.rail #account.person>span:nth-child(2){display:none}.rail .nav-item{padding:12px;justify-content:center}.rail #account.person{padding:8px 2px;justify-content:center}.home-path{display:none}.home-lead{grid-template-columns:1fr}.home-columns{grid-template-columns:1fr}.script-layout{grid-template-columns:1fr}.heading-actions .outline{display:inline-flex}.editor-grid{grid-template-columns:190px minmax(150px,1fr)}.editor-grid .inspector{display:none}.industry-list{grid-template-columns:1fr}.topbar{padding:0 20px}.page-heading h1{font-size:25px}}
@media(max-width:600px){.rail{width:56px;flex-basis:56px;padding:14px 4px}.rail .brand{padding:0 6px 20px}.rail .nav-item{padding:12px 8px}.rail .nav-item .icon{height:19px;width:19px}.rail-bottom{padding-top:8px}.topbar{height:56px;min-height:56px;padding:0 14px}.breadcrumb .workspace-home,.breadcrumb-divider{display:none}.top-actions{gap:3px}.top-actions #saveState{max-width:85px;font-size:10px}.page{padding:26px 18px 42px}.page-heading{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:24px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px}.heading-actions{width:auto;justify-content:flex-start}.heading-actions button{font-size:13px;padding:8px 12px}.workflow-tabs{gap:21px}.industry-bar{gap:8px}.industry-bar>span:not(.industry-dot){width:100%;order:4;font-size:12px}.research-list{padding:0 16px}.research-row{align-items:flex-start;gap:10px;flex-wrap:wrap}.research-row>.quiet-action{margin-left:25px}.research-row h2{font-size:16px}.topic-meta{flex-wrap:wrap;gap:6px}.research-tools{display:block}#researchSearch{margin-top:12px}#researchSearch input{width:100%;min-width:0}.selection-bar{flex-wrap:wrap}.home-lead{padding:25px}.home-lead h2{font-size:23px}.home-columns{gap:32px}.review-totals{gap:30px}.review-totals strong{font-size:28px}.run-row{grid-template-columns:1fr;gap:3px}.source-row{flex-direction:column}.workflow-empty{padding:45px 4px}.panel,.profile-section{padding:20px}.month-day{padding:5px;min-height:80px}.month-day button{font-size:10px;word-break:break-all;padding:3px}.month-day small{display:none}.editor-grid{display:block;height:380px}.editor-grid .asset-panel{display:none}.viewer{height:380px}.editor-heading{padding:15px}.workflow-skeleton{grid-template-columns:1fr}.workflow-skeleton i:not(:first-child){display:none}dialog.workflow-drawer{border-radius:0;padding:24px}.media-large{grid-template-columns:1fr 1fr}.media-large .asset-thumb{height:110px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
