@font-face{font-family:"IBM Plex Sans";font-weight:300;font-display:swap;src:url(fonts/ibm-plex-sans-latin-300-normal.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:400;font-display:swap;src:url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:500;font-display:swap;src:url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:600;font-display:swap;src:url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2")}

:root{
  --bg:#f5f5f7;--surface:#fff;--surface-2:#fafafa;--hover:#f2f4f8;
  --text:#161616;--text-2:#525252;--text-3:#8d8d8d;
  --line:#e5e5ea;--line-2:#d1d1d6;
  --blue:#0f62fe;--blue-h:#0050e6;--blue-soft:#edf3ff;--blue-ink:#0043ce;
  --green:#198038;--green-soft:#e8f5ec;--red:#da1e28;--red-soft:#fff0f1;--amber:#8e6a00;--amber-soft:#fcf4d6;--purple:#6929c4;--purple-soft:#f3edfc;
  --r:14px;--r-sm:9px;--sh:0 1px 2px rgba(0,0,0,.04),0 1px 1px rgba(0,0,0,.02);--sh-lg:0 24px 64px -12px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.04);
  --sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --side:236px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--sans);font-size:14px;line-height:1.45;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;letter-spacing:.1px}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
.num,.mono{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.2px}
.muted{color:var(--text-2)}.faint{color:var(--text-3)}.small{font-size:12.5px}.tiny{font-size:11.5px}
.hidden{display:none!important}

/* layout */
.app{display:grid;grid-template-columns:var(--side) 1fr;min-height:100vh}
.side{position:sticky;top:0;height:100vh;background:rgba(255,255,255,.72);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:18px 12px}
.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 22px}
.brand-mark{width:30px;height:30px;border-radius:8px;background:linear-gradient(145deg,#0f62fe,#002d9c);display:grid;place-items:center;color:#fff;box-shadow:0 4px 12px -4px rgba(15,98,254,.6)}
.brand-name{font-weight:600;font-size:14.5px;line-height:1.15}.brand-sub{font-size:11px;color:var(--text-3);letter-spacing:.4px;text-transform:uppercase}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:11px;padding:8px 11px;border-radius:9px;color:var(--text-2);font-weight:500;text-decoration:none;transition:background .15s,color .15s}
.nav a:hover{background:rgba(0,0,0,.04);color:var(--text)}
.nav a.on{background:var(--blue-soft);color:var(--blue-ink)}
.nav a svg{width:18px;height:18px;flex:none}
.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-3);padding:16px 11px 6px}
.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:14px 8px 0;display:flex;align-items:center;gap:10px}
.avatar{width:32px;height:32px;border-radius:50%;background:#e8e8ed;display:grid;place-items:center;font-weight:600;font-size:12.5px;color:var(--text-2);flex:none}
.side-foot .who{min-width:0;flex:1}.side-foot .who b{display:block;font-weight:500;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main{min-width:0}
.top{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;gap:14px;padding:0 32px;background:rgba(245,245,247,.78);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(0,0,0,.05)}
.top h1{font-size:19px;font-weight:600;margin:0;letter-spacing:-.2px}
.crumb{color:var(--text-3);font-weight:400}.crumb a{color:var(--text-2)}
.top .grow{flex:1}
.page{padding:28px 32px 64px;max-width:1440px}
.row{display:flex;gap:10px;align-items:center}.row.wrap{flex-wrap:wrap}.between{justify-content:space-between}.gap16{gap:16px}.gap6{gap:6px}
.grid{display:grid;gap:16px}.g2{grid-template-columns:1.6fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}
@media(max-width:1100px){.g2,.g3{grid-template-columns:1fr}}
.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}.mb16{margin-bottom:16px}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.card-h{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line)}
.card-h h3{margin:0;font-size:14.5px;font-weight:600}.card-h .grow{flex:1}
.card-b{padding:18px 20px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--sh)}
.kpi .l{font-size:12px;color:var(--text-2);font-weight:500;display:flex;align-items:center;gap:6px}
.kpi .v{font-family:var(--mono);font-size:26px;font-weight:500;letter-spacing:-1px;margin-top:6px;line-height:1.1}
.kpi .s{font-size:12px;color:var(--text-3);margin-top:4px}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.bar{height:6px;border-radius:6px;background:#ececf0;overflow:hidden}.bar i{display:block;height:100%;background:var(--blue);border-radius:6px;transition:width .4s}
.bar.warn i{background:#f1c21b}.bar.danger i{background:var(--red)}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);font-weight:500;font-size:13.5px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s;color:var(--text)}
.btn:hover{background:var(--hover)}
.btn:focus-visible,.input:focus,.select:focus,textarea:focus{outline:none;box-shadow:0 0 0 3px rgba(15,98,254,.22);border-color:var(--blue)}
.btn svg{width:16px;height:16px}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-h)}
.btn.dark{background:#161616;border-color:#161616;color:#fff}.btn.dark:hover{background:#393939}
.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:rgba(0,0,0,.05)}
.btn.danger{color:var(--red)}.btn.danger:hover{background:var(--red-soft)}
.btn.sm{height:28px;padding:0 10px;font-size:12.5px;border-radius:7px}
.btn.icon{width:34px;padding:0;justify-content:center}.btn.sm.icon{width:28px}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.seg{display:inline-flex;background:#e9e9ee;border-radius:9px;padding:2px}
.seg button{border:0;background:transparent;height:30px;padding:0 13px;border-radius:7px;font-weight:500;font-size:13px;color:var(--text-2);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg button svg{width:15px;height:15px}

/* forms */
.input,.select,textarea.input{height:36px;padding:0 12px;border:1px solid var(--line-2);border-radius:9px;background:#fff;width:100%;transition:border-color .15s,box-shadow .15s}
textarea.input{height:auto;padding:10px 12px;resize:vertical;min-height:120px;font-family:var(--mono);font-size:13px}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;padding-right:32px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:12.5px;font-weight:500;color:var(--text-2)}
.field .hint{font-size:12px;color:var(--text-3)}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.search{position:relative}.search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-3)}.search .input{padding-left:34px;width:240px}
.check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer;margin:0}
.switch{position:relative;width:36px;height:22px;border-radius:22px;background:#c6c6c6;border:0;cursor:pointer;transition:background .2s;flex:none}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.switch.on{background:var(--green)}.switch.on::after{transform:translateX(14px)}

/* tables */
.tbl-wrap{overflow:auto}
table.tbl{width:100%;border-collapse:separate;border-spacing:0}
.tbl th{position:sticky;top:0;background:var(--surface-2);font-size:11.5px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:.5px;text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap;user-select:none}
.tbl th.sort{cursor:pointer}.tbl th.sort:hover{color:var(--text)}
.tbl th .ar{opacity:.5;margin-left:3px}
.tbl td{padding:11px 14px;border-bottom:1px solid #f0f0f3;vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr{transition:background .1s}
.tbl tbody tr.click{cursor:pointer}.tbl tbody tr:hover{background:#f8f9fb}
.tbl tr.sel{background:var(--blue-soft)!important}
.tbl .r{text-align:right}.tbl .c{text-align:center}
.tbl td.w0,.tbl th.w0{width:1%;white-space:nowrap}
.kw{font-weight:500}
.url{color:var(--text-2);font-size:12.5px;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.empty{padding:56px 20px;text-align:center;color:var(--text-2)}
.empty h4{margin:10px 0 4px;color:var(--text);font-size:15px;font-weight:600}
.empty svg{width:36px;height:36px;color:var(--text-3)}

/* pills */
.pos{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 7px;border-radius:7px;font-family:var(--mono);font-weight:500;font-size:13px}
.pos.p1{background:#defbe6;color:#0e6027}.pos.p2{background:var(--blue-soft);color:var(--blue-ink)}.pos.p3{background:#fcf4d6;color:#684e00}.pos.p4{background:#f2f2f4;color:#525252}.pos.p0{background:transparent;color:var(--text-3);border:1px dashed var(--line-2)}
.chg{font-family:var(--mono);font-size:12.5px;font-weight:500;display:inline-flex;align-items:center;gap:2px}
.chg.up{color:var(--green)}.chg.down{color:var(--red)}.chg.flat{color:var(--text-3)}
.tag{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:6px;font-size:11.5px;font-weight:500;background:#f2f2f4;color:var(--text-2);white-space:nowrap}
.tag.blue{background:var(--blue-soft);color:var(--blue-ink)}.tag.green{background:var(--green-soft);color:var(--green)}.tag.red{background:var(--red-soft);color:var(--red)}.tag.amber{background:var(--amber-soft);color:var(--amber)}.tag.purple{background:var(--purple-soft);color:var(--purple)}
.tag svg{width:12px;height:12px}
.badge-grp{font-size:10.5px;font-weight:600;letter-spacing:.5px;padding:2px 6px;border-radius:5px;background:#161616;color:#fff}
.badge-grp.IN{background:#ff832b}
.fav{width:16px;height:16px;border-radius:4px;vertical-align:-3px;margin-right:8px;background:#eee}

/* banners */
.banner{display:flex;gap:12px;align-items:center;padding:13px 16px;border-radius:12px;background:var(--blue-soft);color:var(--blue-ink);border:1px solid #d0e2ff;font-weight:500}
.banner.warn{background:var(--amber-soft);border-color:#f8e6a0;color:#684e00}
.banner svg{width:18px;height:18px;flex:none}

/* modal & drawer */
.scrim{position:fixed;inset:0;background:rgba(22,22,22,.32);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:50;display:flex;align-items:flex-start;justify-content:center;padding:9vh 16px;animation:fade .15s ease;overflow:auto}
.modal{width:100%;max-width:520px;background:#fff;border-radius:18px;box-shadow:var(--sh-lg);animation:pop .2s cubic-bezier(.2,.9,.3,1.2)}
.modal.wide{max-width:760px}
.modal-h{padding:20px 24px 4px;display:flex;align-items:flex-start;gap:10px}.modal-h h2{font-size:18px;margin:0;font-weight:600;flex:1;letter-spacing:-.2px}
.modal-b{padding:14px 24px 8px}.modal-f{padding:14px 24px 20px;display:flex;justify-content:flex-end;gap:8px}
.drawer-scrim{position:fixed;inset:0;background:rgba(22,22,22,.18);z-index:40;animation:fade .15s}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(640px,100vw);background:#fff;z-index:41;box-shadow:var(--sh-lg);display:flex;flex-direction:column;animation:slide .25s cubic-bezier(.2,.8,.2,1)}
.drawer-h{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:12px}
.drawer-h h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.2px}
.drawer-b{padding:20px 24px;overflow:auto;flex:1}
@keyframes fade{from{opacity:0}}@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}}@keyframes slide{from{transform:translateX(30px);opacity:0}}

/* toast & progress */
.toasts{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:8px;z-index:90}
.toast{background:#161616;color:#fff;border-radius:12px;padding:12px 16px;font-weight:500;box-shadow:var(--sh-lg);max-width:420px;animation:pop .2s;display:flex;gap:10px;align-items:center}
.toast.err{background:var(--red)}.toast.ok{background:#0e6027}
.runpill{display:flex;align-items:center;gap:10px;height:34px;padding:0 14px;border-radius:20px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:500;cursor:pointer;box-shadow:var(--sh)}
.runpill .bar{width:90px}
.spin{width:14px;height:14px;border:2px solid #d0e2ff;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;display:inline-block;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.skel{background:linear-gradient(90deg,#efeff2 25%,#f7f7f9 37%,#efeff2 63%);background-size:400% 100%;animation:sk 1.4s ease infinite;border-radius:8px;height:14px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* tabs */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tabs a{padding:10px 14px;color:var(--text-2);font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px;text-decoration:none}
.tabs a:hover{color:var(--text)}.tabs a.on{color:var(--text);border-color:var(--blue)}
.vtabs{display:flex;flex-direction:column;gap:2px}
.vtabs a{padding:8px 12px;border-radius:8px;color:var(--text-2);font-weight:500;text-decoration:none}
.vtabs a:hover{background:rgba(0,0,0,.04)}.vtabs a.on{background:#fff;color:var(--text);box-shadow:var(--sh);border:1px solid var(--line)}
.settings{display:grid;grid-template-columns:210px 1fr;gap:24px;align-items:start}

/* charts */
.chart{width:100%;display:block}
.chart .gl{stroke:#eeeef2}.chart .ax{fill:var(--text-3);font-size:11px;font-family:var(--mono)}
.legend{display:flex;gap:14px;font-size:12px;color:var(--text-2)}
.legend i{display:inline-block;width:10px;height:3px;border-radius:2px;margin-right:6px;vertical-align:middle}
.sharebar{height:6px;border-radius:4px;background:#ececf0;width:110px;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:8px}.sharebar i{display:block;height:100%;background:#4589ff}
.serp-row.ours{background:#edf5ff}
.hero{background:radial-gradient(1200px 400px at 20% -10%,#dbe7ff,transparent),radial-gradient(800px 300px at 90% 0,#e9dcff,transparent),var(--bg);min-height:100vh;display:grid;place-items:center;padding:24px}
.auth{width:100%;max-width:400px;background:rgba(255,255,255,.85);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.7);border-radius:22px;box-shadow:var(--sh-lg);padding:34px}
.auth h1{font-size:24px;letter-spacing:-.4px;margin:18px 0 4px;font-weight:600}
.auth .btn{width:100%;justify-content:center;height:40px}
.menu{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh-lg);min-width:200px;padding:6px;z-index:30;animation:pop .15s}
.menu button{display:flex;width:100%;align-items:center;gap:10px;border:0;background:transparent;padding:9px 10px;border-radius:8px;cursor:pointer;text-align:left;font-weight:500}
.menu button:hover{background:var(--hover)}.menu button svg{width:16px;height:16px;color:var(--text-2)}
.rel{position:relative}
.kv{display:grid;grid-template-columns:150px 1fr;gap:8px 16px;font-size:13.5px}.kv dt{color:var(--text-2)}.kv dd{margin:0}
.statline{display:flex;gap:28px;flex-wrap:wrap}.statline div b{display:block;font-family:var(--mono);font-size:20px;font-weight:500}.statline div span{font-size:12px;color:var(--text-2)}
.int-card{display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.int-logo{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#f2f2f4;flex:none}
