*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #07111d;
  --panel: rgba(11, 21, 36, 0.86);
  --line: rgba(148, 163, 184, 0.13);
  --brand: #f0ff00;
  --brand-2: #d8ff1f;
  --text: #dbe7f4;
  --muted: #8da0b8;
  --blue: #38bdf8;
  --green: #10b981;
  --gold: #f59e0b;
  --red: #fb7185;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "Space Grotesk", "Microsoft YaHei", system-ui, sans-serif;
}
html { font-size: 14px; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(240,255,0,0.10), transparent 30%),
    radial-gradient(circle at 78% 0%, rgba(56,189,248,0.09), transparent 26%),
    radial-gradient(circle at 90% 100%, rgba(16,185,129,0.10), transparent 28%),
    linear-gradient(180deg, #06101a 0%, #091321 50%, #07111d 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 92%);
}
input, select, button { font: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(240,255,0,0.25); border-radius: 10px; }
.app {
  width: min(1480px, calc(100vw - 24px));
  margin: 12px auto 24px;
  position: relative;
  z-index: 1;
}
.topbar, .card {
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(240,255,0,0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240,255,0,0.07), rgba(56,189,248,0.08));
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
}
.brand-mark {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #03111c;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 40px rgba(240,255,0,0.18);
}
h1 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
h1 strong { color: var(--brand); }
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.input, .select {
  height: 38px;
  min-width: 150px;
  border: 1px solid rgba(148,163,184,0.13);
  border-radius: 12px;
  outline: none;
  background: rgba(7,15,28,0.74);
  color: var(--text);
  padding: 0 12px;
}
.input:focus, .select:focus {
  border-color: rgba(240,255,0,0.35);
  box-shadow: 0 0 0 3px rgba(240,255,0,0.08);
}
.input::placeholder { color: rgba(141,160,184,0.55); }
.btn {
  height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #03111c;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px rgba(240,255,0,0.18);
}
.btn-ghost {
  color: var(--text);
  background: rgba(15,27,45,0.78);
  border: 1px solid rgba(148,163,184,0.11);
}
.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(5,12,22,0.50);
  border: 1px solid rgba(148,163,184,0.10);
}
.lang-switch .btn {
  height: 30px;
  padding: 0 10px;
  font-size: .78rem;
}
.lang-switch .active {
  color: #03111c;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.hidden {
  display: none !important;
}
.session-user {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(5,12,22,0.58);
  border: 1px solid rgba(148,163,184,0.12);
  color: #dbe7f4;
  font-family: var(--mono);
  font-size: .82rem;
}
.status-pill {
  min-width: 220px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(5,12,22,0.58);
  border: 1px solid rgba(240,255,0,0.14);
  color: var(--muted);
  font-size: .84rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245,158,11,.65);
  flex-shrink: 0;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10,20,35,0.90), rgba(7,14,26,0.85));
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
.metric {
  padding: 17px 18px;
  min-height: 112px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.metric strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.06em;
  color: #f8fbff;
}
.metric.brand-value strong { color: var(--brand); }
.metric.green strong { color: #7ef0c3; }
.metric.blue strong { color: #93ddff; }
.panel { padding: 16px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .02em;
}
.muted {
  color: var(--muted);
  font-size: .82rem;
}
.scroll {
  max-height: 500px;
  overflow: auto;
  border: 1px solid rgba(148,163,184,0.10);
  border-radius: 16px;
  background: rgba(4,10,19,0.40);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
  min-width: 1220px;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.10);
  text-align: left;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8,17,31,0.96);
  color: #a7c0d8;
  font-size: .75rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
td {
  color: #d7e3f2;
  font-family: var(--mono);
  font-size: .78rem;
}
tbody tr.running { background: rgba(16,185,129,0.06); }
tbody tr.warn { background: rgba(245,158,11,0.07); }
tbody tr.fail { background: rgba(251,113,133,0.08); }
tbody tr:hover { background: rgba(240,255,0,0.055); }
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(15,27,45,.78);
  color: #cfe0f4;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
}
.state-chip.ok { border-color: rgba(16,185,129,.22); color: #8df0c6; background: rgba(16,185,129,.08); }
.state-chip.fail { border-color: rgba(251,113,133,.28); color: #fda4af; background: rgba(251,113,133,.08); }
.command-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) minmax(220px, 270px) auto;
  gap: 10px;
  align-items: center;
}
.logs {
  height: 310px;
  overflow: auto;
  padding: 13px 14px;
  border: 1px solid rgba(148,163,184,0.10);
  border-radius: 16px;
  background: rgba(4,10,19,0.92);
  color: #dbeafe;
  font: 12px/1.55 var(--mono);
  white-space: pre-wrap;
}
.footer-note {
  margin-top: 10px;
  color: #6c8198;
  font-size: .78rem;
}
@media (max-width: 980px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .auth { width: 100%; justify-content: flex-start; }
  .summary { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .command-grid { grid-template-columns: 1fr; }
  .input, .select, .btn { width: 100%; }
  .status-pill { width: 100%; }
}
@media (max-width: 580px) {
  .summary { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .brand-mark { width: 54px; height: 54px; border-radius: 16px; }
}
