/* ═══════════════════════════════════════════════════════════════
   DevPlanner — main.css
   Global design system, tokens, layout, shared components
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #0a0e1a;
  --bg-2:         #0d1226;
  --surface:      #111827;
  --surface-2:    #1a2235;
  --surface-3:    #1f2a42;
  --border:       rgba(99, 102, 241, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);

  /* Accent */
  --accent:       #6366f1;
  --accent-hover: #818cf8;
  --accent-dim:   rgba(99, 102, 241, 0.12);
  --accent-glow:  rgba(99, 102, 241, 0.35);
  --purple:       #8b5cf6;
  --purple-dim:   rgba(139, 92, 246, 0.15);

  /* Text */
  --text:         #e2e8f0;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --text-inv:     #0a0e1a;

  /* Semantic */
  --success:      #10b981;
  --success-dim:  rgba(16, 185, 129, 0.15);
  --warning:      #f59e0b;
  --warning-dim:  rgba(245, 158, 11, 0.15);
  --danger:       #ef4444;
  --danger-dim:   rgba(239, 68, 68, 0.15);
  --info:         #3b82f6;
  --info-dim:     rgba(59, 130, 246, 0.15);

  /* Priority */
  --p-low:      #10b981;
  --p-medium:   #f59e0b;
  --p-high:     #f97316;
  --p-critical: #ef4444;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Nav */
  --nav-h: 64px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ─── SVG Icons ──────────────────────────────────────────────── */
.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon--sm  { width: 0.875rem; height: 0.875rem; }
.icon--md  { width: 1.25rem;  height: 1.25rem;  }
.icon--lg  { width: 1.5rem;   height: 1.5rem;   }
.icon--xl  { width: 2rem;     height: 2rem;     }
.icon--2xl { width: 2.5rem;   height: 2.5rem;   }

/* ─── Layout ─────────────────────────────────────────────────── */
.main-content { min-height: 100vh; }
.main-content--with-nav { padding-top: var(--nav-h); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.topnav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
}

/* Logo */
.topnav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.topnav__logo:hover { color: var(--text); }
.topnav__logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.topnav__logo-text { background: linear-gradient(135deg, var(--accent), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Nav links */
.topnav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-6);
  flex: 1;
}

.topnav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  text-decoration: none;
}
.topnav__link:hover {
  color: var(--text);
  background: var(--accent-dim);
}
.topnav__link--active {
  color: var(--accent-hover);
  background: var(--accent-dim);
}

/* User area */
.topnav__user { position: relative; margin-left: auto; }

.topnav__avatar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.topnav__avatar:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}
.topnav__username { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* Dropdown */
.topnav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: all var(--t-base);
  z-index: 200;
}
.topnav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
}
.dropdown__name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.dropdown__divider { height: 1px; background: var(--border-light); margin: var(--sp-2) 0; }

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  text-decoration: none;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}
.dropdown__item:hover {
  background: var(--accent-dim);
  color: var(--text);
}
.dropdown__item--danger { color: var(--danger); }
.dropdown__item--danger:hover { background: var(--danger-dim); color: var(--danger); }

/* Mobile toggle */
.topnav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  padding: var(--sp-2);
  border-radius: var(--r-md);
}
.topnav__mobile-toggle:hover { color: var(--text); background: var(--accent-dim); }

/* ─── Avatar ──────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--avatar-color, var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0;
  overflow: hidden;       /* clips img to circle */
}
/* img.avatar — photo variant */
img.avatar {
  object-fit: cover;
  background: var(--surface-3);
}
.avatar--lg { width: 48px; height: 48px; font-size: 1.125rem; }
.avatar--xl { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar--2xl { width: 80px; height: 80px; font-size: 2rem; }

/* Avatar upload ring — used on profile page */
.avatar-upload-ring {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.avatar-upload-ring .avatar { transition: filter var(--t-base); }
.avatar-upload-ring:hover .avatar { filter: brightness(0.65); }
.avatar-upload-ring__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
  color: #fff;
}
.avatar-upload-ring:hover .avatar-upload-ring__overlay { opacity: 1; }

/* ─── Role Badges ─────────────────────────────────────────────── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.role-badge--owner     { background: rgba(139,92,246,0.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.role-badge--developer { background: rgba(59,130,246,0.18); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.role-badge--user      { background: rgba(100,116,139,0.18); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.5625rem 1.125rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
  color: #fff;
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--accent);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn--ghost:hover:not(:disabled) {
  background: var(--accent-dim);
  color: var(--text);
}

.btn--danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
}
.btn--danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn--success {
  background: var(--success-dim);
  color: var(--success);
  border-color: rgba(16,185,129,0.3);
}
.btn--success:hover:not(:disabled) {
  background: var(--success);
  color: #fff;
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--r-sm);
}
.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}
.btn--full { width: 100%; }
.btn--icon {
  padding: 0.5rem;
  aspect-ratio: 1;
  border-radius: var(--r-md);
}

/* ─── Form Elements ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  transition: all var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }

.form-input--error { border-color: var(--danger) !important; }

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-hint { font-size: 0.75rem; color: var(--text-3); }
.form-error { font-size: 0.75rem; color: var(--danger); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  color: var(--text-3);
  pointer-events: none;
}
.input-wrap .form-input { padding-left: 2.5rem; }
.input-wrap .input-icon-right {
  position: absolute;
  right: 0.875rem;
  color: var(--text-3);
  cursor: pointer;
}

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.card--glass {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card--hover {
  transition: all var(--t-base);
  cursor: pointer;
}
.card--hover:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ─── Modal ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-base);
}
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal--lg { max-width: 720px; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
}
.modal__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}
.modal__body { padding: var(--sp-6); }
.modal__body form { display: flex; flex-direction: column; gap: var(--sp-5); }
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
}

/* ─── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  pointer-events: all;
  animation: toastIn var(--t-base) ease both;
  border: 1px solid transparent;
  position: relative;
}
.toast.is-leaving { animation: toastOut var(--t-base) ease forwards; }

.toast--success { background: var(--surface-2); border-color: rgba(16,185,129,0.3); }
.toast--error   { background: var(--surface-2); border-color: rgba(239,68,68,0.3); }
.toast--info    { background: var(--surface-2); border-color: rgba(99,102,241,0.3); }

.toast__icon { flex-shrink: 0; margin-top: 1px; }
.toast__icon--success { color: var(--success); }
.toast__icon--error   { color: var(--danger); }
.toast__icon--info    { color: var(--accent); }

.toast__body { flex: 1; }
.toast__message { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.toast__close {
  background: none;
  border: none;
  color: var(--text-3);
  padding: 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.toast__close:hover { color: var(--text); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding: var(--sp-8) 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
}
.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-top: var(--sp-1);
}

/* ─── Tables ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface); }

/* ─── Status & Priority Badges ───────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-badge--backlog    { background: rgba(100,116,139,0.18); color: #94a3b8; }
.status-badge--inprogress { background: rgba(59,130,246,0.18);  color: #60a5fa; }
.status-badge--review     { background: rgba(245,158,11,0.18);  color: #fbbf24; }
.status-badge--done       { background: rgba(16,185,129,0.18);  color: #34d399; }

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
}
.priority-badge--low      { background: rgba(16,185,129,0.15); color: var(--p-low);      border: 1px solid rgba(16,185,129,0.25); }
.priority-badge--medium   { background: rgba(245,158,11,0.15); color: var(--p-medium);   border: 1px solid rgba(245,158,11,0.25); }
.priority-badge--high     { background: rgba(249,115,22,0.15); color: var(--p-high);     border: 1px solid rgba(249,115,22,0.25); }
.priority-badge--critical { background: rgba(239,68,68,0.15);  color: var(--p-critical); border: 1px solid rgba(239,68,68,0.25); }

/* ─── Empty State ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  gap: var(--sp-4);
}
.empty-state__icon { color: var(--text-3); opacity: 0.5; }
.empty-state__title { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.empty-state__text  { font-size: 0.875rem; color: var(--text-3); max-width: 320px; }

/* ─── Alert Boxes ─────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.alert--error   { background: var(--danger-dim);  color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.alert--success { background: var(--success-dim); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.alert--info    { background: var(--info-dim);    color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.alert--warning { background: var(--warning-dim); color: #fcd34d; border-color: rgba(245,158,11,0.3); }

/* ─── Divider ─────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ─── Utility ─────────────────────────────────────────────────── */
.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }
.text-muted { color: var(--text-2); }
.text-dim   { color: var(--text-3); }
.font-bold  { font-weight: 700; }
.font-semi  { font-weight: 600; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topnav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-3);
  }
  .topnav__links.is-open { display: flex; }
  .topnav__mobile-toggle { display: flex; }
  .topnav__username { display: none; }
  .container { padding: 0 var(--sp-4); }
  .toast-container { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
  .toast { min-width: unset; max-width: 100%; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── Selection ───────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }
