:root{
  --bg:#0b1220; --panel:#0f1a33; --card:#0c1730;
  --text:#e8efff; --muted:#9fb0d0; --line:rgba(255,255,255,.08);
  --accent:#6ea8ff; --accent2:#7c5cff;
  --ok:#27d79f; --warn:#ffcc66; --bad:#ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
  background:
    radial-gradient(1200px 700px at 80% 0%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(1000px 600px at 10% 10%, rgba(110,168,255,.22), transparent 55%),
    var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
.layout{display:flex; min-height:100vh}
.sidebar{
  width:290px; padding:18px; border-inline-end:1px solid var(--line);
  background:linear-gradient(180deg, rgba(15,26,51,.92), rgba(15,26,51,.55));
  position:sticky; top:0; height:100vh;
}
.brand{
  display:flex; gap:12px; align-items:center; padding:10px 12px;
  border:1px solid var(--line); border-radius:14px;
  background:rgba(255,255,255,.03);
}
.logo{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 12px 30px rgba(110,168,255,.25);
}
.brand h1{font-size:16px; margin:0}
.brand p{font-size:12px; margin:2px 0 0; color:var(--muted)}
.nav{margin-top:16px; display:flex; flex-direction:column; gap:8px}
.nav a{
  padding:12px 12px; border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  display:flex; align-items:center; justify-content:space-between;
}
.nav a:hover{background:rgba(255,255,255,.04); color:var(--text)}
.nav a.active{
  background:rgba(110,168,255,.12);
  border-color:rgba(110,168,255,.25);
  color:var(--text);
}
.badge{
  font-size:12px; padding:3px 10px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid var(--line);
  color:var(--muted);
}
.main{flex:1; padding:22px 18px}
.container{max-width:1100px; margin:0 auto}
.header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  margin-bottom:14px;
}
.header h2{margin:0; font-size:18px}
.header .hint{color:var(--muted); font-size:13px; margin-top:6px}
.grid{display:grid; gap:14px}
.grid.cols-3{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid.cols-2{grid-template-columns:repeat(2, minmax(0,1fr))}
@media (max-width: 980px){
  .sidebar{display:none}
  .grid.cols-3,.grid.cols-2{grid-template-columns:1fr}
}
.card{
  background:rgba(12,23,48,.72);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}
.kpi{display:flex; justify-content:space-between; align-items:flex-start; gap:10px}
.kpi .num{font-size:24px; margin:6px 0 0}
.kpi .label{color:var(--muted); font-size:12px}
hr.sep{border:0; border-top:1px solid var(--line); margin:14px 0}
.btn{
  cursor:pointer;
  border:1px solid rgba(110,168,255,.35);
  background:linear-gradient(135deg, rgba(110,168,255,.22), rgba(124,92,255,.16));
  color:var(--text);
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:rgba(255,255,255,.04); border-color:var(--line)}
.input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.input:focus, textarea:focus, select:focus{border-color:rgba(110,168,255,.45)}
.row{display:grid; gap:12px}
.row.cols-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.small{font-size:12px; color:var(--muted)}
.notice{
  padding:12px 12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
}
.notice.ok{border-color:rgba(39,215,159,.35); background:rgba(39,215,159,.08); color:#bff3e4}
.notice.bad{border-color:rgba(255,107,107,.35); background:rgba(255,107,107,.08); color:#ffd1d1}
.table{
  width:100%; border-collapse:separate; border-spacing:0;
  overflow:hidden; border-radius:14px; border:1px solid var(--line);
}
.table th,.table td{
  padding:12px; text-align:right; border-bottom:1px solid var(--line);
}
.table th{color:var(--muted); font-weight:700; background:rgba(255,255,255,.03)}
.table tr:last-child td{border-bottom:0}
.pills{display:flex; flex-wrap:wrap; gap:8px}
.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:6px 10px;
  color:var(--muted);
  font-size:12px;
}
.gallery{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px}
.gallery img{
  width:100%; height:180px; object-fit:cover;
  border-radius:14px; border:1px solid var(--line);
}
@media (max-width: 980px){
  .gallery{grid-template-columns:1fr}
  .gallery img{height:220px}
}
