:root {
  --bg: #08111f;
  --panel: #0f1b2d;
  --panel2: #12233a;
  --line: rgba(255,255,255,.11);
  --text: #eaf2ff;
  --muted: #94a3b8;
  --accent: #37d7ff;
  --accent2: #ffb703;
  --danger: #ef4444;
  --good: #22c55e;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top left, #112a46, var(--bg) 45%); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:20px 28px; background: rgba(6,12,22,.85); border-bottom:1px solid var(--line); position: sticky; top:0; z-index:5; backdrop-filter: blur(14px); }
.brand { font-weight:900; letter-spacing:.08em; font-size:28px; }
.subbrand { color: var(--muted); font-size:13px; margin-top:3px; }
.top-actions { display:flex; gap:12px; align-items:center; }
button, .logout { border:0; border-radius:12px; padding:11px 16px; font-weight:800; background: linear-gradient(135deg, var(--accent), #6ee7ff); color:#06111e; cursor:pointer; text-decoration:none; }
button.secondary { background:#1f2f46; color:var(--text); border:1px solid var(--line); }
.logout { background:#1f2f46; color:var(--text); border:1px solid var(--line); }
.layout { padding:24px; max-width:1500px; margin:0 auto; }
.cards { display:grid; grid-template-columns: repeat(6, 1fr); gap:14px; margin-bottom:18px; }
.card { background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border:1px solid var(--line); border-radius:18px; padding:18px; min-height:96px; box-shadow:0 18px 40px rgba(0,0,0,.22); }
.card span { display:block; color:var(--muted); font-size:13px; }
.card strong { display:block; font-size:34px; margin-top:8px; }
.panel { background: rgba(15,27,45,.88); border:1px solid var(--line); border-radius:20px; padding:18px; margin-bottom:18px; box-shadow:0 22px 45px rgba(0,0,0,.24); }
.panel-title { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-bottom:14px; }
h2 { margin:0; }
#statusText { color:var(--muted); font-size:13px; }
.search-grid { display:grid; grid-template-columns: 1.8fr .7fr .7fr .45fr .45fr .45fr .6fr; gap:10px; align-items:center; }
input, select { width:100%; background:#071322; color:var(--text); border:1px solid var(--line); border-radius:12px; padding:12px; outline:none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55,215,255,.12); }
.check { color:var(--muted); font-size:13px; display:flex; gap:7px; align-items:center; justify-content:center; }
.check input { width:auto; }
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.tabs button { background:#172842; color:var(--text); border:1px solid var(--line); }
.tabs button.active { background:var(--accent2); color:#111827; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:14px; max-height: 65vh; }
table { width:100%; border-collapse:collapse; min-width:1000px; }
th, td { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:top; font-size:13px; }
th { position:sticky; top:0; background:#16263e; z-index:1; color:#cde5ff; }
tr:hover td { background: rgba(55,215,255,.06); }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#1d3557; color:#cde5ff; font-weight:700; font-size:12px; }
.badge.good { background:rgba(34,197,94,.18); color:#86efac; }
.badge.warn { background:rgba(255,183,3,.18); color:#fde68a; }
.linkbtn { background:transparent; color:var(--accent); padding:0; border:0; font-weight:800; }
dialog { width:min(920px, 94vw); max-height:82vh; border:1px solid var(--line); border-radius:18px; background:#071322; color:var(--text); padding:0; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); background:#0f1b2d; }
.dialog-head h3 { margin:0; }
pre { margin:0; padding:16px; overflow:auto; max-height:70vh; color:#d1e7ff; font-size:12px; white-space:pre-wrap; }
.login-body { min-height:100vh; display:grid; place-items:center; background: radial-gradient(circle at top, #17466b, #08111f 50%); }
.login-card { width:min(420px, 92vw); background:rgba(15,27,45,.95); border:1px solid var(--line); border-radius:24px; padding:28px; box-shadow:0 30px 70px rgba(0,0,0,.38); }
.brand-mark { width:64px; height:64px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(135deg, var(--accent), var(--accent2)); color:#06111e; font-weight:900; margin-bottom:14px; }
.login-card h1 { margin:0; font-size:32px; }
.login-card p { color:var(--muted); }
.login-card label { display:block; margin:14px 0 6px; color:#cbd5e1; font-weight:700; }
.login-card button { width:100%; margin-top:18px; }
.alert { background: rgba(239,68,68,.16); color:#fecaca; border:1px solid rgba(239,68,68,.35); padding:10px; border-radius:12px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3,1fr); } .search-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 700px) { .cards { grid-template-columns: repeat(2,1fr); } .topbar { flex-direction:column; align-items:flex-start; gap:12px; } }
