/* ============================================================
   QuantumCorps Design System — Core Stylesheet
   ------------------------------------------------------------
   Tokens, primitives, components.
   Use with Tailwind via CDN (config below) OR standalone.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* —— Surfaces (dark by default — c'est l'identité) —— */
  --q-bg:           #07090c;     /* page background */
  --q-bg-2:         #0b0e13;     /* elevated section */
  --q-surface:      #10141b;     /* card */
  --q-surface-2:    #161b24;     /* card hover / nested */
  --q-surface-3:    #1d2330;     /* highest elevation */

  /* —— Borders —— */
  --q-border:       rgba(255,255,255,0.06);
  --q-border-2:     rgba(255,255,255,0.10);
  --q-border-3:     rgba(255,255,255,0.16);

  /* —— Text —— */
  --q-text:         #e8edf2;
  --q-text-muted:   rgba(232,237,242,0.62);
  --q-text-faint:   rgba(232,237,242,0.38);

  /* —— Accent : Quantum Green (premium saturé) —— */
  --q-accent:       #00e599;
  --q-accent-rgb:   0 229 153;
  --q-accent-soft:  rgba(0,229,153,0.12);
  --q-accent-glow:  rgba(0,229,153,0.45);
  --q-accent-ink:   #051911;     /* text on accent fill */

  /* —— Secondary : Quantum Violet (discret, pour la profondeur) —— */
  --q-violet:       #8b6cff;
  --q-violet-rgb:   139 108 255;

  /* —— Semantic —— */
  --q-success:      #22d3a0;
  --q-success-rgb:  34 211 160;
  --q-info:         #4cc2ff;
  --q-info-rgb:     76 194 255;
  --q-warning:      #ffb547;
  --q-warning-rgb:  255 181 71;
  --q-danger:       #ff5d6c;
  --q-danger-rgb:   255 93 108;

  /* —— Radii —— */
  --q-r-xs: 4px;
  --q-r-sm: 6px;
  --q-r:    10px;
  --q-r-lg: 14px;
  --q-r-xl: 20px;

  /* —— Shadows —— */
  --q-shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --q-shadow-2: 0 4px 12px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  --q-shadow-3: 0 10px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
  --q-glow:     0 0 0 1px rgba(var(--q-accent-rgb), 0.4), 0 0 24px -4px rgba(var(--q-accent-rgb), 0.5);

  /* —— Motion —— */
  --q-ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --q-ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --q-dur-fast: 120ms;
  --q-dur:      200ms;
  --q-dur-slow: 360ms;

  /* —— Type (Geist + Geist Mono) —— */
  --q-font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --q-font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--q-bg);
  color: var(--q-text);
  font-family: var(--q-font-sans);
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle global grain — ON par défaut */
body.q-grain::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

::selection { background: rgba(var(--q-accent-rgb), 0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Focus ring (a11y, propre) */
:focus-visible {
  outline: 2px solid rgba(var(--q-accent-rgb), 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Page-load fade — synchronisé (pas d'animation décalée par élément) */
.q-fade-in {
  opacity: 0;
  transition: opacity var(--q-dur-slow) var(--q-ease);
}
.q-fade-in.is-ready { opacity: 1; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
.q-display {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.q-h1 { font-size: 2rem;    line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.q-h2 { font-size: 1.5rem;  line-height: 1.2;  letter-spacing: -0.02em;  font-weight: 600; }
.q-h3 { font-size: 1.125rem;line-height: 1.3;  letter-spacing: -0.01em;  font-weight: 600; }
.q-body  { font-size: 0.9375rem; line-height: 1.55; }
.q-small { font-size: 0.8125rem; line-height: 1.5; color: var(--q-text-muted); }
.q-mono  { font-family: var(--q-font-mono); font-feature-settings: "ss06"; letter-spacing: -0.01em; }
.q-eyebrow {
  font-family: var(--q-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--q-text-muted);
}

/* Gradient text */
.q-gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--q-accent) 60%, var(--q-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   4. BACKGROUNDS / AURORA
   ============================================================ */
.q-aurora {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.q-aurora::before,
.q-aurora::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.q-aurora::before {
  top: -300px; left: -200px;
  background: radial-gradient(circle, rgba(var(--q-accent-rgb), 0.5) 0%, transparent 60%);
}
.q-aurora::after {
  top: -200px; right: -300px;
  background: radial-gradient(circle, rgba(var(--q-violet-rgb), 0.45) 0%, transparent 60%);
}

.q-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* ============================================================
   5. PRIMITIVES
   ============================================================ */
/* —— Card / Panel —— */
.q-card {
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--q-r-lg);
  box-shadow: var(--q-shadow-2);
  position: relative;
}
.q-card-soft {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--q-border);
  border-radius: var(--q-r-lg);
}
.q-card-hover {
  transition: transform var(--q-dur) var(--q-ease),
              border-color var(--q-dur) var(--q-ease),
              box-shadow var(--q-dur) var(--q-ease);
}
.q-card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--q-border-2);
  box-shadow: var(--q-shadow-3);
}

/* Gradient border (premium) */
.q-card-gradient {
  position: relative;
  background: var(--q-surface);
  border-radius: var(--q-r-lg);
  border: 1px solid transparent;
}
.q-card-gradient::before {
  content: '';
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(var(--q-accent-rgb), 0.5) 0%,
    rgba(255,255,255,0.05) 35%,
    rgba(var(--q-violet-rgb), 0.4) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* —— Buttons —— */
.q-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--q-r);
  font-family: var(--q-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all var(--q-dur) var(--q-ease);
  white-space: nowrap;
}
.q-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.q-btn .q-kbd { margin-left: 4px; }

/* Sizes */
.q-btn-sm { height: 28px; padding: 0 10px; font-size: 0.8125rem; border-radius: var(--q-r-sm); }
.q-btn-lg { height: 44px; padding: 0 18px; font-size: 0.9375rem; border-radius: var(--q-r); }

/* Variants */
.q-btn-primary {
  background: linear-gradient(180deg, #00f0a3 0%, var(--q-accent) 100%);
  color: var(--q-accent-ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 0 0 1px rgba(var(--q-accent-rgb), 0.3),
              0 6px 20px -8px rgba(var(--q-accent-rgb), 0.7);
}
.q-btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 0 0 1px rgba(var(--q-accent-rgb), 0.5),
              0 10px 28px -8px rgba(var(--q-accent-rgb), 0.85);
}

.q-btn-secondary {
  background: var(--q-surface-2);
  border-color: var(--q-border-2);
  color: var(--q-text);
}
.q-btn-secondary:hover { background: var(--q-surface-3); border-color: var(--q-border-3); transform: translateY(-1px); }

.q-btn-ghost {
  background: transparent;
  color: var(--q-text-muted);
}
.q-btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--q-text); }

.q-btn-outline {
  background: transparent;
  border-color: var(--q-border-2);
  color: var(--q-text);
}
.q-btn-outline:hover { background: rgba(255,255,255,0.04); border-color: var(--q-border-3); }

.q-btn-danger {
  background: rgba(var(--q-danger-rgb), 0.12);
  border-color: rgba(var(--q-danger-rgb), 0.3);
  color: #ff8b96;
}
.q-btn-danger:hover { background: rgba(var(--q-danger-rgb), 0.18); border-color: rgba(var(--q-danger-rgb), 0.45); color: #ffaab2; }

.q-btn-icon { width: 36px; padding: 0; justify-content: center; }
.q-btn-icon.q-btn-sm { width: 28px; }

/* Glow on hover for primary */
.q-btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(var(--q-accent-rgb), 0.4), transparent 70%);
  opacity: 0; z-index: -1;
  transition: opacity var(--q-dur) var(--q-ease);
}
.q-btn-primary { position: relative; }
.q-btn-primary:hover::after { opacity: 1; }

/* —— Inputs —— */
.q-input, .q-select, .q-textarea {
  width: 100%;
  background: var(--q-surface-2);
  border: 1px solid var(--q-border);
  border-radius: var(--q-r);
  color: var(--q-text);
  font-family: var(--q-font-sans);
  font-size: 0.875rem;
  padding: 0 12px;
  height: 36px;
  /* Override the body-level stylistic sets (ss01/ss03/cv11) — keep only tabular
     numerals so digits stay aligned in form fields. The rest of the site keeps
     the full Geist stylistic rendering. */
  font-feature-settings: "tnum";
  transition: border-color var(--q-dur) var(--q-ease),
              background var(--q-dur) var(--q-ease),
              box-shadow var(--q-dur) var(--q-ease);
}
.q-input::placeholder, .q-textarea::placeholder { color: var(--q-text-faint); }
.q-input:hover, .q-select:hover, .q-textarea:hover { border-color: var(--q-border-2); }
.q-input:focus, .q-select:focus, .q-textarea:focus {
  outline: none;
  border-color: rgba(var(--q-accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--q-accent-rgb), 0.12);
  background: var(--q-surface);
}
.q-textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; line-height: 1.5; }
.q-input-lg { height: 44px; font-size: 0.9375rem; }

.q-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.q-input-wrap .q-input { padding-left: 36px; }
.q-input-wrap > svg {
  position: absolute; left: 12px;
  width: 16px; height: 16px;
  color: var(--q-text-faint);
  pointer-events: none;
}

.q-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem;
  color: var(--q-text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.q-label svg { width: 14px; height: 14px; color: rgba(var(--q-accent-rgb), 0.85); }

.q-help { font-size: 0.75rem; color: var(--q-text-faint); margin-top: 6px; }

/* Toggle */
.q-toggle {
  position: relative;
  display: inline-block;
  width: 36px; height: 20px;
  background: var(--q-surface-3);
  border: 1px solid var(--q-border-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--q-dur) var(--q-ease);
}
.q-toggle::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--q-dur) var(--q-ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.q-toggle.is-on {
  background: var(--q-accent);
  border-color: rgba(var(--q-accent-rgb), 0.6);
  box-shadow: 0 0 12px -2px rgba(var(--q-accent-rgb), 0.6);
}
.q-toggle.is-on::after { transform: translateX(16px); }

/* Checkbox */
.q-check {
  width: 16px; height: 16px;
  border: 1px solid var(--q-border-3);
  border-radius: 4px;
  background: var(--q-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--q-dur) var(--q-ease);
}
.q-check.is-on {
  background: var(--q-accent);
  border-color: var(--q-accent);
  color: var(--q-accent-ink);
}

/* —— Badges —— */
.q-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--q-border-2);
  background: var(--q-surface-2);
  color: var(--q-text-muted);
  white-space: nowrap;
  line-height: 1.4;
}
.q-badge-accent  { background: rgba(var(--q-accent-rgb), 0.10); border-color: rgba(var(--q-accent-rgb), 0.3); color: var(--q-accent); }
.q-badge-success { background: rgba(var(--q-success-rgb), 0.10); border-color: rgba(var(--q-success-rgb), 0.3); color: #5fe6c0; }
.q-badge-info    { background: rgba(var(--q-info-rgb), 0.10);    border-color: rgba(var(--q-info-rgb), 0.3);    color: var(--q-info); }
.q-badge-warning { background: rgba(var(--q-warning-rgb), 0.10); border-color: rgba(var(--q-warning-rgb), 0.3); color: var(--q-warning); }
.q-badge-danger  { background: rgba(var(--q-danger-rgb), 0.10);  border-color: rgba(var(--q-danger-rgb), 0.3);  color: var(--q-danger); }
.q-badge-violet  { background: rgba(var(--q-violet-rgb), 0.10);  border-color: rgba(var(--q-violet-rgb), 0.3);  color: var(--q-violet); }

/* Status dot pulsant */
.q-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--q-success);
  flex: none;
}
.q-dot-pulse {
  position: relative;
}
.q-dot-pulse::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: q-pulse 2s var(--q-ease) infinite;
}
@keyframes q-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--q-success-rgb), 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(var(--q-success-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--q-success-rgb), 0); }
}

/* Kbd */
.q-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--q-border-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--q-font-mono);
  font-size: 0.6875rem;
  color: var(--q-text-muted);
  line-height: 1;
}

/* —— Tabs / Segmented —— */
.q-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--q-surface-2);
  border: 1px solid var(--q-border);
  border-radius: var(--q-r);
}
.q-tab {
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: var(--q-text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--q-dur) var(--q-ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.q-tab:hover { color: var(--q-text); }
.q-tab.is-active {
  background: var(--q-surface-3);
  color: var(--q-text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.3);
}

/* —— Skeleton —— */
.q-skel {
  display: block;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.04) 80%);
  background-size: 200% 100%;
  animation: q-shimmer 1.5s linear infinite;
  border-radius: 6px;
}
@keyframes q-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* —— Table —— */
.q-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.q-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--q-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--q-border);
  background: rgba(255,255,255,0.015);
}
.q-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--q-border);
  color: var(--q-text);
  vertical-align: middle;
}
.q-table tr:last-child td { border-bottom: none; }
.q-table tbody tr {
  transition: background var(--q-dur) var(--q-ease);
}
.q-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* —— Toast —— */
.q-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--q-surface-2);
  border: 1px solid var(--q-border-2);
  border-left: 3px solid var(--q-accent);
  border-radius: var(--q-r);
  box-shadow: var(--q-shadow-3);
  min-width: 300px;
  max-width: 420px;
}
.q-toast-success { border-left-color: var(--q-success); }
.q-toast-info    { border-left-color: var(--q-info); }
.q-toast-warning { border-left-color: var(--q-warning); }
.q-toast-danger  { border-left-color: var(--q-danger); }
.q-toast-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}

/* —— Stat card —— */
.q-stat {
  position: relative;
  padding: 16px;
  border-radius: var(--q-r-lg);
  background:
    linear-gradient(135deg, rgba(var(--q-accent-rgb), 0.08) 0%, rgba(var(--q-accent-rgb), 0.01) 100%),
    var(--q-surface);
  border: 1px solid rgba(var(--q-accent-rgb), 0.14);
  overflow: hidden;
  transition: transform var(--q-dur) var(--q-ease), border-color var(--q-dur) var(--q-ease);
}
.q-stat:hover { transform: translateY(-2px); border-color: rgba(var(--q-accent-rgb), 0.28); }
.q-stat--info    { background: linear-gradient(135deg, rgba(var(--q-info-rgb), 0.08), rgba(var(--q-info-rgb), 0.01) 100%), var(--q-surface); border-color: rgba(var(--q-info-rgb), 0.18); }
.q-stat--warning { background: linear-gradient(135deg, rgba(var(--q-warning-rgb), 0.08), rgba(var(--q-warning-rgb), 0.01) 100%), var(--q-surface); border-color: rgba(var(--q-warning-rgb), 0.18); }
.q-stat--danger  { background: linear-gradient(135deg, rgba(var(--q-danger-rgb), 0.08), rgba(var(--q-danger-rgb), 0.01) 100%), var(--q-surface); border-color: rgba(var(--q-danger-rgb), 0.18); }
.q-stat--violet  { background: linear-gradient(135deg, rgba(var(--q-violet-rgb), 0.08), rgba(var(--q-violet-rgb), 0.01) 100%), var(--q-surface); border-color: rgba(var(--q-violet-rgb), 0.18); }

/* —— Hero section helper —— */
.q-hero {
  position: relative;
  padding: 28px;
  border-radius: var(--q-r-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--q-accent-rgb), 0.18), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(var(--q-violet-rgb), 0.15), transparent 50%),
    var(--q-surface);
  border: 1px solid var(--q-border);
  overflow: hidden;
}

/* —— Modal —— */
.q-modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7, 9, 12, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.q-modal {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, rgba(22,27,36,0.98), rgba(15,18,24,0.99));
  border: 1px solid var(--q-border-2);
  border-radius: var(--q-r-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

/* —— Sidebar item —— */
.q-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--q-text-muted);
  cursor: pointer;
  transition: background var(--q-dur) var(--q-ease), color var(--q-dur) var(--q-ease);
}
.q-side-item:hover { background: rgba(255,255,255,0.04); color: var(--q-text); }
.q-side-item.is-active {
  background: linear-gradient(90deg, rgba(var(--q-accent-rgb), 0.14), rgba(var(--q-accent-rgb), 0.02));
  color: var(--q-text);
  box-shadow: inset 2px 0 0 var(--q-accent);
}
.q-side-item svg { width: 16px; height: 16px; color: var(--q-text-faint); flex: none; }
.q-side-item.is-active svg { color: var(--q-accent); }

/* —— Dropdown —— */
.q-menu {
  background: var(--q-surface-2);
  border: 1px solid var(--q-border-2);
  border-radius: var(--q-r);
  padding: 6px;
  box-shadow: var(--q-shadow-3);
  min-width: 200px;
}
.q-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  font-size: 0.875rem;
  color: var(--q-text);
  border-radius: 6px;
  cursor: pointer;
}
.q-menu-item:hover { background: rgba(255,255,255,0.05); }
.q-menu-item svg { width: 14px; height: 14px; color: var(--q-text-faint); }
.q-menu-sep { height: 1px; background: var(--q-border); margin: 6px 4px; }
