:root,
html.theme-default {
  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.70);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(255, 255, 255, 0.06);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.92);
  --sidebar-primary: #111827;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.92);
  --sidebar-ring: rgba(255, 255, 255, 0.22);

  /* App */
  --background: #0b1220;
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.70);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.05);
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --ring: rgba(59, 130, 246, 0.45);

  /* Widths */
  --sidebar-width: 16rem;
  --sidebar-width-icon: 3rem;
}

html.theme-ocean {
  --sidebar-bg: #0b2a3c;
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.70);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(56, 189, 248, 0.10);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.95);
  --sidebar-primary: #0c4a6e;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.95);
  --sidebar-ring: rgba(56, 189, 248, 0.28);
  --background: #06151f;
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(56, 189, 248, 0.12);
  --primary: #38bdf8;
  --primary-foreground: #082f49;
  --ring: rgba(56, 189, 248, 0.40);
}

html.theme-emerald {
  --sidebar-bg: #052e16;
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.70);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(16, 185, 129, 0.12);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.95);
  --sidebar-primary: #064e3b;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.95);
  --sidebar-ring: rgba(16, 185, 129, 0.30);
  --background: #031a0e;
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(16, 185, 129, 0.12);
  --primary: #34d399;
  --primary-foreground: #022c22;
  --ring: rgba(16, 185, 129, 0.40);
}

html.theme-rose {
  --sidebar-bg: #3b0a18;
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.70);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(244, 63, 94, 0.12);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.95);
  --sidebar-primary: #881337;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.95);
  --sidebar-ring: rgba(244, 63, 94, 0.30);
  --background: #1f060c;
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(244, 63, 94, 0.12);
  --primary: #fb7185;
  --primary-foreground: #4c0519;
  --ring: rgba(244, 63, 94, 0.40);
}

html.theme-amber {
  --sidebar-bg: #2b1904;
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.70);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(245, 158, 11, 0.12);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.95);
  --sidebar-primary: #78350f;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.95);
  --sidebar-ring: rgba(245, 158, 11, 0.30);
  --background: #160d02;
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(245, 158, 11, 0.12);
  --primary: #fbbf24;
  --primary-foreground: #451a03;
  --ring: rgba(245, 158, 11, 0.40);
}

/* Offwhite + Azul (sidebar em gradiente, main claro) */
html.theme-iceblue {
  /* Sidebar */
  --sidebar-bg:  #3d6fda; /* blue-800 -> blue-600 */
  --sidebar-fg: rgba(255, 255, 255, 0.95);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.78);
  --sidebar-border: rgba(255, 255, 255, 0.16);
  --sidebar-accent: rgba(255, 255, 255, 0.12);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.98);
  --sidebar-primary: rgba(15, 23, 42, 0.20);
  --sidebar-primary-fg: rgba(255, 255, 255, 0.96);
  --sidebar-ring: rgba(37, 99, 235, 0.55);


  /* App (main) */
  --background: rgb(243 244 246 / var(--tw-bg-opacity, 1)); /* creme (offwhite mais quente) */
  --foreground: rgba(15, 23, 42, 0.95);
  --muted-foreground: rgba(30, 41, 59, 0.82);
  --border: rgba(15, 23, 42, 0.12);
  --accent: rgba(37, 99, 235, 0.10);
  --muted: rgba(15, 23, 42, 0.05);
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --ring: rgba(37, 99, 235, 0.40);
}

html.theme-vega {
  --sidebar-bg: lab(7.22637% -.0000149012 0);
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.72);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(255, 255, 255, 0.06);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.92);
  --sidebar-primary: #111827;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.92);
  --sidebar-ring: rgba(255, 255, 255, 0.22);

  --background: lab(2.75381% 0 0);
  --foreground: rgba(255, 255, 255, 0.92);
  --muted-foreground: rgba(255, 255, 255, 0.70);
  --border: rgba(255, 255, 255, 0.10);
  --accent: rgba(255, 255, 255, 0.08);
  --primary: #fafafa;
  --primary-foreground: #0a0a0a;
  --ring: rgba(255, 255, 255, 0.28);
}

/* DUO — preto e branco (alto contraste, sem cor de destaque) */
html.theme-duo {
  --sidebar-input-bg: rgba(255, 255, 255, 0.08);
  --sidebar-input-border: rgba(255, 255, 255, 0.16);
  --sidebar-bg: lab(7.22637% -0.0000149012 0);
  --sidebar-fg: rgba(255, 255, 255, 0.92);
  --sidebar-fg-muted: rgba(255, 255, 255, 0.72);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --sidebar-accent: rgba(255, 255, 255, 0.06);
  --sidebar-accent-fg: rgba(255, 255, 255, 0.92);
  --sidebar-primary: #111827;
  --sidebar-primary-fg: rgba(255, 255, 255, 0.92);
  --sidebar-ring: rgba(0, 0, 0, 0.363);
  --sidebar-tree-line: color-mix(in srgb, var(--sidebar-bg) 58%, var(--sidebar-fg));
  --background: #ffffff;
  --foreground: rgba(15, 23, 42, 0.95);
  --muted-foreground: rgba(100, 116, 139, 0.95);
  --border: rgba(15, 23, 42, 0.10);
  --accent: rgba(15, 23, 42, 0.06);
  --muted: rgba(15, 23, 42, 0.04);
  --primary: #000000;
  --primary-foreground: #ffffff;
  --ring: rgba(0, 0, 0, 0.25);
  --surface: #ffffff;
  --field-control-accent: #000000;
}

html.theme-duo .layout-v2-bottom-nav,
html.theme-duo .bg-sidebar {
  background: #000000 !important;
}

html.theme-duo #cmdk-root .cmdk-card,
html.theme-duo .shadow-soft {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* “shadcn-like” classes used in templates */
.bg-sidebar { background: var(--sidebar-bg) !important; }
.text-sidebar-foreground { color: var(--sidebar-fg) !important; }
.text-sidebar-foreground\/70 { color: var(--sidebar-fg-muted) !important; }
.border-sidebar-border { border-color: var(--sidebar-border) !important; }
.bg-sidebar-accent { background-color: var(--sidebar-accent) !important; }
.text-sidebar-accent-foreground { color: var(--sidebar-accent-fg) !important; }
.bg-sidebar-primary { background-color: var(--sidebar-primary) !important; }
.text-sidebar-primary-foreground { color: var(--sidebar-primary-fg) !important; }
.ring-sidebar-ring { --tw-ring-color: var(--sidebar-ring) !important; }

.hover\:bg-sidebar-accent:hover { background-color: var(--sidebar-accent) !important; }
.hover\:text-sidebar-accent-foreground:hover { color: var(--sidebar-accent-fg) !important; }

.ring-sidebar-ring\/30 { --tw-ring-color: color-mix(in oklab, var(--sidebar-ring) 30%, transparent) !important; }
.ring-sidebar-ring\/20 { --tw-ring-color: color-mix(in oklab, var(--sidebar-ring) 20%, transparent) !important; }

.bg-background { background-color: var(--background) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-border { background-color: var(--border) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-muted { background-color: var(--muted, var(--accent)) !important; }
.border-border { border-color: var(--border) !important; }
.ring-border { --tw-ring-color: var(--border) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.hover\\:bg-accent:hover { background-color: var(--accent) !important; }
.hover\\:text-accent-foreground:hover { color: var(--foreground) !important; }
.hover\\:bg-primary\\/90:hover { background-color: color-mix(in oklab, var(--primary) 90%, black 10%) !important; }

/* Layout v2 — refinamentos visuais da sidebar (sem Tailwind JIT) */
.layout-v2-sidebar-shell {
  border-radius: 14px;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.layout-v2-sidebar-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.layout-v2-sidebar-content::-webkit-scrollbar { width: 10px; }
.layout-v2-sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.layout-v2-sidebar-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.20); background-clip: content-box; }
.layout-v2-sidebar-content::-webkit-scrollbar-track { background: transparent; }

.layout-v2-sidebar-section-title {
  letter-spacing: .08em;
}

.layout-v2-sidebar-link {
  transition: background-color 150ms ease, color 150ms ease;
  position: relative;
}
.layout-v2-sidebar-link:active { transform: translateY(1px); }
.layout-v2-sidebar-link:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in oklab, var(--sidebar-ring) 55%, transparent); }
.layout-v2-sidebar-link.is-active,
.layout-v2-sidebar-link[aria-current="page"] {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-fg, var(--sidebar-fg));
  font-weight: 600;
}
.layout-v2-sidebar-link.is-active::before,
.layout-v2-sidebar-link[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--sidebar-ring) 80%, transparent);
}

.layout-v2-menu-panel {
  animation: layoutV2FadeIn 130ms ease-out;
}
.layout-v2-menu-panel.is-closing {
  animation: layoutV2FadeOut 130ms ease-in forwards;
  pointer-events: none;
}
.layout-v2-menu-item:active,
.layout-v2-bottom-menu-item:active { transform: translateY(1px); }
.layout-v2-bottom-menu-item:focus-visible,
.layout-v2-menu-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--sidebar-ring) 55%, transparent);
}

@keyframes layoutV2FadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes layoutV2FadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-2px); }
}

/* Sombra suave reutilizável */
.shadow-soft {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.20) !important;
}

/* Notificações (dropdown) — compatibiliza classes "gray" do JS com tema v2 */
#notif-dropdown .bg-white { background-color: var(--background) !important; }
#notif-dropdown .bg-gray-50 { background-color: var(--accent) !important; }
#notif-dropdown .hover\:bg-gray-50:hover { background-color: var(--accent) !important; }
#notif-dropdown .hover\:bg-gray-100:hover { background-color: var(--accent) !important; }
#notif-dropdown .text-gray-900 { color: var(--foreground) !important; }
#notif-dropdown .text-gray-700 { color: var(--foreground) !important; }
#notif-dropdown .text-gray-600 { color: var(--muted-foreground) !important; }
#notif-dropdown .text-gray-500 { color: var(--muted-foreground) !important; }
#notif-dropdown .bg-gray-300 { background-color: color-mix(in oklab, var(--muted-foreground) 45%, transparent) !important; }
#notif-dropdown .ring-gray-200 { --tw-ring-color: var(--border) !important; }
#notif-dropdown .ring-black\/10 { --tw-ring-color: var(--sidebar-ring) !important; }

/* Divide lines do list (quando "divide-y" existir no bundle) */
#notif-dropdown #notif-list-mini > * { border-color: var(--border) !important; }

/* Notificações (sino) — hover no container (div) */
#notif-dropdown-root:hover #notif-toggle {
  background-color: var(--accent) !important;
  color: #fde68a !important; /* aproxima do yellow-200 */
}

/* Bottom nav (ilha flutuante — paleta da sidebar para contraste com o main) */
.layout-v2-bottom-nav {
  background: var(--sidebar-bg) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.28);
}
.layout-v2-bottom-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 16px;
  color: var(--sidebar-fg-muted, rgba(255, 255, 255, 0.72));
  text-decoration: none;
  user-select: none;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.layout-v2-bottom-item:hover {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-fg);
}
.layout-v2-bottom-item:active { transform: translateY(1px); }
.layout-v2-bottom-item.is-active {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-fg);
}
.layout-v2-bottom-item.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background-color: color-mix(in oklab, var(--sidebar-ring) 90%, white 10%);
}
.layout-v2-bottom-item span { font-size: 9px; font-weight: 750; letter-spacing: .02em; }
.layout-v2-bottom-item i { line-height: 1; }

/* Tablet/centro agora usa o mesmo estilo dos demais (sem destaque extra) */
.layout-v2-bottom-item.is-center { padding-top: 7px; }
.layout-v2-bottom-center { display: none; }

.layout-v2-bottom-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.layout-v2-bottom-menu-item:hover { background-color: var(--accent); }
.layout-v2-bottom-menu-section { color: color-mix(in oklab, var(--foreground) 55%, transparent); }
.layout-v2-bottom-menu-item span { min-width: 0; }


/* Sidebar mechanics without Tailwind JIT */
[data-slot="sidebar"] { --_sidebar-width: var(--sidebar-width); }
[data-slot="sidebar-gap"] { width: var(--_sidebar-width); transition: width 200ms ease; }
[data-slot="sidebar-container"] {
  width: var(--_sidebar-width);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transition: left 200ms ease, width 200ms ease;
}
[data-slot="sidebar"][data-collapsible="offcanvas"][data-state="collapsed"] [data-slot="sidebar-gap"] { width: 0; }
[data-slot="sidebar"][data-collapsible="offcanvas"][data-state="collapsed"] [data-slot="sidebar-container"] { left: calc(var(--_sidebar-width) * -1); }

/* Recria o “open summary” que o Tailwind do export fazia */
#registrador-lanmax-dropdown[open] > summary {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-fg);
}

/* Inset do painel principal (equivalente ao shadcn preview) */
@media (min-width: 769px) {
  /* Quando a sidebar está em modo inset, o painel tem “margem” */
  #layout-v2-sidebar[data-variant="inset"] ~ main {
    margin: 8px;
    margin-left: 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
  }

  /* Quando a sidebar colapsa, o painel ganha um “respiro” à esquerda (ml-[8px]) */
  #layout-v2-sidebar[data-variant="inset"][data-state="collapsed"] ~ main {
    margin-left: 8px;
  }
}

/* Bottom nav: classe arbitrária pode não existir no bundle */
@media (min-width: 769px) {
  .min-\[769px\]\:hidden { display: none !important; }
}

/* ----------------------------------- */
/* Command Palette (Ctrl/Cmd+K)        */
/* ----------------------------------- */
#cmdk-root {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#cmdk-root.is-open { display: flex; animation: layoutV2FadeIn 140ms ease-out; }
#cmdk-root.is-closing { animation: layoutV2FadeOut 130ms ease-in forwards; }

#cmdk-root .cmdk-card {
  width: 100%;
  max-width: 36rem;
  margin: 0 12px;
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--sidebar-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.20),
    0 24px 48px rgba(0, 0, 0, 0.40);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  animation: cmdkPop 160ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes cmdkPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cmdk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sidebar-border);
  background-color: var(--accent);
}
.cmdk-header i.fa-magnifying-glass { color: var(--muted-foreground); }
.cmdk-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}
.cmdk-input::placeholder { color: var(--muted-foreground); }
.cmdk-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.cmdk-kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--sidebar-border);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.cmdk-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.cmdk-section-title {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--foreground);
  font-size: 13px;
  user-select: none;
}
.cmdk-item .cmdk-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--foreground);
  flex-shrink: 0;
}
.cmdk-item .cmdk-item-label { flex: 1; min-width: 0; }
.cmdk-item .cmdk-item-label .cmdk-item-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .cmdk-item-label .cmdk-item-sub { display: block; font-size: 11px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .cmdk-item-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted-foreground);
  border: 1px solid var(--sidebar-border);
  padding: 2px 6px;
  border-radius: 999px;
}
.cmdk-item.is-active,
.cmdk-item:hover {
  background-color: var(--sidebar-accent);
}

.cmdk-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.cmdk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--sidebar-border);
  background-color: var(--accent);
  font-size: 11px;
  color: var(--muted-foreground);
}
.cmdk-footer .cmdk-hint-group { display: inline-flex; align-items: center; gap: 12px; }
.cmdk-footer .cmdk-hint-group span { display: inline-flex; align-items: center; gap: 4px; }

/* Trigger no breadcrumbs */
#cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  background-color: var(--accent);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  cursor: pointer;
}
#cmdk-trigger:hover { color: var(--foreground); border-color: color-mix(in oklab, var(--sidebar-ring) 35%, var(--sidebar-border)); }
#cmdk-trigger:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in oklab, var(--sidebar-ring) 55%, transparent); }
#cmdk-trigger .cmdk-trigger-label { min-width: 8ch; text-align: left; }
#cmdk-trigger .cmdk-trigger-kbds { display: inline-flex; align-items: center; gap: 4px; }
#cmdk-trigger kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--sidebar-border);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 768px) {
  #cmdk-trigger .cmdk-trigger-label,
  #cmdk-trigger .cmdk-trigger-kbds {
    display: none;
  }
  #cmdk-trigger { padding: 0 8px; }
}

/* Painéis e dropdown de notificações usando shadow-soft (compat) */
.layout-v2-menu-panel { box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.20); }
#notif-dropdown { box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 12px 32px rgba(0,0,0,.28); }

/* ----------------------------------- */
/* Theme switching: transição global   */
/* ----------------------------------- */
/* Aplicada apenas durante a janela de troca de tema (~240ms) via JS. */
html.theme-switching,
html.theme-switching body,
html.theme-switching * {
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    fill 220ms ease,
    stroke 220ms ease !important;
}

