.library-view{flex:1;min-width:0;min-height:0;width:100%;display:flex;gap:14px;padding:0;overflow:hidden;background:transparent}.library-view .library-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:11px;background:var(--surface);box-shadow:var(--sh-card);padding:0!important;gap:0}.library-view .library-nf{padding:12px 14px;border-bottom:.5px solid var(--hairline-soft);flex-shrink:0}.library-view .library-db{flex:1;min-height:0;overflow:auto;margin:0;padding:0!important;background:transparent!important;border:none;border-radius:0!important;box-shadow:none!important}.library-view .db-head,.library-view .db-file-row{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(0,1.4fr) 62px minmax(0,1.1fr) 74px;align-items:center;gap:10px;padding:0 14px}.library-view .db-head{height:40px;position:sticky;top:0;z-index:2;background:#fff;box-shadow:inset 0 -.5px #14161c1a;border-radius:0}.library-view .db-h{font-size:11.5px;font-weight:600;color:var(--text-3);text-transform:none;letter-spacing:0;padding:0;display:inline-flex;align-items:center;gap:5px;background:none;border:none;font-family:inherit;cursor:pointer}.library-view .db-h:first-child{padding-left:18px}.library-view .db-h.sorted{color:var(--ink)}.library-view .db-row.folder{display:flex;align-items:center;justify-content:space-between;gap:9px;height:38px;padding:0 14px;box-sizing:border-box;overflow:hidden;background:var(--fill-2);box-shadow:inset 0 -.5px #14161c14;cursor:pointer}.library-view .db-folder-main{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.library-view .db-folder-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}.library-view .db-toggle{width:16px;height:16px;padding:0;border:none;background:none;color:var(--text-3);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.library-view .db-folder-swatch{width:13px;height:13px;border-radius:4px;flex-shrink:0;background:var(--accent)}.library-view .db-folder-swatch.s2{background:var(--swatch-2,#8B7355)}.library-view .db-folder-swatch.s3{background:var(--swatch-3,#6B7C6B)}.library-view .db-title{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-view .db-folder-main .db-meta{font-size:11.5px;color:var(--text-5);flex-shrink:0}.library-view .db-file-row{height:44px;border-bottom:.5px solid #F0F0F2;cursor:pointer;background:transparent}.library-view .db-file-row:hover{background:#f7f8f9}.library-view .db-file-row.selected{background:var(--accent-tint)}.library-view .db-file-row.selected .db-file-name{font-weight:600}.library-view .db-file-row.empty{height:auto;min-height:44px;padding:10px 14px}.library-view .db-cell{display:flex;align-items:center;gap:9px;min-width:0;font-size:12.5px;color:var(--text-2)}.library-view .db-file-indent{padding-left:18px}.library-view .db-file-title-wrap{min-width:0;display:flex;flex-direction:column;gap:1px}.library-view .db-file-name{font-size:13px;font-weight:500;color:var(--ink);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-view .db-file-filename{font-size:11px;color:var(--text-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-view .db-meta{font-size:12.5px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.library-view .db-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:100%}.library-view .db-open{height:22px;padding:0 9px;border-radius:6px;border:none;background:#fff;color:var(--ink-3);font-size:11.5px;font-weight:600;font-family:inherit;cursor:pointer;box-shadow:0 0 0 .5px #14161c1f}.library-view .db-open:hover{background:var(--accent-tint);color:var(--accent)}.library-view .lib-icon-btn{width:24px;height:22px;padding:0;border:none;border-radius:6px;background:none;color:var(--text-4);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.library-view .lib-icon-btn:hover{background:var(--hover);color:var(--text-2)}.library-view .empty-upload-btn{height:26px;padding:0 10px;border-radius:7px;border:none;background:var(--fill-2);color:var(--accent);font-size:12px;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.library-view .lib-detail{width:328px;flex-shrink:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:11px;background:var(--surface);box-shadow:var(--sh-panel);border:none}.library-view .lib-detail-head{height:44px;padding:0 14px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:.5px solid var(--hairline-soft);font-size:13.5px;font-weight:600;color:var(--ink)}.library-view .lib-detail-kicker{font-size:13.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink)}.library-view .lib-detail-scroll{flex:1;min-height:0;overflow:auto;padding:0 0 12px}.library-view .lib-detail-empty{flex:1;display:flex;align-items:center;justify-content:center;padding:24px;color:var(--text-5);font-size:13px;text-align:center}.library-view .lib-detail-title{font-family:var(--serif);font-size:19px;font-weight:500;line-height:1.3;color:var(--ink);letter-spacing:-.01em;margin:14px 16px 6px}.library-view .lib-detail-authors{font-size:12.5px;color:var(--text-2);line-height:1.45;margin:0 16px 10px}.library-view .lib-detail-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 14px}.library-view .lib-chip{height:22px;padding:0 9px;border-radius:6px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;background:#f2f3f5;color:var(--ink-3)}.library-view .lib-chip.accent{background:var(--accent-tint);color:var(--accent-on-tint)}.library-view .lib-dl{padding:0 16px;margin:0}.library-view .lib-dl-row{display:grid;grid-template-columns:74px 1fr;gap:10px;padding:9px 0;border-bottom:.5px solid #F0F0F2;font-size:12px}.library-view .lib-dl-row dt{color:var(--text-5);font-weight:500;margin:0}.library-view .lib-dl-row dd{color:var(--ink-3);margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis}.library-view .lib-dl-row a{color:var(--accent);text-decoration:none}.library-view .lib-meta-block{margin:14px 16px;padding:0;background:transparent}.library-view .lib-meta-label{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#9ca0a7;margin-bottom:7px}.library-view .lib-meta-card{border-radius:10px;background:var(--fill-2);padding:11px 12px;display:flex;align-items:flex-start;gap:9px}.library-view .lib-meta-card svg{flex-shrink:0;margin-top:1px;color:var(--accent)}.library-view .lib-meta-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.library-view .lib-meta-copy p{margin:0;font-size:12px;color:var(--text-2);line-height:1.5}.library-view .lib-meta-block .extract{margin:0;height:auto;padding:0;border:none;border-radius:0;background:transparent;color:var(--accent);font-size:12px;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-align:left}.library-view .lib-meta-block .extract:hover{background:transparent;text-decoration:underline}.library-view .lib-meta-block .extract:disabled{opacity:.45;cursor:not-allowed;text-decoration:none}.library-view .lib-detail-error{margin-top:4px;font-size:12px;color:#b42318}.library-view .lib-detail-footer{padding:12px 16px;gap:7px;flex-shrink:0;display:flex;align-items:center;border-top:.5px solid var(--hairline-soft)}.library-view .lib-detail-footer .primary{flex:1;height:34px;border:none;border-radius:9px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}.library-view .lib-detail-footer .primary:hover{background:var(--accent-hover)}.library-view .lib-detail-footer .ghost{height:34px;padding:0 12px;border:none;border-radius:9px;background:#f2f3f5;color:var(--ink);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}.library-view .lib-detail-footer .ghost:hover{background:#e8eaed}@media (max-width:1100px){.library-view{flex-direction:column;overflow:auto}.library-view .lib-detail{width:100%;max-height:360px}}.agent-view{flex:1;min-width:0;min-height:0;width:100%;display:flex!important;gap:14px;padding:0;overflow:hidden;background:transparent!important;grid-template-columns:unset!important}.agent-view .agent-sidebar{width:214px!important;min-width:214px!important;max-width:214px;border-radius:11px;background:var(--surface)!important;box-shadow:var(--sh-card);border:none!important;display:flex;flex-direction:column;overflow:hidden}.agent-view .agent-sidebar.collapsed{width:56px!important;min-width:56px!important;max-width:56px}.agent-view .agent-sidebar-head{padding:13px 12px 9px!important;border-bottom:none!important;display:flex;flex-direction:column;gap:2px}.agent-view .agent-sidebar-head-actions,.agent-view .agent-sidebar-toggle,.agent-view .agent-main-head{display:none!important}.agent-view .agent-empty-eyebrow{font-size:11px!important;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#9ca0a7!important}.agent-view .agent-sidebar-subtitle{font-size:11.5px!important;color:#9ca0a7!important;line-height:1.45!important;font-weight:400!important}.agent-view .agent-thread-list{flex:1;min-height:0;overflow:auto;padding:0 8px!important;display:flex;flex-direction:column;gap:1px!important}.agent-view .agent-thread-row{display:flex;align-items:center;gap:4px;padding:0;border-radius:8px;background:transparent}.agent-view .agent-thread-row.active{background:var(--selected)!important}.agent-view .agent-thread-main{flex:1;min-width:0;padding:8px 9px!important;border:none;background:none;text-align:left;cursor:pointer;font-family:inherit;border-radius:8px;display:flex;flex-direction:column;gap:2px}.agent-view .agent-thread-title{font-size:12.5px!important;font-weight:500;color:var(--ink-3)!important;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-view .agent-thread-row.active .agent-thread-title{font-weight:600!important;color:var(--ink)!important}.agent-view .agent-thread-meta{font-size:11px;color:var(--text-5)}.agent-view .thread-compact-delete{width:26px;height:24px;margin-right:4px;border:none;border-radius:6px;background:none;color:var(--text-4);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;opacity:0}.agent-view .agent-thread-row:hover .thread-compact-delete{opacity:1}.agent-view .agent-context-card{margin:auto 11px 11px!important;padding:11px!important;border-radius:10px!important;background:var(--fill-2)!important;border:none!important;box-shadow:none!important;display:flex;flex-direction:column;gap:5px}.agent-view .agent-root-badge{font-size:11.5px!important;font-weight:700!important;color:var(--ink)!important;background:transparent!important;padding:0!important;height:auto!important;box-shadow:none!important}.agent-view .agent-context-copy{font-size:11px!important;color:var(--text-3)!important;line-height:1.5!important;margin:0}.agent-view .agent-context-copy strong{font-weight:600;color:var(--ink-3)}.agent-view .agent-main{flex:1!important;min-width:0;min-height:0;border-radius:11px;background:var(--surface)!important;box-shadow:var(--sh-card);display:flex;flex-direction:column;overflow:hidden}.agent-view .agent-workspace-body{flex:1;min-height:0;display:flex;overflow:hidden}.agent-view .agent-conversation-pane{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.agent-view .agent-msgs{flex:1;min-height:0;overflow:auto;padding:16px 20px 14px!important;gap:14px!important;display:flex;flex-direction:column}.agent-view .agent-empty{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:560px;margin:0 auto;padding:24px 8px;gap:18px}.agent-view .agent-empty-hero{display:flex;gap:12px;align-items:flex-start}.agent-view .agent-empty-icon{width:32px;height:32px;border-radius:9px;flex-shrink:0;background:var(--accent-tint);color:var(--accent);display:flex;align-items:center;justify-content:center}.agent-view .agent-empty-copy h2{margin:4px 0 8px;font-size:18px;font-weight:600;letter-spacing:-.02em;color:var(--ink);line-height:1.3}.agent-view .agent-empty-copy p{margin:0;font-size:13px;color:var(--text-3);line-height:1.5}.agent-view .agent-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.agent-view .agent-quick-chip{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:11px 12px;border-radius:10px;border:none;background:var(--fill-2);cursor:pointer;font-family:inherit}.agent-view .agent-quick-chip:hover,.agent-view .agent-quick-chip.active{background:var(--accent-tint)}.agent-view .agent-empty-block{border-radius:10px;background:var(--fill-2);overflow:hidden}.agent-view .agent-empty-block-title{padding:10px 12px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-4);border-bottom:.5px solid var(--hairline-soft);background:transparent}.agent-view .agent-empty-note{padding:11px 12px;font-size:12.5px;color:var(--text-2);line-height:1.5}.agent-view .msg-u{display:flex;justify-content:flex-end}.agent-view .msg-u-bubble-wrap{max-width:74%;display:flex;flex-direction:column;align-items:flex-end;gap:6px}.agent-view .agent-msg-tool-chip{height:22px;padding:0 9px;border-radius:6px;background:var(--accent-tint);color:var(--accent-on-tint);font-size:11px;font-weight:700;display:inline-flex;align-items:center}.agent-view .msg-u-bubble{background:#2b2c30;color:#fff;border-radius:16px;padding:10px 14px;font-size:13.5px;line-height:1.5;border:none}.agent-view .msg-a{display:flex;flex-direction:column;gap:12px}.agent-view .msg-a-row{display:flex;gap:10px;align-items:flex-start}.agent-view .msg-a-avatar{width:16px;height:16px;flex-shrink:0;margin-top:3px;color:var(--accent);display:flex;align-items:center;justify-content:center}.agent-view .msg-a-bubble-wrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}.agent-view .msg-a-bubble{font-family:var(--sans);font-size:15.5px;line-height:1.65;font-weight:400;color:var(--ink-2);background:none;border:none;padding:0;max-width:none}.agent-view .thinking-trace{border-radius:11px;background:var(--fill-2);overflow:hidden;width:100%;margin:0}.agent-view .thinking-trace-head{width:100%;height:32px;padding:0 13px;display:flex;align-items:center;gap:8px;border:none;background:transparent;font-family:inherit;cursor:pointer;text-align:left}.agent-view .thinking-trace-panel{padding:0 13px 8px;border:none;background:transparent;box-shadow:none}.agent-view .thinking-trace-steps{display:flex;flex-direction:column;gap:0}.agent-view .thinking-step{display:flex;flex-direction:column;gap:2px;padding:9px 0}.agent-view .thinking-step-header{display:flex;align-items:flex-start;gap:10px}.agent-view .thinking-step-tile{width:18px;height:18px;border-radius:6px;flex-shrink:0;margin-top:1px;background:#f2f3f5}.agent-view .thinking-step-tile.done{background:var(--accent-tint)}.agent-view .thinking-step-label{font-size:12.5px;font-weight:600;color:var(--ink)}.agent-view .thinking-step-body{font-size:11.5px;color:var(--text-5);line-height:1.45;padding-left:28px}.agent-view .agent-found-sources{display:flex;flex-direction:column;gap:8px;padding:4px 0 0}.agent-view .agent-found-sources-title,.agent-view .found-label{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#9ca0a7;display:flex;align-items:center;gap:8px}.agent-view .found-label:after{content:"";flex:1;height:.5px;background:#eaebee}.agent-view .agent-found-source-row,.agent-view .paper-result-card{border-radius:10px;background:#fff;box-shadow:0 0 0 .5px #14161c1c;padding:11px 12px;display:flex;align-items:flex-start;gap:9px}.agent-view .agent-found-source-actions{flex-shrink:0;display:flex;align-items:center}.agent-view .agent-tool-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative}.agent-view .agent-tool-chip{height:22px;padding:0 4px 0 9px;border-radius:6px;background:var(--accent-tint);color:var(--accent-on-tint);font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:4px}.agent-view .agent-tool-chip-label{display:inline-flex;align-items:center;gap:5px}.agent-view .agent-tool-chip-clear{width:18px;height:18px;border:none;border-radius:4px;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.agent-view .agent-context-chip{height:22px;padding:0 9px;border-radius:6px;background:#f2f3f5;color:var(--ink-3);font-size:11px;font-weight:600;display:inline-flex;align-items:center}.agent-view .agent-tool-trigger{height:22px;padding:0 9px;border-radius:6px;border:none;background:#f2f3f5;color:var(--ink-3);font-size:11px;font-weight:600;font-family:inherit;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.agent-view .agent-tool-trigger.active{background:var(--accent-tint);color:var(--accent)}.agent-view .agent-empty h2{font-family:var(--serif)!important;font-size:22px!important;font-weight:500!important;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}.agent-view .agent-found-source-title,.agent-view .paper-result-title{font-size:12.5px;font-weight:600;color:var(--ink);line-height:1.35}.agent-view .agent-found-source-meta,.agent-view .paper-result-meta{font-size:11.5px;color:#9ca0a7;margin-top:3px}.agent-view .agent-found-source-actions .save-btn,.agent-view .paper-result-btn{height:22px;padding:0 9px;border-radius:6px;border:none;background:var(--accent);color:#fff;font-size:11px;font-weight:600;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.agent-view .agent-found-source-badge,.agent-view .paper-result-badge{height:22px;padding:0 9px;border-radius:6px;background:#f2f3f5;color:var(--ink-3);font-size:11px;font-weight:600;display:inline-flex;align-items:center;flex-shrink:0}.agent-view .agent-input-area{padding:0 14px 14px!important;flex-shrink:0}.agent-view .chat-composer,.agent-view .agent-composer{border-radius:13px;background:#fff;box-shadow:0 0 0 .5px #14161c21,0 2px 8px -3px #14161c1f;padding:11px 12px 9px;display:flex;flex-direction:column;gap:11px}.agent-view .composer-send{width:29px;height:27px;border:none;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-left:auto}.agent-view .composer-send:hover{background:var(--accent-hover)}.agent-view .composer-send:disabled{opacity:.4;cursor:not-allowed}@media (max-width:980px){.agent-view{flex-direction:column}.agent-view .agent-sidebar{width:100%!important;max-width:none;min-width:0;max-height:220px}}
