/* Simple dark UI */
:root{
  --bg:#0b0f14; --text:#eaf0ff; --muted:#9fb0cf;
  --line:#223049; --btn:#2b6cff; --btn2:#1a263a;
  --radius:16px;
  color-scheme: dark;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 10% -10%, #12233d 0%, transparent 55%),
              radial-gradient(900px 700px at 90% 0%, #1b2a4a 0%, transparent 60%),
              var(--bg);
  color:var(--text);
}
.wrap{ max-width:1100px; margin:0 auto; padding:20px; }
.grid{ display:grid; gap:16px; grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 980px){ .grid{ grid-template-columns:1fr; } }
h1{ margin: 8px 0 6px; font-size:28px; }
h2{ margin: 0 0 10px; font-size:18px; }
h3{ margin:0 0 10px; font-size:16px; }
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.row{ display:flex; gap:10px; align-items:center; }
.between{ justify-content:space-between; }
.end{ justify-content:flex-end; }
.grow{ flex:1; }
.input{
  width:100%;
  background: rgba(0,0,0,.25);
  border:1px solid var(--line);
  border-radius: 12px;
  padding:10px 12px;
  color: var(--text);
  outline:none;
}
.input:focus{ border-color:#3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.btn{
  background: var(--btn);
  border:1px solid rgba(255,255,255,.1);
  color:white;
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{ filter:brightness(1.08); }
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: var(--btn2);
  border-color: var(--line);
  color: var(--text);
}
.muted{ color:var(--muted); }
.tiny{ font-size:12px; }
.list{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.item{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  background: rgba(0,0,0,.18);
}
.badges{ display:flex; gap:6px; flex-wrap:wrap; }
.badge{
  font-size:11px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.kpi{ display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; }
@media (max-width: 720px){ .kpi{ grid-template-columns: repeat(2, 1fr);} }
.kpi .box{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px;
  background: rgba(0,0,0,.18);
}
.kpi .val{ font-size:18px; font-weight:800; }
.kpi .lbl{ font-size:12px; color:var(--muted); }
.table{ margin-top:12px; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.table .tr{ display:grid; grid-template-columns: 1.6fr 0.6fr 0.6fr; }
.table .th, .table .td{
  padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06);
}
.table .th{ background: rgba(255,255,255,0.03); font-size:12px; color: var(--muted); }
.table .tr:last-child .td{ border-bottom:none; }
.hidden{ display:none; }
.dlg::backdrop{ background: rgba(0,0,0,.6); }
.dlg-card{
  width:min(520px, 92vw);
  border:1px solid var(--line);
  border-radius: 18px;
  padding:16px;
  background: #0e1520;
  color: var(--text);
}
.label{ display:block; font-size:12px; color: var(--muted); }
.label .input{ margin-top:6px; }
