/* ================================================================
   ATELIER — Natava MSP Design System v1
   One file, zero patches, complete coverage.
================================================================ */

/* ── 0. Geist Variable ─────────────────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('/natava-assets/fonts/geist-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  --c:   #0a0a0b;
  --s1:  #101113;
  --s2:  #15171a;
  --s3:  #1c1f23;
  --s4:  #23272d;

  --l1:  #1a1c20;
  --l2:  #24272d;
  --l3:  #2e3239;

  --i1:  #ecedef;
  --i2:  #a4a8b2;
  --i3:  #6e727b;
  --i4:  #3d4047;

  --p:   #5e6ad2;
  --ph:  #7c87eb;
  --pa:  rgba(124,135,235,0.10);
  --pa2: rgba(124,135,235,0.18);
  --pr:  rgba(124,135,235,0.30);

  --ok:  #34c759;
  --er:  #ff453a;
  --wa:  #ff9f0a;
  --in:  #00b8d4;

  --r1:  4px;
  --r2:  6px;
  --r3:  8px;
  --r4:  12px;

  --sh1: 0 0 0 1px rgba(255,255,255,0.02), 0 1px 2px rgba(0,0,0,0.5);
  --sh2: 0 0 0 1px rgba(255,255,255,0.025), 0 4px 16px rgba(0,0,0,0.55);
  --sh3: 0 0 0 1px rgba(255,255,255,0.03), 0 12px 40px rgba(0,0,0,0.6);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --side-w: 232px;
  --head-h: 52px;
}

/* ── 2. Reset + Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--c);
  color: var(--i1);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--pa2); color: var(--i1); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--l2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--i3); }

/* Atmosphere */
body::before {
  content: '';
  position: fixed;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 540px;
  background: radial-gradient(ellipse at center,
    rgba(94,106,210,0.045) 0%,
    rgba(94,106,210,0.015) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* ── 3. Typography ─────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--i1); margin: 0 0 14px; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--i1); margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 550; letter-spacing: -0.01em; color: var(--i1); margin: 0 0 8px; }
h4 { font-size: 11px; font-weight: 600; color: var(--i2); text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 6px; }
p  { font-size: 13.5px; color: var(--i2); line-height: 1.55; margin: 0 0 10px; }

.text-i1 { color: var(--i1); }
.text-i2 { color: var(--i2); }
.text-i3 { color: var(--i3); }
.text-i4 { color: var(--i4); }
.text-p  { color: var(--p); }
.text-ph { color: var(--ph); }
.text-ok { color: var(--ok); }
.text-er { color: var(--er); }
.text-wa { color: var(--wa); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12.5px; }
.font-mono { font-family: 'Geist Mono', 'SF Mono', Consolas, monospace; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }

/* ── 4. Layout utilities ───────────────────────────────────── */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; }
.px-3 { padding-inline: 12px; } .px-4 { padding-inline: 16px; } .px-6 { padding-inline: 24px; }
.py-2 { padding-block: 8px; } .py-3 { padding-block: 12px; } .py-4 { padding-block: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bg-c  { background: var(--c); }
.bg-s1 { background: var(--s1); }
.bg-s2 { background: var(--s2); }
.bg-s3 { background: var(--s3); }
.border-l1 { border: 1px solid var(--l1); }
.border-b-l1 { border-bottom: 1px solid var(--l1); }
.border-t-l1 { border-top: 1px solid var(--l1); }
.border-r-l1 { border-right: 1px solid var(--l1); }
.rounded-r1 { border-radius: var(--r1); }
.rounded-r2 { border-radius: var(--r2); }
.rounded-r3 { border-radius: var(--r3); }
.rounded-r4 { border-radius: var(--r4); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.14s var(--ease); }

/* ── 5. Shell — Sidebar + Header + Content ────────────────── */
.shell { display: flex; min-height: 100vh; }

.shell__side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  background: var(--s1);
  border-right: 1px solid var(--l1);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
  overflow-y: auto;
}

.shell__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--l1);
}
.shell__logo-mark {
  width: 30px; height: 30px;
  border-radius: var(--r2);
  background: linear-gradient(135deg, var(--p), var(--ph));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(94,106,210,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
.shell__logo-text { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: var(--i1); line-height: 1.1; }
.shell__logo-sub { font-size: 10px; color: var(--i3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.nav-section { display: flex; flex-direction: column; gap: 1px; }
.nav-section + .nav-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--l1); }
.nav-section__title {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--i4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r2);
  color: var(--i2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
  position: relative;
}
.nav-item:hover { background: var(--s3); color: var(--i1); }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--i3); stroke-width: 1.7; }
.nav-item:hover svg { color: var(--i1); }
.nav-item.active { background: var(--pa); color: var(--ph); font-weight: 600; }
.nav-item.active svg { color: var(--ph); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--p);
  border-radius: 99px;
}
.nav-spacer { flex: 1; }

.shell__main {
  margin-left: var(--side-w);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.shell__header {
  height: var(--head-h);
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--l1);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
}

.shell__content {
  padding: 24px 32px 56px;
  width: 100%;
  max-width: none;
  flex: 1;
}

/* ── 6. Breadcrumb + Pills ─────────────────────────────────── */
.crumb { display: flex; align-items: center; font-size: 12px; color: var(--i3); gap: 6px; }
.crumb a { color: var(--i3); transition: color 0.12s var(--ease); }
.crumb a:hover { color: var(--i1); }
.crumb__sep { color: var(--i4); font-weight: 300; }
.crumb__curr { color: var(--i1); font-weight: 550; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--s2); border: 1px solid var(--l2); color: var(--i2);
  border-radius: var(--r2); padding: 5px 10px; height: 28px;
  font-size: 11.5px; font-weight: 500;
  transition: all 0.12s var(--ease);
}
.pill:hover { border-color: var(--l3); color: var(--i1); background: var(--s3); }
.pill svg { width: 12px; height: 12px; }

/* ── 7. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r2);
  font-size: 12.5px; font-weight: 550; letter-spacing: -0.005em;
  padding: 0 14px; height: 32px; line-height: 1;
  white-space: nowrap;
  transition: all 0.12s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:active { transform: translateY(0.5px); }
.btn--primary {
  background: var(--p); border-color: var(--p); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(94,106,210,0.35);
}
.btn--primary:hover { background: var(--ph); border-color: var(--ph); }
.btn--default { background: var(--s2); border-color: var(--l2); color: var(--i1); }
.btn--default:hover { background: var(--s3); border-color: var(--l3); }
.btn--ghost { background: transparent; color: var(--i2); padding: 0 10px; }
.btn--ghost:hover { background: var(--s2); color: var(--i1); }
.btn--danger { background: transparent; border-color: rgba(255,69,58,0.35); color: var(--er); }
.btn--danger:hover { background: rgba(255,69,58,0.08); border-color: var(--er); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn--lg { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn--icon { padding: 0; width: 30px; height: 30px; }

/* ── 8. Inputs ─────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="tel"], input[type="url"], input[type="date"],
select, textarea {
  background: var(--s2);
  border: 1px solid var(--l2);
  color: var(--i1);
  border-radius: var(--r2);
  padding: 8px 12px;
  font-size: 13px;
  height: 36px;
  width: 100%;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
textarea { height: auto; min-height: 90px; resize: vertical; line-height: 1.55; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--l3); }
input:focus, select:focus, textarea:focus { border-color: var(--p); background: var(--s1); outline: none; box-shadow: 0 0 0 3px var(--pr); }
input::placeholder, textarea::placeholder { color: var(--i4); }

label, .field-label {
  display: block;
  font-size: 10.5px; font-weight: 600; color: var(--i2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--l3);
  border-radius: 4px;
  background: var(--s2);
  cursor: pointer;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.12s var(--ease);
  display: inline-block;
  position: relative;
}
input[type="checkbox"]:hover { border-color: var(--ph); background: var(--s3); }
input[type="checkbox"]:checked {
  background: var(--p); border-color: var(--p);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── 9. Card ───────────────────────────────────────────────── */
.card {
  background: var(--s1);
  border: 1px solid var(--l1);
  border-radius: var(--r3);
  box-shadow: var(--sh1);
  transition: border-color 0.12s var(--ease);
}
.card:hover { border-color: var(--l2); }
.card__body { padding: 18px; }
.card__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--l1);
  display: flex; align-items: center; justify-content: space-between;
}
.card__head h3 { margin: 0; font-size: 13px; }
.card__foot { padding: 14px 18px; border-top: 1px solid var(--l1); }

/* ── 10. Table ─────────────────────────────────────────────── */
.table-wrap {
  background: var(--s1);
  border: 1px solid var(--l1);
  border-radius: var(--r3);
  overflow: hidden;
}
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: left;
  font-size: 10.5px; font-weight: 600;
  color: var(--i3);
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 11px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--l1);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--l1);
  color: var(--i2);
  vertical-align: middle;
  line-height: 1.4;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.08s var(--ease); }
.table tbody tr:hover td { background: var(--s2); }
.table tbody td.name { color: var(--i1); font-weight: 500; }

/* ── 11. Badges + Dot ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  background: var(--pa); color: var(--ph);
  border: 1px solid rgba(124,135,235,0.22);
  border-radius: 4px;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--ok { background: rgba(52,199,89,0.10); color: var(--ok); border-color: rgba(52,199,89,0.25); }
.badge--er { background: rgba(255,69,58,0.10); color: var(--er); border-color: rgba(255,69,58,0.25); }
.badge--wa { background: rgba(255,159,10,0.10); color: var(--wa); border-color: rgba(255,159,10,0.25); }
.badge--dim { background: var(--s2); color: var(--i3); border-color: var(--l2); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--i4); flex-shrink: 0; }
.dot--ok { background: var(--ok); box-shadow: 0 0 8px rgba(52,199,89,0.5); }
.dot--er { background: var(--er); }
.dot--wa { background: var(--wa); }

/* ── 12. Tabs ──────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--l1);
  margin-bottom: 20px;
  gap: 2px;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  color: var(--i2);
  font-size: 12.5px; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease);
  margin-bottom: -1px;
  background: none;
  border-left: none; border-right: none; border-top: none;
  cursor: pointer;
  font-family: inherit;
}
.tab:hover { color: var(--i1); }
.tab.active { color: var(--i1); border-bottom-color: var(--p); font-weight: 600; }
.tab svg { width: 14px; height: 14px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 13. Slide-over panel ──────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed; top: 0; right: 0;
  height: 100vh;
  width: min(720px, 100vw);
  background: var(--s1);
  border-left: 1px solid var(--l1);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  z-index: 60;
  display: flex; flex-direction: column;
  box-shadow: -40px 0 80px rgba(0,0,0,0.5);
}
.panel.open { transform: translateX(0); }
.panel--narrow { width: min(520px, 100vw); }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--l1);
  flex-shrink: 0;
}
.panel__title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.panel__sub { font-size: 11.5px; color: var(--i2); margin-top: 2px; }
.panel__body { padding: 24px; overflow-y: auto; flex: 1; }
.panel__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--l1);
  display: flex; justify-content: flex-end; gap: 8px;
  flex-shrink: 0;
}

/* ── 14. Empty + Spinner + Toasts ──────────────────────────── */
.empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--l2);
  border-radius: var(--r4);
  background: radial-gradient(ellipse at center top, rgba(94,106,210,0.04) 0%, transparent 60%), var(--s1);
}
.empty__icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--s3), var(--s2));
  border: 1px solid var(--l2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--ph);
}
.empty__title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--i1); margin: 0 0 6px; }
.empty__desc { font-size: 12.5px; color: var(--i2); max-width: 440px; line-height: 1.55; margin: 0 0 18px; }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid var(--l3);
  border-top-color: var(--ph);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toasts {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  background: var(--s2);
  border: 1px solid var(--l2);
  border-radius: var(--r2);
  font-size: 12.5px; color: var(--i1);
  min-width: 240px;
  box-shadow: var(--sh2);
  animation: toast-in 0.22s var(--ease);
  pointer-events: auto;
}
.toast--ok { border-left: 3px solid var(--ok); }
.toast--er { border-left: 3px solid var(--er); }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── 15. Stat cards ────────────────────────────────────────── */
.stat {
  background: var(--s1);
  border: 1px solid var(--l1);
  border-radius: var(--r3);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.12s var(--ease);
}
.stat:hover { border-color: var(--l2); }
.stat__label { font-size: 10.5px; font-weight: 600; color: var(--i3); text-transform: uppercase; letter-spacing: 0.08em; }
.stat__value { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--i1); line-height: 1.1; }
.stat__sub { font-size: 11.5px; color: var(--i2); }

/* ── 16. Code ──────────────────────────────────────────────── */
code {
  font-family: 'Geist Mono', 'SF Mono', Consolas, monospace;
  font-size: 11.5px;
  background: var(--s2);
  border: 1px solid var(--l1);
  border-radius: var(--r1);
  padding: 2px 6px;
  color: var(--i1);
}
pre {
  font-family: 'Geist Mono', 'SF Mono', Consolas, monospace;
  font-size: 11.5px;
  background: var(--c);
  border: 1px solid var(--l1);
  border-radius: var(--r2);
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.6;
  color: var(--i1);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 17. Login page ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--c);
  position: relative;
}
.login-card {
  width: min(420px, 92vw);
  background: var(--s1);
  border: 1px solid var(--l2);
  border-radius: var(--r4);
  padding: 36px 32px;
  box-shadow: var(--sh3);
  position: relative;
  z-index: 1;
}
.login-card__brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.login-card__brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p), var(--ph));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(94,106,210,0.4), inset 0 1px 0 rgba(255,255,255,0.16);
}
.login-card__brand-text { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.login-card__brand-sub { font-size: 11px; color: var(--i3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

/* Focus visible — accessibility */
*:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; border-radius: var(--r1); }

/* ── 18. Additional shell pieces ─────────────────────────────── */
.shell__side-spacer { flex: 1; }
.nav-section--quiet { border-top: none !important; margin-top: 4px !important; padding-top: 4px !important; }
.nav-item__badge {
  margin-left: auto;
  background: var(--s3);
  border: 1px solid var(--l2);
  color: var(--i2);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}
.nav-item.active .nav-item__badge { background: var(--pa); border-color: rgba(124,135,235,0.25); color: var(--ph); }

.shell__head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.userpill { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--l1); border-radius: 99px; background: var(--s2); }
.userpill__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--ph));
  color: #fff; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.01em;
}
.userpill__meta { line-height: 1.1; }
.userpill__name { font-size: 12px; font-weight: 550; color: var(--i1); }
.userpill__role { font-size: 9.5px; color: var(--i3); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 1px; }

/* ── 19. Grid + utility additions ────────────────────────────── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.grid-auto-280 { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
@media (max-width: 980px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head__title { margin: 0; }
.page-head__sub { font-size: 12.5px; color: var(--i2); margin: 4px 0 0; }
.page-head__actions { display: flex; gap: 8px; align-items: center; }

.toast-root { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 200; pointer-events: none; }

/* ── 20. Responsive sidebar ──────────────────────────────────── */
@media (max-width: 880px) {
  :root { --side-w: 0px; }
  .shell__side { transform: translateX(-100%); transition: transform 0.22s var(--ease); width: 232px; }
  .shell__side.open { transform: translateX(0); }
  .shell__main { margin-left: 0; }
}
