body{margin:0;padding:0;background:var(--color-background);height:100vh;display:flex;color:var(--color-foreground);overflow:hidden;-webkit-font-smoothing:antialiased}.icon{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-sm{width:14px;height:14px}.icon-lg{width:20px;height:20px}.global-toolbar{width:68px;background:var(--color-surface);border-right:1px solid var(--color-border);display:flex;flex-direction:column;transition:width .3s cubic-bezier(.4,0,.2,1);overflow-x:hidden;overflow-y:hidden;white-space:nowrap;z-index:100;flex-shrink:0}.global-toolbar.expanded{width:260px}.global-toolbar:hover{overflow-y:auto}.global-toolbar::-webkit-scrollbar{width:4px}.global-toolbar::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:2px}.tb-header{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 16px;margin-bottom:8px;position:relative}.global-toolbar:not(.expanded) .tb-header{justify-content:center}.tb-logo-box{display:flex;align-items:center;gap:10px;color:var(--color-foreground);font-weight:700;font-size:16px;text-decoration:none;transition:opacity .2s}.global-toolbar:not(.expanded) .tb-logo-box span{display:none}.global-toolbar:not(.expanded) .tb-logo-box{justify-content:center;width:100%}.global-toolbar:not(.expanded) .sidebar-toggle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;pointer-events:none}.global-toolbar:not(.expanded) .tb-header:hover .tb-logo-box{opacity:0}.global-toolbar:not(.expanded) .tb-header:hover .sidebar-toggle{opacity:1;pointer-events:auto;background:var(--color-surface-subtle)}.sidebar-toggle{background:transparent;border:none;cursor:pointer;color:var(--color-text-muted);padding:6px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:.2s;outline:none}.sidebar-toggle:hover{background:var(--color-surface-subtle);color:var(--color-foreground)}.tb-nav{padding:0 12px;margin-bottom:24px}.tb-item{display:flex;align-items:center;color:var(--color-foreground);text-decoration:none;padding:10px 12px;border-radius:8px;margin-bottom:4px;transition:.2s;font-weight:500;cursor:pointer;font-size:14px}.global-toolbar:not(.expanded) .tb-item{justify-content:center;padding:12px 0}.tb-item:hover{background:var(--color-surface-subtle)}.tb-item.active{background:var(--color-focus-soft);color:var(--color-focus)}.tb-item svg{flex-shrink:0}.global-toolbar.expanded .tb-item svg{margin-right:12px}.global-toolbar:not(.expanded) .tb-item span{display:none}.collapsed-history-btn{display:none!important}.global-toolbar:not(.expanded) .collapsed-history-btn{display:flex!important}.history-section{display:flex;flex-direction:column;padding:0 12px;opacity:1;transition:opacity .2s}.global-toolbar:not(.expanded) .history-section{display:none}.history-header{font-size:14px;color:var(--color-text-muted);font-weight:600;padding:0 12px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}.history-arrow-icon{transition:transform .3s}.history-arrow-icon.collapsed{transform:rotate(-90deg)}.history-search{display:flex;align-items:center;background:var(--color-background);border:1px solid transparent;border-radius:8px;padding:8px 12px;margin:0 0 12px;gap:8px;color:var(--color-text-muted);transition:.2s}.history-search:focus-within{border-color:var(--color-border-strong);background:var(--color-surface);box-shadow:0 2px 6px #00000005}.history-search input{border:none;background:transparent;outline:none;width:100%;font-size:13px;color:var(--color-foreground)}.history-list{display:flex;flex-direction:column;gap:2px}.hist-item{font-size:14px;color:var(--color-foreground);padding:10px 12px;border-radius:8px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s;display:flex;align-items:center;gap:8px}.hist-item:hover{background:var(--color-surface-subtle)}.user-profile{margin-top:auto;padding:16px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--color-border);cursor:pointer;transition:.2s}.user-profile:hover{background:var(--color-surface-subtle)}.avatar{width:32px;height:32px;border-radius:50%;background:var(--color-foreground);color:var(--color-surface);display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;font-size:14px}.user-name{font-size:14px;font-weight:500;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.global-toolbar:not(.expanded) .user-profile{padding:16px 0;justify-content:center}.global-toolbar:not(.expanded) .user-name{display:none}.wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden}.header{height:60px;background:#ffffffe6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-size:14px;flex-shrink:0;z-index:50}.header-tabs{display:flex;gap:24px;height:100%}.header-tab{cursor:pointer;color:var(--color-text-muted);padding:0 4px;border-bottom:2px solid transparent;display:flex;align-items:center;font-weight:500;transition:.2s}.header-tab.active{color:var(--color-focus);border-bottom-color:var(--color-focus);font-weight:700}.actions{display:flex;gap:12px;align-items:center}.nl-input{display:flex;position:relative;align-items:center}.nl-input input{width:200px;padding:8px 12px 8px 32px;border:1px solid var(--color-border);border-radius:8px;outline:none;background:var(--color-surface-subtle);font-size:13px;transition:.2s;color:var(--color-foreground)}.nl-input input:focus{border-color:var(--color-focus);background:var(--color-surface);box-shadow:0 0 0 3px var(--color-focus-soft)}.nl-input svg{position:absolute;left:10px;color:var(--color-text-disabled)}.btn{padding:0 16px;height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;border:1px solid var(--color-foreground);cursor:pointer;font-size:13px;font-weight:500;color:#fff;background:var(--color-foreground);transition:.2s;outline:none}.btn:hover{background:var(--color-text-secondary);box-shadow:0 4px 10px #00000026}.sub-header{display:flex;gap:20px;padding:12px 24px;background:var(--color-background);border-bottom:1px solid var(--color-border);flex-shrink:0}.sub-tab{cursor:pointer;color:var(--color-text-muted);font-size:13px;padding:6px 12px;border-radius:6px;font-weight:500;transition:.2s}.sub-tab:hover{background:var(--color-border)}.sub-tab.active{background:var(--color-focus-soft);color:var(--color-focus);font-weight:700}.kb-body{flex:1;padding:24px;overflow-y:auto;overflow-x:hidden;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;align-content:start}.folder{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:16px;box-shadow:0 2px 10px #00000005}.folder-title{font-weight:700;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--color-foreground)}.folder-tag{font-size:11px;padding:3px 10px;border-radius:6px;font-weight:500}.tag-general{background:var(--color-focus-soft);color:var(--color-focus)}.tag-law{background:#e6f4ea;color:#137333}.tag-politics{background:#f3e8fd;color:#7e22ce}.tag-economy{background:#ffedd5;color:#c2410c}.doc-list{max-height:405px;overflow-y:auto;padding-right:4px}.doc-list::-webkit-scrollbar{width:4px}.doc-list::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:2px}.doc-item{font-size:13px;color:var(--color-text-secondary);padding:5px 0;border-bottom:1px dashed var(--color-surface-subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;cursor:pointer;transition:.2s}.doc-item:hover{color:var(--color-focus)}.doc-item:last-child{border-bottom:none}.star-btn{cursor:pointer;color:var(--color-border-strong);transition:opacity .2s,color .2s;flex-shrink:0;opacity:0}.doc-item:hover .star-btn{opacity:1}.star-btn.active{fill:#f59e0b;color:#f59e0b;opacity:1}.modal-overlay{position:fixed;inset:0;background:#1e293b66;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:none;align-items:center;justify-content:center;z-index:999}.modal{background:var(--color-surface);border-radius:12px;width:420px;max-width:90%;box-shadow:0 10px 30px #0000001a;display:flex;flex-direction:column;overflow:hidden;animation:modalFadeIn .2s ease-out}@keyframes modalFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:16px 20px;border-bottom:1px solid var(--color-border);display:flex;justify-content:space-between;align-items:center;font-weight:600;color:var(--color-foreground);font-size:15px}.modal-close{cursor:pointer;color:var(--color-text-muted);transition:.2s}.modal-close:hover{color:var(--color-foreground)}.modal-body{padding:24px 20px;display:flex;flex-direction:column;gap:16px}.upload-area{border:2px dashed var(--color-border-strong);border-radius:8px;padding:40px 20px;text-align:center;color:var(--color-text-muted);cursor:pointer;transition:.2s;background:var(--color-background);display:flex;flex-direction:column;align-items:center;justify-content:center}.upload-area:hover{border-color:var(--color-focus);background:var(--color-focus-soft);color:var(--color-focus)}.modal-footer{padding:16px 20px;border-top:1px solid var(--color-border);display:flex;justify-content:flex-end;gap:12px;background:var(--color-background)}.btn-outline{background:var(--color-surface);border:1px solid var(--color-border-strong);color:var(--color-text-secondary)}.btn-outline:hover{background:var(--color-surface-subtle);border-color:var(--color-text-disabled);box-shadow:none;color:var(--color-foreground)}.report-item{display:flex;flex-direction:column;padding:20px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface);cursor:pointer;transition:.2s;text-align:left}.report-item:hover{border-color:var(--color-focus);box-shadow:0 4px 16px #0000000f}.report-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;border-bottom:1px solid var(--color-surface-subtle);padding-bottom:16px}.report-header-left{display:flex;align-items:center;gap:12px;overflow:hidden}.report-header-icon{width:24px;height:24px;flex-shrink:0}.report-title{font-size:16px;font-weight:600;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-meta-info{font-size:13px;color:var(--color-text-secondary);line-height:1.8;margin-bottom:16px}.star-rating{color:#f59e0b;letter-spacing:2px;font-size:14px}.report-summary-title{font-size:15px;font-weight:700;color:var(--color-foreground);margin-bottom:8px}.report-summary-text{font-size:13.5px;color:var(--color-text-secondary);line-height:1.6;margin-bottom:20px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.report-faded-section{font-size:14px;font-weight:600;color:var(--color-border-strong);display:flex;align-items:center;gap:8px}.report-faded-section:before{content:"—";color:var(--color-border-strong)}#report-list-container.list-view{display:block!important;max-height:405px;overflow-y:auto;padding-right:4px}#report-list-container.list-view .report-item{flex-direction:row;align-items:center;padding:5px 0;border:none;border-bottom:1px dashed var(--color-surface-subtle);border-radius:0;background:transparent;box-shadow:none;gap:8px}#report-list-container.list-view .report-item:last-child{border-bottom:none}#report-list-container.list-view .report-header{margin:0;padding:0;border:none;flex:1;display:grid;grid-template-columns:350px 90px 90px;align-items:center;gap:40px;justify-content:flex-start}#report-list-container.list-view .report-header-left{display:flex;align-items:center;gap:12px;margin-left:20px;overflow:hidden}#report-list-container.list-view .report-header-icon{display:block!important;width:16px;height:16px;flex-shrink:0}#report-list-container.list-view .report-title{font-size:13px;font-weight:400;color:var(--color-text-secondary);transition:.2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#report-list-container.list-view .report-item:hover .report-title{color:var(--color-focus)}#report-list-container.list-view .report-meta-info,#report-list-container.list-view .report-summary-title,#report-list-container.list-view .report-summary-text,#report-list-container.list-view .report-faded-section,#report-list-container.list-view .report-options-icon{display:none}#report-list-container.list-view .report-list-score{display:block!important;font-size:13px;letter-spacing:2px;color:#f59e0b;text-align:left}#report-list-container.list-view .report-list-date{display:block!important;color:var(--color-text-disabled);font-size:12px;text-align:left}
