/* app-switcher.css — navegação consistente entre os 3 sistemas + Início.
   Overlay layout-independente; tema dark-cyan (design-tokens.css com fallback). */
.appsw {
  position: fixed; bottom: 18px; right: 18px; z-index: 9500;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
}
.appsw-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px;
  border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary, #9ab3c4);
  background: color-mix(in srgb, var(--bg-panel, #0f1923) 86%, transparent);
  border: 1px solid var(--border-default, #2a3d50);
  backdrop-filter: saturate(1.3) blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: border-color .15s, color .15s;
}
.appsw-btn:hover { color: var(--text-primary, #e8f4f8); border-color: var(--border-strong, #3a5268); }
.appsw-btn .appsw-cur { color: var(--text-primary, #e8f4f8); }
.appsw-btn .appsw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #00e5ff); box-shadow: 0 0 8px var(--accent-glow-strong, rgba(0,229,255,.35)); }
.appsw-btn svg { opacity: .8; }

.appsw-pop {
  position: absolute; bottom: 44px; right: 0; width: 232px; padding: 6px;
  border-radius: 14px; opacity: 0; transform: translateY(6px) scale(.98);
  pointer-events: none; transition: opacity .14s, transform .14s;
  background: var(--bg-panel, #0f1923); border: 1px solid var(--border-default, #2a3d50);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.appsw.open .appsw-pop { opacity: 1; transform: none; pointer-events: auto; }
.appsw-cap { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted, #4a6478); padding: 8px 10px 4px; }
.appsw-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text-secondary, #9ab3c4); font-size: 13px; font-weight: 500;
  transition: background .12s, color .12s;
}
.appsw-item:hover { background: var(--bg-input-hover, #1f2e3d); color: var(--text-primary, #e8f4f8); }
.appsw-item .appsw-ic { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; background: var(--bg-input-elevated, #1a2a38); color: var(--text-tertiary, #6b8aa0); }
.appsw-item:hover .appsw-ic { color: var(--accent, #00e5ff); }
.appsw-item small { display: block; font-size: 11px; color: var(--text-muted, #4a6478); font-weight: 400; margin-top: 1px; }
.appsw-item--active { background: var(--accent-glow, rgba(0,229,255,.15)); color: var(--text-primary, #e8f4f8); cursor: default; }
.appsw-item--active .appsw-ic { color: var(--accent, #00e5ff); background: transparent; box-shadow: inset 0 0 0 1px rgba(0,229,255,.3); }
.appsw-item--active small { color: var(--accent, #00e5ff); }

@media print { .appsw { display: none; } }
