:root{color:#17202a;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f4f6f8}button,input,textarea{font:inherit}button{border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#17202a;cursor:pointer;font-weight:700;min-height:2.3rem;padding:.45rem .75rem}button:hover:not(:disabled){border-color:#64748b}button:disabled{cursor:not-allowed;opacity:.45}a{color:#1d4ed8;text-decoration:none}.appShell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#17202a;color:#fff;display:grid;grid-template-rows:auto 1fr auto;gap:1.25rem;padding:1rem;position:sticky;top:0;height:100vh}.brand{align-items:center;display:flex;gap:.65rem;min-width:0}.brand span{align-items:center;background:#22c55e;border-radius:6px;color:#0f172a;display:flex;font-size:.75rem;font-weight:900;height:34px;justify-content:center;width:34px}.brand strong{font-size:.95rem;line-height:1.15}.sidebar nav{display:grid;gap:.35rem;align-content:start}.sidebar nav a{border-radius:6px;color:#dbe5ef;font-weight:700;padding:.65rem .7rem}.sidebar nav a.active,.sidebar nav a:hover{background:#283645;color:#fff}.apiBase{color:#aebdcc;font-size:.76rem;overflow-wrap:anywhere}.workspace{margin:0 auto;max-width:1180px;padding:1.25rem;width:100%}.pageHeader{align-items:end;border-bottom:1px solid #d7dee8;display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding-bottom:1rem}.eyebrow{color:#64748b;font-size:.75rem;font-weight:900;letter-spacing:0;margin:0 0 .25rem;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{font-size:1.75rem;line-height:1.1;margin-bottom:.35rem}.pageHeader p:not(.eyebrow){color:#475569;margin-bottom:0}.metricGrid{display:grid;gap:.75rem;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:.9rem}.metric,.panel,.threadDetail,.postCard,.sourceCard{background:#fff;border:1px solid #d7dee8;border-radius:8px}.metric{display:grid;gap:.2rem;min-height:104px;padding:.9rem}.metric span,.metric small,.compactPost span,.eventRow span,.eventRow time,.statusRow span,.context,.postHeader time,.postHeader span,.postBody footer,.sourceCard footer,.sourceCard header span,.searchSummary{color:#64748b;font-size:.85rem}.metric strong{font-size:1.45rem;line-height:1.15;overflow-wrap:anywhere}.dashboardGrid{display:grid;gap:.9rem;grid-template-columns:repeat(2,minmax(0,1fr))}.panel{min-height:240px;overflow:hidden}.panel h2{border-bottom:1px solid #e2e8f0;font-size:.95rem;margin:0;padding:.75rem .85rem}.panelBody{display:grid;gap:.55rem;padding:.75rem}.compactPost{border:1px solid #edf1f5;border-radius:6px;color:inherit;display:grid;gap:.22rem;padding:.65rem}.compactPost p,.eventRow p{color:#334155;font-size:.9rem;line-height:1.35;margin:0;overflow-wrap:anywhere}.statusGroup{display:grid;gap:.35rem}.statusGroup h3{font-size:.86rem;margin:.2rem 0}.statusRow,.eventRow{border:1px solid #edf1f5;border-radius:6px;display:grid;gap:.2rem;padding:.55rem}.statusRow{align-items:center;grid-template-columns:minmax(0,1fr) auto}.toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1rem}.toolbar input{border:1px solid #cbd5e1;border-radius:6px;flex:1 1 320px;min-height:2.3rem;min-width:180px;padding:.45rem .7rem}.toolbar input:focus{border-color:#1d4ed8;outline:2px solid rgba(29,78,216,.16)}.error,.loading,.searchSummary{border:1px solid #d7dee8;margin:0 0 1rem;padding:.8rem}.error{background:#fff1ed;border-color:#fecaca}.loading,.searchSummary{background:#fff}.timeline,.sourceResults{display:grid;gap:.75rem}.timeline.dimmed{opacity:.5}.threadGroup{background:#fff;border:1px solid #d7dee8;border-radius:8px;overflow:hidden}.threadGroup.single{background:transparent;border:0;border-radius:0}.threadLabel{background:#eaf4ff;border-bottom:1px solid #d7dee8;color:#1d4ed8;font-size:.8rem;font-weight:800;padding:.45rem .8rem}.postCard{cursor:pointer;display:grid;gap:.75rem;grid-template-columns:40px minmax(0,1fr);padding:.85rem}.postCard:hover{border-color:#94a3b8}.threadGroup:not(.single) .postCard{border:0;border-bottom:1px solid #edf1f5;border-radius:0}.threadGroup:not(.single) .postCard:last-child{border-bottom:0}.avatar{align-items:center;background:#17202a;border-radius:50%;color:#fff;display:flex;font-size:.78rem;font-weight:900;height:40px;justify-content:center;overflow:hidden;width:40px}.avatar img{height:100%;object-fit:cover;width:100%}.postHeader{align-items:start;display:flex;gap:.75rem;justify-content:space-between}.postHeader div{display:flex;flex-wrap:wrap;gap:.4rem;min-width:0}.postHeader strong,.postHeader span,.postBody p,.sourceCard p,.sourceCard strong{overflow-wrap:anywhere}.postBody p{font-size:.96rem;line-height:1.45;margin:.4rem 0 .55rem;white-space:pre-wrap}.postBody footer,.sourceCard footer{align-items:center;display:flex;flex-wrap:wrap;gap:.55rem}.quote{background:#f8fafc;border:1px solid #d7dee8;border-radius:6px;margin:.55rem 0;padding:.65rem}.quote p{font-size:.9rem;margin-bottom:0}.threadDetail{box-shadow:0 16px 36px #0f172a1f;display:grid;gap:.75rem;margin-bottom:1rem;padding:.85rem}.threadDetailHeader{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;gap:.8rem;padding-bottom:.8rem}.threadDetailHeader h2{font-size:1rem;margin:0 0 .15rem}.threadDetailHeader p{color:#64748b;font-size:.85rem;margin:0}.replyStack{border-left:3px solid #d7dee8;display:grid;gap:.65rem;margin-left:20px;padding-left:.9rem}.nestedPost{background:#fbfcfd}.sourceCard{display:grid;gap:.7rem;padding:.85rem}.chatLayout,.chatTurns,.chatTurn,.chatSources,.chatComposer{display:grid;gap:.8rem}.chatComposer,.chatTurn{background:#fff;border:1px solid #d7dee8;border-radius:8px;padding:.85rem}.sourceToggles{display:flex;flex-wrap:wrap;gap:.55rem}.sourceToggles label{align-items:center;border:1px solid #d7dee8;border-radius:6px;display:flex;gap:.4rem;min-height:2rem;padding:.35rem .55rem}.disabledSource{color:#64748b}.chatComposer textarea{border:1px solid #cbd5e1;border-radius:6px;min-height:140px;padding:.75rem;resize:vertical;width:100%}.chatComposer footer{align-items:center;color:#64748b;display:flex;flex-wrap:wrap;font-size:.85rem;gap:.75rem;justify-content:space-between}.chatTurn header,.chatTurn section{border-bottom:1px solid #edf1f5;padding-bottom:.75rem}.chatTurn header span,.chatMeta{color:#64748b;font-size:.84rem;font-weight:700}.chatTurn p{line-height:1.5;margin:.25rem 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.chatSources{grid-template-columns:repeat(2,minmax(0,1fr))}.chatSource{border:1px solid #edf1f5;border-radius:6px;color:inherit;display:grid;gap:.25rem;padding:.65rem}.chatSource span{color:#64748b;font-size:.83rem}.chatSource p{color:#334155;font-size:.9rem;line-height:1.4}.sourceCard header{align-items:start;display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr) auto}.sourceCard header div{display:grid;gap:.2rem}.sourceCard header b{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:6px;color:#047857;font-size:.8rem;padding:.25rem .4rem}.sourceCard p{line-height:1.45;margin:0}.empty,.emptyLeft{color:#64748b}.empty{text-align:center}.emptyLeft{font-size:.9rem;margin:0}@media(max-width:860px){.appShell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.sidebar nav{display:flex;flex-wrap:wrap}.apiBase{display:none}.metricGrid,.dashboardGrid,.chatSources{grid-template-columns:1fr}.pageHeader{align-items:start;flex-direction:column}}@media(max-width:560px){.workspace{padding:.85rem}.toolbar button{flex:1 1 auto}.postCard{grid-template-columns:34px minmax(0,1fr);padding:.7rem}.avatar{height:34px;width:34px}}
