*{box-sizing:border-box;margin:0;padding:0}html,body{overscroll-behavior:none}:root{--bg: #0a0a0a;--surface: rgba(20, 20, 23, .7);--surface-2: rgba(28, 28, 33, .8);--surface-3: rgba(28, 28, 33, .9);--border: rgba(255, 255, 255, .2);--text: #e4e4e7;--text-muted: #71717a;--accent: #f97316;--accent-dim: #c2410c;--success: #22c55e;--error: #ef4444;--info: #3b82f6;--warning: #eab308}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text);line-height:1.6;min-height:100vh;background:linear-gradient(to bottom right,#cbd5e1,#86efac,#fde047)}.app-layout{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden}.app-content{display:flex;flex:1;min-height:0}.app-left{display:flex;flex-direction:column;min-width:0;height:100%;background:var(--surface-3)}.tab-panel{flex:1;min-height:0;overflow-y:auto}.sidebar-footer{flex-shrink:0;height:52px;display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.8rem;color:var(--text-muted);border-top:1px solid var(--border);margin-top:1px;background-color:var(--surface-2)}.sidebar-footer-divider{opacity:.5}.app-divider{width:1px;background:var(--border);cursor:col-resize;flex-shrink:0;position:relative}.app-divider:before{content:"";position:absolute;top:0;left:-3px;right:-3px;bottom:0;z-index:10}.app-right{display:flex;flex-direction:column;min-width:0;height:100%}.app-right-content{flex:1;min-height:0;overflow:auto}header{flex-shrink:0;background:var(--surface-2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);margin-bottom:1px;position:relative}.header-inner{padding:0 1.5rem;height:2.8rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}h1{font-size:1rem;font-weight:600;display:flex;align-items:center;gap:.4rem;letter-spacing:.02em}.project-btn{background:transparent;border:1px solid var(--border);color:var(--text);padding:.35rem .75rem;border-radius:6px;font-size:.8rem;cursor:pointer;transition:all .15s}.project-btn:hover{border-color:var(--text-muted);background:var(--surface-2)}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--success);animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.watchlist-form{display:flex;align-items:center;background:var(--surface-3);border-bottom:1px solid white;height:2.8rem;padding-right:.5em}.watchlist-form input{flex:1;background:transparent;border:none;padding:.5rem;font-size:.875rem;color:var(--text);min-width:0}.watchlist-form input:focus{outline:none}.watchlist-form input::placeholder{color:var(--text-muted)}.watchlist-form .btn{font-size:.65rem;flex-shrink:0;border-radius:2px}.project-list-modal{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}.project-list-item{background:var(--surface-2);border:1px solid transparent;color:var(--text);padding:.6rem .875rem;border-radius:6px;font-size:.875rem;cursor:pointer;text-align:left;transition:all .15s}.project-list-item:hover{background:var(--border)}.project-list-item.active{border-color:var(--accent);background:#f973161a}.project-list-row{display:flex;gap:.5rem;align-items:stretch}.project-list-row .project-list-item{flex:1}.project-delete-btn{background:transparent;border:1px solid transparent;color:var(--text-muted);font-size:1.25rem;padding:0 .5rem;border-radius:6px;cursor:pointer;transition:all .15s;display:flex;align-items:center}.project-delete-btn:hover{background:#ef444426;color:var(--error);border-color:var(--error)}.delete-confirm-panel{display:flex;flex-direction:column;gap:1rem}.delete-warning{color:var(--error);margin:0;line-height:1.5}.delete-instruction{color:var(--text-muted);margin:0}.delete-instruction code{background:var(--surface-2);padding:.15rem .4rem;border-radius:4px;font-size:.9em;color:var(--text)}.delete-confirm-input{width:100%;padding:.75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.9rem}.delete-confirm-input:focus{outline:none;border-color:var(--error)}.delete-confirm-actions{display:flex;gap:.5rem;justify-content:flex-end}.btn-danger{background:var(--error);color:#fff;border:1px solid var(--error)}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-danger:disabled{opacity:.5;cursor:not-allowed}.new-project-form{display:flex;gap:.5rem;padding-top:.75rem;border-top:1px solid var(--border)}.new-project-form input{flex:1}.btn{padding:.5rem 1rem;border-radius:6px;border:none;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:.5rem}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dim)}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--border)}.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--error);color:#fff}.btn-sm{padding:.25rem .5rem;font-size:.75rem}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:var(--surface);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.card-title{font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.worker-toggle{display:flex;align-items:center;gap:.75rem}.toggle{position:relative;width:48px;height:26px;background:var(--surface-2);border-radius:13px;cursor:pointer;border:1px solid var(--border);transition:all .2s}.toggle.active{background:var(--success);border-color:var(--success)}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:all .2s}.toggle.active:after{left:25px}.form-row{display:flex;gap:.5rem;margin-bottom:1rem}input,select{flex:1;padding:.75rem;border-radius:6px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:.875rem}input:focus,select:focus{outline:none;border-color:var(--accent)}input::placeholder{color:var(--text-muted)}.input-prefix{display:flex;align-items:center;padding:0 .25rem 0 .75rem;background:var(--surface-2);border:1px solid var(--border);border-right:none;border-radius:6px 0 0 6px;color:var(--text-muted);font-size:.875rem;margin-right:-.5rem}.input-with-prefix{border-radius:0 6px 6px 0;padding-left:.25rem}.watchlist{overflow-y:auto;overscroll-behavior:contain}.watchlist-item{border-bottom:1px solid var(--border)}.watchlist-item:last-child{border-bottom:none}.watchlist-item-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background .15s}.watchlist-item-header:hover{background:var(--surface-2)}.watchlist-item-title{display:flex;align-items:center;gap:.4rem;flex:1;min-width:0}.watchlist-type-label{font-size:.6rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;background:var(--surface-2);padding:.1rem .35rem;border-radius:3px}.watchlist-subreddit{font-size:.8rem;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.watchlist-item-details{display:flex;flex-direction:column;gap:.6rem;padding:.75rem 0 .75rem 1.5rem;background:var(--surface-2);border-top:1px solid var(--border)}.watchlist-item-stats{display:flex;justify-content:space-between}.watchlist-stat{display:flex;flex-direction:column;gap:.2rem}.watchlist-stat-label{font-size:.65rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.watchlist-stat-value{font-size:.85rem;color:var(--text);font-weight:500}.watchlist-actions{display:flex;gap:.5rem;justify-content:flex-end;align-items:center}.watchlist-status{font-size:.75rem;color:var(--text-muted);font-style:italic}.watchlist-item.selected,.watchlist-item.selected .watchlist-item-header{background:var(--surface-2)}.watchlist-item.selected .watchlist-subreddit{color:var(--accent)}.watchlist-processing{font-size:.55rem;text-transform:uppercase;letter-spacing:.03em;padding:.1rem .35rem;background:#eab30826;color:var(--warning);border-radius:3px;flex-shrink:0}.posts-header-actions{display:flex;gap:.5rem;align-items:center;margin-left:auto}.settings-btn{display:flex;align-items:center;justify-content:center;padding:.4rem;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text-muted);cursor:pointer;transition:all .15s}.settings-btn:hover{background:var(--surface-2);color:var(--text);border-color:var(--text-muted)}.settings-modal-content{display:flex;flex-direction:column;gap:1.5rem}.settings-section{display:flex;flex-direction:column;gap:.75rem}.settings-section-header h4{margin:0;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.settings-loading,.settings-empty{font-size:.85rem;color:var(--text-muted);padding:.5rem 0}.settings-runs-list{display:flex;flex-direction:column;gap:.5rem}.settings-run-item{display:flex;align-items:center;gap:1rem;padding:.6rem .75rem;background:var(--surface-2);border-radius:6px}.settings-run-date{font-size:.8rem;color:var(--text);min-width:140px}.settings-run-status{flex-shrink:0}.settings-run-count{font-size:.8rem;color:var(--text-muted);margin-left:auto}.settings-max-items{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.settings-max-items label{font-size:.8rem;color:var(--text-muted);white-space:nowrap}.settings-input{width:80px;padding:.4rem .5rem;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:.85rem}.settings-input:focus{outline:none;border-color:var(--accent)}.settings-actions-row{display:flex;gap:.5rem}.btn-danger{background:transparent;border:1px solid var(--error);color:var(--error)}.btn-danger:hover{background:#ef44441a}.badge{font-size:.7rem;padding:.2rem .6rem;border-radius:4px;font-weight:500;text-transform:uppercase}.badge-pending{background:#eab30826;color:var(--warning)}.badge-building{background:#3b82f626;color:var(--info)}.badge-processing{background:#8b5cf626;color:#8b5cf6}.badge-completed{background:#22c55e26;color:var(--success)}.badge-failed{background:#ef444426;color:var(--error)}.badge-project{background:#f9731626;color:var(--accent)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media(max-width:800px){.grid-2{grid-template-columns:1fr}}.job-status{display:flex;align-items:center;gap:.5rem;font-size:.75rem;padding:.25rem .75rem;border-radius:999px;background:var(--surface-2)}.job-status.running{background:#22c55e26;color:var(--success)}.job-status.running .status-indicator{width:6px;height:6px;border-radius:50%;background:var(--success);animation:pulse 1s infinite}.log-container{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.log-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}.log-title{font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.log-output{height:300px;overflow-y:auto;overscroll-behavior:contain;padding:1rem;font-family:SF Mono,Monaco,Cascadia Code,monospace;font-size:.8rem;line-height:1.8;white-space:pre-wrap;word-break:break-word}.log-output:empty:before{content:"Worker logs will appear here when the auto-worker is running.";color:var(--text-muted)}.log-line{padding:.125rem 0}.log-time{color:var(--text-muted);margin-right:.5rem}.sessions-content{flex:1;display:flex;flex-direction:column;min-height:0}.sessions-list{flex:1;overflow-y:auto;overscroll-behavior:contain}.session-item{display:flex;flex-direction:column;gap:.25rem;padding:.6rem 1rem .6rem .75rem;border-bottom:1px solid var(--border);border-left:2px solid transparent;font-size:.8rem;cursor:pointer;transition:all .15s}.session-item:last-child{border-bottom:none}.session-item:hover{background:var(--surface-2)}.session-item.selected{background:#f973161a;border-left-color:var(--accent)}.session-header{display:flex;align-items:center;justify-content:space-between}.session-info{display:flex;align-items:center;gap:.5rem}.session-id{font-weight:600;color:var(--accent)}.session-stats{font-size:.75rem;color:var(--text-muted)}.empty-state{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem}.tabs{display:flex;gap:.25rem}.tab{padding:.5rem 1rem;background:transparent;border:none;color:var(--text-muted);font-size:.875rem;cursor:pointer;transition:all .15s}.tab:hover{color:var(--text)}.tab.active{color:var(--accent);font-weight:500}.tab-content{display:none;flex:1;min-height:0;padding:1rem}.tab-content.active{display:flex;flex-direction:column}.tab-content.active:has(.sessions-content){padding:0}.manual-controls{display:flex;gap:1rem}.manual-control{flex:1}.manual-control label{display:block;font-size:.75rem;color:var(--text-muted);margin-bottom:.5rem}.project-list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.project-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--surface-2);border-radius:6px;font-size:.875rem;cursor:pointer}.project-chip.active{background:#f9731626;border:1px solid var(--accent)}.project-chip .delete-project{color:var(--text-muted);cursor:pointer;font-size:1rem;line-height:1}.project-chip .delete-project:hover{color:var(--error)}.modal-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;z-index:100;align-items:center;justify-content:center}.modal-overlay.active{display:flex}.modal{background:var(--surface);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border);border-radius:12px;padding:1.5rem;width:90%;max-width:400px;max-height:80vh;overflow-y:auto}.modal.modal-wide{max-width:500px}.modal h3{margin-bottom:1rem}.modal .form-row{margin-bottom:.5rem}.modal-buttons{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}.worker-panel{flex-shrink:0;display:flex;flex-direction:column;background:var(--surface-2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);margin-top:1px;position:relative}.worker-resize-handle{position:absolute;top:0;left:0;right:0;height:6px;cursor:ns-resize;background:transparent;z-index:10}.worker-resize-handle:hover{background:var(--text-muted);opacity:.3}.worker-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;gap:1rem;flex-shrink:0}.worker-status-row{display:flex;gap:2rem}.worker-job{display:flex;align-items:center;gap:.5rem}.worker-job-label{font-size:.7rem;font-weight:500;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.worker-job-value{font-size:.8rem;color:var(--text-muted);padding:.2rem .6rem;background:var(--surface-2);border-radius:4px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.worker-job-value.active{color:var(--success);background:#22c55e1f}.worker-controls{display:flex;align-items:center;gap:1rem}.worker-toggle-compact{display:flex;align-items:center;gap:.5rem}.worker-toggle-label{font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.toggle-sm{position:relative;width:36px;height:20px;background:var(--surface-2);border-radius:10px;cursor:pointer;border:1px solid var(--border);transition:all .2s}.toggle-sm.active{background:var(--success);border-color:var(--success)}.toggle-sm:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transition:all .2s}.toggle-sm.active:after{left:18px}.worker-collapse-btn{background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);font-size:.65rem;cursor:pointer;padding:.25rem .5rem;border-radius:4px;transition:all .15s;line-height:1}.worker-collapse-btn:hover{color:var(--text);border-color:var(--text-muted)}.worker-logs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.5rem 1rem;font-family:SF Mono,Monaco,Cascadia Code,monospace;font-size:.75rem;line-height:1.6}.worker-logs-empty{color:var(--text-muted);text-align:center;padding:1.5rem;font-family:inherit;font-size:.8rem}.worker-log-line{display:flex;gap:.75rem;padding:.1rem 0}.worker-log-time{color:var(--text-muted);flex-shrink:0;opacity:.6}.worker-log-msg{color:var(--text);word-break:break-word}.watchlist-content{flex:1;display:flex;flex-direction:column;min-height:0}.watchlist-content .form-row{margin-bottom:0rem;flex-shrink:0}.watchlist-content .watchlist{margin-top:0rem;flex:1;max-height:none}.posts-panel{display:flex;flex-direction:column;height:100%;background:var(--surface)}.detail-panel{display:flex;flex-direction:column;height:100%}.detail-header{display:flex;align-items:center;justify-content:space-between;height:2.8rem;padding:0 1rem;background:var(--surface-2);flex-shrink:0}.detail-title{font-weight:600;font-size:.9rem}.detail-tabs{display:flex;gap:.25rem}.detail-tab{padding:.4rem .75rem;background:transparent;border:none;border-radius:4px;color:var(--text-muted);font-size:.8rem;cursor:pointer;transition:all .15s}.detail-tab:hover,.detail-tab.active{color:var(--text);background:var(--surface-3)}.detail-content{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.posts-view{display:flex;flex-direction:column;height:100%}.posts-subheader{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;flex-shrink:0}.settings-view{padding:1rem;overflow-y:auto}.insights-view{display:flex;flex-direction:column;height:100%;overflow-y:auto}.insights-loading,.insights-error{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted)}.insights-error{color:var(--error)}.insights-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:var(--text-muted)}.insights-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}.insights-placeholder h3{margin:0 0 .5rem;color:var(--text);font-size:1.1rem}.insights-description{font-size:.875rem;margin:0 0 1rem}.insights-coming-soon{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;opacity:.6}.insights-content{padding:1rem}.insights-stats{display:flex;gap:1rem;margin-bottom:1.5rem}.insights-stat{flex:1;display:flex;flex-direction:column;align-items:center;padding:1rem;background:var(--surface-2);border-radius:8px}.stat-value{font-size:1.5rem;font-weight:600;color:var(--text)}.stat-label{font-size:.75rem;color:var(--text-muted);margin-top:.25rem}.insights-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}@media(max-width:900px){.insights-grid{grid-template-columns:1fr}}.insights-card{background:var(--surface-2);border-radius:8px;overflow:hidden}.insights-card-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border)}.insights-card-header h3{margin:0;font-size:.85rem;font-weight:600}.insights-tabs{display:flex;gap:.25rem}.insights-tab{padding:.25rem .5rem;background:transparent;border:none;border-radius:4px;color:var(--text-muted);font-size:.7rem;cursor:pointer;transition:all .15s}.insights-tab:hover,.insights-tab.active{color:var(--text);background:var(--surface-3)}.insights-list{max-height:320px;overflow-y:auto}.insights-list-item{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;border-bottom:1px solid var(--border)}.insights-list-item:last-child{border-bottom:none}.insights-rank{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;background:var(--surface-3);border-radius:4px;font-size:.7rem;font-weight:600;color:var(--text-muted);flex-shrink:0}.insights-user{flex:1;color:var(--accent);text-decoration:none;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-user:hover{text-decoration:underline}.insights-metric{font-size:.8rem;color:var(--text);white-space:nowrap}.insights-secondary{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.insights-post-item{align-items:flex-start}.insights-post-content{flex:1;min-width:0}.insights-post-title{display:block;color:var(--text);text-decoration:none;font-size:.8rem;line-height:1.3;margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.insights-post-title:hover{color:var(--accent)}.insights-post-meta{display:flex;gap:.75rem;font-size:.7rem;color:var(--text-muted)}.insights-empty{padding:1.5rem;text-align:center;color:var(--text-muted);font-size:.85rem}.posts-header{display:flex;align-items:center;gap:.75rem;height:2.8em;padding:0px 1rem;border-bottom:1px solid var(--border);flex-shrink:0}.posts-title{font-weight:600;font-size:.9rem}.posts-count{font-size:.75rem;color:var(--text-muted)}.posts-list{flex:1;overflow-y:auto;overscroll-behavior:contain}.posts-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-size:.875rem}.post-item{display:block;padding:.75rem 1rem;border-bottom:1px solid var(--border);text-decoration:none;color:inherit;transition:background .15s}.post-item.has-thumbnail{display:flex;gap:.75rem;align-items:flex-start}.post-thumbnail{flex-shrink:0;width:70px;height:52px;border-radius:4px;overflow:hidden;background:var(--bg-tertiary)}.post-thumbnail img{width:100%;height:100%;object-fit:cover}.post-content-wrapper{flex:1;min-width:0}.post-item:hover{background:var(--surface-2)}.post-title-row{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.35rem}.post-title-text{flex:1;font-size:.85rem;line-height:1.4;color:var(--text)}.post-reddit-link{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:.75rem;color:var(--text-muted);background:var(--surface-2);border:1px solid var(--border);border-radius:4px;text-decoration:none;transition:all .15s}.post-reddit-link:hover{color:var(--accent);border-color:var(--accent);background:#f973161a}a.post-title{display:block;font-size:.85rem;line-height:1.4;margin-bottom:.35rem;color:var(--text);text-decoration:none}a.post-title:hover{color:var(--accent)}.post-meta{display:flex;gap:1rem;font-size:.7rem;color:var(--text-muted)}.post-score{color:var(--accent);font-weight:500}.post-date{color:var(--text-muted)}.post-content{font-size:.8rem;line-height:1.5;color:var(--text);margin:.5rem 0;padding:.75rem;background:var(--surface-2);border-radius:6px;max-height:80px;overflow:hidden;cursor:pointer;position:relative}.post-content:after{content:"";position:absolute;bottom:0;left:0;right:0;height:40px;background:linear-gradient(transparent,var(--surface-2));pointer-events:none}.post-content.expanded{max-height:none}.post-content.expanded:after{display:none}.post-content p{margin:0 0 .5rem}.post-content p:last-child{margin-bottom:0}.post-content a{color:var(--accent)}.post-expand-toggle{color:var(--accent);cursor:pointer;margin-left:auto}.post-expand-toggle:hover{text-decoration:underline}.post-expand-indicator{color:var(--text-muted);font-size:.6rem;margin-left:auto}.post-item.has-content:hover .post-title-text{color:var(--accent)}.activity-item{position:relative}.activity-type-badge{display:inline-block;font-size:.6rem;font-weight:600;letter-spacing:.05em;padding:.15rem .4rem;border-radius:3px;margin-bottom:.35rem;background:#8b5cf626;color:#8b5cf6}.activity-item.post .activity-type-badge{background:#3b82f626;color:var(--info)}.activity-item.comment .activity-type-badge{background:#22c55e26;color:var(--success)}.activity-parent{display:flex;gap:.4rem;font-size:.75rem;color:var(--text-muted);margin-bottom:.35rem}.activity-parent-label{opacity:.7}.activity-parent-title{color:var(--text);opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-content{font-size:.8rem;line-height:1.5;color:var(--text);opacity:.9;margin-bottom:.35rem;max-height:4.5em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;cursor:pointer;transition:max-height .2s ease}.activity-content.expanded{max-height:none;display:block;-webkit-line-clamp:unset}.activity-content p{margin:0 0 .5em}.activity-content p:last-child{margin-bottom:0}.activity-content a{color:var(--accent)}.activity-link{text-decoration:none;color:var(--text)}.activity-link:hover{color:var(--accent)}.activity-parent{text-decoration:none}.activity-parent:hover .activity-parent-title{color:var(--accent)}.activity-expand-toggle{color:var(--accent);cursor:pointer;font-size:.65rem;text-transform:uppercase;letter-spacing:.03em}.activity-expand-toggle:hover{text-decoration:underline}.post-subreddit{color:var(--text-muted)}.sort-bar{display:flex;gap:.25rem;padding:.5rem 1rem;background:var(--surface-2);border-bottom:1px solid var(--border);flex-shrink:0}.sort-btn{background:transparent;border:1px solid var(--border);color:var(--text-muted);padding:.3rem .6rem;border-radius:4px;font-size:.7rem;cursor:pointer;transition:all .15s}.sort-btn:hover{border-color:var(--text-muted);color:var(--text)}.sort-btn.active{background:#f9731626;border-color:var(--accent);color:var(--accent)}.pagination-bar{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background:var(--surface-2);border-top:1px solid var(--border);flex-shrink:0}.pagination-info{font-size:.7rem;color:var(--text-muted)}.pagination-controls{display:flex;align-items:center;gap:.25rem}.pagination-btn{background:transparent;border:1px solid var(--border);color:var(--text-muted);padding:.25rem .5rem;border-radius:4px;font-size:.7rem;cursor:pointer;transition:all .15s;min-width:28px}.pagination-btn:hover:not(:disabled){border-color:var(--text-muted);color:var(--text)}.pagination-btn:disabled{opacity:.4;cursor:not-allowed}.pagination-current{font-size:.7rem;color:var(--text);padding:0 .5rem}.profile-btn{background:transparent;border:1px solid var(--border);color:var(--text-muted);padding:.25rem .6rem;border-radius:4px;font-size:.75rem;cursor:pointer;transition:all .15s}.profile-btn:hover{border-color:var(--accent);color:var(--accent);background:#f973161a}.profile-actions{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.generate-profile-btn{background:var(--accent);border:none;color:var(--bg);padding:.5rem 1rem;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s}.generate-profile-btn:hover:not(:disabled){filter:brightness(1.1)}.generate-profile-btn:disabled{opacity:.6;cursor:not-allowed}.generating-hint{font-size:.75rem;color:var(--text-muted);font-style:italic}.profile-history{margin-bottom:1rem}.profile-history-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:.5rem}.profile-history-list{display:flex;flex-direction:column;gap:.25rem;max-height:120px;overflow-y:auto}.profile-history-item{display:flex;justify-content:space-between;align-items:center;padding:.4rem .6rem;border-radius:4px;background:#ffffff08;border:1px solid transparent;cursor:pointer;transition:all .15s}.profile-history-item:hover{background:#ffffff0f;border-color:var(--border)}.profile-history-item.active{background:#f973161a;border-color:var(--accent)}.profile-history-date{font-size:.7rem;color:var(--text-muted)}.profile-history-summary{font-size:.75rem;color:var(--text)}.profile-details{border-top:1px solid var(--border);padding-top:1rem}.profile-details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;font-size:.7rem;color:var(--text-muted)}.profile-details-date{font-weight:500}.profile-details-activity{opacity:.7}.profile-empty{text-align:center;padding:2rem 1rem;color:var(--text-muted)}.profile-empty p{margin:0}.profile-empty-hint{font-size:.8rem;margin-top:.5rem;opacity:.7}.profile-loading{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:1rem}.profile-loading p{color:var(--text-muted);font-size:.85rem}.profile-spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.profile-error{text-align:center;padding:1rem}.profile-error p{color:var(--error);margin-bottom:1rem;font-size:.85rem}.profile-error button{background:#f9731626;border:1px solid var(--accent);color:var(--accent);padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.8rem;transition:all .15s}.profile-error button:hover{background:var(--accent);color:var(--bg)}.profile-content{display:flex;flex-direction:column;gap:.75rem}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem}@media(max-width:400px){.profile-grid{grid-template-columns:1fr}}.profile-field{display:flex;flex-direction:column;gap:.25rem}.profile-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.profile-value{font-size:.85rem;color:var(--text);line-height:1.5}.profile-tags{display:flex;flex-wrap:wrap;gap:.35rem}.profile-tag{background:#8b5cf626;color:#a78bfa;font-size:.7rem;padding:.2rem .5rem;border-radius:4px}.profile-summary{margin-top:.5rem;padding-top:.75rem;border-top:1px solid var(--border)}.profile-summary .profile-value{margin:0}
