*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#f5f6fa}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#d0d3dc;border-radius:4px}::-webkit-scrollbar-track{background:transparent}.login-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#4f46e5,#7c3aed,#2563eb)}.login-card{width:400px;border-radius:16px;box-shadow:0 20px 60px #0000004d}.paper-row{cursor:pointer;-webkit-user-select:none;user-select:none}.ant-table-wrapper .ant-table-tbody>tr.paper-row-selected>td{background:#eef2ff!important}.ant-table-wrapper .ant-table-tbody>tr.paper-row-selected:hover>td{background:#e0e7ff!important}.paper-float-window{position:fixed;z-index:100;width:min(86vw,1200px);height:88vh;background:#fff;border-radius:12px;box-shadow:0 12px 48px #00000038;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e5e7eb}.paper-float-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid #eee;cursor:move;-webkit-user-select:none;user-select:none;background:#fafafa;flex-shrink:0}.paper-float-body{flex:1;min-height:0;display:flex;flex-direction:column}.paper-float-body .detail-tabs{flex:1;min-height:0}.paper-float-body .ant-tabs-content-holder{overflow:hidden}.paper-float-body .ant-tabs-content,.paper-float-body .ant-tabs-tabpane{height:100%}.settings-tabs{display:flex;flex-direction:column}.settings-tabs .ant-tabs-content-holder{flex:1;min-height:0;overflow:auto}.settings-tabs .ant-tabs-content,.settings-tabs .ant-tabs-tabpane-active{height:100%}.upload-progress-bar{position:fixed;top:0;left:0;right:0;z-index:2000;display:flex;align-items:center;gap:16px;padding:6px 24px;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 2px 8px #00000014}.upload-progress-text{font-size:13px;color:#4f46e5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40%}.global-drop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#4f46e514;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;pointer-events:none}.global-drop-box{background:#fff;border:2px dashed #4f46e5;border-radius:16px;padding:48px 72px;text-align:center;box-shadow:0 16px 48px #4f46e540}.chat-bubble{max-width:78%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;word-break:break-word}.chat-user{background:#4f46e5;color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}.chat-assistant{background:#f4f5f9;border-bottom-left-radius:4px}.chat-md p{margin:0 0 8px}.chat-md p:last-child{margin-bottom:0}.chat-md pre{background:#e9ebf2;padding:8px;border-radius:6px;overflow:auto}.chat-md code{background:#e9ebf2;padding:1px 4px;border-radius:4px}.chat-tool-result{background:#f6f7fa;border:1px solid #eee;border-radius:6px;padding:8px;font-size:11px;max-height:240px;overflow:auto;white-space:pre-wrap;word-break:break-all;margin:0}.chat-collapse{border-radius:10px;border:1px solid #e8e9f0;background:#fafafd;margin-bottom:6px;overflow:hidden}.chat-collapse-header{display:flex;align-items:center;gap:8px;padding:7px 12px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13px;color:#555}.chat-collapse-header:hover{background:#f0f1f7}.chat-collapse-title{font-weight:500}.chat-collapse-body{padding:8px 12px;border-top:1px solid #eceef4}.chat-thinking-bubble{background:#fffbeb;border-color:#fde68a}.chat-thinking-bubble .chat-collapse-header:hover{background:#fef3c7}.chat-thinking-text{font-size:12px;color:#92400e;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto}.chat-tool-bubble{background:#f5f3ff;border-color:#ddd6fe}.chat-tool-bubble .chat-collapse-header:hover{background:#ede9fe}.chat-tool-section-label{font-size:11px;font-weight:600;color:#7c3aed;margin-bottom:4px;display:flex;align-items:center;gap:6px}.sidebar-sections{display:flex;flex-direction:column;height:100%;padding:8px}.sidebar-section{flex:1 1 0;min-height:90px;display:flex;flex-direction:column;background:#fff;border:1px solid #ececf2;border-radius:10px;overflow:hidden}.sidebar-section-body{flex:1;min-height:0;overflow-y:auto;padding:10px 12px}.sidebar-divider{flex-shrink:0;height:10px;display:flex;align-items:center;justify-content:center;cursor:row-resize;touch-action:none}.sidebar-divider-grip{width:44px;height:4px;border-radius:2px;background:#d8dae5;transition:background .15s}.sidebar-divider:hover .sidebar-divider-grip{background:#4f46e5}.session-item .session-actions{display:inline-flex;align-items:center;flex-shrink:0;visibility:hidden}.session-item:hover .session-actions{visibility:visible}.session-item .session-actions .ant-btn{height:18px;width:22px;min-width:22px;padding:0;font-size:12px}.session-unread-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ef4444;flex-shrink:0}.chat-input-divider{flex-shrink:0;height:10px;display:flex;align-items:center;justify-content:center;cursor:row-resize;background:#fff;border-top:1px solid #eee;touch-action:none}.chat-input-divider:hover .sidebar-divider-grip{background:#4f46e5}.search-snippet mark{background:#fde68a;padding:0 2px;border-radius:2px}.md-body{padding:24px 32px;line-height:1.8;font-size:14px}.md-body h1{font-size:22px}.md-body h2{font-size:18px;margin-top:24px}.md-body h3{font-size:16px}.md-body img{max-width:100%}.pdf-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #eee;background:#fafafa;position:sticky;top:0;z-index:5}.pdf-page-wrap{display:flex;justify-content:center;padding:12px;background:#e8eaf0}.folder-tree .ant-tree-node-content-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-tree .ant-tree-treenode>.ant-tree-indent>.ant-tree-indent-unit:first-child{width:0}.folder-tree .ant-tree-treenode>.ant-tree-switcher,.folder-tree .ant-tree-treenode>.ant-tree-switcher-noop{width:8px}.folder-tree .ant-tree-node-content-wrapper{padding-left:0}.item-count{margin-left:4px;font-size:10px;color:#bfbfbf;vertical-align:-1px;font-weight:400;-webkit-user-select:none;user-select:none}.graph-ctl-btn{width:36px;height:30px;border:none;background:transparent;color:#475569;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.graph-ctl-btn:hover{background:#eef2ff;color:#4f46e5}.paperask-minimap{background:#ffffffeb!important;border:1px solid #e2e8f0!important;border-radius:10px!important;box-shadow:0 4px 16px #0f172a14!important;overflow:hidden;margin:12px}
