:root{color:#1f2937;background:#f6f7f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;overflow-x:hidden}button,input{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:32px 18px;color:#f4f4f5;background:radial-gradient(circle at 50% 18%,rgba(140,140,140,.22),transparent 28%),radial-gradient(circle at 50% 82%,rgba(99,27,27,.24),transparent 30%),#020202}.login-panel{width:min(460px,100%);display:grid;justify-items:center;gap:18px}.login-cover{width:min(340px,76vw);aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 0 34px rgba(255,255,255,.16))}.login-copy{text-align:center}.login-copy span{display:block;margin-bottom:8px;color:#a1a1aa;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.login-copy h1{color:#fafafa;font-size:34px;line-height:40px}.login-form{width:min(420px,100%);display:grid;grid-template-columns:1fr 168px;gap:10px}.login-form input{min-width:0;height:46px;border:1px solid #3f3f46;border-radius:6px;padding:0 14px;color:#fafafa;background:#18181be0;outline:none}.login-form input:focus{border-color:#a1a1aa;box-shadow:0 0 0 3px #a1a1aa24}.login-form button{height:46px;border:1px solid #e4e4e7;border-radius:6px;color:#09090b;background:#f4f4f5;cursor:pointer;font-weight:700}.login-form button:hover{background:#fff}.login-message{min-height:20px;margin:0;color:#d4d4d8;font-size:14px;text-align:center}.extension-download{width:min(420px,100%);min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:4px;border-top:1px solid rgba(161,161,170,.24);padding-top:18px}.extension-download-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(228,228,231,.24);border-radius:8px;color:#e4e4e7;background:#27272ab8}.extension-download-copy{min-width:0;display:grid;gap:3px}.extension-download-copy strong{color:#f4f4f5;font-size:14px;line-height:18px}.extension-download-copy span{color:#a1a1aa;font-size:12px;line-height:16px}.extension-download a{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #52525b;border-radius:6px;padding:0 12px;color:#f4f4f5;background:#18181bbd;font-size:13px;font-weight:700;text-decoration:none}.extension-download a:hover{border-color:#a1a1aa;background:#27272a}.extension-install-help{grid-column:2 / -1;width:100%;color:#a1a1aa;font-size:12px;line-height:18px}.extension-install-help summary{width:fit-content;color:#d4d4d8;cursor:pointer;font-weight:700}.extension-install-help ol{margin:10px 0 6px;padding-left:20px}.extension-install-help p{margin:0;color:#71717a}.extension-install-help code{border:1px solid rgba(161,161,170,.2);border-radius:4px;padding:1px 4px;color:#e4e4e7;background:#18181bcc;font-family:SFMono-Regular,Consolas,monospace;font-size:11px}@media (max-width: 480px){.extension-download{grid-template-columns:38px minmax(0,1fr)}.extension-download a{grid-column:1 / -1;width:100%}.extension-install-help{grid-column:1 / -1}}.app{min-height:100vh;display:grid;grid-template-columns:236px minmax(0,1fr)}.sidebar{background:#111827;color:#f9fafb;padding:18px 14px}.brand{display:flex;align-items:center;gap:10px;height:44px;padding:0 10px;font-weight:700;margin-bottom:18px}.nav{width:100%;height:40px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#d1d5db;border:0;border-radius:6px;background:transparent;cursor:pointer}.nav:hover,.nav.active{color:#fff;background:#374151}.main{padding:24px;min-width:0;overflow:hidden}.authbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}.authbar form{display:grid;grid-template-columns:minmax(220px,360px) 132px;gap:10px}.authbar input{height:40px;border:1px solid #d1d5db;border-radius:6px;padding:0 12px;background:#fff}.authbar button{height:40px;padding:0 14px;border:0;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer}.auth-status,.auth-message{color:#4b5563;font-size:14px}.auth-status{font-weight:600}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;max-width:100%}.graph-panel{border:1px solid #d9dee7;border-radius:8px;background:#fff;overflow:hidden}.graph-header{min-height:74px;padding:14px 16px 14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb}.graph-header p{margin:4px 0 0;color:#6b7280;font-size:13px}.graph-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.searchbox{width:220px;height:38px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #d1d5db;border-radius:6px;color:#6b7280;background:#fff}.searchbox input{width:100%;min-width:0;border:0;outline:0;color:#111827;background:transparent}.segmented{height:38px;display:inline-grid;grid-template-columns:repeat(3,1fr);padding:3px;border:1px solid #d1d5db;border-radius:6px;background:#f3f4f6}.segmented button{min-width:76px;height:30px;border:0;border-radius:4px;color:#4b5563;background:transparent;cursor:pointer;font-size:13px;font-weight:600}.segmented button.active{color:#111827;background:#fff;box-shadow:0 1px 2px #0f172a1f}.scope-switch{grid-template-columns:repeat(2,1fr)}.graph-error{margin-top:14px}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:680px}.graph-canvas{width:100%;height:680px;display:block;background:linear-gradient(rgba(17,24,39,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(17,24,39,.035) 1px,transparent 1px),#f8fafc;background-size:34px 34px;touch-action:none}.cluster-label rect{fill:#ffffffd1;stroke:#dbe3ee}.cluster-label text{fill:#667085;font-size:12px;font-weight:700;text-anchor:middle;text-transform:uppercase}.graph-link line{stroke:#8c97a8;stroke-opacity:.42}.graph-link text{fill:#4b5563;paint-order:stroke;stroke:#f8fafc;stroke-width:4px;font-size:12px;text-anchor:middle}.graph-link.topic line{stroke:#2f80ed}.graph-link.source line{stroke:#16a34a}.graph-link.activity line{stroke:#ea580c}.graph-link.highlighted line{stroke-opacity:.95}.graph-node{cursor:grab}.graph-node:active{cursor:grabbing}.graph-node circle{fill:#fff;stroke:#667085;stroke-width:2px;filter:drop-shadow(0 7px 14px rgba(15,23,42,.14))}.graph-node.model circle{fill:#111827;stroke:#111827}.graph-node.channel circle{fill:#e7f8ef;stroke:#16a34a}.graph-node.video circle{fill:#eff6ff;stroke:#2563eb}.graph-node.user circle{fill:#fff7ed;stroke:#ea580c}.graph-node.surface circle{fill:#f0fdfa;stroke:#0f766e}.graph-node.system circle{fill:#f5f3ff;stroke:#7c3aed}.graph-node.selected circle{stroke:#111827;stroke-width:4px}.graph-node.connected circle{filter:drop-shadow(0 0 12px rgba(37,99,235,.26))}.graph-node.dimmed{opacity:.16}.graph-node text{fill:#111827;paint-order:stroke;stroke:#f8fafc;stroke-width:5px;font-size:11px;font-weight:700;text-anchor:middle;pointer-events:none}.graph-node.dimmed text{display:none}.graph-node.model text{fill:#111827}.graph-inspector{border-left:1px solid #e5e7eb;padding:18px;background:#fff;overflow:auto}.node-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;color:#344054;background:#f2f4f7;font-size:12px;font-weight:700}.node-badge.channel{color:#166534;background:#dcfce7}.node-badge.video{color:#1d4ed8;background:#dbeafe}.node-badge.user{color:#9a3412;background:#ffedd5}.node-badge.surface{color:#0f766e;background:#ccfbf1}.node-badge.system{color:#6d28d9;background:#ede9fe}.graph-inspector h2{margin:12px 0 8px;color:#111827;font-size:20px;line-height:26px}.graph-inspector p{margin:0 0 14px;color:#4b5563;font-size:14px;line-height:20px}.graph-inspector dl{display:grid;gap:8px;margin:0 0 16px}.graph-inspector dl div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f3;padding-bottom:8px}.graph-inspector dt{color:#6b7280;font-size:12px;font-weight:700;text-transform:uppercase}.graph-inspector dd{margin:0;color:#111827;font-size:13px;font-weight:700;text-align:right}.link-list{display:grid;gap:8px}.link-list button{width:100%;min-height:54px;display:grid;justify-content:stretch;gap:3px;border:1px solid #e5e7eb;border-radius:6px;padding:8px 10px;color:#111827;background:#fff;cursor:pointer;text-align:left}.link-list button:hover{border-color:#b8c0cc;background:#f9fafb}.link-list span{color:#6b7280;font-size:12px;font-weight:700;text-transform:uppercase}.link-list strong{overflow:hidden;font-size:14px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.panel header{min-height:62px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb}h1{margin:0;font-size:20px}.statsgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}.stat{min-width:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:12px 14px}.stat span{display:block;color:#6b7280;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat strong{display:block;margin-top:4px;font-size:22px;line-height:28px;color:#111827}.tablewrap{max-width:100%;max-height:calc(100vh - 230px);overflow:auto;overscroll-behavior:contain}table{width:max-content;border-collapse:collapse;min-width:100%}th,td{padding:11px 14px;text-align:left;border-bottom:1px solid #edf0f3;font-size:14px;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{position:sticky;top:0;z-index:1;color:#4b5563;background:#f9fafb;font-weight:600}.muted,.error{margin:16px 18px}.muted{color:#6b7280}.error{color:#991b1b;white-space:pre-wrap}@media (max-width: 760px){.app{grid-template-columns:1fr}.sidebar{display:flex;gap:6px;overflow-x:auto}.brand{margin:0 8px 0 0}.nav{width:auto}.main{padding:14px}.authbar form{grid-template-columns:1fr;width:100%}.login-copy h1{font-size:28px;line-height:34px}.login-form{grid-template-columns:1fr}.statsgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.tablewrap{max-height:calc(100vh - 300px)}.graph-header{align-items:stretch;flex-direction:column}.graph-tools{justify-content:stretch}.searchbox,.segmented{width:100%}.segmented button{min-width:0}.graph-layout{grid-template-columns:1fr;min-height:0}.graph-canvas{height:520px}.graph-inspector{border-top:1px solid #e5e7eb;border-left:0}}
