/* 2026-10-24：信息首页、同屏工作台、纸质公司底稿、AI模型分配。 */
.morning-mode .topbar .date-label{display:none}
.morning-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:20px}
.morning-date{font-size:10px;color:#7c8d9e}.morning-heading h1{font-size:27px;margin:3px 0}.morning-heading p{font-size:11px;color:#8493a3}.morning-tools{display:flex;align-items:center;gap:15px}
.morning-brief{border:1px solid #dbe4ee;background:#fff;border-radius:6px;margin-bottom:19px;overflow:hidden}
.brief-masthead{display:flex;align-items:center;gap:12px;background:#edf2f8;padding:10px 18px}.brief-masthead h2{font-size:15px;color:#344f6c}.brief-masthead>span{font-size:10px;color:#8c9caf}.brief-masthead .btn{margin-left:auto;font-size:10px}
.brief-columns{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 18px;gap:18px}.brief-columns>div{border-right:1px solid #e6ebf1;padding-right:17px}.brief-columns>div:last-child{border:0;padding:0}.brief-columns b{font-size:11px;color:#506c87}.brief-columns p{font-size:11px;color:#8394a5;line-height:1.8;margin-top:5px}.brief-note{font-size:9px;color:#98a7b7;padding:0 18px 11px}
.morning-layout{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:20px;align-items:start}.morning-layout>div,.morning-aside{min-width:0}.morning-aside{display:flex;flex-direction:column;gap:18px}
.topic-panel{margin-bottom:15px}.topic-panel .panel-head{padding:12px 16px 7px}.topic-panel .panel-head h2{font-size:12px}.topic-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:0 12px 12px}.topic-item{display:flex;flex-direction:column;align-items:flex-start;background:#f5f8fb;min-width:0;white-space:normal;padding:8px 9px;gap:2px;border:0}.topic-item:hover{background:#eaf1fa}.topic-item strong{font-size:10px;font-weight:500;color:#5d7b9a}.topic-item span{font-size:8px;color:#a2b1c0}
.news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px 12px}.news-toolbar h2{font-size:14px}.news-toolbar .search-field{width:185px}.news-toolbar input{font-size:11px;padding:6px 0}.news-filters{display:flex;gap:16px;padding:0 18px 10px;border-bottom:1px solid #e9eef3}.news-filters>.btn{font-size:10px;min-height:27px;padding:4px 0;color:#93a2b2;border:0;border-radius:0}.news-filters>.btn.active{color:#3265a7;border-bottom:1px solid #3265a7}
.feed-item{padding:13px 18px 10px;border-bottom:1px solid #e9eef4}.feed-item:last-child{border:0}.feed-meta{display:flex;align-items:center;gap:10px;font-size:9px;color:#a2afbc}.feed-meta .tag{font-size:8px;padding:1px 5px}.feed-meta .read-status{margin-left:auto;color:#99b3ab}.feed-item>button{width:100%;display:block;text-align:left;padding:5px 0}.feed-item h3{font-size:13px;line-height:1.7;font-weight:500;color:#37546f}.feed-item>button:hover h3{color:#3265a7}.feed-item p{font-size:11px;color:#8194a7;margin-top:4px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.feed-bottom{display:flex;align-items:center;gap:15px;color:#aeb8c4;font-size:9px}.feed-bottom .btn{font-size:9px;min-height:20px}.feed-bottom>.btn:first-of-type{margin-left:auto}.feed-item.is-read h3{color:#8a9baa}
.hot-stock-list{padding:0 18px 6px}.hot-stock-list>div{border-bottom:1px solid #edf1f5;padding:10px 0}.hot-stock-list>div:last-child{border:0}.hot-stock-list>div>button:first-child{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:0}.hot-order{font:17px Georgia,serif;color:#bbcad9}.hot-stock-list strong{font-size:12px;color:#5b7690;font-weight:500}.hot-stock-list small{font-size:9px;color:#a8b6c4;margin-left:10px}.hot-stock-list svg{margin-left:auto;color:#a7b7c8}.hot-stock-list p{font-size:10px;margin:3px 0 0 33px;color:#9aacbe}.hot-stock-list .table-link{font-size:9px;margin-left:33px;min-height:19px}
.morning-calendar .panel-head{padding-bottom:10px}.morning-calendar .panel-head>div{display:block}.morning-calendar .panel-head .muted{display:block;font-size:9px;margin-top:5px}.week-dates{display:grid;grid-template-columns:repeat(7,1fr);margin:0 18px 8px;border-bottom:1px solid #edf1f5;padding-bottom:13px;gap:3px}.week-dates span{text-align:center;border-radius:3px;padding:4px 1px;color:#95a6b9}.week-dates span.today{background:#e9f0f9;color:#3265a7}.week-dates small{display:block;font-size:8px}.week-dates b{font:13px/1.8 monospace;font-weight:400}.morning-calendar .event-list{padding:0 18px 8px;display:block}.morning-calendar .event-item{padding:12px 0}.morning-calendar .event-item strong{font-size:10px}.morning-calendar .event-item small{font-size:8px}
.morning-checklist{border-left:2px solid #afc2d7;padding:7px 17px}.morning-checklist h3{font-size:12px;font-weight:500;color:#7c94ad;margin-bottom:8px}.morning-checklist p{font-size:12px;color:#8fa2b6;line-height:2}.morning-checklist small{display:block;font-size:9px;color:#adbac8;margin-top:11px}
.account-section{margin-bottom:20px}.account-section .overview-grid{margin-bottom:18px}.account-section .equity-panel .curve{height:188px}.account-section .allocation-total{padding-bottom:12px}.account-section .discipline-note{font-size:9px;line-height:1.7}.current-positions .panel-head{padding-top:15px;padding-bottom:12px}.current-positions td,.current-positions th{padding:11px 18px}.current-positions .num{font-size:11px}.current-positions th{font-size:9px}
/* 工作台不保留全局横幅、面包屑或页脚，桌面图表在同一视口内。 */
.desk-mode .demo-banner,.desk-mode .topbar,.desk-mode .app-footer{display:none}
.desk-mode #page-content{padding:10px 16px;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.desk-mode .workbench-top{height:53px;min-height:53px;flex-shrink:0;margin:0 0 10px;gap:12px}
.desk-mode .workbench-top>div:first-child{display:flex;align-items:center;gap:18px;min-width:0}.desk-mode .workbench-top h1{font-size:21px;gap:10px}.desk-mode .workbench-top h1 span{font-size:9px;white-space:nowrap}.desk-mode .quote-line{margin:0;gap:9px}.desk-mode .quote-line>strong{font-size:24px}.desk-mode .quote-line>.muted{display:none}.desk-mode .quote-line>.tag{font-size:8px;padding:1px 5px}.desk-mode .workbench-top .btn{font-size:10px;min-height:30px;padding:5px 9px}
.desk-mode .workbench-layout{flex:1;min-height:0;grid-template-columns:145px minmax(0,1fr) 260px;gap:11px;align-items:stretch;overflow:hidden}
.desk-mode .watchlist{height:100%;min-height:0;overflow:auto}.desk-mode .watch-item{padding:12px 10px}.desk-mode .workbench-center{display:grid;grid-template-rows:minmax(230px,1fr) 270px;gap:10px;min-height:0}
.desk-mode .chart-panel{display:flex;flex-direction:column;min-height:0}.desk-mode .chart-toolbar{padding:6px 9px;flex-shrink:0}.desk-mode .price-chart{height:auto;min-height:0;flex:1;margin-top:5px}.desk-mode .chart-legend{padding:5px 12px 6px;font-size:8px;gap:10px;flex-shrink:0}.desk-mode .chart-panel>.chart-foot{padding:6px 11px;flex-shrink:0}.desk-mode .history-panel{margin:0;display:flex;flex-direction:column;min-height:0}.desk-mode .history-panel .tabs{min-height:34px;flex-shrink:0;gap:20px;padding:0 12px}.desk-mode .history-panel .tabs>.btn{font-size:10px;min-height:34px;padding:7px 0}.desk-mode .history-content{padding:6px 11px;overflow:auto;flex:1;min-height:0}.desk-mode .right-panel{min-height:0;height:100%;display:flex;flex-direction:column}.desk-mode .right-tabs{flex-shrink:0}.desk-mode .right-tabs>.btn{min-height:37px;padding-top:8px;padding-bottom:8px}.desk-mode .right-panel-content{padding:14px;overflow:auto;min-height:0;flex:1}.desk-mode .holding-main{font-size:26px;margin:12px 0 15px}.desk-mode .position-stats{padding-bottom:11px;margin-bottom:7px}.desk-mode .kv-list>div{padding:7px 0}.desk-mode .note-heading{margin-top:15px}.desk-mode .right-panel .notice{margin:10px 0;font-size:9px}.desk-mode .right-panel form{margin-top:13px}.desk-mode .right-panel form>label,.desk-mode .right-panel form>.form-grid{margin-bottom:10px}.desk-mode .right-panel form input,.desk-mode .right-panel form select{padding:7px 9px}.desk-mode .right-panel label>input,.desk-mode .right-panel label>select{margin-top:4px}.desk-mode .right-panel .sim-placeholder{padding:19px 0;font-size:9px}
.operation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:26px;color:#8fa1b4;font-size:9px}.operation-head>span{white-space:nowrap}.operation-head>select{width:137px;padding:4px 7px;font-size:9px;border-color:#e6ebf1;background:#fafbfd}.operation-head .segmented{padding:2px}.operation-head .segmented .btn{font-size:8px;min-height:21px;padding:3px 7px}.operation-legend{display:flex;gap:12px;font-size:8px;color:#97a8b9;flex-wrap:wrap}.operation-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}.operation-legend i{display:inline-block;width:9px;height:2px}.operation-plot{width:100%;height:116px;display:block;overflow:visible}.operation-plot [data-action]{cursor:pointer}.operation-plot [data-action]:focus{outline:1px solid #aec2d9;fill:#3265a710}.operation-footer{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#a5b3c1;gap:12px;padding-top:3px}.operation-footer strong{font-size:9px;color:#7891ac;font-weight:400;white-space:nowrap}.warehouse-strip{display:grid;grid-template-columns:75px minmax(0,1fr);align-items:center;gap:4px;margin-top:5px;border-top:1px solid #edf1f5;padding-top:2px}.warehouse-strip>span{font-size:8px;color:#92a6bb}.warehouse-strip .operation-plot{height:42px}.chart-unit-note{font-size:8px;color:#aab8c7;line-height:1.7;padding-top:3px}.plot-empty{font-size:10px;color:#b1becc;text-align:center;padding:30px}.simulation-empty{display:flex;align-items:center;gap:22px;padding:35px 22px;max-width:600px;margin:auto;color:#afc0d0}.simulation-empty h3{font-size:13px;font-weight:500;color:#7c98b5;margin-bottom:7px}.simulation-empty p{font-size:11px;color:#9bafc3}.compact-sim-result{margin-top:15px;padding-top:13px}.sim-result-title .tag{font-size:7px;margin-left:6px}.sim-key-results{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:13px}.sim-key-results>div>span{font-size:8px;display:block;color:#a5b4c3}.sim-key-results b{display:block;font-size:12px;font-weight:500;color:#6685a5;margin-top:4px}.compact-sim-result .notice{font-size:9px}
/* 宋体、紧凑表格与连续A4纸张，只用于公司档案。 */
.archive-mode .main-shell{background:#e9e5dc}.archive-mode #page-content{padding:21px 25px 35px}.archive-reader-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:23px}.archive-reader-toolbar>div:first-child{margin-right:auto}.archive-reader-toolbar h1{font-size:20px;color:#5a554a}.archive-reader-toolbar>div>span{font-size:10px;color:#999080}.archive-reader-toolbar select{width:160px;background:#f8f5ed;border-color:#d4cbb9;font-size:11px}.archive-reader-toolbar>.btn{border-color:#cfc2ae;color:#7a6751;background:#f8f5ed;font-size:11px}.archive-layout{max-width:1020px;margin:0 auto;display:grid;grid-template-columns:137px minmax(0,794px);gap:25px;align-items:start}.paper-toc{position:sticky;top:24px;padding:7px 0;color:#8c806b}.paper-toc h2{font-family:"Songti SC","STSong",serif;font-size:16px;font-weight:600;border-bottom:1px solid #cfc6b7;margin-bottom:11px;padding-bottom:11px}.paper-toc>.btn{display:flex;justify-content:flex-start;border:0;border-radius:0;font-size:11px;min-height:31px;padding:6px 0;color:#8c806b;width:100%}.paper-toc>.btn:hover{color:#7c4138}.paper-tools{display:flex;flex-direction:column;align-items:flex-start;border-top:1px solid #d4cbbb;padding-top:12px;margin-top:15px;gap:4px}.paper-tools .btn{color:#8b7358;font-size:10px}.paper-toc>p{font-size:9px;line-height:2.1;color:#a79a85;margin-top:20px}
.paper-stack{min-width:0;display:flex;flex-direction:column;gap:25px}.archive-paper{background:#f7f1e2;color:#514b3f;font-family:"Songti SC","STSong","SimSun",serif;border:1px solid #d4c7b0;box-shadow:0 4px 15px #77684b0d;padding:25px 34px;position:relative;line-height:1.85;min-width:0}.archive-paper:before{content:"";position:absolute;inset:8px;border:1px solid #e4d9c4;pointer-events:none}.paper-running-head{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9b8b72;border-bottom:1px solid #bcb094;padding-bottom:9px;letter-spacing:.5px}.paper-title{position:relative;border-bottom:3px double #b6a686;padding:20px 0 18px;margin-bottom:15px}.paper-code{font-size:10px;color:#998b73}.paper-title h1{font-family:inherit;font-size:35px;color:#38352d;font-weight:700;letter-spacing:3px;margin:5px 0}.paper-title>p{font-size:12px;color:#8c7f68}.paper-stamp{position:absolute;right:3px;top:22px;border:2px solid #925747;color:#925747;transform:rotate(-7deg);padding:8px 11px;font-size:11px;line-height:1.6;letter-spacing:2px;text-align:center;opacity:.75}.paper-intro{font-size:11px;color:#8f816b;line-height:1.95;margin-bottom:21px}.paper-section{margin:21px 0 23px;scroll-margin-top:18px}.paper-section h2{font-family:inherit;font-size:17px;letter-spacing:1px;color:#514737;border-bottom:1px solid #c5b698;padding:0 0 6px;margin-bottom:12px}.paper-section h2>span{display:inline-block;min-width:28px;color:#8f7257;font-size:14px}.paper-section h3{font-family:inherit;font-size:12px;color:#766247;font-weight:700;margin:12px 0 6px}.paper-section p{font-size:12px;color:#726650;line-height:1.95}.paper-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 21px;margin:0 0 13px}.paper-facts>div{display:flex;align-items:baseline;gap:10px;border-bottom:1px dotted #d4c7af;padding:7px 0;font-size:10px}.paper-facts dt{color:#96876d;white-space:nowrap}.paper-facts dd{margin:0 0 0 auto;text-align:right;color:#67573f;line-height:1.8}.paper-columns{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin:8px 0 15px}.paper-columns p{font-size:11px}.paper-columns h3{margin-top:3px}.paper-table{width:100%;white-space:normal;border-top:1px solid #bba98b;border-bottom:1px solid #bba98b;font-size:10px;margin:10px 0 13px;color:#817056}.paper-table th,.paper-table td{font-family:inherit;border:0;border-bottom:1px solid #ddd1ba;background:transparent!important;padding:7px 8px;font-size:10px;line-height:1.8;vertical-align:top}.paper-table thead th{color:#766044;border-bottom:1px solid #bba98b;font-weight:600;background:#e9deca88!important}.paper-table tbody th{color:#756044;font-weight:500;white-space:nowrap}.paper-table tbody tr:hover{background:transparent}.paper-table td:last-child{color:#a08d70}.paper-table td small{display:block;font-size:8px;color:#b19d7f;margin-top:1px}.finance-ledger th{font-size:9px;white-space:nowrap}.finance-ledger td:nth-child(2),.finance-ledger td:nth-child(3),.finance-ledger td:nth-child(4){width:11%;color:#ac9c81;font-family:monospace}.paper-annotation{font-size:10px!important;color:#a18f72!important;margin-bottom:10px}.paper-marginalia{border-left:2px solid #a98763;padding:6px 12px;background:#ede2cb66;margin:15px 0}.paper-marginalia b{font-size:11px;color:#8e7253}.paper-marginalia p{font-size:10px;margin-top:4px;line-height:1.9;color:#9e8766}.paper-note{border:1px solid #d3c2a3;padding:10px 14px;margin-bottom:15px;background:#f4ead666}.paper-note h3{margin-top:0}.paper-note p{font-size:11px;white-space:pre-wrap}.archive-paper .table-link,.archive-paper .text-button{color:#967152;font-family:inherit;font-size:9px}.paper-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.paper-actions .btn{background:transparent;border-color:#cbb99b;color:#977655;font-family:inherit;font-size:10px}.paper-footer{display:flex;justify-content:space-between;font-size:9px;color:#b1a082;border-top:1px solid #c1b294;padding-top:10px;margin-top:22px}.archive-paper .document-list{padding:0}.archive-paper .document-row{border-color:#ded1ba;padding:11px 0}.archive-paper .document-row strong{font-family:inherit;color:#927455;font-size:11px}.archive-paper .document-row small{color:#b09a7a;font-size:9px}.archive-paper .document-icon{color:#b39874}.archive-paper .tag{background:#e9ddc6;color:#a18b69;font-family:inherit;font-size:8px}.archive-paper .document-row>svg{color:#b39e7e}.archive-attachments .panel{background:transparent;border:0;box-shadow:none}.archive-attachments .panel-head{padding-left:0;padding-right:0}.archive-attachments .notice{background:#efe4ce;color:#a18a68;font-family:inherit}.archive-attachments .panel h2{font-family:inherit;color:#7f6648}.archive-attachments .panel .muted{color:#b19a78}.archive-attachments .file-notice{margin-left:0;margin-right:0}.archive-attachments td,.archive-attachments th{background:transparent;color:#9c8260;border-color:#d7c6a9;font-family:inherit}.archive-attachments .research-empty{padding-left:0;padding-right:0}
/* New API 配置不采集密钥，场景路由实时显示有效模型。 */
.ai-provider-panel{margin-bottom:21px}.ai-provider-body{padding:0 22px 20px}.provider-identity{display:flex;gap:13px;align-items:center;padding:9px 0 22px;color:#8aa6c3}.provider-identity>span{display:flex;width:47px;height:47px;align-items:center;justify-content:center;background:#f0f5fa;border:1px solid #e5edf5;border-radius:7px}.provider-identity h3{font-size:17px;color:#567b9f;font-weight:500}.provider-identity p{font-size:10px;color:#a0b2c4;margin-top:3px}.ai-provider-body label{font-size:11px;color:#8da3b9}.ai-provider-body input,.ai-provider-body textarea{font-size:12px;color:#5d7e9f}.ai-provider-body>.form-grid{margin-bottom:16px}.ai-provider-body>.form-grid:last-of-type{margin-bottom:0}.ai-provider-body input:disabled{background:#f5f7fa;color:#b7c1cb}.ai-key-note{font-size:9px;display:block;color:#aab9c8;margin-top:8px;line-height:1.9}.routing-mode{display:flex;gap:35px;padding:0 22px 20px}.routing-mode label{display:flex;align-items:center;gap:9px;font-size:11px;color:#6889a9;cursor:pointer}.routing-mode input{width:13px;height:13px;margin:0;accent-color:#3265a7}.routing-mode span{font-size:9px;color:#a6b7c9}.routing-table{font-size:11px}.routing-table th{font-size:9px;padding:12px 16px}.routing-table td{padding:16px;vertical-align:middle}.routing-table td strong{font-size:11px;color:#6e8baa}.routing-table td small{font-size:9px;color:#a8bbcd;margin-top:5px}.routing-table .routing-role{font-size:10px;color:#8da5bc;white-space:normal;max-width:180px}.routing-table td>input[type="checkbox"]{width:14px;height:14px;accent-color:#3265a7}.routing-table td>input:not([type="checkbox"]){font-size:11px;min-width:145px;max-width:180px;padding:7px 9px}.routing-table td>input:read-only{background:#f6f8fb;color:#afbfce}.routing-table select{font-size:10px;width:105px;padding:7px 9px}.routing-table select:disabled{color:#acbdce;background:#f8fafc;cursor:default}.effective-model{font-size:11px;color:#6086ad;white-space:nowrap}.route-disabled{opacity:.5}.ai-config-footer{padding:19px 22px;display:flex;align-items:center;gap:10px}.ai-config-footer p{font-size:10px;color:#9bafc4;margin-right:auto;max-width:500px}.ai-config-footer .btn{font-size:11px;flex-shrink:0}.settings-tabs{gap:27px}
@media(min-width:1500px){.desk-mode .workbench-layout{grid-template-columns:165px minmax(0,1fr) 285px;gap:14px}.desk-mode .workbench-center{grid-template-rows:minmax(250px,1fr) 280px}.desk-mode .workbench-top{height:60px;min-height:60px}.morning-layout{grid-template-columns:minmax(0,1fr) 340px}.brief-columns p{font-size:12px}.feed-item h3{font-size:14px}.feed-item p{font-size:12px}.feed-item{padding:15px 22px 12px}}
@media(max-width:1150px){.desk-mode .workbench-top h1 span{display:none}.desk-mode .workbench-top>div:first-child{gap:13px}.desk-mode .workbench-layout{grid-template-columns:132px minmax(0,1fr) 237px;gap:9px}.desk-mode .watch-item{padding:12px 8px}.desk-mode .watch-item .num strong{font-size:11px}.desk-mode .workbench-top .btn{font-size:9px;padding:5px 7px}.desk-mode .workbench-top .heading-actions{gap:6px}.desk-mode .history-panel .tabs{gap:16px}.operation-head{gap:7px}.operation-head>span{display:none}.operation-legend{gap:8px}.operation-head>select{width:124px;font-size:8px}.operation-footer{flex-wrap:wrap;gap:1px;font-size:7px}.operation-footer strong{font-size:8px}.chart-unit-note{font-size:7px}.morning-layout{grid-template-columns:minmax(0,1fr) 277px;gap:15px}.morning-tools{gap:10px}.morning-tools>.tag{display:none}.brief-columns{gap:12px}.brief-columns>div{padding-right:11px}.brief-columns p{font-size:10px}.topic-item{padding:8px 6px}.topic-item strong{font-size:9px}.topic-item span{font-size:7px}.archive-layout{grid-template-columns:115px minmax(0,1fr);gap:20px}.archive-paper{padding:24px 28px}.paper-facts{gap:0 15px}.paper-facts>div{font-size:9px}.paper-table td,.paper-table th{font-size:9px}.paper-section p{font-size:11px}.paper-columns p{font-size:10px}.paper-stamp{font-size:10px}.settings-tabs{gap:22px}.settings-tabs>.btn{font-size:11px}.routing-table .routing-role{display:none}.routing-table th:nth-child(2){display:none}.routing-table td,.routing-table th{padding:12px}.routing-table td>input:not([type="checkbox"]){min-width:135px}.routing-mode{gap:20px}}
@media(max-width:860px){.desk-mode .workbench-layout{grid-template-columns:113px minmax(0,1fr) 212px}.desk-mode .watch-item{flex-direction:column;align-items:flex-start;gap:5px}.desk-mode .watch-item>span:last-child{display:flex;align-items:center;gap:9px}.desk-mode .watch-item small{font-size:7px}.desk-mode .watch-heading h2{font-size:10px}.desk-mode .watch-heading svg{display:none}.desk-mode .right-panel{grid-column:auto}.desk-mode .right-panel-content{padding:12px}.desk-mode .right-tabs{gap:3px;justify-content:space-around;padding:0 7px}.desk-mode .right-tabs>.btn{min-width:32px;font-size:10px}.desk-mode .right-panel-content .full{font-size:10px}.desk-mode .chart-toolbar .segmented .btn{padding:3px 6px;font-size:8px}.desk-mode .chart-toolbar{padding:6px;gap:1px}.desk-mode .chart-tool-actions .small-toggle{padding:3px 4px;font-size:7px}.desk-mode .chart-tool-actions .icon-button{min-width:22px;padding:3px}.desk-mode .history-panel .tabs{gap:13px;padding:0 9px}.desk-mode .history-panel .tabs>.btn{font-size:8px}.desk-mode .holding-main{font-size:24px}.operation-legend{font-size:7px;gap:6px}.operation-head>select{width:112px;font-size:7px}.operation-head .segmented .btn{font-size:7px;padding:3px 5px}.warehouse-strip{grid-template-columns:62px minmax(0,1fr)}.warehouse-strip>span{font-size:7px}.operation-footer strong{font-size:7px}.morning-layout{grid-template-columns:minmax(0,1fr) 246px;gap:14px}.news-toolbar{padding:14px}.news-toolbar .search-field{width:150px}.news-filters{gap:13px;padding-left:14px;padding-right:14px}.news-filters .btn{font-size:9px}.feed-item{padding:12px 14px 10px}.feed-item h3{font-size:12px}.feed-item p{font-size:10px}.topic-strip{grid-template-columns:repeat(3,1fr)}.topic-item span{display:none}.hot-stock-list{padding-left:15px;padding-right:15px}.hot-stock-list p{font-size:9px}.brief-columns{grid-template-columns:1fr 1fr;gap:12px 18px}.brief-columns>div:nth-child(2){border:0}.brief-columns p{font-size:10px}.archive-layout{grid-template-columns:1fr;max-width:794px}.paper-toc{display:none}.archive-reader-toolbar select{width:145px}.archive-reader-toolbar>div>span{font-size:9px}.routing-mode{gap:18px;flex-wrap:wrap}.routing-mode span{font-size:8px}.ai-config-footer{flex-wrap:wrap}.ai-config-footer p{max-width:none;width:100%}.ai-config-footer .btn:first-of-type{margin-left:auto}}
@media(max-width:640px){.morning-heading{margin-bottom:15px;align-items:flex-start;gap:12px}.morning-heading h1{font-size:24px}.morning-date{font-size:9px}.morning-heading p{font-size:10px;max-width:220px}.morning-tools>.btn{font-size:9px;padding:6px 9px}.morning-tools>.btn svg{display:none}.brief-masthead{padding:9px 14px}.brief-masthead h2{font-size:14px}.brief-columns{padding:12px 14px;gap:12px 15px}.brief-columns b{font-size:11px}.brief-columns p{font-size:10px}.brief-note{font-size:8px;padding:0 14px 12px}.morning-layout{grid-template-columns:1fr;gap:16px}.topic-strip{grid-template-columns:repeat(5,1fr);gap:4px;padding:0 9px 11px}.topic-item{padding:8px 5px}.topic-item strong{font-size:8px}.topic-panel .panel-head .muted{display:none}.news-toolbar h2{font-size:14px}.news-toolbar .search-field{width:160px}.news-filters{gap:19px}.news-filters .btn{font-size:10px}.feed-item{padding:13px 14px 11px}.feed-meta{font-size:8px;gap:8px}.feed-item h3{font-size:13px;line-height:1.8}.feed-item p{-webkit-line-clamp:2;font-size:11px}.feed-bottom{font-size:8px;gap:13px}.feed-bottom .btn{font-size:9px}.morning-aside{display:grid;grid-template-columns:1fr;gap:15px}.morning-calendar .event-item strong{font-size:11px}.hot-stock-list p{font-size:11px}.hot-stock-list strong{font-size:13px}.hot-stock-list .table-link{font-size:10px}.account-section .equity-panel .curve{height:185px}.account-section .overview-grid{gap:15px}.current-positions td,.current-positions th{padding:11px 14px}
.desk-mode #page-content{height:auto;min-height:100dvh;overflow:visible;padding:12px}.desk-mode .workbench-top{height:auto;min-height:0;flex-wrap:wrap;gap:12px;margin-bottom:13px}.desk-mode .workbench-top>div:first-child{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.desk-mode .workbench-top h1{font-size:23px}.desk-mode .workbench-top h1 span{display:none}.desk-mode .quote-line{gap:8px}.desk-mode .quote-line>strong{font-size:24px}.desk-mode .quote-line>.tag{font-size:7px}.desk-mode .workbench-top .heading-actions{width:100%;gap:7px}.desk-mode .workbench-top .btn{font-size:10px;min-height:30px}.desk-mode .workbench-top .heading-actions:before{content:"";width:0}.desk-mode .workbench-layout{display:grid;grid-template-columns:1fr;overflow:visible;gap:12px}.desk-mode .watchlist{height:auto;padding:0}.desk-mode .watch-item{flex-direction:row;align-items:center;padding:10px;gap:9px}.desk-mode .watch-item>span:last-child{display:block}.desk-mode .watch-item small{font-size:8px}.desk-mode .workbench-center{display:grid;grid-template-rows:430px auto;gap:12px}.desk-mode .chart-toolbar .segmented .btn{font-size:9px;padding:4px 8px}.desk-mode .chart-tool-actions .small-toggle{font-size:8px}.desk-mode .chart-panel{min-height:430px}.desk-mode .price-chart{flex:1;height:auto}.desk-mode .history-panel{min-height:270px}.desk-mode .history-panel .tabs{gap:15px;justify-content:space-between;padding:0 12px}.desk-mode .history-panel .tabs>.btn{font-size:9px;min-height:36px}.desk-mode .history-content{padding:8px 11px;overflow:visible}.desk-mode .right-panel{height:auto;min-height:0;grid-column:1}.desk-mode .right-tabs{gap:13px;justify-content:space-around}.desk-mode .right-tabs>.btn{min-height:41px;font-size:12px}.desk-mode .right-panel-content{padding:17px;overflow:visible}.desk-mode .right-panel form label{font-size:10px}.desk-mode .right-panel form input,.desk-mode .right-panel form select{font-size:12px;padding:9px}.desk-mode .right-panel-content .full{font-size:12px}.operation-head{flex-wrap:wrap;gap:6px}.operation-head>span{display:none}.operation-legend{font-size:7px;gap:8px}.operation-head>select{font-size:8px;width:128px;margin-left:auto}.operation-plot{height:142px}.operation-footer{font-size:7px;flex-direction:column;align-items:flex-start;gap:3px}.operation-footer strong{font-size:8px}.warehouse-strip{grid-template-columns:66px minmax(0,1fr)}.warehouse-strip .operation-plot{height:52px}.chart-unit-note{font-size:7px}.operation-head .segmented{margin-left:auto}.operation-head .segmented .btn{font-size:8px}.simulation-empty{padding:30px 12px;gap:15px}.simulation-empty p{font-size:10px}.sim-key-results b{font-size:14px}.sim-key-results>div>span{font-size:10px}
.archive-mode #page-content{padding:16px 11px 25px}.archive-reader-toolbar{flex-wrap:wrap;gap:9px;margin-bottom:16px}.archive-reader-toolbar>div:first-child{width:100%}.archive-reader-toolbar h1{font-size:21px}.archive-reader-toolbar select{width:auto;max-width:180px;font-size:10px;flex:1}.archive-reader-toolbar>.btn{font-size:10px}.paper-stack{gap:17px}.archive-paper{padding:19px 21px}.archive-paper:before{inset:6px}.paper-running-head{font-size:7px;letter-spacing:0;padding-bottom:7px}.paper-title{padding:17px 0 14px}.paper-title h1{font-size:30px;letter-spacing:2px}.paper-title>p{font-size:10px}.paper-code{font-size:8px}.paper-stamp{font-size:8px;letter-spacing:1px;padding:7px;right:0;top:24px}.paper-intro{font-size:10px;line-height:1.9}.paper-section{margin:18px 0 21px}.paper-section h2{font-size:15px;margin-bottom:10px}.paper-section h2>span{font-size:13px;min-width:24px}.paper-section h3{font-size:11px}.paper-section p{font-size:11px;line-height:2}.paper-facts{grid-template-columns:1fr;gap:0}.paper-facts>div{font-size:10px;padding:6px 0}.paper-columns{grid-template-columns:1fr;gap:12px}.paper-columns p{font-size:11px}.paper-table th,.paper-table td{font-size:9px;padding:6px 5px}.paper-table tbody th{white-space:normal;min-width:49px}.finance-ledger th{font-size:8px}.finance-ledger td{font-size:8px}.finance-ledger td small{font-size:7px}.paper-annotation{font-size:9px!important}.paper-marginalia p{font-size:10px}.paper-actions{gap:7px}.paper-actions .btn{font-size:9px;padding:6px 9px}.paper-footer{font-size:7px;gap:12px}.archive-paper .document-row{gap:7px}.archive-paper .document-icon{width:21px}.archive-paper .document-row strong{font-size:10px}.archive-paper .document-row .tag{font-size:7px}.archive-paper .document-row small{font-size:8px}
.ai-provider-body{padding:0 16px 16px}.provider-identity{padding:3px 0 20px}.provider-identity h3{font-size:16px}.provider-identity p{font-size:9px}.ai-provider-body>.form-grid{grid-template-columns:1fr;gap:14px}.ai-provider-body label{font-size:10px}.ai-provider-body input,.ai-provider-body textarea{font-size:12px}.ai-key-note{font-size:9px}.routing-mode{padding:0 16px 16px;gap:14px;flex-direction:column}.routing-mode label{font-size:11px}.routing-mode span{font-size:9px}.routing-table td,.routing-table th{padding:11px 12px}.routing-table td strong{font-size:11px}.routing-table td small{font-size:8px}.routing-table td>input:not([type="checkbox"]){font-size:11px;min-width:135px}.ai-config-footer{padding:16px}.ai-config-footer p{font-size:10px;margin-bottom:5px}.ai-config-footer .btn{font-size:11px}.settings-tabs{gap:23px}}
@media(min-width:641px) and (max-height:720px){.desk-mode .workbench-center{grid-template-rows:minmax(210px,1fr) 238px}.desk-mode .workbench-top{min-height:44px;height:44px;margin-bottom:7px}.desk-mode .history-content{padding-top:3px;padding-bottom:3px}.operation-plot{height:112px}.warehouse-strip .operation-plot{height:36px}.chart-unit-note{display:none}.operation-footer>span{display:none}}
@media print{@page{size:A4;margin:12mm}.sidebar,.topbar,.demo-banner,.app-footer,.archive-reader-toolbar,.paper-toc,.paper-actions,.archive-paper button{display:none!important}.main-shell{margin:0!important;background:#fff!important}#page-content{padding:0!important}.archive-layout{display:block;max-width:none}.paper-stack{display:block}.archive-paper{box-shadow:none;border:0;background:#fff;page-break-after:always;padding:0;break-inside:avoid}.archive-paper:before{display:none}.archive-paper:last-child{page-break-after:auto}}

/* 关注、公司判断与日期记录：延续研究桌面，而非新增展示型卡片。 */
.desk-mode .workbench-layout{grid-template-columns:244px minmax(0,1fr) 260px}
.desk-mode .organized-watch{display:flex;flex-direction:column;padding:0;overflow:hidden}
.organized-watch .watch-heading{display:flex;padding:10px 12px 7px;flex-shrink:0}
.organized-watch .watch-heading h2{font-size:12px}.organized-watch .watch-heading .icon-button{min-height:25px;min-width:25px;padding:4px}
.watch-group-toolbar{display:flex;align-items:center;gap:3px;padding:0 9px 8px}.watch-group-toolbar select{padding:6px 7px;font-size:10px;min-width:0;flex:1}.watch-group-toolbar .icon-button{padding:5px;min-width:26px}
.organized-watch>.search-field{margin:0 10px 7px}.organized-watch .search-field input{font-size:10px;padding:6px 0}
.watch-summary{font-size:9px;color:#8293a4;padding:0 12px 9px;display:flex;gap:9px;flex-wrap:wrap}
.organized-watch .watch-columns{display:grid;grid-template-columns:1fr 54px 54px;gap:3px;padding:0 10px 6px 23px;font-size:8px}.organized-watch .watch-columns>span:last-child{text-align:right}
.organized-watch #watch-items{display:block;overflow:auto;flex:1;min-height:0}
.watch-row{display:flex;align-items:stretch;position:relative;border-left:2px solid transparent}.watch-row.selected{background:#eff4fb;border-left-color:#3265a7}
.watch-grip{padding:0;width:15px;flex:0 0 15px;cursor:grab;color:#a7b3c1;font-size:15px;background:transparent;border:0;min-height:54px}.watch-grip:active{cursor:grabbing}.watch-grip:focus-visible{outline:2px solid #3265a7;outline-offset:-2px}
.desk-mode .organized-watch .watch-item{display:grid;grid-template-columns:minmax(0,1fr) 54px 54px;align-items:center;gap:3px;padding:10px 9px 10px 2px;border:0;min-width:0;background:transparent;flex:1;text-align:left}
.organized-watch .watch-item:hover{background:#f5f8fc}.organized-watch .watch-item .watch-identity{display:block;min-width:0}.organized-watch .watch-item .watch-identity strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.organized-watch .watch-item .watch-identity small{font-size:8px;white-space:nowrap}
.organized-watch .watch-item .watch-quote{display:block;text-align:right}.organized-watch .watch-item .watch-quote strong{font-size:11px}.organized-watch .watch-quote small{font-size:9px}.watch-spark{display:block;width:54px;height:28px}
.organized-watch .watch-bottom{position:static;flex-shrink:0;padding:8px 10px;border-top:1px solid #edf1f5;display:flex;flex-direction:column;align-items:flex-start;gap:2px}.organized-watch .watch-bottom .btn{font-size:10px;padding:2px}.organized-watch .watch-bottom>span{font-size:8px;color:#8c9eaf}
.watch-empty{padding:30px 12px;text-align:center;font-size:11px;color:#8494a5;line-height:2}.watch-row.dragging{opacity:.45}.watch-row.drop-before:before,.watch-row.drop-after:after{content:"";height:2px;background:#3265a7;position:absolute;left:0;right:0;z-index:2}.watch-row.drop-before:before{top:0}.watch-row.drop-after:after{bottom:0}
.company-conviction{border:1px solid #b8a88c;border-left:3px solid #7c4138;background:#eee4ce;padding:13px 16px;margin:17px 0 12px}.conviction-label{display:flex;align-items:center;justify-content:space-between;gap:15px}.conviction-label>span{font-size:13px;font-weight:700;letter-spacing:1px;color:#7c4138}.conviction-label .btn{font-family:inherit;font-size:10px;color:#7c4138;padding:0}.company-conviction>p{font-size:14px;line-height:1.85;color:#343129;margin:7px 0 10px;overflow-wrap:anywhere}.conviction-tags{display:flex;flex-wrap:wrap;gap:6px}.conviction-tags>span{border:1px solid #af9474;color:#6b493a;padding:2px 8px;font-size:10px;background:#f7efdf}.conviction-tags .unmarked{border-style:dashed;color:#8c8069}.company-conviction>small{display:block;font-size:9px;color:#8c8069;margin-top:10px}.paper-quick-actions{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}.paper-quick-actions .btn{font-family:inherit;font-size:10px;border-radius:2px;min-height:29px;padding:4px 9px}
.archive-create{max-width:794px;margin:0 auto}.archive-editor-heading{display:flex;justify-content:space-between;align-items:center;margin:5px 0 20px;gap:15px}.archive-editor-heading h1{font-size:23px;margin:5px 0}.archive-editor-heading p{font-size:12px;color:#7c8997}.archive-editor-heading .chapter{color:#8c8069}.archive-create .archive-paper{width:100%;box-sizing:border-box}.archive-create label{display:block;font-size:12px;color:#635744;margin:0 0 15px}.archive-create label>input,.archive-create label>select,.archive-create label>textarea{font-family:inherit;font-size:13px;margin-top:6px;background:#fffaf0;border-color:#c6b99e;border-radius:2px}.archive-create .company-conviction label{font-weight:600}.conviction-editor label>span{font-size:10px;font-weight:400;color:#8c8069}.tag-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 3px}.tag-suggestions .btn{border:1px solid #c6b99e;color:#7c4138;font-size:10px;padding:3px 8px;min-height:25px;background:#f7f1e2;border-radius:2px}.editor-section-title{font-size:15px;font-weight:600;padding:11px 0 8px;border-bottom:1px solid #c6b99e;margin:12px 0 15px}.editor-section-title small{font-size:10px;font-weight:400;color:#8c8069;margin-left:8px}.group-checkboxes{display:flex;flex-wrap:wrap;gap:10px 17px;margin:12px 0 21px}.group-checkboxes label{display:flex;align-items:center;gap:7px;font-size:12px;margin:0}.group-checkboxes input{width:14px;height:14px;margin:0;accent-color:#3265a7}.editor-demo-price{display:flex;align-items:center;gap:20px;padding:16px;background:#f0e9da;border:1px dashed #c6b99e;margin-top:25px}.editor-demo-price>label{min-width:125px;max-width:160px;margin:0}.editor-demo-price>p{font-size:11px;color:#8c8069;line-height:1.9}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:27px}.editor-footer>span{font-size:10px;color:#8c8069}.group-edit-list>div{display:flex;gap:9px;align-items:center;margin:10px 0}.group-edit-list input{flex:1;min-width:0}.group-edit-list span{font-size:11px;color:#8d9aaa;white-space:nowrap}.group-edit-list{margin-bottom:23px}
.latest-stock-note{border-left:2px solid #ccd9e8;padding:0 0 0 9px}.latest-stock-note>small{font-size:9px;color:#8396ac}.latest-stock-note>p{font-size:10px;line-height:1.8;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.journal-toolbar{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;border-bottom:1px solid #e4eaf1;padding-bottom:13px}.journal-toolbar label{font-size:10px}.journal-toolbar input{min-width:0}.journal-entry{padding:17px 3px;border-bottom:1px solid #e4eaf1}.journal-entry>div{display:flex;align-items:center;gap:13px}.journal-entry time{font:12px ui-monospace,monospace;color:#3265a7}.journal-entry>div>span{font-size:10px;padding:2px 6px;background:#eef3f8;color:#6c8095}.journal-entry p{font-size:12px;line-height:1.9;margin:9px 0;overflow-wrap:anywhere}.journal-entry>small{font-size:9px;color:#9ba8b7}
@media(min-width:1500px){.desk-mode .workbench-layout{grid-template-columns:264px minmax(0,1fr) 285px}}
@media(min-width:641px) and (max-width:1150px){.desk-mode .workbench-layout{grid-template-columns:221px minmax(0,1fr) 225px;gap:8px}.desk-mode .organized-watch .watch-item{grid-template-columns:minmax(0,1fr) 46px 51px;padding-right:7px}.organized-watch .watch-columns{grid-template-columns:1fr 46px 51px}.watch-spark{width:46px}.organized-watch .watch-item .watch-identity strong{font-size:10px}.watch-summary{gap:7px;font-size:8px}.organized-watch .watch-group-toolbar select{font-size:9px}}
@media(min-width:641px) and (max-width:900px){.desk-mode .workbench-layout{grid-template-columns:207px minmax(0,1fr)}.desk-mode .right-panel{grid-column:1 / -1;height:auto;max-height:350px;min-height:200px}.desk-mode #page-content{overflow:auto}.desk-mode .workbench-layout{overflow:visible}.desk-mode .organized-watch{height:660px}.desk-mode .workbench-center{height:660px}}
@media(max-width:640px){.desk-mode .workbench-layout{grid-template-columns:1fr}.desk-mode .organized-watch{height:285px;min-height:0;max-height:320px}.organized-watch .watch-heading{padding:8px 11px 5px}.watch-group-toolbar{padding-bottom:5px}.organized-watch>.search-field{margin-bottom:5px}.watch-summary{display:none}.organized-watch .watch-columns{grid-template-columns:1fr 60px 73px}.desk-mode .organized-watch .watch-item{grid-template-columns:minmax(0,1fr) 60px 73px;padding:6px 11px 6px 5px;min-width:0}.watch-grip{min-height:47px;width:22px;flex-basis:22px}.organized-watch .watch-item .watch-identity strong{font-size:12px}.organized-watch .watch-item .watch-quote strong{font-size:12px}.watch-spark{width:60px}.organized-watch .watch-bottom{padding:3px 10px;flex-direction:row;justify-content:space-between;align-items:center}.archive-editor-heading{align-items:flex-start}.archive-editor-heading h1{font-size:22px}.archive-editor-heading p{font-size:10px}.archive-editor-heading .btn{font-size:10px;white-space:nowrap}.archive-create .archive-paper{padding:20px 17px}.archive-create .form-grid{grid-template-columns:1fr}.archive-create .company-conviction{padding:12px}.editor-demo-price{display:block}.editor-demo-price p{margin-top:12px}.editor-footer{align-items:flex-start;flex-direction:column}.editor-footer .btn{width:100%}.journal-toolbar{grid-template-columns:1fr 1fr}.journal-toolbar>label:last-child{grid-column:1 / -1}.company-conviction{padding:12px}.conviction-label{gap:10px}.conviction-label>span{font-size:12px}.company-conviction>p{font-size:13px}}
.watch-grip{touch-action:none;user-select:none;-webkit-user-select:none}

/* AI解读：把视口交给正文与输入，不复用全局大页头。 */
.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}
.chat-mode .demo-banner,.chat-mode .topbar,.chat-mode .app-footer{display:none}
.chat-mode .main-shell{height:100dvh;min-height:0;overflow:hidden}.chat-mode #page-content{padding:0;height:100dvh;min-height:0;overflow:hidden}
.chat-workspace{height:100%;display:grid;grid-template-columns:225px minmax(0,1fr);min-width:0;background:#fff;position:relative}
.chat-history{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #e1e7ef;background:#f7f9fc}
.chat-history-heading{height:58px;flex-shrink:0;display:flex;align-items:center;gap:7px;padding:0 15px}.chat-history-heading h2{font-size:14px;flex:1;letter-spacing:0}.chat-history-heading .icon-button{min-width:27px;min-height:27px;padding:4px}.chat-mobile-close{display:none}
.chat-history-search{display:flex;align-items:center;gap:6px;margin:0 12px 12px;padding:0 9px;background:#fff;border:1px solid #e0e7ef;border-radius:4px;color:#8292a4}.chat-history-search input{padding:7px 0;background:transparent;border:0;box-shadow:none;margin:0;font-size:11px}
.chat-history-list{min-height:0;flex:1;overflow:auto;padding:0 7px 15px}.chat-history-item{padding:11px 10px;display:block;width:100%;text-align:left;border-radius:4px;margin:2px 0;border:1px solid transparent}.chat-history-item:hover{background:#eef3f9}.chat-history-item.selected{background:#e9f0fa;border-color:#d4e1f1}.chat-history-item strong{display:block;font-size:12px;font-weight:500;color:#3c5673;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-history-item p{font-size:10px;line-height:1.6;color:#8798aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0}.chat-history-item small{display:flex;justify-content:space-between;font-size:9px;color:#9aa7b7}.chat-history-foot{padding:12px 11px;border-top:1px solid #e1e7ef;color:#8a9aaa;font-size:9px;display:flex;align-items:center;gap:5px;flex-shrink:0}.chat-history-empty{padding:30px 12px;color:#8c9aab;font-size:11px;text-align:center;line-height:1.9}
.chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff}.chat-header{height:58px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding:0 16px;gap:15px}.chat-header-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.chat-header-title>div{min-width:0}.chat-header-title h1{font-size:14px;letter-spacing:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.6}.chat-header-title>div>span{font-size:10px;color:#8a9aaa;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.chat-model-button{font-size:10px;color:#597899;min-height:27px;padding:3px 7px;background:#f4f7fb}.chat-model-button>span{font-size:9px;color:#94a5b7;border-left:1px solid #d9e3ee;padding-left:6px}.chat-header .icon-button{min-width:27px;min-height:27px;padding:4px}.chat-history-shade{display:none}
.chat-stream{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-stream:focus-visible{outline-offset:-3px}.chat-reading-column{max-width:836px;padding:26px 32px 24px;margin:0 auto}
.chat-message{margin:0 0 30px;min-width:0}.chat-message-byline{display:flex;align-items:center;gap:9px;margin-bottom:10px}.chat-avatar{width:24px;height:24px;border:1px solid #dce5f0;border-radius:4px;background:#f0f5fc;display:inline-flex;align-items:center;justify-content:center;color:#3265a7;font-size:10px;flex-shrink:0}.chat-message-byline>strong{font-size:12px;font-weight:500}.chat-message-byline time{font-size:9px;color:#8c9bad}.reply-mode{font-size:9px;color:#9ca9b8;margin-left:auto}.user-message .chat-message-byline{justify-content:flex-end}.user-message .chat-avatar{order:3;background:#f2f4f7;color:#6f8197;border-color:#e5e9ef}.user-message .chat-message-content{max-width:85%;margin-left:auto;border-radius:6px;background:#edf3fb;padding:13px 17px}.user-prose{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;color:#334f6b}.chat-message-tools{display:flex;gap:18px;margin:9px 0 0 33px}.chat-message-tools .btn{font-size:10px;color:#8a9db3;min-height:22px;padding:0}.user-message .chat-message-tools{justify-content:flex-end;margin-left:0}
.chat-prose{font-size:14px;line-height:1.95;color:#344a60;overflow-wrap:anywhere}.chat-prose p{line-height:1.95;margin:9px 0 15px}.chat-prose h2{font-size:20px;line-height:1.65;letter-spacing:0;color:#233f5c;margin:6px 0 16px;font-weight:600}.chat-prose h3{font-size:16px;line-height:1.7;color:#294b6d;margin:24px 0 10px;font-weight:600}.chat-prose h4{font-size:14px;color:#345b81;margin:18px 0 9px}.chat-prose strong{font-weight:600;color:#263f58}.chat-prose ul,.chat-prose ol{padding-left:23px;margin:9px 0 18px}.chat-prose li{padding-left:3px;margin:7px 0;line-height:1.9}.chat-prose blockquote{border-left:3px solid #c7d6e6;background:#f6f8fb;padding:10px 16px;margin:20px 0;color:#6c8196;line-height:1.9;font-size:13px}.chat-prose a{color:#3265a7;text-decoration:underline;text-underline-offset:3px}.chat-prose code{font-size:.9em;background:#eff3f8;color:#4d6684;border-radius:3px;padding:2px 5px}.chat-prose hr{border:0;border-top:1px solid #e5ebf2;margin:24px 0}.chat-table-wrap{max-width:100%;overflow:auto;margin:15px 0 22px;border:1px solid #dce5ef;border-radius:4px}.chat-prose table{white-space:normal;min-width:360px;font-size:12px}.chat-prose th{background:#f2f6fb;color:#4a6582;font-size:12px;font-weight:500;padding:10px 13px;border:0;border-bottom:1px solid #dce5ef}.chat-prose td{padding:10px 13px;border-color:#e8edf4;line-height:1.8;min-width:110px;vertical-align:top}.chat-prose tbody tr:hover{background:#fafcfe}.chat-code{border:1px solid #dce5ef;border-radius:4px;overflow:hidden;margin:16px 0 22px;background:#f6f8fb}.chat-code>span{display:block;font-size:10px;color:#8195aa;padding:6px 13px;border-bottom:1px solid #e2e9f1}.chat-code pre{margin:0;padding:14px 16px;overflow:auto;font-size:12px;line-height:1.8}.chat-code code{background:none;padding:0;color:#3b5673;border:0}
.message-quote,.composer-quote{border-left:2px solid #b4c8e0;padding:9px 12px;background:#f6f8fc;margin:0 0 12px;color:#7b8fa6;font-size:11px;min-width:0}.message-quote>div,.composer-quote>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center}.message-quote>div>span,.composer-quote>div>span{display:flex;align-items:center;gap:5px;font-size:10px}.message-quote details{margin-top:6px}.message-quote summary{cursor:pointer;font-size:10px;color:#8299b1}.message-quote blockquote{font-size:11px;line-height:1.8;white-space:pre-wrap;max-height:220px;overflow:auto;overflow-wrap:anywhere;margin:8px 0 0;padding:0;border:0;color:#6b8199}.composer-quote>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#607b99;margin:5px 0}.composer-quote .icon-button{padding:2px;min-height:22px;min-width:22px}.composer-quote .quote-links{display:flex;justify-content:space-between;align-items:center;color:#96a6b8;font-size:9px}.quote-links .btn{font-size:9px;min-height:20px}
.chat-composer-wrap{flex-shrink:0;padding:9px 28px 9px;background:#fff}.chat-composer{border:1px solid #ccd9e8;border-radius:6px;padding:10px 13px 9px;max-width:800px;margin:0 auto;box-shadow:0 2px 10px #172a3a04}.chat-composer:focus-within{border-color:#93afcf}.chat-composer textarea{display:block;border:0;box-shadow:none;margin:0;padding:3px 0 8px;resize:none;min-height:58px;max-height:150px;font-size:13px;line-height:1.75}.chat-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px}.chat-composer-bottom>span{font-size:9px;color:#8a9db3}.chat-composer-bottom>.btn{min-height:29px;padding:4px 12px;font-size:11px}.chat-composer-note{font-size:9px;text-align:center;color:#9babbb;margin-top:6px}.chat-composer #chat-draft-quote:empty{display:none}.chat-composer .composer-quote{margin:0 0 7px;padding:7px 10px}
.chat-empty{max-width:570px;padding:48px 0 15px}.chat-empty>span{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;background:#edf3fb;color:#688fb9;border-radius:7px}.chat-empty h2{font-size:21px;line-height:1.6;margin:17px 0 11px;font-weight:500;color:#3e5d7c}.chat-empty>p{font-size:13px;color:#8195aa;line-height:1.9}.chat-starter-questions{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:23px 0}.chat-starter-questions .btn{font-size:12px;border:1px solid #e0e8f2;padding:7px 12px;min-height:34px;background:#fbfcfe;color:#6e89a5}.chat-empty>small{display:block;font-size:10px;color:#9babbc;line-height:1.8}
.chat-workspace.chat-history-collapsed{grid-template-columns:1fr}.chat-history-collapsed .chat-history{display:none}
.chat-settings-panel{max-width:1000px}.chat-settings-body{padding:0 24px 23px}.chat-settings-model{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 15px;background:#f5f8fc;border:1px solid #e1e8f1;border-radius:4px;margin-bottom:22px}.chat-settings-model span{font-size:10px;color:#8397ac;display:block}.chat-settings-model strong{font-size:15px;color:#46678c;display:block;margin:3px 0}.chat-settings-model small{font-size:10px;color:#90a1b3}.chat-settings-model .btn{font-size:11px}.chat-settings-body>label{margin:18px 0 15px}.chat-settings-body>label>textarea{font-size:13px;line-height:1.9;padding:13px 15px}.chat-settings-body .muted{font-size:10px}.chat-settings-note{font-size:11px;color:#8a9cb0;line-height:1.85;margin:0 0 23px}.chat-settings-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}.chat-settings-actions .btn{font-size:11px}.chat-context-details{border-bottom:1px solid #e2e9f1;padding:11px 0}.chat-context-details summary{font-size:12px;color:#5e7c9e;cursor:pointer}.chat-context-details p{white-space:pre-wrap;font-size:12px;margin-top:9px;line-height:1.9;overflow-wrap:anywhere}.chat-context-details ol{padding-left:21px;font-size:11px;color:#71869d;line-height:1.9;overflow-wrap:anywhere}.chat-context-details li{margin:9px 0}.chat-source-full{white-space:pre-wrap;line-height:1.95;font-size:13px;overflow-wrap:anywhere}
.text-ai-toolbar{position:fixed;z-index:55;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #cddbea;padding:5px 8px 5px 5px;border-radius:5px;box-shadow:0 5px 18px #172a3a20;max-width:calc(100vw - 16px)}.text-ai-toolbar .btn{font-size:11px;min-height:29px;padding:4px 8px}.text-ai-toolbar>span{font-size:9px;color:#91a1b2;white-space:nowrap}
.workbench-ai-hint{min-width:215px;max-width:350px;flex:1;padding:3px 11px;border-left:2px solid #bfd0e6;text-align:left;line-height:1.6;color:#617f9f;white-space:nowrap;overflow:hidden}.workbench-ai-hint>span{display:flex;gap:5px;align-items:center;font-size:10px;color:#52789f}.workbench-ai-hint>span>small{font-size:8px;color:#94a7bd}.workbench-ai-hint>strong{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:400;color:#8b9db1;line-height:1.7}.workbench-ai-hint b{font-size:11px;color:#607fa2;font-weight:500}.workbench-ai-hint i{display:block;width:1px;height:9px;background:#d8e2ee;margin:0 3px}.workbench-ai-hint>small{font-size:8px;color:#9bacbe;display:block;overflow:hidden;text-overflow:ellipsis}.workbench-ai-hint:hover{background:#edf3fa;border-left-color:#3265a7}
.desk-mode .workbench-top{gap:14px}.desk-mode .workbench-top>div:first-child{gap:12px}.desk-mode .workbench-top .heading-actions{flex-shrink:0}
@media(max-width:1300px) and (min-width:701px){.chat-workspace{grid-template-columns:207px minmax(0,1fr)}.chat-header{padding:0 12px;gap:8px}.chat-header-actions{gap:4px}.chat-model-button{max-width:140px;overflow:hidden;text-overflow:ellipsis}.chat-reading-column{padding:24px 24px 20px}.desk-mode .workbench-top h1 span{display:none}.desk-mode .workbench-top>div:first-child{gap:10px}.desk-mode .workbench-top .quote-line{gap:6px}.desk-mode .workbench-top .quote-line>.tag{display:none}.workbench-ai-hint{min-width:211px;padding-left:9px}.desk-mode .workbench-top h1{font-size:19px}.desk-mode .quote-line>strong{font-size:23px}}
@media(max-width:1050px) and (min-width:701px){.settings-tabs{gap:17px}.settings-tabs>.btn{font-size:10px}.chat-header-title h1{font-size:13px}.chat-header-title>div>span{font-size:9px}.chat-header-actions{gap:2px}.chat-header-actions .icon-button{min-width:24px}.chat-model-button{font-size:9px;padding:3px 5px}.chat-reading-column{padding:20px 20px}.workbench-ai-hint{min-width:196px}.workbench-ai-hint>strong{font-size:8px;gap:4px}.workbench-ai-hint b{font-size:10px}.workbench-ai-hint>span{font-size:9px}.desk-mode .workbench-top{gap:9px}}
@media(max-width:850px) and (min-width:701px){.desk-mode .workbench-top{flex-wrap:wrap;height:auto;min-height:76px}.desk-mode .workbench-top>div:first-child{flex:1}.desk-mode .workbench-top .heading-actions{order:2}.workbench-ai-hint{order:3;min-width:100%;display:flex;align-items:center;gap:12px;border-left-width:2px;padding:4px 9px}.workbench-ai-hint>small{margin-left:auto}.chat-header-actions .chat-model-button{display:none}}
@media(max-width:700px){.chat-workspace{grid-template-columns:1fr}.chat-history,.chat-history-collapsed .chat-history{display:none}.chat-history-open .chat-history{display:flex;position:absolute;left:0;top:0;bottom:0;z-index:5;width:min(285px,82vw);box-shadow:6px 0 20px #172a3a12}.chat-mobile-close{display:inline-flex}.chat-history-open .chat-history-shade{display:block;position:absolute;inset:0;z-index:4;background:#172a3a26}.chat-header{height:55px;padding:0 10px;gap:6px}.chat-header-title{gap:5px}.chat-header-title h1{font-size:13px}.chat-header-title>div>span{font-size:8px}.chat-header-actions{gap:4px}.chat-header-actions .chat-model-button{display:none}.chat-header-actions .icon-button{min-width:25px;padding:4px}.chat-header-title .icon-button{min-width:25px}.chat-reading-column{padding:21px 17px 16px}.chat-message{margin-bottom:25px}.chat-message-byline{gap:7px;flex-wrap:wrap}.chat-message-byline>strong{font-size:11px}.chat-message-byline time{font-size:8px}.reply-mode{font-size:8px;margin-left:0}.chat-prose{font-size:14px}.chat-prose h2{font-size:18px}.chat-prose h3{font-size:16px;margin-top:21px}.chat-prose p{font-size:14px}.chat-prose th,.chat-prose td{font-size:12px;padding:9px 10px}.chat-message-tools{margin-left:0;gap:17px}.user-message .chat-message-content{max-width:96%;padding:12px 14px}.chat-composer-wrap{padding:8px 12px 8px}.chat-composer{padding:8px 11px}.chat-composer textarea{min-height:61px;font-size:13px}.chat-composer-bottom>span{font-size:8px}.chat-composer-bottom .btn{font-size:11px}.chat-composer-note{font-size:8px}.chat-empty{padding-top:25px}.chat-empty h2{font-size:20px}.chat-starter-questions .btn{font-size:11px;white-space:normal;text-align:left;justify-content:flex-start}.chat-settings-body{padding:0 17px 20px}.chat-settings-body .form-grid{grid-template-columns:1fr}.chat-settings-body>label>textarea{font-size:12px;padding:11px 12px}.chat-settings-model{align-items:flex-start;gap:10px}.chat-settings-model strong{font-size:13px}.chat-settings-model small{font-size:9px}.chat-settings-model .btn{font-size:10px;padding:5px 7px}.chat-settings-actions{flex-wrap:wrap}.chat-settings-actions .btn{font-size:10px}.text-ai-toolbar>span{font-size:8px}.workbench-ai-hint{min-width:0;max-width:none;width:100%;flex:auto;display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;padding:4px 9px}.workbench-ai-hint>span{font-size:10px}.workbench-ai-hint>strong{font-size:9px}.workbench-ai-hint b{font-size:11px}.workbench-ai-hint>small{width:100%;font-size:8px}.desk-mode .workbench-top{gap:10px}.desk-mode .workbench-top .heading-actions{flex-shrink:1}}
@media(min-width:641px) and (max-width:700px){.desk-mode .workbench-top{height:auto;min-height:86px;flex-wrap:wrap}.desk-mode .workbench-top>div:first-child{width:100%;justify-content:space-between}.desk-mode .workbench-top .heading-actions{margin-left:auto}.workbench-ai-hint{flex:1;width:auto;min-width:220px}}

/* Live server state */
.server-login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 25% 10%,#d9e3e8,transparent 60%),#f3f2ed;padding:24px}.server-login .login-card{width:min(420px,100%);background:#fff;padding:40px;border:1px solid #dadbd5;border-radius:12px;box-shadow:0 20px 80px #17364114}.server-login form{display:grid;gap:16px;margin:24px 0}.server-login h1{font-size:32px;margin:12px 0}.server-login input{width:100%}#server-save-status{position:fixed;bottom:7px;right:12px;z-index:150;background:#edf4ef;color:#36654b;border:1px solid #c6d9cb;border-radius:5px;font-size:11px;padding:5px 9px;cursor:pointer}#server-save-status.save-error{background:#fff0ee;color:#a03935;border-color:#e7bbb5}#server-save-status.save-pending{background:#fff7e9;color:#8b681d}.server-key-actions{display:flex;gap:10px;margin-top:10px}.live-source-note{font-size:11px;color:#737d83;padding:10px 16px;line-height:1.6}.live-empty{padding:18px}.hot-stock-list p{font-size:10px;color:#889096;padding:0 16px 8px}.live-account-warning{padding:10px 14px;background:#fff6e8;color:#85612d;font-size:12px}.server-login label{display:grid;gap:8px}
