/* ============================================================================
   components.css — reusable UI components (calm SaaS, no neon).
   App shell, rail, topbar, buttons, inputs, cards, chips, toasts, dialogs,
   tables, skeletons, status pill, dropzone, queue items, segmented control.
   ========================================================================== */

@layer components {

/* ─── App shell ─────────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "rail topbar"
    "rail main";
  height: 100vh;
}
.app.rail-collapsed { grid-template-columns: var(--rail-w-collapsed) 1fr; }

/* ─── Pixel Neko mascot ─────────────────────────────────────────────────────
   Inlined via icon.neko(). crispEdges in the SVG + pixelated here keep the art
   sharp at any size. Sub-groups (.cat-eo/.cat-ec = eyes, .cat-t1/.cat-t2 = tail
   frames) are driven by the idle animation below. */
.pixel-cat {
  image-rendering: pixelated;
  image-rendering: crisp-edges;   /* Firefox fallback */
  width: 100%; height: 100%; display: block;
}
/* The tail is two alternating frames; show the first, hide the second by default. */
.pixel-cat .cat-t2 { display: none; }
/* Closed-eye frame hidden until a blink. */
.pixel-cat .cat-ec { opacity: 0; }

/* Idle: a gentle float for the whole glyph, a periodic blink, and a 2-step tail
   wag. Applied via .neko-idle on the wrapping element so static instances stay
   calm. All of this is suppressed under prefers-reduced-motion (tokens.css kills
   animations globally), so the cat simply sits still — still perfectly legible. */
.neko-idle { animation: neko-float 4s var(--ease) infinite; }
@keyframes neko-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.neko-idle .pixel-cat .cat-eo { animation: neko-eye-open 5s steps(1) infinite; }
.neko-idle .pixel-cat .cat-ec { animation: neko-eye-closed 5s steps(1) infinite; }
@keyframes neko-eye-open   { 0%,92% { opacity: 1; } 94%,98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes neko-eye-closed { 0%,92% { opacity: 0; } 94%,98% { opacity: 1; } 100% { opacity: 0; } }

.neko-idle .pixel-cat .cat-t1 { animation: neko-tail-a 1.6s steps(1) infinite; }
.neko-idle .pixel-cat .cat-t2 { animation: neko-tail-b 1.6s steps(1) infinite; }
@keyframes neko-tail-a { 0%,50% { display: block; } 50.01%,100% { display: none; } }
@keyframes neko-tail-b { 0%,50% { display: none; } 50.01%,100% { display: block; } }

/* Sizing presets — wrappers fix the box; the SVG fills it. */
.neko-brand { width: 26px; height: 26px; display: inline-block; flex: none; }
.neko-mini .neko-brand { width: 18px; height: 18px; }
.neko-hero  { width: 84px; height: 84px; display: inline-block; }
.neko-empty { width: 72px; height: 72px; display: inline-block; opacity: .95; }
.neko-gate  { width: 56px; height: 56px; display: inline-block; }
.neko-avatar { display: block; }

/* ─── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar.scrolled { box-shadow: var(--shadow-sm); }
.topbar .cmd-trigger {
  flex: 1 1 auto; max-width: 520px;
  display: flex; align-items: center; gap: var(--sp-2);
  height: 36px; padding: 0 var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text-3);
  transition: border-color var(--t), background var(--t);
}
.topbar .cmd-trigger:hover { border-color: var(--border-strong); }
/* Masqué pendant une conversation ask (le raccourci ⌘K reste actif). */
.topbar .cmd-trigger.is-hidden { display: none; }
.topbar .cmd-trigger .ico { width: 18px; height: 18px; flex: none; }
.topbar .cmd-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .cmd-trigger kbd {
  margin-left: auto; font-size: var(--fs-xs);
  padding: 2px 6px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-3);
}

/* ─── Left rail ─────────────────────────────────────────────────────────── */
.rail {
  grid-area: rail;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp-3) var(--sp-2);
  overflow: hidden;
}
.rail-brand {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-4);
  font-weight: var(--fw-semibold); font-size: var(--fs-lg);
}
.rail-brand .brand-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-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-weight: var(--fw-medium);
  font-size: var(--fs-md); text-align: left; width: 100%;
  position: relative;
  transition: background var(--t), color var(--t),
              transform var(--dur-fast) cubic-bezier(.2,.8,.3,1);
}
.nav-item .ico {
  width: 20px; height: 20px; flex: none;
  transition: transform var(--dur) cubic-bezier(.2,.8,.3,1);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
/* L'icône réagit : petit rebond au survol, ancrée quand l'item est actif. */
.nav-item:hover .ico { transform: translateY(-1px) scale(1.12) rotate(-4deg); }
.nav-item:active { transform: translateX(2px) scale(.97); }
.nav-item[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent);
}
.nav-item[aria-current="page"] .ico { transform: scale(1.06); }
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: var(--r-full); background: var(--accent);
  animation: navMark var(--dur-slow) cubic-bezier(.2,.8,.3,1);
}
@keyframes navMark {
  from { transform: translateY(-50%) scaleY(0); opacity: 0; }
  to   { transform: translateY(-50%) scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-item:hover, .nav-item:active { transform: none; }
  .nav-item:hover .ico, .nav-item[aria-current="page"] .ico { transform: none; }
  .nav-item[aria-current="page"]::before { animation: none; }
}
.rail-collapsed .nav-item .nav-label,
.rail-collapsed .rail-brand .brand-name,
.rail-collapsed .rail-foot .acc-meta { display: none; }
.rail-sep { height: 1px; background: var(--border); margin: var(--sp-3) var(--sp-2); }
.rail-foot { margin-top: auto; }
.rail-foot .neko-mini {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); color: var(--text-3); font-size: var(--fs-xs);
}

/* ─── Main scroll area ──────────────────────────────────────────────────── */
.main { grid-area: main; overflow-y: auto; }
.view { display: none; }
.view.active { display: block; }
/* Transition de page douce (fade + petit slide) au montage/affichage d'une vue.
   La vue Demander plein-hauteur garde son propre flux : on ne joue l'anim que
   sur le premier affichage via .active (pas de layout thrash, transform/opacity
   uniquement). */
.view.active { animation: viewIn var(--dur) var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } }

/* Scrollbars discrètes et cohérentes (WebKit + Firefox), thème-aware. */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: var(--r-full);
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }
/* Wider content shell so wide monitors (1280–1920px) feel intentionally full
   rather than a thin column adrift in empty space. Per-view max-widths below
   tighten reading surfaces where a narrower measure is better. */
.view-inner { max-width: 1320px; margin: 0 auto; padding: var(--sp-8) var(--sp-8) var(--sp-12); }
.view-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.view-head h1 { flex: 1 1 auto; }
@media (max-width: 980px) { .view-inner { padding: var(--sp-6) var(--sp-5) var(--sp-12); } }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 36px; padding: 0 var(--sp-4);
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-md); font-weight: var(--fw-medium);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-sm { height: 30px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }

/* ─── Inputs ────────────────────────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%; padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-md);
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent); box-shadow: var(--ring);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { resize: vertical; min-height: 60px; line-height: var(--lh-normal); }
.field { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2); }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.card-pad { padding: var(--sp-5); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.stat-card { padding: var(--sp-4); }
.stat-card .stat-value { font-size: var(--fs-3xl); font-weight: var(--fw-semibold); font-family: var(--font-mono); letter-spacing: -.02em; }
.stat-card .stat-label { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-1); }

/* ─── Segmented control (year / doc-type) ───────────────────────────────── */
.segmented {
  display: inline-flex; padding: 2px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.segmented button {
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs);
}

/* ─── Sélecteur d'année GLOBAL (topbar) ─────────────────────────────────────
   Un segmented joyeux : pilule active en dégradé de marque, petit rebond au
   changement. Source unique de vérité pour l'année (IE1/IE2/IE3). */
.gyear {
  display: inline-flex; flex: none; gap: 2px; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.gyear button {
  position: relative;
  padding: var(--sp-1) var(--sp-3); min-width: 42px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--text-2); letter-spacing: .01em;
  transition: color var(--t), background var(--t), transform var(--dur-fast) var(--ease);
}
.gyear button:hover { color: var(--text); }
.gyear button[aria-pressed="true"] {
  color: #fff; background: var(--brand-gradient);
  box-shadow: 0 2px 8px -2px var(--accent-ring);
  animation: gyearPop var(--dur-slow) var(--ease);
}
@keyframes gyearPop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (max-width: 720px) { .gyear button { min-width: 0; padding: var(--sp-1) var(--sp-2); } }

/* Badge de comptage (nav Tickets) : petite pastille accent à droite du label. */
.nav-badge {
  margin-left: auto; flex: none;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: var(--fw-bold); line-height: 1;
}
.rail-collapsed .nav-badge {
  position: absolute; top: 4px; right: 4px; margin: 0;
  min-width: 8px; height: 8px; padding: 0; font-size: 0;
}

/* Transition douce d'une page quand l'année globale change. */
@keyframes yearSwap { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view.year-swap { animation: yearSwap .28s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .view.year-swap { animation: none; } }

/* ─── Chips ─────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--text-2);
  transition: background var(--t), border-color var(--t);
}
button.chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Citation chip — a vault source from source_files[] */
.citation {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.citation:hover { border-color: var(--accent); box-shadow: var(--shadow-xs); }
.citation .cite-stem { font-weight: var(--fw-medium); }
.citation .cite-meta { color: var(--text-3); font-size: var(--fs-xs); }

/* ─── Status pill (AI engine + queue) ───────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 32px; padding: 0 var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); font-size: var(--fs-sm); color: var(--text-2);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.status-pill[data-state="local"] .dot   { background: var(--success); }
.status-pill[data-state="cloud"] .dot    { background: var(--info); }
.status-pill[data-state="offline"] .dot  { background: var(--warning); }
.status-pill[data-state="busy"] .dot     { background: var(--accent); animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ─── Avatar / account menu ─────────────────────────────────────────────── */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--sp-1);
  z-index: 40;
}
.menu button {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-md); color: var(--text); text-align: left;
}
.menu button:hover { background: var(--surface-2); }
.menu .menu-head { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-1); }
.menu .menu-head .name { font-weight: var(--fw-semibold); }
.menu .menu-head .sub { font-size: var(--fs-xs); color: var(--text-3); }

/* ─── Toasts ────────────────────────────────────────────────────────────── */
.toast-region {
  position: fixed; bottom: var(--sp-5); right: var(--sp-5); z-index: 100;
  display: flex; flex-direction: column; gap: var(--sp-2); max-width: 360px;
}
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); color: var(--text);
  animation: toast-in var(--dur-slow) var(--ease);
}
.toast.info    { border-left-color: var(--info); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.error   { border-left-color: var(--danger); }
.toast .toast-close { margin-left: auto; color: var(--text-3); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Dialog (native <dialog>) ──────────────────────────────────────────── */
dialog {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); padding: 0; max-width: 460px; width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(8,8,14,.5); backdrop-filter: blur(2px); }
.dialog-head { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: var(--fs-lg); }
.dialog-body { padding: var(--sp-5); }
.dialog-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* ─── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data thead th {
  position: sticky; top: 0; background: var(--surface-2);
  text-align: left; font-weight: var(--fw-semibold); color: var(--text-2);
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border);
}
table.data tbody td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); }
table.data tbody tr:hover { background: var(--surface-2); }

/* ─── Skeletons ─────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; border-radius: var(--r-sm);
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-line { height: 12px; margin: var(--sp-2) 0; }

/* ─── Empty state ───────────────────────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-12) var(--sp-5); color: var(--text-3);
  /* Richer empty surface so a view never reads as "broken/blank". */
  border: 1px dashed var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.empty h3 { color: var(--text-2); }
.empty p { max-width: 360px; }

/* ─── Dropzone ──────────────────────────────────────────────────────────── */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); text-align: center;
  min-height: 180px; padding: var(--sp-8) var(--sp-5);
  border: 2px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text-2);
  transition: border-color var(--t), background var(--t);
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { width: 40px; height: 40px; color: var(--accent); }
.dropzone .dz-hint { font-size: var(--fs-xs); color: var(--text-3); }

/* ─── Queue / activity items ────────────────────────────────────────────── */
.queue-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.queue-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
}
.queue-item .qi-name { font-weight: var(--fw-medium); }
.queue-item .qi-meta { font-size: var(--fs-xs); color: var(--text-3); }
.queue-item .qi-actions { display: flex; gap: var(--sp-2); margin-left: auto; align-items: center; }
.qi-bar { height: 4px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; margin-top: var(--sp-1); }
.qi-bar > span { display: block; height: 100%; width: 35%; background: var(--accent); border-radius: var(--r-full); animation: indet 1.4s var(--ease) infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* status badge inside a queue/table row */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 2px var(--sp-2); border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  background: var(--surface-2); color: var(--text-2);
}
.badge.queued     { background: var(--surface-2); color: var(--text-2); }
.badge.processing,
.badge.finalizing { background: var(--info-soft); color: var(--info); }
.badge.review     { background: var(--warning-soft); color: var(--warning); }
.badge.done       { background: var(--success-soft); color: var(--success); }
.badge.error      { background: var(--danger-soft); color: var(--danger); }
.badge.duplicate  { background: var(--surface-3); color: var(--text-3); }

/* ─── Command palette ───────────────────────────────────────────────────── */
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(8,8,14,.45);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.cmdk {
  width: 100%; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmdk input {
  width: 100%; padding: var(--sp-4); border: none; border-bottom: 1px solid var(--border);
  font-size: var(--fs-lg); background: transparent; color: var(--text);
}
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: var(--sp-2); }
.cmdk-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  text-align: left; color: var(--text); font-size: var(--fs-md);
}
.cmdk-item:hover, .cmdk-item.active { background: var(--accent-soft); color: var(--accent); }
.cmdk-item .sub { margin-left: auto; font-size: var(--fs-xs); color: var(--text-3); }

}
