*{box-sizing:border-box}:root{--bg: #fafafa;--surface: #ffffff;--border: #e0e0e0;--text: #1a1a1a;--text-dim: #666666;--primary: #2563eb;--primary-hover: #1d4ed8;--danger: #dc2626}body.dark{--bg: #0f0f0f;--surface: #1a1a1a;--border: #333333;--text: #e5e5e5;--text-dim: #999999;--primary: #60a5fa;--primary-hover: #93c5fd;--danger: #f87171}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;transition:background .2s,color .2s}.container{max-width:800px;margin:0 auto;padding:2rem 1rem}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.header h1{font-size:1.25rem;font-weight:600;margin:0}.header-actions{display:flex;gap:.5rem}.logo{font-size:1.25rem;font-weight:600;margin:0}.search-input{width:100px;padding:.25rem .5rem;border:1px solid var(--border);border-radius:4px;font-size:.875rem;background:var(--surface);color:var(--text)}.btn-icon{padding:.25rem .5rem;min-width:auto;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:6px;font-size:.875rem;cursor:pointer;transition:background .15s}.btn-icon:hover{background:var(--bg)}.btn-burger{padding:.25rem .5rem;min-width:auto;font-size:1.25rem;line-height:1;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:6px;cursor:pointer;transition:background .15s}.btn-burger:hover{background:var(--bg)}.sidebar{position:fixed;top:0;right:0;bottom:0;width:280px;max-width:85%;background:var(--surface);border-left:1px solid var(--border);z-index:100;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.sidebar-header{display:flex;justify-content:space-between;align-items:center}.sidebar-title{margin:0;font-size:1rem}.quick-create{display:flex;gap:.5rem}.quick-create .btn{flex:1}.project-list{display:flex;flex-direction:column;gap:.75rem}.project-group{display:flex;flex-direction:column;gap:.25rem}.project-label{font-size:.75rem;font-weight:600;margin-bottom:.25rem}.project-label-dim{opacity:.7}.thread-list{padding-left:.5rem;display:flex;flex-direction:column;gap:.25rem}.thread-link{text-align:left;justify-content:flex-start;padding:.25rem .5rem;font-size:.75rem;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:6px;cursor:pointer;transition:background .15s}.thread-link:hover{background:var(--bg)}.thread-selector{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap;align-items:center}.thread-selector select{padding:.5rem 1rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:.875rem;cursor:pointer}.thread-name-input{flex:1;min-width:150px;padding:.5rem .75rem;border:1px solid var(--border);border-radius:6px;font-size:.875rem;background:var(--surface);color:var(--text)}.thread-name-input::placeholder{color:var(--text-dim)}.new-thread-btn{padding:.5rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;font-size:.875rem;cursor:pointer;transition:background .15s}.new-thread-btn:hover{background:var(--bg)}.input-card{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.75rem;margin-bottom:.75rem}.input-card textarea{width:100%;min-height:80px;padding:.5rem;border:1px solid var(--border);border-radius:4px;font-size:.875rem;font-family:inherit;resize:vertical;margin-bottom:.5rem;background:var(--surface);color:var(--text)}.input-card textarea:focus{outline:none;border-color:var(--primary)}.input-area{width:100%;min-height:60px;padding:.5rem;border:1px solid var(--border);border-radius:4px;font-size:.875rem;font-family:inherit;resize:vertical;margin-bottom:.5rem;background:var(--surface);color:var(--text)}.input-actions{display:flex;justify-content:flex-end;gap:.5rem}.btn{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;border:none;transition:background .15s}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:var(--surface);border:1px solid var(--border);color:var(--text)}.btn-secondary:hover{background:var(--bg)}.btn-danger{background:transparent;color:var(--danger)}.btn-danger:hover{background:var(--danger);color:#fff}.btn-small{padding:.25rem .5rem;font-size:.75rem}.dropdown-divider{height:1px;background:var(--border);margin:.25rem 0}.thread-header{margin-bottom:.75rem;display:flex;align-items:center;justify-content:space-between;position:relative}.thread-title{margin:0;font-size:1.125rem;font-weight:600}.btn-gear{padding:.25rem .5rem;min-width:auto;border:none;background:transparent;color:var(--text-dim);font-size:1rem;cursor:pointer;border-radius:4px}.btn-gear:hover{background:var(--border);color:var(--text)}.dropdown{position:absolute;top:100%;right:0;z-index:10;margin-top:.25rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.25rem;min-width:150px;box-shadow:0 4px 12px #00000026}.dropdown-item{display:block;width:100%;text-align:left;padding:.5rem .75rem;border:none;background:transparent;color:var(--text);font-size:.875rem;cursor:pointer;border-radius:4px}.dropdown-item:hover{background:var(--border)}.dropdown-item-danger{color:var(--danger)}.messages-header{margin-bottom:.5rem}.messages-header h2{font-size:.875rem;font-weight:600;margin:0}.messages-list{display:flex;flex-direction:column;gap:.5rem}.message-card{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:.75rem}.message-card p{margin:0 0 .5rem;white-space:pre-wrap;word-break:break-word;font-size:.875rem}.message-actions{display:flex;gap:.5rem;justify-content:flex-end}.projects-section{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border)}.projects-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.projects-header h2{font-size:1rem;font-weight:600;margin:0}.project-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;background:var(--primary);border:1px solid var(--primary);border-radius:999px;font-size:.75rem;color:#fff}.remove-project{cursor:pointer;opacity:.6}.remove-project:hover{opacity:1}.toast{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);background:var(--text);color:var(--bg);padding:.75rem 1.5rem;border-radius:999px;font-size:.875rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.empty-state{text-align:center;padding:2rem;color:var(--text-dim)}
