:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#e9ecff;
  --muted:#a9b1d6;
  --accent:#6ea8fe;
  --ok:#46d39a;
  --danger:#ff5d6c;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 18px;
}
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(110,168,254,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(70,211,154,.18), transparent 60%),
              var(--bg);
  color: var(--text);
  min-height:100vh;
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(980px, 100%);
  margin:0 auto;
  padding:24px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .logo{
  width:40px; height:40px;
  border-radius:14px;
  background: rgba(110,168,254,.18);
  border: 1px solid rgba(110,168,254,.35);
  display:grid; place-items:center;
  box-shadow: var(--shadow);
}
.brand h1{
  font-size:18px;
  margin:0;
  line-height:1.1;
}
.brand p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
}

nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.navlink{
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.navlink.active{
  border-color: rgba(110,168,254,.45);
  background: rgba(110,168,254,.18);
  font-weight:650;
}

.badge{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  white-space:nowrap;
  box-shadow: var(--shadow);
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255,93,108,.18);
}
.dot.on{
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(70,211,154,.18);
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
@media (max-width: 780px){
  .grid{ grid-template-columns: 1fr; }
}

.panel{
  padding:16px;
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
}

.label{ color: var(--muted); font-size: 13px; }
.h2{ font-size: 20px; margin: 6px 0 0; }
.meta{ margin-top: 6px; color: var(--muted); font-size: 14px; }

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

button{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 650;
}
button.primary{
  background: rgba(110,168,254,.18);
  border-color: rgba(110,168,254,.35);
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: 13px;
}

.slider{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}
input[type="range"]{
  width:100%;
  accent-color: var(--accent);
}

.small{ font-size: 13px; color: var(--muted); }

.footer{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
code{ color: #cfe1ff; }

