.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; border-right: 1px solid var(--line); background: rgba(3, 13, 23, 0.82); backdrop-filter: blur(24px); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.brand img { width: 46px; height: 46px; }
.brand strong { display: block; letter-spacing: .03em; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 9px; }
.nav button { text-align: left; border: 0; color: var(--muted); background: transparent; padding: 13px 15px; border-radius: 14px; }
.nav button:hover, .nav button.active { color: var(--text); background: linear-gradient(135deg, rgba(88,215,255,.18), rgba(79,124,255,.12)); }
.sidebar-footer { position: absolute; left: 18px; right: 18px; bottom: 24px; }
.main { padding: 30px; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.topbar h1 { font-size: clamp(25px, 3vw, 39px); margin-bottom: 4px; }
.user-chip, .status-chip, .metric-chip { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 9px 13px; display: inline-flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(18,49,74,.92), rgba(8,24,39,.9)); box-shadow: var(--shadow); padding: 22px; }
.card.soft { box-shadow: none; background: rgba(255,255,255,.035); }
.card h2 { font-size: 19px; }
.metric { font-size: 34px; font-weight: 750; }
.btn { border: 1px solid transparent; border-radius: 14px; padding: 11px 16px; color: var(--text); background: var(--panel-3); transition: .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(135deg, var(--brand-2), #22bce6); }
.btn.success { background: rgba(59,211,155,.18); border-color: rgba(59,211,155,.35); color: #b8ffe4; }
.btn.danger { background: rgba(255,111,125,.15); border-color: rgba(255,111,125,.35); color: #ffd5d9; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; color: var(--text); background: rgba(1,10,18,.55); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(88,215,255,.65); box-shadow: 0 0 0 3px rgba(88,215,255,.1); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.progress { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--success)); transition: width .35s ease; }
.list { display: grid; gap: 11px; }
.list-item { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: rgba(255,255,255,.025); }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.badge.pass { color: #9effd4; border-color: rgba(59,211,155,.35); background: rgba(59,211,155,.08); }
.badge.fail { color: #ffc2c8; border-color: rgba(255,111,125,.35); background: rgba(255,111,125,.08); }
.badge.active { color: #bceeff; border-color: rgba(88,215,255,.35); background: rgba(88,215,255,.08); }
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 50; }
.toast { min-width: 260px; max-width: 420px; padding: 14px 16px; border-radius: 14px; background: #102a43; border: 1px solid var(--line); box-shadow: var(--shadow); animation: toast-in .2s ease; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 20; height: auto; left: 12px; right: 12px; bottom: 12px; top: auto; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
  .brand, .sidebar-footer { display: none; }
  .nav { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .nav button { text-align: center; font-size: 12px; padding: 10px 5px; }
  .main { padding: 20px 16px 90px; }
  .grid.two, .grid.three, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
