:root{
  --bg:#070b14; --panel:#0c1426; --panel2:#0b1222; --stroke:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92); --muted:rgba(255,255,255,.65);
  --blue:#2f7bff; --green:#31d37a; --amber:#f7c84b; --red:#ff5f6d;
}
*{box-sizing:border-box} html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(47,123,255,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 40%, rgba(49,211,122,.12), transparent 55%),
              linear-gradient(180deg, #05070d, #070b14 40%, #05070d);
}
a{color:inherit}
.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--stroke);
  background: rgba(7,11,20,.75); backdrop-filter: blur(10px);
}
.brand{display:flex; gap:10px; align-items:center}
.logo{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(47,123,255,.9), rgba(49,211,122,.85));
  box-shadow: 0 12px 30px rgba(47,123,255,.18);
}
.brand h1{font-size:14px; margin:0; line-height:1.1}
.brand .sub{font-size:12px; color:var(--muted)}
.pills{display:flex; gap:10px; align-items:center}
.pill{
  display:flex; gap:8px; align-items:center;
  padding:8px 10px; border:1px solid var(--stroke);
  border-radius:999px; font-size:12px; color:var(--muted);
  background: rgba(12,20,38,.55);
}
.dot{width:8px;height:8px;border-radius:999px;background:var(--green); box-shadow:0 0 0 4px rgba(49,211,122,.12)}
.container{max-width:1200px;margin:18px auto;padding:0 18px 28px}
.grid{display:grid; grid-template-columns: 260px 1fr; gap:16px}
.sidebar{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12,20,38,.72), rgba(11,18,34,.65));
  border-radius:16px; padding:14px; height: calc(100vh - 120px); position:sticky; top:76px;
}
.navTitle{font-size:12px; color:var(--muted); letter-spacing:.12em; margin:8px 0 10px}
.nav a{
  display:flex; gap:10px; align-items:center;
  padding:10px 10px; border-radius:12px; color:var(--text); text-decoration:none;
  border:1px solid transparent;
}
.nav a.active{background: rgba(47,123,255,.10); border-color: rgba(47,123,255,.22)}
.nav a:hover{background: rgba(255,255,255,.04)}
.icon{
  width:28px;height:28px;border-radius:10px;
  display:grid; place-items:center;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.8);
  font-size:13px;
}
.main{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12,20,38,.70), rgba(11,18,34,.55));
  border-radius:16px;
  overflow:hidden;
}
.header{
  padding:16px 16px 10px;
  border-bottom:1px solid var(--stroke);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.header h2{margin:0;font-size:16px}
.small{font-size:12px;color:var(--muted)}
.btn{
  padding:10px 12px; border-radius:12px; border:1px solid var(--stroke);
  background: rgba(0,0,0,.18); color:var(--text); cursor:pointer;
}
.btnPrimary{
  background: linear-gradient(135deg, rgba(47,123,255,.95), rgba(47,123,255,.72));
  border-color: rgba(47,123,255,.38);
}
.btnGhost{background:transparent}
.btn:disabled{opacity:.5; cursor:not-allowed}
.cards{padding:14px; display:grid; grid-template-columns: repeat(4, 1fr); gap:12px}
.card{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius:14px; padding:12px;
}
.card .k{font-size:12px; color:var(--muted)}
.card .v{font-size:24px; margin-top:6px}
.card .hint{font-size:12px; color: rgba(49,211,122,.9); margin-top:4px}
.card .warn{color: rgba(247,200,75,.95)}
.card .bad{color: rgba(255,95,109,.95)}
.content{padding:14px}
.split{display:grid; grid-template-columns: 1.2fr .8fr; gap:12px}
.panel{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  border-radius:14px; padding:12px;
}
.panel h3{margin:0 0 8px; font-size:14px}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
label{font-size:12px;color:var(--muted)}
input,select,textarea{
  width:100%; padding:12px 12px;
  border-radius:12px; border:1px solid var(--stroke);
  background: rgba(7,11,20,.55); color:var(--text);
  outline:none;
}
textarea{min-height:96px; resize:vertical}
.row{display:flex; gap:10px}
.row .field{flex:1}
.stepper{display:flex; gap:8px; flex-wrap:wrap}
.step{
  padding:8px 10px; border-radius:999px; border:1px solid var(--stroke);
  background: rgba(12,20,38,.45); font-size:12px; color:var(--muted);
}
.step.on{color:var(--text); border-color: rgba(47,123,255,.35); background: rgba(47,123,255,.10)}
.step.ok{border-color: rgba(49,211,122,.35); background: rgba(49,211,122,.10); color: rgba(255,255,255,.88)}
.notice{
  font-size:12px; color:var(--muted);
  border-left: 3px solid rgba(47,123,255,.65);
  padding-left:10px; margin:10px 0 0;
}
.table{width:100%; border-collapse:separate; border-spacing:0 8px}
.table th{font-size:12px; color:var(--muted); text-align:left; padding:6px 10px}
.table td{
  padding:10px 10px; border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke);
  background: rgba(0,0,0,.10);
}
.table tr td:first-child{border-left:1px solid var(--stroke); border-top-left-radius:12px; border-bottom-left-radius:12px}
.table tr td:last-child{border-right:1px solid var(--stroke); border-top-right-radius:12px; border-bottom-right-radius:12px}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; font-size:12px;
  border:1px solid var(--stroke); background: rgba(0,0,0,.12); color:var(--muted);
}
.badge.g{border-color:rgba(49,211,122,.35); background:rgba(49,211,122,.10); color:rgba(255,255,255,.86)}
.badge.b{border-color:rgba(47,123,255,.35); background:rgba(47,123,255,.10); color:rgba(255,255,255,.86)}
.badge.y{border-color:rgba(247,200,75,.35); background:rgba(247,200,75,.10); color:rgba(255,255,255,.86)}
.badge.r{border-color:rgba(255,95,109,.35); background:rgba(255,95,109,.10); color:rgba(255,255,255,.86)}
.footerBar{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px;
}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  .sidebar{position:relative; height:auto; top:0}
  .cards{grid-template-columns: repeat(2,1fr)}
  .split{grid-template-columns: 1fr}
}
