.alert-card{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--surface-muted);border-radius:var(--radius);margin-bottom:16px;cursor:pointer;transition:background .15s ease}.note-page{max-width:880px;margin:0 auto}.note-page-desc{margin-bottom:16px;margin-top:0;color:var(--muted);font-size:14px;line-height:1.5}.alert-left{display:flex;align-items:center;gap:4px}.alert-text{font-size:14px;font-weight:500;color:var(--text)}.alert-count{font-size:14px;font-weight:400;color:var(--text-secondary);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;position:relative;margin-left:2px;padding-right:6px}.alert-dot-wrap{display:inline-flex;align-items:center;justify-content:center;margin-left:-2px}.alert-dot-core,.alert-dot-wrap{position:relative;width:8px;height:8px}.alert-dot-core{border-radius:50%;background:#F04864;z-index:1}.alert-dot-ping{position:absolute;width:8px;height:8px;border-radius:50%;background:rgba(240,72,100,.22);transform:scale(1.7)}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title{font-size:15px;font-weight:600;color:var(--text);margin:0}.section-add-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:transparent;border:none;cursor:pointer;color:var(--muted)}.section-add-btn:hover{background:var(--surface-muted)}.notes-date-group{margin-bottom:16px}.notes-date-label{font-size:12px;color:var(--muted);margin-bottom:8px;font-weight:500}.note-card{padding:16px;background:var(--surface);border-radius:var(--radius);margin-bottom:8px;border:1px solid var(--line)}.note-card-last{margin-bottom:0}.note-content{margin:0 0 14px;font-size:14px;line-height:1.7;color:var(--text-secondary);white-space:pre-wrap}.note-markdown{white-space:normal}.note-markdown .chat-markdown{color:inherit;font-size:inherit;line-height:inherit}.note-markdown .chat-markdown blockquote,.note-markdown .chat-markdown ol,.note-markdown .chat-markdown p,.note-markdown .chat-markdown ul{margin:0 0 8px}.note-markdown .chat-markdown>:last-child{margin-bottom:0}.note-markdown .chat-markdown h1,.note-markdown .chat-markdown h2,.note-markdown .chat-markdown h3,.note-markdown .chat-markdown h4{margin:8px 0 5px;color:var(--text);font-size:14px}.stock-note-source-picker{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.stock-note-source-heading{display:flex;align-items:center;gap:7px;min-height:28px;color:var(--text-secondary);font-size:13px;font-weight:600}.stock-note-source-add{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted);color:var(--text-secondary);cursor:pointer}.stock-note-source-add:hover:not(:disabled){color:var(--primary);border-color:var(--primary)}.stock-note-source-add:disabled{opacity:.45;cursor:default}.stock-note-source-limit{color:var(--muted);font-size:11px;font-weight:400}.stock-note-source-selected{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.stock-note-source-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 7px 5px 9px;border-radius:8px;background:var(--surface-muted);color:var(--text-secondary);font-size:12px}.stock-note-source-chip>span{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-note-source-chip button{display:inline-flex;padding:0;border:0;background:transparent;color:var(--muted);cursor:pointer}.stock-note-source-search{position:relative;margin-top:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.stock-note-source-tabs{display:flex;gap:5px;margin-bottom:7px}.stock-note-source-tabs button{padding:4px 10px;border:0;border-radius:12px;background:var(--surface-muted);color:var(--muted);font-size:12px;cursor:pointer}.stock-note-source-tabs button.active{background:var(--primary-tint);color:var(--primary)}.stock-note-source-search>input{width:100%;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:7px;outline:none;background:var(--surface);color:var(--text);font-size:13px}.stock-note-source-search>input:focus{border-color:var(--primary)}.stock-note-source-results{max-height:190px;margin-top:6px;overflow-y:auto}.stock-note-source-results>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);text-align:left;cursor:pointer}.stock-note-source-results>button:hover:not(:disabled){background:var(--surface-muted)}.stock-note-source-results>button:disabled{opacity:.55}.stock-note-source-results>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-note-source-results>button small{flex:none;color:var(--muted);font-size:11px}.stock-note-source-empty{padding:12px 8px;color:var(--muted);font-size:12px;text-align:center}.materials-list{margin-bottom:14px}.material-row{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 14px;background:var(--surface-muted);border-radius:8px;margin-bottom:8px;cursor:pointer}.material-title{flex:1 1;margin-right:12px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-actions{display:flex;align-items:center;justify-content:flex-end;padding-top:12px;border-top:1px solid var(--line);margin-top:12px}.materials-toggle{display:flex;align-items:center;gap:4px;height:32px;padding:0 12px;border-radius:16px;background:var(--primary-tint);border:none;cursor:pointer;font-size:12px;color:var(--primary)}.note-actions{display:flex;align-items:center;gap:10px}.note-action-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:6px;background:var(--surface-muted);border:none;cursor:pointer;font-size:13px;font-weight:500;color:var(--muted);white-space:nowrap;transition:background .15s ease,color .15s ease}.note-action-btn:hover{background:var(--line);color:var(--text)}.note-action-btn svg{width:14px;height:14px;flex-shrink:0}.note-action-btn.note-action-delete{color:var(--error);background:rgba(239,68,68,.08)}.note-action-btn.note-action-delete:hover{background:rgba(239,68,68,.15)}.note-icon-btn{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;border-radius:6px;cursor:pointer;transition:background .15s ease;flex-shrink:0}.note-unread-dot{position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:#F04864;box-shadow:0 0 0 2px rgba(240,72,100,.12)}.note-char-counter{font-size:12px;color:var(--muted);text-align:right;margin-top:6px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.note-char-counter.over-limit{color:var(--danger);font-weight:500}.dialog.note-edit-dialog,.note-edit-dialog{max-width:640px;width:92%;max-height:88vh;overflow-y:auto}.note-edit-textarea{width:100%;min-height:120px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font-size:14px;line-height:1.6;resize:vertical;margin-bottom:8px;font-family:inherit;box-sizing:border-box}.note-edit-textarea:focus{outline:none;border-color:var(--primary)}.note-edit-textarea::placeholder{color:var(--muted)}.note-ai-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.note-ai-actions button{min-height:32px;padding:6px 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--primary-tint);border-radius:7px;color:var(--primary);background:#f5f7ff;font-size:11px;font-weight:600;cursor:pointer}.note-ai-actions button:hover{background:var(--primary-tint)}.note-ai-actions button:disabled{opacity:.5;cursor:not-allowed}.note-ai-actions .spinner{width:13px;height:13px;border-width:2px}.note-edit-dialog .note-char-counter{margin-top:0;margin-bottom:16px}.materials-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.material-tabs{display:flex;gap:16px}.material-tab{padding:6px 12px;border-radius:16px;background:transparent;border:none;cursor:pointer;font-size:14px;color:var(--muted);transition:background-color .15s ease,color .15s ease}.material-tab.active{background:var(--primary-tint);color:var(--primary);font-weight:500}.mark-all-read-btn{padding:4px 12px;border-radius:12px;background:transparent;border:none;cursor:pointer;font-size:12px;color:var(--muted)}.mark-all-read-btn:hover{background:var(--surface-muted)}.materials-list-page{display:grid;grid-gap:12px;gap:12px}.material-item{display:grid;grid-template-columns:1fr auto;grid-gap:12px;gap:12px;min-width:0;padding:14px 16px;background:var(--surface);border-radius:var(--radius);border:1px solid var(--line);cursor:pointer}.material-item.unread{border-left:3px solid var(--primary)}.material-item-title{font-size:14px;font-weight:500;color:var(--text);margin:0 0 4px;overflow-wrap:break-word;word-break:break-word}.material-item-meta{display:flex;align-items:center;gap:8px}.material-item-meta,.material-item-time{font-size:12px;color:var(--muted)}.task-history-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.task-history-title{font-size:18px;font-weight:600;color:var(--text);margin:0}.task-history-list{display:grid;grid-gap:12px;gap:12px}.task-history-item{display:grid;grid-template-columns:auto 1fr auto;grid-gap:12px;gap:12px;min-width:0;padding:14px 16px;background:var(--surface);border-radius:var(--radius);border:1px solid var(--line);cursor:pointer}.task-status-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center}.task-history-item-title{font-size:14px;font-weight:500;color:var(--text);margin:0 0 4px;overflow-wrap:break-word;word-break:break-word}.task-history-item-meta{display:flex;align-items:center;gap:8px}.task-history-item-meta,.task-history-item-time{font-size:12px;color:var(--muted)}.task-history-item-status{font-size:12px;font-weight:500}.task-history-item-status-success{color:var(--success)}.task-history-item-status-error{color:var(--danger)}.task-history-item-status-pending{color:var(--warning)}.materials-page{width:100%;max-width:none;margin:0}.materials-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;grid-gap:20px;gap:20px;align-items:start}.materials-main{min-width:0}.materials-ai-panel{display:grid;grid-gap:9px;gap:9px;width:350px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.materials-ai-panel-title{display:flex;align-items:center;gap:7px;color:var(--primary);font-size:14px;font-weight:700}.materials-ai-panel>p{margin:0 0 3px;color:var(--muted);font-size:11px;line-height:1.6}.materials-ai-add-note,.materials-ai-panel>button{min-height:38px;padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--primary-tint);border-radius:8px;color:var(--primary);background:#f5f7ff;font-size:12px;font-weight:600;cursor:pointer}.materials-ai-panel button:hover{background:var(--primary-tint)}.materials-ai-panel button:disabled{opacity:.55;cursor:not-allowed}.materials-ai-loading{min-height:72px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px}.materials-ai-result{margin-top:4px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--surface-muted)}.materials-ai-result-label{padding:8px 10px;border-bottom:1px solid var(--line);color:var(--text-secondary);background:#edf2fe;font-size:11px;font-weight:650}.materials-ai-result .chat-doc-content{padding:10px}.materials-ai-result .chat-markdown{font-size:13px;line-height:1.65}.materials-ai-result .chat-markdown p{margin:0 0 7px}.materials-ai-result .chat-markdown p:last-child{margin-bottom:0}.materials-ai-add-note{width:calc(100% - 20px);margin:0 10px 10px;background:var(--surface)!important}.materials-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.materials-toolbar-actions{display:flex;align-items:center;gap:10px}.materials-importance-filter{display:inline-flex;align-items:center;gap:3px;padding:2px;border:.5px solid var(--line);border-radius:8px;background:var(--surface)}.materials-importance-filter button{height:26px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}.materials-importance-filter button:hover{color:var(--text);background:var(--surface-muted)}.materials-importance-filter button.active{color:#fff;background:var(--primary)}.materials-segmented{display:inline-flex;align-items:center;padding:2px;background:var(--surface);border-radius:8px;border:.5px solid var(--line)}.materials-segmented-btn{height:30px;min-width:52px;padding:0 10px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;font-size:12px;color:var(--text-tertiary)}.materials-segmented-btn.active{background:var(--primary);color:#fff}.materials-mark-read{height:30px;padding:0 12px;display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:6px;border:.5px solid var(--line);cursor:pointer;font-size:12px;color:var(--text-tertiary)}.materials-mark-read:disabled{background:var(--surface-muted,#f8fafc);border-color:var(--line);color:var(--text-disabled);cursor:default}.materials-list{display:grid;grid-gap:10px;gap:10px}.material-card{position:relative;min-width:0;padding:16px 40px 16px 16px;background:var(--surface);border-radius:8px;border:.5px solid var(--line);cursor:pointer}.material-meta{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:9px}.material-meta-main{display:flex;align-items:center;gap:7px;min-width:0}.material-kind{padding:2px 7px;border-radius:9px;color:var(--primary);background:var(--primary-tint);font-size:10px;font-weight:600}.material-source{overflow:hidden;max-width:180px;color:var(--text-tertiary);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.material-importance{flex-shrink:0;color:var(--primary);font-size:11px;font-weight:600}.material-time{font-size:11px;color:var(--text-tertiary);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.material-title{margin:0;font-size:15px;line-height:22px;color:var(--muted);overflow-wrap:break-word;word-break:break-word}.material-summary{display:-webkit-box;overflow:hidden;margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2}.material-analysis{display:grid;grid-template-columns:auto minmax(0,1fr);grid-gap:9px;gap:9px;margin-top:10px;padding:9px 11px;border-radius:7px;background:var(--primary-tint)}.material-analysis>span{color:var(--primary);font-size:10px;font-weight:700;white-space:nowrap}.material-analysis p{display:-webkit-box;overflow:hidden;margin:0;font-size:11px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.material-analysis p,.material-unread .material-title{color:var(--text-secondary)}.material-chevron{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:var(--muted)}.refresh-indicator{display:flex;justify-content:center;padding:16px}@media (max-width:760px){.materials-layout{grid-template-columns:1fr}.materials-ai-panel{position:static;width:100%;grid-row:1}.materials-toolbar,.materials-toolbar-actions{align-items:flex-start;flex-direction:column}.materials-toolbar-actions{width:100%}.materials-importance-filter{max-width:100%;overflow-x:auto}}.textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:14px;line-height:1.6;resize:vertical;font-family:inherit}.textarea:focus{outline:none;border-color:var(--primary)}.textarea-large{min-height:200px}.note-edit-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.card{padding:16px;background:var(--surface);border-radius:var(--radius);border:1px solid var(--line);cursor:pointer}.card-title{margin:0 0 8px;font-size:15px;font-weight:600;color:var(--text)}.card-summary{margin:0 0 12px;font-size:13px;color:var(--text-secondary);line-height:1.5}.card-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px}.card-date,.card-meta{color:var(--muted)}.status-badge{padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500}.status-badge.success{background:#dcfce7;color:#166534}.status-badge.warning{background:#fef3c7;color:#92400e}.status-badge.error{background:#fee2e2;color:#991b1b}.status-badge.neutral{background:#f1f5f9;color:#475569}