/* Minimal, clean, mobile-friendly */
:root{
  --bg:#0b0c10;
  --card:#111218;
  --muted:#9aa0aa;
  --text:#e9ecf1;
  --line:rgba(255,255,255,.10);
  --accent:#7dd3fc;
  --accent2:#a78bfa;
  --danger:#fb7185;
  --ok:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --pad:18px;
  --font: 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;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(125,211,252,.20), transparent 60%),
    radial-gradient(900px 400px at 95% 0%, rgba(167,139,250,.18), transparent 55%),
    var(--bg);
}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.65);
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.22));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  font-weight:800;
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:12px; margin-top:2px}

.container{max-width:1100px; margin:22px auto; padding:0 16px 40px}
.card{
  background: rgba(17,18,24,.85);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
  margin-bottom:16px;
}
h2{margin:0 0 14px; font-size:18px}
h3{margin:0 0 10px; font-size:14px; color: #d8dbe2}
h4{margin:0 0 10px; font-size:13px; color:#d8dbe2}
.mt{margin-top:16px}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 860px){
  .grid2{grid-template-columns:1fr}
}

.panel{
  padding:14px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.row{display:flex; gap:10px; align-items:center}
.gap8{gap:8px}
.space-between{justify-content:space-between}
.stack{display:flex; flex-direction:column; gap:10px}
.grow{flex:1}
.w160{width:160px}
@media (max-width: 520px){
  .row{flex-direction:column; align-items:stretch}
  .w160{width:100%}
}

label{display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted)}
input, select{
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,12,16,.55);
  color: var(--text);
  padding: 0 12px;
  outline:none;
}
input::placeholder{color: rgba(233,236,241,.45)}
input:focus, select:focus{border-color: rgba(125,211,252,.55); box-shadow: 0 0 0 4px rgba(125,211,252,.12)}

.btn{
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(125,211,252,.32);
  background: rgba(125,211,252,.16);
  color: var(--text);
  padding: 0 14px;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{background: rgba(125,211,252,.22)}
.btn.ghost{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.btn.ghost:hover{background: rgba(255,255,255,.10)}

.hint{color:var(--muted); font-size:12px; margin-top:8px; line-height:1.4}
.muted{color:var(--muted)}

.list{
  list-style:none;
  padding:0; margin:12px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pill{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,12,16,.45);
  padding:8px 10px;
  border-radius: 999px;
  font-size:12px;
  color: #dfe3ea;
}

.tableWrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius: 14px;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 820px;
}
.table thead th{
  text-align:left;
  font-size:12px;
  color: var(--muted);
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-bottom:1px solid var(--line);
  position:sticky; top:0;
}
.table tbody td{
  padding: 10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.table tbody tr:hover td{background: rgba(255,255,255,.03)}
.table tbody tr:last-child td{border-bottom:0}

.empty{
  margin-top: 12px;
  color: var(--muted);
  padding: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  text-align:center;
}

.search{
  height:40px;
  width: 100%;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #cbd5e1;
}

.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,18,24,.92);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 12px;
  max-width: 92vw;
  font-size: 13px;
  display:flex; align-items:center; gap:10px;
  z-index: 50;
}
.toast .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52,211,153,.12);
}
.toast.err .dot{background: var(--danger); box-shadow: 0 0 0 4px rgba(251,113,133,.10)}
.footer{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 12px;
}
