:root{
  --bg:#0f172a;
  --panel:#111c33;
  --card:#fff;
  --text:#172033;
  --muted:#64748b;
  --line:#e2e8f0;
  --blue:#2563eb;
  --cyan:#06b6d4;
  --green:#16a34a;
  --orange:#f59e0b;
  --red:#dc2626;
  --hot:#e11d48;
  --shadow:0 20px 60px rgba(15,23,42,.12)}
*{
  box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#f4f7fb;
  color:var(--text)}
a{
  color:var(--blue);
  text-decoration:none}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:linear-gradient(90deg,#0b1222,#172554 65%,#0e7490);
  color:#fff;
  display:flex;
  align-items:center;
  gap:26px;
  justify-content:space-between;
  padding:14px 28px;
  box-shadow:0 12px 34px rgba(2,6,23,.28)}
.brand{
  display:flex;
  align-items:center;
  gap:12px}
.brand-mark{
  background:linear-gradient(135deg,#ef4444,#f97316);
  padding:10px;
  border-radius:14px;
  font-weight:900}
.brand small{
  display:block;
  color:#bae6fd}
.topbar nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap}
.topbar nav a{
  color:#dbeafe;
  font-weight:700}
.global-pill,.big-status{
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  letter-spacing:.03em}
.global-pill.live,.big-status.live{
  background:rgba(22,163,74,.22)}
.global-pill.paused,.big-status.paused{
  background:rgba(245,158,11,.22)}
.container{
  max-width:1440px;
  margin:0 auto;
  padding:28px}
.hero,.page-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:10px 0 24px}
.hero{
  background:radial-gradient(circle at top right,#67e8f9,transparent 24%),linear-gradient(135deg,#111827,#1e3a8a);
  color:#fff;
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow)}
.hero h1,.page-head h1{
  margin:.1em 0;
  font-size:clamp(2rem,4vw,4rem)}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.75rem;
  font-weight:900;
  color:#38bdf8}
.grid{
  display:grid;
  gap:20px}
.metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:20px}
.two{
  grid-template-columns:1.25fr 1fr}
.three{
  grid-template-columns:repeat(3,minmax(0,1fr))}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow)}
.card h2{
  margin-top:0}
.metrics .card{
  position:relative;
  overflow:hidden}
.metrics .card:after{
  content:"";
  position:absolute;
  right:-26px;
  top:-30px;
  width:100px;
  height:100px;
  border-radius:50%;
  background:#dbeafe}
.metrics .danger:after{
  background:#fee2e2}
.metrics .warning:after{
  background:#fef3c7}
.metrics .hot:after{
  background:#ffe4e6}
.metrics span,.muted{
  color:var(--muted)}
.metrics strong{
  display:block;
  font-size:3rem;
  margin-top:8px}
button,.button{
  border:0;
  border-radius:14px;
  padding:11px 16px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center}
.primary{
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:white}
.secondary{
  background:#e0f2fe;
  color:#075985}
.danger-btn{
  background:#fee2e2;
  color:#991b1b}
.mini{
  font-size:.85rem;
  padding:7px 10px;
  background:#eff6ff}
.linkbtn{
  background:transparent;
  color:var(--blue);
  padding:6px}
.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap}
.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px}
.filters a{
  background:#fff;
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  font-weight:800}
.table-wrap{
  overflow:auto}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0}
th{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
  background:#f8fafc;
  text-align:left}
th,td{
  padding:12px;
  border-bottom:1px solid var(--line);
  vertical-align:middle}
tbody tr:hover{
  background:#f8fbff}
.products td{
  min-width:110px}
.error-cell{
  color:#b91c1c;
  max-width:260px}
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 8px;
  font-size:.72rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:#e2e8f0;
  color:#334155}
.badge.ok{
  background:#dcfce7;
  color:#166534}
.badge.warn{
  background:#fef3c7;
  color:#92400e}
.badge.danger,.badge.official{
  background:#fee2e2;
  color:#991b1b}
.badge.hot{
  background:#ffe4e6;
  color:#be123c}
.badge.channel{
  background:#dbeafe;
  color:#1e40af}
.badge.muted{
  background:#f1f5f9;
  color:#64748b}
.score{
  height:20px;
  border-radius:999px;
  background:#e2e8f0;
  position:relative;
  min-width:110px;
  overflow:hidden}
.score-bar{
  height:100%;
  border-radius:999px;
  background:#22c55e}
.score-bar.s20,.score-bar.s40{
  background:#f59e0b}
.score-bar.s60{
  background:#fb7185}
.score-bar.s80,.score-bar.s100{
  background:#e11d48}
.score span{
  position:absolute;
  inset:0;
  text-align:center;
  font-size:.75rem;
  font-weight:900;
  color:#0f172a}
.status-list{
  display:grid;
  gap:12px}
.status-list div{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:12px;
  background:#f8fafc;
  border-radius:14px}
.timeline{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px}
.timeline li{
  border-left:4px solid #94a3b8;
  background:#f8fafc;
  border-radius:12px;
  padding:12px}
.timeline li span{
  display:block;
  color:#64748b;
  font-size:.78rem;
  font-weight:800}
.timeline li.error{
  border-color:var(--red);
  background:#fef2f2}
.timeline li.warning{
  border-color:var(--orange);
  background:#fffbeb}
.timeline li.success{
  border-color:var(--green);
  background:#f0fdf4}
.alert{
  border-radius:16px;
  padding:14px;
  margin:12px 0;
  font-weight:800}
.alert.danger{
  background:#fef2f2;
  color:#991b1b}
.alert.warning{
  background:#fffbeb;
  color:#92400e}
.alert.success{
  background:#f0fdf4;
  color:#166534}
dl{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px}
dt{
  color:#64748b;
  font-weight:800}
dd{
  margin:0;
  font-weight:700}
.url{
  word-break:break-all}
.stack{
  display:grid;
  gap:10px}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px}
.form-grid label{
  display:grid;
  gap:6px;
  font-weight:800}
input,select{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:11px;
  background:#fff;
  font:inherit}
.checks{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px}
.checks li{
  padding:10px;
  border-radius:12px;
  background:#f8fafc}
.checks li.ok{
  background:#dcfce7;
  color:#166534}
.checks li.bad{
  background:#fee2e2;
  color:#991b1b}
.big-status{
  display:inline-block;
  color:#111827;
  border-color:#cbd5e1;
  margin-bottom:14px}
@media(max-width:1000px){
  .metrics,.two,.three{
  grid-template-columns:1fr}
.topbar,.hero,.page-head{
  align-items:flex-start;
  flex-direction:column}
.container{
  padding:18px}
}
@media(max-width:640px){
  .topbar{
  padding:14px}
.hero{
  padding:22px;
  border-radius:18px}
.card{
  padding:16px;
  border-radius:16px}
dl,.form-grid{
  grid-template-columns:1fr}
.metrics strong{
  font-size:2.2rem}
}
