:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#a9b3c7;
  --text:#eef2ff;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --line:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(900px 600px at 110% 10%, rgba(34,197,94,.20), transparent 55%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
}
header{
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.7);
  border-bottom:1px solid var(--line);
  z-index:10;
}
.wrap{max-width:980px;margin:0 auto;padding:16px}
.row{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,197,94,.85));
  box-shadow: var(--shadow);
}
h1{font-size:18px;margin:0}
.mini{font-size:12px;color:var(--muted)}
.badge{
  font-size:12px; padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.07);
  border:1px solid var(--line);
  color:var(--muted);
}
.tabs{display:flex;gap:8px;flex-wrap:wrap}
button, .btn{
  appearance:none;border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;border-radius:12px;
  font-weight:600; cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  text-decoration:none;
}
button:hover, .btn:hover{background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18)}
button:active, .btn:active{transform: translateY(1px)}
button.primary{background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.55)}
button.primary:hover{background: rgba(124,58,237,.33)}
button.ok{background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.45)}
button.danger{background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.45)}
button.small{padding:8px 10px;font-size:13px;border-radius:10px}
main{padding:18px 0 40px}
.grid{display:grid;grid-template-columns: 1.15fr .85fr; gap:16px}
@media (max-width: 880px){ .grid{grid-template-columns:1fr} }
.card{
  background: rgba(17,26,46,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .hd{padding:14px 14px 10px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}
.card .bd{padding:14px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background: rgba(255,255,255,.05)}
.dot{width:8px;height:8px;border-radius:99px;background: var(--muted)}
.dot.ok{background:var(--ok)} .dot.warn{background:var(--warn)} .dot.bad{background:var(--bad)}
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px}
input, textarea, select{
  width:100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  outline:none;
}
textarea{min-height:84px;resize:vertical}
.hint{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.35}
.split{display:grid;grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 520px){ .split{grid-template-columns:1fr} }
table{width:100%;border-collapse: collapse}
th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left;font-size:13px;vertical-align:top}
th{color:var(--muted);font-weight:700}
.right{text-align:right}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.toast{
  position:fixed;left:50%;bottom:16px;transform:translateX(-50%);
  background: rgba(17,26,46,.92);
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;border-radius:14px;
  box-shadow: var(--shadow);
  display:none; gap:10px; align-items:center;
  max-width:min(680px, 92vw);
  z-index:50;
}
.toast.show{display:flex}
.qr{
  background:#fff;
  border-radius:14px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:164px;
  color:#111827;
  text-align:center;
  font-size:12px;
}
.divider{height:1px;background:var(--line);margin:12px 0}
.hide{display:none !important}
.dangerText{color:#fecaca}
.okText{color:#bbf7d0}
.warnText{color:#fde68a}
