@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600&display=swap');

:root{
  --ink:#101827;
  --ink-soft:#26364b;
  --muted:#3f4f64;
  --line:rgba(148,163,184,.18);
  --blue:#007aff;
  --cyan:#06b6d4;
  --violet:#635bff;
  --red:#dc2626;
  --green:#169c5b;
  --amber:#d97706;
  --glass:rgba(255,255,255,.58);
  --glass-strong:rgba(255,255,255,.76);
  --glass-border:rgba(255,255,255,.42);
  --shadow:0 28px 80px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.82);
  --shadow-soft:0 18px 46px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.76);
}

*{box-sizing:border-box}
html{min-height:100%;background:#050914;scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family:'Exo',sans-serif;
  font-size:14px;
  font-weight:400;
  background:
    radial-gradient(circle at 12% 5%,rgba(14,165,233,.23),transparent 30%),
    radial-gradient(circle at 89% 7%,rgba(124,58,237,.22),transparent 31%),
    radial-gradient(circle at 72% 92%,rgba(6,182,212,.15),transparent 34%),
    linear-gradient(135deg,#030712,#071225 48%,#0d0920);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  overflow-x:hidden;
}
body::before,body::after{
  content:'';
  position:fixed;
  pointer-events:none;
  z-index:-1;
}
body::before{
  inset:0;
  opacity:.42;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:42px 42px;
}
body::after{
  right:-130px;
  bottom:-180px;
  width:560px;
  height:560px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(99,91,255,.30),transparent 66%);
  animation:ambient-drift 12s ease-in-out infinite alternate;
}
b,strong,h1,h2,h3,h4,h5,h6{font-weight:600}
button,input,select,textarea{font:inherit;font-weight:400}
a{color:var(--blue)}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{
  width:1em;
  height:1em;
  display:inline-block;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:-.14em;
}

.topbar{
  width:min(1640px,calc(100% - 28px));
  min-height:66px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:20;
  border:1px solid var(--glass-border);
  border-top:0;
  border-radius:0 0 23px 23px;
  background:linear-gradient(135deg,rgba(255,255,255,.68),rgba(255,255,255,.40));
  backdrop-filter:blur(28px) saturate(1.65);
  -webkit-backdrop-filter:blur(28px) saturate(1.65);
  box-shadow:0 18px 52px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.84);
}
.brand{display:flex;align-items:center;gap:12px}
.brand b{font-size:19px;letter-spacing:-.025em}
.brand small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  letter-spacing:.11em;
}
.brand-mark{
  width:58px;
  height:58px;
  border-radius:19px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:27px;
  font-weight:600;
  background:linear-gradient(145deg,#69c7ff,#007aff 54%,#5856d6);
  box-shadow:0 14px 34px rgba(0,122,255,.22),inset 0 1px 0 rgba(255,255,255,.34);
}
.brand-mark.small{width:43px;height:43px;border-radius:14px;font-size:20px}
.brand-mark .icon{width:29px;height:29px;stroke-width:1.65}
.brand-mark.small .icon{width:24px;height:24px}

.container{width:min(1600px,calc(100% - 40px));margin:0 auto;padding:38px 0 68px}
.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  padding:8px 3px 25px;
  animation:fade-up .45s ease both;
}
.hero h1{
  display:flex;
  align-items:center;
  gap:13px;
  margin:5px 0 8px;
  font-size:clamp(31px,4.2vw,48px);
  line-height:1.08;
  letter-spacing:-.045em;
  color:#f7fbff;
}
.hero-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:17px;
  background:linear-gradient(145deg,#35bdff,#087fff 54%,#675cff);
  box-shadow:0 16px 36px rgba(0,122,255,.22),inset 0 1px 0 rgba(255,255,255,.38);
}
.hero-icon .icon{width:26px;height:26px;stroke-width:1.7}
.hero p{max-width:720px;margin:0;color:rgba(220,231,247,.72);line-height:1.65}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#57c8ff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.eyebrow .icon{width:13px;height:13px;stroke-width:2}
.live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  white-space:nowrap;
  color:#147a3a;
  font-size:13px;
  font-weight:600;
  border:1px solid rgba(52,199,89,.18);
  border-radius:999px;
  background:rgba(52,199,89,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 8px 20px rgba(34,197,94,.08);
}
.live .icon{width:17px;height:17px;filter:drop-shadow(0 2px 4px rgba(22,156,91,.18))}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.stats article,.panel{
  position:relative;
  overflow:hidden;
  border:1px solid var(--glass-border);
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(218,227,240,.66));
  backdrop-filter:blur(30px) saturate(1.55);
  -webkit-backdrop-filter:blur(30px) saturate(1.55);
  box-shadow:var(--shadow-soft);
}
.stats article::before,.panel::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.48),transparent 35%,rgba(255,255,255,.10));
}
.stats article>* ,.panel>*{position:relative}
.stats article{
  min-height:132px;
  padding:22px;
  display:flex;
  align-items:center;
  gap:17px;
  border-radius:27px;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  animation:fade-up .45s ease both;
}
.stats article:nth-child(2){animation-delay:.04s}
.stats article:nth-child(3){animation-delay:.08s}
.stats article:nth-child(4){animation-delay:.12s}
.stats article::after{
  content:'';
  position:absolute;
  right:-28px;
  top:-34px;
  width:118px;
  height:118px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(10,132,255,.14),transparent 68%);
}
.stats article:nth-child(2)::after{background:radial-gradient(circle,rgba(255,59,48,.14),transparent 68%)}
.stats article:nth-child(3)::after{background:radial-gradient(circle,rgba(99,91,255,.14),transparent 68%)}
.stats article:nth-child(4)::after{background:radial-gradient(circle,rgba(255,159,10,.14),transparent 68%)}
.stats article:hover{transform:translateY(-3px);box-shadow:0 26px 68px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.84)}
.stats span{color:rgba(16,24,39,.82);font-size:13px;font-weight:500}
.stats b{display:block;margin-top:9px;font-size:36px;line-height:1;letter-spacing:-.045em}
.stats article.critical b{color:var(--red)}
.stat-copy{position:relative;z-index:1}
.stats .stat-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  color:#087fff;
  border:1px solid rgba(255,255,255,.78);
  border-radius:19px;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(221,244,255,.55));
  box-shadow:0 15px 30px rgba(8,127,255,.12),inset 0 1px 0 rgba(255,255,255,.92);
}
.stats .stat-icon .icon{width:29px;height:29px;stroke-width:1.7}
.stats .stat-critical .stat-icon{color:#e32929;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,226,226,.63));box-shadow:0 15px 30px rgba(220,38,38,.11),inset 0 1px 0 rgba(255,255,255,.92)}
.stats .stat-pending .stat-icon{color:#6659f6;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(232,229,255,.64));box-shadow:0 15px 30px rgba(99,91,255,.11),inset 0 1px 0 rgba(255,255,255,.92)}
.stats .stat-failed .stat-icon{color:#dd7a08;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,238,211,.68));box-shadow:0 15px 30px rgba(217,119,6,.11),inset 0 1px 0 rgba(255,255,255,.92)}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.panel{
  padding:22px;
  border-radius:28px;
  animation:fade-up .5s ease .12s both;
}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.panel h2{margin:4px 0 0;font-size:20px;letter-spacing:-.025em}
.panel-title{display:flex;align-items:center;gap:13px}
.panel-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  color:#087fff;
  border:1px solid rgba(255,255,255,.82);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(222,244,255,.56));
  box-shadow:0 12px 27px rgba(0,122,255,.11),inset 0 1px 0 rgba(255,255,255,.95);
}
.panel-icon .icon{width:24px;height:24px;stroke-width:1.7}
.source-icon{color:#6258ed;background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(235,231,255,.62))}
.event-icon{color:#de4f32;background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,232,224,.62))}
.channel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 2px;
  border-top:1px solid var(--line);
}
.channel-main{display:flex;align-items:center;gap:12px;min-width:0}
.channel-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#087fff;
  border-radius:13px;
  background:rgba(10,132,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}
.channel-icon.source{color:#6258ed;background:rgba(99,91,255,.10)}
.channel-icon .icon{width:21px;height:21px}
.channel:first-of-type{border-top:0}
.channel b{font-weight:600}
.channel small,.events td small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.channel small .icon{width:14px;height:14px;margin-right:5px;vertical-align:-.2em}
.pill,.severity{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  line-height:1;
  vertical-align:middle;
  white-space:nowrap;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.025em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}
.pill .icon,.severity .icon{width:15px;height:15px;stroke-width:2.1}
.pill.ok{background:rgba(52,199,89,.14);color:#14783a}
.pill.bad,.severity.critical{background:rgba(255,59,48,.14);color:#b42318}
.severity.warning{background:rgba(255,159,10,.16);color:#975800}
.severity.info{background:rgba(10,132,255,.14);color:#0067c7}
.severity.recovery{background:rgba(52,199,89,.14);color:#14783a}
.muted{color:var(--muted)}
.empty-note{display:flex;align-items:center;gap:9px}
.empty-note .icon{width:20px;height:20px;color:var(--blue)}
.error-detail{
  padding:10px 12px;
  color:var(--red);
  font-size:13px;
  line-height:1.5;
  border:1px solid rgba(239,68,68,.12);
  border-radius:13px;
  background:rgba(255,241,242,.66);
}
.error-detail .icon{width:16px;height:16px;margin-right:4px}

.events{animation-delay:.17s}
.record-count{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  color:var(--muted);
  font-size:13px;
  border:1px solid rgba(255,255,255,.68);
  border-radius:999px;
  background:rgba(255,255,255,.44);
}
.record-count .icon{width:14px;height:14px;color:var(--violet)}
.table-wrap{
  width:100%;
  max-height:64vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.58);
  border-radius:18px;
  background:rgba(239,244,250,.56);
}
table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0}
th{
  position:sticky;
  top:0;
  z-index:2;
  padding:12px;
  text-align:left;
  color:rgba(16,24,39,.78);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid var(--line);
  background:rgba(247,249,252,.88);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
}
th .icon{width:14px;height:14px;margin-right:5px;color:#4587d8}
td{
  padding:15px 12px;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.48;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
tbody tr{transition:background .16s ease}
tbody tr:hover{background:rgba(255,255,255,.44)}
tbody tr:last-child td{border-bottom:0}
td:nth-child(2){max-width:620px}
td b{color:var(--ink);font-weight:600}
.event-title{display:flex;align-items:flex-start;gap:7px}
.event-title .icon{width:16px;height:16px;margin-top:1px;color:#4d83d5}
.cell-with-icon{display:inline-flex;align-items:flex-start;gap:6px}
.cell-with-icon .icon{width:14px;height:14px;margin-top:1px;color:#40536c}
td a{display:inline-flex;align-items:center;gap:5px;margin-top:6px;color:var(--blue);font-weight:600;text-decoration:none}
td a .icon{width:13px;height:13px}
td a:hover{text-decoration:underline}
.empty{padding:45px;text-align:center;color:var(--muted)}
.empty-icon{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 11px;color:#6d88ae;border-radius:20px;background:rgba(255,255,255,.5)}
.empty-icon .icon{width:31px;height:31px}

.ghost,button{
  padding:10px 16px;
  color:#fff;
  font-weight:600;
  border:1px solid rgba(255,255,255,.36);
  border-radius:14px;
  background:linear-gradient(135deg,#0a84ff,var(--blue) 54%,#5e5ce6);
  box-shadow:0 12px 27px rgba(0,122,255,.20),inset 0 1px 0 rgba(255,255,255,.28);
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.ghost,button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ghost .icon,button .icon{width:16px;height:16px;stroke-width:2}
button:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 34px rgba(0,122,255,.26)}
.ghost{color:var(--blue);border-color:rgba(255,255,255,.78);background:rgba(255,255,255,.62);box-shadow:0 8px 20px rgba(15,23,42,.07),inset 0 1px 0 rgba(255,255,255,.86)}
.ghost:hover{box-shadow:0 12px 28px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.92)}

.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{
  width:min(430px,100%);
  padding:36px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--glass-border);
  border-radius:30px;
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.48));
  backdrop-filter:blur(34px) saturate(1.6);
  -webkit-backdrop-filter:blur(34px) saturate(1.6);
  box-shadow:var(--shadow);
  animation:login-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.login-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.78),transparent 40%);
}
.login-card>*{position:relative}
.login-card .brand-mark{margin:0 auto}
.login-card h1{margin:16px 0 4px;text-align:center;font-size:37px;letter-spacing:-.04em}
.login-card>p{margin:0 0 26px;text-align:center;color:var(--muted);line-height:1.5}
.login-card label{display:block;margin:14px 0 7px;font-size:13px;font-weight:600}
.login-card label .icon{width:14px;height:14px;margin-right:4px;color:var(--blue)}
.input-shell{position:relative}
.input-shell>.icon{
  position:absolute;
  left:14px;
  top:50%;
  z-index:2;
  width:17px;
  height:17px;
  color:#43566e;
  transform:translateY(-50%);
  pointer-events:none;
}
.login-card input{
  width:100%;
  padding:13px 14px 13px 42px;
  color:var(--ink);
  border:1px solid rgba(255,255,255,.88);
  border-radius:14px;
  outline:0;
  background:rgba(255,255,255,.64);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 8px 18px rgba(15,23,42,.04);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.login-card input:focus{
  border-color:rgba(0,122,255,.50);
  background:rgba(255,255,255,.84);
  box-shadow:0 0 0 4px rgba(0,122,255,.11),inset 0 1px 0 rgba(255,255,255,.94);
}
.login-card button{width:100%;margin-top:20px;padding:13px}
.notice{padding:11px 13px;border-radius:12px;font-size:13px;line-height:1.5}
.notice .icon{width:16px;height:16px;margin-right:5px}
.notice.danger{color:#991b1b;border:1px solid rgba(239,68,68,.12);background:rgba(254,226,226,.72)}

@keyframes fade-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes login-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ambient-drift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-28px,-16px,0) scale(1.04)}}

@media(max-width:900px){
  .stats{grid-template-columns:1fr 1fr}
  .grid{grid-template-columns:1fr}
  .hero{gap:20px}
  .live{white-space:nowrap}
}
@media(max-width:560px){
  body{font-size:13px}
  .topbar{width:calc(100% - 20px);min-height:60px;padding:8px 10px;border-radius:0 0 19px 19px}
  .brand small{display:none}
  .brand b{font-size:17px}
  .brand-mark.small{width:39px;height:39px;border-radius:13px;font-size:18px}
  .container{width:calc(100% - 24px);padding:26px 0 46px}
  .hero{display:block;padding-bottom:20px}
  .hero h1{font-size:32px}
  .hero-icon{width:43px;height:43px;border-radius:14px}
  .hero-icon .icon{width:22px;height:22px}
  .live{margin-top:14px}
  .stats{gap:10px}
  .stats article{min-height:112px;padding:16px;gap:11px;border-radius:21px}
  .stats b{font-size:30px}
  .stats .stat-icon{width:43px;height:43px;border-radius:14px}
  .stats .stat-icon .icon{width:22px;height:22px}
  .panel{padding:16px;border-radius:22px}
  .panel h2{font-size:18px}
  .panel-icon{width:42px;height:42px;border-radius:14px}
  .panel-icon .icon{width:21px;height:21px}
  .channel{align-items:flex-start}
  .pill{flex-shrink:0}
  .login-shell{padding:14px}
  .login-card{padding:27px;border-radius:26px}
  .login-card h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
