:root{color-scheme:light;--bg: #f5f7fb;--surface: #ffffff;--surface2: #f8fafc;--text: #182337;--heading: #111d32;--muted: #718096;--border: #e5eaf1;--border-strong:#d5dce7;--accent: #305ed1;--accent-hover: #254cad;--accent-soft:#ecf2ff;--danger:#d44855;--success:#15976b;--shadow:0 2px 8px rgba(25,39,69,.035);--shadow-hover:0 14px 30px rgba(25,39,69,.09);--hero:#172a4c;--hero2:#243f6b;--hero-text:#fff}:root[data-theme=dark]{color-scheme:dark;--bg:#101722;--surface:#182230;--surface2:#1c2838;--text:#dce5f2;--heading:#f3f7ff;--muted:#9aacc4;--border:#2b3a4e;--border-strong:#40536d;--accent:#8baeff;--accent-hover:#a6c1ff;--accent-soft:#273c61;--danger:#ff8690;--success:#5fdfad;--shadow:0 3px 15px rgba(0,0,0,.12);--shadow-hover:0 18px 36px rgba(0,0,0,.23);--hero:#192c48;--hero2:#233f65;--hero-text:#f7faff}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,p{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.muted{color:var(--muted)}.small{font-size:12px}.app{min-height:100vh;display:flex;flex-direction:column}.wrap{width:100%;max-width:1192px;margin:0 auto;padding:0 24px}.top{background:var(--surface);border-bottom:1px solid var(--border)}.top-row{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:11px}.logo{width:45px;height:45px;border:1px solid var(--border);border-radius:12px;display:grid;place-items:center;overflow:hidden;background:#fff}.logo img{display:block;width:42px;height:42px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;line-height:1.25;gap:3px}.brand-title{font-size:20px;font-weight:800;letter-spacing:-.9px;color:var(--heading)}.brand-period{color:var(--accent)}.brand-subtitle{font-size:11px;letter-spacing:.02em;color:var(--muted)}.header-tools{display:flex;align-items:center;gap:18px}.connection-pill{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.connection-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--success);box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 14%,transparent)}.connection-pill.disconnected .connection-dot{background:var(--danger);box-shadow:none}.theme-toggle{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--border-strong);background:var(--surface2);padding:9px 13px;border-radius:10px;font-size:12px;font-weight:650;transition:background .2s,transform .2s}.theme-toggle:hover{background:var(--accent-soft);transform:translateY(-1px)}.intro-wrap{padding:29px 0 0}.hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);align-items:center;gap:28px;overflow:hidden;background:linear-gradient(115deg,var(--hero) 10%,var(--hero2) 100%);color:var(--hero-text);padding:38px 44px;border-radius:18px;min-height:252px}.hero:before,.hero:after{content:"";position:absolute;pointer-events:none;z-index:-1;border:1px solid rgba(255,255,255,.07);border-radius:50%;width:450px;height:450px;right:-120px;top:-300px}.hero:after{width:330px;height:330px;right:-80px;top:-235px}.hero-copy{min-width:0}.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px;letter-spacing:2px;font-weight:750;color:#b6cdfd}.hero-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:#90b4ff}.hero h1{font-size:clamp(25px,3vw,35px);line-height:1.2;letter-spacing:-1px;font-weight:770;margin:14px 0 12px}.hero h1 span{color:#a9c5ff}.hero p{max-width:495px;font-size:13px;line-height:1.7;color:#d4e0f2}.hero-caption{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#a9bddb;margin-top:18px}.hero-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-self:stretch;align-items:center}.hero-metric{height:152px;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:19px 18px;background:#ffffff13;border:1px solid rgba(255,255,255,.15);border-radius:13px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#c5d6f7}.metric-top span{font-size:9px;letter-spacing:1.1px;font-weight:750}.hero-metric strong{font-size:38px;letter-spacing:-1.5px;font-weight:760;line-height:1.2;font-variant-numeric:tabular-nums}.hero-metric>span:last-child{font-size:11px;color:#c3d3e9}.workspace{flex:1;padding-top:28px;padding-bottom:42px}.workspace-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--border)}.tabs{display:flex;align-items:center;gap:9px}.tab{display:inline-flex;align-items:center;gap:9px;padding:13px 12px 15px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:13px;font-weight:650;margin-bottom:-1px;white-space:nowrap}.tab:hover{color:var(--heading)}.tab[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}.count{background:var(--surface2);border:1px solid var(--border);border-radius:7px;padding:1px 7px;font-size:11px;font-weight:700;color:var(--muted)}.tab[aria-selected=true] .count{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.tools{display:flex;gap:8px;padding-bottom:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 13px;background:var(--surface);color:var(--text);border:1px solid var(--border-strong);border-radius:9px;line-height:1.25;font-weight:640;font-size:12px;transition:background .16s,border-color .16s,transform .16s}.btn:hover:not(:disabled){background:var(--surface2);border-color:var(--accent);transform:translateY(-1px)}.btn-primary{color:#fff;background:#3764da;border-color:#3764da}.btn-primary:hover:not(:disabled){background:#2553c6;border-color:#2553c6}.btn-danger{color:#fff;background:#be3744;border-color:#be3744}.btn-danger:hover:not(:disabled){background:#a92c39;border-color:#a92c39}.btn-sm{font-size:11px;padding:6px 10px}.btn.ok{color:var(--success);border-color:var(--success)}.workspace-searchbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 0}.search{position:relative;flex:1;max-width:420px}.search>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}input[type=text],input[type=search],input[type=file]{width:100%;padding:11px 13px;border:1px solid var(--border-strong);background:var(--surface);border-radius:9px;outline:none}.search input{padding-left:43px;padding-right:36px;font-size:13px}input:focus-visible{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 25%,transparent);outline-offset:1px}input::placeholder{color:var(--muted);opacity:.9}.clear-search{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:grid;place-items:center;border:0;background:var(--surface2);color:var(--muted);border-radius:6px;padding:5px}.shortcut-hint{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}kbd{display:inline-grid;place-items:center;min-width:21px;height:21px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);font:12px ui-monospace,monospace}.main{padding-top:27px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:19px}.section-eyebrow{display:block;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:1.3px;margin-bottom:7px}.section-head h2{font-size:21px;font-weight:770;letter-spacing:-.55px;color:var(--heading);margin-bottom:2px}.grid,.kw-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.card{min-width:0;overflow:hidden;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);transition:transform .18s,border-color .18s,box-shadow .18s}.card:hover{transform:translateY(-3px);border-color:var(--border-strong);box-shadow:var(--shadow-hover)}.card-main{width:100%;flex:1;display:flex;flex-direction:column;align-items:stretch;min-height:173px;text-align:left;border:0;background:none;padding:17px}.card-top{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:14px}.agency-icon{width:41px;height:41px;display:grid;place-items:center;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:820;letter-spacing:.1px;border:1px solid color-mix(in srgb,var(--accent) 12%,transparent)}.card-open-icon{color:var(--muted)}.card-title{color:var(--heading);font-weight:770;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.card-category{margin-top:3px;font-size:11px;color:var(--muted)}.host{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;margin-top:auto;padding-top:17px;font-size:11px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.host svg{flex:none}.card-actions{display:flex;align-items:stretch;border-top:1px solid var(--border);min-height:43px}.card-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-right:1px solid var(--border);background:transparent;color:var(--muted);padding:9px 13px;font-size:11px;font-weight:650}.card-actions button:first-child{flex:1;justify-content:flex-start;color:var(--accent)}.card-actions button:last-child{border-right:0}.card-actions button:hover{background:var(--surface2);color:var(--heading)}.card-actions button.danger:hover{color:var(--danger)}.kw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.kw{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:11px;background:var(--surface);box-shadow:var(--shadow);transition:border-color .18s,transform .18s}.kw:hover{border-color:var(--border-strong);transform:translateY(-1px)}.kw-name{display:flex;align-items:center;gap:11px;min-width:0}.keyword-symbol{width:33px;height:33px;display:grid;place-items:center;flex:none;border-radius:9px;background:var(--accent-soft);color:var(--accent)}.kw-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650;color:var(--heading)}.kw-actions{display:flex;align-items:center;gap:3px;flex:none}.iconbtn{display:inline-grid;place-items:center;padding:7px;border:0;background:transparent;border-radius:7px;color:var(--muted)}.iconbtn:hover{background:var(--surface2);color:var(--heading)}.iconbtn.danger:hover{color:var(--danger)}.empty{padding:68px 24px;text-align:center;background:var(--surface);border:1px dashed var(--border-strong);border-radius:13px}.empty strong{color:var(--heading);font-size:16px}.empty p+p{margin-top:6px}.center{min-height:220px;display:grid;align-content:center;justify-items:center;gap:12px}.spinner{width:31px;height:31px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.error-box{max-width:460px;display:grid;justify-items:center;gap:10px;text-align:center;border:1px solid var(--border);background:var(--surface);border-radius:13px;padding:35px 20px;margin:20px auto}.error-box>svg{color:var(--danger)}.foot{background:var(--surface);border-top:1px solid var(--border);color:var(--muted);font-size:11px}.foot-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:16px;background:#050c19a3;animation:fade .16s ease-out}.modal{width:100%;max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--border-strong);border-radius:15px;background:var(--surface);box-shadow:0 26px 65px #0000003b;animation:pop .17s ease-out}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--border)}.modal-head h2{font-size:17px;color:var(--heading)}.modal-body{padding:21px}.field{margin-bottom:15px}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:var(--heading)}.form-error{color:var(--danger);min-height:18px;font-size:12px}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.toasts{position:fixed;bottom:20px;right:20px;z-index:80;display:flex;flex-direction:column;gap:8px}.toast{padding:12px 15px;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--success);border-radius:9px;box-shadow:var(--shadow-hover);font-size:12px}.toast.error{border-left-color:var(--danger);color:var(--danger)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes pop{0%{transform:translateY(9px);opacity:0}to{transform:none;opacity:1}}@media (max-width:980px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding:32px;grid-template-columns:1.3fr 1fr}}@media (max-width:760px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr}.hero-metrics{max-width:500px}.hero-metric{height:120px}.hero-metric strong{font-size:29px}.workspace-nav{align-items:stretch;flex-direction:column;gap:3px}.tools{justify-content:flex-end}.kw-grid{grid-template-columns:1fr}.shortcut-hint{display:none}}@media (max-width:520px){.wrap{padding:0 16px}.top-row{height:70px}.header-tools{gap:10px}.connection-pill,.theme-toggle span{display:none}.theme-toggle{width:39px;height:39px;justify-content:center;padding:8px}.intro-wrap{padding-top:15px}.hero{padding:26px 21px;border-radius:13px;gap:22px}.hero h1{font-size:27px}.hero-metric{padding:12px}.hero-metric strong{font-size:29px}.hero-metric>span:last-child{font-size:10px}.workspace{padding-top:19px}.tab{padding:11px 7px;font-size:11px;gap:5px}.tab svg{width:14px}.tabs{gap:5px}.tools{padding:8px 0 12px}.tools .btn{flex:1}.hide-mobile{display:none}.section-head{align-items:center}.section-head h2{font-size:18px}.grid{gap:10px}.card-main{padding:12px;min-height:163px}.card-title{font-size:13px}.card-actions button{padding:10px 7px}.card-actions button:first-child{font-size:0;justify-content:center}.card-actions button:first-child svg{width:16px;height:16px}.host{font-size:10px}.foot-inner{flex-direction:column;justify-content:center;gap:3px;padding:13px}.kw{padding:9px}.kw-text{font-size:12px}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
