.library-link{margin:12px 10px 4px;padding:12px;border:1px solid #dfe7f2;border-radius:9px;background:#fff;color:#557297;text-align:left;font-size:12px}.library-link span{float:right;color:#9caec3}.artifact-tabs{display:flex;flex:none;gap:5px;overflow-x:auto;padding:9px 16px 0;background:#f6f8fb;border-bottom:1px solid #e2e8f1;scrollbar-width:thin}.artifact-tabs .work-tab{white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis;padding:9px 13px;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;font-size:11px;color:#778ba7;background:transparent}.artifact-tabs .work-tab.active{background:#fff;border-color:#e0e7f0;color:#3b5c84;font-weight:600}.library{height:calc(100vh - 64px);overflow:auto;padding:42px 5vw 100px;background:#f6f8fb}.library>div{max-width:1100px;margin:auto}.library-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.library-head h1{font-size:30px;color:#334c6c;margin:4px 0 8px;font-weight:600}.library-head p:not(.eyebrow),.library-section p{font-size:13px;color:#91a1b7}.library-filter{display:flex;align-items:center;gap:20px;flex-wrap:wrap;color:#8295ad;font-size:12px}.library-filter label:first-child{background:white;border:1px solid #e0e8f1;border-radius:9px;padding:9px 13px;min-width:min(400px,100%)}.library-filter input:not([type=checkbox]){border:0;outline:0;width:90%;color:#4a5e78}.library-count{font-size:11px;color:#9cabc0;margin:25px 0 12px}.library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px}.library-card,.summary-box,.timeline-item,.library-empty{background:white;border:1px solid #e1e8f1;border-radius:12px;padding:20px}.library-card h2{font-size:17px;color:#405d80;margin:14px 0 8px}.library-card p,.summary-box p{color:#8294ab;font-size:12px;line-height:1.8}.library-card-top{display:flex;justify-content:space-between;color:#a4b2c5;font-size:10px}.library-badge{background:#edf3fa;color:#6d88ab;border-radius:5px;padding:4px 8px}.library-meta{display:flex;gap:16px;border-top:1px solid #eff3f7;padding:14px 0;color:#8195ae;font-size:11px}.library-actions{display:flex;gap:7px;flex-wrap:wrap}.library-actions button,.back-link,.timeline-item button,.summary-box button,.library-empty button{border:0;background:#eff4fb;color:#6482a8;border-radius:6px;padding:8px 10px;font-size:11px}.library-empty{color:#7086a2}.library-empty p{font-size:12px}.back-link{margin-bottom:20px}.summary-box{margin:16px 0}.summary-box h3{font-size:14px;color:#546e8d;margin:0 0 9px}.summary-box small{color:#a5b2c3}.library-section{margin:28px 0 14px}.library-section h2{font-size:19px;color:#526b88;margin:0}.library-section h2 small{font-size:12px;color:#a4b3c5}.artifact-timeline{display:grid;gap:10px}.timeline-item{display:grid;grid-template-columns:40px 1fr auto;gap:14px;align-items:center}.timeline-icon{display:grid;place-items:center;background:#edf3fa;border-radius:8px;color:#6683a9;width:40px;height:40px}.timeline-item h3{color:#536f91;font-size:14px;margin:0 0 5px}.timeline-item p{color:#9daec0;font-size:11px;margin:0 0 6px}.timeline-item span{display:inline-block;background:#f2f5f9;color:#8a9cb3;border-radius:4px;padding:3px 6px;margin-right:5px;font-size:10px}.conversation-preview{margin-top:20px;border:1px solid #e4eaf2;border-radius:10px;background:white;padding:18px;color:#7b90aa;font-size:12px}.conversation-preview summary{cursor:pointer;color:#577493;font-weight:600}.conversation-preview p{padding-top:10px}.rail-collapsed .library-link{font-size:0}.rail-collapsed .library-link:before{content:'▦';font-size:16px}.rail-collapsed .library-link span{display:none}@media(max-width:760px){.library{height:calc(100dvh - 60px);padding:24px 16px 90px}.library-head{align-items:start;flex-direction:column}.library-head h1{font-size:25px}.library-grid{grid-template-columns:1fr}.timeline-item{grid-template-columns:36px 1fr}.timeline-item button{grid-column:2}.artifact-tabs{padding-left:8px}.artifact-tabs .work-tab{max-width:140px}}
.conversation-context{font-size:11px;color:#82938b;white-space:nowrap}.process-card{margin:12px 0 15px;border:1px solid #e1e7ed;border-radius:10px;background:#f8faf9;color:#405b59;max-width:620px;overflow:hidden}.process-card summary{list-style:none;cursor:pointer;display:flex;gap:10px;align-items:center;padding:12px 14px}.process-card summary::-webkit-details-marker{display:none}.process-card summary:after{content:'⌄';margin-left:4px;color:#97a7a1}.process-card[open] summary:after{content:'⌃'}.process-icon{display:grid;place-items:center;background:#eaf2ed;color:#4e806c;border-radius:7px;width:26px;height:26px}.process-state{font-size:10px;color:#719580;margin-left:auto}.process-steps{padding:2px 14px 14px 20px;border-top:1px solid #e9edeb}.process-step{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:12px;color:#899790}.process-step.done{color:#516d62}.process-step.running{color:#3f7962}.process-step small{margin-left:auto;color:#a6b2ab;font-size:10px}.process-dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #d7e4db;color:#70a086}.process-step.running .process-dot{animation:process-spin 1s linear infinite}@keyframes process-spin{to{transform:rotate(360deg)}}@media(max-width:760px){.conversation-context{display:none}.process-card{max-width:100%}}
.suggestion-heading{color:#9aa99e;font-size:10px;margin-bottom:6px}
/* 对话先行：画布只显示用户打开的成果。 */
.in-conversation .topbar{display:none}.chat-header-left,.chat-header-actions{display:flex;align-items:center;gap:10px}.chat-header-actions button{font-size:11px}.chat-rail-toggle{font-size:16px;padding:3px 7px;border:0;background:transparent}.canvas-top{display:flex;align-items:end;background:#f6f8f5;border-bottom:1px solid #dce7db;flex:none;min-height:46px}.artifact-tabs{flex:1;min-width:0;display:flex;gap:5px;overflow-x:auto;padding:8px 8px 0 14px;border:0;background:transparent}.artifact-tabs .work-tab{display:flex;align-items:center;flex:none;max-width:230px;padding:0;border:1px solid #dbe5db;border-bottom:0;border-radius:8px 8px 0 0;background:#edf2ed;color:#6e8273}.artifact-tabs .work-tab.active{background:#fff;border-color:#c8d8ca;color:#345e4e;box-shadow:0 -2px 0 #4f8069 inset}.artifact-tabs .tab-label{min-width:0;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:0;padding:9px 3px 9px 12px;font-size:11px;color:inherit}.artifact-tabs .tab-close{background:transparent;border:0;padding:6px 9px;color:#91a194;font-size:15px}.artifact-tabs .tab-close:hover{color:#384e42;background:#e2eae2}.canvas-actions{flex:none;display:flex;gap:1px;padding:0 8px 4px}.canvas-actions .icon{font-size:17px;padding:5px 8px}.result-context{background:#fafbf8;border-bottom:1px solid var(--line);padding:9px 18px;flex:none}.context-title{display:flex;gap:10px;align-items:center}.context-title h2{font-size:13px;font-weight:600;margin:0;color:#526d5d}.context-title .eyebrow{font-size:9px;order:2;letter-spacing:0}.result-context .result-toolbar{padding:5px 0 0;border:0;gap:5px}.result-context .result-toolbar .toolbar-actions button{padding:5px 8px}.top-context{font-size:12px;color:#738577}@media(max-width:760px){.has-result .result{inset:0}.canvas-top{min-height:45px}.result-context{padding:8px 12px}.context-title .eyebrow{display:none}.result-context .result-toolbar{gap:4px}.result-context .result-toolbar .toolbar-actions{margin-left:0}.chat-heading{padding:14px 16px}.chat-header-actions{gap:4px}}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 7px;color:#8f9a8e;font-size:11px}.recent-heading button{border:0;background:transparent;color:#789481;font-size:10px;padding:6px 0;white-space:nowrap}.history-row{display:flex;align-items:center;border-radius:8px;position:relative}.history-row.active{background:#e2ebdf}.history .history-row .history-open{flex:1;min-width:0;margin:0}.history-menu{position:relative;flex:none}.history-menu summary{list-style:none;cursor:pointer;border-radius:6px;padding:5px 8px;color:#738a79;opacity:0}.history-menu summary::-webkit-details-marker{display:none}.history-row:hover .history-menu summary,.history-row:focus-within .history-menu summary,.history-menu[open] summary{opacity:1}.history-menu>div{position:absolute;right:0;top:100%;z-index:40;min-width:110px;background:white;border:1px solid #dfe8df;border-radius:8px;box-shadow:0 8px 20px #253b2b22;padding:4px}.history .history-menu button{margin:0;padding:8px 10px;color:#526d5b}.rail-collapsed .recent-heading{display:none}@media(max-width:760px){.history-menu summary{opacity:1}}
.inline-chart{margin-top:15px;border:1px solid #dce7df;background:#fff;border-radius:12px;padding:16px;max-width:680px;box-shadow:0 4px 18px #27402f08}.inline-chart-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.inline-chart-head strong,.inline-chart-head small{display:block}.inline-chart-head strong{font-size:13px;color:#385c4e}.inline-chart-head small{font-size:10px;color:#95a89b;margin-top:5px}.inline-chart-head button{font-size:11px;color:#638773;border:0;white-space:nowrap;padding:4px;background:transparent}.inline-chart-svg{width:100%;height:auto;display:block;margin:12px 0 0}.inline-chart-svg text{font-size:10px;fill:#8a9c90}.inline-legend{display:flex;gap:16px;font-size:10px;color:#82938a}.inline-legend i{display:inline-block;width:14px;height:3px;vertical-align:middle;margin-right:5px}.inline-chart-foot{border-top:1px solid #edf1ed;margin-top:10px;padding-top:8px;color:#9ba9a0;font-size:10px}
.inline-ranks{display:grid;gap:9px;margin:18px 0}.inline-ranks>div{display:grid;grid-template-columns:80px 1fr 70px;gap:8px;align-items:center;color:#71897b;font-size:11px}.inline-ranks i{height:7px;background:#edf2ed;border-radius:5px;overflow:hidden}.inline-ranks i b{display:block;height:100%;background:#83a994;border-radius:5px}.inline-ranks strong{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}
/* 基于指定参考版的蓝紫与浅灰配色，保留深色地图。 */
:root{--ink:#283850;--muted:#8796ad;--green:#6272e8;--wash:#eef1ff;--line:#e5eaf3;--paper:#fff;--blue:#5968ed;--gold:#c99b62}body{background:#f5f7fb}button:hover{border-color:#b9c7ed;background:#f1f4ff}.primary,button.primary{background:linear-gradient(110deg,#566df3,#7169eb);border-color:#6574ea;color:#fff}.primary:hover,button.primary:hover{background:#5362d3}.rail{background:#f4f6fb;border-color:#e1e8f3}.brand-icon{display:grid;place-items:center;background:linear-gradient(140deg,#4d76f9,#8070ef);color:white;font-size:22px;border-radius:11px;width:35px;height:35px}.new-chat{border-color:#dce4f3;color:#6679a6}.history-row.active,.history button.active{background:#e9edfb;color:#5267b7}.recent-heading button,.back-link{color:#6b7fbb}.topbar,.result-context{background:#fff;border-color:#e5eaf3}.chat{background:#fff}.user-text{background:#eef1ff;color:#344b7b}.byline b{color:#6675e8}.home{background:#f5f7fb}.home-mark{color:#6574e6}.home h1{color:#283850}.home-composer,.research-entry{border-color:#dce3f6;box-shadow:0 12px 50px #6684be0d}.research-entry.active{border-color:#8796ef;background:#f3f5ff}.entry-icon,.home-links button{color:#6979d9}.canvas-top{background:#f5f7fb;border-color:#e1e8f3}.artifact-tabs .work-tab{background:#edf1f8;border-color:#dce4ef;color:#8293aa}.artifact-tabs .work-tab.active{background:white;border-color:#cbd6eb;color:#546bd0;box-shadow:0 -2px 0 #6a7dea inset}.result{background:#f5f7fb}.result-context{border-color:#e5eaf3}.context-title h2{color:#536986}.card,.inline-shared{border-color:#e4eaf3;box-shadow:0 8px 25px #5267900a}.process-card{background:#f7f9fd;border-color:#e2e8f5;color:#546987}.process-icon{background:#edf1ff;color:#6c7ce8}.process-step.running{color:#5b6fd7}.process-dot{border-color:#d8dffa;color:#6b7be1}.inline-shared{margin-top:16px;padding:14px;background:#fff;border:1px solid #e1e8f2;border-radius:12px;max-width:720px}.inline-shared-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#94a3b8;margin-bottom:10px}.inline-shared-top button{border:0;background:transparent;color:#6f82c8;font-size:11px;padding:5px}.inline-shared .card{border:0;box-shadow:none;margin:0;padding:8px 0}.inline-shared .card-head h3{font-size:13px;color:#536a8d}.inline-shared .trend-stats,.inline-shared .trend-flags,.inline-shared .tabs,.inline-shared .selection-tray{display:none}.inline-shared .chart-svg{width:100%;height:auto}.inline-shared .caption{font-size:10px}.inline-shared .legend button:disabled{opacity:1;cursor:default}.inline-shared-foot{border-top:1px solid #eef1f6;padding-top:9px;margin-top:8px;font-size:10px;color:#a1adc0}.inline-shared button:disabled{cursor:default}.inline-shared details{margin-top:8px}.history-menu>div{border-color:#e1e8f3}.history-menu summary{color:#8291ab}
/* 首页简化与一致的蓝紫色调 */
:root{--ink:#283850;--muted:#8796ad;--green:#6374e7;--wash:#eef1ff;--line:#e2e8f3;--paper:#fff}.home{background:#f5f7fb;padding:38px 30px}.home-inner{max-width:820px}.home-mark{font-size:36px;margin:0 0 12px;color:#6574e6}.home h1{font-size:29px;margin:8px 0;color:#283850}.home-desc{font-size:13px;color:#8c9bb2;margin:0 0 25px}.home-composer{padding:19px 20px 16px;background:#fff;border:1px solid #dce3f6;border-radius:15px}.direction-heading{font-size:11px;color:#8696af;margin:0 0 9px}.direction-tabs{display:flex;gap:6px;background:#f2f5fb;border-radius:9px;padding:4px;width:max-content;max-width:100%;margin-bottom:20px}.direction-tab{border:0!important;border-radius:7px!important;padding:9px 14px!important;background:transparent!important;color:#8292ac!important;font-size:12px!important;white-space:nowrap}.direction-tab.active{background:#fff!important;color:#536be0!important;box-shadow:0 2px 8px #4a5d8c19;font-weight:600}.input-label{display:block;font-size:11px;color:#8292aa;margin-bottom:8px}.home-composer textarea{height:76px;color:#344c70}.home-composer textarea::placeholder{color:#a5b1c3}.composer-actions{display:flex;justify-content:space-between;align-items:center}.composer-actions span{color:#9eacc0!important}.home-prompt-heading{color:#93a1b7;font-size:11px;margin:22px 0 10px}.home-samples{display:flex;flex-wrap:wrap;gap:8px;margin:0}.home-samples button{border:1px solid #e1e8f4;background:white;border-radius:8px;color:#7184a3;padding:9px 12px;font-size:11px;line-height:1.5}.rail-caption,.recent-heading,.history small,.brand-sub,.search,.rail-bottom p,.top-context{color:#90a0b9!important}.history-menu summary{color:#8b9ab2}.chat-heading,.chat-heading button,.context-title h2{color:#536c91}.byline{color:#8293ad}.process-card{color:#526988}.process-step.done{color:#60769a}.process-step.running{color:#5c6fd8}.composer-foot,.caption{color:#91a0b5}.user-text{background:#eef1ff;color:#344b7b}.history-row.active,.history button.active{background:#e9edfb;color:#5267b7}.artifact-card.active{border-color:#9bacf2;background:#f5f6ff}.inline-shared .card-head h3{color:#536a8d}.result-context{background:#fff}.scope-footer{color:#899bb1}.recent-heading button{color:#7184c2!important}.home .eyebrow{color:#93a1b7}@media(max-width:760px){.home{padding:26px 16px}.home h1{font-size:24px}.direction-tabs{width:100%}.direction-tab{flex:1;text-align:center;padding:9px 6px!important}.home-samples{display:flex}.home-samples button{font-size:11px}}
.brand b{font-size:16px;letter-spacing:0;white-space:nowrap}.home-composer .direction-tabs{margin-bottom:16px}.composer-actions{justify-content:flex-end}.home h1{line-height:1.3;margin-bottom:25px}.home-composer textarea{margin-top:4px}@media(max-width:760px){.brand b{font-size:15px}.home h1{font-size:23px}}
.card-head-actions{display:flex;align-items:center;gap:10px;position:relative}.chart-scope{position:relative;flex:none}.chart-scope summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:22px;height:22px;border:1px solid #d6dff0;border-radius:50%;color:#8494af;background:#fff;font-size:12px;font-weight:600}.chart-scope summary::-webkit-details-marker{display:none}.chart-scope[open] summary{color:#586ce0;border-color:#8fa1ee;background:#f1f3ff}.chart-scope-panel{position:absolute;z-index:20;top:30px;right:-6px;width:290px;max-width:70vw;padding:16px;background:#fff;border:1px solid #e0e6f1;border-radius:12px;box-shadow:0 10px 30px #25396025;color:#405371;font-size:12px;line-height:1.65}.chart-scope-panel strong{font-size:13px}.chart-scope-panel dl{display:grid;grid-template-columns:38px 1fr;gap:7px 8px;margin:12px 0 0}.chart-scope-panel dt{color:#93a0b3}.chart-scope-panel dd{margin:0}.inline-shared .chart-scope{display:block}.card{overflow:visible}
.compare-dock{flex:none;display:flex;align-items:center;gap:14px;padding:13px 22px;background:#fff;border-top:1px solid #dce4f2;box-shadow:0 -6px 20px #203b6620;z-index:5}.compare-dock-heading{display:flex;flex-direction:column;gap:2px;white-space:nowrap;font-size:12px;color:#334865}.compare-dock-heading strong span{color:#5e70e0}.compare-dock-heading small{font-size:10px;color:#91a0b4}.compare-dock-items{display:flex;gap:7px;flex:1;flex-wrap:wrap;min-width:0}.compare-dock-pill{border:1px solid #dbe3f4;background:#f5f7ff;border-radius:20px;padding:6px 10px;color:#526c98;font-size:11px}.compare-dock-pill span{margin-left:5px;color:#8d9bb0}.compare-dock-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.compare-dock-actions>button:not(.primary){border:0;background:transparent;color:#8393ac;font-size:11px}.compare-dock-actions .primary:disabled{opacity:.45;cursor:not-allowed}.category-title button{cursor:pointer}.category-title button:hover{text-decoration:underline;color:#536be0}@media(max-width:760px){.compare-dock{padding:10px 14px;flex-wrap:wrap;gap:8px}.compare-dock-heading{flex-direction:row;align-items:center;gap:8px;width:100%}.compare-dock-items{min-width:50%}}
.compare-list-intro{margin:0 0 12px;color:#8495ad;font-size:12px;line-height:1.6}.candidate-table th:last-child,.candidate-table td:last-child{text-align:center}.candidate-table input[type=checkbox]{width:17px;height:17px;accent-color:#6574e6;cursor:pointer}

/* 新版首页欢迎区 */
.home{align-items:flex-start;overflow:auto;padding:56px 32px 36px}.home-inner{width:100%;max-width:760px;margin:auto}.welcome-head{display:flex;gap:17px;align-items:flex-start;margin:0 0 32px}.welcome-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:15px;background:#e8ecff;color:#6172df;font-size:25px}.welcome-kicker{font-size:11px;letter-spacing:.12em;color:#8290b0}.home h1{font-size:25px;margin:8px 0 10px;line-height:1.4}.welcome-head p{font-size:14px;color:#74849e;line-height:1.8;margin:0}.welcome-body{padding-left:63px}.welcome-body h2{font-size:14px;margin:0 0 14px;color:#445a7a}.home-samples{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-samples .welcome-sample{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;min-height:92px;padding:14px 34px 14px 15px;border-radius:12px;background:#fff;transition:border-color .2s,transform .2s}.home-samples .welcome-sample:hover{border-color:#aab9f5;transform:translateY(-2px)}.welcome-sample span{font-size:12px;color:#6173d9;font-weight:700}.welcome-sample strong{font-size:12px;line-height:1.65;font-weight:400;color:#536783}.welcome-sample i{position:absolute;right:15px;top:15px;font-style:normal;color:#9ba9c0}.overview-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 24px;padding:14px 16px;border-radius:12px;background:#edf1fa}.overview-link div{display:flex;flex-direction:column;gap:5px}.overview-link b{font-size:12px;color:#506584}.overview-link span{font-size:11px;color:#8292aa}.overview-link button{border:0;background:transparent;color:#6074d9;white-space:nowrap;cursor:pointer}.home-composer{margin-left:63px}.home-notice{margin:10px 0 0 63px;color:#9ba8ba;font-size:11px}.composer-actions span{font-size:11px}@media(max-width:760px){.home{padding:30px 18px}.welcome-head{gap:12px}.home h1{font-size:20px}.welcome-body,.home-composer{margin-left:0;padding-left:0}.home-samples{grid-template-columns:1fr}.home-samples .welcome-sample{min-height:76px}.home-composer{padding:16px}.home-notice{margin-left:0}.overview-link{align-items:flex-start}.overview-link span{line-height:1.5}}

.about-entry{display:inline-flex;margin:-14px 0 28px 63px;color:#6274d9;text-decoration:none;font-size:12px;font-weight:600}.rail-about{display:block;padding:12px 10px;color:#7081a0;text-decoration:none;font-size:12px}@media(max-width:760px){.about-entry{margin-left:0}}

.about-overlay:not([hidden]){position:fixed;inset:0;z-index:1000;background:#17264099;display:flex;align-items:center;justify-content:center;padding:24px}.about-shell{position:relative;width:min(1180px,100%);height:min(850px,92vh);background:#fff;border-radius:20px;box-shadow:0 30px 90px #0b173c55;overflow:hidden}.about-shell iframe{width:100%;height:100%;border:0}.about-close{position:absolute;right:17px;top:13px;z-index:3;border:0;border-radius:50%;width:36px;height:36px;font-size:24px;color:#66758e;background:#f1f4fb;cursor:pointer}@media(max-width:760px){.about-overlay:not([hidden]){padding:0}.about-shell{height:100%;border-radius:0}.about-close{top:10px;right:10px}}
/* 首页：输入优先、轻量示例与数据摘要 */
.home{display:block;overflow:auto;padding:48px 32px 30px;background:#f6f8fc}.home-inner{width:min(760px,100%);max-width:760px;margin:0 auto}.welcome-head{display:flex;gap:15px;margin:0 0 22px}.welcome-icon{width:43px;height:43px;font-size:23px;border-radius:13px}.welcome-kicker{font-size:10px}.home h1{font-size:24px;margin:5px 0 7px;line-height:1.35}.welcome-head p{font-size:13px;line-height:1.6;margin:0}.home-content{margin-left:58px}.home-composer{margin:0;padding:15px 17px 12px;box-shadow:0 10px 36px #5068ad0c}.home-composer textarea{height:54px;min-height:54px;margin:0;font-size:13px}.composer-actions{justify-content:space-between}.composer-actions span{font-size:10px}.composer-actions .primary{padding:9px 14px;font-size:12px}.prompt-row{margin-top:22px}.prompt-title{font-size:11px;font-weight:600;color:#8292aa;margin-bottom:10px}.home-samples{display:flex;flex-wrap:wrap;gap:8px;margin:0}.home-samples .balanced-prompt{padding:8px 11px;border:1px solid #e2e8f4;background:#fff;border-radius:8px;color:#627691;font-size:11px;line-height:1.4}.balanced-prompt span{color:#a5b1c8;margin-left:9px}.home-divider{height:1px;background:#e3e9f3;margin:30px 0 22px}.value-heading{display:flex;justify-content:space-between;align-items:end}.value-heading span{font-size:9px;letter-spacing:.14em;color:#8794df}.value-heading h2{font-size:15px;color:#405473;margin:6px 0 0}.value-heading a{font-size:11px;color:#687bd6;text-decoration:none}.value-strip{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;padding:16px 18px;background:#fff;border:1px solid #e8edf7;border-radius:12px}.value-strip div{display:flex;flex-direction:column;gap:4px;padding-left:22px;border-left:1px solid #edf0f7}.value-strip div:first-child{padding-left:0;border:0}.value-strip strong{font-size:21px;line-height:1.1;color:#6475dd;letter-spacing:-.03em}.value-strip em{font-size:11px;font-style:normal;letter-spacing:0}.value-strip span{font-size:11px;color:#8b9bb0}.home-links-bottom{margin-top:13px}.home-links-bottom button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 13px;background:#edf1fa;border:0;border-radius:10px;text-align:left;color:#6478a6}.home-links-bottom button>span:first-child{font-size:19px;color:#7688df}.home-links-bottom button>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.home-links-bottom b{font-size:11px}.home-links-bottom small{font-size:10px;color:#94a1b5}.home-links-bottom i{margin-left:auto;font-style:normal}.home-notice{margin:12px 0 0;color:#a0adbf;font-size:10px}@media(max-width:760px){.home{padding:28px 18px}.home h1{font-size:20px}.home-content{margin-left:0}.welcome-head{gap:12px}.home-samples{display:flex}.value-strip{padding:14px 12px}.value-strip div{padding-left:12px}.value-strip strong{font-size:18px}.value-strip span{font-size:10px}}

.top-overview{margin-left:auto;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #e3e8f5;border-radius:8px;background:#f8f9fe;color:#687bd0;font-size:11px;font-weight:600}.top-overview span{font-size:15px;line-height:1}.top-overview i{font-style:normal;color:#9aa8c4}.top-overview:hover{background:#eef1ff;border-color:#cbd5f5}@media(max-width:760px){.top-overview{padding:7px 9px;font-size:11px}}

.overview-overlay:not([hidden]){position:fixed;inset:0;z-index:999;background:#f5f7fb;display:block}.overview-shell{width:100%;height:100%}.overview-shell iframe{width:100%;height:100%;border:0;display:block}
/* 贸易总览弹窗 */
.overview-overlay:not([hidden]){position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;padding:24px;background:#172640a6}.overview-shell{position:relative;width:min(1320px,100%);height:min(880px,92vh);background:#f6f8fc;border-radius:18px;overflow:hidden;box-shadow:0 28px 90px #101d3e55}.overview-shell iframe{width:100%;height:100%;border:0;display:block}@media(max-width:760px){.overview-overlay:not([hidden]){padding:10px}.overview-shell{width:100%;height:96vh;border-radius:14px}}
/* 首页视觉调整 */
.home{padding:36px 32px 28px;background:radial-gradient(ellipse 650px 330px at 50% 25%,#eef1ff 0%,#f8f9fd 70%,#fafbfe 100%)}.home-inner{max-width:790px;width:min(790px,100%)}.welcome-head{display:block;text-align:center;margin:0 auto 24px}.welcome-icon{margin:0 auto 10px;width:42px;height:42px;background:linear-gradient(145deg,#6478f3,#8a79ea);color:#fff;box-shadow:0 8px 22px #6b7ae438}.welcome-kicker{font-size:9px;letter-spacing:.16em;color:#8b9ac4}.home h1{font-size:27px;line-height:1.3;letter-spacing:-.025em;margin:7px 0 8px;color:#263651}.home h1 span{color:#6877e5}.welcome-head p{font-size:12px;color:#8998af}.home-content{margin:0 auto;max-width:700px}.home-composer{padding:16px 18px 13px;border:1px solid #dce3f8;border-radius:16px;background:#fff;box-shadow:0 12px 40px #798bdc1c}.home-composer:focus-within{border-color:#a7b5f0;box-shadow:0 12px 42px #798bdc30}.home-composer textarea{height:56px;min-height:56px;font-size:13px}.composer-actions .primary{border-radius:9px;padding:9px 15px}.prompt-row{margin-top:18px}.prompt-title{font-size:11px;color:#9aa8ba;margin-bottom:9px}.home-samples{gap:7px}.home-samples .balanced-prompt{border-radius:20px;background:#ffffffc9;padding:7px 12px;font-size:11px;color:#6e7e98;border-color:#e4e9f4}.home-samples .balanced-prompt:hover{color:#5c6fdd;border-color:#bbc8f3;background:#fff}.balanced-prompt span{color:#a4b0ca!important}.home-divider{margin:26px 0 19px}.value-heading h2{font-size:14px}.value-heading span{font-size:9px}.value-strip{margin-top:12px;padding:13px 18px;border-radius:12px;background:#ffffffbc}.value-strip strong{font-size:20px}.home-notice{text-align:center;margin-top:13px;font-size:10px}.top-overview{border:0;background:#f1f3ff;color:#6172d8}.rail{background:#f6f7fb}.new-chat{border-radius:10px;background:#fff}.brand-icon{box-shadow:0 5px 14px #6877e326}@media(max-width:760px){.home{padding:28px 18px}.home h1{font-size:22px}.home-content{margin:0}.welcome-head{margin-bottom:20px}.home-samples .balanced-prompt{font-size:11px}.value-strip{padding:13px}.value-strip strong{font-size:18px}}
/* 业务方向与示例问题：紧凑分组 */
.home-samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.home-samples .scene-prompt{position:relative;display:flex;align-items:center;gap:10px;min-width:0;text-align:left;padding:9px 28px 9px 11px;border:1px solid #e4e9f4;border-radius:10px;background:#ffffffc9;line-height:1.4}.home-samples .scene-prompt:hover{background:#fff;border-color:#bbc8f3}.scene-label{flex:none;color:#6375d5!important;font-size:10px;font-weight:700;background:#eff2ff;border-radius:5px;padding:4px 6px}.scene-question{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71829d!important;font-size:11px}.scene-prompt i{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;color:#aab6cc;font-size:11px}.prompt-title{margin-bottom:8px}.home-divider{margin:21px 0 17px}@media(max-width:600px){.home-samples{grid-template-columns:1fr}.home-samples .scene-prompt{padding:8px 28px 8px 10px}.scene-question{white-space:normal}}

.overview-close{position:absolute;z-index:3;right:16px;top:14px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #e1e9e7;border-radius:50%;background:#fff;color:#6a817e;font-size:24px;line-height:1;box-shadow:0 3px 12px #183b3814}.overview-close:hover{background:#f2f7f6;color:#234e47}
/* 成果随回答展示 */
body.in-conversation .workspace{display:flex}body.in-conversation .chat{width:100%;max-width:none;flex:1}body.in-conversation .result{display:none!important}.messages{scroll-behavior:smooth}.inline-result{margin:16px 0 6px;max-width:840px;border:1px solid #dfe7f3;border-radius:14px;background:#f8faff;overflow:hidden}.inline-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;border:0;border-radius:0;background:#f4f6fd;padding:13px 16px;color:#697bd0;font-size:11px}.inline-group-toggle>span:first-child{display:flex;flex-direction:column;gap:5px}.inline-group-toggle b{font-size:13px;color:#3f5476}.inline-group-toggle small{font-size:10px;color:#94a3b9}.inline-chart-list{display:grid;gap:10px;padding:12px}.inline-chart{background:#fff;border:1px solid #e9edf5;border-radius:10px;overflow:hidden}.inline-chart>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;color:#526786;font-size:12px;font-weight:600}.inline-chart>summary::-webkit-details-marker{display:none}.inline-chart>summary span{font-size:10px;font-weight:400;color:#98a6bb}.inline-chart-body{padding:0 14px 14px;overflow:auto}.inline-chart-body .card{margin:0;border:0;box-shadow:none;padding:8px 0}.inline-chart-body .chart-svg,.inline-chart-body .world-map{max-width:100%;height:auto}.inline-chart-body button:disabled{opacity:.8;cursor:default}.inline-chart-pending{padding:12px 14px;color:#9ba9bd;font-size:11px;background:#fff;border-radius:9px}.inline-unavailable{color:#98a6bb;font-size:12px}@media(max-width:760px){.inline-chart-list{padding:8px}.inline-chart-body{padding:0 10px 10px}}

/* 左侧账户与客服 */
.account-wrap{position:relative;margin-left:12px}.account-button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#42516a;cursor:pointer;padding:5px}.account-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e9edff;color:#5e6ee0;font-size:13px;font-weight:700}.account-avatar.large{width:44px;height:44px;font-size:17px}.account-menu{position:absolute;right:0;top:42px;width:184px;background:#fff;border:1px solid #e8ecf4;border-radius:12px;box-shadow:0 12px 35px #24365320;padding:7px;z-index:1000}.account-menu[hidden],.account-backdrop[hidden]{display:none}.account-heading{padding:10px;border-bottom:1px solid #eef0f5;display:grid;gap:4px}.account-heading small,.account-profile p,.account-note{color:#8995a8;font-size:12px}.account-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px;border-radius:7px;color:#40516c;cursor:pointer}.account-menu button:hover{background:#f4f6fc}.account-backdrop{position:fixed;inset:0;z-index:1100;background:#17264099;display:flex;align-items:center;justify-content:center;padding:20px}.account-dialog{background:white;border-radius:16px;width:min(420px,100%);padding:24px;box-shadow:0 20px 70px #17264033}.account-dialog header{display:flex;align-items:center;justify-content:space-between}.account-dialog h2{font-size:18px;margin:0}.account-dialog header button{border:0;background:none;font-size:24px;color:#8995a8;cursor:pointer}.account-profile{display:flex;align-items:center;gap:12px;padding:24px 0;border-bottom:1px solid #eef0f5}.account-profile p{margin:5px 0 0}.account-row{display:flex;justify-content:space-between;padding:20px 0;color:#7c8aa0;font-size:13px}.account-row strong{color:#33445c}.account-note{margin:0;line-height:1.6}

.account-wrap{position:relative;margin:14px 0 0;flex-shrink:0}.account-button{width:100%;padding:9px 8px;border-radius:10px;text-align:left;gap:10px}.account-button:hover,.account-button[aria-expanded="true"]{background:#e9edf7}.account-summary{display:grid;gap:5px;min-width:0;flex:1}.account-summary strong{font-size:12px;color:#384a65}.account-summary small{font-size:11px;color:#8998af}.account-summary em,.account-badge{font-style:normal;font-size:10px;color:#6976ca;background:#e9edff;border-radius:5px;padding:3px 5px}.account-chevron{color:#98a5b7}.account-menu{top:auto;bottom:calc(100% + 7px);left:0;right:auto;width:200px}.account-row+.account-row{border-top:1px solid #eef0f5}.rail-collapsed .account-summary,.rail-collapsed .account-chevron{display:none}.rail-collapsed .account-button{justify-content:center;padding:7px 0}@media(max-width:1250px){body:not(.rail-expanded) .account-summary,body:not(.rail-expanded) .account-chevron{display:none}body:not(.rail-expanded) .account-button{justify-content:center;padding:7px 0}}

.support-content{display:flex;align-items:center;flex-direction:column;text-align:center;padding:28px 0 8px;gap:12px;color:#40516c}.support-placeholder{width:150px;height:150px;background:#f4f6fb;border:1px dashed #cbd4e5;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#a4afc1;font-size:54px;line-height:1}.support-placeholder span,.support-content p{font-size:12px;color:#9aa6b8}.support-content p{margin:0}
/* 对话图表：宽幅、独立卡片和清晰标题 */
body.in-conversation .messages{padding:30px max(24px,calc((100% - 960px)/2)) 44px;background:#f8f9fc}body.in-conversation .message{width:100%;margin-bottom:30px}body.in-conversation .message.user .user-text{display:inline-block;text-align:left;max-width:85%;padding:12px 17px;border-radius:15px 15px 4px 15px;background:#e9edff;color:#394e73}body.in-conversation .byline{font-size:13px;font-weight:600;color:#4a5c79;margin-bottom:10px}body.in-conversation .answer{font-size:13px;line-height:1.85;color:#465975;max-width:900px}.inline-result{max-width:none;margin-top:18px;border:0;background:transparent;overflow:visible}.inline-group-toggle{border:1px solid #e4e9f3;border-radius:11px;background:#f0f3fa;padding:13px 16px}.inline-group-toggle b{font-size:13px;color:#334a6b}.inline-group-toggle small{font-size:10px;color:#8796ad}.inline-chart-list{padding:12px 0 0;gap:14px}.inline-chart{border:1px solid #e3e9f3;border-radius:12px;background:#fff;box-shadow:0 5px 20px #344c7508;overflow:visible}.inline-chart>summary{padding:15px 19px;color:#304765;font-size:14px;border-bottom:1px solid transparent}.inline-chart[open]>summary{border-bottom-color:#edf0f6}.inline-chart>summary .chart-toggle-label:before{content:'展开 ↓';color:#8293b0}.inline-chart[open]>summary .chart-toggle-label:before{content:'收起 ↑'}.inline-chart-body{padding:14px 19px 18px;overflow:auto}.inline-chart-body>.card{padding:0;margin:0;border:0;background:transparent;box-shadow:none}.inline-chart-body>.card>.card-head{display:none}.inline-chart-body .tabs,.inline-chart-body .selection-tray,.inline-chart-body .card-head-actions{display:none}.inline-chart-body .chart-svg{display:block;width:100%;max-width:100%;max-height:none;min-height:220px}.inline-chart-body .world-map{display:block;width:100%;min-height:240px}.inline-chart-body .rank-row{grid-template-columns:110px minmax(60px,1fr) 90px;gap:14px;padding:10px 12px;border-radius:8px;font-size:12px}.inline-chart-body button:disabled{opacity:1;color:inherit}.inline-chart-body .rank-row:disabled{background:transparent}.inline-chart-body .map-layout{grid-template-columns:minmax(0,1fr) 175px}.inline-chart-body .map-side button:disabled{color:#d7e7f2}.inline-chart-body .caption,.inline-chart-body .map-note{font-size:11px;line-height:1.7;color:#8a9bb0}.inline-chart-pending{border:1px dashed #dbe3f2;background:#f7f9fd;color:#93a2bb;padding:16px}.chat-compose{max-width:960px;width:100%;margin:0 auto}@media(max-width:760px){body.in-conversation .messages{padding:20px 16px 32px}.inline-chart-body{padding:12px}.inline-chart-body .map-layout{grid-template-columns:1fr}.inline-chart-body .rank-row{grid-template-columns:72px minmax(35px,1fr) 65px;gap:6px}.inline-chart-body .chart-svg{min-height:160px}}
.inline-chart-body>.map-card{background:#14283d;color:#dbe7ec;border-radius:10px;padding:16px}.inline-chart-body .map-card .map-note{color:#a7bfcb}
/* 重新设计对话内图表 */
.inline-chart{border:1px solid #e9edf5;box-shadow:0 8px 24px #263f7010}.inline-chart>summary{background:#fafbfe;border-radius:12px 12px 0 0;color:#7585a0;font-size:11px;letter-spacing:.03em;padding:10px 20px}.inline-chart-body{padding:22px 24px 18px}.pv-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.pv-kicker{font-size:9px;font-weight:700;letter-spacing:.14em;color:#8e9ad0}.pv-top h4{margin:7px 0 5px;color:#293e5e;font-size:17px;line-height:1.3}.pv-top p{margin:0;font-size:11px;color:#95a3b7}.pv-badge{flex:none;border-radius:7px;background:#f2f4fc;padding:6px 9px;color:#8191b1;font-size:10px}.pv-rank-head,.pv-rank-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(160px,2.2fr) 74px;align-items:center;gap:14px}.pv-rank-head{padding:0 12px 9px;color:#a4afbf;font-size:10px;border-bottom:1px solid #edf0f6}.pv-rank-head span:last-child{text-align:right}.pv-rank-row{padding:10px 12px;border-bottom:1px solid #f2f4f8}.pv-rank-row:last-child{border:0}.pv-name{display:flex;align-items:center;gap:11px;min-width:0}.pv-name i,.pv-map-list i{font-style:normal;color:#a8b4c7;font-size:10px}.pv-name b{font-size:12px;color:#435774;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pv-bar-cell{display:flex;align-items:center;gap:12px}.pv-track{display:block;flex:1;height:7px;background:#f0f3f9;border-radius:8px;overflow:hidden}.pv-track i{display:block;height:100%;background:linear-gradient(90deg,#90a2f4,#6678e5);border-radius:8px}.pv-bar-cell strong{width:52px;text-align:right;font-size:12px;color:#3c5271}.pv-growth{text-align:right;color:#27a38d;font-size:11px;font-weight:600}.pv-growth.negative{color:#dd7777}.pv-foot{margin-top:15px;padding-top:12px;border-top:1px solid #f0f2f7;font-size:10px;color:#a2afc1;line-height:1.6}.pv-legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 8px;color:#71819b;font-size:11px}.pv-legend span{display:flex;align-items:center;gap:6px}.pv-legend i,.pv-share-list i{width:8px;height:8px;display:inline-block;border-radius:50%}.pv-line{display:block;width:100%;height:auto;max-height:300px}.pv-line text{font-size:11px;fill:#9daabe}.pv-line .pv-point{fill:#677a96;font-weight:600;font-size:11px}.pv-map{overflow:hidden;background:linear-gradient(140deg,#1c334d,#203e57);border-radius:10px;padding:8px}.pv-map .world-map{display:block;width:100%;height:auto;min-height:0}.pv-map-list{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}.pv-map-list div{min-width:0;border-right:1px solid #edf0f6;padding:0 8px}.pv-map-list div:first-child{padding-left:0}.pv-map-list div:last-child{border:0}.pv-map-list span{display:block;font-size:10px;color:#8998ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pv-map-list i{margin-right:5px}.pv-map-list b{display:block;font-size:13px;color:#405674;margin-top:5px}.pv-share{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:30px;padding:10px 15px}.pv-donut{width:175px;height:175px;border-radius:50%;display:grid;place-items:center;margin:auto}.pv-donut>div{width:118px;height:118px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.pv-donut small{color:#9ca9bb;font-size:10px}.pv-donut strong{color:#334a6a;font-size:24px}.pv-share-list>div{display:grid;grid-template-columns:1fr 70px 60px;align-items:center;gap:10px;padding:8px 0;color:#71839b;font-size:11px}.pv-share-list span{display:flex;align-items:center;gap:9px}.pv-share-list b{font-weight:500;text-align:right;color:#627691}.pv-share-list strong{text-align:right;color:#425775}.inline-chart-body button:disabled{opacity:1}@media(max-width:760px){.inline-chart-body{padding:16px}.pv-rank-head,.pv-rank-row{grid-template-columns:90px minmax(80px,1fr) 50px;gap:6px}.pv-bar-cell{gap:5px}.pv-bar-cell strong{width:42px}.pv-name{gap:5px}.pv-share{grid-template-columns:1fr;gap:12px;padding:5px}.pv-share-list>div{grid-template-columns:1fr 60px 50px}.pv-map-list{grid-template-columns:repeat(3,1fr);row-gap:12px}.pv-map-list div:nth-child(3){border:0}.pv-map-list div:nth-child(4){padding-left:0}}

.history .history-menu summary{opacity:1;color:#8e9bb0;font-size:17px;line-height:1;padding:5px 8px}.history-menu>div{min-width:130px;border:1px solid #e6ebf4;border-radius:10px;box-shadow:0 10px 30px #263b631c;padding:5px}.history .history-menu button{font-size:12px;color:#4b5d78;border-radius:7px}.history .history-menu button[data-action="trashStudy"]{color:#d86d6d}.history .history-menu button:hover{background:#f3f5fb}.delete-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.delete-dialog-actions .delete-confirm{background:#d96363;color:#fff;border-color:#d96363}.delete-dialog-actions .delete-confirm:hover{background:#c74e4e}
/* 最近对话菜单与重命名 */
.history-row{border-radius:9px;min-height:54px}.history .history-row .history-open{padding:10px 8px 10px 11px;color:#55677f;font-size:12px;line-height:1.4}.history .history-row.active .history-open{color:#334763}.history .history-open small{font-size:10px;margin-top:4px;color:#9eacc0}.history .history-menu summary{display:grid;place-items:center;width:30px;height:30px;padding:0;margin-right:6px;border:1px solid transparent;border-radius:8px;color:#95a1b2;font-size:19px;line-height:1}.history .history-menu summary:hover,.history-menu[open] summary{background:#fff;border-color:#dce4f1;color:#6174d4}.history-menu>div{position:fixed;z-index:1050;width:158px;min-width:0;padding:5px 0;border:1px solid #e7eaf0;border-radius:11px;background:#fff;box-shadow:0 14px 35px #283b5d24}.history .history-menu button{display:flex;align-items:center;gap:10px;padding:11px 14px;font-size:12px;color:#596b82;border:0;border-radius:0}.history .history-menu button:before{display:inline-grid;place-items:center;width:16px;font-size:15px;color:#9ba8ba}.history .history-menu button[data-action="renameHistory"]:before{content:'✎'}.history .history-menu button[data-action="trashStudy"]{border-top:1px solid #edf0f5;color:#d45b5b}.history .history-menu button[data-action="trashStudy"]:before{content:'▤';color:#d45b5b}.history .history-menu button:hover{background:#f6f8fc}.modal-backdrop.rename-dialog{background:#19243c80;backdrop-filter:blur(2px)}.rename-dialog .dialog{width:min(440px,calc(100vw - 32px));padding:0;border:0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 24px 70px #1b294e38}.rename-dialog .dialog>header{padding:23px 24px 0;border:0;align-items:center}.rename-dialog .dialog>header h2{font-size:18px;font-weight:650;color:#263951}.rename-dialog .dialog>header button{border:0;background:transparent;color:#9ba7b8;font-size:22px;padding:0 3px}.rename-dialog #modalBody{padding:0}.rename-hint{margin:7px 24px 17px;font-size:12px;color:#97a4b5}.rename-field{display:block;margin:0 24px 22px}.rename-field input{width:100%;height:43px;padding:0 12px;border:1px solid #dfe6f1;border-radius:9px;color:#334b6a;font-size:13px;outline:none}.rename-field input:focus{border-color:#91a4ee;box-shadow:0 0 0 3px #dfe6ff80}.rename-footer{display:flex;justify-content:flex-end;gap:9px;padding:15px 24px;background:#f8f9fc;border-top:1px solid #edf0f5}.rename-footer button{min-width:68px;padding:9px 15px;border-radius:8px;font-size:12px}.rename-footer button:disabled{background:#d6dce7;border-color:#d6dce7;color:#fff;opacity:1;cursor:not-allowed}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 最近对话：标题截断与悬停操作 */
.history-row{position:relative;min-width:0}.history .history-row .history-open{display:block;width:100%;min-width:0;padding-right:38px;overflow:hidden;white-space:normal}.history-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.history .history-open small{display:block;white-space:nowrap}.history-menu{position:absolute;right:3px;top:50%;transform:translateY(-50%);z-index:2}.history .history-menu summary{opacity:0;visibility:hidden;margin:0;transition:opacity .15s}.history-row:hover .history-menu summary,.history-row:focus-within .history-menu summary,.history-menu[open] summary{opacity:1;visibility:visible}@media(hover:none){.history .history-menu summary{opacity:1;visibility:visible}}

/* 最近对话为单行，覆盖通用 details 的分隔线 */
.history-row{min-height:39px;margin:2px 0}.history .history-row .history-open{display:flex;align-items:center;gap:9px;height:39px;padding:0 38px 0 10px;overflow:hidden;white-space:nowrap}.history-chat-icon{flex:none;color:#9ba8b8;font-size:16px;line-height:1}.history-title{flex:1;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history details.history-menu{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;margin:0;padding:0}.history .history-menu summary{width:28px;height:28px;margin:0;padding:0;border:0}.history .history-menu summary:hover,.history .history-menu[open] summary{border:0;background:#fff}
/* 固定定位菜单相对屏幕，不让触发器的变换影响弹出位置 */
.history details.history-menu{top:calc(50% - 14px);transform:none}.history{overflow-x:hidden;overflow-y:auto}.history-menu>div{right:auto;bottom:auto}
