:root{
  --bg:#000;
  --panel:#0b0b0b;
  --panel2:#111;
  --border:#1e1e1e;
  --text:#e9e9e9;
  --muted:#9aa0a6;
  --accent:#00ff66;
  --accent2:#00c853;
  --warn:#ffcc00;
  --bad:#ff3b3b;
  --shadow:0 18px 45px rgba(0,0,0,.55);
  --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}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(900px 500px at 15% -10%, rgba(0,255,102,.10), transparent 60%),
              radial-gradient(700px 450px at 110% 0%, rgba(0,255,102,.07), transparent 60%),
              var(--bg);
  font-family:var(--sans);
}
/* Subtle scanlines */
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.028),
    rgba(255,255,255,0.028) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 6px
  );
  opacity:.35;
  mix-blend-mode: overlay;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:1320px; margin:0 auto; padding:24px 16px 80px}
.top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.brand{display:flex; flex-direction:column; gap:2px}
.brand .title{font-weight:700; letter-spacing:.3px; font-size:15px; font-family:var(--mono)}
.brand .subtitle{color:var(--muted); font-size:12px}
.actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  display:inline-flex; align-items:center; gap:8px;
}
.pill strong{color:var(--text); font-weight:600}
.btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor:pointer;
  font-size:13px;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background: rgba(255,255,255,.06); border-color: rgba(0,255,102,.35)}
.btn:active{transform: translateY(1px)}
.btn.primary{border-color: rgba(0,255,102,.55); background: rgba(0,255,102,.10)}
.btn.bad{border-color: rgba(255,59,59,.55); background: rgba(255,59,59,.10)}
input,select,textarea{
  width:100%;
  color: var(--text);
  border:1px solid var(--border);
  background: rgba(0,0,0,.45);
  border-radius: 10px;
  padding: 10px 12px;
  outline:none;
  font-size: 13px;
}
textarea{min-height:130px; resize:vertical; line-height:1.45}
.help{color:var(--muted); font-size:12px; line-height:1.55}
.help code{font-family:var(--mono); background: rgba(255,255,255,.06); padding:2px 6px; border-radius:8px}
.grid{display:grid; grid-template-columns: 1.05fr .95fr; gap:14px; margin-top:14px}
@media (max-width: 1020px){.grid{grid-template-columns:1fr}}
.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .hd{padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; gap:10px}
.card .hd h2{margin:0; font-size:13px; letter-spacing:.25px; font-family:var(--mono)}
.card .hd .meta{color:var(--muted); font-size:12px}
.card .bd{padding:14px 16px}
.hr{height:1px; background: rgba(255,255,255,.06); margin:12px 0}
.table{width:100%; border-collapse:collapse; font-size:13px}
.table th,.table td{padding:10px 8px; border-bottom:1px solid rgba(255,255,255,.06); vertical-align:top}
.table th{color: rgba(233,233,233,.78); font-weight:600; text-align:left; font-family:var(--mono)}
.mono{font-family: var(--mono); font-size:12px}
.badge{display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:999px; font-size:12px; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.35)}
.badge.ok{border-color: rgba(0,255,102,.40); background: rgba(0,255,102,.08)}
.badge.warn{border-color: rgba(255,204,0,.45); background: rgba(255,204,0,.10)}
.badge.bad{border-color: rgba(255,59,59,.45); background: rgba(255,59,59,.10)}
.kv{display:grid; grid-template-columns: 120px 1fr; gap:10px; font-size:13px}
.kv .k{color: var(--muted)}
.msgs{display:flex; flex-direction:column; gap:10px; max-height: 520px; overflow:auto; padding-right:6px}
.msg{border:1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.35); border-radius: 12px; padding:10px 12px}
.msg .h{display:flex; align-items:center; justify-content:space-between; gap:10px; color: var(--muted); font-size:12px}
.msg .b{white-space:pre-wrap; line-height:1.5; margin-top:6px}
.msg.user{border-color: rgba(0,255,102,.20)}
.msg.admin{border-color: rgba(0,255,102,.35)}
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{padding:8px 10px; border:1px solid var(--border); background: rgba(255,255,255,.03); border-radius: 10px; cursor:pointer; font-size:13px; color: var(--muted)}
.tab.active{border-color: rgba(0,255,102,.45); background: rgba(0,255,102,.08); color: var(--text)}
.toast{position:fixed; right:18px; bottom:18px; max-width: 420px; padding:12px 14px; border-radius: 12px; border:1px solid rgba(0,255,102,.35); background: rgba(0,0,0,.72); box-shadow: var(--shadow); display:none}
.toast.show{display:block}
.toast .t{font-family: var(--mono); font-size:12px; color: var(--muted)}
.toast .m{margin-top:6px; line-height:1.45}
.small{font-size:12px; color: var(--muted)}
.right{display:flex; justify-content:flex-end}
