:root{
  --bg:#0b0f17;
  --card:#111827;
  --card2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:rgba(255,255,255,.08);
  --brand:#22c55e;
  --brand2:#06b6d4;
  --danger:#ef4444;
  --warn:#f59e0b;
  --ok:#22c55e;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:14px;
  --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(800px 420px at 90% 0%, rgba(6,182,212,.12), transparent 55%),
    radial-gradient(700px 400px at 30% 100%, rgba(99,102,241,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:26px 18px 60px}
.topbar{
  display:flex; justify-content:space-between; align-items:center;
  gap:14px; padding:18px 20px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(17,24,39,.92), rgba(15,23,42,.86));
  border-radius:var(--radius); box-shadow:var(--shadow);
  position:sticky; top:14px; backdrop-filter: blur(10px); z-index:10;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.logo{
  width:38px; height:38px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 10px 30px rgba(34,197,94,.22);
}
.brand h1{font-size:14px; margin:0; letter-spacing:.4px}
.brand p{margin:2px 0 0; font-size:12px; color:var(--muted)}

.pills{display:flex; gap:8px; flex-wrap:wrap}
.pill{
  font-size:12px; color:var(--muted);
  border:1px solid var(--line);
  padding:8px 10px; border-radius:999px;
  background:rgba(255,255,255,.02);
}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition:transform .06s ease, background .2s ease, border-color .2s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
.btn:active{transform:translateY(1px)}
.btn.primary{
  border-color:rgba(34,197,94,.35);
  background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(6,182,212,.12));
}
.btn.danger{
  border-color:rgba(239,68,68,.35);
  background:linear-gradient(135deg, rgba(239,68,68,.16), rgba(244,63,94,.10));
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:16px;
}
.card{
  grid-column: span 12;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(17,24,39,.88), rgba(15,23,42,.82));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card h2{margin:0 0 8px; font-size:14px; letter-spacing:.3px}
.card p{margin:0; color:var(--muted); font-size:13px; line-height:1.45}

.cols-6{grid-column: span 12}
.cols-4{grid-column: span 12}
@media(min-width:900px){
  .cols-6{grid-column: span 6}
  .cols-4{grid-column: span 4}
}

.field{
  display:flex; flex-direction:column; gap:6px; margin-top:10px;
}
label{font-size:12px; color:var(--muted)}
input, select, textarea{
  width:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:11px 12px;
  border-radius:12px;
  outline:none;
}
textarea{min-height:92px; resize:vertical}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.spread{justify-content:space-between}
.muted{color:var(--muted)}
.hr{height:1px; background:var(--line); margin:12px 0}

.kpi-wrap{
  display:grid; grid-template-columns:repeat(1,1fr); gap:12px; margin-top:12px;
}
@media(min-width:900px){.kpi-wrap{grid-template-columns:repeat(5,1fr)}}
.kpi{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:16px;
  padding:12px;
}
.kpi .name{font-size:12px; color:var(--muted)}
.kpi .val{font-size:18px; font-weight:700; margin-top:6px}
.kpi .meta{font-size:12px; color:var(--muted); margin-top:4px}

.badge{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid var(--line); background:rgba(255,255,255,.02);
}
.badge.ok{border-color:rgba(34,197,94,.35); color:#bbf7d0}
.badge.warn{border-color:rgba(245,158,11,.35); color:#fde68a}
.badge.bad{border-color:rgba(239,68,68,.35); color:#fecaca}

.table{
  width:100%; border-collapse:collapse; margin-top:10px; overflow:hidden;
}
.table th,.table td{
  text-align:left; padding:10px; font-size:13px;
  border-bottom:1px solid var(--line);
}
.table th{color:var(--muted); font-weight:600}
.table tr:hover td{background:rgba(255,255,255,.02)}
.right{text-align:right}

.gallery{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:10px;
}
@media(min-width:900px){.gallery{grid-template-columns:repeat(4,1fr)}}
.photo{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:16px; overflow:hidden;
}
.photo img{width:100%; height:150px; object-fit:cover; display:block}
.photo .cap{padding:10px}
.photo .cap .t{font-size:12px; color:var(--muted)}
.photo .cap .b{font-size:12px; margin-top:6px}
.note{font-size:12px; color:var(--muted); margin-top:6px}

.toast{
  position:fixed; right:18px; bottom:18px; max-width:420px;
  padding:12px 14px; border-radius:14px;
  border:1px solid var(--line);
  background:rgba(17,24,39,.95);
  box-shadow:var(--shadow);
  display:none;
}
.toast.show{display:block}
