:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f7f8f3;color:#1f2823;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}.app-shell{min-height:100vh;padding:22px}.topbar{align-items:end;display:flex;gap:24px;justify-content:space-between;margin:0 auto 18px;max-width:1680px}.eyebrow{color:#647067;font-size:.78rem;font-weight:700;letter-spacing:0;margin:0 0 4px;text-transform:uppercase}h1,h2,h3,h4,p{margin:0}h1{font-size:clamp(1.8rem,3vw,3rem);line-height:1.05}.summary-strip{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(96px,1fr))}.screen-tabs{display:flex;gap:8px;margin-top:14px}.screen-tabs button{align-items:center;background:#fff;border:1px solid #cbd6cb;border-radius:7px;color:#425046;display:inline-flex;gap:8px;min-height:38px;padding:0 12px}.screen-tabs button.is-active{background:#23342c;border-color:#23342c;color:#fff}.summary-item{background:#fff;border:1px solid #dde4d9;border-radius:8px;padding:10px 14px}.summary-item span,.muted{color:#66736b;font-size:.84rem}.summary-item strong{display:block;font-size:1.35rem;line-height:1.1;margin-top:3px}.dashboard-grid{display:grid;gap:16px;grid-template-columns:280px minmax(320px,460px) minmax(460px,1fr);grid-template-rows:auto 1fr;margin:0 auto;max-width:1680px}.cluster-layout{display:grid;gap:16px;grid-template-columns:340px minmax(420px,.9fr) minmax(460px,1.1fr);margin:0 auto;max-width:1680px}.filters-panel,.threads-panel,.insights-panel,.detail-panel,.cluster-sidebar,.cluster-items-panel,.cluster-detail-panel,.clusters-empty-panel{background:#fff;border:1px solid #dde4d9;border-radius:8px;min-width:0}.filters-panel{align-self:start;display:flex;flex-direction:column;gap:16px;grid-row:1 / span 2;padding:16px;position:sticky;top:16px}.threads-panel{grid-row:1 / span 2;overflow:hidden}.insights-panel{padding:16px}.detail-panel{min-height:640px;overflow:hidden}.cluster-sidebar,.cluster-items-panel,.cluster-detail-panel{min-height:calc(100vh - 144px)}.cluster-sidebar{align-self:start;display:flex;flex-direction:column;gap:12px;padding:16px;position:sticky;top:16px}.cluster-items-panel,.cluster-detail-panel{overflow:hidden}.clusters-empty-panel{display:grid;grid-column:1 / -1;min-height:420px;place-content:center}.panel-title,.panel-header,.comments-header{align-items:center;display:flex;gap:8px}.panel-title{color:#25352d;font-weight:800}.panel-header{border-bottom:1px solid #e5eadf;justify-content:space-between;padding:14px 16px}.field{display:grid;gap:7px}.field>span{color:#47554c;font-size:.82rem;font-weight:700}.tooltip-label{align-items:center;display:inline-flex;gap:6px;min-width:0}.tooltip-trigger{align-items:center;border-radius:999px;color:#6a766e;display:inline-flex;line-height:1;outline:none;position:relative}.tooltip-trigger:hover,.tooltip-trigger:focus-visible{color:#24795b}.tooltip-trigger:focus-visible{box-shadow:0 0 0 3px #24795b29}.tooltip-bubble{background:#223029;border-radius:7px;bottom:calc(100% + 8px);box-shadow:0 10px 24px #1f282338;color:#fff;font-size:.78rem;font-weight:600;left:0;line-height:1.35;max-width:min(300px,calc(100vw - 36px));opacity:0;padding:9px 10px;pointer-events:none;position:absolute;text-transform:none;transform:translateY(4px);transition:opacity .12s ease,transform .12s ease;visibility:hidden;width:max-content;z-index:20}.tooltip-bubble:after{border:6px solid transparent;border-top-color:#223029;content:"";left:8px;position:absolute;top:100%}.tooltip-trigger:hover .tooltip-bubble,.tooltip-trigger:focus-visible .tooltip-bubble{opacity:1;transform:translateY(0);visibility:visible}.field-row{align-items:center;display:flex;justify-content:space-between}.field-row>span{color:#47554c;font-size:.82rem;font-weight:700}.text-button{background:transparent;border:0;color:#24795b;font-size:.82rem;font-weight:800;padding:0}.search-box{align-items:center;border:1px solid #cbd6cb;border-radius:7px;display:flex;gap:8px;padding:0 10px}.search-box:focus-within{border-color:#24795b;box-shadow:0 0 0 3px #24795b29}input,select{background:#fff;border:1px solid #cbd6cb;border-radius:7px;color:#1f2823;min-height:40px;outline:none;width:100%}input{border:0}select{padding:0 10px}.secondary-button{align-items:center;background:#23342c;border:1px solid #23342c;border-radius:7px;color:#fff;display:inline-flex;gap:8px;justify-content:center;min-height:40px;padding:0 12px}.search-controls{display:grid;gap:8px}.accordion-section{border-bottom:1px solid #e5eadf;display:grid;gap:12px;padding-bottom:12px}.accordion-section summary{align-items:center;cursor:pointer;display:flex;justify-content:space-between;list-style:none}.accordion-section summary::-webkit-details-marker{display:none}.accordion-section summary:after{color:#66736b;content:"+";font-size:1.1rem;font-weight:800}.accordion-section[open] summary:after{content:"-"}.accordion-section summary h2{font-size:.92rem;line-height:1.2}.accordion-body,.dynamic-cluster-controls{display:grid;gap:12px}.subreddit-options{border:1px solid #dbe7d6;border-radius:8px;display:grid;gap:2px;max-height:180px;overflow:auto;padding:6px}.compact-options{border:1px solid #dbe7d6;border-radius:8px;display:grid;gap:2px;grid-template-columns:1fr 1fr;padding:6px}.checkbox-row{align-items:center;border-radius:6px;color:#3c4a41;display:flex;gap:8px;min-height:28px;padding:4px 6px}.checkbox-row:hover{background:#f2f7ef}.checkbox-row input{min-height:auto;width:auto}.checkbox-row span{font-size:.84rem}.segmented-control{background:#eef4eb;border:1px solid #dbe7d6;border-radius:8px;display:grid;gap:4px;grid-template-columns:1fr 1fr;padding:4px}.segmented-control button{background:transparent;border:0;border-radius:6px;color:#536057;font-size:.84rem;font-weight:800;min-height:32px}.segmented-control button.is-active{background:#fff;color:#1f2823;box-shadow:0 1px 2px #1f28231f}.search-status{color:#536057;font-size:.82rem;line-height:1.35}.search-status.is-error{color:#a13d2d;overflow-wrap:anywhere}.source-breakdown{border-top:1px solid #e5eadf;display:grid;gap:10px;padding-top:14px}.source-breakdown h2{font-size:.92rem}.source-row{align-items:center;color:#536057;display:flex;font-size:.9rem;justify-content:space-between}.source-row strong{color:#1f2823}.cluster-meta{display:grid;gap:8px;grid-template-columns:1fr 1fr}.cluster-list{display:grid;gap:8px;max-height:calc(100vh - 360px);overflow:auto;padding-right:2px}.cluster-row{background:#fff;border:1px solid #e1e8dd;border-radius:8px;color:inherit;display:grid;gap:8px;padding:11px;text-align:left;width:100%}.cluster-row:hover,.cluster-row.is-selected,.cluster-item:hover,.cluster-item.is-selected{background:#f2f7ef;border-color:#a8c8b8}.cluster-row.is-selected,.cluster-item.is-selected{box-shadow:inset 4px 0 #24795b}.cluster-row-main strong{display:block;font-size:.86rem;margin-bottom:4px}.cluster-row-main p,.cluster-item p,.example-row p{color:#334038;font-size:.9rem;line-height:1.35}.cluster-row-counts{color:#647067;display:flex;flex-wrap:wrap;font-size:.78rem;font-weight:700;gap:8px}.cluster-heading{align-items:start;border-bottom:1px solid #e5eadf;display:flex;gap:16px;justify-content:space-between;padding:18px}.cluster-heading h2{font-size:1.25rem;line-height:1.25}.cluster-total{background:#f7faf5;border:1px solid #e4eadf;border-radius:8px;min-width:96px;padding:9px 12px;text-align:right}.cluster-total strong{display:block;font-size:1.15rem;line-height:1.1}.cluster-total span{color:#66736b;font-size:.78rem}.keyword-strip{border-bottom:1px solid #edf1e9;display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px}.keyword-strip span{background:#eef4eb;border:1px solid #dbe7d6;border-radius:999px;color:#3d4d43;font-size:.78rem;font-weight:700;padding:4px 9px}.cluster-stats{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px 18px}.cluster-detail-body .cluster-stats{grid-template-columns:repeat(3,minmax(0,1fr));padding:18px}.count-block{background:#f9fbf7;border:1px solid #e4eadf;border-radius:8px;padding:10px}.count-block h3,.examples-panel h3{font-size:.86rem;margin-bottom:8px}.count-block div{display:flex;flex-wrap:wrap;gap:6px}.count-block span{background:#fff;border:1px solid #e7ece4;border-radius:999px;color:#536057;font-size:.76rem;padding:3px 7px}.count-block strong{color:#1f2823}.item-list-header{align-items:center;border-top:1px solid #edf1e9;display:flex;justify-content:space-between;padding:14px 18px 10px}.cluster-item-list{display:grid;gap:8px;max-height:calc(100vh - 478px);overflow:auto;padding:0 18px 18px}.cluster-item{background:#fff;border:1px solid #e1e8dd;border-radius:8px;color:inherit;display:grid;gap:7px;padding:11px 12px;text-align:left;width:100%}.cluster-item span{color:#647067;font-size:.78rem;font-weight:800}.cluster-detail-body{max-height:calc(100vh - 244px);overflow:auto}.examples-panel{border-top:1px solid #edf1e9;padding:18px}.example-list{display:grid;gap:10px}.example-row{border:1px solid #e4eadf;border-radius:8px;padding:11px}.thread-list{height:calc(100vh - 142px);overflow:auto}.load-more-row{border-top:1px solid #edf1e9;display:flex;justify-content:center;padding:14px 16px}.thread-row{align-items:center;background:#fff;border-bottom:1px solid #edf1e9;color:inherit;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto;min-height:132px;padding:14px 16px;text-align:left;width:100%}.thread-row-button{background:transparent;border:0;color:inherit;min-width:0;padding:0;text-align:left}.thread-row:hover,.thread-row.is-selected{background:#f2f7ef}.thread-row.is-selected{box-shadow:inset 4px 0 #24795b}.thread-meta{color:#66736b;display:flex;flex-wrap:wrap;font-size:.76rem;font-weight:700;gap:7px;margin-bottom:7px;text-transform:uppercase}.thread-meta span{overflow-wrap:anywhere}.thread-row h3{font-size:1rem;line-height:1.25;margin-bottom:7px}.thread-row p{color:#59665d;font-size:.9rem}.row-end{align-items:center;display:flex;gap:8px}.reddit-link{align-items:center;background:#fff;border:1px solid #cbd6cb;border-radius:7px;color:#405147;display:inline-flex;justify-content:center;min-height:28px;min-width:28px;padding:0;text-decoration:none}.reddit-link:hover{border-color:#24795b;color:#116344}.icon-select-button{align-items:center;background:transparent;border:0;color:#536057;display:inline-flex;justify-content:center;min-height:28px;min-width:28px;padding:0}.signal-badge{border-radius:999px;display:inline-flex;font-size:.76rem;font-weight:800;justify-content:center;min-width:72px;padding:5px 9px;white-space:nowrap}.signal-high{background:#dcf4e7;color:#116344}.signal-medium{background:#fff0c2;color:#785100}.signal-low{background:#e9edf3;color:#445062}.signal-none,.signal-unparsed{background:#f2e7e0;color:#6d4c3e}.bars{display:grid;gap:14px;margin-top:14px}.bar-row{display:grid;gap:6px}.bar-label{display:flex;font-size:.9rem;justify-content:space-between}.bar-track{background:#e9eee5;border-radius:999px;height:10px;overflow:hidden}.bar-track div{background:#24795b;border-radius:inherit;height:100%}.detail-header{align-items:start;border-bottom:1px solid #e5eadf;display:flex;gap:16px;justify-content:space-between;padding:18px}.detail-header h2{font-size:1.45rem;line-height:1.2}.split-reader{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(320px,1.2fr);min-height:584px}.analysis-card,.context-card{min-width:0;padding:18px}.analysis-card{border-right:1px solid #e5eadf}.analysis-card h3,.context-card h3{font-size:1rem;margin-bottom:14px}.analysis-grid{display:grid;gap:11px}.analysis-item{background:#f7faf5;border:1px solid #e4eadf;border-radius:8px;padding:11px}.analysis-item span,.text-block h4,.comments-header{color:#536057;font-size:.78rem;font-weight:800;text-transform:uppercase}.analysis-item p,.text-block p{color:#223029;font-size:.94rem;margin-top:5px;overflow-wrap:anywhere;white-space:pre-wrap}.context-card{max-height:calc(100vh - 255px);overflow:auto}.text-block{border-bottom:1px solid #edf1e9;padding:0 0 15px}.text-block+.text-block,.comments-header{margin-top:15px}.comments-list{display:grid;gap:0;margin-top:12px}.empty-state{display:grid;min-height:420px;place-content:center;text-align:center}.empty-state p{color:#66736b}.inline-state{color:#536057;display:grid;gap:4px;padding:18px}.inline-state strong{color:#223029}@media(max-width:1220px){.dashboard-grid{grid-template-columns:260px minmax(320px,1fr)}.cluster-layout{grid-template-columns:300px minmax(0,1fr)}.insights-panel{grid-column:2;grid-row:1}.threads-panel{grid-row:2}.detail-panel,.cluster-detail-panel{grid-column:1 / -1}}@media(max-width:820px){.app-shell{padding:14px}.topbar,.dashboard-grid,.cluster-layout,.split-reader{display:grid;grid-template-columns:1fr}.summary-strip{grid-template-columns:repeat(3,1fr)}.filters-panel,.threads-panel,.insights-panel,.detail-panel,.cluster-sidebar,.cluster-items-panel,.cluster-detail-panel{grid-column:auto;grid-row:auto}.filters-panel,.cluster-sidebar{position:static}.thread-list,.cluster-list,.cluster-item-list{height:480px;max-height:480px}.cluster-stats,.cluster-detail-body .cluster-stats{grid-template-columns:1fr}.analysis-card{border-bottom:1px solid #e5eadf;border-right:0}.context-card{max-height:none}.detail-header{display:grid}}@media(max-width:520px){.summary-strip,.thread-row{grid-template-columns:1fr}.row-end{justify-content:space-between}}
