:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg: #0a0a0a;--surface: #141414;--surface-hover: #1a1a1a;--border: rgba(255, 255, 255, .08);--border-hover: rgba(255, 255, 255, .15);--text: #fafafa;--text-muted: rgba(255, 255, 255, .55);--text-secondary: rgba(255, 255, 255, .7);--accent: #6e8efb;--accent-bg: rgba(110, 142, 251, .12);--accent-hover: #8aa4ff;--danger: #e55757;--danger-bg: rgba(229, 87, 87, .12);--success: #4ade80;--success-bg: rgba(74, 222, 128, .12);--warning: #fbbf24;--warning-bg: rgba(251, 191, 36, .12);--radius: .5rem;--radius-lg: .75rem}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg);color:var(--text)}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.5rem .75rem;outline:none;transition:border-color .15s}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical;min-height:80px}.app-layout{display:flex;min-height:100vh}.sidebar{width:280px;min-width:280px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;height:100vh;position:sticky;top:0}.sidebar-header{padding:1.25rem 1rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.5rem}.sidebar-header h1{font-size:1rem;font-weight:600;letter-spacing:-.02em}.sidebar-header .logo{width:24px;height:24px;background:var(--accent);border-radius:6px;display:grid;place-items:center;font-size:.75rem;font-weight:700}.sidebar-search{padding:.75rem 1rem}.sidebar-search input{width:100%;padding:.4rem .65rem;font-size:.8rem;background:var(--bg)}.sidebar-list{flex:1;overflow-y:auto;padding:.25rem .5rem}.sidebar-section-title{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);padding:.75rem .5rem .25rem}.topic-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .65rem;border-radius:var(--radius);cursor:pointer;font-size:.85rem;transition:background .1s;width:100%;text-align:left}.topic-item:hover{background:var(--surface-hover)}.topic-item.active{background:var(--accent-bg);color:var(--accent)}.topic-item .topic-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}.topic-item .topic-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topic-item .topic-count{font-size:.7rem;color:var(--text-muted);background:var(--bg);padding:.1rem .4rem;border-radius:99px;flex-shrink:0}.topic-item .delete-btn{opacity:0;color:var(--text-muted);font-size:.8rem;padding:.15rem;border-radius:4px;flex-shrink:0;transition:opacity .1s,color .1s}.topic-item:hover .delete-btn{opacity:1}.topic-item .delete-btn:hover{color:var(--danger);background:var(--danger-bg)}.sidebar-footer{padding:.75rem 1rem;border-top:1px solid var(--border)}.btn-new-topic{width:100%;padding:.5rem;background:var(--accent-bg);color:var(--accent);border-radius:var(--radius);font-size:.8rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:.35rem;transition:background .15s}.btn-new-topic:hover{background:#6e8efb33}.main-content{flex:1;display:flex;flex-direction:column;min-width:0}.content-header{padding:1rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:1rem;position:sticky;top:0;background:var(--bg);z-index:10}.content-header h2{font-size:1.1rem;font-weight:600;flex:1;letter-spacing:-.01em}.header-actions{display:flex;gap:.5rem}.btn{padding:.45rem .85rem;border-radius:var(--radius);font-size:.8rem;font-weight:500;transition:background .15s;display:inline-flex;align-items:center;gap:.35rem}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-ghost{color:var(--text-secondary)}.btn-ghost:hover{background:var(--surface-hover);color:var(--text)}.btn-sm{padding:.3rem .6rem;font-size:.75rem}.content-body{flex:1;padding:1.5rem;overflow-y:auto}.status-bar{display:flex;gap:.5rem;margin-bottom:1.25rem;flex-wrap:wrap}.status-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .7rem;border-radius:99px;font-size:.75rem;font-weight:500;cursor:pointer;transition:opacity .15s;border:1px solid transparent}.status-badge:hover{opacity:.85}.status-badge.active{border-color:currentColor}.status-all{background:#ffffff0f;color:var(--text-secondary)}.status-researching{background:var(--accent-bg);color:var(--accent)}.status-reviewing{background:var(--warning-bg);color:var(--warning)}.status-completed{background:var(--success-bg);color:var(--success)}.notes-grid{display:flex;flex-direction:column;gap:.75rem}.note-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem 1.25rem;transition:border-color .15s}.note-card:hover{border-color:var(--border-hover)}.note-card-header{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:.5rem}.note-card-header h3{font-size:.95rem;font-weight:600;flex:1;line-height:1.4}.note-status-dot{width:8px;height:8px;border-radius:50%;margin-top:.35rem;flex-shrink:0}.note-status-dot.researching{background:var(--accent)}.note-status-dot.reviewing{background:var(--warning)}.note-status-dot.completed{background:var(--success)}.note-body{color:var(--text-secondary);font-size:.85rem;line-height:1.6;margin-bottom:.75rem;white-space:pre-wrap}.note-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.note-tag{font-size:.7rem;padding:.15rem .5rem;border-radius:99px;background:#ffffff0f;color:var(--text-muted)}.note-source{font-size:.7rem;color:var(--text-muted);text-decoration:none;padding:.15rem .5rem;border-radius:99px;background:#ffffff0a;transition:color .15s}.note-source:hover{color:var(--accent)}.note-date{font-size:.7rem;color:var(--text-muted);margin-left:auto}.note-actions{display:flex;gap:.25rem;opacity:0;transition:opacity .1s}.note-card:hover .note-actions{opacity:1}.note-actions button{padding:.25rem .4rem;border-radius:4px;font-size:.75rem;color:var(--text-muted)}.note-actions button:hover{background:var(--surface-hover);color:var(--text)}.note-actions button.delete-note:hover{color:var(--danger);background:var(--danger-bg)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;color:var(--text-muted)}.empty-state .empty-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}.empty-state h3{font-size:1rem;margin-bottom:.5rem;color:var(--text-secondary)}.empty-state p{font-size:.85rem;max-width:20rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:100;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;width:90%;max-width:500px;max-height:85vh;overflow-y:auto;animation:slideUp .2s ease}@keyframes slideUp{0%{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.modal h3{font-size:1rem;font-weight:600;margin-bottom:1rem}.form-group{margin-bottom:.85rem}.form-group label{display:block;font-size:.75rem;color:var(--text-muted);margin-bottom:.3rem;text-transform:uppercase;letter-spacing:.05em}.form-group input,.form-group textarea,.form-group select{width:100%}.form-row{display:flex;gap:.75rem}.form-row .form-group{flex:1}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.25rem}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;flex:1}.welcome .welcome-icon{font-size:4rem;margin-bottom:1.5rem;opacity:.6}.welcome h2{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;letter-spacing:-.02em}.welcome p{color:var(--text-muted);font-size:.9rem;max-width:28rem;margin-bottom:2rem;line-height:1.6}.welcome-features{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;max-width:40rem;width:100%}.feature-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;text-align:left}.feature-card .feature-icon{font-size:1.5rem;margin-bottom:.5rem}.feature-card h4{font-size:.85rem;font-weight:600;margin-bottom:.25rem}.feature-card p{font-size:.75rem;color:var(--text-muted);margin:0}@media(max-width:768px){.sidebar{width:240px;min-width:240px}.welcome-features{grid-template-columns:1fr}}
