:root{
  --bg:#0b0c10;
  --card:#11131a;
  --muted:#a7b0c0;
  --text:#e9edf5;
  --line:#202433;
  --pill-ok:#1f9d55;
  --pill-warn:#d97706;
  --pill-bad:#dc2626;
  --btn:#1b2030;
  --btn2:#232a40;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 700px at 20% 0%, #13182a 0%, var(--bg) 55%);
  color:var(--text);
}

.topbar{
  position:sticky; top:0;
  z-index:10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  background: rgba(11,12,16,.85);
  backdrop-filter: blur(8px);
}

.brand-title{ font-size:22px; font-weight:800; letter-spacing:.2px; }
.brand-sub{ color:var(--muted); font-size:13px; margin-top:2px; }

.container{ max-width: 1100px; margin: 20px auto; padding: 0 16px 40px; }

.card{
  background: rgba(17,19,26,.92);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.card h2{ margin:0; font-size:18px; }

.tag{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}

.grid{ display:grid; gap:12px; }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

@media (max-width: 950px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-4, .grid-2{ grid-template-columns: 1fr; }
}

.stat{
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.02);
}
.label{ color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; display:block; margin: 10px 0 6px;}
.value{ font-size:16px; font-weight:700; }
.small{ font-size: 12px; }
.mono{ font-family: var(--mono); }

.pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
}
.pill-ok{ background: rgba(31,157,85,.15); color:#9ff3bf; }
.pill-warn{ background: rgba(217,119,6,.15); color:#ffd7a1; }
.pill-bad{ background: rgba(220,38,38,.15); color:#ffb2b2; }

.btn{
  background: var(--btn);
  border:1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.btn:hover{ background: var(--btn2); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn-primary{
  background: rgba(79,70,229,.25);
  border:1px solid rgba(79,70,229,.45);
}
.btn-primary:hover{ background: rgba(79,70,229,.35); }

.btn-ghost{
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover{ color: var(--text); }

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin: 10px 0; }

.input, .textarea{
  width:100%;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  outline:none;
}
.input:focus, .textarea:focus{ border-color: rgba(99,102,241,.6); }

.textarea{ resize: vertical; }

.tabs{
  display:flex; gap:8px;
  border-bottom:1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.tab{
  background: transparent;
  border:1px solid var(--line);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.tab.active{
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: rgba(99,102,241,.45);
}

.tabpane{ display:none; }
.tabpane.active{ display:block; }

.list{
  margin: 10px 0 0;
  padding: 0 0 0 16px;
}
.list li{ margin: 6px 0; color: #dbe2f2; }

.details{
  margin-top: 10px;
}
.details summary{
  cursor:pointer;
  color: var(--muted);
}
.raw{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 850px){
  .raw{ grid-template-columns: 1fr; }
}
.raw-block{
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.02);
}
.raw-title{ color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.pre{
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,.25);
  overflow:auto;
  min-height: 52px;
}

.hint{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.muted{ color: var(--muted); }
.footer{ margin-top: 8px; text-align:center; }
.subcard{
  margin-top: 14px;
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,.02);
}
.subcard-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.subcard h3{ margin:0; font-size: 14px; color: #dbe2f2; }

