:root{
  --bg:#f0f3f7;--panel:#fff;--text:#0f172a;--muted:#8290a4;--line:#dce4ee;
  --blue:#2688eb;--blue-soft:#e8f2fd;--green:#17bf63;--red:#ff3347;--purple:#7c5cff;
  --teal:#16b8a6;--orange:#ff9f1c;--sidebar:#f7f9fc;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--sidebar);border-right:1px solid var(--line);padding:14px 12px;z-index:20;display:flex;flex-direction:column}
.brand{height:54px;padding:0 10px 14px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7ebf0}
.brand-icon,.login-brand-icon{width:40px;height:40px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800}
.brand-title{font-size:21px;font-weight:750;letter-spacing:-.4px}.brand-title::first-letter{color:var(--text)}
.brand-subtitle{font-size:12px;color:#8aa0ba;margin-top:2px}
.nav-label{font-size:12px;font-weight:700;color:#9aabc0;margin:28px 12px 10px;letter-spacing:.04em}
.nav{display:flex;flex-direction:column;gap:4px}
.nav-item{height:46px;border-radius:10px;padding:0 12px;display:flex;align-items:center;gap:12px;font-weight:600;color:#4b617b;transition:.15s}
.nav-item:hover{background:#edf2f7}.nav-item.active{background:#dfeefd;color:#1976d2}
.nav-icon{width:23px;text-align:center;font-size:20px;color:#7d94ad}.nav-item.active .nav-icon{color:#2688eb}
.sidebar-bottom{margin-top:auto;border-top:1px solid #e7ebf0;padding-top:12px}
.content{margin-left:252px;padding:10px 12px 40px;min-width:0}
.mobile-menu{display:none}
.page-head,.tabs-card,.panel,.stat-card{background:var(--panel);border:1px solid var(--line);box-shadow:0 1px 2px rgba(15,23,42,.02)}
.page-head{border-radius:12px;padding:26px 24px;margin-bottom:16px}
.page-head h1{font-size:26px;margin:0 0 8px;letter-spacing:-.6px}.page-head p{margin:0;color:#687b93;font-size:14px}
.tabs-card{border-radius:12px;display:flex;gap:8px;padding:8px 10px;margin-bottom:16px;overflow:auto}
.tab{padding:10px 14px;border-radius:8px;color:#4f647c;font-weight:600;font-size:14px;white-space:nowrap}.tab.active{background:var(--blue-soft);color:#1976d2}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.stat-card{position:relative;border-radius:12px;padding:18px 16px;min-height:132px;overflow:hidden;border-top:2px solid var(--blue)}
.stat-card.accent-green{border-top-color:var(--green)}.stat-card.accent-red{border-top-color:var(--red)}
.stat-card.accent-purple{border-top-color:var(--purple)}.stat-card.accent-teal{border-top-color:var(--teal)}
.stat-card.accent-orange{border-top-color:var(--orange)}
.stat-top{display:flex;justify-content:space-between;align-items:center;color:#5d718a;font-size:13px;font-weight:600}
.stat-icon{width:34px;height:34px;border-radius:9px;background:#eff5fb;display:grid;place-items:center;color:var(--blue);font-size:18px}
.stat-value{font-size:31px;line-height:1;font-weight:750;margin:16px 0 9px;letter-spacing:-.7px}.stat-value.small{font-size:24px}
.stat-foot{font-size:12px;color:#98a6b9}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.panel{border-radius:12px;padding:16px;min-width:0}
.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.panel-head h2{font-size:18px;margin:0 0 6px}.panel-head p{font-size:13px;color:#8a9aaf;margin:0}
.chip{display:inline-flex;align-items:center;border:1px solid #d5e0ec;background:#f7fafc;border-radius:8px;padding:8px 11px;color:#60748c;font-size:12px;white-space:nowrap}
.bars{display:flex;flex-direction:column;gap:9px}.bar-row{display:grid;grid-template-columns:48px 1fr 28px;gap:10px;align-items:center;font-size:12px}
.bar-label{color:#74879d}.bar-track{height:10px;background:#edf2f7;border-radius:4px;overflow:hidden}.bar-fill{height:100%;min-width:0;background:var(--blue);border-radius:4px}
.source-list,.compact-list{display:flex;flex-direction:column}.source-row,.compact-row{display:flex;align-items:center;gap:11px;min-height:48px;border-top:1px solid #edf1f5}
.source-row:first-child,.compact-row:first-child{border-top:0}.source-row{justify-content:space-between}
.source-badge{display:inline-flex;padding:5px 8px;border-radius:7px;background:#eef5fc;color:#4c6d8e;font-size:12px;font-weight:650}
.avatar{width:34px;height:34px;border-radius:50%;background:#e1eefc;color:#1976d2;display:grid;place-items:center;font-weight:700;flex:0 0 auto}
.grow{min-width:0;flex:1}.grow strong,.grow span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grow strong{font-size:13px}.grow span,.muted{font-size:12px;color:#8b9aae;margin-top:3px}
.status-dot{width:9px;height:9px;border-radius:50%;background:#a0aec0;flex:0 0 auto}.status-dot.found{background:#17bf63}.status-dot.not_found{background:#ff9f1c}.status-dot.error{background:#ff3347}
.status-pill{display:inline-flex;padding:5px 7px;border-radius:6px;background:#eef2f6;color:#63778d;font-size:11px;font-weight:700}.status-pill.found{background:#e6f8ed;color:#128648}.status-pill.not_found{background:#fff3df;color:#b66b00}.status-pill.error{background:#ffe8eb;color:#c91e33}
.text-link{color:#1976d2;font-size:13px;font-weight:650}.empty{padding:28px 0;text-align:center;color:#96a4b5;font-size:13px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.search-form{display:flex;gap:8px;flex:1;max-width:800px}
input,select{height:40px;border:1px solid #cfdbe8;border-radius:8px;background:#fff;padding:0 12px;outline:none;color:#24364b}
input:focus,select:focus{border-color:#78b5f1;box-shadow:0 0 0 3px rgba(38,136,235,.10)}
.search-form input{flex:1;min-width:150px}.search-form button,.btn-secondary{height:40px;border-radius:8px;border:0;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;font-weight:650;font-size:13px}
.search-form button{background:var(--blue);color:#fff}.btn-secondary{background:#eef3f8;color:#526a83}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;border-top:1px solid #e8edf3;padding:13px 11px;font-size:13px;vertical-align:middle}th{border-top:0;color:#8293a9;font-size:11px;text-transform:uppercase;letter-spacing:.03em}td{color:#40556e}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.empty-cell{text-align:center!important;padding:36px!important;color:#9aa8b9}.error-text{color:#c12e40;font-size:12px}
.settings-panel{max-width:900px}.settings-list{display:flex;flex-direction:column}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-top:1px solid #edf1f5}.setting-row:first-child{border-top:0}.setting-row strong,.setting-row span{display:block}.setting-row span{font-size:12px;color:#95a3b4;margin-top:4px}.setting-row code{max-width:58%;word-break:break-all;background:#f3f6f9;border-radius:7px;padding:7px 9px;color:#4a6078;font-size:12px}
.login-body{min-height:100vh;display:grid;place-items:center;padding:30px;background:#eef3f8}
.login-card{width:min(1120px,94vw);min-height:650px;background:#fff;border:1px solid #d9e2ec;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:58% 42%;box-shadow:0 18px 60px rgba(56,76,98,.06)}
.login-hero{position:relative;background:#2688eb;color:#fff;padding:52px;overflow:hidden}.login-brand{display:flex;align-items:center;gap:14px;position:relative;z-index:2}.login-brand-icon{background:#fff;color:#2688eb}.login-brand-title{font-size:22px;font-weight:750}.login-brand-subtitle{font-size:12px;opacity:.8;margin-top:2px}
.login-copy{position:absolute;left:52px;right:52px;bottom:58px;z-index:2}.login-copy h1{font-size:38px;line-height:1.08;margin:0 0 18px;max-width:520px;letter-spacing:-1px}.login-copy p{font-size:16px;line-height:1.65;max-width:560px;margin:0;color:rgba(255,255,255,.88)}
.bubble{position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}.bubble-a{width:310px;height:310px;right:-90px;top:-80px}.bubble-b{width:230px;height:230px;left:-95px;bottom:-80px}
.login-form-side{display:flex;align-items:center;padding:46px}.login-form{width:100%;max-width:390px;margin:auto}.login-form h2{font-size:31px;margin:0 0 8px;letter-spacing:-.8px}.login-form>p{color:#8797aa;margin:0 0 32px}.login-form label{display:block;font-size:13px;font-weight:650;color:#53677e;margin:18px 0 8px}.login-form input{width:100%;height:46px}.login-form button{width:100%;height:47px;margin-top:20px;border:0;border-radius:8px;background:#2688eb;color:#fff;font-weight:700}.alert{background:#fff0f2;color:#b72639;border:1px solid #ffd4da;border-radius:8px;padding:11px 12px;font-size:13px;margin:10px 0}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
  .sidebar{transform:translateX(-100%);transition:.2s}.sidebar-open .sidebar{transform:none}.content{margin-left:0;padding:10px}.mobile-menu{display:block;position:fixed;right:18px;top:18px;z-index:30;width:42px;height:42px;border:1px solid #d7e2ed;border-radius:9px;background:#fff;color:#345;box-shadow:0 3px 14px rgba(15,23,42,.08)}
  .two-col{grid-template-columns:1fr}.login-card{grid-template-columns:1fr;min-height:auto}.login-hero{min-height:300px}.login-copy{position:absolute;bottom:35px}.login-copy h1{font-size:28px}.login-form-side{padding:38px 30px}
}
@media(max-width:560px){.stats-grid{grid-template-columns:1fr}.page-head{padding:21px 18px}.toolbar,.search-form{align-items:stretch;flex-direction:column}.chip{align-self:flex-start}.login-body{padding:0}.login-card{width:100vw;border-radius:0;border:0}.login-hero{padding:30px}.login-copy{left:30px;right:30px}.login-form-side{padding:30px 24px}}
