/* ============================================================
   SYSLX Panel — Design System v3
   Modern dark dashboard. Sidebar shell, refined neon identity.
   Body: Inter (system fallback). Brand/headings accent: Orbitron.
   ============================================================ */

:root {
  /* Surfaces (layered dark) */
  --bg-0: #07060d;          /* page base */
  --bg-1: #0c0a16;          /* sidebar / deep panels */
  --surface-1: #121022;     /* cards */
  --surface-2: #181530;     /* raised / inputs */
  --surface-3: #211c3d;     /* hover */
  --border: rgba(168,139,250,.14);
  --border-strong: rgba(168,139,250,.28);

  /* Brand + accents */
  --primary: #a855f7;
  --primary-600: #8b3ff0;
  --primary-700: #6d28d9;
  --primary-soft: rgba(168,85,247,.14);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34,211,238,.12);

  /* Semantic */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --success-soft: rgba(52,211,153,.13);
  --warning-soft: rgba(251,191,36,.13);
  --danger-soft: rgba(248,113,113,.13);

  /* Text */
  --text: #f4f2fb;
  --text-2: #cdc7e6;
  --muted: #9890b8;
  --faint: #6f6890;

  /* Shape + motion */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 30px rgba(0,0,0,.45);
  --shadow-pop: 0 18px 50px rgba(0,0,0,.6);
  --ring: 0 0 0 3px rgba(168,85,247,.30);
  --ease: cubic-bezier(.4,0,.2,1);

  --sidebar-w: 260px;
  --topbar-h: 64px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Orbitron", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient backdrop */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 540px at 78% -8%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(760px 460px at 8% 108%, rgba(34,211,238,.08), transparent 55%),
    var(--bg-0);
}

a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
::selection { background: rgba(168,85,247,.35); }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #2c2552; background-clip: content-box; }

/* ============================================================
   App shell
   ============================================================ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--bg-1), #08070f);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 18px 14px; gap: 6px; z-index: 40;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 8px 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sidebar .brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(168,85,247,.5)); }
.sidebar .brand b {
  font-family: var(--font-brand); font-weight: 800; font-size: 17px;
  letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-group { margin-top: 12px; }
.nav-group .nav-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); padding: 4px 10px; margin-bottom: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  transition: background .15s var(--ease), color .15s var(--ease);
  position: relative; cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  color: #fff;
}
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary); box-shadow: 0 0 12px var(--primary);
}
.nav-item .nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary); border-radius: 99px; padding: 2px 8px;
}
.sidebar .sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

/* Main column */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(8,7,15,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .page-title { font-size: 18px; font-weight: 700; }
.topbar .page-sub { color: var(--muted); font-size: 12.5px; }
.topbar .spacer { flex: 1; }
.hamburger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  box-shadow: 0 0 14px rgba(168,85,247,.4);
}
.user-chip .u-name { font-weight: 600; font-size: 13px; line-height: 1.1; }
.user-chip .u-role { font-size: 11px; color: var(--muted); }

.content { padding: 26px 24px 60px; width: 100%; max-width: 1280px; margin: 0 auto; }
.content.wide { max-width: 1500px; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }

/* ============================================================
   Layout helpers
   ============================================================ */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.gap-sm{gap:8px}.flex-1{flex:1}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface-1), #100e1e);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 20px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.card-head .ico {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--border-strong);
}
.card-head .ico svg { width: 18px; height: 18px; }
.card-head h2, .card-head h3 { font-size: 15px; letter-spacing: .01em; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-sep { height: 1px; background: var(--border); margin: 16px -20px; }

/* KPI stat card */
.stat {
  background: linear-gradient(180deg, var(--surface-1), #100e1e);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; display: flex; gap: 14px; align-items: center;
}
.stat .stat-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-strong);
}
.stat .stat-ico svg { width: 22px; height: 22px; }
.stat .stat-ico.cyan { background: var(--cyan-soft); color: var(--cyan); }
.stat .stat-ico.green { background: var(--success-soft); color: var(--success); }
.stat .stat-ico.amber { background: var(--warning-soft); color: var(--warning); }
.stat .stat-ico.red { background: var(--danger-soft); color: var(--danger); }
.stat .stat-label { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.stat .stat-value { font-size: 24px; font-weight: 700; line-height: 1.1; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .stat-trend { font-size: 11.5px; margin-top: 2px; }
.stat .stat-trend.up { color: var(--success); } .stat .stat-trend.down { color: var(--danger); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff; box-shadow: 0 6px 18px rgba(109,40,217,.35);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(109,40,217,.5); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn.subtle { background: transparent; border-color: var(--border); color: var(--text-2); box-shadow: none; }
.btn.subtle:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 6px 18px rgba(185,28,28,.35); }
.btn.success { background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 6px 18px rgba(4,120,87,.35); }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn.icon { padding: 9px; }
.btn.block { width: 100%; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.label .req { color: var(--danger); }
.hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font); font-size: 13.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--ring); background: var(--surface-1); }
.textarea { resize: vertical; min-height: 92px; }
.select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239890b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.input-group { position: relative; }
.input-group .input { padding-right: 42px; }
.input-group .ig-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.input-group .ig-btn:hover { color: var(--text); background: var(--surface-3); }

/* toggle switch */
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 99px; transition: .2s; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + .track { background: var(--primary-soft); border-color: var(--primary); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* ============================================================
   Badges / pills / chips
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.badge.dot::before { content:""; width:7px;height:7px;border-radius:50%;background:currentColor; box-shadow:0 0 8px currentColor; }
.badge.green { color: var(--success); border-color: rgba(52,211,153,.35); background: var(--success-soft); }
.badge.amber { color: var(--warning); border-color: rgba(251,191,36,.35); background: var(--warning-soft); }
.badge.red { color: var(--danger); border-color: rgba(248,113,113,.35); background: var(--danger-soft); }
.badge.cyan { color: var(--cyan); border-color: rgba(34,211,238,.35); background: var(--cyan-soft); }

/* role badges (tier identity) */
.role { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:99px; font-size:11.5px; font-weight:700; border:1px solid; }
.role-0,.role-free   { color:#9ca3af; border-color:rgba(156,163,175,.4); background:rgba(156,163,175,.1); }
.role-1,.role-vip    { color:#fbbf24; border-color:rgba(251,191,36,.45); background:rgba(251,191,36,.1); }
.role-2,.role-beta   { color:#c084fc; border-color:rgba(192,132,252,.5); background:rgba(192,132,252,.12); }
.role-3,.role-support{ color:#34d399; border-color:rgba(52,211,153,.45); background:rgba(52,211,153,.1); }
.role-4,.role-mod    { color:#60a5fa; border-color:rgba(96,165,250,.45); background:rgba(96,165,250,.1); }
.role-5,.role-admin  { color:#a855f7; border-color:rgba(168,85,247,.5);  background:rgba(168,85,247,.12); }
.role-6,.role-owner  { color:#f87171; border-color:rgba(248,113,113,.5); background:rgba(248,113,113,.12); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r); position: relative; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { text-align: left; padding: 11px 14px; vertical-align: middle; }
table.tbl thead th {
  position: sticky; top: 0; background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap; z-index: 1;
}
table.tbl thead th.sortable { cursor: pointer; user-select: none; }
table.tbl thead th.sortable:hover { color: var(--text); }
table.tbl thead th.sortable::after { content: "↕"; margin-left: 6px; opacity: .4; font-size: 10px; }
table.tbl thead th.asc::after { content: "↑"; opacity: 1; color: var(--primary); }
table.tbl thead th.desc::after { content: "↓"; opacity: 1; color: var(--primary); }
table.tbl tbody td { border-bottom: 1px solid var(--border); }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap.loading { min-height: 120px; }
.table-wrap.loading::after { content: ""; position: absolute; inset: 0; background: rgba(8,7,15,.55); backdrop-filter: blur(2px); border-radius: var(--r); }
.table-wrap.loading::before { content: "Loading…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); z-index: 2; font-size: 13px; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 13.5px; font-family: var(--font);
  padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px; transition: color .15s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }

/* ============================================================
   Toasts
   ============================================================ */
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 14px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pop); animation: toast-in .25s var(--ease);
}
.toast .t-ico { flex: 0 0 auto; width: 20px; height: 20px; }
.toast .t-body { font-size: 13px; }
.toast .t-title { font-weight: 700; margin-bottom: 1px; }
.toast.success { border-color: rgba(52,211,153,.4); } .toast.success .t-ico { color: var(--success); }
.toast.error { border-color: rgba(248,113,113,.4); } .toast.error .t-ico { color: var(--danger); }
.toast.info .t-ico { color: var(--cyan); }
.toast.closing { animation: toast-out .2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   Modal / drawer
   ============================================================ */
.modal-host { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-host.open { display: flex; }
.modal-host .backdrop { position: absolute; inset: 0; background: rgba(4,3,9,.66); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.modal {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: linear-gradient(180deg, var(--surface-1), #100e1e);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop); padding: 24px; animation: modal-in .25s var(--ease);
}
.modal.drawer { position: fixed; right: 0; top: 0; height: 100vh; max-height: none; width: min(460px,100%); border-radius: 0; border-right: 0; animation: drawer-in .25s var(--ease); }
.modal .modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal .modal-head h3 { font-size: 17px; }
.modal .modal-close { margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; cursor: pointer; padding: 7px; }
.modal .modal-close:hover { color: var(--text); background: var(--surface-3); }
@keyframes fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .4; } }

/* ============================================================
   Misc
   ============================================================ */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.mono-box { font-family: var(--font-mono); background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; word-break: break-all; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 38px; height: 38px; opacity: .4; margin-bottom: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(168,85,247,.3); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.link { color: var(--cyan); } .link:hover { text-decoration: underline; }
.kbd { font-family: var(--font-mono); font-size: 11px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--primary-soft); border: 1px solid var(--border-strong); font-size: 13px; }
.notice.warn { background: var(--warning-soft); border-color: rgba(251,191,36,.35); }
.notice.danger { background: var(--danger-soft); border-color: rgba(248,113,113,.35); }

/* online/presence */
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex: 0 0 auto; }

/* ============================================================
   Auth pages
   ============================================================ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card .auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-card .auth-brand img { width: 60px; height: 60px; filter: drop-shadow(0 0 16px rgba(168,85,247,.5)); }
.auth-card .auth-brand b { font-family: var(--font-brand); letter-spacing: .18em; font-size: 18px; text-transform: uppercase; }
.auth-card h1 { font-size: 20px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--muted); margin: 6px 0 22px; font-size: 13px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); } .span-3 { grid-column: span 2; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%);
    transition: transform .25s var(--ease); box-shadow: var(--shadow-pop);
  }
  .app.nav-open .sidebar { transform: translateX(0); }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .hamburger { display: inline-flex; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 50px; }
  .user-chip .u-meta { display: none; }
  .topbar { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
