/* WorkHub Core UI — patch central non destructif */
:root {
  --wh-core-bg: #080c14;
  --wh-core-surface: rgba(15, 23, 42, .92);
  --wh-core-border: rgba(255,255,255,.12);
  --wh-core-text: #f8fafc;
  --wh-core-muted: #94a3b8;
  --wh-core-accent: #3b82f6;
  --wh-core-radius: 14px;
  --wh-core-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.workhub-global-switcher {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--wh-core-border);
  border-radius: 999px;
  background: rgba(8, 12, 20, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--wh-core-shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.workhub-global-switcher::-webkit-scrollbar {
  display: none;
}

.workhub-global-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--wh-core-muted);
  text-decoration: none;
  white-space: nowrap;
  font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid transparent;
}

.workhub-global-switcher a:hover {
  color: var(--wh-core-text);
  background: rgba(255,255,255,.08);
}

.workhub-global-switcher a.is-active {
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: rgba(255,255,255,.20);
}

.workhub-core-toast {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 100000;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--wh-core-radius);
  border: 1px solid var(--wh-core-border);
  background: var(--wh-core-surface);
  color: var(--wh-core-text);
  box-shadow: var(--wh-core-shadow);
  font: 600 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: none;
}

.workhub-core-toast.show {
  display: block;
}

.workhub-core-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.10);
  color: #22c55e;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .workhub-global-switcher {
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .workhub-global-switcher a {
    padding: 8px 10px;
    font-size: 11px;
  }

  body {
    padding-bottom: 72px;
  }
}

@media print {
  .workhub-global-switcher,
  .workhub-core-toast {
    display: none !important;
  }
}
