@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300&display=swap');@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   LOGIN PAGE — Phobos Intranet — Premium 2025
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ── ROOT ─────────────────────────────────── */
.lp-root {
  min-height: 100dvh;
  display: flex;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
}
/* ==============================================
   PAINEL ESQUERDO
   ============================================== */
.lp-left {
  flex: 0 0 48%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(160deg, #0c3d8a 0%, #0A4EA0 40%, #0d2966 100%);
}
/* logo — canto superior esquerdo, absolutamente posicionado */
.lp-logo-wrap {
  position: absolute;
  top: 36px;
  left: 44px;
  z-index: 3;
}
.lp-logo {
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* Gif preenche o painel como hero */
.lp-mascot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.lp-mascot__img {
  width: 72%;
  max-width: 400px;
  object-fit: contain;
  animation: lpFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.35));
  margin-top: 40px;
}
@keyframes lpFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}
/* Overlay gradiente no rodapé */
.lp-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(10, 30, 80, 0.95) 0%, rgba(10, 30, 80, 0.6) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Conteúdo dentro do overlay */
.lp-welcome {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 44px 48px;
}
.lp-welcome__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-welcome__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.lp-welcome__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.lp-welcome__title em {
  font-style: normal;
  background: linear-gradient(90deg, #7eb8ff, #a5d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-welcome__sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.60);
  font-weight: 400;
  line-height: 1.5;
}
/* Pills de features no rodapé */
.lp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.lp-feature-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(4px);
}
.lp-feature-pill svg {
  flex-shrink: 0;
}
/* ==============================================
   PAINEL DIREITO
   ============================================== */
.lp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 56px;
  background: #fff;
  gap: 24px;
  position: relative;
}
/* Logo acima do formulário */
.lp-right-logo {
  display: flex;
  justify-content: center;
  animation: lpCardIn 0.5s ease both;
}
.lp-right-logo__img {
  height: 60px;
  object-fit: contain;
}
/* Card */
.lp-card {
  width: 100%;
  max-width: 380px;
  animation: lpCardIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) 0.1s both;
}
.lp-card__head {
  margin-bottom: 32px;
}
.lp-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0A4EA0;
  background: #eef5ff;
  border: 1px solid #c7defa;
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lp-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.lp-card__sub {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
/* ── Formulário ───────────────────────────── */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}
.lp-field__input {
  height: 50px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8faff;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lp-field__input::placeholder {
  color: #b0bec5;
}
.lp-field__input:focus {
  border-color: #0A4EA0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.10);
}
.lp-field__input:disabled {
  opacity: 0.6;
}
.lp-field__pw {
  position: relative;
}
.lp-field__pw .lp-field__input {
  padding-right: 48px;
}
.lp-field__eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}
.lp-field__eye:hover {
  color: #0A4EA0;
}
/* ── Botão Entrar ─────────────────────────── */
.lp-btn {
  height: 52px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1e6ecf 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(10, 78, 160, 0.30);
  margin-top: 6px;
}
.lp-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 78, 160, 0.38);
}
.lp-btn:active:not(:disabled) {
  transform: translateY(0);
}
.lp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.lp-btn__spin {
  width: 18px;
  height: 18px;
  animation: lpSpin 0.8s linear infinite;
}
.lp-safe {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 20px 0 0;
}
/* ── Badges ─────────────────────────────── */
.lp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0A4EA0;
  background: #eef5ff;
  border: 1px solid #d4e5fa;
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
/* ── Divisor ──────────────────────────────── */
.lp-faceid {
  margin-bottom: 4px;
}
.lp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}
.lp-divider::before,
.lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
/* ── Face ID Button ───────────────────────── */
.biometric-login-btn {
  width: 100%;
  height: 48px;
  border: 1.5px solid #0A4EA0;
  border-radius: 12px;
  background: #f0f7ff;
  color: #0A4EA0;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.biometric-login-btn:hover:not(:disabled) {
  background: #e0efff;
  box-shadow: 0 4px 14px rgba(10, 78, 160, 0.15);
  transform: translateY(-1px);
}
.biometric-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ── Quick Login ──────────────────────────── */
.lp-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.lp-quick__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.quick-login-user-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(160deg, #f0f7ff, #e8f0ff);
  border: 1.5px solid rgba(10, 78, 160, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(10, 78, 160, 0.06);
}
.quick-login-user-card:active {
  transform: scale(0.97);
}
.quick-login-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4EA0, #003580);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.28);
}
.quick-login-user-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}
.quick-login-faceid-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0A4EA0;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(10, 78, 160, 0.09);
  padding: 6px 16px;
  border-radius: 20px;
}
.lp-quick__switch {
  margin-top: 18px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.lp-quick__switch:hover {
  color: #0A4EA0;
}
.lp-quick__lista {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-quick__conta {
  position: relative;
}
/* Duas ou mais contas no aparelho: cartões baixos, lado a lado com o nome */
.lp-quick__lista--varias .quick-login-user-card {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 44px 14px 16px;
  border-radius: 16px;
  text-align: left;
}
.lp-quick__lista--varias .quick-login-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
  flex: none;
}
.lp-quick__lista--varias .quick-login-user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-quick__lista--varias .quick-login-faceid-hint {
  padding: 6px 10px;
  font-size: 0;
  gap: 0;
}
.lp-quick__tirar {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lp-quick__tirar:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.lp-quick__voltar {
  display: block;
  margin: 14px auto 0;
}
/* ── Footer ───────────────────────────────── */
.lp-footer {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #b0bec5;
  z-index: 1;
}
/* ── Biometric Modal ──────────────────────── */
.biometric-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: lpFade 0.25s ease;
}
.biometric-modal {
  background: #fff;
  border-radius: 24px 24px 20px 20px;
  padding: 32px 28px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: lpSlideUp 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.biometric-modal__icon {
  margin-bottom: 16px;
}
.biometric-modal__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.biometric-modal__desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}
.biometric-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.biometric-modal__btn {
  height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.biometric-modal__btn--primary {
  background: linear-gradient(135deg, #0A4EA0, #1e6ecf);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 78, 160, 0.28);
}
.biometric-modal__btn--primary:hover {
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.38);
}
.biometric-modal__btn--secondary {
  background: #f1f5f9;
  color: #64748b;
}
.biometric-modal__btn--secondary:hover {
  background: #e2e8f0;
}
.biometric-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(10, 78, 160, 0.2);
  border-top-color: #0A4EA0;
  border-radius: 50%;
  animation: lpSpin 0.7s linear infinite;
}
/* ── Animações ────────────────────────────── */
@keyframes lpCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes lpSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes lpFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes lpSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ── Mobile welcome (escondido no desktop) ── */
.lp-mobile-welcome {
  display: none;
}
/* ── RESPONSIVO MOBILE ────────────────────── */
@media (max-width: 820px) {

  .lp-root {
    flex-direction: column;
    min-height: 100dvh;
    background: #f0f5ff;
  }

  /* Esconde o painel esquerdo inteiro no mobile */
  .lp-left {
    display: none;
  }

  /* Painel direito ocupa tudo */
  .lp-right {
    flex: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 40px;
    background: #f0f5ff;
    gap: 0;
  }

  /* Logo centralizado */
  .lp-right-logo {
    margin-bottom: 16px;
  }

  .lp-right-logo__img {
    height: 56px;
  }

  /* Texto "Bem-vindo, colaborador" abaixo do logo */
  .lp-mobile-welcome {
    display: block;
    font-size: 1.375rem;
    font-weight: 400;
    color: #475569;
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: -0.2px;
  }

  .lp-mobile-welcome strong {
    font-weight: 800;
    color: #0f172a;
  }

  /* Card */
  .lp-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 28px 22px 24px;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(10, 78, 160, 0.10);
    animation: lpCardIn 0.45s ease both;
  }

  .lp-field__input {
    height: 48px;
    font-size: 1rem;
  }

  .lp-btn {
    height: 52px;
    font-size: 1rem;
  }

  .lp-safe {
    margin-top: 14px;
  }

  .quick-login-user-card {
    padding: 22px 18px;
  }

  .quick-login-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Footer */
  .lp-footer {
    position: static;
    transform: none;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 28px;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
  }
}/* ============================================
   PHOBOS PREMIUM DASHBOARD - WHITE SIDEBAR
   ============================================ */

:root {
  --ph-bg: #ffffff;
  --ph-bg-alt: #f8fafc;
  --ph-surface: rgba(10, 78, 160, 0.04);
  --ph-surface-hover: rgba(10, 78, 160, 0.07);
  --ph-surface-active: rgba(10, 78, 160, 0.1);
  --ph-border: #e8ecf1;
  --ph-text: #475569;
  --ph-text-muted: #94a3b8;
  --ph-text-dark: #1e293b;
  --ph-blue: #0A4EA0;
  --ph-blue-light: #1a6fd4;
  --ph-blue-glow: rgba(10, 78, 160, 0.25);
  --ph-cyan: #0891b2;
  --ph-danger: #ef4444;
  --ph-sidebar-w: 268px;
  --ph-sidebar-w-sm: 72px;
  --ph-header-h: 62px;
  --ph-radius: 10px;
  --ph-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- WRAPPER ---- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

/* ============================================
   SIDEBAR
   ============================================ */
.ph-sidebar {
  width: var(--ph-sidebar-w);
  background: var(--ph-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  transition: width 0.35s var(--ph-ease);
  overflow: hidden;
  border-right: 1px solid var(--ph-border);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.04);
}

.ph-sidebar--collapsed {
  width: var(--ph-sidebar-w-sm);
}

/* ============================================
   HEADER - Blue gradient with centered logo
   ============================================ */
.ph-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  min-height: var(--ph-header-h);
  background: linear-gradient(135deg, var(--ph-blue) 0%, #002b5e 100%);
  flex-shrink: 0;
  position: relative;
}

.ph-sidebar__logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ph-sidebar__logo-full {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.ph-sidebar__toggle {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: all 0.25s var(--ph-ease);
  flex-shrink: 0;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ph-sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.ph-sidebar--collapsed .ph-sidebar__header {
  flex-direction: column;
  gap: 8px;
  padding: 14px 8px;
}

.ph-sidebar--collapsed .ph-sidebar__toggle {
  position: static;
  transform: none;
}

/* ---- GLOW LINE ---- */
.ph-sidebar__glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ph-blue) 30%, var(--ph-cyan) 50%, var(--ph-blue) 70%, transparent 100%);
  opacity: 0.6;
  flex-shrink: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.ph-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.ph-sidebar__body::-webkit-scrollbar {
  width: 4px;
}

.ph-sidebar__body::-webkit-scrollbar-track {
  background: transparent;
}

.ph-sidebar__body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.ph-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- GROUP (SECTION) ---- */
.ph-nav__group {
  margin-top: 18px;
}

.ph-nav__group:first-child {
  margin-top: 4px;
}

.ph-nav__group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--ph-radius);
  background: var(--ph-surface);
  color: var(--ph-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all 0.25s var(--ph-ease);
  text-align: left;
  border-left: 3px solid transparent;
}

.ph-nav__group-btn:hover {
  background: var(--ph-surface-hover);
  border-left-color: rgba(10, 78, 160, 0.2);
}

.ph-nav__group-btn--open {
  border-left-color: var(--ph-blue);
  background: var(--ph-surface-hover);
}

.ph-nav__group-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(10, 78, 160, 0.08);
  color: var(--ph-blue);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s var(--ph-ease);
}

.ph-nav__group-btn:hover .ph-nav__group-icon,
.ph-nav__group-btn--open .ph-nav__group-icon {
  background: rgba(10, 78, 160, 0.14);
  box-shadow: 0 0 14px var(--ph-blue-glow);
  transform: scale(1.05);
}

.ph-nav__group-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-nav__group-arrow {
  font-size: 0.55rem;
  transition: transform 0.3s var(--ph-ease);
  flex-shrink: 0;
  opacity: 0.4;
  color: var(--ph-text);
}

.ph-nav__group-arrow--open {
  transform: rotate(0deg);
  opacity: 0.7;
}

.ph-nav__group-arrow:not(.ph-nav__group-arrow--open) {
  transform: rotate(-90deg);
}

/* Collapsed sections */
.ph-sidebar--collapsed .ph-nav__group-label,
.ph-sidebar--collapsed .ph-nav__group-arrow {
  display: none;
}

.ph-sidebar--collapsed .ph-nav__group-btn {
  justify-content: center;
  padding: 8px;
  border-left: none;
}

.ph-sidebar--collapsed .ph-nav__group {
  margin-top: 8px;
}

/* ---- NAV LINK ---- */
.ph-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 3px 0;
  border-radius: var(--ph-radius);
  color: var(--ph-text);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s var(--ph-ease);
  position: relative;
}

.ph-nav__link:not(.ph-nav__link--child):not(.ph-nav__link--active) {
  background: var(--ph-surface);
  color: var(--ph-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

.ph-nav__link:not(.ph-nav__link--child):not(.ph-nav__link--active) .ph-nav__icon {
  color: var(--ph-blue);
}

.ph-nav__link:hover {
  background: var(--ph-surface-hover);
  color: var(--ph-blue);
  transform: translateX(2px);
}

/* ---- ACTIVE ---- */
.ph-nav__link--active {
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.1), rgba(10, 78, 160, 0.05));
  color: var(--ph-blue);
  font-weight: 600;
  box-shadow: 0 2px 12px var(--ph-blue-glow);
}

.ph-nav__link--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--ph-blue), var(--ph-blue-light));
  box-shadow: 0 0 10px var(--ph-blue-glow);
}

.ph-nav__link--child {
  padding-left: 22px;
  font-size: 0.84rem;
}

/* ---- ICON ---- */
.ph-nav__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(10, 78, 160, 0.05);
  color: var(--ph-text-muted);
  flex-shrink: 0;
  transition: all 0.3s var(--ph-ease);
}

.ph-nav__icon i {
  font-size: 0.9rem;
  line-height: 1;
}

.ph-nav__link:hover .ph-nav__icon {
  background: rgba(10, 78, 160, 0.1);
  color: var(--ph-blue);
  transform: scale(1.05);
}

.ph-nav__link--active .ph-nav__icon {
  background: rgba(10, 78, 160, 0.15);
  color: var(--ph-blue);
  box-shadow: 0 0 12px var(--ph-blue-glow);
}

/* ---- LABEL ---- */
.ph-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ---- COLLAPSED NAV  ---- */
.ph-sidebar--collapsed .ph-nav__label {
  display: none;
}

.ph-sidebar--collapsed .ph-nav__link {
  justify-content: center;
  padding: 8px;
  gap: 0;
}

.ph-sidebar--collapsed .ph-nav__link--child {
  padding-left: 8px;
}

.ph-sidebar--collapsed .ph-nav__link--active::before {
  left: 50%;
  right: auto;
  top: auto;
  width: 16px;
  height: 3px;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

/* Tooltip on collapsed */
.ph-sidebar--collapsed .ph-nav__link[title] {
  position: relative;
}

.ph-sidebar--collapsed .ph-nav__link[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ph-text-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: tooltipIn 0.15s ease;
}

@keyframes tooltipIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* ============================================
   FOOTER / USER
   ============================================ */
.ph-sidebar__footer {
  padding: 10px;
  border-top: 1px solid var(--ph-border);
  flex-shrink: 0;
  background: var(--ph-bg-alt);
}

.ph-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ph-radius);
  cursor: pointer;
  transition: background 0.25s var(--ph-ease);
  position: relative;
}

.ph-user:hover {
  background: var(--ph-surface-hover);
}

.ph-user__avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ph-blue), #1a6fd4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px var(--ph-blue-glow);
  position: relative;
}

/* Status Indicator Dot */
.ph-user__status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ph-bg-alt);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s;
}

.ph-user__status-dot.status-trabalhando {
  background-color: #22c55e;
}

.ph-user__status-dot.status-em-almoco {
  background-color: #eab308;
}

.ph-user__status-dot.status-em-pausa {
  background-color: #f97316;
}

.ph-user__status-dot.status-offline {
  background-color: #94a3b8;
}

.ph-user__status-container {
  margin-top: 2px;
}

.ph-user__status-select {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ph-text);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  display: block;
}

.ph-user__status-select:focus {
  outline: none;
}

.ph-user__info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ph-user__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ph-text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-user__email {
  font-size: 0.72rem;
  color: var(--ph-text-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* collapsed footer */
.ph-sidebar--collapsed .ph-user__info {
  display: none;
}

.ph-sidebar--collapsed .ph-user {
  justify-content: center;
  padding: 10px;
}

/* user dropdown */
.ph-user__dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 4px;
  display: none;
  z-index: 1001;
}

.ph-user--open .ph-user__dropdown {
  display: block;
  animation: slideUp 0.2s ease;
}

.ph-user__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ph-text);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.2s;
}

.ph-user__dropdown-item:hover {
  background: var(--ph-surface-hover);
}

.ph-user__dropdown-item--danger {
  color: var(--ph-danger);
}

.ph-user__dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.06);
}

/* Collapsed: hide text in dropdown */
.ph-sidebar--collapsed .ph-user__dropdown-item span,
.ph-sidebar--collapsed .ph-user__dropdown-text {
  display: none;
}

/* ============================================
   MAIN AREA
   ============================================ */
.dashboard-main {
  flex: 1;
  /* CRITICAL: flex item nasce com min-width:auto, ou seja, não encolhe abaixo do
     min-content dos filhos. Sem isto, qualquer filho largo (o banner de aviso, uma
     tabela) estica a coluna inteira para além da viewport e a página toda passa a
     rolar na horizontal no celular — as media queries continuam valendo, mas o
     container já está mais largo que a tela. */
  min-width: 0;
  margin-left: var(--ph-sidebar-w);
  transition: margin-left 0.35s var(--ph-ease);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-main--collapsed {
  margin-left: var(--ph-sidebar-w-sm);
}

.dashboard-header {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  padding: 0 24px;
  height: var(--ph-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  position: relative;
  width: 340px;
}

.header-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  font-size: 0.84rem;
  background: var(--ph-bg-alt);
  transition: all 0.25s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  background: #fff;
}

.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ph-text-muted);
  font-size: 0.85rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  pointer-events: none;
}

.header-logo {
  height: 32px;
  object-fit: contain;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--ph-radius);
  background: transparent;
  border: 1px solid var(--ph-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ph-text);
  font-size: 0.95rem;
  transition: all 0.2s;
  position: relative;
}

.header-icon-btn:hover {
  background: var(--ph-surface-hover);
  color: var(--ph-blue);
  border-color: rgba(10, 78, 160, 0.15);
}

.header-icon-btn .badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--ph-danger);
  border-radius: 10px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dashboard-content {
  flex: 1;
  min-width: 0;        /* CRITICAL: sem isso, flex:1 permite overflow em flexbox */
  overflow-x: hidden;  /* garante que nenhum filho estoure horizontalmente */
  padding: 24px;
  box-sizing: border-box;
}

/* ---- OVERLAY ---- */
.ph-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 999;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BANNER DE AVISO (topo do conteúdo)
   ============================================ */
.av-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  animation: av-banner-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  /* O texto em nowrap dava ao banner um min-content de ~950px, e era ele que
     empurrava .dashboard-main para fora da tela no celular. */
  min-width: 0;
}

@keyframes av-banner-in {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.av-banner__glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.av-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.av-banner__body {
  flex: 1;
  min-width: 0;
}

.av-banner__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.av-banner__kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.av-banner__count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.av-banner__title {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-banner__msg {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.av-banner__time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* A hora vive ao lado do rótulo só no mobile, onde a coluna da direita some */
.av-banner__time--inline {
  display: none;
  margin-left: auto;
}

.av-banner__close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.15s;
}

.av-banner__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Ações do banner: limpar todas + dispensar este */
.av-banner__acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
}

.av-banner__limpar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.av-banner__limpar:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.av-banner__limpar:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 768px) {
  .av-banner {
    gap: 10px;
    padding: 10px 12px;
    align-items: flex-start;
  }

  .av-banner__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 2px;
  }

  /* No mobile o texto quebra em vez de estourar a largura da tela */
  .av-banner__title {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .av-banner__msg {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .av-banner__meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Coluna de hora à direita some; ela reaparece junto ao rótulo */
  .av-banner > .av-banner__time {
    display: none;
  }

  .av-banner__time--inline {
    display: inline;
  }

  .av-banner__close {
    width: 26px;
    height: 26px;
  }

  /* No celular o botão vira só o ícone, para não roubar a linha do texto */
  .av-banner__acoes {
    gap: 6px;
  }

  .av-banner__limpar {
    height: 26px;
    padding: 0 8px;
  }

  .av-banner__limpar span {
    display: none;
  }

  .av-banner__glow {
    display: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .ph-sidebar {
    transform: translateX(-100%);
    width: var(--ph-sidebar-w);
    box-shadow: none;
  }

  .ph-sidebar--mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
  }

  .ph-sidebar--collapsed {
    width: var(--ph-sidebar-w);
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  .header-search {
    width: 200px;
  }

  .dashboard-content {
    padding: 16px;
  }

  .header-center {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header-search {
    display: none;
  }

  .dashboard-header {
    padding: 0 16px;
  }

  .dashboard-content {
    padding: 12px;
  }
}

/* ============================================
   SKELETON
   ============================================ */
.skeleton-loading {
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--ph-radius);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-logo {
  width: 140px;
  height: 34px;
  margin: 0 auto;
}

.skeleton-menu-item {
  height: 44px;
  margin: 4px 0;
}

.skeleton-search {
  width: 280px;
  height: 40px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--ph-radius);
}

.skeleton-card {
  height: 180px;
  margin: 12px;
}

/* ============================================
   HEADER NOTIFICATION BELL
   ============================================ */
.ph-bell-container {
  position: relative;
  display: flex;
}

.ph-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-top: 10px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
  overflow: hidden;
}

.ph-notif-dropdown__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ph-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ph-bg-alt);
}

.ph-notif-dropdown__header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ph-text-dark);
}

.ph-notif-dropdown__clear {
  background: transparent;
  border: none;
  color: var(--ph-blue);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.ph-notif-dropdown__clear:hover {
  text-decoration: underline;
}

.ph-notif-dropdown__list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ph-notif-dropdown__empty {
  padding: 30px;
  text-align: center;
  color: var(--ph-text-muted);
  font-size: 0.85rem;
}

.ph-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ph-border);
  cursor: pointer;
  transition: background 0.2s;
}

.ph-notif-item:last-child {
  border-bottom: none;
}

.ph-notif-item:hover {
  background: var(--ph-surface-hover);
}

.ph-notif-item--unread {
  background: rgba(10, 78, 160, 0.03);
}

.ph-notif-item--unread .ph-notif-item__content p {
  font-weight: 600;
  color: var(--ph-text-dark);
}

.ph-notif-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 78, 160, 0.1);
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.ph-notif-item__content {
  flex: 1;
}

.ph-notif-item__content p {
  margin: 0 0 4px 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ph-text);
}

.ph-notif-item__content span {
  font-size: 0.7rem;
  color: var(--ph-text-muted);
}

.ph-user__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
/* ═══════════════════════════════════════════════════════════════════════════
   PHOBINHO COPILOT — o azul da marca, dois tons mais fundo.
   A cor é o sinal de que ali o Phobinho EXECUTA, não só responde: o tom mais
   escuro destaca a seção sem sair da identidade da casa.
   ═══════════════════════════════════════════════════════════════════════════ */

.ph-nav__group--copilot {
  --copilot: #063A7A;
  --copilot-claro: #0A4EA0;
  --copilot-brilho: rgba(6, 58, 122, 0.32);
}

.ph-nav__group--copilot .ph-nav__group-btn {
  color: var(--copilot);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.10), rgba(10, 78, 160, 0.05));
}

.ph-nav__group--copilot .ph-nav__group-btn:hover {
  border-left-color: var(--copilot-claro);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.17), rgba(10, 78, 160, 0.08));
}

.ph-nav__group--copilot .ph-nav__group-btn--open {
  border-left-color: var(--copilot);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.17), rgba(10, 78, 160, 0.08));
}

.ph-nav__group--copilot .ph-nav__group-icon {
  background: rgba(6, 58, 122, 0.13);
  color: var(--copilot);
}

.ph-nav__group--copilot .ph-nav__group-btn:hover .ph-nav__group-icon,
.ph-nav__group--copilot .ph-nav__group-btn--open .ph-nav__group-icon {
  background: rgba(6, 58, 122, 0.22);
  box-shadow: 0 0 14px var(--copilot-brilho);
}

/* O mascote entra no lugar do ícone de fonte, sem distorcer no quadrado */
.ph-nav__mascote {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.ph-nav__item--copilot {
  --copilot: #063A7A;
  --copilot-claro: #0A4EA0;
  --copilot-brilho: rgba(6, 58, 122, 0.32);
}

.ph-nav__item--copilot .ph-nav__link:hover {
  color: var(--copilot);
}

.ph-nav__item--copilot .ph-nav__link--active {
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.14), rgba(10, 78, 160, 0.06));
  color: var(--copilot);
  box-shadow: 0 2px 12px var(--copilot-brilho);
}

.ph-nav__item--copilot .ph-nav__link--active::before {
  background: linear-gradient(180deg, var(--copilot), var(--copilot-claro));
  box-shadow: 0 0 10px var(--copilot-brilho);
}

.ph-nav__item--copilot .ph-nav__link--active .ph-nav__icon {
  background: rgba(6, 58, 122, 0.18);
  color: var(--copilot);
}

/* ═══════════════════════════════════════════════════════════════════════════
   IA — azul Phobos escuro, com o cérebro "pensando".
   O mesmo azul fundo do Copilot, a pedido: a seção fica na identidade da
   casa. O que separa as duas no olho é o ícone: aqui o quadrado é cheio,
   com um pulso de sinapse a cada 3 s, três neurônios que acendem junto e um
   reflexo que atravessa de vez em quando.

   Só transform, opacity, box-shadow e filter se animam — nada de largura ou
   altura, então o menu não se mexe. Quem pediu menos movimento ao sistema
   (prefers-reduced-motion) vê o ícone parado, com o brilho fixo.

   Modo escuro: o layout não tem (a barra lateral é sempre branca, e o
   ThemeProvider fica em "light"). Se um dia ligar, o `.dark` abaixo clareia
   o texto da seção para manter o contraste sobre fundo escuro.
   ═══════════════════════════════════════════════════════════════════════════ */

.ph-nav__group--ia,
.ph-nav__item--ia {
  --ia: #063A7A;
  --ia-claro: #0A4EA0;
  --ia-brilho: rgba(10, 78, 160, 0.35);
}

.ph-nav__group--ia .ph-nav__group-btn {
  color: var(--ia);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.10), rgba(10, 78, 160, 0.05));
}

.ph-nav__group--ia .ph-nav__group-btn:hover {
  border-left-color: var(--ia-claro);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.17), rgba(10, 78, 160, 0.08));
}

.ph-nav__group--ia .ph-nav__group-btn--open {
  border-left-color: var(--ia);
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.17), rgba(10, 78, 160, 0.08));
}

/* O quadrado cheio: cérebro claro sobre o azul fundo. `overflow: hidden`
   prende o reflexo dentro do quadrado; o box-shadow (o pulso) fica de fora,
   porque a sombra do próprio elemento não é cortada. */
.ph-nav__group--ia .ph-nav__group-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, var(--ia) 0%, var(--ia-claro) 100%);
  color: #e6f0ff;
  box-shadow: 0 0 0 0 rgba(10, 78, 160, 0), 0 0 6px rgba(10, 78, 160, 0.22);
  animation: ph-ia-sinapse 3s ease-in-out infinite;
}

.ph-nav__group--ia .ph-nav__group-icon > i {
  position: relative;
  z-index: 1;
  animation: ph-ia-pensa 3s ease-in-out infinite;
}

/* O reflexo: uma faixa clara que passa na diagonal e fica fora do quadrado
   a maior parte do tempo (só se move entre 70% e 90% do ciclo de 6 s). */
.ph-nav__group--ia .ph-nav__group-icon::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: ph-ia-reflexo 6s ease-in-out infinite;
}

/* Três neurônios nos cantos do quadrado, que acendem no pico do pulso. */
.ph-ia-neuronios {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ph-ia-neuronios i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9cc6ff;
  box-shadow: 0 0 4px rgba(156, 198, 255, 0.9);
  opacity: 0.35;
  animation: ph-ia-neuronio 3s ease-in-out infinite;
}

.ph-ia-neuronios i:nth-child(1) { top: 5px; left: 6px; }
.ph-ia-neuronios i:nth-child(2) { top: 7px; right: 5px; animation-delay: 0.18s; }
.ph-ia-neuronios i:nth-child(3) { bottom: 5px; right: 9px; animation-delay: 0.36s; }

.ph-nav__group--ia .ph-nav__group-btn:hover .ph-nav__group-icon,
.ph-nav__group--ia .ph-nav__group-btn--open .ph-nav__group-icon {
  background: linear-gradient(145deg, #052f63 0%, #0A4EA0 100%);
}

@keyframes ph-ia-sinapse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 78, 160, 0), 0 0 6px rgba(10, 78, 160, 0.22); }
  14% { box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.20), 0 0 16px rgba(10, 78, 160, 0.45); }
  34% { box-shadow: 0 0 0 6px rgba(10, 78, 160, 0), 0 0 8px rgba(10, 78, 160, 0.28); }
}

@keyframes ph-ia-pensa {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(156, 198, 255, 0)); }
  14% { filter: drop-shadow(0 0 4px rgba(156, 198, 255, 0.95)); }
  34% { filter: drop-shadow(0 0 1px rgba(156, 198, 255, 0.4)); }
}

@keyframes ph-ia-neuronio {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  16% { opacity: 1; transform: scale(1.15); }
  36% { opacity: 0.45; transform: scale(0.9); }
}

@keyframes ph-ia-reflexo {
  0%, 70% { transform: translateX(-100%); }
  90%, 100% { transform: translateX(100%); }
}

/* Recolhido, o quadrado é o mesmo (36 px): a animação segue igual. */

@media (prefers-reduced-motion: reduce) {
  .ph-nav__group--ia .ph-nav__group-icon,
  .ph-nav__group--ia .ph-nav__group-icon > i,
  .ph-nav__group--ia .ph-nav__group-icon::before,
  .ph-ia-neuronios i {
    animation: none;
  }

  .ph-nav__group--ia .ph-nav__group-icon { box-shadow: 0 0 10px rgba(10, 78, 160, 0.3); }
  .ph-nav__group--ia .ph-nav__group-icon::before { display: none; }
  .ph-ia-neuronios i { opacity: 0.8; transform: none; }
}

/* Itens da seção: o mesmo azul no passar do mouse e no ativo. */
.ph-nav__item--ia .ph-nav__link:hover {
  color: var(--ia);
}

.ph-nav__item--ia .ph-nav__link:hover .ph-nav__icon {
  color: var(--ia);
  background: rgba(6, 58, 122, 0.12);
}

.ph-nav__item--ia .ph-nav__link--active {
  background: linear-gradient(135deg, rgba(6, 58, 122, 0.14), rgba(10, 78, 160, 0.06));
  color: var(--ia);
  box-shadow: 0 2px 12px var(--ia-brilho);
}

.ph-nav__item--ia .ph-nav__link--active::before {
  background: linear-gradient(180deg, var(--ia), var(--ia-claro));
  box-shadow: 0 0 10px var(--ia-brilho);
}

.ph-nav__item--ia .ph-nav__link--active .ph-nav__icon {
  background: rgba(6, 58, 122, 0.18);
  color: var(--ia);
}

.dark .ph-nav__group--ia,
.dark .ph-nav__item--ia {
  --ia: #8bb9ff;
  --ia-claro: #b5d2ff;
  --ia-brilho: rgba(110, 168, 255, 0.35);
}

/* No escuro o quadrado continua cheio de azul fundo (o --ia clareou para o texto). */
.dark .ph-nav__group--ia .ph-nav__group-icon {
  background: linear-gradient(145deg, #063A7A 0%, #0A4EA0 100%);
}
/**
 * Festa de boas-vindas do primeiro acesso.
 *
 * Mesma família visual da apresentação da migração — fundo estelar azul, texto
 * grande, mascote em cena — porque as duas são a mesma celebração em escalas
 * diferentes: uma para a empresa, outra para uma pessoa.
 */

.bv {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(10, 78, 160, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 82%, rgba(59, 130, 246, 0.28) 0%, transparent 55%),
    linear-gradient(160deg, #001730 0%, #002b5e 45%, #001024 100%);
  color: #fff;
  overflow: hidden;
}

.bv::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.12) 0%, transparent 42%);
  animation: bv-respira 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bv-respira {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.95; }
}

.bv__confete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.bv__palco {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 48px) clamp(18px, 4vw, 60px);
  overflow-y: auto;
}

.bv__ato {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  max-height: 100%;
}

/* ── Ato 1: o mascote espia ────────────────────────────────────────────── */

.bv__mascote-abre {
  width: clamp(140px, min(20vw, 30vh), 300px);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.bv__sussurro {
  margin: clamp(14px, 2.5vh, 30px) 0 0;
  font-size: clamp(1.1rem, min(3vw, 4vh), 2.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Ato 2: o nome ─────────────────────────────────────────────────────── */

.bv__mascote-festa {
  width: clamp(130px, min(18vw, 26vh), 280px);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  margin-bottom: clamp(4px, 1vh, 14px);
}

.bv__saudacao {
  margin: 0;
  font-size: clamp(0.95rem, min(2.2vw, 3vh), 1.9rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.bv__nome {
  margin: clamp(2px, 0.6vh, 10px) 0 0;
  font-size: clamp(2.4rem, min(8vw, 11vh), 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #60a5fa 0%, #ffffff 48%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bv__cargo {
  margin: clamp(8px, 1.4vh, 16px) 0 0;
  font-size: clamp(0.8rem, min(1.4vw, 2vh), 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.bv__mensagem {
  margin: clamp(14px, 2.4vh, 28px) auto 0;
  max-width: 54ch;
  font-size: clamp(0.88rem, min(1.5vw, 2.1vh), 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

/* ── Ato 3: o convite ──────────────────────────────────────────────────── */

.bv__convite {
  margin-top: clamp(18px, 3vh, 36px);
  padding: clamp(16px, 2.4vh, 26px) clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  max-width: 620px;
}

.bv__convite-texto {
  margin: 0 0 clamp(12px, 2vh, 20px);
  font-size: clamp(0.88rem, min(1.4vw, 2vh), 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.bv__botoes {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bv__btn {
  border: 0;
  border-radius: 999px;
  padding: clamp(10px, 1.5vh, 14px) clamp(20px, 2.6vw, 30px);
  font-size: clamp(0.85rem, min(1.2vw, 1.7vh), 1.05rem);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}

.bv__btn:hover { transform: translateY(-2px); }

.bv__btn--principal {
  background: linear-gradient(135deg, #3b82f6, #0A4EA0);
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 78, 160, 0.5);
}

.bv__btn--fantasma {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.bv__btn--fantasma:hover { background: rgba(255, 255, 255, 0.2); }

.bv__rodape {
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  color: rgba(255, 255, 255, 0.6);
}

/* ── Encerramento do tour ──────────────────────────────────────────────── */

.bv--fim .bv__ato { max-width: 980px; }

.bv__selo {
  margin: clamp(4px, 1vh, 12px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: clamp(0.72rem, min(1.1vw, 1.6vh), 0.9rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bv__nome--fim {
  margin-top: clamp(8px, 1.4vh, 16px);
  font-size: clamp(2rem, min(6.4vw, 9vh), 5.4rem);
}

.bv__lembretes {
  margin-top: clamp(16px, 2.8vh, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  width: 100%;
  text-align: left;
}

.bv__lembrete {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: clamp(12px, 1.8vh, 18px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.bv__lembrete-icone {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.bv__lembrete strong {
  display: block;
  font-size: clamp(0.86rem, min(1.2vw, 1.8vh), 1.02rem);
  color: #fff;
  margin-bottom: 3px;
}

.bv__lembrete span {
  display: block;
  font-size: clamp(0.78rem, min(1.05vw, 1.6vh), 0.9rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.bv__btn--grande {
  margin-top: clamp(18px, 3vh, 34px);
  padding: clamp(12px, 1.8vh, 16px) clamp(26px, 3.4vw, 40px);
  font-size: clamp(0.95rem, min(1.4vw, 2vh), 1.15rem);
}

@media (max-width: 640px) {
  .bv__lembretes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bv::before { display: none; }
}
/**
 * Tour do Phobinho.
 *
 * O véu é feito com um box-shadow gigante no elemento de recorte: é o jeito
 * mais barato de escurecer a tela inteira menos um retângulo, e anima bem
 * porque o navegador só recalcula a caixa, não a máscara.
 */

.tour {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* Véu cheio, para os passos sem alvo (abertura e fecho). */
.tour__veu {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 28, 0.82);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

/* Recorte: o buraco de luz sobre o elemento explicado. */
.tour__recorte {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(2, 12, 28, 0.82),
    0 0 0 2px rgba(96, 165, 250, 0.9),
    0 0 26px 6px rgba(96, 165, 250, 0.45);
  pointer-events: auto;
  animation: tour-pulso 2.4s ease-in-out infinite;
}

@keyframes tour-pulso {
  0%, 100% {
    box-shadow:
      0 0 0 9999px rgba(2, 12, 28, 0.82),
      0 0 0 2px rgba(96, 165, 250, 0.9),
      0 0 24px 5px rgba(96, 165, 250, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 9999px rgba(2, 12, 28, 0.82),
      0 0 0 3px rgba(147, 197, 253, 1),
      0 0 38px 10px rgba(96, 165, 250, 0.62);
  }
}

/* ── Balão ─────────────────────────────────────────────────────────────── */

.tour__balao {
  position: absolute;
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1), left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(430px, calc(100vw - 40px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 20, 50, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: auto;
  z-index: 2;
}

/* O mascote encosta no topo do balão e transborda para fora dele. */
.tour__mascote {
  position: absolute;
  top: -104px;
  right: 14px;
  width: 132px;
  height: 128px;
  pointer-events: none;
}

.tour__mascote img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 12px 22px rgba(0, 20, 50, 0.4));
}

.tour__conteudo {
  padding: 20px 22px 18px;
}

.tour__cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  /* Espaço à direita para o mascote não cobrir o contador. */
  padding-right: 120px;
}

.tour__contador {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A4EA0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.tour__fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 3;
}

.tour__fechar:hover { background: rgba(15, 23, 42, 0.12); color: #0f172a; }

.tour__titulo {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #002b5e;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tour__texto {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: #475569;
}

.tour__dica {
  margin: 12px 0 0;
  padding: 9px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #92400e;
}

.tour__dica i { margin-right: 6px; color: #d97706; }

.tour__barra {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 14px;
}

.tour__barra-preenche {
  height: 100%;
  background: linear-gradient(90deg, #0A4EA0, #60a5fa);
  border-radius: 999px;
}

.tour__acoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour__pular {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tour__pular:hover { color: #64748b; }

.tour__navegacao { display: flex; gap: 8px; }

.tour__btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.tour__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tour__btn:not(:disabled):hover { transform: translateY(-1px); }

.tour__btn--principal {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 78, 160, 0.32);
}

.tour__btn--fantasma {
  background: #f1f5f9;
  color: #475569;
}

/* ── Botão flutuante para reabrir o tour ───────────────────────────────── */

.tour-atalho {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 20, 50, 0.22), 0 0 0 1px rgba(10, 78, 160, 0.1);
  color: #002b5e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.tour-atalho:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 20, 50, 0.28), 0 0 0 1px rgba(10, 78, 160, 0.18);
}

.tour-atalho img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: bottom center;
}

/* Telas estreitas: o balão vira uma folha no rodapé, que é o padrão que a
   pessoa já conhece do celular. */
@media (max-width: 640px) {
  .tour__balao--mascote-cima .tour__mascote { width: 96px; height: 94px; top: -76px; right: 8px; }
  .tour__balao--mascote-baixo .tour__mascote { width: 96px; height: 94px; bottom: -86px; right: 8px; }
  .tour__balao--mascote-cima .tour__cabecalho { padding-right: 92px; }
  .tour-atalho span { display: none; }
  .tour-atalho { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour__recorte { animation: none; }
}

/* Resumo da tela, no primeiro passo do tutorial de tela. */
.tour__resumo {
  margin: 0 0 10px;
  padding: 9px 12px;
  background: #eff6ff;
  border-left: 3px solid #0A4EA0;
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1e40af;
}

.tour__contador--tela {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour__contador--tela i { margin-right: 5px; }

/* O botão de ajuda ganha destaque discreto: é o atalho que o tour promete. */
.header-icon-btn--ajuda i { color: #0A4EA0; }

/* ── Lado do mascote ───────────────────────────────────────────────────────
   Decidido em posicaoBalao.ts junto com o balão. "cima" é o padrão acima;
   os outros existem para ele nunca sair da janela quando o balão encosta
   numa borda. */

.tour__balao--mascote-baixo .tour__mascote {
  top: auto;
  bottom: -112px;
}
.tour__balao--mascote-baixo .tour__mascote img { object-position: top right; }

.tour__balao--mascote-direita .tour__mascote {
  top: auto;
  bottom: 6px;
  right: -146px;
}

/* Ao lado, a figura encosta no balão, não na ponta de fora da caixa. No lado
   esquerdo o contêiner está espelhado, então "left" também fica junto do balão. */
.tour__balao--mascote-direita .tour__mascote img,
.tour__balao--mascote-esquerda .tour__mascote img {
  object-position: bottom left;
}

.tour__balao--mascote-esquerda .tour__mascote {
  top: auto;
  bottom: 6px;
  right: auto;
  left: -146px;
  /* Espelhado, para olhar para o balão. O transform fica no contêiner porque
     o framer-motion é dono do transform da imagem. */
  transform: scaleX(-1);
}

.tour__balao--mascote-dentro .tour__mascote {
  top: 10px;
  right: 50px;
  width: 58px;
  height: 58px;
}

.tour__balao--mascote-baixo .tour__cabecalho,
.tour__balao--mascote-direita .tour__cabecalho,
.tour__balao--mascote-esquerda .tour__cabecalho {
  padding-right: 40px;
}

.tour__balao--mascote-dentro .tour__cabecalho { padding-right: 110px; min-height: 48px; }

/* O corpo do tutorial de tela pode ter regras em tópicos; se crescer demais,
   rola dentro do balão em vez de empurrar os botões para fora da janela. */
.tour__balao--tela .tour__corpo {
  max-height: min(52vh, 440px);
  overflow-y: auto;
  padding-right: 4px;
}

.tour__regras {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tour__regras li {
  position: relative;
  padding: 7px 10px 7px 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #334155;
}

.tour__regras li::before {
  content: "\f0e3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 0.72rem;
  color: #0A4EA0;
}
/* ═══════════════════════════════════════════════════════════════════════════
   Dashboard pessoal (/dashboard)
   Paleta oficial Phobos: #0A4EA0 (primária) e #002b5e (profunda)
   ═══════════════════════════════════════════════════════════════════════════ */

.pd-page {
  --pd-primary: #0A4EA0;
  --pd-deep: #002b5e;
  --pd-ink: #0f172a;
  --pd-ink-2: #475569;
  --pd-muted: #94a3b8;
  --pd-line: #e8edf4;
  --pd-surface: #ffffff;
  --pd-canvas: #f6f8fc;

  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--pd-ink);
  animation: pd-fade 0.35s ease both;
}

@keyframes pd-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cabeçalho pessoal ───────────────────────────────────────────────────── */

.pd-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-deep) 100%);
  color: #fff;
  box-shadow: 0 18px 38px -18px rgba(10, 78, 160, 0.55);
}

.pd-hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(70px);
  pointer-events: none;
}
.pd-hero-glow--a { top: -120px; right: -60px; }
.pd-hero-glow--b { bottom: -140px; left: 12%; }

.pd-hero-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.pd-avatar {
  position: relative;
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.pd-hero-text { min-width: 0; }

.pd-hero-greet {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pd-hero-greet strong { font-weight: 700; opacity: 1; }

.pd-birthday {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pd-hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pd-hero-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 600;
}
.pd-tag i { font-size: 0.7rem; opacity: 0.85; }
.pd-tag--role { background: rgba(255, 255, 255, 0.24); }

.pd-hero-clock {
  position: relative;
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pd-clock-time { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pd-clock-date { font-size: 0.8rem; opacity: 0.85; text-transform: capitalize; }
.pd-clock-agenda { font-size: 0.74rem; opacity: 0.7; margin-top: 0.25rem; }

/* ── Painel de indicadores ───────────────────────────────────────────────── */
/* Uma superfície por assunto, com as métricas separadas por divisória — evita
   três fileiras de cartões brigando por atenção logo abaixo do cabeçalho. */

.pd-panel {
  border: 1px solid var(--pd-line);
  border-radius: 18px;
  background: var(--pd-surface);
  overflow: hidden;
}

.pd-panel-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--pd-line);
}
.pd-panel-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.pd-panel-head h2 i { color: var(--pd-primary); font-size: 0.82rem; }

.pd-panel-hint {
  min-width: 0;
  font-size: 0.74rem;
  color: var(--pd-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-panel-hint::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: 1px;
  background: #cbd5e1;
}
.pd-panel-hint.is-success::before { background: #16a34a; }
.pd-panel-hint.is-warning::before { background: #f59e0b; }
.pd-panel-hint.is-danger::before  { background: #dc2626; }
.pd-panel-hint.is-danger { color: #b91c1c; }

.pd-panel-action { margin-left: auto; flex-shrink: 0; }

/* As divisórias são o próprio gap de 1px sobre o fundo da grade: nunca sobra
   linha na borda do painel, com qualquer número de métricas. */
.pd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--pd-line);
}
.pd-metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-metrics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pd-metric {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.4rem 1.25rem;
  border: none;
  background: var(--pd-surface);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.18s ease;
}
.pd-metric:hover { background: #f8fafd; }
.pd-metric:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: -2px; }

.pd-metric-head { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pd-metric-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  background: #f1f5f9;
  color: var(--pd-ink-2);
}
.pd-metric-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pd-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pd-metric-hint {
  font-size: 0.71rem;
  color: var(--pd-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-metric--primary .pd-metric-icon { background: #eff6ff; color: var(--pd-primary); }
.pd-metric--info    .pd-metric-icon { background: #ecfeff; color: #0e7490; }
.pd-metric--success .pd-metric-icon { background: #ecfdf5; color: #047857; }
.pd-metric--warning .pd-metric-icon { background: #fffbeb; color: #b45309; }
.pd-metric--danger  .pd-metric-icon { background: #fef2f2; color: #b91c1c; }
.pd-metric--danger  .pd-metric-value { color: #b91c1c; }
.pd-metric--danger  .pd-metric-hint  { color: #b91c1c; font-weight: 600; }

.pd-panel-foot {
  padding: 0.85rem 1.4rem;
  background: #fafbfd;
  border-top: 1px solid var(--pd-line);
}

/* ── Grade ───────────────────────────────────────────────────────────────── */

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.pd-col { display: flex; flex-direction: column; gap: 1.35rem; min-width: 0; }

.pd-card {
  border: 1px solid var(--pd-line);
  border-radius: 18px;
  background: var(--pd-surface);
  overflow: hidden;
}

.pd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--pd-line);
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.pd-card-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pd-card-head h2 i { color: var(--pd-primary); font-size: 0.85rem; }
.pd-card-sub { font-size: 0.72rem; color: var(--pd-muted); }

/* ── To-do do "Meu foco de hoje" ─────────────────────────────────────────── */

/* o h2 empurra o resto; sub e + ficam colados na direita */
.pd-card-head .pd-card-sub { margin-left: auto; }

.pd-add-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--pd-line);
  background: #fff;
  color: var(--pd-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition: all 0.16s ease;
}
.pd-add-btn:hover:not(:disabled) {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
  transform: translateY(-1px);
}
.pd-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pd-todo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.pd-todo-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--pd-primary);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  color: var(--pd-ink-2);
}
.pd-todo-add {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  background: var(--pd-primary);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.16s ease;
}
.pd-todo-add:hover:not(:disabled) { opacity: 0.9; }
.pd-todo-add:disabled { opacity: 0.5; cursor: not-allowed; }

.pd-todo-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  transition: all 0.16s ease;
}
.pd-todo-check:hover:not(:disabled) {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.pd-todo-check:disabled { opacity: 0.5; cursor: not-allowed; }
.pd-todo-item { gap: 0.7rem; }
.pd-card-body { padding: 1.15rem 1.35rem 1.25rem; }

.pd-badge {
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.pd-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pd-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pd-link:hover { text-decoration: underline; }
.pd-link i { font-size: 0.65rem; }

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--pd-line);
  background: #fff;
  color: var(--pd-ink-2);
  transition: all 0.16s ease;
  white-space: nowrap;
  text-decoration: none;
}
.pd-btn:hover { border-color: var(--pd-primary); color: var(--pd-primary); background: #f5f9ff; }
.pd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pd-btn i { font-size: 0.68rem; }

/* ── Linha do tempo (foco de hoje) ───────────────────────────────────────── */

.pd-timeline { list-style: none; margin: 0; padding: 0; }

.pd-timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #f4f7fb;
}
.pd-timeline-item:first-child { padding-top: 0.2rem; }
.pd-timeline-item:last-child { border-bottom: none; }

.pd-timeline-time {
  flex-shrink: 0;
  width: 54px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pd-primary);
  font-variant-numeric: tabular-nums;
}
.pd-timeline-item.is-overdue .pd-timeline-time { color: #b91c1c; }

.pd-timeline-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pd-primary);
  box-shadow: 0 0 0 3px #eff6ff;
}
.pd-timeline-item.is-overdue .pd-timeline-dot { background: #dc2626; box-shadow: 0 0 0 3px #fef2f2; }

.pd-timeline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-timeline-body strong { font-size: 0.86rem; font-weight: 600; }
.pd-timeline-meta { font-size: 0.72rem; color: var(--pd-muted); }
.pd-timeline-meta i { font-size: 0.65rem; }

/* ── Fila do Acelerato dentro do foco ────────────────────────────────────── */
/* A cor do marcador indica a urgência calculada (SLA, etapa, prioridade). */

.pd-foco-item .pd-timeline-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-foco-item .pd-timeline-time { font-size: 0.72rem; }

.pd-foco-item.is-critico .pd-timeline-time { color: #b91c1c; }
.pd-foco-item.is-critico .pd-timeline-dot { background: #dc2626; box-shadow: 0 0 0 3px #fef2f2; }
.pd-foco-item.is-alto .pd-timeline-time { color: #c2410c; }
.pd-foco-item.is-alto .pd-timeline-dot { background: #ea580c; box-shadow: 0 0 0 3px #fff7ed; }
.pd-foco-item.is-medio .pd-timeline-time { color: #b45309; }
.pd-foco-item.is-medio .pd-timeline-dot { background: #f59e0b; box-shadow: 0 0 0 3px #fffbeb; }

.pd-foco-carregando .pd-timeline-time { color: var(--pd-muted); }
.pd-foco-carregando .pd-timeline-dot { background: #cbd5e1; box-shadow: 0 0 0 3px #f1f5f9; }
.pd-foco-carregando .pd-timeline-body strong { color: var(--pd-muted); font-weight: 500; }

.pd-foco-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 3px; }
.pd-foco-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.pd-foco-item.is-critico .pd-foco-tag { background: #fef2f2; color: #b91c1c; }
.pd-foco-item.is-alto .pd-foco-tag { background: #fff7ed; color: #c2410c; }

.pd-foco-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.72rem;
  color: var(--pd-muted);
}
.pd-foco-rodape i { font-size: 0.68rem; }
.pd-foco-rodape .pd-link { margin-left: auto; }

/* ── Chips de projeto (rodapé do painel do Acelerato) ────────────────────── */

.pd-proj-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pd-proj-legenda {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--pd-muted);
  margin-right: 0.15rem;
}
.pd-proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}
.pd-proj-chip strong { font-weight: 800; color: #475569; }
.pd-proj-chip.is-mine { background: #eff6ff; color: #0A4EA0; }
.pd-proj-chip.is-mine strong { color: #0A4EA0; }

/* ── Listas (demandas / tarefas) ─────────────────────────────────────────── */

.pd-list { list-style: none; margin: 0; padding: 0; }

.pd-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f4f7fb;
}
.pd-list-item:last-child { border-bottom: none; }

.pd-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pd-list-body strong {
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

.pd-prio {
  flex-shrink: 0;
  width: 4px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
}
.pd-prio.is-urgent { background: #dc2626; }
.pd-prio.is-high   { background: #ea580c; }
.pd-prio.is-medium { background: var(--pd-primary); }
.pd-prio.is-low    { background: #94a3b8; }

.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.pd-chip.is-pending  { background: #f1f5f9; color: #475569; }
.pd-chip.is-progress { background: #ecfeff; color: #0e7490; }
.pd-chip.is-done     { background: #ecfdf5; color: #047857; }
.pd-chip.is-cancelled{ background: #fef2f2; color: #b91c1c; }
.pd-chip.is-homolog  { background: #fffbeb; color: #b45309; }
.pd-chip.is-urgent   { background: #fef2f2; color: #b91c1c; }
.pd-chip.is-high     { background: #fff7ed; color: #c2410c; }
.pd-chip.is-medium   { background: #eff6ff; color: #0A4EA0; }
.pd-chip.is-low      { background: #f1f5f9; color: #64748b; }

.pd-due {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--pd-muted);
  font-weight: 600;
}
.pd-due i { font-size: 0.62rem; }
.pd-due.is-urgent  { color: #b45309; }
.pd-due.is-overdue { color: #b91c1c; }

.pd-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  transition: all 0.16s ease;
}
.pd-check:hover { border-color: #047857; background: #ecfdf5; color: #047857; }
.pd-check:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Avisos ──────────────────────────────────────────────────────────────── */

.pd-notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.pd-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border-left: 3px solid var(--pd-primary);
  background: #f8fafc;
}
.pd-notice strong { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; }
.pd-notice p { margin: 0; font-size: 0.74rem; color: var(--pd-ink-2); line-height: 1.45; }
.pd-notice.is-warning { border-left-color: #d97706; background: #fffbeb; }
.pd-notice.is-critico { border-left-color: #dc2626; background: #fef2f2; }
.pd-notice.is-success { border-left-color: #059669; background: #ecfdf5; }

/* ── Próximos compromissos ───────────────────────────────────────────────── */

.pd-upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pd-upcoming li { display: flex; align-items: center; gap: 0.75rem; }
.pd-upcoming li > div { min-width: 0; display: flex; flex-direction: column; }
.pd-upcoming li strong { font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-upcoming li span { font-size: 0.71rem; color: var(--pd-muted); }

.pd-upcoming-date {
  flex-shrink: 0;
  width: 44px;
  padding: 0.35rem 0;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--pd-primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 0.62rem !important;
  font-weight: 700;
}
.pd-upcoming-date strong { font-size: 1.05rem !important; font-weight: 800; }

/* ── Atalhos em destaque ─────────────────────────────────────────────────── */

.pd-quick { padding: 0; }

.pd-quick-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.pd-quick-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pd-quick-head h2 i { color: #f59e0b; font-size: 0.82rem; }
.pd-quick-head span { font-size: 0.75rem; color: var(--pd-muted); }

.pd-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.pd-quick-item {
  --q: var(--pd-primary);
  --q-soft: #eff6ff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.05rem 1.05rem 1rem;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  background: var(--pd-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pd-quick-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 0%, var(--q-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pd-quick-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--q);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pd-quick-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--q-soft);
  color: var(--q);
  font-size: 1.05rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-quick-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  width: 100%;
}
.pd-quick-label,
.pd-quick-section {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-quick-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pd-ink);
}
.pd-quick-section {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--pd-muted);
}

.pd-quick-go {
  position: absolute;
  top: 1.05rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--q);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pd-quick-item:hover,
.pd-quick-item:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--q) 30%, var(--pd-line));
  box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--q) 55%, transparent);
}
.pd-quick-item:focus-visible { outline: 2px solid var(--q); outline-offset: 2px; }
.pd-quick-item:hover::before,
.pd-quick-item:focus-visible::before { opacity: 1; }
.pd-quick-item:hover::after,
.pd-quick-item:focus-visible::after { transform: scaleX(1); }
.pd-quick-item:hover .pd-quick-icon,
.pd-quick-item:focus-visible .pd-quick-icon {
  background: var(--q);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 16px -8px var(--q);
}
.pd-quick-item:hover .pd-quick-go,
.pd-quick-item:focus-visible .pd-quick-go { opacity: 1; transform: none; }
.pd-quick-item:active { transform: translateY(-1px); }

.pd-quick-item.is-loading { pointer-events: none; box-shadow: none; }
.pd-quick-item.is-loading .pd-quick-icon { border-radius: 13px; }
.pd-quick-item.is-loading .pd-quick-text { gap: 7px; }

.pd-quick-item.is-blue   { --q: #0A4EA0; --q-soft: #eff6ff; }
.pd-quick-item.is-teal   { --q: #0e7490; --q-soft: #ecfeff; }
.pd-quick-item.is-violet { --q: #6d28d9; --q-soft: #f5f3ff; }
.pd-quick-item.is-sky    { --q: #0369a1; --q-soft: #f0f9ff; }
.pd-quick-item.is-green  { --q: #047857; --q-soft: #ecfdf5; }
.pd-quick-item.is-orange { --q: #c2410c; --q-soft: #fff7ed; }
.pd-quick-item.is-rose   { --q: #be185d; --q-soft: #fdf2f8; }
.pd-quick-item.is-amber  { --q: #b45309; --q-soft: #fffbeb; }
.pd-quick-item.is-indigo { --q: #4338ca; --q-soft: #eef2ff; }
.pd-quick-item.is-slate  { --q: #334155; --q-soft: #f1f5f9; }

/* ── Mini gráfico da semana ──────────────────────────────────────────────── */
/* Série única → uma cor só, sem legenda; eixo recessivo; rótulo direto apenas
   no melhor dia, o resto no hover. */

.pd-week-plot {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: 120px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--pd-line);
}

.pd-week-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
  cursor: default;
  border: none;
  background: none;
}
.pd-week-col:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; border-radius: 6px; }

.pd-week-track { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }

.pd-week-bar {
  width: 62%;
  max-width: 26px;
  /* Extremidade arredondada só no topo — a base fica ancorada no eixo. */
  border-radius: 4px 4px 0 0;
  background: var(--pd-primary);
  transition: opacity 0.16s ease, filter 0.16s ease;
}
.pd-week-col:hover .pd-week-bar { filter: brightness(1.15); }
.pd-week-col.is-today .pd-week-bar { background: var(--pd-deep); }

.pd-week-value {
  position: absolute;
  top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pd-ink-2);
  font-variant-numeric: tabular-nums;
}

.pd-week-label {
  font-size: 0.66rem;
  color: var(--pd-muted);
  text-transform: capitalize;
  position: absolute;
  bottom: -18px;
}
.pd-week-col.is-today .pd-week-label { color: var(--pd-deep); font-weight: 700; }

.pd-week { padding-bottom: 20px; }

.pd-week-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--pd-ink);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  pointer-events: none;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.pd-week-tip span { opacity: 0.7; font-size: 0.65rem; }

.pd-week-caption {
  margin: 1.4rem 0 0;
  font-size: 0.74rem;
  color: var(--pd-ink-2);
  text-align: center;
}

/* ── Vazios e esqueletos ─────────────────────────────────────────────────── */

.pd-empty { text-align: center; padding: 1.6rem 0.5rem; }
.pd-empty i { font-size: 1.9rem; color: #cbd5e1; margin-bottom: 0.6rem; display: block; }
.pd-empty h4 { margin: 0 0 0.25rem; font-size: 0.86rem; font-weight: 700; color: var(--pd-ink-2); }
.pd-empty p { margin: 0; font-size: 0.75rem; color: var(--pd-muted); line-height: 1.5; }

@keyframes pd-shimmer {
  0%   { background-position: -380px 0; }
  100% { background-position:  380px 0; }
}

.pd-sk {
  display: block;
  border-radius: 6px;
  background: #eef2f7;
  background-image: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 380px 100%;
  background-repeat: no-repeat;
  animation: pd-shimmer 1.25s ease-in-out infinite;
}
.pd-sk-line { height: 10px; }
.pd-sk-num  { width: 52px; height: 26px; margin: 3px 0; }
.pd-sk-dot  { width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; }

.pd-sk-list { display: flex; flex-direction: column; gap: 0.9rem; }
.pd-sk-row  { display: flex; align-items: center; gap: 0.7rem; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-metrics, .pd-metrics--3, .pd-metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .pd-page { gap: 1.35rem; }
  .pd-hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.3rem; }
  .pd-hero-clock { text-align: left; }
  .pd-hero-text h1 { font-size: 1.3rem; }
  .pd-avatar { width: 60px; height: 60px; font-size: 1.3rem; border-radius: 18px; }
  .pd-metrics, .pd-metrics--3, .pd-metrics--2 { grid-template-columns: minmax(0, 1fr); }
  .pd-metric { padding: 1rem 1.1rem; }
  .pd-panel-head { flex-wrap: wrap; padding: 0.9rem 1.1rem; }
  .pd-panel-hint { white-space: normal; }
  .pd-panel-action { margin-left: 0; }
  .pd-panel-foot { padding: 0.8rem 1.1rem; }
  .pd-card-head { padding: 0.95rem 1.1rem; }
  .pd-card-body { padding: 1rem 1.1rem 1.1rem; }
  .pd-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .pd-quick-item { flex-direction: row; align-items: center; gap: 0.7rem; padding: 0.75rem; border-radius: 14px; }
  .pd-quick-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 0.92rem; }
  .pd-quick-label { font-size: 0.8rem; }
  .pd-quick-go { display: none; }
  .pd-timeline-item { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-page, .pd-sk, .pd-week-bar { animation: none; transition: none; }
  .pd-metric:hover, .pd-quick-item:hover, .pd-quick-item:focus-visible, .pd-shortcut:hover { transform: none; }
  .pd-quick-item, .pd-quick-item::before, .pd-quick-item::after, .pd-quick-icon, .pd-quick-go { transition: none; }
}
/* Admin Pages - Cards e Modais Modernos */

/* ============================================
   PREMIUM STAT CARDS
   ============================================ */

.premium-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.premium-stat-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Shimmer animation overlay */
.premium-stat-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 25%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 75%);
  background-size: 250% 100%;
  animation: statShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes statShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Icon circle */
.premium-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.premium-stat-card:hover .premium-stat-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Content (value + label) */
.premium-stat-card__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}

.premium-stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  letter-spacing: -0.5px;
}

.premium-stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Background decoration icon */
.premium-stat-card__decoration {
  position: absolute;
  right: 1rem;
  bottom: -4px;
  font-size: 4rem;
  opacity: 0.1;
  color: white;
  pointer-events: none;
  transition: all 0.35s ease;
}

.premium-stat-card:hover .premium-stat-card__decoration {
  opacity: 0.18;
  transform: scale(1.1) rotate(8deg);
}

/* --- Variantes de cor --- */

/* Total */
.premium-stat-card--total {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 50%, #002b5e 100%);
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
}

.premium-stat-card--total:hover {
  box-shadow: 0 12px 32px rgba(10, 78, 160, 0.45);
}

/* Ativos */
.premium-stat-card--active {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.premium-stat-card--active:hover {
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45);
}

/* Inativos */
.premium-stat-card--inactive {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 50%, #475569 100%);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.35);
}

.premium-stat-card--inactive:hover {
  box-shadow: 0 12px 32px rgba(100, 116, 139, 0.45);
}

/* Info (cyan) */
.premium-stat-card--info {
  background: linear-gradient(135deg, #0891b2 0%, #22d3ee 50%, #0e7490 100%);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.35);
}

.premium-stat-card--info:hover {
  box-shadow: 0 12px 32px rgba(8, 145, 178, 0.45);
}

/* Danger (red) */
.premium-stat-card--danger {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 50%, #b91c1c 100%);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.premium-stat-card--danger:hover {
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
}

@media (max-width: 768px) {
  .premium-stat-card {
    padding: 1.25rem 1rem;
  }

  .premium-stat-card__value {
    font-size: 1.5rem;
  }

  .premium-stat-card__decoration {
    font-size: 3rem;
  }
}

.admin-grid-card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.admin-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.admin-grid-card .card-img-top {
  border-radius: 0 !important;
}

.admin-grid-card .card-body {
  padding: 1.25rem;
}

.admin-grid-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.admin-grid-card .card-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6c757d;
}

/* Badges nos Cards */
.admin-grid-card .position-absolute.top-0.end-0 {
  margin: 0.75rem !important;
}

.admin-grid-card .badge {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botões nos Cards */
.admin-grid-card .btn-group .btn,
.admin-grid-card .d-flex .btn {
  border-radius: 8px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-grid-card .btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border: none;
}

.admin-grid-card .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.admin-grid-card .btn-danger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ============================================
   MODAL COMPLETO
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  border: none !important;
  overflow: hidden;
}

.modal-content.modal-large {
  max-width: 900px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 2rem 3rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%) !important;
  color: white;
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.modal-header h2 i {
  font-size: 1.125rem;
}

.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 2.5rem 3rem !important;
  overflow-y: auto;
  flex: 1;
  background: white !important;
  max-height: 70vh;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #0A4EA0;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #002b5e;
}

.modal-footer {
  padding: 2rem 3rem !important;
  border-top: 1px solid #dee2e6 !important;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f8f9fa !important;
  border-radius: 0 0 16px 16px;
}

/* Form Labels */
.modal-body .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Form Controls */


/* File Input */
.modal-body input[type="file"] {
  padding: 0.5rem;
}

/* Switch Toggle */
.form-check-input {
  width: 3rem;
  height: 1.5rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #0A4EA0;
  border-color: #0A4EA0;
}

/* Preview de Imagem no Modal */
.modal-body img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* Input Group */
.input-group-text {
  border-radius: 8px 0 0 8px;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

/* Btn Group no Modal */
.modal-body .btn-group .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: 8px !important;
  margin: 0 2px;
}

.modal-body .btn-group .btn:first-child {
  margin-left: 0;
}

.modal-body .btn-group .btn:last-child {
  margin-right: 0;
}

/* Rating Stars */
.modal-body .btn-link {
  text-decoration: none;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.modal-body .btn-link:hover {
  transform: scale(1.2);
}

/* Empty State */
.card-body.text-center.py-5 i {
  opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {

  .admin-grid-card .card-body {
    padding: 1rem;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-grid-card {
  animation: fadeIn 0.3s ease;
}

/* Loading Spinner */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.2rem;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}



/* Botões Outline Modernos */
.btn-outline-primary {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border-color: #0A4EA0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}

.btn-outline-danger {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

/* Ícones nos botões */
.btn i {
  transition: transform 0.2s ease;
}

.btn:hover i {
  transform: scale(1.1);
}

/* Botões na tabela */
.table .btn-sm {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

.table .btn-sm i {
  font-size: 0.875rem;
}



/* Cards de Planos Premium */
.plan-card {
  position: relative;
  border: 2px solid transparent !important;
  transition: all 0.4s ease;
}

.plan-card:hover {
  border-color: #0A4EA0 !important;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(10, 78, 160, 0.2) !important;
}

.plan-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #000;
}

.plan-card .plan-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(10, 78, 160, 0.2);
  transition: all 0.3s ease;
}

.plan-card:hover .plan-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 24px rgba(10, 78, 160, 0.3);
}

.plan-card .plan-icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.plan-card .plan-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.plan-card .plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.plan-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.plan-card .plan-period {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-card .plan-description {
  color: #6c757d;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 1rem 0;
  min-height: 60px;
}

.plan-card .plan-features {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.plan-card .plan-feature {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #495057;
}

.plan-card .plan-feature i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.plan-card .plan-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 1rem 0;
}

/* Animação de entrada */
@keyframes planFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  animation: planFadeIn 0.5s ease;
}




/* ============================================
   ADMIN GRID E CARDS MODERNOS
   ============================================ */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-card .card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
}

.admin-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card .card-header {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.admin-card .card-badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  color: white;
  white-space: nowrap;
}

.admin-card .card-body {
  padding: 1.25rem;
  flex: 1;
}

.admin-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-card .card-title i {
  font-size: 1.125rem;
}

.admin-card .card-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
}

.admin-card .card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.admin-card .card-meta {
  font-size: 0.8125rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.admin-card .card-meta i {
  font-size: 0.875rem;
}

.admin-card .card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.btn-icon.btn-edit {
  color: #0A4EA0;
  border-color: #0A4EA0;
}

.btn-icon.btn-edit:hover {
  background: #0A4EA0;
  color: white;
  transform: scale(1.05);
}

.btn-icon.btn-delete {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-icon.btn-delete:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.05);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.loading-state i {
  font-size: 3rem;
  color: #0A4EA0;
  margin-bottom: 1rem;
}

.loading-state p {
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-card .card-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .admin-card .card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}




/* ============================================
   ADMIN PAGE HEADER E FILTROS
   ============================================ */

.admin-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-title i {
  color: #0A4EA0;
  font-size: 1.5rem;
}

.admin-subtitle {
  font-size: 0.9375rem;
  color: #6c757d;
  margin: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border: none;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary i {
  font-size: 0.875rem;
}


/* ============================================
   TOGGLE SWITCH GROUP (Categoria)
   ============================================ */

.toggle-switch-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.toggle-option {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.toggle-option:hover {
  border-color: #0A4EA0;
  background: #f0f7ff;
  color: #0A4EA0;
}

.toggle-option.active {
  border-color: #0A4EA0;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.toggle-option i {
  font-size: 1rem;
}


/* =========================================
   PREMIUM FILTER BAR - shared
   ========================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.08);
}

.filter-bar__search {
  display: flex;
  align-items: center;
  flex: 1 1 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  gap: 0.875rem;
}

.filter-bar__search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  flex-shrink: 0;
}

.filter-bar__search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9375rem;
  height: 44px;
  padding: 0 1rem;
  outline: none;
  transition: all 0.25s ease;
}

.filter-bar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.filter-bar__search-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.filter-bar__search-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.filter-bar__search-clear:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.filter-bar__group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  flex: 1;
}

.filter-bar__group:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.filter-bar__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar__tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-bar__tab {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.filter-bar__tab:hover {
  border-color: #0A4EA0;
  color: #0A4EA0;
  background: #eff6ff;
}

.filter-bar__tab--active {
  background: linear-gradient(135deg, #0A4EA0, #002b5e) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(10, 78, 160, 0.25);
}

.filter-bar__chips {
  display: flex;
  gap: 4px;
}

.filter-bar__chip {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-bar__chip--all {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.filter-bar__chip--all.filter-bar__chip--active {
  background: #0f172a;
  color: #fff;
  border-color: transparent;
}

.filter-bar__chip--active-item {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.filter-bar__chip--active-item.filter-bar__chip--active {
  background: #16a34a !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.filter-bar__chip--inactive-item {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.filter-bar__chip--inactive-item.filter-bar__chip--active {
  background: #e11d48 !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
}

.filter-bar__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-left: 1px solid #f1f5f9;
  min-width: 90px;
  flex-shrink: 0;
}

.filter-bar__count-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0A4EA0, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.filter-bar__count-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Admin Table */
.admin-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead {
  background: #f8fafc;
}

.admin-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.table-cell-main {
  font-weight: 600;
  color: #0f172a;
}

.table-cell-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #ecfdf5;
  color: #059669;
}

.badge-secondary {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 768px) {
  .filter-bar__group {
    flex: 1 1 50%;
    border-right: none !important;
    border-top: 1px solid #f1f5f9;
  }

  .filter-bar__count {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 0.5rem;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    justify-content: center;
  }

  .filter-bar__tabs,
  .filter-bar__chips {
    flex-wrap: wrap;
  }
}/**
 * banco.css — console de banco (/admin/banco).
 *
 * Usa as variáveis HSL do tema (index.css) em vez de cor fixa, para o console
 * acompanhar o modo escuro junto com o resto da intranet. As únicas cores
 * cravadas são as de risco (destrutivo), que precisam ser iguais nos dois modos.
 */

.banco-console {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 520px;
  gap: 14px;
}

/* ── topo ─────────────────────────────────────────────────────────────────── */

.banco-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.banco-topo h1 {
  margin: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.banco-sub {
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.88rem;
}
.banco-acesso {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banco-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.banco-selo--leitura { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.banco-selo--escrita { background: #fef3c7; color: #92400e; }

/* ── layout ───────────────────────────────────────────────────────────────── */

.banco-corpo {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.banco-lateral {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 10px;
}
.banco-tabelas {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.banco-tabela {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
}
.banco-tabela:hover { background: hsl(var(--muted)); }
.banco-tabela.ativa { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.banco-tabela i { opacity: 0.6; font-size: 0.75rem; }
.banco-tabela-nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banco-tabela-n { font-size: 0.72rem; opacity: 0.65; }

.banco-painel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  overflow: hidden;
}
.banco-abas {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  flex-wrap: wrap;
}
.banco-aba {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
}
.banco-aba:hover:not(:disabled) { background: hsl(var(--muted)); }
.banco-aba.ativa { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.banco-aba:disabled { opacity: 0.35; cursor: not-allowed; }
.banco-conteudo { flex: 1; overflow: auto; padding: 16px; min-height: 0; }

/* ── controles ────────────────────────────────────────────────────────────── */

.banco-input,
.banco-select {
  padding: 7px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.85rem;
  width: 100%;
}
.banco-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
.banco-btn:hover:not(:disabled) { background: hsl(var(--muted)); }
.banco-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.banco-btn--primario {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.banco-btn--ghost { border-color: transparent; background: transparent; }
.banco-btn--perigo { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.banco-btn--pequeno { padding: 4px 9px; font-size: 0.78rem; margin-left: 10px; }

.banco-mini {
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
}
.banco-mini:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.banco-mini--perigo:hover { background: #fee2e2; color: #b91c1c; }

/* ── grade ────────────────────────────────────────────────────────────────── */

.banco-grade-wrap {
  overflow: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  margin-bottom: 14px;
  max-width: 100%;
}
.banco-grade {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.banco-grade th {
  position: sticky;
  top: 0;
  background: hsl(var(--muted));
  padding: 9px 11px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid hsl(var(--border));
  z-index: 1;
}
.banco-col-ordenavel { cursor: pointer; user-select: none; }
.banco-col-ordenavel:hover { background: hsl(var(--border)); }
.banco-col-ordenavel i { margin-left: 6px; font-size: 0.7rem; }
.banco-grade td {
  padding: 7px 11px;
  border-bottom: 1px solid hsl(var(--border));
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banco-grade tr:hover td { background: hsl(var(--muted) / 0.45); }
.banco-col-acoes { width: 70px; white-space: nowrap; }
.banco-nulo { color: hsl(var(--muted-foreground)); font-style: italic; font-size: 0.78rem; }

.banco-barra {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.banco-busca { display: flex; gap: 6px; flex: 1; max-width: 460px; }
.banco-barra-dir { display: flex; gap: 8px; align-items: center; }
.banco-select { width: auto; }

.banco-info {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.banco-aviso { color: #92400e; }

.banco-paginacao {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.85rem;
}

/* ── SQL ──────────────────────────────────────────────────────────────────── */

.banco-editor {
  width: 100%;
  min-height: 170px;
  padding: 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--muted) / 0.35);
  color: hsl(var(--foreground));
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  resize: vertical;
}
.banco-sql-barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.banco-classes { display: flex; gap: 5px; flex-wrap: wrap; }
.banco-classe {
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.banco-resultado { margin-bottom: 18px; }
.banco-resultado-topo {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 11px;
  background: hsl(var(--muted));
  border-radius: 6px 6px 0 0;
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.banco-resultado-topo code { opacity: 0.8; }
.banco-erro { color: #b91c1c; font-weight: 600; }
.banco-sql-bloco {
  background: hsl(var(--muted) / 0.5);
  padding: 13px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid hsl(var(--border));
}

/* ── alertas ──────────────────────────────────────────────────────────────── */

.banco-alerta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.85rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.banco-alerta--perigo { background: #fee2e2; color: #7f1d1d; }
.banco-alerta strong { margin: 0 3px; }

/* ── modal ────────────────────────────────────────────────────────────────── */

.banco-modal-fundo {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.banco-modal {
  background: hsl(var(--background));
  border-radius: 12px;
  padding: 22px;
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.28);
}
.banco-modal h3 { margin: 0 0 16px; font-size: 1.05rem; }
.banco-modal-campos { display: flex; flex-direction: column; gap: 11px; }
.banco-campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.banco-campo > span { font-size: 0.8rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.banco-campo textarea {
  padding: 7px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  resize: vertical;
  min-height: 34px;
}
.banco-modal-pe {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid hsl(var(--border));
}
.banco-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  margin-bottom: 9px;
  cursor: pointer;
}
.banco-colunas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 3px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  padding: 9px;
}
.banco-colunas-lista .banco-check { margin-bottom: 0; }

/* ── exportar e operações ─────────────────────────────────────────────────── */

.banco-formatos { display: flex; gap: 11px; margin-bottom: 16px; flex-wrap: wrap; }
.banco-formato {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border: 2px solid hsl(var(--border));
  border-radius: 9px;
  cursor: pointer;
}
.banco-formato.ativo { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); }
.banco-formato input { display: none; }
.banco-formato small { color: hsl(var(--muted-foreground)); font-size: 0.76rem; line-height: 1.4; }

.banco-cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}
.banco-cartao {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
}
.banco-cartao i { font-size: 1.3rem; color: hsl(var(--muted-foreground)); }
.banco-cartao p { margin: 0; font-size: 0.8rem; color: hsl(var(--muted-foreground)); line-height: 1.45; flex: 1; }
.banco-cartao--perigo { border-color: #fca5a5; background: #fef2f2; }
.banco-cartao--perigo i { color: #b91c1c; }
.banco-cartao--perigo p { color: #7f1d1d; }
.banco-perigo-titulo { color: #b91c1c; }

.banco-linha-form { display: flex; gap: 9px; margin-bottom: 22px; max-width: 460px; }

.banco-estrutura h3,
.banco-operacoes h3,
.banco-servidor h3,
.banco-exportar h3 {
  font-size: 0.98rem;
  margin: 20px 0 11px;
  display: flex;
  align-items: center;
}
.banco-estrutura h3:first-child,
.banco-operacoes h3:first-child,
.banco-exportar h3:first-child { margin-top: 0; }

/* ── servidor ─────────────────────────────────────────────────────────────── */

.banco-metricas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}
.banco-metrica {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
}
.banco-metrica span { font-size: 0.76rem; color: hsl(var(--muted-foreground)); }
.banco-metrica strong { font-size: 1.12rem; }

/* ── vazio ────────────────────────────────────────────────────────────────── */

.banco-vazio {
  padding: 22px;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
.banco-vazio--grande { padding: 70px 20px; }
.banco-vazio--grande i { font-size: 2rem; opacity: 0.35; display: block; margin-bottom: 12px; }

@media (max-width: 900px) {
  .banco-corpo { grid-template-columns: 1fr; }
  .banco-lateral { max-height: 210px; }
  .banco-console { height: auto; }
}
/**
 * correio.css — Contas de E-mail (/admin/correio).
 *
 * Tudo sai das variáveis HSL do tema (`client/src/index.css`), como em
 * `banco.css`: é o que faz a tela acompanhar o modo escuro junto com o resto
 * da intranet. A versão anterior era Bootstrap com cor cravada e destoava de
 * todas as telas vizinhas.
 *
 * As cores de significado (erro, atenção, ok) ficam em variáveis próprias aqui
 * em cima porque precisam funcionar nos dois modos — o token `--destructive`
 * sozinho não dá o fundo suave que o aviso usa.
 */

.correio {
  --co-ok: 158 64% 32%;
  --co-ok-bg: 152 76% 95%;
  --co-alerta: 32 81% 36%;
  --co-alerta-bg: 48 96% 92%;
  --co-erro: 0 72% 45%;
  --co-erro-bg: 0 86% 96%;
  --co-info: 210 85% 33%;
  --co-info-bg: 210 92% 95%;

  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 2px 32px;
}

.dark .correio {
  --co-ok-bg: 158 40% 14%;
  --co-alerta-bg: 32 45% 15%;
  --co-erro-bg: 0 45% 15%;
  --co-info-bg: 210 45% 16%;
  --co-ok: 158 60% 60%;
  --co-alerta: 38 90% 62%;
  --co-erro: 0 80% 68%;
  --co-info: 210 90% 70%;
}

/* ── Topo ─────────────────────────────────────────────────────────────────── */

.correio-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.correio-topo h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
}

.correio-topo h1 > i { color: hsl(var(--primary)); }

.correio-sub {
  margin: 5px 0 0;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

.correio-topo__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Selos ────────────────────────────────────────────────────────────────── */

.correio-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.correio-selo--ok     { background: hsl(var(--co-ok-bg));     color: hsl(var(--co-ok)); }
.correio-selo--alerta { background: hsl(var(--co-alerta-bg)); color: hsl(var(--co-alerta)); }
.correio-selo--erro   { background: hsl(var(--co-erro-bg));   color: hsl(var(--co-erro)); }
.correio-selo--info   { background: hsl(var(--co-info-bg));   color: hsl(var(--co-info)); }

/* ── Avisos ───────────────────────────────────────────────────────────────── */

.correio-aviso {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid hsl(var(--co-info) / 0.25);
  background: hsl(var(--co-info-bg));
  color: hsl(var(--foreground));
  font-size: 0.84rem;
  line-height: 1.5;
}

.correio-aviso > i { font-size: 1rem; color: hsl(var(--co-info)); flex-shrink: 0; }
.correio-aviso__texto { flex: 1; min-width: 0; }
.correio-aviso--erro   { background: hsl(var(--co-erro-bg));   border-color: hsl(var(--co-erro) / 0.25); }
.correio-aviso--erro > i { color: hsl(var(--co-erro)); }
.correio-aviso--alerta { background: hsl(var(--co-alerta-bg)); border-color: hsl(var(--co-alerta) / 0.3); }
.correio-aviso--alerta > i { color: hsl(var(--co-alerta)); }

/* ── Métricas ─────────────────────────────────────────────────────────────── */

.correio-metricas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.correio-metrica {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.correio-metrica:hover { border-color: hsl(var(--primary) / 0.4); transform: translateY(-1px); }

.correio-metrica__icone {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: hsl(var(--co-info-bg));
  color: hsl(var(--co-info));
}

.correio-metrica--ok     .correio-metrica__icone { background: hsl(var(--co-ok-bg));     color: hsl(var(--co-ok)); }
.correio-metrica--alerta .correio-metrica__icone { background: hsl(var(--co-alerta-bg)); color: hsl(var(--co-alerta)); }
.correio-metrica--erro   .correio-metrica__icone { background: hsl(var(--co-erro-bg));   color: hsl(var(--co-erro)); }
.correio-metrica--neutra .correio-metrica__icone { background: hsl(var(--muted));        color: hsl(var(--muted-foreground)); }

.correio-metrica__texto { min-width: 0; display: flex; flex-direction: column; }

.correio-metrica__valor {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.correio-metrica__rotulo {
  font-size: 0.73rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Abas ─────────────────────────────────────────────────────────────────── */

.correio-abas {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0;
}

.correio-abas::-webkit-scrollbar { display: none; }

.correio-aba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.correio-aba:hover { color: hsl(var(--foreground)); }

.correio-aba--ativa {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
  font-weight: 600;
}

.correio-aba__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: hsl(var(--co-erro-bg));
  color: hsl(var(--co-erro));
}

/* ── Painel ───────────────────────────────────────────────────────────────── */

.correio-painel {
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.correio-painel__cabeca h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.correio-painel__cabeca p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.correio-colunas {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items: start;
}

/* ── Controles ────────────────────────────────────────────────────────────── */

.correio-barra {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.correio-barra__cresce { flex: 1; min-width: 180px; }

.correio-input,
.correio-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.correio-input:focus,
.correio-select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.correio-input::placeholder { color: hsl(var(--muted-foreground) / 0.8); }

.correio-busca { position: relative; flex: 1; min-width: 180px; }
.correio-busca > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.correio-busca .correio-input { padding-left: 33px; }

.correio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.correio-btn:hover:not(:disabled) { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.correio-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.correio-btn--primario {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.correio-btn--primario:hover:not(:disabled) {
  filter: brightness(1.08);
  color: hsl(var(--primary-foreground));
}

.correio-btn--perigo { color: hsl(var(--co-erro)); border-color: hsl(var(--co-erro) / 0.4); }
.correio-btn--perigo:hover:not(:disabled) {
  background: hsl(var(--co-erro-bg));
  border-color: hsl(var(--co-erro));
  color: hsl(var(--co-erro));
}

.correio-btn--alerta {
  background: hsl(var(--co-alerta-bg));
  border-color: hsl(var(--co-alerta) / 0.4);
  color: hsl(var(--co-alerta));
}

.correio-btn--mini { padding: 6px 11px; font-size: 0.77rem; border-radius: 8px; }

.correio-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: hsl(var(--foreground));
  cursor: pointer;
}
.correio-check input { width: 15px; height: 15px; accent-color: hsl(var(--primary)); cursor: pointer; }

/* Sub-abas em pílula (filtros de spam) */
.correio-chips { display: flex; gap: 7px; flex-wrap: wrap; }

.correio-chip {
  padding: 7px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}
.correio-chip:hover { border-color: hsl(var(--primary) / 0.5); color: hsl(var(--foreground)); }
.correio-chip--ativo {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

/* ── Lista: tabela no desktop, fichas no celular ──────────────────────────── */
/*
 * A tela tem 5 listas. Sem as fichas, num viewport de 390px a tabela mostrava
 * 1 de 6 colunas — sumiam pastas, tamanho, último acesso e o botão de abrir.
 */

.correio-tabela { width: 100%; border-collapse: collapse; }

.correio-tabela th {
  text-align: left;
  padding: 9px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
}

.correio-tabela td {
  padding: 11px 12px;
  font-size: 0.85rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  vertical-align: middle;
}

.correio-tabela tbody tr:last-child td { border-bottom: 0; }
.correio-tabela tbody tr:hover td { background: hsl(var(--muted) / 0.5); }
.correio-tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.correio-tabela .centro { text-align: center; }
.correio-tabela .fim { text-align: right; }

.correio-item__nome { font-weight: 600; }
.correio-item__sub { font-size: 0.76rem; color: hsl(var(--muted-foreground)); margin-top: 2px; }

.correio-fichas { display: none; flex-direction: column; gap: 9px; }

.correio-ficha {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 13px 14px;
  background: hsl(var(--background));
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.correio-ficha__dados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 9px;
  margin: 0;
}

.correio-ficha__dados dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2px;
}

.correio-ficha__dados dd { margin: 0; font-size: 0.83rem; color: hsl(var(--foreground)); }
.correio-ficha__acao > * { width: 100%; }

.correio-vazio {
  padding: 34px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.correio-vazio > i { display: block; font-size: 1.7rem; margin-bottom: 10px; opacity: 0.55; }
.correio-vazio--bom > i { color: hsl(var(--co-ok)); opacity: 1; }

.correio-rodape { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* ── Lista simples (membros de um grupo) ──────────────────────────────────── */

.correio-linhas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.correio-linhas li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--background));
  font-size: 0.84rem;
  color: hsl(var(--foreground));
}

.correio-linhas li > span { min-width: 0; overflow-wrap: anywhere; }

/* ── Problemas ────────────────────────────────────────────────────────────── */

.correio-problema { display: flex; flex-direction: column; gap: 4px; }
.correio-problema + .correio-problema { margin-top: 9px; }
.correio-problema__efeito { font-size: 0.78rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* ── Modal ────────────────────────────────────────────────────────────────── */

.correio-modal-fundo {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: hsl(210 40% 4% / 0.45);
  backdrop-filter: blur(4px);
}

.correio-modal {
  width: 640px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card));
  box-shadow: 0 24px 60px hsl(210 40% 4% / 0.25);
  overflow: hidden;
}

.correio-modal--estreito { width: 460px; }

.correio-modal__cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid hsl(var(--border));
}

.correio-modal__cabeca h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.correio-modal__cabeca h3 > i { color: hsl(var(--primary)); flex-shrink: 0; }

.correio-modal__fechar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.correio-modal__fechar:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.correio-modal__corpo {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.correio-modal__pe {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
}

.correio-secao { display: flex; flex-direction: column; gap: 9px; }

.correio-secao > h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.correio-secao--perigo > h4 { color: hsl(var(--co-erro)); }
.correio-secao p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }

.correio-campo { display: flex; gap: 8px; align-items: center; }
.correio-campo .correio-input { flex: 1; }

.correio-senha {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--muted));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
  user-select: all;
}

.correio-novaconta { display: flex; align-items: center; gap: 0; }
.correio-novaconta .correio-input:first-child { border-radius: 10px 0 0 10px; }
.correio-novaconta__at {
  padding: 9px 10px;
  border: 1px solid hsl(var(--border));
  border-left: 0;
  border-right: 0;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
.correio-novaconta .correio-input:last-child { border-radius: 0 10px 10px 0; }

/* ── Responsivo ───────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  .correio-colunas { grid-template-columns: 1fr; }
  .correio-tabela { display: none; }
  .correio-fichas { display: flex; }
}

@media (max-width: 575px) {
  .correio-topo h1 { font-size: 1.2rem; }
  .correio-metricas { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
  .correio-painel { padding: 14px; border-radius: 12px; }
  .correio-modal__pe { flex-direction: column-reverse; }
  .correio-modal__pe .correio-btn { width: 100%; }
}
/**
 * painel-identidade.css — Identidade do Painel (/admin/painel-identidade).
 *
 * Mesma regra de `correio.css` e `banco.css`: tudo sai das variáveis HSL do
 * tema, e as cores de significado (ok, alerta, erro) ficam declaradas aqui em
 * cima porque precisam de um fundo suave que os tokens do tema não dão
 * sozinhos — e precisam funcionar nos dois modos.
 */

.pid {
  --pid-ok: 158 64% 32%;
  --pid-ok-bg: 152 76% 95%;
  --pid-alerta: 32 81% 36%;
  --pid-alerta-bg: 48 96% 92%;
  --pid-erro: 0 72% 45%;
  --pid-erro-bg: 0 86% 96%;
  --pid-info: 210 85% 33%;
  --pid-info-bg: 210 92% 95%;

  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 2px 32px;
}

.dark .pid {
  --pid-ok: 158 60% 60%;
  --pid-ok-bg: 158 40% 14%;
  --pid-alerta: 38 90% 62%;
  --pid-alerta-bg: 32 45% 15%;
  --pid-erro: 0 80% 68%;
  --pid-erro-bg: 0 45% 15%;
  --pid-info: 210 90% 70%;
  --pid-info-bg: 210 45% 16%;
}

/* ── Topo ─────────────────────────────────────────────────────────────────── */

.pid-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pid-topo h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pid-topo h1 > i { color: hsl(var(--primary)); }

.pid-sub {
  margin: 5px 0 0;
  max-width: 62ch;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

.pid-topo__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Selos ────────────────────────────────────────────────────────────────── */

.pid-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.pid-selo--ok     { background: hsl(var(--pid-ok-bg));     color: hsl(var(--pid-ok)); }
.pid-selo--alerta { background: hsl(var(--pid-alerta-bg)); color: hsl(var(--pid-alerta)); }
.pid-selo--erro   { background: hsl(var(--pid-erro-bg));   color: hsl(var(--pid-erro)); }
.pid-selo--info   { background: hsl(var(--pid-info-bg));   color: hsl(var(--pid-info)); }

/* ── Cartão de estado ─────────────────────────────────────────────────────── */

.pid-cartao {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}

.pid-cartao__icone {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.pid-cartao--ok        { border-color: hsl(var(--pid-ok) / 0.35); }
.pid-cartao--ok        .pid-cartao__icone { background: hsl(var(--pid-ok-bg)); color: hsl(var(--pid-ok)); }
.pid-cartao--alerta    { border-color: hsl(var(--pid-alerta) / 0.4); }
.pid-cartao--alerta    .pid-cartao__icone { background: hsl(var(--pid-alerta-bg)); color: hsl(var(--pid-alerta)); }
.pid-cartao--bloqueado { border-color: hsl(var(--pid-erro) / 0.35); }
.pid-cartao--bloqueado .pid-cartao__icone { background: hsl(var(--pid-erro-bg)); color: hsl(var(--pid-erro)); }

.pid-cartao__corpo { flex: 1; min-width: 0; }

.pid-cartao__corpo h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pid-cartao__corpo p {
  margin: 0;
  max-width: 72ch;
  font-size: 0.87rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.pid-nota {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: hsl(var(--muted));
  font-size: 0.82rem !important;
}

.pid code {
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

/* ── Botões ───────────────────────────────────────────────────────────────── */

.pid-acoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pid-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.pid-btn:hover:not(:disabled) { background: hsl(var(--muted)); }

.pid-btn--primaria {
  border-color: transparent;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.pid-btn--primaria:hover:not(:disabled) { filter: brightness(1.07); background: hsl(var(--primary)); }

.pid-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Monitor ──────────────────────────────────────────────────────────────── */

.pid-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}

.pid-monitor h3 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pid-monitor h3 > i { color: hsl(var(--primary)); }

.pid-monitor p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.pid-chave {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  transition: background 0.15s, color 0.15s;
}

.pid-chave__bola {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.45);
  transition: background 0.15s, box-shadow 0.15s;
}

.pid-chave--ligada {
  background: hsl(var(--pid-ok-bg));
  color: hsl(var(--pid-ok));
}

.pid-chave--ligada .pid-chave__bola {
  background: hsl(var(--pid-ok));
  box-shadow: 0 0 0 4px hsl(var(--pid-ok) / 0.18);
}

.pid-chave:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Detalhes ─────────────────────────────────────────────────────────────── */

.pid-detalhes,
.pid-historico {
  padding: 18px 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}

.pid-detalhes h3,
.pid-historico h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pid-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 20px;
  margin: 0;
}

.pid-grade dt {
  margin-bottom: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.pid-grade dd {
  margin: 0;
  font-size: 0.88rem;
  color: hsl(var(--foreground));
}

/* ── Histórico ────────────────────────────────────────────────────────────── */

.pid-linha-tempo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pid-linha-tempo li {
  display: grid;
  grid-template-columns: 130px 190px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.83rem;
}

.pid-linha-tempo li:last-child { border-bottom: none; }

.pid-linha-tempo__data { color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.pid-linha-tempo__tipo { font-weight: 600; color: hsl(var(--foreground)); }
.pid-linha-tempo__detalhe { color: hsl(var(--muted-foreground)); word-break: break-word; }

.pid-vazio {
  padding: 22px;
  text-align: center;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

/* ── Celular ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .pid-cartao { flex-direction: column; gap: 12px; }
  .pid-linha-tempo li { grid-template-columns: 1fr; gap: 2px; }
  .pid-monitor { align-items: flex-start; }
}
/* ============================================================
   Avisos.css — Central de Avisos Internos · Phobos Intranet
   Paleta: #0A4EA0 (primário) · #002b5e (escuro) · #f1f5fb (bg)
   ============================================================ */

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:.5 } 50% { transform: scale(1.12); opacity:.15 } }
@keyframes av-banner-in { from { opacity:0; transform: translateY(-100%) } to { opacity:1; transform: translateY(0) } }

/* ── TOGGLE SWITCH ─────────────────────────────────────────── */
.av-toggle-row {
  display: flex; align-items: center; gap: 12;
  cursor: pointer; user-select: none;
}
.av-toggle-switch {
  width: 46px; height: 26px; border-radius: 99px;
  background: #e2e8f0;
  position: relative; flex-shrink: 0;
  cursor: pointer;
  transition: background .2s;
  border: 2px solid transparent;
}
.av-toggle-switch.on { background: linear-gradient(135deg,#0A4EA0,#1a6fd4); }
.av-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.av-toggle-switch.on .av-toggle-thumb { transform: translateX(20px); }
.av-toggle-desc { font-size: .79rem; color: #64748b; font-weight: 500; }


/* ── PAGE ──────────────────────────────────────────────────── */
.av-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn .25s ease;
}

/* ── HERO ──────────────────────────────────────────────────── */
.av-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 55%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.av-hero::before {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
.av-hero-left { display: flex; align-items: center; gap: 1rem; }
.av-hero-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.av-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.av-hero-title { margin: 0 0 2px; font-size: 1.6rem; font-weight: 800; }
.av-hero-sub   { margin: 0; font-size: .82rem; color: rgba(255,255,255,.72); }

/* Stats */
.av-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.av-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 80px;
  text-align: center;
}
.av-stat-value { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.av-stat-label { font-size: .68rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.av-stat--blue  { background: rgba(99,179,237,.2); border-color: rgba(99,179,237,.3); }
.av-stat--green { background: rgba(72,187,120,.2); border-color: rgba(72,187,120,.3); }

/* ── TOOLBAR ───────────────────────────────────────────────── */
.av-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.av-search {
  display: flex; align-items: center; gap: 8px;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 12px;
  flex: 1; min-width: 180px;
}
.av-search i { color: #94a3b8; font-size: .8rem; }
.av-search input {
  border: none; background: transparent;
  font-size: .84rem; outline: none; color: #1e293b; width: 100%;
}
.av-filter-tabs {
  display: flex; gap: 3px;
  background: #f1f5fb;
  border-radius: 10px;
  padding: 3px;
}
.av-filter-tab {
  border: none; border-radius: 8px;
  padding: 6px 14px;
  font-size: .77rem; font-weight: 600;
  color: #64748b; background: none;
  cursor: pointer; transition: all .16s;
}
.av-filter-tab:hover  { background: #e8edf5; color: #0A4EA0; }
.av-filter-tab.active { background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; box-shadow: 0 3px 8px rgba(10,78,160,.25); }

.av-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg,#0A4EA0,#002b5e);
  color: #fff; border: none;
  border-radius: 10px; padding: 9px 18px;
  font-size: .83rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 14px rgba(10,78,160,.3);
  white-space: nowrap;
}
.av-btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.av-btn-primary:active { transform: translateY(0); }

/* ── TABLE ─────────────────────────────────────────────────── */
.av-table-wrap {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.av-table {
  width: 100%; border-collapse: collapse;
}
.av-table thead { background: linear-gradient(135deg,#f8faff,#f1f5fb); }
.av-table th {
  padding: 11px 16px;
  font-size: .71rem; font-weight: 700;
  color: #64748b; text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid #e8edf5;
  text-align: left; white-space: nowrap;
}
.av-table th i { margin-right: 5px; }
.av-table td {
  padding: 13px 16px;
  font-size: .84rem; color: #374151;
  border-bottom: 1px solid #f1f5fb;
  vertical-align: middle;
}
.av-table tbody tr:last-child td { border-bottom: none; }
.av-table tbody tr:hover td { background: #f8faff; }

/* Type badge */
.av-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 99px; padding: 4px 10px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  border: 1.5px solid transparent;
}
.av-type-badge--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.av-type-badge--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.av-type-badge--success { background: #f0fdf4; color: #14532d; border-color: #86efac; }
.av-type-badge--critico { background: #fff5f5; color: #7f1d1d; border-color: #fca5a5; }

.av-table-title { font-weight: 700; color: #0f172a; font-size: .85rem; }
.av-table-msg   { color: #64748b; font-size: .78rem; margin-top: 2px; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-table-date  { font-size: .75rem; color: #94a3b8; white-space: nowrap; }
.av-table-dest  { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: #0A4EA0; background: #eff6ff; border-radius: 8px; padding: 3px 10px; }

.av-btn-icon {
  width: 32px; height: 32px;
  border-radius: 8px; border: none;
  display: grid; place-items: center;
  font-size: .78rem; cursor: pointer;
  transition: all .16s;
}
.av-btn-icon.delete { background: #fee2e2; color: #dc2626; }
.av-btn-icon.delete:hover { background: #dc2626; color: #fff; }

/* empty / loading */
.av-loading { display: flex; align-items: center; gap: 10px; padding: 3rem; justify-content: center; color: #94a3b8; font-size: .87rem; }
.av-empty   { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 5rem 2rem; text-align: center; color: #94a3b8; }
.av-empty-icon { font-size: 2.5rem; color: #cbd5e1; }
.av-empty h5   { margin: 0; color: #475569; font-size: 1rem; font-weight: 700; }
.av-empty p    { margin: 0; font-size: .83rem; }

/* ── MODAL ─────────────────────────────────────────────────── */
.av-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}
.av-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 620px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: slideUp .22s ease;
  display: flex; flex-direction: column;
}
.av-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 2px solid #f1f5fb;
  position: sticky; top: 0;
  background: #fff; z-index: 2;
  border-radius: 20px 20px 0 0;
}
.av-modal-header h5 {
  margin: 0; font-size: 1rem; font-weight: 800;
  color: #0f172a;
  display: flex; align-items: center; gap: 8px;
}
.av-modal-header h5 i { color: #0A4EA0; }
.av-modal-close {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #f8faff;
  color: #64748b;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1rem; transition: all .15s;
}
.av-modal-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.av-modal-body   { padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.av-modal-footer {
  padding: 16px 24px 20px;
  border-top: 2px solid #f1f5fb;
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Form elements */
.av-form-group { display: flex; flex-direction: column; gap: 7px; }
.av-form-label {
  font-size: .79rem; font-weight: 700;
  color: #374151;
  display: flex; align-items: center; gap: 6px;
}
.av-form-label i { color: #0A4EA0; font-size: .75rem; }
.av-form-control {
  width: 100%; border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 10px 13px;
  font-size: .84rem; color: #0f172a;
  outline: none; font-family: inherit;
  transition: border-color .15s; box-sizing: border-box;
}
.av-form-control:focus  { border-color: #0A4EA0; box-shadow: 0 0 0 3px rgba(10,78,160,.1); }
.av-form-hint           { margin: 0; font-size: .73rem; color: #94a3b8; }

/* Tipo selector */
.av-tipo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.av-tipo-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px; background: #f8faff;
  cursor: pointer; font-size: .83rem; font-weight: 600; color: #374151;
  transition: all .16s;
}
.av-tipo-btn:hover   { border-color: #c7d9f5; background: #eff6ff; }
.av-tipo-btn.active  { border-color: currentColor; background: var(--av-tipo-bg, #eff6ff); }
.av-tipo-btn--info    { color: #1e40af; --av-tipo-bg: #eff6ff; }
.av-tipo-btn--warning { color: #92400e; --av-tipo-bg: #fffbeb; }
.av-tipo-btn--success { color: #14532d; --av-tipo-bg: #f0fdf4; }
.av-tipo-btn--critico { color: #7f1d1d; --av-tipo-bg: #fff5f5; }
.av-tipo-btn.active.av-tipo-btn--info    { border-color: #1e40af; }
.av-tipo-btn.active.av-tipo-btn--warning { border-color: #92400e; }
.av-tipo-btn.active.av-tipo-btn--success { border-color: #14532d; }
.av-tipo-btn.active.av-tipo-btn--critico { border-color: #7f1d1d; }

/* Destinatários */
.av-dest-mode { display: flex; gap: 8px; }
.av-dest-radio {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px; background: #f8faff;
  cursor: pointer; font-size: .83rem; font-weight: 600; color: #374151;
  transition: all .16s; flex: 1; justify-content: center;
}
.av-dest-radio input[type="radio"] { display: none; }
.av-dest-radio.active { border-color: #0A4EA0; background: #eff6ff; color: #0A4EA0; }

.av-user-list {
  max-height: 220px; overflow-y: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 0;
}
.av-user-search {
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #f1f5fb;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.av-user-search i { color: #94a3b8; font-size: .8rem; }
.av-user-search input { border: none; outline: none; font-size: .82rem; color: #0f172a; width: 100%; background: transparent; }

.av-user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f8faff;
  cursor: pointer; transition: background .12s;
}
.av-user-item:last-child { border-bottom: none; }
.av-user-item:hover { background: #f8faff; }
.av-user-item input[type="checkbox"] { accent-color: #0A4EA0; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.av-user-avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg,#0A4EA0,#1a6fd4);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; flex-shrink: 0;
}
.av-user-name  { font-size: .83rem; font-weight: 600; color: #0f172a; }
.av-user-email { font-size: .72rem; color: #94a3b8; }

/* Preview */
.av-preview {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .83rem; font-weight: 600; color: #1e40af;
}
.av-preview i { font-size: 1rem; }

/* Buttons */
.av-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5fb; color: #374151;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 8px 18px;
  font-size: .83rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.av-btn-secondary:hover { background: #e8edf5; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .av-page   { padding: 1rem; gap: 1rem; }
  .av-hero   { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
  .av-stats  { width: 100%; justify-content: space-between; }
  .av-toolbar { flex-direction: column; align-items: stretch; }
  .av-tipo-grid { grid-template-columns: 1fr; }
  .av-dest-mode { flex-direction: column; }
}
@media (prefers-color-scheme: dark) {
  .wmde-markdown,
  .wmde-markdown-var {
    color-scheme: dark;
    --color-prettylights-syntax-comment: #8b949e;
    --color-prettylights-syntax-constant: #79c0ff;
    --color-prettylights-syntax-entity: #d2a8ff;
    --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
    --color-prettylights-syntax-entity-tag: #7ee787;
    --color-prettylights-syntax-keyword: #ff7b72;
    --color-prettylights-syntax-string: #a5d6ff;
    --color-prettylights-syntax-variable: #ffa657;
    --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
    --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
    --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
    --color-prettylights-syntax-carriage-return-text: #f0f6fc;
    --color-prettylights-syntax-carriage-return-bg: #b62324;
    --color-prettylights-syntax-string-regexp: #7ee787;
    --color-prettylights-syntax-markup-list: #f2cc60;
    --color-prettylights-syntax-markup-heading: #1f6feb;
    --color-prettylights-syntax-markup-italic: #c9d1d9;
    --color-prettylights-syntax-markup-bold: #c9d1d9;
    --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
    --color-prettylights-syntax-markup-deleted-bg: #67060c;
    --color-prettylights-syntax-markup-inserted-text: #aff5b4;
    --color-prettylights-syntax-markup-inserted-bg: #033a16;
    --color-prettylights-syntax-markup-changed-text: #ffdfb6;
    --color-prettylights-syntax-markup-changed-bg: #5a1e02;
    --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
    --color-prettylights-syntax-markup-ignored-bg: #1158c7;
    --color-prettylights-syntax-meta-diff-range: #d2a8ff;
    --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
    --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
    --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
    --color-fg-default: #c9d1d9;
    --color-fg-muted: #8b949e;
    --color-fg-subtle: #484f58;
    --color-canvas-default: #0d1117;
    --color-canvas-subtle: #161b22;
    --color-border-default: #30363d;
    --color-border-muted: #21262d;
    --color-neutral-muted: rgba(110, 118, 129, 0.4);
    --color-accent-fg: #58a6ff;
    --color-accent-emphasis: #1f6feb;
    --color-attention-subtle: rgba(187, 128, 9, 0.15);
    --color-danger-fg: #f85149;
    --color-danger-emphasis: #da3633;
    --color-attention-fg: #d29922;
    --color-attention-emphasis: #9e6a03;
    --color-done-fg: #a371f7;
    --color-done-emphasis: #8957e5;
    --color-success-fg: #3fb950;
    --color-success-emphasis: #238636;
    --color-copied-active-bg: #2e9b33;
  }
}
@media (prefers-color-scheme: light) {
  .wmde-markdown,
  .wmde-markdown-var {
    color-scheme: light;
    --color-prettylights-syntax-comment: #6e7781;
    --color-prettylights-syntax-constant: #0550ae;
    --color-prettylights-syntax-entity: #8250df;
    --color-prettylights-syntax-storage-modifier-import: #24292f;
    --color-prettylights-syntax-entity-tag: #116329;
    --color-prettylights-syntax-keyword: #cf222e;
    --color-prettylights-syntax-string: #0a3069;
    --color-prettylights-syntax-variable: #953800;
    --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
    --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
    --color-prettylights-syntax-invalid-illegal-bg: #82071e;
    --color-prettylights-syntax-carriage-return-text: #f6f8fa;
    --color-prettylights-syntax-carriage-return-bg: #cf222e;
    --color-prettylights-syntax-string-regexp: #116329;
    --color-prettylights-syntax-markup-list: #3b2300;
    --color-prettylights-syntax-markup-heading: #0550ae;
    --color-prettylights-syntax-markup-italic: #24292f;
    --color-prettylights-syntax-markup-bold: #24292f;
    --color-prettylights-syntax-markup-deleted-text: #82071e;
    --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
    --color-prettylights-syntax-markup-inserted-text: #116329;
    --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
    --color-prettylights-syntax-markup-changed-text: #953800;
    --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
    --color-prettylights-syntax-markup-ignored-text: #eaeef2;
    --color-prettylights-syntax-markup-ignored-bg: #0550ae;
    --color-prettylights-syntax-meta-diff-range: #8250df;
    --color-prettylights-syntax-brackethighlighter-angle: #57606a;
    --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
    --color-prettylights-syntax-constant-other-reference-link: #0a3069;
    --color-fg-default: #24292f;
    --color-fg-muted: #57606a;
    --color-fg-subtle: #6e7781;
    --color-canvas-default: #ffffff;
    --color-canvas-subtle: #f6f8fa;
    --color-border-default: #d0d7de;
    --color-border-muted: hsl(210, 18%, 87%);
    --color-neutral-muted: rgba(175, 184, 193, 0.2);
    --color-accent-fg: #0969da;
    --color-accent-emphasis: #0969da;
    --color-attention-subtle: #fff8c5;
    --color-danger-fg: #d1242f;
    --color-danger-emphasis: #cf222e;
    --color-attention-fg: #9a6700;
    --color-attention-emphasis: #9a6700;
    --color-done-fg: #8250df;
    --color-done-emphasis: #8250df;
    --color-success-fg: #1a7f37;
    --color-success-emphasis: #1f883d;
    --color-copied-active-bg: #2e9b33;
  }
}
[data-color-mode*='dark'] .wmde-markdown,
[data-color-mode*='dark'] .wmde-markdown-var,
.wmde-markdown-var[data-color-mode*='dark'],
.wmde-markdown[data-color-mode*='dark'],
body[data-color-mode*='dark'] {
  color-scheme: dark;
  --color-prettylights-syntax-comment: #8b949e;
  --color-prettylights-syntax-constant: #79c0ff;
  --color-prettylights-syntax-entity: #d2a8ff;
  --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
  --color-prettylights-syntax-entity-tag: #7ee787;
  --color-prettylights-syntax-keyword: #ff7b72;
  --color-prettylights-syntax-string: #a5d6ff;
  --color-prettylights-syntax-variable: #ffa657;
  --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
  --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
  --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
  --color-prettylights-syntax-carriage-return-text: #f0f6fc;
  --color-prettylights-syntax-carriage-return-bg: #b62324;
  --color-prettylights-syntax-string-regexp: #7ee787;
  --color-prettylights-syntax-markup-list: #f2cc60;
  --color-prettylights-syntax-markup-heading: #1f6feb;
  --color-prettylights-syntax-markup-italic: #c9d1d9;
  --color-prettylights-syntax-markup-bold: #c9d1d9;
  --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
  --color-prettylights-syntax-markup-deleted-bg: #67060c;
  --color-prettylights-syntax-markup-inserted-text: #aff5b4;
  --color-prettylights-syntax-markup-inserted-bg: #033a16;
  --color-prettylights-syntax-markup-changed-text: #ffdfb6;
  --color-prettylights-syntax-markup-changed-bg: #5a1e02;
  --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
  --color-prettylights-syntax-markup-ignored-bg: #1158c7;
  --color-prettylights-syntax-meta-diff-range: #d2a8ff;
  --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
  --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
  --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
  --color-fg-default: #c9d1d9;
  --color-fg-muted: #8b949e;
  --color-fg-subtle: #484f58;
  --color-canvas-default: #0d1117;
  --color-canvas-subtle: #161b22;
  --color-border-default: #30363d;
  --color-border-muted: #21262d;
  --color-neutral-muted: rgba(110, 118, 129, 0.4);
  --color-accent-fg: #58a6ff;
  --color-accent-emphasis: #1f6feb;
  --color-attention-subtle: rgba(187, 128, 9, 0.15);
  --color-danger-fg: #f85149;
}
[data-color-mode*='light'] .wmde-markdown,
[data-color-mode*='light'] .wmde-markdown-var,
.wmde-markdown-var[data-color-mode*='light'],
.wmde-markdown[data-color-mode*='light'],
body[data-color-mode*='light'] {
  color-scheme: light;
  --color-prettylights-syntax-comment: #6e7781;
  --color-prettylights-syntax-constant: #0550ae;
  --color-prettylights-syntax-entity: #8250df;
  --color-prettylights-syntax-storage-modifier-import: #24292f;
  --color-prettylights-syntax-entity-tag: #116329;
  --color-prettylights-syntax-keyword: #cf222e;
  --color-prettylights-syntax-string: #0a3069;
  --color-prettylights-syntax-variable: #953800;
  --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
  --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
  --color-prettylights-syntax-invalid-illegal-bg: #82071e;
  --color-prettylights-syntax-carriage-return-text: #f6f8fa;
  --color-prettylights-syntax-carriage-return-bg: #cf222e;
  --color-prettylights-syntax-string-regexp: #116329;
  --color-prettylights-syntax-markup-list: #3b2300;
  --color-prettylights-syntax-markup-heading: #0550ae;
  --color-prettylights-syntax-markup-italic: #24292f;
  --color-prettylights-syntax-markup-bold: #24292f;
  --color-prettylights-syntax-markup-deleted-text: #82071e;
  --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
  --color-prettylights-syntax-markup-inserted-text: #116329;
  --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
  --color-prettylights-syntax-markup-changed-text: #953800;
  --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
  --color-prettylights-syntax-markup-ignored-text: #eaeef2;
  --color-prettylights-syntax-markup-ignored-bg: #0550ae;
  --color-prettylights-syntax-meta-diff-range: #8250df;
  --color-prettylights-syntax-brackethighlighter-angle: #57606a;
  --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
  --color-prettylights-syntax-constant-other-reference-link: #0a3069;
  --color-fg-default: #24292f;
  --color-fg-muted: #57606a;
  --color-fg-subtle: #6e7781;
  --color-canvas-default: #ffffff;
  --color-canvas-subtle: #f6f8fa;
  --color-border-default: #d0d7de;
  --color-border-muted: hsl(210, 18%, 87%);
  --color-neutral-muted: rgba(175, 184, 193, 0.2);
  --color-accent-fg: #0969da;
  --color-accent-emphasis: #0969da;
  --color-attention-subtle: #fff8c5;
  --color-danger-fg: #cf222e;
}
.wmde-markdown {
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  color: var(--color-fg-default);
  background-color: var(--color-canvas-default);
}
.wmde-markdown details,
.wmde-markdown figcaption,
.wmde-markdown figure {
  display: block;
}
.wmde-markdown summary {
  display: list-item;
}
.wmde-markdown [hidden] {
  display: none !important;
}
.wmde-markdown a {
  background-color: transparent;
  color: var(--color-accent-fg);
  text-decoration: none;
}
.wmde-markdown a:active,
.wmde-markdown a:hover {
  outline-width: 0;
}
.wmde-markdown abbr[title] {
  border-bottom: none;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
.wmde-markdown b,
.wmde-markdown strong {
  font-weight: 600;
}
.wmde-markdown dfn {
  font-style: italic;
}
.wmde-markdown h1 {
  margin: 0.67em 0;
  font-weight: 600;
  padding-bottom: 0.3em;
  font-size: 2em;
  border-bottom: 1px solid var(--color-border-muted);
}
.wmde-markdown mark {
  background-color: var(--color-attention-subtle);
  color: var(--color-text-primary);
}
.wmde-markdown small {
  font-size: 90%;
}
.wmde-markdown sub,
.wmde-markdown sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
.wmde-markdown sub {
  bottom: -0.25em;
}
.wmde-markdown sup {
  top: -0.5em;
}
.wmde-markdown img {
  display: inline-block;
  border-style: none;
  max-width: 100%;
  box-sizing: content-box;
  background-color: var(--color-canvas-default);
}
.wmde-markdown code,
.wmde-markdown kbd,
.wmde-markdown pre,
.wmde-markdown samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
.wmde-markdown figure {
  margin: 1em 40px;
}
.wmde-markdown hr {
  box-sizing: content-box;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-border-muted);
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: var(--color-border-default);
}
.wmde-markdown input {
  font: inherit;
  margin: 0;
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.wmde-markdown [type='button'],
.wmde-markdown [type='reset'],
.wmde-markdown [type='submit'] {
  -webkit-appearance: button;
}
.wmde-markdown [type='button']::-moz-focus-inner,
.wmde-markdown [type='reset']::-moz-focus-inner,
.wmde-markdown [type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
.wmde-markdown [type='button']:-moz-focusring,
.wmde-markdown [type='reset']:-moz-focusring,
.wmde-markdown [type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}
.wmde-markdown [type='checkbox'],
.wmde-markdown [type='radio'] {
  box-sizing: border-box;
  padding: 0;
}
.wmde-markdown [type='number']::-webkit-inner-spin-button,
.wmde-markdown [type='number']::-webkit-outer-spin-button {
  height: auto;
}
.wmde-markdown [type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
.wmde-markdown [type='search']::-webkit-search-cancel-button,
.wmde-markdown [type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
.wmde-markdown ::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}
.wmde-markdown ::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
.wmde-markdown a:hover {
  text-decoration: underline;
}
.wmde-markdown hr::before {
  display: table;
  content: '';
}
.wmde-markdown hr::after {
  display: table;
  clear: both;
  content: '';
}
.wmde-markdown table {
  border-spacing: 0;
  border-collapse: collapse;
  display: block;
  width: max-content;
  max-width: 100%;
}
.wmde-markdown td,
.wmde-markdown th {
  padding: 0;
}
.wmde-markdown details summary {
  cursor: pointer;
}
.wmde-markdown details:not([open]) > *:not(summary) {
  display: none !important;
}
.wmde-markdown kbd {
  display: inline-block;
  padding: 3px 5px;
  font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  line-height: 10px;
  color: var(--color-fg-default);
  vertical-align: middle;
  background-color: var(--color-canvas-subtle);
  border: solid 1px var(--color-neutral-muted);
  border-bottom-color: var(--color-neutral-muted);
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
}
.wmde-markdown h1,
.wmde-markdown h2,
.wmde-markdown h3,
.wmde-markdown h4,
.wmde-markdown h5,
.wmde-markdown h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.wmde-markdown td,
.wmde-markdown th {
  padding: 0;
}
.wmde-markdown details summary {
  cursor: pointer;
}
.wmde-markdown details:not([open]) > *:not(summary) {
  display: none !important;
}
.wmde-markdown kbd {
  display: inline-block;
  padding: 3px 5px;
  font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  line-height: 10px;
  color: var(--color-fg-default);
  vertical-align: middle;
  background-color: var(--color-canvas-subtle);
  border: solid 1px var(--color-neutral-muted);
  border-bottom-color: var(--color-neutral-muted);
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
}
.wmde-markdown h1,
.wmde-markdown h2,
.wmde-markdown h3,
.wmde-markdown h4,
.wmde-markdown h5,
.wmde-markdown h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.wmde-markdown h2 {
  font-weight: 600;
  padding-bottom: 0.3em;
  font-size: 1.5em;
  border-bottom: 1px solid var(--color-border-muted);
}
.wmde-markdown h3 {
  font-weight: 600;
  font-size: 1.25em;
}
.wmde-markdown h4 {
  font-weight: 600;
  font-size: 1em;
}
.wmde-markdown h5 {
  font-weight: 600;
  font-size: 0.875em;
}
.wmde-markdown h6 {
  font-weight: 600;
  font-size: 0.85em;
  color: var(--color-fg-muted);
}
.wmde-markdown p {
  margin-top: 0;
  margin-bottom: 10px;
}
.wmde-markdown blockquote {
  margin: 0;
  padding: 0 1em;
  color: var(--color-fg-muted);
  border-left: 0.25em solid var(--color-border-default);
}
.wmde-markdown ul,
.wmde-markdown ol {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 2em;
}
.wmde-markdown ol ol,
.wmde-markdown ul ol {
  list-style-type: lower-roman;
}
.wmde-markdown ul ul ol,
.wmde-markdown ul ol ol,
.wmde-markdown ol ul ol,
.wmde-markdown ol ol ol {
  list-style-type: lower-alpha;
}
.wmde-markdown dd {
  margin-left: 0;
}
.wmde-markdown tt,
.wmde-markdown code {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 12px;
}
.wmde-markdown pre {
  margin-top: 0;
  margin-bottom: 0;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 12px;
  word-wrap: normal;
}
.wmde-markdown .octicon {
  display: inline-block;
  overflow: visible !important;
  vertical-align: text-bottom;
  fill: currentColor;
}
.wmde-markdown ::placeholder {
  color: var(--color-fg-subtle);
  opacity: 1;
}
.wmde-markdown input::-webkit-outer-spin-button,
.wmde-markdown input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}
.wmde-markdown [data-catalyst] {
  display: block;
}
.wmde-markdown::before {
  display: table;
  content: '';
}
.wmde-markdown::after {
  display: table;
  clear: both;
  content: '';
}
.wmde-markdown > *:first-child {
  margin-top: 0 !important;
}
.wmde-markdown > *:last-child {
  margin-bottom: 0 !important;
}
.wmde-markdown a:not([href]) {
  color: inherit;
  text-decoration: none;
}
.wmde-markdown .absent {
  color: var(--color-danger-fg);
}
.wmde-markdown a.anchor {
  float: left;
  padding-right: 4px;
  margin-left: -20px;
  line-height: 1;
}
.wmde-markdown .anchor:focus {
  outline: none;
}
.wmde-markdown p,
.wmde-markdown blockquote,
.wmde-markdown ul,
.wmde-markdown ol,
.wmde-markdown dl,
.wmde-markdown table,
.wmde-markdown pre,
.wmde-markdown details {
  margin-top: 0;
  margin-bottom: 16px;
}
.wmde-markdown blockquote > :first-child {
  margin-top: 0;
}
.wmde-markdown blockquote > :last-child {
  margin-bottom: 0;
}
.wmde-markdown sup > a::before {
  content: '[';
}
.wmde-markdown sup > a::after {
  content: ']';
}
.wmde-markdown h1 .octicon-link,
.wmde-markdown h2 .octicon-link,
.wmde-markdown h3 .octicon-link,
.wmde-markdown h4 .octicon-link,
.wmde-markdown h5 .octicon-link,
.wmde-markdown h6 .octicon-link {
  color: var(--color-fg-default);
  vertical-align: middle;
  visibility: hidden;
}
.wmde-markdown h1:hover .anchor,
.wmde-markdown h2:hover .anchor,
.wmde-markdown h3:hover .anchor,
.wmde-markdown h4:hover .anchor,
.wmde-markdown h5:hover .anchor,
.wmde-markdown h6:hover .anchor {
  text-decoration: none;
}
.wmde-markdown h1:hover .anchor .octicon-link,
.wmde-markdown h2:hover .anchor .octicon-link,
.wmde-markdown h3:hover .anchor .octicon-link,
.wmde-markdown h4:hover .anchor .octicon-link,
.wmde-markdown h5:hover .anchor .octicon-link,
.wmde-markdown h6:hover .anchor .octicon-link {
  visibility: visible;
}
.wmde-markdown h1 tt,
.wmde-markdown h1 code,
.wmde-markdown h2 tt,
.wmde-markdown h2 code,
.wmde-markdown h3 tt,
.wmde-markdown h3 code,
.wmde-markdown h4 tt,
.wmde-markdown h4 code,
.wmde-markdown h5 tt,
.wmde-markdown h5 code,
.wmde-markdown h6 tt,
.wmde-markdown h6 code {
  padding: 0 0.2em;
  font-size: inherit;
}
.wmde-markdown ul.no-list,
.wmde-markdown ol.no-list {
  padding: 0;
  list-style-type: none;
}
.wmde-markdown ol[type='1'] {
  list-style-type: decimal;
}
.wmde-markdown ol[type='a'] {
  list-style-type: lower-alpha;
}
.wmde-markdown ol[type='i'] {
  list-style-type: lower-roman;
}
.wmde-markdown div > ol:not([type]) {
  list-style-type: decimal;
}
.wmde-markdown ul ul,
.wmde-markdown ul ol,
.wmde-markdown ol ol,
.wmde-markdown ol ul {
  margin-top: 0;
  margin-bottom: 0;
}
.wmde-markdown li > p {
  margin-top: 16px;
}
.wmde-markdown li + li {
  margin-top: 0.25em;
}
.wmde-markdown dl {
  padding: 0;
}
.wmde-markdown dl dt {
  padding: 0;
  margin-top: 16px;
  font-size: 1em;
  font-style: italic;
  font-weight: 600;
}
.wmde-markdown dl dd {
  padding: 0 16px;
  margin-bottom: 16px;
}
.wmde-markdown table th {
  font-weight: 600;
}
.wmde-markdown table th,
.wmde-markdown table td {
  padding: 6px 13px;
  border: 1px solid var(--color-border-default);
}
.wmde-markdown table tr {
  background-color: var(--color-canvas-default);
  border-top: 1px solid var(--color-border-muted);
}
.wmde-markdown table tr:nth-child(2n) {
  background-color: var(--color-canvas-subtle);
}
.wmde-markdown table img {
  background-color: transparent;
}
.wmde-markdown img[align='right'] {
  padding-left: 20px;
}
.wmde-markdown img[align='left'] {
  padding-right: 20px;
}
.wmde-markdown .emoji {
  max-width: none;
  vertical-align: text-top;
  background-color: transparent;
}
.wmde-markdown span.frame {
  display: block;
  overflow: hidden;
}
.wmde-markdown span.frame > span {
  display: block;
  float: left;
  width: auto;
  padding: 7px;
  margin: 13px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border-default);
}
.wmde-markdown span.frame span img {
  display: block;
  float: left;
}
.wmde-markdown span.frame span span {
  display: block;
  padding: 5px 0 0;
  clear: both;
  color: var(--color-fg-default);
}
.wmde-markdown span.align-center {
  display: block;
  overflow: hidden;
  clear: both;
}
.wmde-markdown span.align-center > span {
  display: block;
  margin: 13px auto 0;
  overflow: hidden;
  text-align: center;
}
.wmde-markdown span.align-center span img {
  margin: 0 auto;
  text-align: center;
}
.wmde-markdown span.align-right {
  display: block;
  overflow: hidden;
  clear: both;
}
.wmde-markdown span.align-right > span {
  display: block;
  margin: 13px 0 0;
  overflow: hidden;
  text-align: right;
}
.wmde-markdown span.align-right span img {
  margin: 0;
  text-align: right;
}
.wmde-markdown span.float-left {
  display: block;
  float: left;
  margin-right: 13px;
  overflow: hidden;
}
.wmde-markdown span.float-left span {
  margin: 13px 0 0;
}
.wmde-markdown span.float-right {
  display: block;
  float: right;
  margin-left: 13px;
  overflow: hidden;
}
.wmde-markdown span.float-right > span {
  display: block;
  margin: 13px auto 0;
  overflow: hidden;
  text-align: right;
}
.wmde-markdown code,
.wmde-markdown tt {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: var(--color-neutral-muted);
  border-radius: 6px;
}
.wmde-markdown code br,
.wmde-markdown tt br {
  display: none;
}
.wmde-markdown del code {
  text-decoration: inherit;
}
.wmde-markdown pre code {
  font-size: 100%;
}
.wmde-markdown pre > code {
  padding: 0;
  margin: 0;
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}
.wmde-markdown pre {
  font-size: 85%;
  line-height: 1.45;
  background-color: var(--color-canvas-subtle);
  border-radius: 6px;
}
.wmde-markdown pre code,
.wmde-markdown pre tt {
  display: inline;
  max-width: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  line-height: inherit;
  word-wrap: normal;
  background-color: transparent;
  border: 0;
}
.wmde-markdown pre > code {
  padding: 16px;
  overflow: auto;
  display: block;
}
.wmde-markdown pre > code::-webkit-scrollbar {
  background: transparent;
  width: 8px;
  height: 8px;
}
.wmde-markdown pre > code::-webkit-scrollbar-thumb {
  background: var(--color-fg-muted);
  border-radius: 10px;
}
.wmde-markdown .csv-data td,
.wmde-markdown .csv-data th {
  padding: 5px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}
.wmde-markdown .csv-data .blob-num {
  padding: 10px 8px 9px;
  text-align: right;
  background: var(--color-canvas-default);
  border: 0;
}
.wmde-markdown .csv-data tr {
  border-top: 0;
}
.wmde-markdown .csv-data th {
  font-weight: 600;
  background: var(--color-canvas-subtle);
  border-top: 0;
}
.wmde-markdown .footnotes {
  font-size: 12px;
  color: var(--color-fg-muted);
  border-top: 1px solid var(--color-border-default);
}
.wmde-markdown .footnotes ol {
  padding-left: 16px;
}
.wmde-markdown .footnotes li {
  position: relative;
}
.wmde-markdown .footnotes li:target::before {
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -24px;
  pointer-events: none;
  content: '';
  border: 2px solid var(--color-accent-emphasis);
  border-radius: 6px;
}
.wmde-markdown .footnotes li:target {
  color: var(--color-fg-default);
}
.wmde-markdown .footnotes .data-footnote-backref g-emoji {
  font-family: monospace;
}
.wmde-markdown .task-list-item {
  list-style-type: none;
}
.wmde-markdown .task-list-item label {
  font-weight: 400;
}
.wmde-markdown .task-list-item.enabled label {
  cursor: pointer;
}
.wmde-markdown .task-list-item + .wmde-markdown .task-list-item {
  margin-top: 3px;
}
.wmde-markdown .task-list-item .handle {
  display: none;
}
.wmde-markdown .task-list-item-checkbox,
.wmde-markdown .contains-task-list input[type='checkbox'] {
  margin: 0 0.2em 0.25em -1.6em;
  vertical-align: middle;
}
.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,
.wmde-markdown .contains-task-list:dir(rtl) input[type='checkbox'] {
  margin: 0 -1.6em 0.25em 0.2em;
}
.wmde-markdown ::-webkit-calendar-picker-indicator {
  filter: invert(50%);
}
.wmde-markdown pre {
  position: relative;
}
.wmde-markdown pre .copied {
  visibility: hidden;
  display: flex;
  position: absolute;
  cursor: pointer;
  color: var(--color-fg-default);
  top: 6px;
  right: 6px;
  border-radius: 5px;
  background: var(--color-border-default);
  padding: 6px;
  font-size: 12px;
  transition: all 0.3s;
}
.wmde-markdown pre .copied .octicon-copy {
  display: block;
}
.wmde-markdown pre .copied .octicon-check {
  display: none;
}
.wmde-markdown pre:hover .copied {
  visibility: visible;
}
.wmde-markdown pre:hover .copied:hover {
  background: var(--color-prettylights-syntax-entity-tag);
  color: var(--color-canvas-default);
}
.wmde-markdown pre:hover .copied:active,
.wmde-markdown pre .copied.active {
  background: var(--color-copied-active-bg);
  color: var(--color-canvas-default);
}
.wmde-markdown pre .active .octicon-copy {
  display: none;
}
.wmde-markdown pre .active .octicon-check {
  display: block;
}
.wmde-markdown .markdown-alert {
  padding: 0.5rem 1em;
  color: inherit;
  margin-bottom: 16px;
  border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
}
.wmde-markdown .markdown-alert > :last-child {
  margin-bottom: 0 !important;
}
.wmde-markdown .markdown-alert .markdown-alert-title {
  display: flex;
  align-items: center;
  line-height: 1;
  font-weight: 500;
  font-size: 14px;
}
.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon {
  margin-right: var(--base-size-8, 8px) !important;
}
.wmde-markdown .markdown-alert.markdown-alert-note {
  border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
}
.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title {
  color: var(--fgColor-accent, var(--color-accent-fg));
}
.wmde-markdown .markdown-alert.markdown-alert-tip {
  border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));
}
.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title {
  color: var(--fgColor-success, var(--color-success-fg));
}
.wmde-markdown .markdown-alert.markdown-alert-important {
  border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));
}
.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title {
  color: var(--fgColor-done, var(--color-done-fg));
}
.wmde-markdown .markdown-alert.markdown-alert-warning {
  border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
}
.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title {
  color: var(--fgColor-attention, var(--color-attention-fg));
}
.wmde-markdown .markdown-alert.markdown-alert-caution {
  border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
}
.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title {
  color: var(--fgColor-danger, var(--color-danger-fg));
}
.wmde-markdown .highlight-line {
  background-color: var(--color-neutral-muted);
}
.wmde-markdown .code-line.line-number::before {
  display: inline-block;
  width: 1rem;
  text-align: right;
  margin-right: 16px;
  color: var(--color-fg-subtle);
  content: attr(line);
  white-space: nowrap;
}
.wmde-markdown .token.comment,
.wmde-markdown .token.prolog,
.wmde-markdown .token.doctype,
.wmde-markdown .token.cdata {
  color: var(--color-prettylights-syntax-comment);
}
.wmde-markdown .token.namespace {
  opacity: 0.7;
}
.wmde-markdown .token.property,
.wmde-markdown .token.tag,
.wmde-markdown .token.selector,
.wmde-markdown .token.constant,
.wmde-markdown .token.symbol,
.wmde-markdown .token.deleted {
  color: var(--color-prettylights-syntax-entity-tag);
}
.wmde-markdown .token.maybe-class-name {
  color: var(--color-prettylights-syntax-variable);
}
.wmde-markdown .token.property-access,
.wmde-markdown .token.operator,
.wmde-markdown .token.boolean,
.wmde-markdown .token.number,
.wmde-markdown .token.selector .token.class,
.wmde-markdown .token.attr-name,
.wmde-markdown .token.string,
.wmde-markdown .token.char,
.wmde-markdown .token.builtin {
  color: var(--color-prettylights-syntax-constant);
}
.wmde-markdown .token.deleted {
  color: var(--color-prettylights-syntax-markup-deleted-text);
}
.wmde-markdown .code-line .token.deleted {
  background-color: var(--color-prettylights-syntax-markup-deleted-bg);
}
.wmde-markdown .token.inserted {
  color: var(--color-prettylights-syntax-markup-inserted-text);
}
.wmde-markdown .code-line .token.inserted {
  background-color: var(--color-prettylights-syntax-markup-inserted-bg);
}
.wmde-markdown .token.variable {
  color: var(--color-prettylights-syntax-constant);
}
.wmde-markdown .token.entity,
.wmde-markdown .token.url,
.wmde-markdown .language-css .token.string,
.wmde-markdown .style .token.string {
  color: var(--color-prettylights-syntax-string);
}
.wmde-markdown .token.color,
.wmde-markdown .token.atrule,
.wmde-markdown .token.attr-value,
.wmde-markdown .token.function,
.wmde-markdown .token.class-name {
  color: var(--color-prettylights-syntax-string);
}
.wmde-markdown .token.rule,
.wmde-markdown .token.regex,
.wmde-markdown .token.important,
.wmde-markdown .token.keyword {
  color: var(--color-prettylights-syntax-keyword);
}
.wmde-markdown .token.coord {
  color: var(--color-prettylights-syntax-meta-diff-range);
}
.wmde-markdown .token.important,
.wmde-markdown .token.bold {
  font-weight: bold;
}
.wmde-markdown .token.italic {
  font-style: italic;
}
.wmde-markdown .token.entity {
  cursor: help;
}
.w-md-editor-toolbar-child {
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--md-editor-box-shadow-color), 0 0 0 var(--md-editor-box-shadow-color), 0 1px 1px var(--md-editor-box-shadow-color);
  background-color: var(--md-editor-background-color);
  z-index: 1;
  display: none;
}
.w-md-editor-toolbar-child.active {
  display: block;
}
.w-md-editor-toolbar-child .w-md-editor-toolbar {
  border-bottom: 0;
  padding: 3px;
  border-radius: 3px;
}
.w-md-editor-toolbar-child .w-md-editor-toolbar ul > li {
  display: block;
}
.w-md-editor-toolbar-child .w-md-editor-toolbar ul > li button {
  width: -webkit-fill-available;
  height: initial;
  box-sizing: border-box;
  padding: 3px 4px 2px 4px;
  margin: 0;
}
.w-md-editor-toolbar {
  border-bottom: 1px solid var(--md-editor-box-shadow-color);
  background-color: var(--md-editor-background-color);
  padding: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 3px 3px 0 0;
  -webkit-user-select: none;
          user-select: none;
  flex-wrap: wrap;
}
.w-md-editor-toolbar.bottom {
  border-bottom: 0px;
  border-top: 1px solid var(--md-editor-box-shadow-color);
  border-radius: 0 0 3px 3px;
}
.w-md-editor-toolbar ul,
.w-md-editor-toolbar li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: initial;
}
.w-md-editor-toolbar li {
  display: inline-block;
  font-size: 14px;
}
.w-md-editor-toolbar li + li {
  margin: 0;
}
.w-md-editor-toolbar li > button {
  border: none;
  height: 20px;
  line-height: 14px;
  background: none;
  padding: 4px;
  margin: 0 1px;
  border-radius: 2px;
  text-transform: none;
  font-weight: normal;
  overflow: visible;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  color: var(--color-fg-default);
}
.w-md-editor-toolbar li > button:hover,
.w-md-editor-toolbar li > button:focus {
  background-color: var(--color-neutral-muted);
  color: var(--color-accent-fg);
}
.w-md-editor-toolbar li > button:active {
  background-color: var(--color-neutral-muted);
  color: var(--color-danger-fg);
}
.w-md-editor-toolbar li > button:disabled {
  color: var(--md-editor-box-shadow-color);
  cursor: not-allowed;
}
.w-md-editor-toolbar li > button:disabled:hover {
  background-color: transparent;
  color: var(--md-editor-box-shadow-color);
}
.w-md-editor-toolbar li.active > button {
  color: var(--color-accent-fg);
  background-color: var(--color-neutral-muted);
}
.w-md-editor-toolbar-divider {
  height: 14px;
  width: 1px;
  margin: -3px 3px 0 3px !important;
  vertical-align: middle;
  background-color: var(--md-editor-box-shadow-color);
}
.w-md-editor-area {
  overflow: auto;
  border-radius: 5px;
}
.w-md-editor-text {
  min-height: 100%;
  position: relative;
  text-align: left;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
  padding: 10px;
  margin: 0;
  font-size: 14px !important;
  line-height: 18px !important;
  font-variant-ligatures: common-ligatures;
}
.w-md-editor-text-pre,
.w-md-editor-text-input,
.w-md-editor-text > .w-md-editor-text-pre {
  margin: 0;
  border: 0;
  background: none;
  box-sizing: inherit;
  display: inherit;
  font-family: inherit;
  font-family: var(--md-editor-font-family) !important;
  font-size: inherit;
  font-style: inherit;
  font-variant-ligatures: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  tab-size: inherit;
  text-indent: inherit;
  text-rendering: inherit;
  text-transform: inherit;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
  word-break: normal;
  padding: 0;
}
.w-md-editor-text-pre {
  position: relative;
  margin: 0px !important;
  pointer-events: none;
  background-color: transparent !important;
}
.w-md-editor-text-pre > code {
  padding: 0 !important;
  font-family: var(--md-editor-font-family) !important;
  font-size: 14px !important;
  line-height: 18px !important;
}
.w-md-editor-text-input {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  resize: none;
  color: inherit;
  overflow: hidden;
  outline: 0;
  padding: inherit;
  -webkit-font-smoothing: antialiased;
  -webkit-text-fill-color: transparent;
}
.w-md-editor-text-input:empty {
  -webkit-text-fill-color: inherit !important;
}
.w-md-editor-text-pre,
.w-md-editor-text-input {
  word-wrap: pre;
  word-break: break-word;
  white-space: pre-wrap;
}
/**
 * Hack to apply on some CSS on IE10 and IE11
 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /**
    * IE doesn't support '-webkit-text-fill-color'
    * So we use 'color: transparent' to make the text transparent on IE
    * Unlike other browsers, it doesn't affect caret color in IE
    */
  .w-md-editor-text-input {
    color: transparent !important;
  }
  .w-md-editor-text-input::selection {
    background-color: #accef7 !important;
    color: transparent !important;
  }
}
.w-md-editor-text-pre .punctuation {
  color: var(--color-prettylights-syntax-comment, #8b949e) !important;
}
.w-md-editor-text-pre .token.url,
.w-md-editor-text-pre .token.content {
  color: var(--color-prettylights-syntax-constant, #0550ae) !important;
}
.w-md-editor-text-pre .token.title.important {
  color: var(--color-prettylights-syntax-markup-bold, #24292f);
}
.w-md-editor-text-pre .token.code-block .function {
  color: var(--color-prettylights-syntax-entity, #8250df);
}
.w-md-editor-text-pre .token.bold {
  font-weight: unset !important;
}
.w-md-editor-text-pre .token.title {
  line-height: unset !important;
  font-size: unset !important;
  font-weight: unset !important;
}
.w-md-editor-text-pre .token.code.keyword {
  color: var(--color-prettylights-syntax-constant, #0550ae) !important;
}
.w-md-editor-text-pre .token.strike,
.w-md-editor-text-pre .token.strike .content {
  color: var(--color-prettylights-syntax-markup-deleted-text, #82071e) !important;
}
.w-md-editor-bar {
  position: absolute;
  cursor: s-resize;
  right: 0;
  bottom: 0;
  margin-top: -11px;
  margin-right: 0;
  width: 14px;
  z-index: 3;
  height: 10px;
  border-radius: 0 0 3px 0;
  -webkit-user-select: none;
          user-select: none;
}
.w-md-editor-bar svg {
  display: block;
  margin: 0 auto;
}
.w-md-editor {
  text-align: left;
  border-radius: 3px;
  padding-bottom: 1px;
  position: relative;
  color: var(--color-fg-default);
  --md-editor-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --md-editor-background-color: var(--color-canvas-default, #ffffff);
  --md-editor-box-shadow-color: var(--color-border-default, #d0d7de);
  box-shadow: 0 0 0 1px var(--md-editor-box-shadow-color), 0 0 0 var(--md-editor-box-shadow-color), 0 1px 1px var(--md-editor-box-shadow-color);
  background-color: var(--md-editor-background-color);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}
.w-md-editor.w-md-editor-rtl {
  direction: rtl !important;
  text-align: right !important;
}
.w-md-editor.w-md-editor-rtl .w-md-editor-preview {
  right: unset !important;
  left: 0;
  text-align: right !important;
  box-shadow: inset -1px 0 0 0 var(--md-editor-box-shadow-color);
}
.w-md-editor.w-md-editor-rtl .w-md-editor-text {
  text-align: right !important;
}
.w-md-editor-toolbar {
  height: -webkit-fit-content;
  height: fit-content;
}
.w-md-editor-content {
  height: 100%;
  overflow: auto;
  position: relative;
  border-radius: 0 0 3px 0;
}
.w-md-editor .copied {
  display: none !important;
}
.w-md-editor-input {
  width: 50%;
  height: 100%;
}
.w-md-editor-text-pre > code {
  word-break: break-word !important;
  white-space: pre-wrap !important;
}
.w-md-editor-preview {
  width: 50%;
  box-sizing: border-box;
  box-shadow: inset 1px 0 0 0 var(--md-editor-box-shadow-color);
  position: absolute;
  padding: 10px 20px;
  overflow: auto;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 5px 0;
  display: flex;
  flex-direction: column;
}
.w-md-editor-preview .anchor {
  display: none;
}
.w-md-editor-preview .contains-task-list li.task-list-item {
  list-style: none;
}
.w-md-editor-show-preview .w-md-editor-input {
  width: 0%;
  overflow: hidden;
  background-color: var(--md-editor-background-color);
}
.w-md-editor-show-preview .w-md-editor-preview {
  width: 100%;
  box-shadow: inset 0 0 0 0;
}
.w-md-editor-show-edit .w-md-editor-input {
  width: 100%;
}
.w-md-editor-show-edit .w-md-editor-preview {
  width: 0%;
  padding: 0;
}
.w-md-editor-fullscreen {
  overflow: hidden;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100% !important;
}
.w-md-editor-fullscreen .w-md-editor-content {
  height: 100%;
}
/* ============================================================
   ADMIN PAGES — Gerenciador de Páginas do Site
   Padrão visual Phobos Intranet
   ============================================================ */

/* ---- Container principal ---- */
.pages-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.pages-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.pages-header::before {
  content: "\f15c"; /* fa-file */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2.5rem;
  bottom: -0.5rem;
  font-size: 7rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  line-height: 1;
}

.pages-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pages-header-title h1 i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.pages-header-title p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Botão principal ---- */
.btn-new-page {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-size: 0.9375rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.btn-new-page:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---- Cards de estatísticas ---- */
.pages-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* reutiliza premium-stat-card do admin-pages.css */

/* ---- Filter bar ---- */
.pages-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}

.pages-filter-bar__search {
  position: relative;
  flex: 1;
}

.pages-filter-bar__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9ab8;
  font-size: 0.875rem;
  pointer-events: none;
}

.pages-filter-bar__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #374151;
  background: #f8fafc;
  transition: border-color 0.2s;
  outline: none;
}

.pages-filter-bar__input:focus {
  border-color: #0A4EA0;
  background: white;
}

.pages-filter-bar__count {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}

.pages-filter-bar__count-num {
  font-weight: 700;
  color: #0A4EA0;
  margin-right: 0.25rem;
}

/* ---- Tabela ---- */
.pages-table-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.pages-table-card__header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1e293b;
}

.pages-table-card__header i {
  color: #0A4EA0;
  font-size: 1rem;
}

.pages-table {
  width: 100%;
  border-collapse: collapse;
}

.pages-table thead tr {
  background: #f1f5fb;
}

.pages-table thead th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.pages-table tbody tr {
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.15s;
}

.pages-table tbody tr:last-child {
  border-bottom: none;
}

.pages-table tbody tr:hover {
  background: #f8fbff;
}

.pages-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  color: #374151;
  vertical-align: middle;
}

/* Coluna título */
.pages-table .col-title {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Badge Fixa */
.badge-fixed {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(10, 78, 160, 0.1);
  color: #0A4EA0;
  border: 1px solid rgba(10, 78, 160, 0.25);
}

/* Code slug */
.slug-code {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: #f1f5fb;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Status badges */
.status-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.status-badge-active:hover {
  background: rgba(5, 150, 105, 0.2);
}

.status-badge-inactive {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.status-badge-inactive:hover {
  background: rgba(100, 116, 139, 0.2);
}

/* Ações */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-icon--view {
  background: #f0f4ff;
  color: #0A4EA0;
}

.btn-action-icon--view:hover {
  background: #0A4EA0;
  color: white;
}

.btn-action-icon--edit {
  background: #f0f9ff;
  color: #0891b2;
}

.btn-action-icon--edit:hover {
  background: #0891b2;
  color: white;
}

.btn-action-icon--delete {
  background: #fff1f2;
  color: #dc2626;
}

.btn-action-icon--delete:hover {
  background: #dc2626;
  color: white;
}

/* Empty state */
.pages-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #8a9ab8;
}

.pages-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.pages-empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   MODAL — estilo Phobos
   ============================================================ */

.pages-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pages-modal {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pages-modal--large {
  max-width: 1100px;
}

.pages-modal__header {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.pages-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pages-modal__close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.pages-modal__close:hover {
  background: rgba(255,255,255,0.35);
}

.pages-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.pages-modal__body::-webkit-scrollbar { width: 6px; }
.pages-modal__body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.pages-modal__body::-webkit-scrollbar-thumb { background: #0A4EA0; border-radius: 3px; }

.pages-modal__footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid #e8edf5;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8f9fa;
  flex-shrink: 0;
}

/* Form fields in modal */
.pages-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pages-form-group {
  margin-bottom: 1.25rem;
}

.pages-form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.pages-form-group label i {
  color: #0A4EA0;
  font-size: 0.8rem;
}

.pages-form-control {
  width: 100%;
  padding: 0.575rem 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.pages-form-control:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  background: white;
}

.pages-form-control:disabled {
  opacity: 0.6;
  background: #f0f4f8;
  cursor: not-allowed;
}

.pages-form-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

/* Fixed page notice */
.pages-fixed-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 78, 160, 0.06);
  border: 1px solid rgba(10, 78, 160, 0.2);
  border-radius: 10px;
  color: #1e40af;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.pages-fixed-notice i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: #0A4EA0;
}

/* MD Editor wrapper */
.pages-md-editor-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
}

/* Modal primary button */
.btn-modal-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-modal-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-modal-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-modal-secondary {
  background: white;
  color: #374151;
  border: 1.5px solid #d1d5db;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-modal-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Preview toggle button */
.btn-preview-toggle {
  background: rgba(10, 78, 160, 0.08);
  color: #0A4EA0;
  border: 1.5px solid rgba(10, 78, 160, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 7px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-preview-toggle:hover {
  background: rgba(10, 78, 160, 0.15);
}

/* Label + preview toggle */
.pages-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.pages-label-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .pages-page { padding: 1rem; }
  .pages-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .pages-form-row { grid-template-columns: 1fr; }
  .pages-modal { border-radius: 12px; }
}
/* ============================================================
   ADMIN SETTINGS — Configurações do Site
   Padrão visual Phobos Intranet
   ============================================================ */

.settings-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.settings-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.settings-header::before {
  content: "\f013"; /* fa-cog */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 8rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  line-height: 1;
}

.settings-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-header-title p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Layout de grupos ---- */
.settings-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Card de grupo ---- */
.settings-group-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.settings-group-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.settings-group-header {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  background: linear-gradient(to right, #f8fbff, white);
}

.settings-group-header i {
  color: #0A4EA0;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.settings-group-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Campo individual ---- */
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.settings-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.settings-field label i {
  color: #0A4EA0;
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
}

.settings-field-row {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.settings-input {
  flex: 1;
  padding: 0.575rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.settings-input:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  background: white;
}

.settings-textarea {
  flex: 1;
  padding: 0.575rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.settings-textarea:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  background: white;
}

/* ---- Botão salvar individual ---- */
.btn-save-field {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
  margin-top: 0;
}

.btn-save-field:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-save-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Para textarea, alinhar o botão ao topo */
.settings-field-row--textarea .btn-save-field {
  margin-top: 0;
  align-self: flex-start;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .settings-page { padding: 1rem; }
  .settings-header { padding: 1.5rem; }
  .settings-group-body { padding: 1.25rem; }
}
/* ============================================================
   ADMIN DEMONSTRATIONS — Solicitações de Demonstração
   Padrão visual Phobos Intranet
   ============================================================ */

.demos-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.demos-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.demos-header::before {
  content: "\f022";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 8rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  line-height: 1;
}

.demos-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demos-header-title p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

/* ---- Stats ---- */
.demos-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ---- Table card ---- */
.demos-table-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
}

.demos-table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  background: linear-gradient(to right, #f8fbff, white);
}

.demos-table-header i { color: #0A4EA0; }

.demos-table-search {
  margin-left: auto;
  position: relative;
}

.demos-table-search i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.8rem;
  pointer-events: none;
}

.demos-search-input {
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  outline: none;
  color: #374151;
  background: #f8fafc;
  width: 220px;
  transition: border-color 0.2s;
}

.demos-search-input:focus {
  border-color: #0A4EA0;
  background: white;
}

/* Table */
.demos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.demos-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf5;
  white-space: nowrap;
}

.demos-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f4f8;
  color: #374151;
  vertical-align: top;
}

.demos-table tr:last-child td { border-bottom: none; }

.demos-table tbody tr:hover { background: #f8fbff; }

/* Name cell */
.demo-name {
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.15rem;
}

.demo-company {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

/* Contact links */
.demo-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.demo-contact-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.demo-contact-link:hover { color: #0A4EA0; text-decoration: underline; }
.demo-contact-link i { color: #0A4EA0; font-size: 0.78rem; width: 14px; }

/* Message preview */
.demo-message {
  max-width: 260px;
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Status badge */
.demo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.demo-status-badge--new      { background: #eff6ff; color: #1d4ed8; }
.demo-status-badge--pending  { background: #fefce8; color: #92400e; }
.demo-status-badge--done     { background: #f0fdf4; color: #15803d; }

/* Date */
.demo-date {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
}

/* Action buttons */
.demos-actions { display: flex; gap: 0.4rem; align-items: center; }

.btn-demo-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-demo-action--reply  { background: #f0f9ff; color: #0891b2; }
.btn-demo-action--reply:hover  { background: #0891b2; color: white; }
.btn-demo-action--status { background: #f0fdf4; color: #059669; }
.btn-demo-action--status:hover { background: #059669; color: white; }
.btn-demo-action--delete { background: #fff1f2; color: #dc2626; }
.btn-demo-action--delete:hover { background: #dc2626; color: white; }

/* Empty */
.demos-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #94a3b8;
}

.demos-empty i {
  font-size: 3.5rem;
  opacity: 0.25;
  display: block;
  margin-bottom: 1rem;
}

/* Detail drawer / expanded row */
.demo-expanded td {
  background: #f8fbff;
  padding-top: 0;
}

.demo-expanded-body {
  padding: 0.75rem 0.5rem 0.5rem;
  border-top: 1px dashed #dbe8f8;
}

.demo-expanded-body h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.4rem;
  letter-spacing: 0.05em;
}

.demo-full-message {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.7;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

@media (max-width: 900px) {
  .demos-page { padding: 1rem; }
  .demos-table th:nth-child(4),
  .demos-table td:nth-child(4) { display: none; }
  .demos-search-input { width: 150px; }
}
/* ============================================================
   ADMIN FORMS — Central de Formulários
   Padrão visual Phobos Intranet
   ============================================================ */

.forms-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.forms-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}
.forms-header::before {
  content: "\f15c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2rem; bottom: -1rem;
  font-size: 8rem;
  opacity: 0.07; color: white;
  pointer-events: none; line-height: 1;
}
.forms-header-title h1 {
  font-size: 1.75rem; font-weight: 700;
  color: white; margin: 0 0 0.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.forms-header-title p {
  color: rgba(255,255,255,0.75);
  margin: 0; font-size: 0.9375rem;
}

/* ---- Stats ---- */
.forms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ---- Tabs ---- */
.forms-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.forms-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.forms-tab:hover { border-color: #0A4EA0; color: #0A4EA0; }
.forms-tab--active {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: white; border-color: transparent;
}
.forms-tab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.forms-tab--active .forms-tab-count { background: rgba(255,255,255,0.25); }
.forms-tab:not(.forms-tab--active) .forms-tab-count {
  background: #f1f5f9;
  color: #0A4EA0;
}

/* ---- Analytics row ---- */
.forms-analytics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.forms-analytics-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 1.5rem;
}
.forms-analytics-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.forms-analytics-card h3 i { color: #0A4EA0; }

/* Conversion funnel */
.funnel-item {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.funnel-item:last-child { margin-bottom: 0; }
.funnel-label {
  min-width: 90px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  display: flex; align-items: center; gap: 0.3rem;
}
.funnel-label i { color: #0A4EA0; font-size: 0.7rem; }
.funnel-bar-bg {
  flex: 1;
  height: 8px;
  background: #f0f4f8;
  border-radius: 4px;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}
.funnel-bar--new     { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.funnel-bar--pending { background: linear-gradient(90deg, #f59e0b, #d97706); }
.funnel-bar--done    { background: linear-gradient(90deg, #10b981, #059669); }
.funnel-pct {
  min-width: 40px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
}
.funnel-count {
  min-width: 24px;
  text-align: right;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Form type breakdown */
.formtype-item {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f4f8;
}
.formtype-item:last-child { border-bottom: none; }
.formtype-name {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.87rem; font-weight: 600; color: #1e293b;
}
.formtype-name i { color: #0A4EA0; font-size: 0.8rem; }
.formtype-badge {
  background: #eff6ff; color: #1d4ed8;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Recent trend */
.trend-empty {
  text-align: center; padding: 1.5rem;
  color: #cbd5e1; font-size: 0.85rem;
}

/* ---- Table ---- */
.forms-table-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
}
.forms-table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8edf5;
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.95rem; color: #1e293b;
  background: linear-gradient(to right, #f8fbff, white);
}
.forms-table-header i { color: #0A4EA0; }
.forms-table-search {
  margin-left: auto; position: relative;
}
.forms-table-search i {
  position: absolute; left: 0.7rem; top: 50%;
  transform: translateY(-50%); color: #94a3b8;
  font-size: 0.8rem; pointer-events: none;
}
.forms-search-input {
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 0.875rem; outline: none; color: #374151;
  background: #f8fafc; width: 220px; transition: border-color 0.2s;
}
.forms-search-input:focus { border-color: #0A4EA0; background: white; }

.forms-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.forms-table th {
  padding: 0.875rem 1.25rem;
  text-align: left; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b;
  background: #f8fafc; border-bottom: 1px solid #e8edf5;
  white-space: nowrap;
}
.forms-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f0f4f8;
  color: #374151; vertical-align: top;
}
.forms-table tr:last-child td { border-bottom: none; }
.forms-table tbody tr:hover { background: #f8fbff; }

/* Cell styles */
.form-name { font-weight: 700; color: #1e293b; margin: 0 0 0.15rem; }
.form-company {
  font-size: 0.8rem; color: #64748b;
  display: flex; align-items: center; gap: 0.3rem; margin: 0;
}
.form-contact-links { display: flex; flex-direction: column; gap: 0.3rem; }
.form-contact-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: #374151;
  text-decoration: none; transition: color 0.2s;
}
.form-contact-link:hover { color: #0A4EA0; text-decoration: underline; }
.form-contact-link i { color: #0A4EA0; font-size: 0.78rem; width: 14px; }

/* Type badge */
.form-type-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.form-type-badge--demonstration { background: #f0f9ff; color: #0369a1; }
.form-type-badge--contact       { background: #f0fdf4; color: #15803d; }
.form-type-badge--other         { background: #faf5ff; color: #7e22ce; }

/* Status */
.form-status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem; border-radius: 12px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: all 0.2s;
}
.form-status-badge:hover { filter: brightness(0.92); }
.form-status-badge--new     { background: #eff6ff; color: #1d4ed8; }
.form-status-badge--pending { background: #fefce8; color: #92400e; }
.form-status-badge--done    { background: #f0fdf4; color: #15803d; }

.form-message-preview {
  max-width: 220px;
  font-size: 0.82rem; color: #64748b;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.form-date { font-size: 0.82rem; color: #94a3b8; white-space: nowrap; }

/* Actions */
.forms-actions { display: flex; gap: 0.4rem; }
.btn-form-action {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.btn-form-action--reply  { background: #f0f9ff; color: #0891b2; }
.btn-form-action--reply:hover  { background: #0891b2; color: white; }
.btn-form-action--next   { background: #f0fdf4; color: #059669; }
.btn-form-action--next:hover   { background: #059669; color: white; }
.btn-form-action--delete { background: #fff1f2; color: #dc2626; }
.btn-form-action--delete:hover { background: #dc2626; color: white; }

/* Expanded row */
.form-row-expanded td { background: #f8fbff; padding-top: 0; }
.form-expanded-body {
  padding: 0.75rem 0.5rem 0.5rem;
  border-top: 1px dashed #dbe8f8;
}
.form-expanded-body h4 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; color: #94a3b8;
  margin: 0 0 0.4rem; letter-spacing: 0.05em;
}
.form-full-message {
  font-size: 0.88rem; color: #374151; line-height: 1.7;
  background: white; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 0.75rem 1rem;
}
.form-extra-fields {
  display: flex; gap: 1.5rem; margin-top: 0.6rem; flex-wrap: wrap;
}
.form-extra-field { font-size: 0.82rem; color: #64748b; }
.form-extra-field strong { color: #374151; font-weight: 600; margin-right: 0.3rem; }

/* Empty */
.forms-empty {
  text-align: center; padding: 5rem 2rem; color: #94a3b8;
}
.forms-empty i {
  font-size: 3.5rem; opacity: 0.25;
  display: block; margin-bottom: 1rem;
}

@media (max-width: 1000px) {
  .forms-analytics { grid-template-columns: 1fr; }
  .forms-page { padding: 1rem; }
  .forms-search-input { width: 150px; }
}
@media (max-width: 700px) {
  .forms-table th:nth-child(3),
  .forms-table td:nth-child(3),
  .forms-table th:nth-child(5),
  .forms-table td:nth-child(5) { display: none; }
}
/* ══════════════════════════════════════════════════════════════════════════
   Chatbot Config — Phobos Premium Design
   ══════════════════════════════════════════════════════════════════════════ */

.chatbot-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 2rem;
    min-height: calc(100vh - 160px);
    background: #f8f9fa;
}

/* ── Header ── */
.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 28px;
    background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(10, 78, 160, 0.2);
    animation: chatbot-fadeIn 0.5s ease;
}

.chatbot-header__title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chatbot-header__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1.35rem;
    color: #fff;
    backdrop-filter: blur(4px);
}

.chatbot-header__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.chatbot-header__subtitle {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0;
}

/* ── Status Badge ── */
.chatbot-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.chatbot-status-badge--active {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.chatbot-status-badge--inactive {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.chatbot-status-badge__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chatbot-status-badge__dot--active {
    background: #10b981;
    animation: chatbot-pulse 1.8s ease-in-out infinite;
}

.chatbot-status-badge__dot--inactive {
    background: #f87171;
}

@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ── Main Grid ── */
.chatbot-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    animation: chatbot-slideUp 0.6s ease;
}

/* ── Card ── */
.chatbot-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.chatbot-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.chatbot-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.chatbot-card__header-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(10, 78, 160, 0.2);
}

.chatbot-card__header-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px;
}

.chatbot-card__header-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.chatbot-card__body {
    padding: 24px;
}

/* ── Form Group ── */
.chatbot-form-group {
    margin-bottom: 20px;
}

.chatbot-form-group:last-of-type {
    margin-bottom: 0;
}

.chatbot-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.chatbot-form-label i {
    color: #0A4EA0;
    width: 16px;
    font-size: 0.8rem;
}

.chatbot-form-input,
.chatbot-form-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.25s ease;
    font-family: inherit;
}

.chatbot-form-input:focus,
.chatbot-form-textarea:focus {
    outline: none;
    border-color: #0A4EA0;
    box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.chatbot-form-input::placeholder,
.chatbot-form-textarea::placeholder {
    color: #94a3b8;
}

.chatbot-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.chatbot-form-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-form-hint i {
    font-size: 0.72rem;
}

/* ── Toggle Row ── */
.chatbot-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(10, 78, 160, 0.04) 0%, rgba(0, 43, 94, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(10, 78, 160, 0.1);
    margin-top: 24px;
    transition: all 0.3s ease;
}

.chatbot-toggle-row:hover {
    border-color: rgba(10, 78, 160, 0.2);
    background: linear-gradient(135deg, rgba(10, 78, 160, 0.06) 0%, rgba(0, 43, 94, 0.06) 100%);
}

.chatbot-toggle-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 2px;
}

.chatbot-toggle-info p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

/* Custom Toggle Switch */
.chatbot-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.chatbot-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.chatbot-switch__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-switch input:checked+.chatbot-switch__slider {
    background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
    box-shadow: 0 0 12px rgba(10, 78, 160, 0.3);
}

.chatbot-switch input:checked+.chatbot-switch__slider::before {
    transform: translateX(24px);
}

/* ── Submit Button Area ── */
.chatbot-form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.chatbot-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 78, 160, 0.3);
}

.chatbot-btn-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 78, 160, 0.4);
}

.chatbot-btn-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.chatbot-btn-save i {
    font-size: 0.85rem;
}

/* ── Preview Card ── */
.chatbot-preview {
    position: sticky;
    top: 24px;
}

.chatbot-preview-widget {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* Preview Header */
.chatbot-preview__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
    color: #fff;
}

.chatbot-preview__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chatbot-preview__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-preview__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-preview__status {
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.chatbot-preview__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: chatbot-pulse 1.8s ease-in-out infinite;
}

.chatbot-preview__close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: default;
    font-size: 0.85rem;
}

/* Preview Messages */
.chatbot-preview__messages {
    padding: 20px 16px;
    min-height: 280px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-preview__msg {
    display: flex;
    gap: 10px;
    animation: chatbot-msgIn 0.4s ease;
}

.chatbot-preview__msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.chatbot-preview__msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-preview__msg-bubble {
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
    max-width: 85%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.chatbot-preview__msg--typing {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chatbot-preview__typing-dots {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.chatbot-preview__typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: chatbot-typing 1.4s ease-in-out infinite;
}

.chatbot-preview__typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chatbot-preview__typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatbot-typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes chatbot-msgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preview Input */
.chatbot-preview__input-area {
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-preview__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f8fafc;
    cursor: default;
}

.chatbot-preview__send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: default;
    box-shadow: 0 3px 10px rgba(10, 78, 160, 0.25);
    flex-shrink: 0;
}

/* ── Status Indicator Card ── */
.chatbot-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: chatbot-fadeIn 0.4s ease;
}

.chatbot-status-card--active {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.chatbot-status-card--inactive {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.chatbot-status-card i {
    font-size: 1rem;
}

/* ── Quick Info Card ── */
.chatbot-info-card {
    margin-top: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chatbot-info-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0A4EA0;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-info-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chatbot-info-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.82rem;
    color: #475569;
    border-bottom: 1px solid #f8f9fa;
}

.chatbot-info-card__list li:last-child {
    border-bottom: none;
}

.chatbot-info-card__list li i {
    color: #0A4EA0;
    width: 16px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ── API Key Section ── */
.chatbot-apikey-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 7px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
}

.chatbot-apikey-badge i {
    font-size: 0.75rem;
}

.chatbot-apikey-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chatbot-apikey-input-wrapper {
    flex: 1;
    position: relative;
}

.chatbot-apikey-input-wrapper .chatbot-form-input {
    padding-right: 44px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.chatbot-apikey-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.chatbot-apikey-toggle:hover {
    color: #0A4EA0;
    background: rgba(10, 78, 160, 0.06);
}

.chatbot-form-hint a {
    color: #0A4EA0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.chatbot-form-hint a:hover {
    color: #002b5e;
    text-decoration: underline;
}

/* ── Animations ── */
@keyframes chatbot-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes chatbot-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .chatbot-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-preview {
        position: static;
    }
}

@media (max-width: 768px) {
    .chatbot-page {
        padding: 1rem;
    }

    .chatbot-header {
        padding: 18px 20px;
    }

    .chatbot-header__title {
        font-size: 1.2rem;
    }
}
/* ── Training Session Card ── */
.training-card .chatbot-card__header {
    border-bottom: 1px solid #d1fae5;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.training-correction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-wrap: wrap;
}

.training-section-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 500;
}

.training-history {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
}

/* ── Training Session Modal ── */
.training-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: training-fade-in 0.18s ease;
}

@keyframes training-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.training-modal {
    background: white;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: training-slide-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes training-slide-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.training-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    flex-shrink: 0;
}

.training-modal__body {
    display: grid;
    grid-template-columns: 340px 1fr 280px;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.training-modal__chat {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f1f5f9;
    background: #f8fafc;
    overflow: hidden;
}

.training-modal__chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-modal__chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 85%;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.training-modal__chat-bubble--user {
    background: #0A4EA0;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.training-modal__chat-bubble--bot {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.training-modal__chat-bubble--bot:hover {
    border-color: #0A4EA0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 78, 160, 0.1);
}

.training-modal__chat-input-area {
    padding: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.training-modal__left {
    padding: 24px;
    border-right: 1px solid #f1f5f9;
    overflow-y: auto;
}

.training-modal__right {
    padding: 24px;
    overflow-y: auto;
    background: #fafbfc;
}

.training-modal__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .training-modal__body {
        grid-template-columns: 1fr;
    }
    .training-modal__left {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
}


/* Embutida na central do Phobinho: sem padding de página nem fundo próprio */
.chatbot-page--embutida { padding: 0; background: transparent; min-height: 0; }
/**
 * PhobinhoCentral.css — Central Phobos IA
 *
 * Sistema visual da tela, com três regras que valem para tudo:
 *
 *   1. POUCOS ELEMENTOS POR LINHA. A página tem largura máxima e as grades vão
 *      até duas colunas — nunca quatro. Em monitor largo, o que sobra é margem,
 *      não mais coisa espremida na mesma faixa.
 *   2. AR NO LUGAR DE BORDA. Separação por espaço e por hierarquia de texto;
 *      caixa dentro de caixa só quando o conteúdo é mesmo tabular.
 *   3. UMA COR. Azul Phobos para o que é ação e destaque; o resto é cinza.
 *      Verde, âmbar e vermelho aparecem só como estado, em ponto ou pílula.
 */

.phc-page *, .phc-page *::before, .phc-page *::after { box-sizing: border-box; }

.phc-page {
  --marca: #0A4EA0;
  --marca-escura: #002b5e;
  --marca-clara: #1a6fd4;
  --tinta: #0f172a;
  --texto: #475569;
  --fraco: #94a3b8;
  --linha: #e8edf5;
  --fundo: #f5f7fb;
  --papel: #fff;
  --sutil: #fafbfd;

  padding: 2rem 1.5rem 4rem;
  min-height: 100vh;
  background: var(--fundo);
  color: var(--tinta);
  font-size: 13.5px;
  line-height: 1.6;
}

/* A largura máxima é o que impede a tela de virar uma parede de informação */
.phc-page > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* ── CABEÇALHO ────────────────────────────────────────────────────────── */
.phc-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--marca-escura) 0%, var(--marca) 55%, var(--marca-clara) 100%);
  border-radius: 20px; padding: 2.5rem 2.5rem 2.25rem; color: #fff;
  margin-bottom: 2rem;
}
.phc-hero__glow {
  position: absolute; right: -80px; top: -90px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none;
}
.phc-hero__esq { display: flex; align-items: center; gap: 1.75rem; z-index: 1; position: relative; }
/* O mascote entra sem moldura: fundo transparente, tamanho de gente */
/* Palco do mascote: espaço próprio, com aura, órbita e flutuação */
.phc-palco {
  position: relative; flex-shrink: 0;
  width: 158px; height: 196px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 62%),
    rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
  animation: phc-palco-entra .7s cubic-bezier(.22, 1, .36, 1) both;
}

/* aura que respira atrás dele */
.phc-palco__aura {
  position: absolute; left: 50%; top: 46%; width: 150px; height: 150px;
  margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, .30) 0%, rgba(110, 231, 183, 0) 68%);
  animation: phc-aura 5.5s ease-in-out infinite;
}

/* anel fino girando devagar, referência de "processando" */
.phc-palco__orbita {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px;
  margin: -66px 0 0 -66px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-top-color: rgba(110, 231, 183, .55);
  animation: phc-orbita 14s linear infinite;
}

/* sombra elíptica no chão, acompanha a flutuação */
.phc-palco__chao {
  position: absolute; left: 50%; bottom: 16px; width: 74px; height: 12px;
  margin-left: -37px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 72%);
  animation: phc-chao 4.5s ease-in-out infinite;
}

.phc-palco__mascote {
  position: absolute; left: 50%; bottom: 12px; width: auto; height: 172px;
  margin-left: -33px; display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
  animation: phc-flutua 4.5s ease-in-out infinite;
  user-select: none; -webkit-user-drag: none;
}

@keyframes phc-palco-entra {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes phc-flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes phc-chao {
  0%, 100% { transform: scaleX(1);   opacity: .9; }
  50%      { transform: scaleX(.82); opacity: .55; }
}
@keyframes phc-aura {
  0%, 100% { transform: scale(.9);  opacity: .55; }
  50%      { transform: scale(1.1); opacity: 1; }
}
@keyframes phc-orbita { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .phc-palco, .phc-palco__aura, .phc-palco__orbita,
  .phc-palco__chao, .phc-palco__mascote { animation: none; }
}
.phc-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); margin-bottom: .5rem;
}
.phc-hero h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 .35rem; color: #fff; letter-spacing: -.02em; }
.phc-hero p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .72); max-width: 60ch; }

/* Indicadores por produto: um anel por produto, clicável */
.phc-produtos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem;
  position: relative; z-index: 1;
  margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 700px)  { .phc-produtos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .phc-produtos { grid-template-columns: repeat(5, 1fr); } }

.phc-produtos__rotulo {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: -.35rem;
}
.phc-produtos__rotulo > span:first-child {
  font-size: .66rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.phc-produtos__dica { font-size: .68rem; color: rgba(255, 255, 255, .32); }

.phc-produto {
  display: flex; align-items: center; gap: .85rem; min-width: 0;
  border: 0; background: none; padding: 0; font: inherit; text-align: left;
  cursor: pointer; transition: transform .15s;
}
.phc-produto:hover { transform: translateY(-2px); }
.phc-produto.is-vazio {
  grid-column: 1 / -1; font-size: .8rem; color: rgba(255, 255, 255, .6);
}

/* O anel: conic-gradient com o nível, sem SVG e sem biblioteca */
.phc-produto__aro {
  --n: 0;
  position: relative; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(#6ee7b7 calc(var(--n) * 1%), rgba(255, 255, 255, .14) 0);
  display: grid; place-items: center;
  transition: background .8s cubic-bezier(.22, 1, .36, 1);
}
.phc-produto__aro::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: #0a3f80;
}
.phc-produto.is-forte .phc-produto__aro { background: conic-gradient(#34d399 calc(var(--n) * 1%), rgba(255,255,255,.14) 0); }
.phc-produto.is-fraco .phc-produto__aro { background: conic-gradient(#fbbf24 calc(var(--n) * 1%), rgba(255,255,255,.14) 0); }
.phc-produto__aro-valor {
  position: relative; font-size: .95rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
}

.phc-produto__texto { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.phc-produto__nome {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phc-produto__nome i { font-size: .7rem; opacity: .5; }
.phc-produto__rotulo { font-size: .7rem; color: #6ee7b7; font-weight: 600; }
.phc-produto.is-fraco .phc-produto__rotulo { color: #fbbf24; }
.phc-produto__topicos { font-size: .68rem; color: rgba(255, 255, 255, .45); }

/* ── ABAS ─────────────────────────────────────────────────────────────── */
.phc-abas {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem;
  border-bottom: 1px solid var(--linha); padding-bottom: 0;
}
.phc-aba {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; background: none; color: var(--fraco);
  padding: .7rem .2rem; margin-right: 1.6rem;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.phc-aba i { font-size: .82rem; }
.phc-aba:hover { color: var(--texto); }
.phc-aba.is-ativa { color: var(--marca); border-bottom-color: var(--marca); font-weight: 700; }

.phc-conteudo { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── CARTÕES ──────────────────────────────────────────────────────────── */
.phc-card {
  background: var(--papel); border: 1px solid var(--linha);
  border-radius: 16px; padding: 1.75rem;
}
.phc-card--destaque { background: linear-gradient(180deg, #f8fbff 0%, #fff 60%); border-color: #dce8f8; }

/* Título sozinho na linha; a explicação desce para baixo dele */
.phc-card__cabeca {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem;
}
.phc-card__cabeca h3 {
  display: flex; align-items: center; gap: .55rem; margin: 0;
  font-size: .98rem; font-weight: 800; color: var(--tinta); letter-spacing: -.01em;
}
.phc-card__cabeca h3 i { color: var(--marca); font-size: .9rem; }
.phc-card__cabeca > .phc-nota { flex: 1 0 100%; order: 3; margin: 0; }

.phc-nota { font-size: .82rem; color: var(--texto); line-height: 1.65; margin: 0; max-width: 72ch; }
.phc-vazio-linha { margin: 0; font-size: .82rem; color: var(--fraco); }

/* Duas colunas é o limite — e só a partir de 1000px */
.phc-duplo { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1000px) { .phc-duplo { grid-template-columns: 1fr 1fr; } }

/* ── CANAIS (cartões da visão geral) ──────────────────────────────────── */
.phc-canais { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px)  { .phc-canais { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .phc-canais { grid-template-columns: repeat(3, 1fr); } }

.phc-canal {
  background: var(--papel); border: 1px solid var(--linha); border-radius: 16px;
  padding: 1.5rem; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.phc-canal:hover { border-color: #cfe0f5; transform: translateY(-2px); }
.phc-canal.is-off { opacity: .6; }
.phc-canal__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.phc-canal__icone {
  width: 42px; height: 42px; border-radius: 12px; color: #fff;
  display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--marca-escura), var(--marca));
}
.phc-canal h3 { margin: 0 0 .4rem; font-size: .95rem; font-weight: 800; }
.phc-canal__desc { margin: 0 0 1rem; font-size: .82rem; color: var(--texto); }
.phc-canal__publico { margin: 0; font-size: .76rem; color: var(--fraco); display: flex; align-items: center; gap: .4rem; }
.phc-canal__publico i { font-size: .68rem; }
.phc-canal__rodape {
  margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.phc-canal__hab { font-size: .8rem; color: var(--texto); }
.phc-canal__hab strong { color: var(--marca); font-weight: 800; }

.phc-pill {
  border-radius: 999px; padding: .2rem .6rem; font-size: .64rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: #f1f5f9; color: var(--fraco);
}
.phc-pill.is-on { background: #ecfdf5; color: #047857; }

/* ── MATRIZ ───────────────────────────────────────────────────────────── */
.phc-tabela-wrap { overflow-x: auto; margin: 0 -.35rem; }
.phc-matriz { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.phc-matriz thead th {
  text-align: left; padding: 0 .8rem .8rem; font-size: .66rem; font-weight: 800;
  color: var(--fraco); text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--linha);
}
.phc-matriz__canal { text-align: center !important; white-space: nowrap; width: 96px; }
.phc-matriz__grupo td {
  font-size: .66rem; font-weight: 800; color: var(--marca);
  text-transform: uppercase; letter-spacing: .08em; padding: 1.5rem .8rem .5rem;
}
.phc-matriz__grupo:first-child td { padding-top: 1rem; }
.phc-matriz tbody td { padding: .8rem; border-bottom: 1px solid #f5f7fa; vertical-align: top; }
.phc-matriz tbody tr:hover td { background: var(--sutil); }
.phc-matriz tbody td strong { font-weight: 600; color: var(--tinta); }
.phc-matriz__desc { display: block; font-size: .76rem; color: var(--fraco); margin-top: .2rem; max-width: 46ch; }
.phc-matriz__celula { text-align: center; font-size: .95rem; }
.phc-sim { color: #10b981; }
.phc-nao { color: #dbe3ec; }
.phc-na { color: #eef2f7; }

/* ── NÚMEROS E FEEDBACK ───────────────────────────────────────────────── */
.phc-numeros { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.phc-numeros div { display: flex; flex-direction: column; }
.phc-numeros strong { font-size: 1.7rem; font-weight: 800; color: var(--marca); line-height: 1.1; }
.phc-numeros span { font-size: .74rem; color: var(--fraco); margin-top: .2rem; }

.phc-feedback { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phc-feedback li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  padding: .85rem 0; border-bottom: 1px solid #f5f7fa;
}
.phc-feedback li:last-child { border-bottom: 0; padding-bottom: 0; }
.phc-feedback__msg { flex: 1 0 100%; font-size: .84rem; color: var(--texto); }
.phc-feedback__meta { flex: 1 0 100%; font-size: .72rem; color: var(--fraco); }
.phc-tag {
  border-radius: 5px; padding: .12rem .45rem; font-size: .62rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: #f1f5f9; color: var(--texto);
}
.phc-tag--elogio { background: #ecfdf5; color: #047857; }
.phc-tag--reclamacao { background: #fef2f2; color: #b91c1c; }
.phc-tag--sugestao { background: #eff6ff; color: #1d4ed8; }
.phc-nota-valor { font-size: .76rem; font-weight: 800; color: #b45309; }

/* ── FORMULÁRIOS: UMA COLUNA ──────────────────────────────────────────── */
.phc-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 620px; }
.phc-label {
  display: flex; flex-direction: column; gap: .45rem;
  font-size: .78rem; font-weight: 700; color: var(--texto);
}
.phc-label--larga { max-width: none; }
.phc-input {
  width: 100%; border: 1px solid var(--linha); border-radius: 10px;
  padding: .7rem .85rem; font: inherit; font-size: .86rem; font-weight: 500;
  color: var(--tinta); background: var(--papel); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.phc-input:hover:not(:disabled) { border-color: #d4dfee; }
.phc-input:focus { border-color: var(--marca); box-shadow: 0 0 0 3px rgba(10, 78, 160, .09); }
.phc-input:disabled { background: var(--sutil); color: var(--fraco); }
.phc-input--curto { max-width: 220px; }
.phc-textarea { resize: vertical; line-height: 1.6; }
.phc-ajuda { font-size: .76rem; font-weight: 400; color: var(--fraco); line-height: 1.55; }
.phc-opcional { font-weight: 400; color: var(--fraco); text-transform: none; letter-spacing: 0; }

.phc-switch { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--texto); cursor: pointer; }
.phc-switch input { width: 16px; height: 16px; accent-color: var(--marca); cursor: pointer; }

.phc-linha-acoes {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid #f5f7fa;
}
.phc-linha-acoes .phc-nota { margin-right: auto; max-width: 46ch; }
.phc-linha-input { display: flex; gap: .5rem; }

/* ── BOTÕES ───────────────────────────────────────────────────────────── */
.phc-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--linha); background: var(--papel); color: var(--texto);
  border-radius: 10px; padding: .6rem 1rem; font: inherit; font-size: .82rem;
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .15s;
}
.phc-btn:hover:not(:disabled) { border-color: #cfe0f5; color: var(--marca); background: #f8fbff; }
.phc-btn--primary { background: var(--marca); border-color: var(--marca); color: #fff; }
.phc-btn--primary:hover:not(:disabled) { background: #0b59b8; border-color: #0b59b8; color: #fff; }
.phc-btn--sm { padding: .42rem .8rem; font-size: .78rem; }
.phc-btn--perigo { color: #b91c1c; }
.phc-btn--perigo:hover:not(:disabled) { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.phc-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── EDITOR DE CANAL ──────────────────────────────────────────────────── */
.phc-abas-canal { display: flex; gap: .5rem; flex-wrap: wrap; }
.phc-aba-canal {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--linha); background: var(--papel); color: var(--texto);
  border-radius: 999px; padding: .55rem 1.1rem; font: inherit;
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.phc-aba-canal:hover { border-color: #cfe0f5; }
.phc-aba-canal.is-ativa { border-color: var(--marca); color: var(--marca); background: #f2f7fd; font-weight: 700; }

.phc-grupo { margin-top: 2rem; }
.phc-grupo:first-of-type { margin-top: 0; }
.phc-grupo h4 {
  margin: 0 0 .85rem; font-size: .66rem; font-weight: 800; color: var(--fraco);
  text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; gap: .45rem;
}

/* Habilidade: uma por linha, com espaço para respirar */
.phc-habilidades { display: flex; flex-direction: column; gap: .5rem; }
.phc-habilidade {
  display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%;
  border: 1px solid var(--linha); background: var(--papel); border-radius: 12px;
  padding: 1rem 1.15rem; cursor: pointer; font: inherit; transition: all .15s;
}
.phc-habilidade:hover:not(:disabled) { border-color: #cfe0f5; background: #fcfdff; }
.phc-habilidade.is-on { border-color: #bbf3d4; background: #fbfefc; }
.phc-habilidade:disabled { cursor: default; }
.phc-habilidade__icone {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #f1f5f9; color: var(--fraco); display: grid; place-items: center; font-size: .88rem;
}
.phc-habilidade.is-on .phc-habilidade__icone { background: #ecfdf5; color: #059669; }
.phc-habilidade__texto { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.phc-habilidade__texto strong { font-size: .86rem; font-weight: 700; color: var(--tinta); }
.phc-habilidade__texto > span { font-size: .8rem; color: var(--texto); }
.phc-habilidade__cuidado {
  display: flex; gap: .4rem; margin-top: .5rem; font-size: .76rem; color: #92400e;
  background: #fffbeb; border-radius: 8px; padding: .5rem .65rem; line-height: 1.5;
}
.phc-habilidade__estado {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #cbd5e1; white-space: nowrap; flex-shrink: 0;
}
.phc-habilidade__estado.is-on { color: #059669; }

.phc-barra-salvar {
  position: sticky; bottom: 1rem; z-index: 5;
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 1px solid var(--linha); border-radius: 14px; padding: .85rem 1.15rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .1);
}
.phc-barra-salvar .phc-nota { margin-right: auto; }

/* ── MOTOR ────────────────────────────────────────────────────────────── */
.phc-instancias { display: flex; flex-direction: column; gap: .6rem; }
.phc-linha-inst {
  display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap;
  border: 1px solid var(--linha); border-radius: 12px; padding: 1.15rem 1.25rem;
  transition: border-color .15s;
}
.phc-linha-inst:hover { border-color: #cfe0f5; }
.phc-linha-inst__ponto { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.phc-linha-inst.is-on .phc-linha-inst__ponto { background: #10b981; animation: phc-pulsa 2.4s infinite; }
.phc-linha-inst.is-qr .phc-linha-inst__ponto { background: #f59e0b; }
@keyframes phc-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.phc-linha-inst__id { min-width: 190px; }
.phc-linha-inst__id strong { display: block; font-size: .88rem; font-weight: 700; }
.phc-linha-inst__id span { font-size: .76rem; color: var(--fraco); }
.phc-linha-inst__estado {
  font-size: .66rem; font-weight: 800; color: var(--fraco);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.phc-linha-inst.is-on .phc-linha-inst__estado { color: #059669; }
.phc-linha-inst.is-qr .phc-linha-inst__estado { color: #b45309; }
.phc-linha-inst__dados {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-left: auto;
  font-size: .78rem; color: var(--texto);
}
.phc-linha-inst__dados i { color: #cbd5e1; margin-right: .35rem; }
.phc-linha-inst__acoes { display: flex; gap: .4rem; }

.phc-qr {
  display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap;
  margin-top: .6rem; padding: 1.5rem; border: 1px solid var(--linha); border-radius: 12px;
}
.phc-qr img { width: 180px; height: 180px; border-radius: 10px; border: 1px solid var(--linha); padding: 8px; }
.phc-qr__espera {
  width: 180px; height: 180px; border-radius: 10px; border: 1px dashed #cbd5e1;
  display: grid; place-items: center; color: var(--fraco); font-size: 1.4rem;
}
.phc-qr ol { margin: 0; padding-left: 1.1rem; font-size: .84rem; color: var(--texto); line-height: 2; flex: 1; min-width: 200px; }
.phc-qr strong { color: var(--tinta); }

.phc-inst__aviso {
  display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0;
  font-size: .8rem; color: #92400e; line-height: 1.55;
  background: #fffbeb; border-radius: 10px; padding: .8rem .95rem;
}
.phc-inst__aviso i { margin-top: 3px; color: #d97706; }

.phc-ambiente {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px solid #f5f7fa;
}
.phc-ambiente__texto { flex: 1 1 300px; }
.phc-ambiente__texto strong { display: block; font-size: .86rem; margin-bottom: .3rem; }
.phc-ambiente__texto span { font-size: .8rem; color: var(--texto); }
.phc-ambiente__campos { display: flex; flex-direction: column; gap: .6rem; flex: 0 1 320px; }

/* ── INSIGHTS ─────────────────────────────────────────────────────────── */
.phc-periodo { display: flex; gap: .15rem; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.phc-periodo__btn {
  border: 0; background: none; color: var(--fraco); border-radius: 8px;
  padding: .35rem .85rem; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer;
}
.phc-periodo__btn.is-ativa { background: #fff; color: var(--marca); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }

/* Duas colunas de indicador, nunca quatro */
.phc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.phc-kpis--tres { grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .phc-kpis--tres { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.phc-kpi { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.phc-kpi__v { font-size: 2rem; font-weight: 800; color: var(--tinta); line-height: 1.05; letter-spacing: -.03em; }
.phc-kpi__l { font-size: .78rem; font-weight: 600; color: var(--texto); }
.phc-kpi__d { font-size: .76rem; color: var(--fraco); }
.phc-kpi.is-bom .phc-kpi__v { color: #059669; }
.phc-kpi.is-ruim .phc-kpi__v { color: #dc2626; }

.phc-grafico-bloco { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #f5f7fa; }
.phc-legenda { display: flex; gap: 1.5rem; font-size: .76rem; color: var(--fraco); margin-bottom: 1rem; }
.phc-legenda span { display: inline-flex; align-items: center; gap: .45rem; }
.phc-quadro { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.phc-quadro.is-bot { background: #a5c8f0; }
.phc-quadro.is-humano { background: var(--marca); }

.phc-grafico { display: flex; align-items: flex-end; gap: .35rem; height: 170px; overflow-x: auto; }
.phc-barra { flex: 1; min-width: 24px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.phc-barra__pilha {
  width: 100%; max-width: 34px; margin-top: auto; min-height: 3px;
  background: #a5c8f0; border-radius: 6px 6px 0 0; display: flex; flex-direction: column;
  overflow: hidden; transition: opacity .15s;
}
.phc-barra:hover .phc-barra__pilha { opacity: .75; }
.phc-barra__humano { width: 100%; background: var(--marca); }
.phc-barra__label { font-size: .64rem; color: var(--fraco); margin-top: .5rem; white-space: nowrap; }

.phc-funcoes { list-style: none; margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid #f5f7fa; display: flex; flex-direction: column; gap: .85rem; }
.phc-funcoes li { display: grid; grid-template-columns: 1fr 120px 36px; gap: 1rem; align-items: center; }
.phc-funcoes__nome { font-size: .82rem; color: var(--texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phc-funcoes__barra { height: 5px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.phc-funcoes__barra i { display: block; height: 100%; background: var(--marca); border-radius: 999px; }
.phc-funcoes__n { font-size: .82rem; font-weight: 700; text-align: right; }

/* ── MARKETING ────────────────────────────────────────────────────────── */
.phc-modelos { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 860px) { .phc-modelos { grid-template-columns: 1fr 1fr; } }
.phc-modelo {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--linha); border-radius: 12px; padding: 1.1rem 1.2rem;
  transition: border-color .15s;
}
.phc-modelo:hover { border-color: #cfe0f5; }
.phc-modelo.is-on { border-color: #bbf3d4; background: #fbfefc; }
.phc-modelo__icone {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #f1f5f9; color: var(--fraco); display: grid; place-items: center; font-size: .88rem;
}
.phc-modelo.is-on .phc-modelo__icone { background: #ecfdf5; color: #059669; }
.phc-modelo__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.phc-modelo__texto strong { font-size: .86rem; font-weight: 700; }
.phc-modelo__texto span { font-size: .78rem; color: var(--texto); line-height: 1.5; }
.phc-modelo__texto em {
  font-size: .68rem; font-style: normal; color: var(--fraco);
  text-transform: uppercase; letter-spacing: .06em; margin-top: .25rem;
}
.phc-modelo__botao {
  flex-shrink: 0; border: 1px solid var(--linha); background: var(--papel); color: var(--texto);
  border-radius: 999px; padding: .4rem 1rem; font: inherit; font-size: .76rem;
  font-weight: 700; cursor: pointer; transition: all .15s;
}
.phc-modelo__botao:hover:not(:disabled) { border-color: var(--marca); color: var(--marca); }
.phc-modelo__botao.is-on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.phc-modelo__botao:disabled { opacity: .5; cursor: not-allowed; }

.phc-campanhas { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .phc-campanhas { grid-template-columns: 1fr 1fr; } }
.phc-campanha {
  background: var(--papel); border: 1px solid var(--linha); border-radius: 16px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .15s;
}
.phc-campanha:hover { border-color: #cfe0f5; }
.phc-campanha.is-pausada { opacity: .62; }
.phc-campanha__topo { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.phc-campanha__tipo {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px; padding: .2rem .6rem; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; background: #f1f5f9; color: var(--texto);
}
.phc-campanha__tipo.is-azul    { background: #eff6ff; color: #1d4ed8; }
.phc-campanha__tipo.is-ciano   { background: #f0f9ff; color: #0369a1; }
.phc-campanha__tipo.is-ambar   { background: #fffbeb; color: #b45309; }
.phc-campanha__tipo.is-verde   { background: #ecfdf5; color: #047857; }
.phc-campanha__tipo.is-ardosia { background: #f8fafc; color: #475569; }
.phc-campanha__auto {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #faf5ff; color: #7e22ce; border-radius: 999px; padding: .2rem .6rem;
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
/* O nome interno desce para a própria linha, abaixo do título */
.phc-campanha__nome { flex: 1 0 100%; order: 9; font-size: .74rem; color: var(--fraco); }
.phc-campanha h4 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.phc-campanha__msg {
  margin: 0; font-size: .84rem; color: var(--texto); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.phc-campanha__meta {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .76rem; color: var(--fraco);
  padding-top: .5rem;
}
.phc-campanha__meta i { margin-right: .45rem; width: 12px; text-align: center; }

.phc-metricas {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem;
  padding: 1rem 0; border-top: 1px solid #f5f7fa; border-bottom: 1px solid #f5f7fa;
}
.phc-metricas div { display: flex; align-items: baseline; gap: .35rem; }
.phc-metricas strong { font-size: .95rem; font-weight: 800; color: var(--tinta); }
.phc-metricas span { font-size: .74rem; color: var(--fraco); }
.phc-metricas .is-bom strong { color: #059669; }
.phc-campanha__acoes { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }

.phc-previa-lista { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.phc-previa-item { border-left: 2px solid var(--marca); padding: .3rem 0 .3rem .85rem; display: flex; flex-direction: column; gap: .2rem; }
.phc-previa-item strong { font-size: .84rem; }
.phc-previa-item span { font-size: .8rem; color: var(--texto); }

/* ── INSIGHTS DE UMA CAMPANHA ─────────────────────────────────────────── */
.phc-insights { margin-top: .5rem; padding: 1.25rem 0 .5rem; border-top: 1px solid #f5f7fa; }
.phc-insights__topo { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; font-size: .78rem; color: var(--fraco); }
.phc-insights__topo strong { font-size: 1.05rem; color: var(--tinta); margin-right: .2rem; font-weight: 800; }
.phc-insights__quando { flex: 1 0 100%; font-size: .72rem; margin-top: .35rem; }
.phc-mini-grafico { display: flex; align-items: flex-end; gap: .25rem; height: 70px; margin-top: 1.25rem; }
.phc-mini-barra { flex: 1; min-width: 12px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.phc-mini-barra__col {
  width: 100%; max-width: 22px; margin-top: auto; min-height: 2px;
  background: #cfe0f5; border-radius: 4px 4px 0 0; display: flex; flex-direction: column; justify-content: flex-end;
}
.phc-mini-barra__cliques { width: 100%; background: #059669; border-radius: 4px 4px 0 0; }
.phc-mini-barra span { font-size: .58rem; color: #cbd5e1; margin-top: .35rem; }
.phc-disparos { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; }
.phc-disparos li { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; padding: .5rem 0; border-bottom: 1px solid #f8fafc; }
.phc-disparos li:last-child { border-bottom: 0; }
.phc-disparos__quem { color: var(--texto); font-weight: 600; }
.phc-disparos__quando { color: var(--fraco); }

/* ── INTEGRAÇÃO ───────────────────────────────────────────────────────── */
.phc-integracao.is-ok { border-color: #bbf3d4; }
.phc-integracao.is-indisponivel { border-color: #fde68a; }
.phc-integracao__linha { display: flex; gap: .65rem; align-items: flex-start; margin: 0 0 .75rem; font-size: .86rem; color: var(--texto); line-height: 1.6; }
.phc-integracao__linha > i { color: #10b981; margin-top: 4px; }
.phc-integracao__linha.is-alerta > i { color: #d97706; }
.phc-integracao__linha strong { color: var(--tinta); }

/* ── CONHECIMENTO E TREINO ────────────────────────────────────────────── */
.phc-passo {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  background: var(--marca); color: #fff; font-size: .72rem; font-weight: 800; margin-right: .2rem;
}
.phc-saber { display: flex; flex-direction: column; gap: 1.15rem; }
.phc-saber__item { display: flex; gap: .85rem; align-items: flex-start; }
.phc-saber__item > i { color: #cbd5e1; margin-top: 4px; font-size: .9rem; }
.phc-saber__item.is-ok > i { color: #10b981; }
.phc-saber__item.is-alerta > i { color: #f59e0b; }
.phc-saber__item strong { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .1rem; }
.phc-saber__item span { font-size: .8rem; color: var(--texto); line-height: 1.55; }
.phc-modulos { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f5f7fa; }
.phc-tag-modulo { background: #f5f7fb; color: var(--texto); border-radius: 6px; padding: .18rem .5rem; font-size: .7rem; }

.phc-correcoes { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #f5f7fa; }
.phc-correcoes h4 { margin: 0 0 1rem; font-size: .66rem; font-weight: 800; color: var(--fraco); text-transform: uppercase; letter-spacing: .1em; }
.phc-correcao { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid #f8fafc; }
.phc-correcao:last-child { border-bottom: 0; }
.phc-correcao__texto { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.phc-correcao__texto strong { font-size: .86rem; font-weight: 700; }
.phc-correcao__texto span { font-size: .8rem; color: var(--texto); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phc-correcao__texto em { font-size: .72rem; color: var(--fraco); font-style: normal; margin-top: .2rem; }

.phc-teste { display: flex; flex-direction: column; gap: .6rem; max-width: 620px; }
@media (min-width: 760px) { .phc-teste { flex-direction: row; align-items: center; max-width: none; } .phc-teste .phc-input { flex: 1; } }
.phc-resposta { margin-top: 1.5rem; border-left: 2px solid var(--marca); padding: .25rem 0 .25rem 1.15rem; }
.phc-resposta__rot { display: block; font-size: .68rem; font-weight: 800; color: var(--marca); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.phc-resposta p { margin: 0; font-size: .86rem; color: var(--texto); line-height: 1.7; white-space: pre-wrap; }

/* ── MODAL ────────────────────────────────────────────────────────────── */
.phc-modal-fundo { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; z-index: 1000; padding: 1.5rem; }
.phc-modal { background: var(--papel); border-radius: 18px; width: min(880px, 100%); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); }
.phc-modal__cabeca { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--linha); }
.phc-modal__cabeca h3 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1rem; font-weight: 800; }
.phc-modal__cabeca i { color: var(--marca); }
.phc-modal__x { background: none; border: 0; font-size: 1.5rem; color: var(--fraco); cursor: pointer; line-height: 1; padding: 0 .25rem; }
.phc-modal__corpo { padding: 1.75rem; overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 820px) { .phc-modal__corpo { grid-template-columns: 1fr 280px; } }
.phc-modal__pe { display: flex; justify-content: flex-end; gap: .75rem; padding: 1.15rem 1.75rem; border-top: 1px solid var(--linha); background: var(--sutil); }

.phc-previa { position: sticky; top: 0; }
.phc-previa__rot { display: block; font-size: .66rem; font-weight: 800; color: var(--fraco); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.phc-balao { border-radius: 16px; overflow: hidden; background: var(--papel); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.phc-balao__topo { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; color: #fff; font-size: .8rem; font-weight: 700; }
.phc-balao__x { margin-left: auto; opacity: .75; }
.phc-balao__corpo { padding: 1.15rem 1rem; }
.phc-balao__corpo strong { display: block; font-size: .88rem; margin-bottom: .4rem; }
.phc-balao__corpo p { margin: 0; font-size: .82rem; color: var(--texto); line-height: 1.6; white-space: pre-wrap; }
.phc-balao__cta { display: inline-block; margin-top: 1rem; padding: .5rem .95rem; border-radius: 9px; background: var(--marca); color: #fff; font-size: .8rem; font-weight: 700; }
.phc-balao__pe { padding: .5rem 1rem 1rem; font-size: .7rem; color: var(--fraco); }
.phc-canais-env { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.phc-canal-env { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--papel); color: var(--texto); font-size: .82rem; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.phc-canal-env:hover { border-color: var(--marca-clara); color: var(--marca); }
.phc-canal-env.is-on { border-color: var(--marca); background: #eef4fd; color: var(--marca); }
.phc-canal-env__ok { font-size: .7rem; }
.phc-card-prev { border-radius: 20px; overflow: hidden; background: #f3f6fb; box-shadow: 0 16px 36px rgba(15, 23, 42, .18); }
.phc-card-prev__topo { display: flex; align-items: center; gap: .6rem; padding: .85rem .9rem 1.2rem; color: #fff; background: linear-gradient(135deg, #1166cc 0%, var(--marca) 45%, var(--marca-escura) 100%); }
.phc-card-prev__topo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: #d8e6fa; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.phc-card-prev__topo strong { display: block; font-size: .85rem; }
.phc-card-prev__topo span { display: block; font-size: .68rem; opacity: .85; }
.phc-card-prev__corpo { padding: .9rem .75rem 1.1rem; margin-top: -.6rem; border-radius: 14px 14px 0 0; background: #f3f6fb; }
.phc-card-prev__camp { position: relative; margin-left: 34px; }
.phc-card-prev__mg { position: absolute; left: -38px; top: -6px; width: 40px; height: 78px; object-fit: contain; object-position: 50% 0; }
.phc-card-prev__in { position: relative; background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; padding: .75rem .8rem .65rem .95rem; box-shadow: 0 8px 20px rgba(15, 23, 42, .08); overflow: hidden; }
.phc-card-prev__in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc, #0A4EA0); }
.phc-card-prev__tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--cc, #0A4EA0); background: #eef2f8; border-radius: 999px; padding: .15rem .5rem; margin-bottom: .4rem; }
.phc-card-prev__in strong { display: block; font-size: .82rem; color: #0f172a; margin-bottom: .25rem; }
.phc-card-prev__in p { margin: 0; font-size: .76rem; color: var(--texto); line-height: 1.5; white-space: pre-wrap; }
.phc-card-prev__cta { display: inline-block; margin-top: .55rem; padding: .35rem .7rem; border-radius: 8px; background: var(--cc, #0A4EA0); color: #fff; font-size: .72rem; font-weight: 700; }
.phc-card-prev__in small { display: block; margin-top: .45rem; font-size: .62rem; color: var(--fraco); }
.phc-previa .phc-ajuda { display: block; margin-top: .75rem; }

/* ── VAZIO ────────────────────────────────────────────────────────────── */
.phc-vazio { text-align: center; padding: 4rem 1.5rem; color: var(--fraco); background: var(--papel); border: 1px solid var(--linha); border-radius: 16px; }
.phc-vazio i { font-size: 1.75rem; color: #dbe3ec; }
.phc-vazio h4 { margin: 1rem 0 .4rem; font-size: .95rem; font-weight: 700; color: var(--texto); }
.phc-vazio p { margin: 0 auto; font-size: .84rem; max-width: 44ch; }

/* ── TELAS ESTREITAS ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .phc-page { padding: 1rem 1rem 3rem; }
  .phc-hero { padding: 1.75rem 1.5rem; border-radius: 16px; }
  .phc-hero h1 { font-size: 1.35rem; }
  .phc-produtos { gap: 1rem; }
  .phc-palco { width: 116px; height: 148px; border-radius: 18px; }
  .phc-palco__mascote { height: 128px; margin-left: -25px; bottom: 10px; }
  .phc-palco__aura { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .phc-palco__orbita { width: 100px; height: 100px; margin: -50px 0 0 -50px; }
  .phc-palco__chao { width: 56px; margin-left: -28px; bottom: 13px; }
  .phc-card { padding: 1.25rem; }
  .phc-kpis, .phc-kpis--tres { grid-template-columns: 1fr; gap: 1.5rem; }
  .phc-abas { gap: 0; }
  .phc-aba { margin-right: 1rem; font-size: .8rem; }
  .phc-linha-inst__dados { margin-left: 0; flex-basis: 100%; }
  .phc-linha-inst__acoes { flex-basis: 100%; }
  .phc-funcoes li { grid-template-columns: 1fr 70px 30px; gap: .6rem; }
}

/* ── INTELIGÊNCIA ─────────────────────────────────────────────────────── */
.phc-nivel { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.phc-nivel__medida { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.phc-anel { width: 130px; height: 130px; transform: rotate(-90deg); }
.phc-anel__fundo { fill: none; stroke: #eef2f7; stroke-width: 9; }
.phc-anel__valor {
  fill: none; stroke: var(--marca); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dasharray .8s cubic-bezier(.22, 1, .36, 1);
}
.phc-nivel__centro {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.phc-nivel__centro strong { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.phc-nivel__centro span { font-size: .68rem; color: var(--fraco); }
.phc-nivel__texto { flex: 1; min-width: 260px; }
.phc-nivel__rotulo {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--marca); margin-bottom: .35rem;
}
.phc-nivel__texto h3 { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.phc-nivel__partida {
  margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #f5f7fa;
  font-size: .8rem;
}
.phc-nivel__partida i { color: var(--marca); margin-right: .35rem; }

.phc-areas { display: flex; flex-direction: column; gap: .5rem; }
.phc-area {
  display: grid; grid-template-columns: 32px 1fr 160px 36px; gap: 1rem; align-items: center;
  border: 0; background: none; padding: .45rem 0; cursor: pointer; font: inherit; text-align: left;
  border-bottom: 1px solid #f8fafc;
}
.phc-area:hover .phc-area__nome { color: var(--marca); }
.phc-area__icone {
  width: 28px; height: 28px; border-radius: 8px; background: #f5f7fb;
  color: var(--fraco); display: grid; place-items: center; font-size: .78rem;
}
.phc-area__nome { font-size: .84rem; color: var(--texto); }
.phc-area__barra { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.phc-area__barra i { display: block; height: 100%; background: var(--marca); border-radius: 999px; }
.phc-area__n { font-size: .82rem; font-weight: 700; text-align: right; }

.phc-filtros { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.phc-filtros .phc-input { flex: 1; min-width: 220px; }

.phc-topicos, .phc-sugestoes, .phc-lacunas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phc-topico, .phc-lacuna {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid #f5f7fa;
}
.phc-topico:last-child, .phc-lacuna:last-child { border-bottom: 0; }
.phc-topico.is-inativo { opacity: .5; }
.phc-topico__texto, .phc-lacuna__texto { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.phc-topico__texto strong, .phc-lacuna__texto strong { font-size: .88rem; font-weight: 700; }
.phc-topico__texto span {
  font-size: .8rem; color: var(--texto); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.phc-topico__texto em, .phc-lacuna__texto em { font-size: .74rem; color: var(--fraco); font-style: normal; }
.phc-topico__acoes, .phc-lacuna__acoes { display: flex; gap: .4rem; flex-shrink: 0; }

.phc-sugestao { padding: 1.35rem 0; border-bottom: 1px solid #f5f7fa; }
.phc-sugestao:last-child { border-bottom: 0; }
.phc-sugestao__topo { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.phc-sugestao__topo strong { flex: 1 0 100%; font-size: .92rem; font-weight: 700; margin-top: .3rem; }
.phc-sugestao__origem {
  display: inline-flex; align-items: center; gap: .35rem; background: #f1f5f9;
  border-radius: 999px; padding: .18rem .6rem; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: var(--texto);
}
.phc-sugestao__conf { font-size: .74rem; color: var(--fraco); }
.phc-sugestao__resumo { margin: 0 0 .6rem; font-size: .8rem; color: var(--texto); }
.phc-sugestao__conteudo {
  margin: .85rem 0; padding: 1rem 1.15rem; background: var(--sutil);
  border-radius: 12px; font-size: .8rem; line-height: 1.7; color: var(--texto);
  white-space: pre-wrap; max-height: 320px; overflow-y: auto; font-family: inherit;
}
.phc-sugestao__acoes { display: flex; gap: .4rem; flex-wrap: wrap; }

.phc-agentes { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .phc-agentes { grid-template-columns: 1fr 1fr; } }
.phc-agente {
  background: var(--papel); border: 1px solid var(--linha); border-radius: 16px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.phc-agente.is-preparado { border-color: #cfe0f5; }
.phc-agente.is-ativo { border-color: #bbf3d4; }
.phc-agente__topo { display: flex; align-items: center; justify-content: space-between; }
.phc-agente__icone {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--marca-escura), var(--marca)); color: #fff; font-size: 1rem;
}
.phc-agente h4 { margin: 0; font-size: .98rem; font-weight: 800; }
.phc-agente__desc { margin: 0; font-size: .82rem; color: var(--texto); line-height: 1.6; }
.phc-agente__campos { margin: .5rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.phc-agente__campos div { display: flex; flex-direction: column; gap: .1rem; }
.phc-agente__campos dt {
  font-size: .64rem; font-weight: 800; color: var(--fraco);
  text-transform: uppercase; letter-spacing: .08em;
}
.phc-agente__campos dd { margin: 0; font-size: .8rem; color: var(--texto); }
.phc-agente__acoes { margin-top: auto; padding-top: .85rem; }

.phc-modal__corpo--simples { grid-template-columns: 1fr !important; }
.phc-modal__corpo--simples .phc-form { max-width: none; }

@media (max-width: 760px) {
  .phc-nivel { gap: 1.5rem; }
  .phc-area { grid-template-columns: 28px 1fr 60px 30px; gap: .6rem; }
  .phc-topico, .phc-lacuna { flex-direction: column; gap: .75rem; }
}

/* Voltar ao painel — presente em toda seção da Inteligência */
.phc-voltar {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--linha); background: var(--papel); color: var(--texto);
  border-radius: 9px; cursor: pointer; font-size: .78rem; margin-right: .35rem;
  transition: all .15s;
}
.phc-voltar:hover { border-color: var(--marca); color: var(--marca); background: #f8fbff; }

/* ── DETALHE DO PRODUTO ───────────────────────────────────────────────── */
.phc-produto { border: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.phc-produto:hover .phc-produto__nome { text-decoration: underline; text-underline-offset: 3px; }
.phc-produto:hover .phc-produto__barra i { filter: brightness(1.15); }

.phc-composicao { display: flex; flex-direction: column; gap: 1.5rem; }
.phc-comp { display: flex; flex-direction: column; gap: .55rem; }
.phc-comp__topo {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  border: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer;
}
.phc-comp__icone {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: #f1f5f9; color: var(--fraco); display: grid; place-items: center; font-size: .85rem;
}
.phc-comp.is-completo .phc-comp__icone { background: #ecfdf5; color: #059669; }
.phc-comp.is-fraco .phc-comp__icone { background: #fff7ed; color: #c2410c; }
.phc-comp__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.phc-comp__id strong { font-size: .88rem; font-weight: 700; }
.phc-comp__id span { font-size: .78rem; color: var(--texto); }
.phc-comp__n { text-align: right; flex-shrink: 0; }
.phc-comp__n strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1; }
.phc-comp__n span { font-size: .72rem; color: var(--fraco); }
.phc-comp__seta { color: #cbd5e1; font-size: .75rem; }
.phc-comp__barra { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.phc-comp__barra i { display: block; height: 100%; background: var(--marca); border-radius: 999px; transition: width .6s ease; }
.phc-comp.is-completo .phc-comp__barra i { background: #10b981; }
.phc-comp.is-fraco .phc-comp__barra i { background: #f97316; }
.phc-comp__pe { display: flex; justify-content: space-between; gap: 1rem; font-size: .74rem; color: var(--fraco); }

.phc-comp__exemplos { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; }
.phc-comp__exemplos li {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem 0 .75rem 1rem; border-left: 2px solid var(--linha); margin-bottom: .4rem;
}
.phc-comp__exemplos strong { font-size: .84rem; font-weight: 700; }
.phc-comp__exemplos span { font-size: .8rem; color: var(--texto); line-height: 1.55; }
.phc-comp__exemplos em { font-size: .72rem; color: var(--fraco); font-style: normal; }

.phc-area--estatica { cursor: default; }

/* Público do tópico: cliente, equipe ou os dois */
.phc-publico {
  display: inline-flex; align-items: center; gap: .25rem; margin-right: .5rem;
  border-radius: 5px; padding: .08rem .4rem; font-size: .66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.phc-publico i { font-size: .6rem; }
.phc-publico.is-cliente { background: #eff6ff; color: #1d4ed8; }
.phc-publico.is-interno { background: #fef3c7; color: #92400e; }
.phc-publico.is-ambos   { background: #f1f5f9; color: var(--texto); }

/* Cinco produtos no topo: a quinta coluna é o Copilot */
@media (min-width: 900px) { .phc-produtos { grid-template-columns: repeat(5, 1fr); } }

/* ── COPILOT POR DEPARTAMENTO ─────────────────────────────────────────── */
.phc-perfis { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .phc-perfis { grid-template-columns: 1fr 1fr; } }
.phc-perfil { border: 1px solid var(--linha); border-radius: 12px; padding: 1.15rem 1.25rem; }
.phc-perfil__topo { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .75rem; }
.phc-perfil__topo > div { flex: 1; min-width: 0; }
.phc-perfil__topo strong { display: block; font-size: .9rem; font-weight: 700; }
.phc-perfil__topo span { font-size: .78rem; color: var(--texto); line-height: 1.5; }
.phc-perfil__icone {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--marca-escura), var(--marca));
  color: #fff; display: grid; place-items: center; font-size: .85rem;
}
.phc-perfil__topo .phc-pill { flex-shrink: 0; }
.phc-perfil__regras {
  margin: 0; padding-left: 1.05rem; font-size: .78rem; color: var(--texto); line-height: 1.65;
}
.phc-perfil__regras li { margin-bottom: .2rem; }

.phc-deptos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phc-deptos li {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 0; border-bottom: 1px solid #f5f7fa;
}
.phc-deptos li:last-child { border-bottom: 0; }
.phc-deptos__nome { font-size: .86rem; font-weight: 600; }
.phc-deptos__auto {
  font-size: .68rem; color: var(--fraco); background: #f5f7fb;
  border-radius: 5px; padding: .1rem .45rem;
}
.phc-deptos li .phc-input { margin-left: auto; }

/* ── DETALHE DO PRODUTO: insights e edição no mesmo lugar ─────────────── */

/* Estado da busca semântica. Fica no cabeçalho do produto porque é lá que a
   pergunta aparece: "editei — ele já sabe?" */
.phc-indice {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600;
  border-radius: 999px; padding: .18rem .6rem;
}
.phc-indice.is-ok { background: #ecfdf5; color: #047857; }
.phc-indice.is-atraso { background: #fff7ed; color: #c2410c; }
.phc-indice__acao {
  border: 0; background: transparent; cursor: pointer; padding: 0 0 0 .35rem;
  font: inherit; color: var(--marca); text-decoration: underline;
}

/* O tipo de conhecimento vira filtro da lista; o selecionado precisa ficar
   evidente, senão a lista parece ter encolhido sozinha. */
.phc-comp.is-filtrado .phc-comp__icone { background: var(--marca); color: #fff; }
.phc-comp.is-filtrado .phc-comp__seta { color: var(--marca); }

/* Duas colunas no máximo — regra 1 do arquivo. */
.phc-insights { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) { .phc-insights { grid-template-columns: 1fr; } }

.phc-insight { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.phc-insight__cabeca h4 {
  margin: 0; font-size: .86rem; font-weight: 700;
  display: flex; align-items: center; gap: .45rem;
}
.phc-insight__cabeca h4 i { color: var(--marca); font-size: .8rem; }
.phc-insight__cabeca p { margin: .25rem 0 0; font-size: .76rem; color: var(--fraco); line-height: 1.55; }

/* Barra horizontal simples: nome, barra, número. */
.phc-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.phc-barras li { display: flex; align-items: center; gap: .65rem; }
.phc-barras__nome {
  font-size: .78rem; width: 130px; flex-shrink: 0;
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phc-barras__nome i { color: var(--fraco); font-size: .72rem; }
.phc-barras__barra { flex: 1; height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.phc-barras__barra i { display: block; height: 100%; background: var(--marca); border-radius: 999px; transition: width .6s ease; }
.phc-barras__n { font-size: .78rem; font-weight: 700; width: 62px; text-align: right; flex-shrink: 0; }
.phc-barras__n em { font-style: normal; font-weight: 400; color: var(--fraco); font-size: .7rem; margin-left: .3rem; }

/* Lista sem caixa: título e uma linha de contexto. */
.phc-lista-seca { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phc-lista-seca li {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .55rem 0; border-bottom: 1px solid #f5f7fa;
}
.phc-lista-seca li:last-child { border-bottom: 0; }
.phc-lista-seca strong { font-size: .8rem; font-weight: 600; line-height: 1.45; }
.phc-lista-seca em { font-size: .72rem; color: var(--fraco); font-style: normal; }
.phc-lista-seca em i { margin-right: .2rem; }

.is-clicavel { cursor: pointer; }
.phc-lista-seca li.is-clicavel:hover strong { color: var(--marca); }
.phc-topico__texto strong.is-clicavel:hover { color: var(--marca); }

/* O conteúdo inteiro do tópico, aberto sem sair da lista. */
.phc-topico__corpo {
  margin: .35rem 0 .1rem; padding: .8rem 1rem;
  background: var(--sutil); border: 1px solid var(--linha); border-radius: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .74rem; line-height: 1.65; color: var(--texto);
  white-space: pre-wrap; word-break: break-word;
  max-height: 420px; overflow: auto;
}

.phc-ajuda--destaque {
  display: flex; align-items: flex-start; gap: .45rem;
  background: #f0f6ff; border-radius: 8px; padding: .6rem .75rem;
  color: var(--marca-escura); margin: 0;
}
.phc-ajuda--destaque i { color: var(--marca); margin-top: .15rem; }

.phc-indice-saude {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--linha);
}
.phc-indice-saude .phc-nota { margin: 0; flex: 1; min-width: 200px; }

/* ── BIBLIOTECA DO PRODUTO: escolher à esquerda, ler/editar à direita ───────
   O problema da versão anterior não era falta de informação, era ordem: os
   gráficos vinham primeiro e o conteúdo — a única coisa que se edita — ficava
   no fim de uma página longa. Clicar num filtro mudava algo fora da tela.
   Aqui as duas colunas rolam por dentro e a PÁGINA não rola: o que você clica
   à esquerda aparece à direita, na mesma altura do olho. */

.phc-prod-topo {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  background: var(--papel); border: 1px solid var(--linha); border-radius: 14px;
  padding: .9rem 1.1rem; margin-bottom: 1rem;
}
.phc-prod-topo__icone {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--marca-escura), var(--marca));
  color: #fff; display: grid; place-items: center; font-size: .95rem;
}
.phc-prod-topo__id { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 180px; }
.phc-prod-topo__id strong { font-size: 1rem; font-weight: 700; }
.phc-prod-topo__id span { font-size: .78rem; color: var(--fraco); }

.phc-abas-canal--prod { margin-bottom: 1rem; }

/* A grade: 320px de lista + o resto de leitura. Altura presa à janela para
   que a rolagem aconteça DENTRO de cada coluna. */
.phc-bib {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem;
  height: calc(100vh - 260px); min-height: 460px;
}
@media (max-width: 900px) {
  /* Em tela estreita não há "ao lado": vira uma coluna e a altura solta. */
  .phc-bib { grid-template-columns: 1fr; height: auto; }
  .phc-bib__lista { max-height: 60vh; }
}

.phc-bib__lista {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden;
}

.phc-bib__busca {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem .9rem; border-bottom: 1px solid var(--linha); flex-shrink: 0;
}
.phc-bib__busca > i { color: var(--fraco); font-size: .8rem; }
.phc-bib__busca input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .84rem; color: var(--tinta);
}
.phc-bib__busca input::placeholder { color: var(--fraco); }
.phc-bib__busca button {
  border: 0; background: transparent; cursor: pointer; color: var(--fraco); padding: 0;
}
.phc-bib__busca button:hover { color: var(--tinta); }

.phc-bib__tipos {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .7rem .9rem; border-bottom: 1px solid var(--linha); flex-shrink: 0;
}
.phc-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--linha); background: var(--sutil); color: var(--texto);
  border-radius: 999px; padding: .2rem .55rem; font-size: .72rem; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.phc-chip i { font-size: .68rem; opacity: .75; }
.phc-chip em { font-style: normal; font-weight: 700; opacity: .6; }
.phc-chip:hover { border-color: var(--marca-clara); color: var(--marca); }
.phc-chip.is-ativo { background: var(--marca); border-color: var(--marca); color: #fff; }
.phc-chip.is-ativo em { opacity: .85; }

/* Só esta parte rola */
.phc-bib__rolagem { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.phc-bib__rolagem > .phc-vazio-linha { padding: 1.25rem .9rem; }
.phc-bib__itens { list-style: none; margin: 0; padding: 0; }

.phc-item {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: .2rem;
  background: transparent; border: 0; border-bottom: 1px solid #f5f7fa;
  border-left: 3px solid transparent;
  padding: .7rem .9rem; font: inherit;
  transition: background .12s, border-color .12s;
}
.phc-item:hover { background: var(--sutil); }
.phc-item.is-ativo { background: #f0f6ff; border-left-color: var(--marca); }
.phc-item.is-rascunho { opacity: .6; }
.phc-item__titulo {
  font-size: .84rem; font-weight: 700; color: var(--tinta); line-height: 1.35;
}
.phc-item.is-ativo .phc-item__titulo { color: var(--marca-escura); }
/* Duas linhas de resumo: o suficiente para saber do que se trata sem abrir */
.phc-item__resumo {
  font-size: .75rem; color: var(--texto); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.phc-item__pe { font-size: .68rem; color: var(--fraco); display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.phc-item__pe em { font-style: normal; }
.phc-item__pe em.is-alerta { color: #c2410c; font-weight: 600; }

.phc-bib__pe {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .65rem .9rem; border-top: 1px solid var(--linha); flex-shrink: 0;
  font-size: .74rem; color: var(--fraco);
}

/* ── Painel da direita ─────────────────────────────────────────────────── */
.phc-bib__leitura {
  background: var(--papel); border: 1px solid var(--linha); border-radius: 14px;
  overflow-y: auto; overscroll-behavior: contain; min-height: 0;
}

.phc-bib__nada {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.5rem 2rem; gap: .5rem;
}
.phc-bib__nada > i { font-size: 1.9rem; color: #cbd5e1; margin-bottom: .3rem; }
.phc-bib__nada h4 { margin: 0; font-size: .95rem; font-weight: 700; }
.phc-bib__nada p { margin: 0; max-width: 380px; font-size: .8rem; color: var(--fraco); line-height: 1.6; }

.phc-leitura, .phc-edicao { padding: 1.4rem 1.6rem 2rem; }
.phc-leitura__cabeca h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.phc-leitura__selos { display: flex; flex-wrap: wrap; gap: .35rem; }
.phc-selo {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--sutil); border: 1px solid var(--linha); border-radius: 999px;
  padding: .15rem .5rem; font-size: .69rem; font-weight: 600; color: var(--texto);
}
.phc-selo i { font-size: .65rem; color: var(--fraco); }
.phc-leitura__acoes {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin: 1.1rem 0; padding-bottom: 1.1rem; border-bottom: 1px solid var(--linha);
}

/* O texto do tópico renderizado como documento, não como markdown cru */
.phc-doc { font-size: .87rem; line-height: 1.75; color: var(--texto); }
.phc-doc > *:first-child { margin-top: 0; }
.phc-doc h1, .phc-doc h2, .phc-doc h3, .phc-doc h4 {
  color: var(--tinta); font-weight: 700; line-height: 1.35; margin: 1.6rem 0 .5rem;
}
.phc-doc h1 { font-size: 1.05rem; } .phc-doc h2 { font-size: .98rem; }
.phc-doc h3 { font-size: .92rem; } .phc-doc h4 { font-size: .87rem; }
.phc-doc p { margin: 0 0 .85rem; }
.phc-doc strong { color: var(--tinta); font-weight: 700; }
.phc-doc ul, .phc-doc ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
.phc-doc li { margin-bottom: .3rem; }
.phc-doc code {
  background: var(--sutil); border: 1px solid var(--linha); border-radius: 5px;
  padding: .05rem .3rem; font-size: .82em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.phc-doc pre {
  background: var(--sutil); border: 1px solid var(--linha); border-radius: 10px;
  padding: .85rem 1rem; overflow-x: auto; font-size: .78rem; line-height: 1.6;
}
.phc-doc pre code { background: none; border: 0; padding: 0; }
.phc-doc blockquote {
  margin: 0 0 .9rem; padding: .1rem 0 .1rem .9rem;
  border-left: 3px solid var(--linha); color: var(--fraco);
}
.phc-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .8rem; display: block; overflow-x: auto; }
.phc-doc th, .phc-doc td { border: 1px solid var(--linha); padding: .4rem .6rem; text-align: left; }
.phc-doc th { background: var(--sutil); font-weight: 700; color: var(--tinta); }
.phc-doc hr { border: 0; border-top: 1px solid var(--linha); margin: 1.4rem 0; }
.phc-doc a { color: var(--marca); }

/* ── Edição no próprio painel ──────────────────────────────────────────── */
.phc-edicao__cabeca { margin-bottom: 1.2rem; }
.phc-edicao__cabeca h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.phc-edicao__cabeca h3 i { color: var(--marca); font-size: .9rem; }
.phc-edicao__cabeca p { margin: 0; font-size: .79rem; color: var(--fraco); line-height: 1.6; }
.phc-edicao__corpo { display: flex; flex-direction: column; gap: 1.1rem; }
.phc-edicao__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .phc-edicao__linha { grid-template-columns: 1fr; } }
.phc-textarea--alta { min-height: 300px; font-size: .84rem; line-height: 1.7; resize: vertical; }
.phc-opcional { font-weight: 400; color: var(--fraco); font-size: .74rem; }
.phc-edicao__pe {
  display: flex; justify-content: flex-end; gap: .6rem;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--linha);
}
.phc-edicao .phc-label code {
  background: var(--sutil); border: 1px solid var(--linha); border-radius: 4px;
  padding: 0 .25rem; font-size: .92em;
}

.phc-diag { display: flex; flex-direction: column; gap: 1.5rem; }
.phc-diag .phc-comp__topo { cursor: pointer; }
.phc-diag .phc-comp__topo:hover .phc-comp__id strong { color: var(--marca); }
/* ═══════════════════════════════════════════════════════════════════════════
   Menu IA — Objetivo: 100% IA, Evolução e Curadoria (/admin/ia/*)

   Mesma linguagem da Central Phobos IA e do EAD: azul Phobos para ação e
   destaque, cinza para o resto, verde/âmbar/vermelho só como estado — e
   sempre com ícone e texto, nunca só a cor. O azul fundo da seção IA do menu
   (--iao-ia) aparece no ícone do título, para a tela conversar com o menu.

   Os gráficos da Evolução leem as cores de --iao-s* e --iao-g-*: a paleta de
   visualização da casa (a mesma do EAD e do Objetivo), com o passo próprio do
   modo escuro — não é a mesma cor invertida.

   Modal vai para o <body> por portal, por isso os tokens também moram em
   .iao-camada. O `.dark` acompanha o modo escuro, se um dia ele for ligado.
   ═══════════════════════════════════════════════════════════════════════════ */

.iao-page,
.iao-camada {
  --iao-marca: #0A4EA0;
  --iao-marca-2: #1e6ecf;
  --iao-marca-bg: #eff6ff;
  --iao-ia: #063A7A;
  --iao-ia-bg: #e8f0fb;
  --iao-tinta: #0f172a;
  --iao-texto: #475569;
  --iao-fraco: #8a97ab;
  --iao-linha: #e5eaf2;
  --iao-linha-2: #d3dce8;
  --iao-papel: #ffffff;
  --iao-sutil: #f8fafc;

  --iao-ok: #047857;
  --iao-ok-bg: #ecfdf5;
  --iao-alerta: #b45309;
  --iao-alerta-bg: #fffbeb;
  --iao-erro: #b91c1c;
  --iao-erro-bg: #fef2f2;
  --iao-info: #0e7490;
  --iao-info-bg: #ecfeff;

  /* Gráficos: séries (ordem fixa da paleta) e estados. Os estados são os
     fixos da paleta (bom, atenção, crítico) e só aparecem com ícone e texto. */
  --iao-s1: #2a78d6;
  --iao-s2: #eb6834;
  --iao-s3: #1baf7a;
  --iao-s8: #e34948;
  --iao-g-neutro: #94a3b8;
  --iao-g-bom: #0ca30c;
  --iao-g-atencao: #fab219;
  --iao-g-critico: #d03b3b;
  --iao-g-perigo: #7f1d1d;
  --iao-g-ouro: #eda100;
  --iao-g-prata: #3f80cc;
  --iao-g-bronze: #b3642b;
  --iao-g-excluido: #64748b;
  --iao-g-semclass: #b8c3d3;
  --iao-g-grade: #e8edf3;
  --iao-g-eixo: #d3dce8;
  --iao-g-cursor: #94a3b8;

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--iao-tinta);
}

.dark .iao-page,
.dark .iao-camada {
  --iao-marca: #6ea8ff;
  --iao-marca-2: #8bb9ff;
  --iao-marca-bg: #102a4c;
  --iao-ia: #8bb9ff;
  --iao-ia-bg: #0f2340;
  --iao-tinta: #e7ecf3;
  --iao-texto: #b4bfcf;
  --iao-fraco: #8591a3;
  --iao-linha: #253041;
  --iao-linha-2: #334155;
  --iao-papel: #151c27;
  --iao-sutil: #1b2433;
  --iao-ok: #5fd3a5;
  --iao-ok-bg: #0f2a22;
  --iao-alerta: #f3b35c;
  --iao-alerta-bg: #2e2412;
  --iao-erro: #f08a8a;
  --iao-erro-bg: #331818;
  --iao-info: #67cfe0;
  --iao-info-bg: #0f2a30;

  --iao-s1: #3987e5;
  --iao-s2: #d95926;
  --iao-s3: #199e70;
  --iao-s8: #e66767;
  --iao-g-neutro: #64748b;
  --iao-g-perigo: #f08a8a;
  --iao-g-ouro: #c98500;
  --iao-g-prata: #5b95dc;
  --iao-g-bronze: #c26e33;
  --iao-g-excluido: #8391a7;
  --iao-g-semclass: #475569;
  --iao-g-grade: #253041;
  --iao-g-eixo: #334155;
  --iao-g-cursor: #64748b;
}

.iao-page *, .iao-page *::before, .iao-page *::after,
.iao-camada *, .iao-camada *::before, .iao-camada *::after { box-sizing: border-box; }

.iao-page {
  padding: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.iao-conteudo { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.iao-coluna { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.iao-duas-colunas { display: grid; grid-template-columns: 1fr; gap: 1.15rem; align-items: start; }
@media (min-width: 1100px) { .iao-duas-colunas { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

.iao-muted { color: var(--iao-fraco); }
.iao-sub { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--iao-texto); max-width: 90ch; }
.iao-erro-campo { color: var(--iao-erro); font-size: 0.76rem; margin: 0.2rem 0 0; }
.iao-erro-texto { color: var(--iao-erro); }

/* ── Cabeçalho e abas ────────────────────────────────────────────────────── */

.iao-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.iao-header h1 {
  margin: 0 0 0.3rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.iao-header h1 > i { color: var(--iao-ia); font-size: 1.2rem; }
.iao-header p { margin: 0; font-size: 0.85rem; color: var(--iao-texto); max-width: 80ch; }
.iao-header-acoes { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.iao-abas, .iao-subabas {
  display: flex; gap: 0.2rem; border-bottom: 1px solid var(--iao-linha);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.iao-abas::-webkit-scrollbar, .iao-subabas::-webkit-scrollbar { display: none; }
.iao-aba, .iao-subaba {
  border: 0; background: transparent; cursor: pointer; padding: 0.7rem 1rem; font-size: 0.84rem; font-weight: 600;
  color: var(--iao-texto); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.iao-aba i, .iao-subaba i { font-size: 0.82rem; opacity: 0.8; }
.iao-aba:hover, .iao-subaba:hover { color: var(--iao-marca); }
.iao-aba.ativa, .iao-subaba.ativa { color: var(--iao-marca); border-bottom-color: var(--iao-marca); }
.iao-subabas { border-bottom-color: var(--iao-linha); }
.iao-subaba { padding: 0.6rem 0.85rem; font-size: 0.82rem; }

/* ── Estados ─────────────────────────────────────────────────────────────── */

.iao-carregando { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 3rem 1rem; color: var(--iao-fraco); }
.iao-vazio { text-align: center; padding: 2.5rem 1rem; color: var(--iao-texto); }
.iao-vazio > i { font-size: 1.8rem; color: var(--iao-linha-2); margin-bottom: 0.6rem; }
.iao-vazio h3 { margin: 0 0 0.35rem; font-size: 0.98rem; color: var(--iao-tinta); }
.iao-vazio p { margin: 0 auto; max-width: 60ch; font-size: 0.84rem; }

.iao-negado {
  max-width: 560px; margin: 3rem auto; text-align: center; background: var(--iao-papel);
  border: 1px solid var(--iao-linha); border-radius: 16px; padding: 2.25rem 1.75rem;
}
.iao-negado > i { font-size: 1.8rem; color: var(--iao-fraco); }
.iao-negado h2 { margin: 0.7rem 0 0.45rem; font-size: 1.15rem; }
.iao-negado p { margin: 0; color: var(--iao-texto); }

.iao-avisos { display: flex; flex-direction: column; gap: 0.5rem; }
.iao-aviso {
  display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.75rem 0.95rem; border-radius: 12px;
  font-size: 0.83rem; border: 1px solid transparent; margin: 0;
}
.iao-aviso > i { margin-top: 0.2rem; flex-shrink: 0; }
.iao-aviso > div { min-width: 0; }
.iao-aviso.alerta { background: var(--iao-alerta-bg); color: var(--iao-alerta); border-color: color-mix(in srgb, var(--iao-alerta) 22%, transparent); }
.iao-aviso.erro { background: var(--iao-erro-bg); color: var(--iao-erro); border-color: color-mix(in srgb, var(--iao-erro) 22%, transparent); }
.iao-aviso.info { background: var(--iao-info-bg); color: var(--iao-info); border-color: color-mix(in srgb, var(--iao-info) 20%, transparent); }
.iao-aviso.ok { background: var(--iao-ok-bg); color: var(--iao-ok); border-color: color-mix(in srgb, var(--iao-ok) 20%, transparent); }
.iao-aviso.neutro { background: var(--iao-sutil); color: var(--iao-texto); border-color: var(--iao-linha); }
.iao-aviso strong { color: inherit; }

/* ── Cartões ─────────────────────────────────────────────────────────────── */

.iao-cartao {
  background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 16px;
  padding: 1.35rem 1.5rem; min-width: 0;
}
.iao-cartao__topo {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.9rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.iao-cartao__topo > div:first-child { min-width: 0; flex: 1 1 320px; }
.iao-cartao__topo h2 {
  margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.iao-cartao__topo h2 i { color: var(--iao-marca); font-size: 0.92rem; }
/* A explicação desce para a linha de baixo do título, na largura toda */
.iao-cartao__topo > .iao-sub { flex: 1 0 100%; max-width: none; margin: 0; }

.iao-acoes { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 0.85rem; }
.iao-cartao__topo .iao-acoes { margin-top: 0; }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.iao-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: 10px;
  padding: 0.55rem 1rem; font-size: 0.82rem; font-weight: 700; cursor: pointer; font-family: inherit;
  border: 1px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap;
  min-height: 38px;
}
.iao-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.iao-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.76rem; min-height: 32px; }
.iao-btn-primario { background: var(--iao-marca); color: #fff; }
.iao-btn-primario:not(:disabled):hover { background: var(--iao-marca-2); }
.iao-btn-texto { background: var(--iao-papel); color: var(--iao-texto); border-color: var(--iao-linha-2); }
.iao-btn-texto:not(:disabled):hover { color: var(--iao-marca); border-color: var(--iao-marca); }
.iao-btn-perigo { background: var(--iao-erro); color: #fff; }
.iao-btn-perigo-texto { background: var(--iao-papel); color: var(--iao-erro); border-color: color-mix(in srgb, var(--iao-erro) 35%, transparent); }
.iao-btn-perigo-texto:not(:disabled):hover { background: var(--iao-erro-bg); }
.iao-btn-icone {
  border: 0; background: transparent; color: var(--iao-fraco); width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
}
.iao-btn-icone:hover { background: var(--iao-sutil); color: var(--iao-tinta); }
.iao-btn-icone-texto { background: var(--iao-papel); color: var(--iao-texto); border-color: var(--iao-linha-2); padding: 0.35rem 0.75rem; min-height: 32px; font-size: 0.76rem; }
.iao-btn-icone-texto.marcado { background: var(--iao-marca-bg); color: var(--iao-marca); border-color: var(--iao-marca); }

.iao-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--iao-texto); cursor: pointer; }
.iao-select {
  border: 1px solid var(--iao-linha-2); border-radius: 10px; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.8rem;
  background: var(--iao-papel); color: var(--iao-tinta); max-width: 100%; min-height: 36px;
}

/* ── Pílulas e etiquetas ─────────────────────────────────────────────────── */

.iao-pilula {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap; background: var(--iao-sutil); color: var(--iao-texto);
  border: 1px solid var(--iao-linha); max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.iao-pilula i { font-size: 0.7rem; }
.iao-pilula.ok { background: var(--iao-ok-bg); color: var(--iao-ok); border-color: transparent; }
.iao-pilula.alerta { background: var(--iao-alerta-bg); color: var(--iao-alerta); border-color: transparent; }
.iao-pilula.erro, .iao-pilula.perigo { background: var(--iao-erro-bg); color: var(--iao-erro); border-color: transparent; }
.iao-pilula.info { background: var(--iao-info-bg); color: var(--iao-info); border-color: transparent; }
.iao-pilula.primario { background: var(--iao-marca-bg); color: var(--iao-marca); border-color: transparent; }

.iao-etiquetas { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; min-width: 0; }
.iao-etiqueta {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 10px;
  background: var(--iao-sutil); border: 1px solid var(--iao-linha); font-size: 0.8rem; font-weight: 600;
}
.iao-etiqueta i { color: var(--iao-ia); }
.iao-codigo, .iao-page code, .iao-camada code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.74rem;
  background: var(--iao-sutil); border: 1px solid var(--iao-linha); border-radius: 6px; padding: 0.05rem 0.35rem;
  word-break: break-word;
}
.iao-termo { display: inline-block; margin: 0.1rem 0.25rem 0.1rem 0; padding: 0.05rem 0.45rem; border-radius: 6px; font-size: 0.76rem; font-weight: 600; }
.iao-termo.ok { background: var(--iao-ok-bg); color: var(--iao-ok); }
.iao-termo.erro { background: var(--iao-erro-bg); color: var(--iao-erro); }

/* ── Três números ────────────────────────────────────────────────────────── */

.iao-topo { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1000px) { .iao-topo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.iao-numero {
  background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 16px; padding: 1.35rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
}
.iao-numero--meta { background: linear-gradient(160deg, var(--iao-ia-bg) 0%, var(--iao-papel) 65%); border-color: color-mix(in srgb, var(--iao-ia) 18%, var(--iao-linha)); }
.iao-numero__cabeca { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.iao-numero__rotulo {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iao-texto);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.iao-numero__rotulo i { color: var(--iao-ia); }
.iao-numero__valor { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--iao-tinta); }
.iao-numero__valor--sem { font-size: 1.6rem; color: var(--iao-fraco); letter-spacing: -0.02em; padding: 0.35rem 0; }
.iao-numero__n { font-size: 0.78rem; color: var(--iao-texto); }
.iao-numero__falta { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--iao-alerta); font-weight: 600; display: flex; gap: 0.4rem; }
.iao-numero__falta i { margin-top: 0.2rem; }
.iao-numero__parcial { margin: 0; font-size: 0.78rem; color: var(--iao-fraco); }
.iao-numero__como { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--iao-texto); border-top: 1px dashed var(--iao-linha); padding-top: 0.6rem; }
.iao-numero__data { margin: 0; font-size: 0.72rem; color: var(--iao-fraco); }

.iao-barra { height: 8px; border-radius: 999px; background: var(--iao-sutil); border: 1px solid var(--iao-linha); overflow: hidden; margin: 0.25rem 0; }
.iao-barra > span { display: block; height: 100%; background: linear-gradient(90deg, var(--iao-marca), var(--iao-ia)); border-radius: 999px; transition: width 0.6s ease; }

.iao-provisoria {
  margin-top: 0.3rem; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--iao-sutil);
  border: 1px dashed var(--iao-linha-2); font-size: 0.8rem;
}
.iao-provisoria span { color: var(--iao-texto); }
.iao-provisoria p { margin: 0.35rem 0 0; color: var(--iao-alerta); font-size: 0.78rem; }

/* ── Números secundários ─────────────────────────────────────────────────── */

.iao-secundarios { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; }
@media (min-width: 700px) { .iao-secundarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .iao-secundarios { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.iao-sec { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.iao-sec__rotulo { font-size: 0.78rem; font-weight: 700; color: var(--iao-texto); }
.iao-sec__valor { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; color: var(--iao-tinta); line-height: 1.15; }
.iao-sec__n { font-size: 0.76rem; color: var(--iao-texto); display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.iao-sec__falta { font-size: 0.76rem; color: var(--iao-alerta); font-weight: 600; }
.iao-sec__como { margin: 0.3rem 0 0; font-size: 0.76rem; color: var(--iao-fraco); }

/* ── Marcos ──────────────────────────────────────────────────────────────── */

.iao-marcos { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 800px) { .iao-marcos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iao-marco { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.9rem 1rem; background: var(--iao-sutil); }
.iao-marco__topo { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.iao-marco p { margin: 0.35rem 0; color: var(--iao-texto); font-size: 0.82rem; }
.iao-marco__alvo { font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

/* ── Fases ───────────────────────────────────────────────────────────────── */

.iao-fases .iao-aviso { margin-bottom: 0.75rem; }
.iao-linha-fases { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.iao-fase { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.85rem; position: relative; padding-bottom: 1.15rem; }
.iao-fase:not(:last-child)::before {
  content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 2px; background: var(--iao-linha);
}
.iao-fase.passada:not(:last-child)::before, .iao-fase.atual:not(:last-child)::before { background: var(--iao-marca); }
.iao-fase__marca {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; background: var(--iao-papel); border: 2px solid var(--iao-linha-2); color: var(--iao-fraco);
  position: relative; z-index: 1;
}
.iao-fase.passada .iao-fase__marca { background: var(--iao-marca); border-color: var(--iao-marca); color: #fff; }
.iao-fase.atual .iao-fase__marca { background: var(--iao-marca); border-color: var(--iao-marca); color: #fff; box-shadow: 0 0 0 5px var(--iao-marca-bg); }
.iao-fase.cumprida .iao-fase__marca { border-color: var(--iao-ok); color: var(--iao-ok); }
.iao-fase__corpo { min-width: 0; padding-top: 0.35rem; }
.iao-fase__topo { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.iao-fase__topo h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.iao-fase.futura .iao-fase__topo h3 { color: var(--iao-texto); }
.iao-fase__corpo > p { margin: 0.25rem 0 0.5rem; color: var(--iao-texto); font-size: 0.82rem; }

.iao-criterios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.iao-criterios li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 0.5rem; align-items: start;
  font-size: 0.8rem; padding: 0.45rem 0.6rem; border-radius: 10px; background: var(--iao-sutil);
}
.iao-criterios li > i { margin-top: 0.2rem; }
.iao-criterios li.ok > i { color: var(--iao-ok); }
.iao-criterios li.nao > i { color: var(--iao-erro); }
.iao-criterio__rotulo { font-weight: 600; }
.iao-criterio__valores { grid-column: 2; color: var(--iao-texto); font-size: 0.76rem; }

.iao-notas { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--iao-texto); font-size: 0.78rem; display: flex; flex-direction: column; gap: 0.25rem; }

/* ── Série ───────────────────────────────────────────────────────────────── */

.iao-legenda { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.78rem; color: var(--iao-texto); margin-bottom: 0.6rem; }
.iao-legenda span { display: inline-flex; align-items: center; gap: 0.45rem; }
.iao-legenda i, .iao-tooltip i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.iao-grafico { height: 280px; width: 100%; }
.iao-tooltip {
  background: var(--iao-papel); border: 1px solid var(--iao-linha-2); border-radius: 10px; padding: 0.6rem 0.75rem;
  font-size: 0.76rem; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); min-width: 200px;
}
.iao-tooltip strong { display: block; margin-bottom: 0.3rem; }
.iao-tooltip div { display: flex; justify-content: space-between; gap: 0.9rem; }
.iao-tooltip span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--iao-texto); }

.iao-tabela-caixa { overflow-x: auto; max-height: 320px; overflow-y: auto; border: 1px solid var(--iao-linha); border-radius: 12px; }
.iao-tabela { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.iao-tabela th, .iao-tabela td { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--iao-linha); text-align: left; white-space: nowrap; }
.iao-tabela th { position: sticky; top: 0; background: var(--iao-sutil); font-weight: 700; color: var(--iao-texto); }
.iao-tabela .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Canais e coleta ─────────────────────────────────────────────────────── */

.iao-grade-canais { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 900px) { .iao-grade-canais { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.iao-canal { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.9rem 1rem; background: var(--iao-sutil); min-width: 0; }
.iao-canal__topo { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.iao-canal__nome { font-weight: 800; display: inline-flex; align-items: center; gap: 0.45rem; }
.iao-canal__nome i { color: var(--iao-marca); }
.iao-canal__dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.75rem; margin: 0; }
.iao-canal__dados div { min-width: 0; }
.iao-canal__dados dt { font-size: 0.72rem; color: var(--iao-texto); }
.iao-canal__dados dd { margin: 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.iao-lista-coleta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.iao-lista-coleta li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--iao-linha);
}
.iao-lista-coleta li:last-child { border-bottom: 0; }
.iao-lista-coleta li > div { min-width: 0; }
.iao-lista-coleta strong { display: inline-flex; gap: 0.45rem; align-items: center; }
.iao-lista-coleta strong i { color: var(--iao-marca); }
.iao-lista-coleta p { margin: 0.2rem 0 0; font-size: 0.78rem; }

.iao-interruptor {
  display: inline-flex; align-items: center; gap: 0.55rem; border: 0; background: none; cursor: pointer; padding: 0.3rem;
  font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--iao-texto); flex-shrink: 0; min-height: 38px;
}
.iao-interruptor:disabled { cursor: not-allowed; opacity: 0.6; }
.iao-interruptor .trilho {
  width: 42px; height: 24px; border-radius: 999px; background: var(--iao-linha-2); position: relative; transition: background 0.2s;
}
.iao-interruptor .bola {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s;
}
.iao-interruptor.ligado .trilho { background: var(--iao-ok); }
.iao-interruptor.ligado .bola { transform: translateX(18px); }
.iao-interruptor.ligado .texto { color: var(--iao-ok); }

/* ── Fontes, portões, tecnologias, cadência ──────────────────────────────── */

.iao-niveis { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 900px) { .iao-niveis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iao-nivel { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.85rem 1rem; min-width: 0; }
.iao-nivel__topo { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.iao-nivel__selo {
  min-width: 34px; height: 26px; padding: 0 0.4rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.76rem; background: var(--iao-marca-bg); color: var(--iao-marca);
}
.iao-nivel.t1 .iao-nivel__selo { background: var(--iao-ia-bg); color: var(--iao-ia); }
.iao-nivel.excluido .iao-nivel__selo { background: var(--iao-erro-bg); color: var(--iao-erro); }
.iao-nivel__conta { margin-left: auto; font-size: 0.76rem; font-weight: 700; color: var(--iao-texto); }
.iao-nivel dl { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.iao-nivel dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--iao-fraco); }
.iao-nivel dd { margin: 0; font-size: 0.8rem; color: var(--iao-texto); }
.iao-fila-resumo {
  margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--iao-texto);
  padding: 0.7rem 0.9rem; background: var(--iao-sutil); border-radius: 10px;
}
.iao-fila-resumo strong { color: var(--iao-tinta); display: inline-flex; gap: 0.4rem; align-items: center; }

.iao-itens-plano { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 900px) { .iao-portoes .iao-itens-plano { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iao-itens-plano > li { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.8rem 0.95rem; min-width: 0; }
.iao-item-plano__topo { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.iao-item-plano__topo strong { font-size: 0.86rem; }
.iao-item-plano__topo .iao-pilula { margin-left: auto; }
.iao-item-plano__num {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; background: var(--iao-marca-bg); color: var(--iao-marca); flex-shrink: 0;
}
.iao-itens-plano p { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--iao-texto); }
.iao-falta { color: var(--iao-alerta) !important; display: flex; gap: 0.4rem; }
.iao-falta i { margin-top: 0.2rem; }

.iao-grupos-tec { display: flex; flex-direction: column; gap: 1.1rem; }
.iao-grupo-tec h3 { margin: 0 0 0.55rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--iao-texto); }
@media (min-width: 900px) { .iao-grupo-tec .iao-itens-plano { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.iao-cadencia { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 800px) { .iao-cadencia { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.iao-cadencia__item { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.8rem 0.95rem; }
.iao-cadencia__item strong { display: inline-flex; gap: 0.45rem; align-items: center; font-size: 0.85rem; }
.iao-cadencia__item strong i { color: var(--iao-marca); }
.iao-cadencia__item ul { margin: 0.4rem 0 0; padding-left: 1.05rem; font-size: 0.79rem; color: var(--iao-texto); }

/* ── Formulários ─────────────────────────────────────────────────────────── */

.iao-form { display: flex; flex-direction: column; gap: 0.8rem; }
.iao-form-linha { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 640px) { .iao-form-linha { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.iao-campo { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.iao-campo > span { font-size: 0.76rem; font-weight: 700; color: var(--iao-texto); }
.iao-campo input, .iao-campo textarea, .iao-campo select {
  width: 100%; border: 1px solid var(--iao-linha-2); border-radius: 10px; padding: 0.55rem 0.7rem; font: inherit;
  font-size: 0.85rem; color: var(--iao-tinta); background: var(--iao-papel); min-height: 38px;
}
.iao-campo textarea { resize: vertical; line-height: 1.5; }
.iao-campo input:focus, .iao-campo textarea:focus, .iao-campo select:focus, .iao-select:focus {
  outline: none; border-color: var(--iao-marca); box-shadow: 0 0 0 3px var(--iao-marca-bg);
}
.iao-campo small { font-size: 0.72rem; }
.iao-filtros { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 760px) { .iao-filtros { grid-template-columns: 200px 200px minmax(0, 1fr); } }

.iao-dados { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.85rem 0; }
.iao-dados div { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.iao-dados dt { font-size: 0.76rem; font-weight: 700; color: var(--iao-texto); min-width: 110px; }
.iao-dados dd { margin: 0; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

.iao-dicas h3 { margin: 0 0 0.5rem; font-size: 0.92rem; display: flex; gap: 0.45rem; align-items: center; }
.iao-dicas h3 i { color: var(--iao-alerta); }
.iao-dicas ul { margin: 0 0 0.6rem; padding-left: 1.1rem; font-size: 0.82rem; color: var(--iao-texto); display: flex; flex-direction: column; gap: 0.35rem; }

/* ── Verificação ─────────────────────────────────────────────────────────── */

.iao-verificacao { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.iao-verificacao__topo { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.iao-verificacao__topo strong { display: inline-flex; gap: 0.45rem; align-items: center; }
.iao-verificacao__topo strong i { color: var(--iao-marca); }
.iao-verificacao__titulo { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--iao-fraco); margin-bottom: 0.35rem; }
.iao-verificacao__bloco ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.iao-verificacao__bloco li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.45rem; font-size: 0.8rem; }
.iao-verificacao__bloco li > i { margin-top: 0.2rem; }
.iao-verificacao__bloco li.ok > i { color: var(--iao-ok); }
.iao-verificacao__bloco li.nao > i { color: var(--iao-erro); }
.iao-verificacao__bloco li.neutro > i { color: var(--iao-fraco); }

/* ── Texto longo (resposta, conteúdo) ────────────────────────────────────── */

.iao-texto-longo {
  white-space: pre-wrap; word-break: break-word; font-size: 0.83rem; line-height: 1.6; color: var(--iao-tinta);
  background: var(--iao-sutil); border: 1px solid var(--iao-linha); border-radius: 10px; padding: 0.75rem 0.9rem;
  max-height: 460px; overflow-y: auto;
}
.iao-recolhivel { margin-top: 0.45rem; }
.iao-recolhivel__botao {
  border: 0; background: none; cursor: pointer; padding: 0.3rem 0; font: inherit; font-size: 0.78rem; font-weight: 700;
  color: var(--iao-marca); display: inline-flex; align-items: center; gap: 0.4rem;
}
.iao-recolhivel__botao i { font-size: 0.68rem; width: 10px; }
.iao-recolhivel__corpo { margin-top: 0.35rem; }

/* ── Auditoria ───────────────────────────────────────────────────────────── */

.iao-auditoria { display: flex; flex-direction: column; gap: 1rem; }
.iao-auditoria__topo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.iao-relogio {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--iao-ok-bg); color: var(--iao-ok); font-size: 0.8rem;
}
.iao-relogio.rapido { background: var(--iao-alerta-bg); color: var(--iao-alerta); }
.iao-conversa { display: flex; flex-direction: column; gap: 0.75rem; }
.iao-conversa__quem { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.74rem; font-weight: 800; color: var(--iao-texto); margin-bottom: 0.3rem; }
.iao-conversa__resposta .iao-texto-longo { background: var(--iao-marca-bg); border-color: color-mix(in srgb, var(--iao-marca) 15%, transparent); }

.iao-rubrica { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 760px) { .iao-rubrica { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .iao-rubrica { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.iao-rubrica legend { font-weight: 800; font-size: 0.86rem; margin-bottom: 0.5rem; padding: 0; }
.iao-rubrica__opcao {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.5rem; align-items: start; cursor: pointer;
  border: 1.5px solid var(--iao-linha-2); border-radius: 12px; padding: 0.7rem 0.8rem; background: var(--iao-papel);
  transition: border-color 0.15s, background 0.15s;
}
.iao-rubrica__opcao input { margin-top: 0.2rem; }
.iao-rubrica__opcao > i { margin-top: 0.2rem; }
.iao-rubrica__opcao span { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.iao-rubrica__opcao small { font-size: 0.74rem; color: var(--iao-texto); }
.iao-rubrica__opcao.ok > i { color: var(--iao-ok); }
.iao-rubrica__opcao.alerta > i { color: var(--iao-alerta); }
.iao-rubrica__opcao.erro > i, .iao-rubrica__opcao.perigo > i { color: var(--iao-erro); }
.iao-rubrica__opcao.marcada.ok { border-color: var(--iao-ok); background: var(--iao-ok-bg); }
.iao-rubrica__opcao.marcada.alerta { border-color: var(--iao-alerta); background: var(--iao-alerta-bg); }
.iao-rubrica__opcao.marcada.erro, .iao-rubrica__opcao.marcada.perigo { border-color: var(--iao-erro); background: var(--iao-erro-bg); }

/* ── Respostas avaliadas ─────────────────────────────────────────────────── */

.iao-lista-respostas, .iao-lista-casos, .iao-lista-resultados, .iao-lista-fila {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem;
}
.iao-resposta {
  background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 14px; padding: 1rem 1.15rem; min-width: 0;
}
.iao-resposta.negativa { border-left: 4px solid var(--iao-erro); }
.iao-resposta__topo { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.iao-resposta__quem { font-size: 0.74rem; overflow-wrap: anywhere; }
.iao-resposta__pergunta { margin: 0.6rem 0 0.2rem; font-weight: 700; display: flex; gap: 0.5rem; overflow-wrap: anywhere; }
.iao-resposta__pergunta i { color: var(--iao-fraco); margin-top: 0.25rem; }
.iao-resposta__comentario { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--iao-texto); font-style: italic; }
.iao-resposta .iao-etiquetas + .iao-acoes, .iao-resposta .iao-acoes { margin-top: 0.7rem; }
.iao-resposta > .iao-etiquetas { margin-top: 0.5rem; }

/* ── Exame ───────────────────────────────────────────────────────────────── */

.iao-caso { border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.85rem 1rem; min-width: 0; }
.iao-caso.arquivado { opacity: 0.65; }
.iao-caso__topo { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.iao-caso__topo .iao-acoes { margin-top: 0; }
.iao-caso__pergunta { margin: 0.5rem 0 0.3rem; font-weight: 700; overflow-wrap: anywhere; }
.iao-caso__termos { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; }

.iao-progresso-rodada { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--iao-texto); margin-bottom: 0.8rem; }
.iao-placar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.6rem; }
@media (min-width: 760px) { .iao-placar { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); } }
.iao-placar__item {
  border: 1px solid var(--iao-linha); border-radius: 12px; padding: 0.65rem 0.8rem; display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 0;
}
.iao-placar__n { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.iao-placar__rotulo { font-size: 0.74rem; color: var(--iao-texto); }
.iao-placar__item.ok .iao-placar__n { color: var(--iao-ok); }
.iao-placar__item.info .iao-placar__n { color: var(--iao-info); }
.iao-placar__item.alerta .iao-placar__n { color: var(--iao-alerta); }
.iao-placar__item.erro .iao-placar__n { color: var(--iao-erro); }
.iao-placar__item.destaque { grid-column: 1 / -1; background: var(--iao-sutil); }
@media (min-width: 760px) { .iao-placar__item.destaque { grid-column: auto; } }

.iao-resultado { border: 1px solid var(--iao-linha); border-left-width: 4px; border-radius: 12px; padding: 0.8rem 1rem; min-width: 0; }
.iao-resultado.ok { border-left-color: var(--iao-ok); }
.iao-resultado.info { border-left-color: var(--iao-info); }
.iao-resultado.alerta { border-left-color: var(--iao-alerta); }
.iao-resultado.erro { border-left-color: var(--iao-erro); }
.iao-motivos { margin: 0.35rem 0; padding-left: 1.1rem; font-size: 0.8rem; color: var(--iao-texto); }
.iao-juiz { margin-top: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--iao-sutil); border: 1px dashed var(--iao-linha-2); font-size: 0.78rem; color: var(--iao-texto); }
.iao-juiz strong { color: var(--iao-texto); display: inline-flex; gap: 0.4rem; align-items: center; }
.iao-juiz ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }

/* ── Fila de aprendizado ─────────────────────────────────────────────────── */

.iao-sugestao { background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 14px; min-width: 0; overflow: hidden; }
.iao-sugestao.aberta { border-color: var(--iao-marca); box-shadow: 0 0 0 3px var(--iao-marca-bg); }
.iao-sugestao__cabeca {
  width: 100%; display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; border: 0; background: none;
  padding: 0.9rem 1.1rem; cursor: pointer; font: inherit; color: inherit;
}
.iao-sugestao__cabeca > i { margin-top: 0.3rem; color: var(--iao-fraco); font-size: 0.72rem; width: 10px; }
.iao-sugestao__titulo { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.iao-sugestao__titulo strong { overflow-wrap: anywhere; }
.iao-sugestao__corpo { padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.iao-sugestao__corpo .iao-acoes { margin-top: 0; }
.iao-sugestao__resumo { margin: 0; color: var(--iao-texto); }
.iao-citacoes ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8rem; }
.iao-citacoes blockquote {
  margin: 0.25rem 0 0; padding: 0.4rem 0.7rem; border-left: 3px solid var(--iao-linha-2); background: var(--iao-sutil);
  border-radius: 0 8px 8px 0; color: var(--iao-texto); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.iao-modal-fundo {
  position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.iao-modal {
  background: var(--iao-papel); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 2rem);
  display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25); font-size: 0.875rem; line-height: 1.55;
}
.iao-modal.largo { max-width: 820px; }
.iao-modal-topo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--iao-linha); }
.iao-modal-topo h3 { margin: 0; font-size: 1rem; font-weight: 800; display: flex; gap: 0.5rem; align-items: center; }
.iao-modal-topo h3 i { color: var(--iao-marca); }
.iao-modal-corpo { padding: 1.1rem 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.iao-modal-corpo p { margin: 0; }
.iao-modal-rodape { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--iao-linha); flex-wrap: wrap; }

/* ── Celular (o Fernando usa pelo PWA) ───────────────────────────────────── */

@media (max-width: 640px) {
  .iao-page { padding: 1rem 0.75rem 2.5rem; }
  .iao-header h1 { font-size: 1.25rem; }
  .iao-cartao, .iao-numero { padding: 1.05rem 1rem; border-radius: 14px; }
  .iao-numero__valor { font-size: 2.2rem; }
  .iao-acoes { justify-content: stretch; }
  .iao-acoes .iao-btn { flex: 1 1 auto; }
  .iao-cartao__topo .iao-acoes { width: 100%; }
  .iao-lista-coleta li { flex-direction: column; align-items: flex-start; }
  .iao-grafico { height: 220px; }
  .iao-modal-fundo { align-items: flex-end; padding: 0; }
  .iao-modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .iao-modal-rodape .iao-btn { flex: 1 1 auto; }
  .iao-item-plano__topo .iao-pilula { margin-left: 0; }
  .iao-nivel__conta { margin-left: 0; flex-basis: 100%; }
}

/* ── Leitor de tela ──────────────────────────────────────────────────────── */

.iao-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Evolução: período e cartões ─────────────────────────────────────────── */

.iao-evo-barra { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; }
.iao-evo-periodo {
  display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; padding: 0.25rem;
  background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 12px;
}
.iao-evo-periodo__rotulo {
  font-size: 0.74rem; font-weight: 700; color: var(--iao-texto); padding: 0 0.5rem 0 0.35rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.iao-segmento {
  border: 0; background: transparent; color: var(--iao-texto); font: inherit; font-size: 0.8rem; font-weight: 700;
  padding: 0.4rem 0.8rem; border-radius: 9px; cursor: pointer; min-height: 34px; transition: background 0.15s, color 0.15s;
}
.iao-segmento:hover { color: var(--iao-marca); background: var(--iao-sutil); }
.iao-segmento.ativo { background: var(--iao-marca); color: #fff; }
.iao-segmento:focus-visible, .iao-como-fazer__botao:focus-visible { outline: 2px solid var(--iao-marca); outline-offset: 2px; }

.iao-evo-cartoes { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 620px) { .iao-evo-cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .iao-evo-cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.iao-evo-cartao {
  background: var(--iao-papel); border: 1px solid var(--iao-linha); border-radius: 16px; padding: 1.05rem 1.2rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0;
}
.iao-evo-cartao__valor { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--iao-tinta); font-variant-numeric: tabular-nums; }
.iao-evo-cartao__valor--sem { font-size: 1.35rem; color: var(--iao-fraco); letter-spacing: -0.02em; padding: 0.25rem 0; }
.iao-evo-cartao__legenda { font-size: 0.76rem; color: var(--iao-texto); }
.iao-evo-cartao__de { font-size: 0.72rem; color: var(--iao-fraco); font-variant-numeric: tabular-nums; }

.iao-evo-var {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 999px; margin-top: 0.15rem;
}
.iao-evo-var.melhor { background: var(--iao-ok-bg); color: var(--iao-ok); }
.iao-evo-var.pior { background: var(--iao-erro-bg); color: var(--iao-erro); }
.iao-evo-var.neutra { background: var(--iao-sutil); color: var(--iao-fraco); font-weight: 600; }

.iao-evo-mini { width: 100%; height: 30px; display: block; margin-top: 0.2rem; overflow: visible; }

/* ── Evolução: gráficos ──────────────────────────────────────────────────── */

/* Duas colunas quando cabem 2 × 440 px; senão uma. Nunca rolagem lateral. */
.iao-evo-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.15rem; align-items: start; }
.iao-evo-grafico { display: flex; flex-direction: column; min-width: 0; }
.iao-evo-grafico .iao-cartao__topo { margin-bottom: 0.7rem; }
.iao-evo-grafico__corpo { min-width: 0; }
.iao-evo-grafico .iao-grafico { height: 250px; }
.iao-evo-grafico .iao-grafico--baixo { height: 120px; }
.iao-evo-grafico .iao-tabela-caixa + .iao-tabela-caixa { margin-top: 0.75rem; }
.iao-evo-painel {
  display: block; margin: 0.85rem 0 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--iao-fraco);
}
.iao-evo-nota { margin: 0.7rem 0 0; font-size: 0.76rem; color: var(--iao-fraco); }
.iao-evo-vazio {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 1.1rem 1rem; border: 1px dashed var(--iao-linha-2);
  border-radius: 12px; background: var(--iao-sutil); color: var(--iao-texto); font-size: 0.82rem;
}
.iao-evo-vazio > i { color: var(--iao-fraco); margin-top: 0.2rem; }
.iao-evo-vazio p { margin: 0; }
.iao-evo-rodape { margin: 0; font-size: 0.76rem; display: flex; gap: 0.45rem; align-items: flex-start; }
.iao-evo-rodape i { margin-top: 0.2rem; }

.iao-legenda .iao-amostra { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.iao-legenda .iao-amostra.barra { width: 10px; height: 10px; border-radius: 3px; }
.iao-legenda .iao-amostra.tracejada { width: 16px; height: 0; border-radius: 0; background: none; border-top: 2px dashed; }
.iao-legenda__icone { color: var(--iao-texto); font-size: 0.74rem; }
/* O ícone do Font Awesome na legenda não é amostra de cor: desfaz o traço de 12 × 3. */
.iao-legenda .iao-legenda__icone i { width: auto; height: auto; border-radius: 0; background: none; }
.iao-tabela th[scope="row"] { font-weight: 600; color: var(--iao-tinta); background: transparent; position: static; }

/* ── "Como fazer" (topo das abas da Curadoria) ───────────────────────────── */

.iao-como-fazer {
  border: 1px solid color-mix(in srgb, var(--iao-marca) 22%, var(--iao-linha)); border-radius: 14px;
  background: var(--iao-marca-bg); overflow: hidden;
}
.iao-como-fazer__botao {
  width: 100%; display: flex; align-items: center; gap: 0.55rem; border: 0; background: transparent; cursor: pointer;
  padding: 0.7rem 1rem; font: inherit; font-size: 0.84rem; color: var(--iao-marca); text-align: left; min-height: 44px;
}
.iao-como-fazer__titulo { font-weight: 800; flex: 1; min-width: 0; }
.iao-como-fazer__tempo { font-size: 0.74rem; font-weight: 600; color: var(--iao-texto); display: inline-flex; gap: 0.35rem; align-items: center; }
.iao-como-fazer__seta { font-size: 0.7rem; }
.iao-como-fazer__corpo { padding: 0 1rem 0.9rem 1rem; }
.iao-como-fazer__corpo ol {
  margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.83rem; color: var(--iao-tinta);
}
.iao-como-fazer__corpo ol li::marker { font-weight: 800; color: var(--iao-marca); }
.iao-como-fazer__notas { list-style: none; margin: 0.65rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; color: var(--iao-texto); }
.iao-como-fazer__notas li { display: flex; gap: 0.45rem; align-items: flex-start; }
.iao-como-fazer__notas i { color: var(--iao-marca); margin-top: 0.22rem; font-size: 0.72rem; }

/* ── Por onde começar (roteiro da semana) ────────────────────────────────── */

.iao-rotina__topo { display: flex; flex-direction: column; gap: 0.5rem; }
.iao-rotina__progresso { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.84rem; }
.iao-rotina__progresso strong { font-size: 0.95rem; }
.iao-rotina__progresso .iao-barra { flex: 1 0 100%; height: 10px; }
.iao-rotina__passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }

.iao-passo {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0.9rem; background: var(--iao-papel);
  border: 1px solid var(--iao-linha); border-left: 4px solid var(--iao-linha-2); border-radius: 14px; padding: 1rem 1.15rem;
}
.iao-passo.feito { border-left-color: var(--iao-ok); }
.iao-passo.pendente { border-left-color: var(--iao-alerta); }
.iao-passo.erro { border-left-color: var(--iao-erro); }
.iao-passo__num {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; background: var(--iao-marca-bg); color: var(--iao-marca);
}
.iao-passo.feito .iao-passo__num { background: var(--iao-ok-bg); color: var(--iao-ok); }
.iao-passo.pendente .iao-passo__num { background: var(--iao-alerta-bg); color: var(--iao-alerta); }
.iao-passo__corpo { min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.iao-passo__topo { display: flex; align-items: center; gap: 0.5rem 0.7rem; flex-wrap: wrap; }
.iao-passo__topo h3 { margin: 0; font-size: 0.98rem; font-weight: 800; }
.iao-passo__porque { margin: 0; font-size: 0.83rem; color: var(--iao-texto); }
.iao-passo__situacao { margin: 0; font-size: 0.8rem; color: var(--iao-tinta); }
.iao-passo__como { margin: 0; padding-left: 1.2rem; font-size: 0.8rem; color: var(--iao-texto); display: flex; flex-direction: column; gap: 0.2rem; }
.iao-passo__rodape { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.iao-passo__tempo { font-size: 0.76rem; color: var(--iao-fraco); display: inline-flex; gap: 0.35rem; align-items: center; }
.iao-passo__rodape .iao-acoes { margin-top: 0; }

/* ── Auditoria guiada ────────────────────────────────────────────────────── */

.iao-guia { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--iao-texto); }
.iao-guia strong { color: var(--iao-tinta); }
.iao-guia .iao-barra { flex: 1 1 160px; margin: 0; }
.iao-lote-concluido { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem 1.25rem; }
.iao-lote-concluido > i { font-size: 2rem; color: var(--iao-ok); }
.iao-lote-concluido h3 { margin: 0; font-size: 1.05rem; }
.iao-lote-concluido p { margin: 0; color: var(--iao-texto); max-width: 60ch; }
.iao-lote-concluido .iao-acoes { justify-content: center; }

@media (max-width: 640px) {
  .iao-evo-periodo { width: 100%; }
  .iao-evo-periodo__rotulo { flex-basis: 100%; padding: 0.2rem 0.35rem; }
  .iao-segmento { flex: 1 1 auto; }
  .iao-evo-cartao__valor { font-size: 1.8rem; }
  .iao-evo-grafico .iao-grafico { height: 210px; }
  .iao-passo { grid-template-columns: 1fr; padding: 0.9rem 1rem; }
  .iao-passo__num { width: 34px; height: 34px; font-size: 0.9rem; }
  .iao-passo__rodape .iao-acoes { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .iao-barra > span { transition: none; }
}
/* Phobinho Copilot — o azul da marca (#0A4EA0), dois tons mais fundo.
   O tom escuro sinaliza que aqui o Phobinho AGE na base do cliente, sem sair
   da identidade da casa. Homologação troca a paleta para âmbar. */

.cop {
  --cop: #063A7A;
  --cop-escuro: #002B5E;
  --cop-claro: #0A4EA0;
  --cop-fundo: #F2F6FC;
  --cop-borda: #D6E2F2;
  --grava: #B45309;
  --grava-fundo: #FFFBEB;
  --grava-borda: #FDE68A;

  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 520px;
}

/* ── Topo ─────────────────────────────────────────────────────────────── */
.cop__topo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--cop-escuro) 0%, var(--cop) 55%, var(--cop-claro) 100%);
  border-radius: 14px;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(6, 58, 122, 0.3);
}

.cop__mascote {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  flex-shrink: 0;
}

.cop__titulo { flex: 1; min-width: 0; }
.cop__titulo h1 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.cop__titulo p { margin: 0.15rem 0 0; font-size: 0.85rem; opacity: 0.9; }

.cop__botao-painel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.cop__botao-painel:hover { background: rgba(255, 255, 255, 0.26); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.cop__corpo {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  min-height: 0;
}

.cop__conversa {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 14px;
  overflow: hidden;
}

.cop__mensagens {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Mensagens ────────────────────────────────────────────────────────── */
.cop__msg { display: flex; gap: 0.6rem; align-items: flex-start; }
.cop__msg--voce { justify-content: flex-end; }

.cop__msg-avatar { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

.cop__msg-bolha {
  max-width: 78%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cop__msg--voce .cop__msg-bolha {
  background: var(--cop);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.cop__msg--copilot .cop__msg-bolha {
  background: var(--cop-fundo);
  border: 1px solid var(--cop-borda);
  color: #2c3e50;
  border-bottom-left-radius: 3px;
}

.cop__msg--sistema { justify-content: center; }
.cop__msg--sistema .cop__msg-bolha {
  background: #f1f3f5;
  color: #495057;
  font-size: 0.84rem;
  max-width: 90%;
  border: 1px solid #e9ecef;
}

/* Resultado de comando vem em tabela de texto: monoespaçado não embaralha */
.cop__msg-texto { white-space: pre-wrap; word-break: break-word; }

.cop__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.cop__tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 58, 122, 0.09);
  color: var(--cop-escuro);
}

/* ── Arquivo gerado ───────────────────────────────────────────────────── */
.cop__arquivo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cop-borda);
  border-radius: 10px;
  background: #fff;
  color: var(--cop-escuro);
  text-decoration: none;
  font-size: 0.84rem;
  transition: border-color 0.2s ease;
}
.cop__arquivo:hover { border-color: var(--cop); }
.cop__arquivo-nome { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cop__arquivo-meta { font-size: 0.72rem; color: #6c757d; white-space: nowrap; }

/* ── Cartão de confirmação ────────────────────────────────────────────── */
.cop__confirma {
  margin-top: 0.8rem;
  border: 1px solid var(--grava-borda);
  border-left: 4px solid var(--grava);
  border-radius: 10px;
  background: var(--grava-fundo);
  padding: 0.85rem;
}

.cop__confirma--ok { border-left-color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.cop__confirma--cancelada { opacity: 0.6; border-left-color: #adb5bd; }

.cop__confirma-topo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--grava);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.cop__confirma-destino {
  font-size: 0.78rem;
  color: #6c757d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 0.6rem;
}

.cop__confirma-campos { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cop__confirma-campos th {
  text-align: left;
  font-weight: 600;
  color: #6c757d;
  padding: 0.28rem 0.6rem 0.28rem 0;
  white-space: nowrap;
  vertical-align: top;
  width: 1%;
}
.cop__confirma-campos td { padding: 0.28rem 0; color: #2c3e50; word-break: break-word; }

.cop__confirma-aviso {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.6rem;
  background: rgba(180, 83, 9, 0.08);
  border-radius: 7px;
  font-size: 0.8rem;
  color: #92400e;
}

.cop__confirma-acoes { display: flex; gap: 0.5rem; margin-top: 0.85rem; }

.cop__btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease;
}
.cop__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cop__btn--gravar { background: var(--grava); color: #fff; }
.cop__btn--gravar:hover:not(:disabled) { filter: brightness(1.1); }
.cop__btn--cancelar { background: #fff; color: #6c757d; border-color: #dee2e6; }
.cop__btn--cancelar:hover { border-color: #adb5bd; }

.cop__confirma-final { margin: 0.7rem 0 0; font-size: 0.84rem; color: #6c757d; }
.cop__confirma-final--ok { color: #15803d; font-weight: 600; }

/* ── "Pensando" ───────────────────────────────────────────────────────── */
.cop__pensando { display: flex; gap: 4px; align-items: center; }
.cop__pensando span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cop-claro);
  animation: cop-pulsa 1.3s infinite ease-in-out;
}
.cop__pensando span:nth-child(2) { animation-delay: 0.18s; }
.cop__pensando span:nth-child(3) { animation-delay: 0.36s; }

@keyframes cop-pulsa {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Caixa de entrada ─────────────────────────────────────────────────── */
.cop__entrada {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem;
  border-top: 1px solid var(--cop-borda);
  background: #fdfcff;
}

.cop__entrada textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--cop-borda);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s ease;
}
.cop__entrada textarea:focus { border-color: var(--cop); }

.cop__entrada button {
  width: 44px;
  border: none;
  border-radius: 10px;
  background: var(--cop);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
.cop__entrada button:disabled { opacity: 0.45; cursor: not-allowed; }
.cop__entrada button:hover:not(:disabled) { filter: brightness(1.1); }

/* ── Painel de comandos ───────────────────────────────────────────────── */
.cop__painel {
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 14px;
  padding: 1rem;
  overflow-y: auto;
  min-height: 0;
}

.cop__painel h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cop-escuro);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cop__painel-nota { font-size: 0.78rem; color: #6c757d; margin: 0 0 0.9rem; line-height: 1.5; }

.cop__comando {
  border: 1px solid #eef0f3;
  border-left: 3px solid var(--cop-claro);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.55rem;
}
.cop__comando--escrita { border-left-color: var(--grava); background: var(--grava-fundo); }

.cop__comando-topo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}
.cop__comando-topo i { color: var(--cop); font-size: 0.78rem; }
.cop__comando--escrita .cop__comando-topo i { color: var(--grava); }

.cop__selo {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--grava);
  color: #fff;
}

.cop__comando p { margin: 0; font-size: 0.76rem; color: #6c757d; line-height: 1.5; }

/* ── Sem acesso ───────────────────────────────────────────────────────── */
.cop__bloqueado {
  margin: auto;
  text-align: center;
  color: #6c757d;
  padding: 3rem 1rem;
}
.cop__bloqueado i { font-size: 2.2rem; color: #adb5bd; margin-bottom: 0.75rem; }
.cop__bloqueado code {
  background: #f1f3f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cop__corpo { grid-template-columns: 1fr; }
  .cop__painel { display: none; }
}


@media (max-width: 700px) {
  .cop { height: calc(100vh - 90px); }

  /* O cabeçalho é uma linha só de mascote + título + ambiente + 3 botões, e
     nessa largura os botões furavam a tela para a direita. Quebrar em duas
     faixas mantém tudo dentro sem esconder controle nenhum. */
  .cop__topo { padding: 0.7rem 0.8rem; gap: 0.6rem; flex-wrap: wrap; }
  .cop__mascote { width: 38px; height: 38px; }
  .cop__titulo { flex: 1 1 auto; }
  .cop__titulo h1 { font-size: 1.05rem; }
  .cop__titulo p { display: none; }

  .cop__ambiente { order: 3; flex: 1 1 auto; }
  .cop__ambiente button { flex: 1; justify-content: center; }
  .cop__acoes-topo { order: 4; }
  .cop__acoes-topo button { width: 34px; height: 34px; }

  .cop__msg-bolha { max-width: 88%; }
  .cop__boasvindas { padding-inline: 0.25rem; }
  .cop__hero-mascote { width: 66px; height: 66px; }
  .cop__boasvindas h2 { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AMBIENTE — produção x homologação
   Trocar a paleta inteira é de propósito: descobrir em qual base se agiu
   depois de agir é tarde demais.
   ═══════════════════════════════════════════════════════════════════════════ */

.cop--homolog {
  --cop: #92400E;
  --cop-escuro: #6B2E08;
  --cop-claro: #C2700F;
  --cop-fundo: #FFFBF3;
  --cop-borda: #F5DEB8;
}

.cop__ambiente {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.cop__ambiente button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.cop__ambiente button.ativo {
  background: #fff;
  color: var(--cop-escuro);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.cop__faixa-homolog {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  margin: -0.4rem 0 1rem;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  color: #78350F;
  font-size: 0.85rem;
  animation: cop-entra 0.3s ease both;
}

/* ── Ações do topo ────────────────────────────────────────────────────── */
.cop__acoes-topo { display: flex; gap: 0.35rem; flex-shrink: 0; }

.cop__acoes-topo button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cop__acoes-topo button:hover { background: rgba(255, 255, 255, 0.26); }
.cop__acoes-topo button.ativo { background: #fff; color: var(--cop-escuro); }

/* ═══════════════════════════════════════════════════════════════════════════
   BOAS-VINDAS — a primeira coisa que alguém vê no Copilot.
   Quem chega não sabe que pode mandar comando nem que existe confirmação
   antes de gravar; a tela explica antes de a pessoa tentar adivinhar.
   ═══════════════════════════════════════════════════════════════════════════ */

/*
 * `margin: auto` aqui centralizava vertical E horizontalmente — e quando o bloco
 * fica mais alto que a área rolável, a sobra de cima vira espaço NEGATIVO que o
 * scroll não alcança: o mascote e o título simplesmente somem.
 *
 * Centralizar na horizontal (margin-inline) e deixar o conteúdo começar do topo
 * resolve: quando cabe, o `justify-content` do container centraliza; quando não
 * cabe, ele rola inteiro.
 */
.cop__boasvindas {
  margin-inline: auto;
  width: 100%;
  text-align: center;
  max-width: 620px;
  padding: 0.35rem 0.5rem 0.75rem;
}

/* Só centraliza verticalmente quando não há transbordo (estado de boas-vindas) */
.cop__mensagens:has(.cop__boasvindas) { justify-content: safe center; }

.cop__hero { position: relative; display: inline-block; margin-bottom: 0.5rem; }

.cop__hero-mascote {
  position: relative;
  width: 78px;
  height: 78px;
  object-fit: contain;
  animation: cop-flutua 3.6s ease-in-out infinite, cop-entra 0.55s ease both;
}

/* Respiro de luz atrás do mascote — dá vida sem distrair da leitura */
.cop__halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 78, 160, 0.2) 0%, transparent 68%);
  animation: cop-respira 3.6s ease-in-out infinite;
}
.cop--homolog .cop__halo {
  background: radial-gradient(circle, rgba(194, 112, 15, 0.22) 0%, transparent 68%);
}

.cop__boasvindas h2 {
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 0 0.5rem;
  font-weight: 700;
  animation: cop-entra 0.55s 0.1s ease both;
}
.cop__boasvindas h2 strong { color: var(--cop); }

/* Cursor piscando: sinaliza "é aqui que você escreve" */
.cop__cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--cop-claro);
  animation: cop-pisca 1.1s step-end infinite;
}

.cop__hero-sub {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 auto 0.85rem;
  max-width: 470px;
  animation: cop-entra 0.55s 0.18s ease both;
}
.cop__hero-sub strong { color: var(--grava); }

.cop__capacidades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

.cop__cap {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--cop-borda);
  border-radius: 11px;
  background: var(--cop-fundo);
  animation: cop-entra 0.5s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cop__cap:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(6, 58, 122, 0.1); }

.cop__cap-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--cop);
  color: #fff;
  font-size: 0.68rem;
  flex-shrink: 0;
}

/* Ícone e título dividem a primeira linha; a descrição alinha sob o texto */
.cop__cap h3 {
  display: block;
  font-size: 0.78rem;
  color: #1e293b;
  margin: 0.3rem 0 0.2rem;
  font-weight: 700;
  line-height: 1.25;
}
.cop__cap p { font-size: 0.71rem; color: #64748b; margin: 0; line-height: 1.4; }

.cop__experimente {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.45rem;
  text-align: left;
}

.cop__exemplos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; }

.cop__exemplos button {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.48rem 0.7rem;
  font-size: 0.8rem;
  text-align: left;
  min-width: 0;
  border: 1px solid var(--cop-borda);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  animation: cop-entra 0.45s ease both;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.cop__exemplos button:hover {
  border-color: var(--cop-claro);
  background: var(--cop-fundo);
  transform: translateX(4px);
}
.cop__exemplos button > i:first-child { color: var(--cop); width: 15px; flex-shrink: 0; margin-top: 2px; }
.cop__exemplos button span { flex: 1; min-width: 0; line-height: 1.35; }

.cop__exemplo-seta { opacity: 0; color: var(--cop); flex-shrink: 0; margin-top: 2px; transition: opacity 0.2s ease; }
.cop__exemplos button:hover .cop__exemplo-seta { opacity: 1; }

.cop__rodape-ip {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  animation: cop-entra 0.5s 1.1s ease both;
}
.cop__rodape-ip code {
  background: var(--cop-fundo);
  border: 1px solid var(--cop-borda);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  color: var(--cop-escuro);
}

/* O mascote gira devagar enquanto o Copilot pensa */
.cop__msg-avatar--pensando { animation: cop-gira 2.2s linear infinite; }

@keyframes cop-entra {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cop-flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes cop-respira {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes cop-pisca { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes cop-gira {
  0%, 70%, 100% { transform: rotate(0deg); }
  80%           { transform: rotate(-11deg); }
  90%           { transform: rotate(11deg); }
}

/* Quem pediu menos animação no sistema não deve levar nenhuma daqui */
@media (prefers-reduced-motion: reduce) {
  .cop__hero-mascote, .cop__halo, .cop__cursor, .cop__msg-avatar--pensando,
  .cop__cap, .cop__exemplos button, .cop__boasvindas h2, .cop__hero-sub,
  .cop__rodape-ip, .cop__faixa-homolog {
    animation: none !important;
  }
}

/* ── Histórico de conversas ───────────────────────────────────────────── */
.cop__nova {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem;
  margin-bottom: 0.85rem;
  border: 1px dashed var(--cop-borda);
  border-radius: 9px;
  background: var(--cop-fundo);
  color: var(--cop);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.cop__nova:hover { border-color: var(--cop); border-style: solid; }

.cop__conversa-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cop__conversa-item:hover { background: var(--cop-fundo); border-color: var(--cop-borda); }
.cop__conversa-item.ativa { background: var(--cop-fundo); border-color: var(--cop-claro); }

.cop__conversa-info { flex: 1; min-width: 0; }
.cop__conversa-info strong {
  display: block;
  font-size: 0.83rem;
  color: #334155;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cop__conversa-info span { font-size: 0.71rem; color: #94a3b8; }

.cop__conversa-apagar {
  border: none;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: color 0.18s ease;
}
.cop__conversa-apagar:hover { color: #ef4444; }

.cop__corpo--cheio { grid-template-columns: 1fr; }

/* ── Responsivo das boas-vindas ───────────────────────────────────────────
   Fica no FIM do arquivo de propósito: media query com a mesma especificidade
   da regra base só vence se vier depois dela na ordem de origem. */
@media (max-width: 1300px) {
  .cop__capacidades { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .cop__capacidades,
  .cop__exemplos { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cop__topo { flex-wrap: wrap; }
  .cop__ambiente { order: 3; flex: 1 1 auto; }
  .cop__ambiente button { flex: 1; justify-content: center; }
  .cop__acoes-topo { order: 4; }
  .cop__hero-mascote { width: 66px; height: 66px; }
  .cop__boasvindas h2 { font-size: 1.1rem; }
}
/* Auditoria do Copilot — mesma paleta escura do Copilot. */

.aud {
  --cop: #063A7A;
  --cop-escuro: #002B5E;
  --cop-claro: #0A4EA0;
  --cop-fundo: #F2F6FC;
  --cop-borda: #D6E2F2;
  --grava: #B45309;
  --falha: #DC2626;
}

.aud__topo { margin-bottom: 1.25rem; }
.aud__topo h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cop-escuro);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.aud__topo p { margin: 0.25rem 0 0; color: #64748b; font-size: 0.88rem; }

/* ── Cartões de resumo ────────────────────────────────────────────────── */
.aud__cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.aud__cartao {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-left: 4px solid var(--cop);
  border-radius: 11px;
}
.aud__cartao--escrita { border-left-color: var(--grava); }
.aud__cartao--falha { border-left-color: var(--falha); }
.aud__cartao--homolog { border-left-color: #C2700F; }

.aud__num { display: block; font-size: 1.55rem; font-weight: 800; color: var(--cop-escuro); line-height: 1.1; }
.aud__rot { font-size: 0.75rem; color: #94a3b8; }

/* ── Filtros ──────────────────────────────────────────────────────────── */
.aud__filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 11px;
}

.aud__filtros input[type="text"] { flex: 1; min-width: 240px; }

.aud__filtros input[type="text"],
.aud__filtros select {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--cop-borda);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #334155;
  background: #fff;
  outline: none;
}
.aud__filtros input[type="text"]:focus,
.aud__filtros select:focus { border-color: var(--cop-claro); }

.aud__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  padding: 0 0.4rem;
}

/* ── Tabela ───────────────────────────────────────────────────────────── */
.aud__tabela-wrap {
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 11px;
  overflow-x: auto;
}

.aud__tabela { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.aud__tabela thead th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: var(--cop-fundo);
  color: var(--cop-escuro);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid var(--cop-borda);
}

.aud__tabela tbody tr { border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.aud__tabela tbody tr:hover { background: var(--cop-fundo); }
.aud__tabela td { padding: 0.65rem 0.85rem; color: #334155; vertical-align: middle; }

/* Gravação tem marca própria: é o que se procura numa investigação */
.aud__linha--escrita { border-left: 3px solid var(--grava); }
.aud__linha--falha { background: #FEF2F2; }
.aud__linha--falha:hover { background: #FEE2E2; }

.aud__quando { white-space: nowrap; color: #64748b; font-size: 0.8rem; }
.aud__owner { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.aud__cmd { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.aud__cmd i { color: var(--cop); font-size: 0.75rem; }
.aud__linha--escrita .aud__cmd i { color: var(--grava); }

.aud__amb {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--cop-fundo);
  color: var(--cop-escuro);
  white-space: nowrap;
}
.aud__amb--homolog { background: #FEF3C7; color: #78350F; }

.aud__ok { color: #15803d; font-weight: 600; white-space: nowrap; }
.aud__erro { color: var(--falha); font-weight: 600; white-space: nowrap; }
.aud__expandir { color: #cbd5e1; text-align: right; }
.aud__vazio { text-align: center; color: #94a3b8; padding: 2rem !important; }

/* ── Detalhe expandido ────────────────────────────────────────────────── */
.aud__detalhe td { background: #fafbfd; padding: 1rem 1.2rem !important; }
.aud__detalhe dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 0.4rem 1rem; }
.aud__detalhe dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.aud__detalhe dd { margin: 0; font-size: 0.83rem; color: #334155; word-break: break-word; }

.aud__pre {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 7px;
  padding: 0.55rem 0.7rem;
  max-height: 260px;
  overflow-y: auto;
}
.aud__pre--erro { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }

/* ── Paginação ────────────────────────────────────────────────────────── */
.aud__paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.83rem;
  color: #64748b;
}
.aud__paginacao button {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--cop-borda);
  border-radius: 8px;
  background: #fff;
  color: var(--cop);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.aud__paginacao button:disabled { opacity: 0.45; cursor: not-allowed; }
.aud__paginacao button:hover:not(:disabled) { border-color: var(--cop); }

/* ── Ranking ──────────────────────────────────────────────────────────── */
.aud__ranking {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--cop-borda);
  border-radius: 11px;
}
.aud__ranking h2 { font-size: 0.95rem; color: var(--cop-escuro); margin: 0 0 0.9rem; font-weight: 700; }

.aud__barra { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.82rem; }
.aud__barra-nome { width: 210px; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.aud__barra-trilho { flex: 1; height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.aud__barra-preenche {
  height: 100%;
  background: linear-gradient(90deg, var(--cop-escuro), var(--cop-claro));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.aud__barra-num { width: 110px; text-align: right; color: #64748b; font-size: 0.78rem; flex-shrink: 0; }
.aud__barra-num em { color: var(--falha); font-style: normal; }

/* ── Sem acesso ───────────────────────────────────────────────────────── */
.aud__bloqueado { text-align: center; padding: 4rem 1rem; color: #64748b; }
.aud__bloqueado i { font-size: 2.2rem; color: #cbd5e1; margin-bottom: 0.8rem; }

@media (max-width: 720px) {
  .aud__detalhe dl { grid-template-columns: 1fr; }
  .aud__barra-nome { width: 120px; }
}
/* Leads Container */
.leads-container {
  padding: 2rem;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Header */
.leads-header {
  margin-bottom: 2rem;
}

.leads-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.leads-title-section {
  flex: 1;
}

.leads-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0A4EA0;
  margin: 0;
  display: flex;
  align-items: center;
}

.leads-subtitle {
  color: #6c757d;
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.leads-actions {
  display: flex;
  align-items: center;
}

/* Stats Cards */
.stats-card {
  padding: 1.25rem;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.stats-content {
  flex: 1;
}

.stats-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.stats-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.kanban-column {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

.kanban-column-header {
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.kanban-column-title {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.kanban-column-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.kanban-column-content {
  padding: 0.75rem;
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
  transition: background 0.2s ease;
}

.kanban-column-content.dragging-over {
  background: #f0f7ff;
}

.kanban-column-content::-webkit-scrollbar {
  width: 6px;
}

.kanban-column-content::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-column-content::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

/* Lead Card */
.lead-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
}

.lead-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #0A4EA0;
}

.lead-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.lead-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.btn-delete {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.btn-delete:hover {
  opacity: 1;
}

.lead-card-body {
  margin-bottom: 0.75rem;
}

.lead-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.lead-info i {
  width: 16px;
  font-size: 0.9rem;
}

.lead-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f3f5;
  font-size: 0.8rem;
  color: #6c757d;
}

.lead-date {
  display: flex;
  align-items: center;
}

.lead-source i {
  font-size: 1rem;
}

.empty-column {
  text-align: center;
  padding: 3rem 1rem;
  color: #adb5bd;
}

.empty-column i {
  font-size: 2.5rem;
  opacity: 0.5;
}

.empty-column p {
  margin: 0;
  font-size: 0.9rem;
}

/* List View */
.list-view {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
  animation: fadeInUp 0.5s ease;
}

.leads-table {
  margin: 0;
}

.leads-table thead {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: white;
}

.leads-table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.leads-table tbody tr {
  transition: all 0.2s ease;
}

.leads-table tbody tr:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

.leads-table tbody td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.avatar-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-select {
  max-width: 150px;
  cursor: pointer;
}

/* Modal Customization */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
}

.lead-detail-item {
  margin-bottom: 1.25rem;
}

.lead-detail-item label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9rem;
}

.lead-detail-item p {
  margin: 0;
  color: #212529;
  font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
}

.btn-outline-primary {
  border-color: #0A4EA0;
  color: #0A4EA0;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: #0A4EA0;
  border-color: #0A4EA0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1400px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .leads-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .leads-container {
    padding: 1rem;
  }
  
  .leads-title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   ADMIN PRODUCTS — Padrão visual Phobos Intranet
   (espelha o padrão de Pages.css)
   ============================================================ */

/* ---- Container principal ---- */
.products-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.products-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.products-header::before {
  content: "\f466"; /* fa-box */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2.5rem;
  bottom: -0.5rem;
  font-size: 7rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  line-height: 1;
}

.products-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.products-header-title h1 i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.products-header-title p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

.btn-new-product {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-size: 0.9375rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.btn-new-product:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---- Stats row ---- */
.products-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* reutiliza .premium-stat-card de admin-pages.css */

/* ---- Catalog grid ---- */
.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ==== Product Card ==== */
.product-catalog-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1.5px solid transparent;
}

.product-catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(10, 78, 160, 0.15);
  border-color: rgba(10, 78, 160, 0.2);
}

/* Banner topo do card */
.product-catalog-card-banner {
  height: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.product-catalog-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* Gradients */
.product-grad-0 { background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 100%); }
.product-grad-1 { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.product-grad-2 { background: linear-gradient(135deg, #059669 0%, #34d399 100%); }
.product-grad-3 { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); }
.product-grad-4 { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.product-grad-5 { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }

/* Body */
.product-catalog-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.product-catalog-card-body h5 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.product-catalog-card-body .product-category {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.product-catalog-card-body .product-desc {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stat pills */
.product-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5fb;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.product-stat-pill i { color: #0A4EA0; font-size: 0.7rem; }

/* Version badge */
.product-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  background: rgba(10, 78, 160, 0.08);
  color: #0A4EA0;
  border: 1px solid rgba(10, 78, 160, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Footer */
.product-catalog-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #f0f4f8;
  background: #fafafa;
}

.product-open-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.product-open-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.btn-card-action {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card-action--edit {
  background: #f0f9ff;
  color: #0891b2;
}

.btn-card-action--edit:hover {
  background: #0891b2;
  color: white;
}

.btn-card-action--delete {
  background: #fff1f2;
  color: #dc2626;
}

.btn-card-action--delete:hover {
  background: #dc2626;
  color: white;
}

/* ---- Empty state ---- */
.products-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #8a9ab8;
}

.products-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.25;
}

/* ---- Modal ---- */
.products-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: prodModalFadeIn 0.2s ease;
}

@keyframes prodModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.products-modal {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: prodModalSlideUp 0.3s ease;
}

@keyframes prodModalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.products-modal__header {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.products-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.products-modal__close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.products-modal__close:hover { background: rgba(255,255,255,0.35); }

.products-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.products-modal__body::-webkit-scrollbar { width: 6px; }
.products-modal__body::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.products-modal__body::-webkit-scrollbar-thumb { background: #0A4EA0; border-radius: 3px; }

.products-modal__footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid #e8edf5;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8f9fa;
  flex-shrink: 0;
}

/* Form fields */
.prod-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.prod-form-group {
  margin-bottom: 1.25rem;
}

.prod-form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.prod-form-group label i { color: #0A4EA0; font-size: 0.8rem; }

.prod-form-control {
  width: 100%;
  padding: 0.575rem 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.prod-form-control:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  background: white;
}

.prod-form-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

/* Buttons */
.btn-prod-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-prod-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-prod-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-prod-secondary {
  background: white;
  color: #374151;
  border: 1.5px solid #d1d5db;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-prod-secondary:hover { background: #f3f4f6; border-color: #9ca3af; }

/* Responsive */
@media (max-width: 768px) {
  .products-page { padding: 1rem; }
  .products-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .prod-form-row { grid-template-columns: 1fr; }
  .products-catalog-grid { grid-template-columns: 1fr; }
}
/* ================================================================
   PRODUCT DETAIL — Premium Management Center v2
   Padrão visual Phobos Intranet
   ================================================================ */

/* === HERO HEADER === */
.pd-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 40px rgba(10, 78, 160, 0.45);
}

.pd-hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.pd-hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: 25%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.pd-hero-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative; z-index: 2;
}

.pd-hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem; font-weight: 600; color: #fff;
}

.pd-hero-stat {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  text-align: center;
  min-width: 96px;
  position: relative; z-index: 2;
  transition: background 0.2s;
}
.pd-hero-stat:hover { background: rgba(255,255,255,0.2); }

.pd-hero-stat-value {
  font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1;
}
.pd-hero-stat-label {
  font-size: 0.68rem; color: rgba(255,255,255,0.72); margin-top: 5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Hero buttons — must be above pseudo-elements */
.pd-hero .d-flex.gap-2 {
  position: relative; z-index: 10;
}
.pd-hero-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-size: 0.84rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  position: relative; z-index: 10;
}
.pd-hero-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* === BREADCRUMB === */
.pd-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: #64748b;
  margin-bottom: 1.25rem;
}
.pd-breadcrumb-link {
  color: #0A4EA0; text-decoration: none; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
  transition: color 0.15s;
  background: none; border: none; padding: 0; font-size: 0.82rem;
}
.pd-breadcrumb-link:hover { color: #002b5e; text-decoration: underline; }

/* === TABS === */
.pd-tabs-bar {
  display: flex; gap: 0;
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pd-tabs-bar::-webkit-scrollbar { display: none; }

.pd-tab-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.84rem; font-weight: 500;
  color: #64748b;
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s;
}
.pd-tab-btn:hover:not(.active) {
  background: #f1f5fb;
  color: #0A4EA0;
}
.pd-tab-btn.active {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(10,78,160,0.32);
}
.pd-tab-badge {
  background: rgba(255,255,255,0.28);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.68rem; font-weight: 700;
}
.pd-tab-btn:not(.active) .pd-tab-badge {
  background: #e8edf5;
  color: #64748b;
}

/* === CONTENT CARDS === */
.pd-card {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.pd-card-header {
  padding: 1.4rem 1.75rem;
  border-bottom: 1.5px solid #f0f4f8;
  display: flex; align-items: center; justify-content: space-between;
  background: #fafbff;
}
.pd-card-header h6 {
  font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.pd-card-header h6 i { color: #0A4EA0; }

.pd-card-body { padding: 1.75rem; }

/* === INFO GRID === */
.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pd-info-tile {
  background: linear-gradient(135deg, #f8faff 0%, #f1f5fb 100%);
  border: 2px solid #e8edf5;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  transition: all 0.2s;
}
.pd-info-tile:hover {
  border-color: #c7d9f5;
  box-shadow: 0 4px 12px rgba(10,78,160,0.08);
  transform: translateY(-2px);
}
.pd-info-tile-label {
  font-size: 0.7rem; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 600; margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.pd-info-tile-label i { color: #0A4EA0; }
.pd-info-tile-value {
  font-size: 1.05rem; font-weight: 700; color: #1e293b;
}

/* === VERSION TIMELINE === */
.pd-timeline {
  position: relative;
  padding-left: 2.75rem;
}
.pd-timeline::before {
  content: "";
  position: absolute; left: 12px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, #0A4EA0 0%, #e2e8f0 100%);
}

.pd-timeline-entry {
  position: relative; margin-bottom: 2rem;
}
.pd-timeline-entry:last-child { margin-bottom: 0; }

.pd-timeline-dot {
  position: absolute; left: -2.75rem; top: 20px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  z-index: 1;
}
.pd-timeline-dot.feature     { background: linear-gradient(135deg,#0A4EA0,#1a6fd4); }
.pd-timeline-dot.bugfix      { background: linear-gradient(135deg,#ef4444,#dc2626); }
.pd-timeline-dot.improvement { background: linear-gradient(135deg,#059669,#10b981); }
.pd-timeline-dot.breaking    { background: linear-gradient(135deg,#d97706,#f59e0b); }

.pd-version-card {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.22s;
}
.pd-version-card:hover {
  border-color: #c7d9f5;
  box-shadow: 0 8px 28px rgba(10,78,160,0.1);
  transform: translateY(-2px);
}

.pd-version-head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1.5px solid #f0f4f8;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: #fafbff;
}
.pd-version-body {
  padding: 1.1rem 1.5rem;
  font-size: 0.875rem; line-height: 1.75;
  color: #4b5563;
  background: #fff;
}

/* === TYPE BADGES === */
.pd-type-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pd-type-badge.feature     { background: rgba(10,78,160,0.1);   color: #0A4EA0; border: 1px solid rgba(10,78,160,0.2); }
.pd-type-badge.bugfix      { background: rgba(239,68,68,0.1);   color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.pd-type-badge.improvement { background: rgba(5,150,105,0.1);   color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.pd-type-badge.breaking    { background: rgba(217,119,6,0.1);   color: #d97706; border: 1px solid rgba(217,119,6,0.2); }

/* === HOMOLOGATION TABLE === */
.pd-homolog-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.75rem;
  border-bottom: 1.5px solid #f0f4f8;
  transition: background 0.15s;
}
.pd-homolog-row:last-child { border-bottom: none; }
.pd-homolog-row:hover { background: #f8fbff; }

.pd-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  border: 1px solid transparent;
}
.pd-status-badge.pending     { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pd-status-badge.in_progress { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.pd-status-badge.completed   { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.pd-status-badge.cancelled   { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.pd-priority-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.pd-priority-dot.low    { background: #94a3b8; }
.pd-priority-dot.medium { background: #f59e0b; }
.pd-priority-dot.high   { background: #ef4444; }
.pd-priority-dot.urgent { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }

/* === FEATURES === */
.pd-feature-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 0.875rem; color: #374151;
}
.pd-feature-item:last-child { border-bottom: none; }
.pd-feature-item i { color: #059669; width: 16px; flex-shrink: 0; margin-top: 3px; }

/* === CHECKLIST === */
.pd-checklist-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.pd-checklist-item:hover { background: #f1f5fb; }
.pd-checklist-cat {
  font-size: 0.7rem; color: #64748b; text-transform: uppercase;
  letter-spacing: 0.07em; font-weight: 700;
  padding: 0.85rem 0 0.35rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.pd-checklist-cat i { color: #0A4EA0; }

/* === EMPTY STATE === */
.pd-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 4rem 2rem; text-align: center;
}
.pd-empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#f1f5fb,#e8edf5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #94a3b8;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}

/* ================================================================
   MODAL — Custom overlay, padrão igual ao Pages.tsx
   ================================================================ */

.pd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: pdModalFadeIn 0.2s ease;
}

@keyframes pdModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pd-modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pdModalSlideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes pdModalSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pd-modal-header {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 60%, #1a6fd4 100%);
  padding: 1.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pd-modal-header::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.pd-modal-header h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative; z-index: 1;
}
.pd-modal-header h5 i { color: rgba(255,255,255,0.85); }
.pd-modal-header h5 span { color: rgba(255,255,255,0.65); font-weight: 400; font-size: 0.9rem; }

.pd-modal-close {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  position: relative; z-index: 1;
}
.pd-modal-close:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.55);
  transform: rotate(90deg);
}

.pd-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.pd-modal-body::-webkit-scrollbar { width: 6px; }
.pd-modal-body::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.pd-modal-body::-webkit-scrollbar-thumb { background: #0A4EA0; border-radius: 3px; }

/* Keep TipTap editor toolbar visible at top, content scrolls inside its wrapper */
.pd-modal-body .ProseMirror {
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.75rem;
}

.pd-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 2px solid #f0f4f8;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8faff;
  flex-shrink: 0;
}

/* === FORM IN MODAL === */
.pd-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.pd-form-group { margin-bottom: 1.1rem; }
.pd-form-group:last-child { margin-bottom: 0; }

.pd-form-group label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: #374151;
  margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.pd-form-group label i { color: #0A4EA0; font-size: 0.75rem; }

.pd-form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f8faff;
  transition: all 0.2s;
  outline: none;
}
.pd-form-control:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10,78,160,0.1);
  background: #fff;
}
.pd-form-control::placeholder { color: #94a3b8; }

.pd-form-hint {
  font-size: 0.75rem; color: #94a3b8; margin-top: 0.3rem;
}

/* === BUTTONS === */
.pd-btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(10,78,160,0.3);
}
.pd-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,78,160,0.4); }
.pd-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.pd-btn-secondary {
  background: #fff;
  color: #374151;
  border: 2px solid #e2e8f0;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s;
}
.pd-btn-secondary:hover { background: #f1f5fb; border-color: #c7d9f5; }

.pd-btn-outline {
  background: rgba(10,78,160,0.06);
  color: #0A4EA0;
  border: 1.5px solid rgba(10,78,160,0.25);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s;
}
.pd-btn-outline:hover { background: rgba(10,78,160,0.12); border-color: #0A4EA0; }

.pd-btn-icon {
  width: 34px; height: 34px;
  border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.pd-btn-icon.edit   { background: #e0f2fe; color: #0284c7; }
.pd-btn-icon.edit:hover   { background: #0284c7; color: #fff; }
.pd-btn-icon.delete { background: #fee2e2; color: #dc2626; }
.pd-btn-icon.delete:hover { background: #dc2626; color: #fff; }

/* === STAT SUMMARY BAR === */
.pd-summary-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  border-bottom: 1.5px solid #f0f4f8;
  background: #fafbff;
}

/* === SECTION LABEL (changelog textarea) === */
.pd-changelog-area {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.82rem; line-height: 1.8;
  min-height: 200px;
  resize: vertical;
}

/* === TOGGLE SWITCH === */
.pd-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
  margin-right: auto;
}
.pd-toggle-label i { color: #0A4EA0; font-size: 0.8rem; }

.pd-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.pd-toggle input { opacity: 0; width: 0; height: 0; }
.pd-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.25s;
  cursor: pointer;
}
.pd-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.pd-toggle input:checked + .pd-toggle-slider { background: #0A4EA0; }
.pd-toggle input:checked + .pd-toggle-slider::before { transform: translateX(18px); }

/* Responsive */
@media (max-width: 768px) {
  .pd-hero { padding: 1.75rem 1.25rem; }
  .pd-modal { border-radius: 14px; }
  .pd-modal-body { padding: 1.25rem; }
  .pd-modal-footer { padding: 1rem 1.25rem; }
  .pd-form-row { grid-template-columns: 1fr; }
}
/* WidgetTerminais.css — Produtos · Widget (terminais ao vivo + auditoria)
   Paleta Phobos: #002b5e (escuro) · #0A4EA0 (principal) · #1e6ecf (claro) */
.wgt-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.wgt-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.25rem 2.5rem; color: #fff;
  margin-bottom: 1.25rem; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.35);
}
.wgt-hero::before { content:""; position:absolute; right:-70px; top:-70px; width:300px; height:300px; background:rgba(255,255,255,0.06); border-radius:50%; pointer-events:none; }
.wgt-hero::after { content:""; position:absolute; right:90px; bottom:-120px; width:200px; height:200px; background:rgba(255,255,255,0.04); border-radius:50%; pointer-events:none; }
.wgt-hero-top { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; flex-wrap:wrap; position:relative; }
.wgt-hero-id { display:flex; align-items:center; gap:1.15rem; }
.wgt-hero-icon { width:72px; height:72px; border-radius:20px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.wgt-hero-badges { display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:.5rem; }
.wgt-hero-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:.25rem .75rem; font-size:.72rem; font-weight:600; }
.wgt-hero-badge--lock { background:rgba(0,0,0,0.18); border-color:rgba(255,255,255,0.15); }
.wgt-hero-title { font-size:1.9rem; font-weight:800; margin:0 0 .3rem; letter-spacing:-.01em; }
.wgt-hero-sub { font-size:.9rem; color:rgba(255,255,255,0.78); margin:0; max-width:62ch; line-height:1.5; }
.wgt-hero-stats { display:flex; gap:.65rem; flex-wrap:wrap; }
.wgt-stat { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.16); border-radius:14px; padding:.8rem 1.05rem; text-align:center; min-width:84px; backdrop-filter:blur(2px); }
.wgt-stat--green { background:rgba(5,150,105,0.28); border-color:rgba(5,150,105,0.42); }
.wgt-stat--amber { background:rgba(217,119,6,0.28); border-color:rgba(217,119,6,0.42); }
.wgt-stat-value { font-size:1.6rem; font-weight:800; line-height:1; }
.wgt-stat-label { font-size:.64rem; color:rgba(255,255,255,0.72); text-transform:uppercase; letter-spacing:.07em; margin-top:5px; }

/* ── ABAS ─────────────────────────────────────────────────────────────── */
.wgt-tabs { display:flex; align-items:center; gap:.4rem; background:#fff; border:2px solid #e8edf5; border-radius:16px 16px 0 0; border-bottom:none; padding:.5rem .6rem 0; }
.wgt-tab { display:inline-flex; align-items:center; gap:.55rem; background:none; border:none; border-bottom:3px solid transparent; border-radius:10px 10px 0 0; padding:.7rem 1.15rem; font-size:.88rem; font-weight:600; color:#64748b; cursor:pointer; transition:all .18s; }
.wgt-tab i { font-size:.9rem; opacity:.75; }
.wgt-tab:hover { background:#f8faff; color:#0A4EA0; }
.wgt-tab.active { color:#0A4EA0; font-weight:800; border-bottom-color:#0A4EA0; background:#f8faff; }
.wgt-tab.active i { opacity:1; }
.wgt-tab-count { background:#eef4fd; color:#0A4EA0; border-radius:20px; padding:.1rem .55rem; font-size:.72rem; font-weight:800; min-width:22px; text-align:center; }
.wgt-tab.active .wgt-tab-count { background:#0A4EA0; color:#fff; }
.wgt-tabs-live { margin-left:auto; margin-right:.4rem; display:inline-flex; align-items:center; gap:.45rem; font-size:.73rem; font-weight:600; color:#64748b; }
.wgt-live-dot { width:8px; height:8px; border-radius:50%; background:#1e6ecf; animation:wgt-pulse 1.4s ease-in-out infinite; }
@keyframes wgt-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.3; transform:scale(.75); } }

/* ── PAINEL (conteúdo da aba) ─────────────────────────────────────────── */
.wgt-panel { background:#fff; border:2px solid #e8edf5; border-radius:0 0 18px 18px; box-shadow:0 4px 18px rgba(0,0,0,0.05); overflow:hidden; }

.wgt-toolbar { display:flex; gap:.75rem; align-items:center; padding:.9rem 1.1rem; border-bottom:1px solid #eef2f8; background:#fbfcfe; flex-wrap:wrap; }
.wgt-toolbar-title { display:inline-flex; align-items:center; gap:.5rem; font-size:.92rem; font-weight:800; color:#0f172a; flex:1; }
.wgt-toolbar-title i { color:#0A4EA0; }
.wgt-search { display:flex; align-items:center; gap:.5rem; background:#fff; border:1.5px solid #e2e8f0; border-radius:10px; padding:.45rem .9rem; flex:1; min-width:220px; transition:border-color .18s, box-shadow .18s; }
.wgt-search:focus-within { border-color:#0A4EA0; box-shadow:0 0 0 3px rgba(10,78,160,0.1); }
.wgt-search i { color:#94a3b8; font-size:.8rem; }
.wgt-search input { border:none; background:none; outline:none; font-size:.85rem; color:#1e293b; width:100%; }
.wgt-search-clear { background:none; border:none; color:#94a3b8; cursor:pointer; padding:0 .1rem; font-size:.85rem; }
.wgt-search-clear:hover { color:#0A4EA0; }
.wgt-chip { display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; font-weight:600; color:#0A4EA0; background:#eef4fd; border:1px solid #c7dcf7; border-radius:20px; padding:.3rem .8rem; white-space:nowrap; }
.wgt-btn-danger { background:linear-gradient(135deg,#c0392b,#7b241c); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.45rem; box-shadow:0 4px 12px rgba(192,57,43,0.28); transition:all .2s; white-space:nowrap; }
.wgt-btn-danger:hover:not(:disabled) { opacity:.92; transform:translateY(-1px); }
.wgt-btn-danger:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }

/* ── TABELA ───────────────────────────────────────────────────────────── */
.wgt-table-wrap { overflow:auto; max-height:calc(100vh - 400px); }
.wgt-table { width:100%; border-collapse:separate; border-spacing:0; }
.wgt-table thead th { position:sticky; top:0; z-index:2; background:#f4f7fc; padding:.8rem 1.1rem; font-size:.7rem; font-weight:800; color:#5b6b82; text-transform:uppercase; letter-spacing:.07em; border-bottom:2px solid #e3eaf5; text-align:left; white-space:nowrap; }
.wgt-table thead th i { margin-right:.4rem; color:#0A4EA0; opacity:.8; }
.wgt-table td { padding:.8rem 1.1rem; font-size:.85rem; color:#374151; border-bottom:1px solid #f1f5fb; vertical-align:middle; white-space:nowrap; }
.wgt-table tbody tr { cursor:pointer; transition:background .15s; }
.wgt-table tbody tr:nth-child(even):not(.wgt-detail-row):not(.wgt-row--sel) { background:#fcfdff; }
.wgt-table tbody tr:hover:not(.wgt-detail-row) { background:#f4f8ff; }
.wgt-table tbody tr:last-child td { border-bottom:none; }
.wgt-row--sel { background:#eef4fd !important; box-shadow:inset 3px 0 0 #0A4EA0; }
.wgt-alias { font-weight:700; color:#0f172a; }
.wgt-owner { display:inline-block; font-weight:600; color:#334155; }
.wgt-sub { font-size:.72rem; color:#94a3b8; margin-top:2px; }
.wgt-sub-cell { color:#64748b; font-size:.8rem; }
.wgt-ip { background:#f1f5fb; border:1px solid #e2e8f0; border-radius:6px; padding:.15rem .5rem; font-size:.78rem; font-family:ui-monospace,Menlo,monospace; color:#0A4EA0; font-weight:700; }
.wgt-ok { color:#047857; font-weight:600; }
.wgt-pendente { color:#b45309; font-weight:600; }

/* STATUS */
.wgt-status { display:inline-flex; align-items:center; gap:.4rem; border-radius:20px; padding:.25rem .7rem; font-size:.69rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.wgt-status.ok      { background:#d1fae5; color:#065f46; }
.wgt-status.wait    { background:#fef3c7; color:#92400e; }
.wgt-status.running { background:#dbeafe; color:#1e40af; }
.wgt-status.done    { background:#d7e6fb; color:#002b5e; }
.wgt-status.running i { animation:wgt-spin 1s linear infinite; }
@keyframes wgt-spin { to { transform:rotate(360deg); } }

.wgt-actions { text-align:right; }
.wgt-btn-row { background:#fff; color:#0A4EA0; border:1.5px solid #cddff5; padding:.35rem .8rem; border-radius:9px; font-size:.76rem; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; transition:all .18s; }
.wgt-btn-row:hover:not(:disabled) { background:linear-gradient(135deg,#0A4EA0,#002b5e); border-color:#0A4EA0; color:#fff; }
.wgt-btn-row:disabled { opacity:.45; cursor:not-allowed; }

.wgt-empty { text-align:center; padding:3.5rem 1rem !important; color:#94a3b8; white-space:normal !important; }
.wgt-empty i { font-size:2.2rem; display:block; margin-bottom:.7rem; color:#cbd5e1; }

/* SKELETON */
.wgt-skeleton-row td { padding:.85rem 1.1rem; }
.wgt-skeleton { display:block; height:12px; border-radius:6px; background:linear-gradient(90deg,#eef2f8 25%,#f7f9fc 37%,#eef2f8 63%); background-size:400% 100%; animation:wgt-shimmer 1.3s ease-in-out infinite; }
@keyframes wgt-shimmer { 0% { background-position:100% 50%; } 100% { background-position:0 50%; } }

/* ── AUDITORIA ────────────────────────────────────────────────────────── */
.wgt-alvo { display:inline-flex; align-items:center; gap:.4rem; background:#f1f5fb; border:1px solid #e2e8f0; border-radius:7px; padding:.2rem .6rem; font-size:.78rem; font-weight:700; color:#334155; }
.wgt-alvo i { font-size:.7rem; opacity:.7; }
.wgt-alvo.todos { background:#fee2e2; border-color:#fecaca; color:#991b1b; }
.wgt-progress-wrap { min-width:170px; }
.wgt-progress { height:6px; border-radius:6px; background:#eef2f8; overflow:hidden; }
.wgt-progress-fill { display:block; height:100%; border-radius:6px; background:linear-gradient(90deg,#1e6ecf,#0A4EA0); transition:width .4s ease; }
.wgt-progress-fill.done { background:linear-gradient(90deg,#10b981,#047857); }
.wgt-progress-label { display:block; font-size:.72rem; color:#64748b; margin-top:4px; }

.wgt-detail-row td { background:#f6f9ff; padding:.9rem 1.25rem !important; white-space:normal !important; box-shadow:inset 0 2px 6px rgba(10,78,160,0.06); }
.wgt-detail { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e3eaf5; border-radius:10px; overflow:hidden; }
.wgt-detail th { padding:.5rem .8rem; font-size:.66rem; font-weight:800; color:#5b6b82; text-transform:uppercase; letter-spacing:.06em; background:#f4f7fc; text-align:left; white-space:nowrap; }
.wgt-detail td { padding:.5rem .8rem; font-size:.8rem; color:#374151; border-top:1px solid #f1f5fb; white-space:nowrap; }
.wgt-detail tbody tr:hover { background:#fafcff; }
.wgt-detail-vazio { font-size:.82rem; color:#94a3b8; font-style:italic; }

/* ── PAGINAÇÃO ────────────────────────────────────────────────────────── */
.wgt-pag { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.1rem; border-top:1px solid #eef2f8; background:#fbfcfe; flex-wrap:wrap; }
.wgt-pag-info { font-size:.8rem; color:#64748b; }
.wgt-pag-info strong { color:#0f172a; }
.wgt-pag-controls { display:flex; align-items:center; gap:.35rem; }
.wgt-pag-size { border:1.5px solid #e2e8f0; background:#fff; border-radius:9px; padding:.35rem .6rem; font-size:.78rem; color:#334155; font-weight:600; cursor:pointer; outline:none; margin-right:.4rem; }
.wgt-pag-size:focus { border-color:#0A4EA0; }
.wgt-pag-btn { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1.5px solid #e2e8f0; border-radius:9px; color:#0A4EA0; cursor:pointer; font-size:.78rem; transition:all .16s; }
.wgt-pag-btn:hover:not(:disabled) { background:#0A4EA0; border-color:#0A4EA0; color:#fff; }
.wgt-pag-btn:disabled { opacity:.35; cursor:not-allowed; }
.wgt-pag-atual { font-size:.8rem; font-weight:700; color:#334155; padding:0 .5rem; min-width:56px; text-align:center; }

/* ── ACESSO NEGADO ────────────────────────────────────────────────────── */
.wgt-negado { background:#fff; border:2px solid #e8edf5; border-radius:18px; padding:4rem 2rem; text-align:center; box-shadow:0 2px 12px rgba(0,0,0,0.04); }
.wgt-negado i { font-size:2.6rem; color:#cbd5e1; margin-bottom:1rem; }
.wgt-negado h2 { font-size:1.3rem; font-weight:800; color:#0f172a; margin:0 0 .5rem; }
.wgt-negado p { font-size:.9rem; color:#64748b; margin:0; }

@media (max-width: 900px) {
  .wgt-page { padding:1rem; }
  .wgt-hero { padding:1.5rem; }
  .wgt-hero-stats { width:100%; }
  .wgt-tabs { border-radius:16px 16px 0 0; overflow-x:auto; }
  .wgt-tabs-live { display:none; }
  .wgt-table-wrap { max-height:none; }
  .wgt-pag { justify-content:center; }
}

/* ── BLOQUEIOS ────────────────────────────────────────────────────────── */
.wgt-stat--red { background:rgba(220,38,38,0.3); border-color:rgba(220,38,38,0.45); }
.wgt-tab-count.alerta { background:#dc2626; color:#fff; animation:wgt-pulse 1.6s ease-in-out infinite; }

.wgt-alerta { display:flex; align-items:center; gap:.7rem; width:100%; text-align:left; margin:0 0 1rem; padding:.85rem 1.1rem; background:linear-gradient(135deg,#fef2f2,#fee2e2); border:2px solid #fecaca; border-radius:14px; color:#991b1b; font-size:.88rem; font-weight:600; cursor:pointer; transition:all .18s; }
.wgt-alerta:hover { border-color:#f87171; transform:translateY(-1px); }
.wgt-alerta > i { font-size:1.1rem; }
.wgt-alerta strong { font-weight:800; }
.wgt-alerta-cta { margin-left:auto; display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }

.wgt-row--alerta { background:#fff7f7 !important; box-shadow:inset 3px 0 0 #dc2626; }
.wgt-status.blocked { background:#fee2e2; color:#991b1b; }
.wgt-btn-liberar { background:linear-gradient(135deg,#059669,#047857); color:#fff; border:none; padding:.4rem .9rem; border-radius:9px; font-size:.78rem; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; box-shadow:0 3px 10px rgba(5,150,105,0.28); transition:all .18s; }
.wgt-btn-liberar:hover:not(:disabled) { opacity:.92; transform:translateY(-1px); }
.wgt-btn-liberar:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
.wgt-check { display:inline-flex; align-items:center; gap:.4rem; font-size:.8rem; font-weight:600; color:#475569; cursor:pointer; user-select:none; }
.wgt-check input { accent-color:#0A4EA0; width:15px; height:15px; cursor:pointer; }
.wgt-acoes { display:flex; flex-direction:column; gap:.35rem; align-items:flex-end; }
.wgt-btn-desligar { background:#fff; color:#b45309; border:1.5px solid #fbbf24; padding:.35rem .8rem; border-radius:9px; font-size:.74rem; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; transition:all .18s; white-space:nowrap; }
.wgt-btn-desligar:hover:not(:disabled) { background:linear-gradient(135deg,#d97706,#b45309); border-color:#b45309; color:#fff; }
.wgt-btn-desligar:disabled { opacity:.5; cursor:not-allowed; }
.wgt-chip-off { display:inline-flex; align-items:center; gap:.35rem; margin-top:4px; font-size:.7rem; font-weight:700; color:#b45309; background:#fffbeb; border:1px solid #fde68a; border-radius:20px; padding:.1rem .5rem; }
/**
 * Migração — painel e apresentação.
 *
 * Duas escalas bem diferentes no mesmo arquivo: o painel usa o tamanho de fonte
 * do resto do admin, e a apresentação é dimensionada em vw para ser lida de
 * longe numa TV. Por isso quase tudo do show usa clamp(): a mesma tela precisa
 * funcionar no monitor do Fernando durante o ensaio e na televisão da sala.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   PAINEL
   ═══════════════════════════════════════════════════════════════════════════ */

.mig-painel {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.mig-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mig-cabecalho h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #002b5e;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mig-cabecalho h1 i { color: #0A4EA0; }

.mig-cabecalho p {
  color: #64748b;
  margin: 0;
  max-width: 70ch;
  line-height: 1.6;
}

.mig-selo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.mig-selo i { font-size: 1.75rem; color: #059669; }
.mig-selo strong { display: block; color: #065f46; }
.mig-selo span { font-size: 0.85rem; color: #047857; }

.mig-carregando {
  padding: 40px;
  text-align: center;
  color: #64748b;
}

.mig-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.mig-cartao-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
}

.mig-cartao-status.ok { border-left-color: #059669; }
.mig-cartao-status.erro { border-left-color: #dc2626; }
.mig-cartao-status.alerta { border-left-color: #f59e0b; }
.mig-cartao-status.neutro { border-left-color: #94a3b8; }

.mig-cartao-status i { font-size: 1.4rem; margin-top: 2px; }
.mig-cartao-status.ok i { color: #059669; }
.mig-cartao-status.erro i { color: #dc2626; }
.mig-cartao-status.alerta i { color: #f59e0b; }
.mig-cartao-status.neutro i { color: #94a3b8; }

.mig-cartao-status h3 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.mig-cartao-status p { margin: 0; color: #1e293b; font-size: 0.92rem; line-height: 1.5; }

.mig-colunas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.mig-bloco {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
}

.mig-bloco h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #002b5e;
  margin: 0 0 16px;
}

.mig-bloco h2 i { color: #0A4EA0; }
.mig-bloco__segundo { margin-top: 28px; }

.mig-contador {
  margin-left: auto;
  background: #0A4EA0;
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
}

.mig-lista { list-style: none; margin: 0; padding: 0; }

.mig-lista li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.mig-lista li:last-child { border-bottom: 0; }
.mig-lista__nome { font-weight: 600; color: #1e293b; }
.mig-lista__cargo { font-size: 0.82rem; color: #64748b; }
.mig-lista__tel { font-size: 0.82rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.mig-vazio { color: #94a3b8; font-style: italic; }

.mig-fora {
  margin-top: 20px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.mig-fora h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mig-fora ul { margin: 0; padding-left: 18px; color: #78350f; font-size: 0.88rem; line-height: 1.7; }

.mig-dica { margin: 12px 0 0; font-size: 0.85rem; color: #92400e; }
.mig-dica a { color: #0A4EA0; font-weight: 600; }

.mig-previa {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
}

.mig-nota { font-size: 0.86rem; color: #64748b; line-height: 1.6; margin: 0 0 12px; }
.mig-nota code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

.mig-nota--aviso {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
}

.mig-nota--aviso i { margin-right: 6px; }

.mig-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }

.mig-etiquetas span {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-family: ui-monospace, Menlo, monospace;
}

/* ── Ações ─────────────────────────────────────────────────────────────── */

.mig-acoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.mig-acoes > div {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.mig-acoes h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #002b5e;
}

.mig-acoes p { margin: 0 0 18px; font-size: 0.88rem; color: #64748b; line-height: 1.6; flex: 1; }

.mig-acoes__real { border-color: #0A4EA0; box-shadow: 0 4px 16px rgba(10, 78, 160, 0.1); }
.mig-acoes__real h3 i { color: #0A4EA0; }
.mig-acoes__ensaio h3 i { color: #7c3aed; }
.mig-acoes__rollback h3 i { color: #dc2626; }

.mig-botao {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.mig-botao:disabled { opacity: 0.45; cursor: not-allowed; }
.mig-botao:not(:disabled):hover { transform: translateY(-1px); }

.mig-botao--real {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 78, 160, 0.3);
}

.mig-botao--ensaio { background: #7c3aed; color: #fff; }
.mig-botao--rollback { background: #fff; color: #dc2626; border: 2px solid #dc2626; }
.mig-botao--fantasma { background: transparent; color: #64748b; border: 1px solid #cbd5e1; }

.mig-confirmacao {
  background: #f8fafc;
  border: 1px dashed #0A4EA0;
  border-radius: 10px;
  padding: 16px;
}

.mig-confirmacao p { margin: 0 0 10px; font-size: 0.86rem; }

.mig-confirmacao input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 12px;
}

.mig-confirmacao input:focus { outline: none; border-color: #0A4EA0; }
.mig-confirmacao__botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.mig-confirmacao__botoes .mig-botao { flex: 1; padding: 10px 14px; font-size: 0.88rem; }

.mig-historico { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }

.mig-historico li {
  display: grid;
  grid-template-columns: 74px 1fr 1fr 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.mig-historico li.erro { color: #b91c1c; }

.mig-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  text-align: center;
  letter-spacing: 0.05em;
}

.mig-tag--real { background: #dbeafe; color: #1e40af; }
.mig-tag--ensaio { background: #ede9fe; color: #6d28d9; }

.mig-negado {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

.mig-negado i { font-size: 3rem; color: #cbd5e1; margin-bottom: 18px; }
.mig-negado h2 { color: #334155; margin: 0 0 8px; }


/* ═══════════════════════════════════════════════════════════════════════════
   APRESENTAÇÃO (TV)

   Regra que vale para tudo aqui: altura se mede com min(vw, vh).
   A primeira versão dimensionava só por vw e, numa tela larga e baixa, o ato
   final passava da viewport — o mascote saía cortado em cima e os cartões
   sumiam embaixo. Agora cada bloco cede altura antes de estourar, e o palco
   ainda tem overflow como última rede.
   ═══════════════════════════════════════════════════════════════════════════ */

.mig-show {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(10, 78, 160, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(59, 130, 246, 0.26) 0%, transparent 55%),
    linear-gradient(160deg, #001730 0%, #002b5e 45%, #001024 100%);
  color: #fff;
  overflow: hidden;
  font-family: inherit;
}

.mig-show::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 42%);
  animation: mig-respira 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mig-respira {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.14); opacity: 0.95; }
}

/* ── Campo de estrelas ─────────────────────────────────────────────────── */

.mig-estrelas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.mig-estrelas span {
  position: absolute;
  top: -10px;
  background: #fff;
  border-radius: 50%;
  animation-name: mig-estrela-cai;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes mig-estrela-cai {
  from { transform: translateY(-10px); }
  to { transform: translateY(102vh); }
}

.mig-show__confete {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.mig-show__palco {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.5vh, 44px) clamp(16px, 3vw, 56px);
  overflow-y: auto;
  overflow-x: hidden;
}

.mig-show__ensaio {
  position: absolute;
  top: clamp(10px, 1.6vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(124, 58, 237, 0.92);
  color: #fff;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: clamp(0.7rem, min(1.2vw, 1.6vh), 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mig-show__som {
  position: absolute;
  top: clamp(10px, 1.6vh, 24px);
  right: clamp(12px, 2vw, 32px);
  z-index: 6;
  width: clamp(38px, 3.4vw, 52px);
  height: clamp(38px, 3.4vw, 52px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: clamp(0.85rem, 1.2vw, 1.15rem);
  cursor: pointer;
  transition: background 0.2s;
}

.mig-show__som:hover { background: rgba(255, 255, 255, 0.24); }

.mig-ato {
  width: 100%;
  max-width: 1500px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Ato 1: contagem ───────────────────────────────────────────────────── */

.mig-ato__logo {
  width: clamp(88px, min(13vw, 15vh), 210px);
  margin-bottom: clamp(10px, 2.4vh, 36px);
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
}

.mig-ato__sobretitulo {
  font-size: clamp(0.95rem, min(2.4vw, 3.4vh), 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 clamp(4px, 1vh, 14px);
}

.mig-contagem {
  height: clamp(7rem, min(24vw, 34vh), 22rem);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.mig-contagem__numero {
  display: block;
  font-size: clamp(6rem, min(22vw, 32vh), 20rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(96, 165, 250, 0.5);
  font-variant-numeric: tabular-nums;
}

.mig-contagem__numero--quente {
  background: linear-gradient(180deg, #ffffff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 90px rgba(251, 191, 36, 0.6);
}

.mig-ato__anel {
  width: min(70vw, 760px);
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: clamp(14px, 3vh, 46px);
  flex-shrink: 0;
}

.mig-ato__anel-preenche {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #fbbf24);
  transform-origin: left center;
}

/* ── Ato 2: a viagem ───────────────────────────────────────────────────── */

.mig-ato__titulo {
  font-size: clamp(1.6rem, min(4.6vw, 6vh), 4rem);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.mig-ato__legenda {
  font-size: clamp(0.9rem, min(2vw, 2.8vh), 1.8rem);
  font-weight: 300;
  color: #93c5fd;
  margin: 0 0 clamp(14px, 3vh, 44px);
  min-height: 1.4em;
}

/* Trilha + etapas lado a lado: o foguete sobe junto com a lista. */
.mig-viagem {
  display: flex;
  gap: clamp(14px, 2.2vw, 36px);
  width: min(94vw, 1060px);
  align-items: stretch;
}

.mig-trilha {
  position: relative;
  width: clamp(34px, 4vw, 62px);
  flex-shrink: 0;
}

.mig-trilha__linha {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mig-trilha__percorrido {
  width: 100%;
  background: linear-gradient(180deg, #fbbf24, #f97316);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
}

.mig-trilha__veiculo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mig-foguete {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mig-foguete-treme 0.22s ease-in-out infinite alternate;
}

@keyframes mig-foguete-treme {
  from { transform: translateX(-0.9px); }
  to { transform: translateX(0.9px); }
}

.mig-foguete__corpo {
  width: clamp(22px, 2.6vw, 40px);
  filter: drop-shadow(0 0 14px rgba(147, 197, 253, 0.6));
}

.mig-foguete__chama {
  width: clamp(9px, 1.1vw, 16px);
  height: clamp(16px, 2vw, 30px);
  margin-top: -2px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #fff 0%, #fbbf24 35%, #f97316 70%, transparent 100%);
  filter: blur(0.6px);
  animation: mig-chama 0.16s ease-in-out infinite alternate;
  transform-origin: top center;
}

.mig-foguete__chama--forte {
  height: clamp(24px, 3.2vw, 48px);
  filter: blur(1px) drop-shadow(0 0 12px rgba(249, 115, 22, 0.8));
}

@keyframes mig-chama {
  from { transform: scaleY(0.82) scaleX(0.92); opacity: 0.85; }
  to { transform: scaleY(1.12) scaleX(1.05); opacity: 1; }
}

.mig-etapas {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9vh, 14px);
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mig-etapa {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding: clamp(7px, 1.2vh, 17px) clamp(13px, 1.8vw, 26px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: clamp(0.8rem, min(1.55vw, 2.1vh), 1.5rem);
  transition: background 0.4s, border-color 0.4s;
}

.mig-etapa__icone { font-size: 1.1em; width: 1.3em; text-align: center; flex-shrink: 0; }
.mig-etapa__titulo { font-weight: 600; }

.mig-etapa__detalhe {
  margin-left: auto;
  font-size: 0.66em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
  max-width: 44%;
}

.mig-etapa--aguardando { opacity: 0.38; }
.mig-etapa--aguardando .mig-etapa__icone { color: rgba(255, 255, 255, 0.5); }

.mig-etapa--rodando {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.55);
}

.mig-etapa--rodando .mig-etapa__icone { color: #93c5fd; }

.mig-etapa--ok { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); }
.mig-etapa--ok .mig-etapa__icone { color: #34d399; }

.mig-etapa--falhou { background: rgba(239, 68, 68, 0.17); border-color: rgba(239, 68, 68, 0.45); }
.mig-etapa--falhou .mig-etapa__icone { color: #f87171; }

.mig-etapa--pulado { opacity: 0.55; }
.mig-etapa--pulado .mig-etapa__icone { color: #a78bfa; }

.mig-etapas--compacta { width: min(92vw, 860px); }
.mig-etapas--compacta .mig-etapa { font-size: clamp(0.75rem, 1.1vw, 1rem); padding: 8px 14px; }

.mig-ato__mascote-trabalhando {
  position: absolute;
  right: clamp(10px, 2.4vw, 52px);
  bottom: clamp(10px, 2.4vh, 42px);
  width: clamp(64px, min(9vw, 14vh), 160px);
  opacity: 0.9;
  pointer-events: none;
}

/* ── Ato 3: a chegada ──────────────────────────────────────────────────── */

.mig-ato--final { gap: clamp(6px, 1.2vh, 18px); }

/* O Phobinho dançando abre a tela final. Maior que o selo antigo porque é ele
   o protagonista do momento, mas ainda preso à altura para não empurrar os
   cartões para fora da viewport. */
.mig-final__festejo {
  width: clamp(120px, min(16vw, 24vh), 300px);
  flex-shrink: 0;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.5));
}

.mig-final__titulo {
  font-size: clamp(1.7rem, min(5.4vw, 8vh), 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
}

.mig-final__marca {
  background: linear-gradient(120deg, #60a5fa 0%, #ffffff 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.mig-final__endereco {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, min(2.6vw, 3.6vh), 2.4rem);
  font-weight: 700;
  padding: clamp(7px, 1.2vh, 16px) clamp(18px, 3vw, 44px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 2px solid rgba(147, 197, 253, 0.5);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.mig-final__endereco i { color: #60a5fa; }

.mig-final__cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(190px, 20vw, 320px), 1fr));
  gap: clamp(9px, 1.3vw, 22px);
  width: min(94vw, 1250px);
}

.mig-cartao {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: clamp(11px, min(1.9vw, 2.4vh), 26px);
  text-align: left;
  backdrop-filter: blur(6px);
}

.mig-cartao i {
  font-size: clamp(1.1rem, min(2vw, 2.6vh), 2rem);
  color: #60a5fa;
  margin-bottom: clamp(4px, 0.9vh, 12px);
  display: block;
}

.mig-cartao h3 {
  margin: 0 0 6px;
  font-size: clamp(0.9rem, min(1.5vw, 2vh), 1.4rem);
  font-weight: 700;
}

.mig-cartao p {
  margin: 0;
  font-size: clamp(0.74rem, min(1.05vw, 1.5vh), 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.mig-cartao strong { color: #fff; }

.mig-final__sair {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: clamp(8px, 1.2vh, 13px) clamp(20px, 2.6vw, 34px);
  font-size: clamp(0.78rem, min(1.15vw, 1.6vh), 1.05rem);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mig-final__sair:hover { background: rgba(255, 255, 255, 0.22); }

/* O mascote fica fora do fluxo: ele decora o canto e nunca empurra o
   conteúdo para fora da tela. */
.mig-final__mascote {
  position: absolute;
  left: clamp(8px, 2.5vw, 64px);
  bottom: 0;
  width: clamp(80px, min(12vw, 26vh), 230px);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* Abaixo disso o mascote disputaria espaço com os cartões. */
@media (max-width: 1100px), (max-height: 620px) {
  .mig-final__mascote { display: none; }
}

/* ── Ato 4: erro ───────────────────────────────────────────────────────── */

.mig-show--erro {
  background: linear-gradient(160deg, #2c0a0a 0%, #3f1414 50%, #1a0505 100%);
}

.mig-show--erro .mig-estrelas { display: none; }

.mig-erro__mascote { width: clamp(70px, min(9vw, 14vh), 150px); margin-bottom: clamp(8px, 1.6vh, 20px); }

.mig-erro__titulo {
  font-size: clamp(1.4rem, min(3.6vw, 5vh), 3.2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.mig-erro__texto {
  font-size: clamp(0.9rem, min(1.7vw, 2.4vh), 1.4rem);
  color: #fca5a5;
  margin: 0 0 8px;
  max-width: 60ch;
}

.mig-erro__calma {
  font-size: clamp(0.82rem, min(1.3vw, 1.9vh), 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 clamp(14px, 2.4vh, 28px);
  max-width: 60ch;
}

.mig-abortar {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mig-abortar:hover { background: rgba(255, 255, 255, 0.26); }

/* Quem prefere menos movimento não precisa aguentar estrela nem tremor. */
@media (prefers-reduced-motion: reduce) {
  .mig-estrelas,
  .mig-show::before { display: none; }
  .mig-foguete,
  .mig-foguete__chama { animation: none; }
}

/* Telas pequenas: o painel continua utilizável, o show encolhe junto. */
@media (max-width: 720px) {
  .mig-painel { padding: 14px; }
  .mig-historico li { grid-template-columns: 1fr; gap: 4px; }
  .mig-lista li { grid-template-columns: 1fr; gap: 2px; }
  .mig-etapa__detalhe { display: none; }
  .mig-viagem { gap: 10px; }
}

/* Aviso de som no painel — fica entre a conferência e os botões, que é onde a
   pessoa está olhando um instante antes de começar. */
.mig-aviso-som {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  font-size: 0.88rem;
  line-height: 1.6;
}

.mig-aviso-som i { font-size: 1.2rem; margin-top: 2px; }
/* ===================================
   DEMANDAS — quadro, lista e painel
   =================================== */

/* O painel e o modal ficam fora de .dm-page: sem as variáveis neles, o botão
   primário perdia o fundo e saía branco sobre branco. */
.dm-page,
.dm-drawer,
.dm-modal-backdrop {
  --dm-brand: #0A4EA0;
  --dm-brand-dark: #002b5e;
  --dm-border: #e2e8f0;
  --dm-muted: #64748b;
  --dm-ink: #0f172a;
}

.dm-page {
  padding: 2rem;
  max-width: 1700px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.dm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dm-border);
}

.dm-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dm-ink);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.dm-header h1 i { color: var(--dm-brand); font-size: 1.4rem; }

.dm-header p {
  margin: 0;
  color: var(--dm-muted);
  font-size: 0.9375rem;
}

.dm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dm-viewswitch {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.dm-viewswitch button {
  border: none;
  background: transparent;
  color: var(--dm-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.dm-viewswitch button:hover { color: var(--dm-brand); }

.dm-viewswitch button.is-active {
  background: #fff;
  color: var(--dm-brand);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ---------- Botões ---------- */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dm-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.dm-btn--sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; }

.dm-btn--primary {
  background: linear-gradient(135deg, var(--dm-brand) 0%, var(--dm-brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}

.dm-btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 78, 160, 0.32);
}

.dm-btn--ghost {
  background: #fff;
  border-color: var(--dm-border);
  color: #475569;
}

.dm-btn--ghost:not(:disabled):hover { background: #f8fafc; border-color: #cbd5e1; }

.dm-btn--danger-ghost {
  background: #fff;
  border-color: #fecaca;
  color: #dc2626;
}

.dm-btn--danger-ghost:hover { background: #fef2f2; }

.dm-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--dm-border);
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.8125rem;
}

.dm-icon-btn:hover { background: var(--dm-brand); border-color: var(--dm-brand); color: #fff; }
.dm-icon-btn--danger:hover { background: #dc2626; border-color: #dc2626; }

/* ---------- KPIs ---------- */
.dm-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.dm-kpi {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

.dm-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-color, var(--dm-brand));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dm-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, var(--kpi-color) 40%, var(--dm-border));
}

.dm-kpi.is-active {
  border-color: var(--kpi-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kpi-color) 14%, transparent);
}

.dm-kpi.is-active::before { opacity: 1; }

.dm-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--kpi-color, var(--dm-brand));
  background: color-mix(in srgb, var(--kpi-color) 12%, #fff);
  flex-shrink: 0;
}

.dm-kpi__body { display: flex; flex-direction: column; min-width: 0; }

.dm-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dm-kpi__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dm-ink);
  line-height: 1.15;
}

.dm-kpi--alert .dm-kpi__value { color: var(--kpi-color); }

/* ---------- Filtros ---------- */
.dm-filters { margin-bottom: 1.5rem; }

.dm-chip {
  --chip-color: var(--dm-brand);
  border: 1px solid color-mix(in srgb, var(--chip-color) 35%, #fff) !important;
  color: var(--chip-color) !important;
  background: color-mix(in srgb, var(--chip-color) 8%, #fff) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dm-chip--active {
  background: var(--chip-color) !important;
  color: #fff !important;
  border-color: var(--chip-color) !important;
}

.dm-clear-filters {
  display: block;
  margin-top: 0.15rem;
  border: none;
  background: none;
  padding: 0;
  color: var(--dm-brand);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Campos ---------- */
.dm-input,
.dm-select,
.dm-textarea {
  width: 100%;
  border: 1.5px solid var(--dm-border);
  border-radius: 10px;
  padding: 0.625rem 0.85rem;
  font-size: 0.9rem;
  color: var(--dm-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.dm-textarea { resize: vertical; line-height: 1.55; }

.dm-input:focus,
.dm-select:focus,
.dm-textarea:focus {
  border-color: var(--dm-brand);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.dm-select--sm {
  width: auto;
  min-width: 150px;
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.dm-select--status {
  width: auto;
  min-width: 145px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--badge-color) 40%, #fff);
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 8%, #fff);
}

.dm-field { margin-bottom: 1.1rem; }

.dm-field > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.dm-hint { display: block; margin-top: 0.35rem; color: var(--dm-muted); font-size: 0.78rem; }

.dm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Switch */
.dm-switch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1.1rem;
}

.dm-switch input { position: absolute; opacity: 0; pointer-events: none; }

.dm-switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.dm-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.dm-switch input:checked + .dm-switch__track { background: var(--dm-brand); }
.dm-switch input:checked + .dm-switch__track .dm-switch__thumb { transform: translateX(20px); }
.dm-switch input:focus-visible + .dm-switch__track { box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.2); }

.dm-switch__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dm-switch__label i { color: #8b5cf6; }

/* ---------- Badges / tags ---------- */
.dm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--badge-color, var(--dm-brand));
  background: color-mix(in srgb, var(--badge-color) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, #fff);
  white-space: nowrap;
}

.dm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.dm-tag--homolog { background: #f3e8ff; color: #7c3aed; }

/* ---------- Pessoa / avatar ---------- */
.dm-person { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.dm-person span, .dm-person strong { font-size: 0.8125rem; color: #334155; }
.dm-person strong { font-weight: 600; display: block; }
.dm-person small { display: block; font-size: 0.72rem; color: var(--dm-muted); }
.dm-person--tight span { font-size: 0.75rem; color: var(--dm-muted); font-weight: 600; }

.dm-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.dm-avatar--text {
  background: linear-gradient(135deg, var(--dm-brand) 0%, var(--dm-brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Quadro (kanban) ---------- */
.dm-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.dm-column {
  background: #f8fafc;
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dm-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 2px solid var(--col-color);
}

.dm-column__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dm-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dm-column__title i { color: var(--col-color); }

.dm-column__count {
  min-width: 24px;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--col-color);
  background: color-mix(in srgb, var(--col-color) 13%, #fff);
}

.dm-column__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
  max-height: calc(100vh - 420px);
  overflow-y: auto;
  transition: background 0.2s ease;
}

.dm-column__body.is-over {
  background: color-mix(in srgb, var(--col-color) 8%, #f8fafc);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--col-color) 35%, transparent);
}

.dm-column__body::-webkit-scrollbar { width: 6px; }
.dm-column__body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.dm-column__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 0;
  color: #cbd5e1;
  font-size: 0.8125rem;
}

.dm-column__empty i { font-size: 1.5rem; }

/* Card */
.dm-card {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-left: 3px solid var(--card-color, var(--dm-brand));
  border-radius: 11px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.dm-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.dm-card.is-dragging {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  transform: rotate(1.5deg);
}

.dm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.dm-card__priority {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--card-color);
}

.dm-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dm-ink);
  line-height: 1.35;
}

.dm-card__desc {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: var(--dm-muted);
  line-height: 1.5;
}

.dm-card__product {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.dm-card__project {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--proj-color);
  background: color-mix(in srgb, var(--proj-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--proj-color) 25%, #fff);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

/* Progresso das tarefas — informativo; o status da demanda continua manual. */
.dm-card__progress { margin-bottom: 0.6rem; }

.dm-card__progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--dm-muted);
  margin-bottom: 0.25rem;
}

.dm-card__progress-head strong { color: var(--dm-ink); font-size: 0.72rem; }

.dm-card__progress-track {
  height: 5px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.dm-card__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--card-color, var(--dm-brand));
  transition: width 0.4s ease;
}

.dm-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #eef2f7;
}

.dm-card__due {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dm-muted);
  white-space: nowrap;
}

.dm-card__due.is-soon { color: #d97706; }
.dm-card__due.is-late { color: #dc2626; font-weight: 800; }

/* ---------- Lista ---------- */
.dm-table-wrap {
  background: #fff;
  border: 1px solid var(--dm-border);
  border-radius: 14px;
  overflow: auto;
}

.dm-table { width: 100%; border-collapse: collapse; }

.dm-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--dm-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #f8fafc;
  border-bottom: 1px solid var(--dm-border);
  white-space: nowrap;
}

.dm-table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.875rem;
}

.dm-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.dm-table tbody tr:hover { background: #f8fafc; }
.dm-table tbody tr:last-child td { border-bottom: none; }

.dm-table__title { display: flex; align-items: flex-start; gap: 0.6rem; }
.dm-table__title strong { display: block; font-weight: 700; color: var(--dm-ink); }
.dm-table__title small { display: block; color: var(--dm-muted); font-size: 0.78rem; margin-top: 0.1rem; }

.dm-table__actions-head { text-align: right; }
.dm-table__actions { text-align: right; white-space: nowrap; }
.dm-table__actions .dm-icon-btn + .dm-icon-btn { margin-left: 0.35rem; }

.dm-due { font-size: 0.8125rem; color: #334155; }
.dm-due.is-late { color: #dc2626; font-weight: 700; }
.dm-due em { display: block; font-style: normal; font-size: 0.7rem; }

.dm-late { color: #dc2626; }

/* ---------- Vazio / carregando ---------- */
.dm-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--dm-muted);
}

.dm-empty i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.9rem; display: block; }
.dm-empty h5 { font-size: 1rem; font-weight: 700; color: #475569; margin: 0 0 0.35rem; }
.dm-empty p { margin: 0; font-size: 0.875rem; }

.dm-empty--board {
  background: #fff;
  border: 1px dashed var(--dm-border);
  border-radius: 14px;
  margin-top: 1rem;
}

.dm-skeletons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.dm-skeleton {
  height: 320px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: dm-shimmer 1.4s infinite;
}

@keyframes dm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dm-muted { color: var(--dm-muted); font-size: 0.875rem; }

/* ---------- Painel lateral ---------- */
.dm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1045;
  animation: dm-fade 0.2s ease;
}

.dm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: #fff;
  z-index: 1046;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  animation: dm-slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dm-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes dm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dm-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
}

.dm-drawer__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dm-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--dm-border);
  background: #fff;
  color: var(--dm-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.dm-drawer__close:hover { background: #f1f5f9; color: var(--dm-ink); }

.dm-drawer__title {
  padding: 0 1.5rem 0.9rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dm-ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.dm-drawer__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--dm-border);
}

.dm-drawer__tabs button {
  border: none;
  background: none;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dm-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.dm-drawer__tabs button:hover { color: var(--dm-brand); }
.dm-drawer__tabs button.is-active { color: var(--dm-brand); border-bottom-color: var(--dm-brand); }

.dm-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }

.dm-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--dm-border);
  background: #f8fafc;
}

.dm-drawer__foot-right { display: flex; gap: 0.6rem; margin-left: auto; }

.dm-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.dm-statusbar__btn {
  border: 1px solid var(--dm-border);
  background: #fff;
  border-radius: 9px;
  padding: 0.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dm-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.18s ease;
}

.dm-statusbar__btn i { font-size: 0.9rem; }
.dm-statusbar__btn:hover { border-color: var(--badge-color); color: var(--badge-color); }

.dm-statusbar__btn.is-active {
  background: var(--badge-color);
  border-color: var(--badge-color);
  color: #fff;
}

.dm-prose {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  margin-bottom: 1.35rem;
}

.dm-meta__item { min-width: 0; }

.dm-meta__item > span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.dm-meta__item > strong { font-size: 0.875rem; font-weight: 600; color: var(--dm-ink); }

/* Timeline */
.dm-comment-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.dm-timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.dm-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #eef2f7;
}

.dm-timeline li {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  position: relative;
}

.dm-timeline li > div { flex: 1; min-width: 0; }

.dm-timeline .dm-avatar { position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }

.dm-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.dm-timeline__head strong { font-size: 0.8125rem; font-weight: 700; color: var(--dm-ink); }
.dm-timeline__head time { font-size: 0.7rem; color: #94a3b8; white-space: nowrap; }

.dm-timeline li p {
  margin: 0;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
  word-break: break-word;
}

.dm-timeline li.is-comment p {
  background: #f8fafc;
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: #334155;
  white-space: pre-wrap;
}

/* ---------- Modal ---------- */
.dm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: dm-fade 0.2s ease;
}

.dm-modal {
  background: #fff;
  border-radius: 16px;
  width: min(640px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: dm-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dm-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dm-modal form { display: flex; flex-direction: column; min-height: 0; }

.dm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--dm-border);
}

.dm-modal__head h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dm-ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dm-modal__head h5 i { color: var(--dm-brand); font-size: 0.95rem; }

.dm-modal__body { padding: 1.35rem 1.5rem 0.25rem; overflow-y: auto; }

.dm-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--dm-border);
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  .dm-kpis { grid-template-columns: repeat(3, 1fr); }
  .dm-board { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .dm-skeletons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dm-page { padding: 1rem; }
  .dm-header { align-items: flex-start; }
  .dm-header__actions { width: 100%; justify-content: space-between; }
  .dm-kpis { grid-template-columns: repeat(2, 1fr); }
  .dm-board, .dm-skeletons { grid-template-columns: 1fr; }
  .dm-column__body { max-height: none; }
  .dm-grid-2, .dm-meta { grid-template-columns: 1fr; }
  .dm-statusbar { grid-template-columns: repeat(2, 1fr); }
  .dm-drawer { width: 100vw; }
  .dm-modal-backdrop { padding: 0; align-items: flex-end; }
  .dm-modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .dm-modal__foot { border-radius: 0; }
}
/* ===================================
   TAREFAS — lista hierárquica
   =================================== */

.tk-page {
  padding: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  --tk-brand: #0A4EA0;
  --tk-brand-dark: #002b5e;
  --tk-border: #e2e8f0;
  --tk-muted: #64748b;
  --tk-ink: #0f172a;
}

/* ---------- Header ---------- */
.tk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--tk-border);
}

.tk-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tk-ink);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.tk-header h1 i { color: var(--tk-brand); font-size: 1.35rem; }
.tk-header p { margin: 0; color: var(--tk-muted); font-size: 0.9375rem; }

.tk-header__actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.tk-viewswitch {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.tk-viewswitch button {
  border: none;
  background: transparent;
  color: var(--tk-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tk-viewswitch button:hover { color: var(--tk-brand); }
.tk-viewswitch button.is-active {
  background: #fff;
  color: var(--tk-brand);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ---------- Botões ---------- */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tk-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tk-btn--sm { padding: 0.4rem 0.8rem; font-size: 0.8125rem; }

.tk-btn--primary {
  background: linear-gradient(135deg, var(--tk-brand) 0%, var(--tk-brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}
.tk-btn--primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 78, 160, 0.32); }

.tk-btn--ghost { background: #fff; border-color: var(--tk-border); color: #475569; }
.tk-btn--ghost:not(:disabled):hover { background: #f8fafc; border-color: #cbd5e1; }

.tk-btn--danger-ghost { background: #fff; border-color: #fecaca; color: #dc2626; }
.tk-btn--danger-ghost:hover { background: #fef2f2; }

.tk-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.16s ease;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.tk-icon-btn:hover { background: var(--tk-brand); border-color: var(--tk-brand); color: #fff; }
.tk-icon-btn--danger:hover { background: #dc2626; border-color: #dc2626; }

.tk-linkbtn {
  border: none;
  background: none;
  padding: 0;
  margin-left: 0.5rem;
  color: var(--tk-brand);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- KPIs ---------- */
.tk-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.tk-kpi {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

.tk-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-color, var(--tk-brand));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tk-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.tk-kpi.is-active {
  border-color: var(--kpi-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kpi-color) 14%, transparent);
}
.tk-kpi.is-active::before { opacity: 1; }

.tk-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--kpi-color, var(--tk-brand));
  background: color-mix(in srgb, var(--kpi-color) 12%, #fff);
  flex-shrink: 0;
}

.tk-kpi__body { display: flex; flex-direction: column; min-width: 0; }
.tk-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tk-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tk-kpi__value { font-size: 1.5rem; font-weight: 800; color: var(--tk-ink); line-height: 1.15; }
.tk-kpi--alert .tk-kpi__value { color: var(--kpi-color); }

/* ---------- Filtros ---------- */
.tk-filters { margin-bottom: 1.5rem; }

.tk-chip-filter {
  --chip-color: var(--tk-brand);
  border: 1px solid color-mix(in srgb, var(--chip-color) 35%, #fff) !important;
  color: var(--chip-color) !important;
  background: color-mix(in srgb, var(--chip-color) 8%, #fff) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tk-chip-filter--active {
  background: var(--chip-color) !important;
  color: #fff !important;
  border-color: var(--chip-color) !important;
}

/* ---------- Campos ---------- */
.tk-input,
.tk-select,
.tk-textarea {
  width: 100%;
  border: 1.5px solid var(--tk-border);
  border-radius: 10px;
  padding: 0.625rem 0.85rem;
  font-size: 0.9rem;
  color: var(--tk-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.tk-textarea { resize: vertical; line-height: 1.55; }

.tk-input:focus,
.tk-select:focus,
.tk-textarea:focus {
  border-color: var(--tk-brand);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.tk-select--sm {
  width: auto;
  min-width: 150px;
  max-width: 220px;
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.tk-field { margin-bottom: 1.1rem; }
.tk-field > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.tk-sub-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tk-brand);
  background: #eff6ff;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  letter-spacing: 0;
}

.tk-hint { display: block; margin-top: 0.35rem; color: var(--tk-muted); font-size: 0.78rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tk-muted { color: var(--tk-muted); font-size: 0.85rem; margin: 0.4rem 0; }

/* ---------- Grupos ---------- */
.tk-groups { display: flex; flex-direction: column; gap: 1rem; }

.tk-group {
  background: #fff;
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  overflow: hidden;
}

.tk-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--tk-border);
  border-left: 3px solid var(--group-color, var(--tk-brand));
}

.tk-group__toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.tk-group__toggle > i { color: #94a3b8; font-size: 0.75rem; flex-shrink: 0; }

.tk-group__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tk-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-group__project {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--group-color);
  background: color-mix(in srgb, var(--group-color) 12%, #fff);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.tk-group__count {
  min-width: 22px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tk-muted);
  background: #e2e8f0;
  flex-shrink: 0;
}

.tk-group__body { padding: 0.35rem 0; }

.tk-tree { border-bottom: 1px solid #f1f5f9; }
.tk-tree:last-child { border-bottom: none; }
/* Mãe visível só porque uma subtarefa casou com o filtro */
.tk-tree.is-context > .tk-row:first-child { opacity: 0.62; }

/* ---------- Linha da tarefa ---------- */
.tk-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.tk-row:hover { background: #f8fafc; }
.tk-row:hover .tk-row__actions { opacity: 1; }

.tk-row--sub {
  padding-left: 3.1rem;
  background: #fcfdfe;
}

.tk-row--sub::before {
  content: "";
  position: absolute;
  left: 1.85rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
}

.tk-row.is-done .tk-row__title { text-decoration: line-through; color: #94a3b8; }
.tk-row.is-cancelled .tk-row__title { text-decoration: line-through; color: #cbd5e1; }

.tk-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.18s ease;
  padding: 0;
}

.tk-check:hover { border-color: #10b981; }
.tk-check.is-done { background: #10b981; border-color: #10b981; }
.tk-check--sm { width: 17px; height: 17px; font-size: 0.6rem; }

.tk-caret {
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.68rem;
  padding: 0;
  flex-shrink: 0;
}
.tk-caret:hover { color: var(--tk-brand); }

.tk-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }

.tk-row__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tk-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-row__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--chip-color, var(--tk-muted));
  background: color-mix(in srgb, var(--chip-color, #94a3b8) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--chip-color, #94a3b8) 22%, #fff);
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-chip.is-late { --chip-color: #dc2626; font-weight: 800; }
.tk-chip--sub { --chip-color: #0A4EA0; }

.tk-prio { color: var(--prio-color); font-size: 0.85rem; flex-shrink: 0; width: 16px; text-align: center; }

.tk-row__person { flex-shrink: 0; }

.tk-row__actions {
  display: flex;
  gap: 0.15rem;
  opacity: 0;
  transition: opacity 0.16s ease;
  flex-shrink: 0;
}

@media (hover: none) {
  .tk-row__actions { opacity: 1; }
}

/* ---------- Avatar ---------- */
.tk-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.tk-avatar--text {
  background: linear-gradient(135deg, var(--tk-brand) 0%, var(--tk-brand-dark) 100%);
  color: #fff;
  font-weight: 700;
}

.tk-avatar--empty {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  color: #cbd5e1;
  font-size: 0.6rem;
  border: 1px dashed #e2e8f0;
}

.tk-person { display: flex; align-items: center; gap: 0.5rem; }
.tk-person strong { font-size: 0.875rem; font-weight: 600; color: var(--tk-ink); }

/* ---------- Vazio / carregando ---------- */
.tk-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--tk-muted);
  background: #fff;
  border: 1px dashed var(--tk-border);
  border-radius: 14px;
}
.tk-empty i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.9rem; display: block; }
.tk-empty h5 { font-size: 1rem; font-weight: 700; color: #475569; margin: 0 0 0.35rem; }
.tk-empty p { margin: 0 auto; font-size: 0.875rem; max-width: 420px; }

.tk-skeletons { display: flex; flex-direction: column; gap: 0.6rem; }
.tk-skeleton {
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: tk-shimmer 1.4s infinite;
}
@keyframes tk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Painel lateral ---------- */
.tk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1045;
  animation: tk-fade 0.2s ease;
}

.tk-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: #fff;
  z-index: 1046;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  animation: tk-slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tk-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes tk-fade { from { opacity: 0; } to { opacity: 1; } }

.tk-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.75rem;
}

.tk-drawer__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--badge-color, var(--tk-brand));
  background: color-mix(in srgb, var(--badge-color) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, #fff);
  white-space: nowrap;
}

.tk-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--tk-border);
  background: #fff;
  color: var(--tk-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.tk-drawer__close:hover { background: #f1f5f9; color: var(--tk-ink); }

.tk-drawer__title {
  padding: 0 1.5rem 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tk-ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.tk-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 0.9rem;
}

.tk-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--crumb-color, var(--tk-muted));
}

.tk-breadcrumb__sep { font-size: 0.6rem; color: #cbd5e1; }

.tk-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; border-top: 1px solid var(--tk-border); }

.tk-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--tk-border);
  background: #f8fafc;
}

.tk-drawer__foot-right { display: flex; gap: 0.6rem; margin-left: auto; }

.tk-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.tk-statusbar__btn {
  border: 1px solid var(--tk-border);
  background: #fff;
  border-radius: 9px;
  padding: 0.5rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tk-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.18s ease;
}

.tk-statusbar__btn i { font-size: 0.9rem; }
.tk-statusbar__btn:hover { border-color: var(--badge-color); color: var(--badge-color); }
.tk-statusbar__btn.is-active { background: var(--badge-color); border-color: var(--badge-color); color: #fff; }

.tk-prose {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.tk-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  margin-bottom: 1.35rem;
}

.tk-meta__item > span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.tk-meta__item > strong { font-size: 0.875rem; font-weight: 600; color: var(--tk-ink); }
.tk-late { color: #dc2626; }

/* Subtarefas no painel */
.tk-sublist { display: flex; flex-direction: column; gap: 0.35rem; }

.tk-subitem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--tk-border);
  border-radius: 9px;
  background: #fff;
}

.tk-subitem > span { flex: 1; font-size: 0.8125rem; color: #334155; }
.tk-subitem > span.is-done { text-decoration: line-through; color: #94a3b8; }

/* Timeline */
.tk-comment-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.tk-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #eef2f7;
}

.tk-timeline li { display: flex; gap: 0.75rem; padding-bottom: 1.1rem; position: relative; }
.tk-timeline li > div { flex: 1; min-width: 0; }
.tk-timeline .tk-avatar { position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }

.tk-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.tk-timeline__head strong { font-size: 0.8125rem; font-weight: 700; color: var(--tk-ink); }
.tk-timeline__head time { font-size: 0.7rem; color: #94a3b8; white-space: nowrap; }

.tk-timeline li p { margin: 0; font-size: 0.8125rem; color: #475569; line-height: 1.55; word-break: break-word; }

.tk-timeline li.is-comment p {
  background: #f8fafc;
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: #334155;
  white-space: pre-wrap;
}

/* ---------- Modal ---------- */
.tk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: tk-fade 0.2s ease;
}

.tk-modal {
  background: #fff;
  border-radius: 16px;
  width: min(620px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: tk-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tk-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.tk-modal form { display: flex; flex-direction: column; min-height: 0; }

.tk-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--tk-border);
}

.tk-modal__head h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tk-ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tk-modal__head h5 i { color: var(--tk-brand); font-size: 0.95rem; }

.tk-modal__parent {
  margin: 0;
  padding: 0.7rem 1.5rem;
  background: #f5f3ff;
  border-bottom: 1px solid #ede9fe;
  font-size: 0.8125rem;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tk-modal__body { padding: 1.35rem 1.5rem 0.25rem; overflow-y: auto; }

.tk-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--tk-border);
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .tk-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tk-page { padding: 1rem; }
  .tk-header { align-items: flex-start; }
  .tk-header__actions { width: 100%; justify-content: space-between; }
  .tk-viewswitch button span { display: none; }
  .tk-grid-2, .tk-meta { grid-template-columns: 1fr; }
  .tk-statusbar { grid-template-columns: repeat(2, 1fr); }
  .tk-drawer { width: 100vw; }
  .tk-row__meta .tk-chip { max-width: 150px; }
  .tk-modal-backdrop { padding: 0; align-items: flex-end; }
  .tk-modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .tk-modal__foot { border-radius: 0; }
}
/* ===================================
   PROJETOS — topo da hierarquia
   =================================== */

.pj-page {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  --pj-brand: #0A4EA0;
  --pj-brand-dark: #002b5e;
  --pj-border: #e2e8f0;
  --pj-muted: #64748b;
  --pj-ink: #0f172a;
}

/* ---------- Header ---------- */
.pj-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--pj-border);
}

.pj-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pj-ink);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.pj-header h1 i { color: var(--pj-brand); font-size: 1.35rem; }
.pj-header p { margin: 0; color: var(--pj-muted); font-size: 0.9375rem; }

/* ---------- Botões ---------- */
.pj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pj-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pj-btn--sm { padding: 0.4rem 0.8rem; font-size: 0.8125rem; }

.pj-btn--primary {
  background: linear-gradient(135deg, var(--pj-brand) 0%, var(--pj-brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}
.pj-btn--primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 78, 160, 0.32); }

.pj-btn--ghost { background: #fff; border-color: var(--pj-border); color: #475569; }
.pj-btn--ghost:not(:disabled):hover { background: #f8fafc; border-color: #cbd5e1; }

.pj-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--pj-border);
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.78rem;
}
.pj-icon-btn:hover { background: var(--pj-brand); border-color: var(--pj-brand); color: #fff; }
.pj-icon-btn--danger:hover { background: #dc2626; border-color: #dc2626; }

.pj-linkbtn {
  display: block;
  margin-top: 0.15rem;
  border: none;
  background: none;
  padding: 0;
  color: var(--pj-brand);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- KPIs ---------- */
.pj-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.pj-kpi {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--pj-border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

.pj-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-color, var(--pj-brand));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pj-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.pj-kpi.is-active {
  border-color: var(--kpi-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kpi-color) 14%, transparent);
}
.pj-kpi.is-active::before { opacity: 1; }

.pj-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--kpi-color, var(--pj-brand));
  background: color-mix(in srgb, var(--kpi-color) 12%, #fff);
  flex-shrink: 0;
}

.pj-kpi__body { display: flex; flex-direction: column; min-width: 0; }
.pj-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pj-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pj-kpi__value { font-size: 1.5rem; font-weight: 800; color: var(--pj-ink); line-height: 1.15; }

.pj-filters { margin-bottom: 1.5rem; }

/* ---------- Grid de cards ---------- */
.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pj-card {
  background: #fff;
  border: 1px solid var(--pj-border);
  border-top: 3px solid var(--card-color, var(--pj-brand));
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pj-card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }

.pj-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pj-card__title { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }

.pj-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card-color);
  flex-shrink: 0;
}

.pj-card__title h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pj-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, #fff);
  white-space: nowrap;
  flex-shrink: 0;
}

.pj-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--pj-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Progresso ---------- */
.pj-progress { display: flex; flex-direction: column; gap: 0.35rem; }

.pj-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--pj-muted);
  font-weight: 600;
}

.pj-progress__head strong { color: var(--pj-ink); font-size: 0.78rem; }

.pj-progress__track {
  height: 7px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.pj-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--card-color);
  transition: width 0.4s ease;
}

.pj-progress--tasks .pj-progress__fill { background: color-mix(in srgb, var(--card-color) 55%, #94a3b8); }

/* ---------- Meta ---------- */
.pj-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px dashed #eef2f7;
}

.pj-person { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pj-person span {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--pj-muted);
  white-space: nowrap;
}

.pj-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.pj-avatar--text {
  background: linear-gradient(135deg, var(--pj-brand) 0%, var(--pj-brand-dark) 100%);
  color: #fff;
  font-weight: 700;
}

.pj-avatar--empty {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  color: #cbd5e1;
  font-size: 0.62rem;
  border: 1px dashed #e2e8f0;
}

/* ---------- Demandas do projeto ---------- */
.pj-expand {
  border: none;
  background: none;
  padding: 0;
  color: var(--pj-brand);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
}

.pj-expand:hover { text-decoration: underline; }

.pj-demands {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--pj-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 190px;
  overflow-y: auto;
}

.pj-demands li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }

.pj-demand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}
.pj-demand-dot.is-pending { background: #64748b; }
.pj-demand-dot.is-in_progress { background: #3b82f6; }
.pj-demand-dot.is-completed { background: #10b981; }
.pj-demand-dot.is-cancelled { background: #ef4444; }

.pj-demand-title {
  flex: 1;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-demand-owner { color: var(--pj-muted); font-size: 0.72rem; white-space: nowrap; }

.pj-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.pj-card__actions { display: flex; gap: 0.35rem; }

/* ---------- Vazio / carregando ---------- */
.pj-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--pj-muted);
  background: #fff;
  border: 1px dashed var(--pj-border);
  border-radius: 14px;
}
.pj-empty i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.9rem; display: block; }
.pj-empty h5 { font-size: 1rem; font-weight: 700; color: #475569; margin: 0 0 0.35rem; }
.pj-empty p { margin: 0 auto; font-size: 0.875rem; max-width: 440px; }

.pj-skeletons { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.pj-skeleton {
  height: 240px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: pj-shimmer 1.4s infinite;
}
@keyframes pj-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Campos ---------- */
.pj-input,
.pj-select,
.pj-textarea {
  width: 100%;
  border: 1.5px solid var(--pj-border);
  border-radius: 10px;
  padding: 0.625rem 0.85rem;
  font-size: 0.9rem;
  color: var(--pj-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.pj-textarea { resize: vertical; line-height: 1.55; }

.pj-input:focus,
.pj-select:focus,
.pj-textarea:focus {
  border-color: var(--pj-brand);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.pj-field { margin-bottom: 1.1rem; }
.pj-field > label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.pj-hint { display: block; margin-top: 0.4rem; color: var(--pj-muted); font-size: 0.78rem; }
.pj-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.pj-palette { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pj-swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.pj-swatch:hover { transform: scale(1.1); }
.pj-swatch.is-active { border-color: var(--pj-ink); box-shadow: 0 0 0 2px #fff inset; }

/* ---------- Modal ---------- */
.pj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: pj-fade 0.2s ease;
}

@keyframes pj-fade { from { opacity: 0; } to { opacity: 1; } }

.pj-modal {
  background: #fff;
  border-radius: 16px;
  width: min(620px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: pj-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pj-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.pj-modal form { display: flex; flex-direction: column; min-height: 0; }

.pj-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--pj-border);
}

.pj-modal__head h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pj-ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pj-modal__head h5 i { color: var(--pj-brand); font-size: 0.95rem; }

.pj-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--pj-border);
  background: #fff;
  color: var(--pj-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.pj-modal__close:hover { background: #f1f5f9; color: var(--pj-ink); }

.pj-modal__body { padding: 1.35rem 1.5rem 0.25rem; overflow-y: auto; }

.pj-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--pj-border);
  background: #f8fafc;
  border-radius: 0 0 16px 16px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .pj-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pj-page { padding: 1rem; }
  .pj-header { align-items: flex-start; }
  .pj-grid, .pj-skeletons { grid-template-columns: 1fr; }
  .pj-grid-2 { grid-template-columns: 1fr; }
  .pj-modal-backdrop { padding: 0; align-items: flex-end; }
  .pj-modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .pj-modal__foot { border-radius: 0; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Aba do robô de reuniões (/admin/agenda)
   Paleta oficial Phobos: #0A4EA0 e #002b5e
   ═══════════════════════════════════════════════════════════════════════════ */

.mr-tab {
  --mr-primary: #0A4EA0;
  --mr-deep: #002b5e;
  --mr-ink: #0f172a;
  --mr-ink-2: #475569;
  --mr-muted: #94a3b8;
  --mr-line: #e8edf4;

  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mr-ink);
}

/* ── Explicação ── */
.mr-explain {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--mr-primary);
  background: #f0f7ff;
}
.mr-explain > i { color: var(--mr-primary); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.mr-explain strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.mr-explain p { margin: 0 0 0.55rem; font-size: 0.79rem; color: var(--mr-ink-2); line-height: 1.6; }
.mr-explain ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.mr-explain li { font-size: 0.78rem; color: var(--mr-ink-2); line-height: 1.55; }
.mr-explain code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.73rem;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ── Cartões ── */
.mr-card { border: 1px solid var(--mr-line); border-radius: 16px; background: #fff; overflow: hidden; }
.mr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--mr-line);
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.mr-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mr-card-head h3 i { color: var(--mr-primary); font-size: 0.88rem; }
.mr-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mr-card-body { padding: 1.15rem; }

/* ── Botões ── */
.mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--mr-line);
  background: #fff;
  color: var(--mr-ink-2);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.mr-btn:hover:not(:disabled) { border-color: var(--mr-primary); color: var(--mr-primary); background: #f5f9ff; }
.mr-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.mr-btn--primary {
  background: linear-gradient(135deg, var(--mr-primary), var(--mr-deep));
  border-color: transparent;
  color: #fff;
}
.mr-btn--primary:hover:not(:disabled) { color: #fff; filter: brightness(1.08); }
.mr-btn--danger:hover:not(:disabled) { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* ── Formulário ── */
.mr-form { display: flex; flex-direction: column; gap: 1.05rem; }
.mr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.mr-field { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
.mr-field > label { font-size: 0.77rem; font-weight: 700; color: #334155; }
.mr-field input, .mr-field select, .mr-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--mr-line);
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--mr-ink);
  outline: none;
  box-sizing: border-box;
  transition: all 0.16s ease;
}
.mr-field textarea { resize: vertical; line-height: 1.5; }
.mr-field input:focus, .mr-field select:focus, .mr-field textarea:focus {
  background: #fff;
  border-color: var(--mr-primary);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}
.mr-hint { font-size: 0.71rem; color: var(--mr-muted); }
.mr-warn { font-size: 0.72rem; color: #b45309; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }

.mr-switch {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--mr-line);
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}
.mr-switch input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--mr-primary); cursor: pointer; flex-shrink: 0; }
.mr-switch span { display: flex; flex-direction: column; gap: 1px; }
.mr-switch strong { font-size: 0.83rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.mr-switch em { font-style: normal; font-size: 0.73rem; color: var(--mr-muted); }

.mr-check { display: flex; align-items: center; gap: 0.45rem; font-size: 0.79rem; color: var(--mr-ink-2); cursor: pointer; }
.mr-check input { width: 15px; height: 15px; accent-color: var(--mr-primary); cursor: pointer; }

.mr-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mr-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--mr-line);
  background: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--mr-ink-2);
  cursor: pointer;
  transition: all 0.14s ease;
}
.mr-chip.is-on { border-color: var(--mr-primary); background: #eff6ff; color: var(--mr-primary); }

.mr-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mr-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
  border-top: 1px solid var(--mr-line);
}

.mr-deliver { border: 1px solid var(--mr-line); border-radius: 12px; overflow: hidden; }
.mr-deliver .mr-switch { border: none; border-radius: 0; background: #f8fafc; }
.mr-deliver-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid var(--mr-line);
}

/* ── Sessões ── */
.mr-sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.mr-session { border: 1px solid var(--mr-line); border-radius: 12px; overflow: hidden; }
.mr-session-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  background: #fff;
  transition: background 0.14s ease;
}
.mr-session-head:hover { background: #fafcff; }
.mr-session-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-session-title strong { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-session-title span { font-size: 0.72rem; color: var(--mr-muted); }
.mr-session-toggle { color: #cbd5e1; font-size: 0.75rem; }

.mr-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.mr-status i { font-size: 0.63rem; }
.mr-status.is-armed   { background: #eff6ff; color: #0A4EA0; }
.mr-status.is-working { background: #f0f9ff; color: #0369a1; }
.mr-status.is-waiting { background: #fffbeb; color: #b45309; }
.mr-status.is-done    { background: #ecfdf5; color: #047857; }
.mr-status.is-failed  { background: #fef2f2; color: #b91c1c; }
.mr-status.is-skipped { background: #f1f5f9; color: #64748b; }

.mr-session-body {
  padding: 0.9rem;
  border-top: 1px solid var(--mr-line);
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mr-session-detail { margin: 0; font-size: 0.78rem; color: var(--mr-ink-2); line-height: 1.5; }

.mr-session-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.mr-session-facts > div { display: flex; flex-direction: column; }
.mr-session-facts dt {
  font-size: 0.65rem;
  color: var(--mr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.mr-session-facts dd { margin: 0; font-size: 0.79rem; font-weight: 600; }
.mr-session-facts a { color: var(--mr-primary); }

.mr-summary-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--mr-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.mr-summary { display: flex; flex-direction: column; gap: 0.3rem; }
.mr-summary-text {
  font-size: 0.81rem;
  color: var(--mr-ink-2);
  line-height: 1.65;
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  max-height: 320px;
  overflow-y: auto;
}
.mr-items { margin: 0 0 0.4rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mr-items li { font-size: 0.79rem; color: var(--mr-ink-2); line-height: 1.5; }

.mr-provide { display: flex; flex-direction: column; gap: 0.5rem; }
.mr-provide textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--mr-line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.81rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.mr-provide textarea:focus { border-color: var(--mr-primary); box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1); }
.mr-provide-actions, .mr-session-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mr-session-actions { padding-top: 0.6rem; border-top: 1px solid var(--mr-line); }

/* ── Vazio e esqueleto ── */
.mr-empty { text-align: center; padding: 2rem 0.5rem; }
.mr-empty i { font-size: 2rem; color: #cbd5e1; margin-bottom: 0.6rem; display: block; }
.mr-empty p { margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--mr-ink-2); }
.mr-empty small { font-size: 0.74rem; color: var(--mr-muted); }

@keyframes mr-shimmer { 0% { background-position: -380px 0; } 100% { background-position: 380px 0; } }
.mr-sk {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: #eef2f7;
  background-image: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 380px 100%;
  background-repeat: no-repeat;
  animation: mr-shimmer 1.25s ease-in-out infinite;
}

@media (max-width: 768px) {
  .mr-grid2 { grid-template-columns: minmax(0, 1fr); }
  .mr-card-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { .mr-sk { animation: none; } }

/* ── Robô de navegador ────────────────────────────────────────────────────── */

.mr-explain--warn {
  border-color: #fcd34d;
  border-left-color: #d97706;
  background: #fffbeb;
}
.mr-explain--warn > i { color: #d97706; }

.mr-status.is-live { background: #fef2f2; color: #b91c1c; }
.mr-session.is-live { border-color: #fecaca; }

/* Cartão do robô em campo: destaque forte porque é estado ao vivo, some
   sozinho quando a reunião acaba. */
.mr-card--live {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.mr-card--live .mr-card-head h3 { display: flex; align-items: center; gap: 0.55rem; }

.mr-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: mr-pulse 1.6s ease-in-out infinite;
}
@keyframes mr-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mr-live-dot { animation: none; }
}

.mr-live { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .mr-live { grid-template-columns: 1fr; } }

.mr-live-info { display: flex; flex-direction: column; gap: 0.7rem; }
.mr-live-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b91c1c;
}
.mr-live-info p { margin: 0; font-size: 0.79rem; color: var(--mr-ink-2); line-height: 1.55; }

.mr-live-shot { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.mr-live-shot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--mr-line);
  display: block;
}
.mr-live-shot__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px dashed var(--mr-line);
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.75rem;
}
.mr-live-shot figcaption { font-size: 0.68rem; color: #94a3b8; text-align: center; }

/* Ajustes do robô, agrupados para não se perderem no meio da config geral. */
.mr-botcfg {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--mr-line);
  background: #fbfcfe;
}
.mr-botcfg .mr-section-title { margin-top: 0; }

.mr-selftest { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.mr-selftest-steps {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mr-selftest-steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--mr-line);
  font-size: 0.76rem;
}
.mr-selftest-steps li.ok  > i { color: #10b981; margin-top: 2px; }
.mr-selftest-steps li.bad > i { color: #ef4444; margin-top: 2px; }
.mr-selftest-steps li.bad { border-color: #fecaca; background: #fef2f2; }
.mr-selftest-steps strong { display: block; font-weight: 700; color: var(--mr-ink); }
.mr-selftest-steps em { font-style: normal; color: var(--mr-ink-2); }
/* Agenda.css - Seguindo o padrão visual de IPsLiberados e ChatbotConfig */
.ag-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; }

/* HERO */
.ag-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.5rem; color: #fff;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
}
.ag-hero::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background:rgba(255,255,255,0.05); border-radius:50%; pointer-events:none; }
.ag-hero-icon { width:72px; height:72px; border-radius:18px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.ag-hero-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:.25rem .75rem; font-size:.75rem; font-weight:600; color:#fff; margin-bottom:.5rem; }
.ag-hero-title { font-size:1.9rem; font-weight:800; color:#fff; margin:0 0 .3rem; }
.ag-hero-sub { font-size:.9rem; color:rgba(255,255,255,0.72); margin:0; }

/* TOOLBAR */
.ag-toolbar { display:flex; gap:.75rem; align-items:center; background:#fff; border:2px solid #e8edf5; border-radius:14px; padding:.75rem 1rem; margin-bottom:1.25rem; box-shadow:0 2px 8px rgba(0,0,0,0.04); flex-wrap:wrap; }
.ag-search { display:flex; align-items:center; gap:.5rem; background:#f8faff; border:1.5px solid #e2e8f0; border-radius:10px; padding:.45rem .9rem; flex:1; min-width:180px; }
.ag-search i { color:#94a3b8; font-size:.8rem; }
.ag-search input { border:none; background:none; outline:none; font-size:.85rem; color:#1e293b; width:100%; }
.ag-filter-tabs { display:flex; gap:.25rem; background:#f1f5fb; border-radius:10px; padding:4px; }
.ag-filter-tab { background:none; border:none; border-radius:8px; padding:.4rem .85rem; font-size:.78rem; font-weight:500; color:#64748b; cursor:pointer; transition:all .18s; }
.ag-filter-tab:hover { background:#e8edf5; color:#0A4EA0; }
.ag-filter-tab.active { background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; font-weight:700; box-shadow:0 3px 10px rgba(10,78,160,0.25); }

.ag-btn-primary { background:linear-gradient(135deg,#0A4EA0,#002b5e); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; box-shadow:0 4px 12px rgba(10,78,160,0.25); transition:all .2s; white-space:nowrap; }
.ag-btn-primary:hover { opacity:.9; transform:translateY(-1px); }
.ag-btn-danger { background:linear-gradient(135deg,#c0392b,#7b241c); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; box-shadow:0 4px 12px rgba(192,57,43,0.3); transition:all .2s; white-space:nowrap; }
.ag-btn-danger:hover { opacity:.9; transform:translateY(-1px); }
.ag-btn-outline { background:#fff; color:#475569; border:1.5px solid #cbd5e1; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:600; cursor:pointer; transition:all .2s; }
.ag-btn-outline:hover { background:#f1f5f9; color:#0f172a; border-color:#94a3b8; }

/* GRID PRINCIPAL (Calendário + Lista Lateral) */
/* minmax(0, …): sem ele o 1fr cresce até o nome da etiqueta mais longa (nowrap)
   e empurra "Próximos Eventos" para fora da tela em 1440 px. */
.ag-main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 991px) { .ag-main-layout { grid-template-columns: 1fr; } }

/* CALENDÁRIO CARD */
.ag-cal-card { background:#fff; border:2px solid #e8edf5; border-radius:18px; padding:1.5rem; box-shadow:0 2px 12px rgba(0,0,0,0.05); }
.ag-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.ag-cal-title { font-size: 1.25rem; font-weight: 800; color: #002b5e; margin: 0; }
.ag-cal-title span { color: #64748b; font-weight: 500; margin-left: 6px; }

.ag-cal-nav { display: flex; gap: 6px; }
.ag-cal-nav-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #fff; color: #475569; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.ag-cal-nav-btn:hover { background: #f8faff; border-color: #cbd5e1; color: #0A4EA0; }

.ag-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-weight: 700; font-size: .75rem; color: #64748b; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid #f1f5fb; }
.ag-days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }

.ag-day { min-width: 0; background: #fff; border: 1.5px solid #f1f5fb; border-radius: 10px; min-height: 90px; padding: 6px; display: flex; flex-direction: column; cursor: pointer; transition: all .2s; }
.ag-day:hover { border-color: #cbd5e1; background: #f8faff; transform: translateY(-1px); }
.ag-day.other-month { opacity: .4; background: #fafbfc; }
.ag-day.today { border-color: #93c5fd; background: #eff6ff; }

.ag-day-num { font-size: .8rem; font-weight: 700; color: #374151; margin-bottom: 4px; padding: 2px 6px; border-radius: 6px; display: inline-block; align-self: flex-start; }
.ag-day.today .ag-day-num { background: #0A4EA0; color: #fff; }

.ag-day-events { display: flex; flex-direction: column; gap: 4px; overflow: hidden; flex: 1; }
.ag-event-pill { font-size: .68rem; font-weight: 600; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 1px solid rgba(0,0,0,0.05); }
.ag-event-pill:hover { filter: brightness(0.95); }

/* SIDE LIST (Próximos) */
.ag-side-card { background:#fff; border:2px solid #e8edf5; border-radius:18px; padding:1.5rem; box-shadow:0 2px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; max-height: 700px; }
.ag-side-header { font-size: 1.05rem; font-weight: 700; color: #002b5e; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 2px solid #f1f5fb; display: flex; align-items: center; gap: 8px; }
.ag-side-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px; flex: 1; }
.ag-side-list::-webkit-scrollbar { width: 4px; }
.ag-side-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.ag-side-item { display: flex; gap: 12px; padding: 10px; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all .2s; }
.ag-side-item:hover { background: #fff; border-color: #cbd5e1; transform: translateX(2px); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.ag-side-datebox { width: 46px; height: 46px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-side-datebox strong { font-size: 1rem; font-weight: 800; color: #002b5e; line-height: 1; }
.ag-side-datebox span { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin-top: 2px; }

.ag-side-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ag-side-title { font-size: .85rem; font-weight: 700; color: #1e293b; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-side-time { font-size: .75rem; color: #64748b; display: flex; align-items: center; gap: 6px; margin-top: 4px; }

/* MODAL PADRÃO PHOBOS */
.ag-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ag-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); }
.ag-modal__content { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 520px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display: flex; flex-direction: column; max-height: 90vh; animation: modal-pop 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes modal-pop { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.ag-modal__header { padding: 1.25rem 1.5rem; border-bottom: 2px solid #f1f5fb; display: flex; justify-content: space-between; align-items: center; background: #f8faff; border-radius: 20px 20px 0 0; }
.ag-modal__header h3 { font-size: 1.15rem; font-weight: 800; color: #002b5e; margin: 0; display: flex; align-items: center; gap: 8px; }
.ag-modal__close { background: none; border: none; color: #94a3b8; font-size: 1.2rem; cursor: pointer; transition: color .2s; }
.ag-modal__close:hover { color: #ef4444; }

.ag-modal__body { padding: 1.5rem; overflow-y: auto; }
.ag-modal__footer { padding: 1.25rem 1.5rem; border-top: 2px solid #f1f5fb; display: flex; justify-content: flex-end; gap: 10px; background: #fff; border-radius: 0 0 20px 20px; }

/* FORM ELEMENTS */
.ag-form-group { margin-bottom: 1.25rem; }
.ag-label { display: block; font-size: .8rem; font-weight: 700; color: #475569; margin-bottom: .5rem; }
.ag-input, .ag-select { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: .65rem .9rem; font-size: .88rem; color: #1e293b; transition: border-color .2s; background: #fff; }
.ag-input:focus, .ag-select:focus { outline: none; border-color: #0A4EA0; box-shadow: 0 0 0 3px rgba(10,78,160,0.1); }
.ag-textarea { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: .65rem .9rem; font-size: .88rem; color: #1e293b; transition: border-color .2s; min-height: 80px; resize: vertical; }
.ag-textarea:focus { outline: none; border-color: #0A4EA0; box-shadow: 0 0 0 3px rgba(10,78,160,0.1); }

/* PARTICIPANTS */
.ag-users-list { max-height: 140px; overflow-y: auto; border: 1.5px solid #e2e8f0; border-radius: 10px; margin-top: 8px; }
.ag-user-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f1f5fb; font-size: .85rem; }
.ag-user-row:hover { background: #f8faff; }
.ag-user-row.selected { background: #eff6ff; color: #0A4EA0; font-weight: 600; }
.ag-chip-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ag-chip { display: inline-flex; align-items: center; gap: 6px; background: #f1f5fb; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 8px; font-size: .75rem; font-weight: 600; color: #334155; cursor: pointer; transition: all .2s; }
.ag-chip:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

/* DETAIL VIEW */
.ag-detail-meta { display: flex; gap: 12px; margin-bottom: 1.5rem; border-bottom: 2px solid #f1f5fb; padding-bottom: 1rem; }
.ag-meta-item { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #475569; background: #f1f5fb; padding: 4px 10px; border-radius: 8px; }
.ag-detail-section { margin-bottom: 1.5rem; }
.ag-detail-section h4 { font-size: .82rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.ag-detail-desc { font-size: .9rem; color: #334155; line-height: 1.6; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 12px; white-space: pre-wrap; }

/* ── NOTES & FILES ── */
.ag-badge-count { background: #0A4EA0; color: #fff; font-size: .65rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.5; }

.ag-notes-box { background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 12px; min-height: 100px; display: flex; flex-direction: column; }

/* Empty State */
.ag-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 10px; color: #b0bec5; flex: 1; }
.ag-empty-state i { font-size: 1.3rem; opacity: .4; }
.ag-empty-state span { font-size: .78rem; font-weight: 500; }

/* Notes List */
.ag-notes-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.ag-notes-list::-webkit-scrollbar { width: 4px; }
.ag-notes-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.ag-note-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e8edf5; border-radius: 8px; padding: 6px 10px; transition: all .15s; }
.ag-note-item:hover { border-color: #c7d2e8; background: #fbfcff; }
.ag-note-number { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #0A4EA0, #1a6fd4); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-note-text { font-size: .8rem; color: #334155; line-height: 1.4; word-break: break-word; flex: 1; }

/* Delete button (for notes and files) */
.ag-note-delete { background: none; border: none; color: #cbd5e1; cursor: pointer; padding: 3px 5px; border-radius: 6px; font-size: .7rem; transition: all .15s; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ag-note-delete:hover { color: #e74c3c; background: #fef2f2; }
.ag-note-delete:disabled { opacity: .4; cursor: not-allowed; }

/* Note Input Row */
.ag-note-input-row { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid #e8edf5; }
.ag-note-input-row .ag-input { padding: 7px 10px; font-size: .8rem; flex: 1; }
.ag-btn-icon { padding: 7px 10px !important; border-radius: 8px !important; min-width: 34px; display: flex; align-items: center; justify-content: center; }

/* Files List */
.ag-files-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; }
.ag-file-row { display: flex; align-items: center; gap: 4px; }
.ag-file-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e8edf5; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: #334155; font-size: .8rem; transition: all .15s; flex: 1; min-width: 0; }
.ag-file-item:hover { border-color: #0A4EA0; color: #0A4EA0; background: #f0f4ff; }
.ag-file-item i:first-child { color: #94a3b8; font-size: .85rem; flex-shrink: 0; }
.ag-file-item span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ag-file-dl { font-size: .65rem; color: #cbd5e1; transition: color .15s; flex-shrink: 0; }
.ag-file-item:hover .ag-file-dl { color: #0A4EA0; }

/* Upload Button */
.ag-btn-upload { width: 100%; padding: 8px 10px; font-size: .8rem; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #cbd5e1; background: #fff; color: #64748b; border-radius: 8px; cursor: pointer; transition: all .15s; font-weight: 600; }
.ag-btn-upload:hover { border-color: #0A4EA0; color: #0A4EA0; background: #f8faff; }
.ag-btn-upload:disabled { opacity: .5; cursor: not-allowed; }


/* Abas principais da página (Calendário x Robô de Reuniões) */
.ag-page-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.ag-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.ag-page-tab i { font-size: 0.8rem; }
.ag-page-tab:hover { color: #0A4EA0; }
.ag-page-tab.active {
  background: #fff;
  color: #0A4EA0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ── Diagnóstico da conexão Google ─────────────────────────────────────────
   Painel que substitui o antigo "falta permissão do Meet" genérico: mostra
   item a item o que passou e o que falhou, para não mandar o usuário
   reconectar quando o problema é do projeto no Cloud Console. */
.ag-google-diag {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10001;
  width: min(420px, calc(100vw - 40px));
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  text-align: left;
  font-weight: 400;
}
.ag-google-diag__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #0f172a;
}
.ag-google-diag__head strong { flex: 1; }
.ag-google-diag__head button {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
}
.ag-google-diag__head button:hover { color: #475569; }

.ag-google-diag__checks { list-style: none; margin: 0; padding: 0; }
.ag-google-diag__checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 0.83rem;
  color: #334155;
}
.ag-google-diag__checks li code {
  background: #f1f5f9;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.76rem;
  color: #475569;
}
.ag-google-diag__checks li.ok  > i:first-child { color: #10b981; }
.ag-google-diag__checks li.bad > i:first-child { color: #ef4444; }
.ag-google-diag__checks li.bad { color: #b91c1c; }

/* O que deixa de funcionar — separado do "como resolver" para não misturar
   impacto com instrução. */
.ag-google-diag__affects {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #78350f;
}
.ag-google-diag__how {
  margin: 12px 0 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid #0A4EA0;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
}
.ag-google-diag__raw {
  margin: 12px 0 0;
  padding: 9px 10px;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow: auto;
}
/* ============================================
   BLOG EDITOR - Premium Full-Page Editor
   ============================================ */

.blog-editor {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: #f8fafc;
    overflow: hidden;
}

/* ============ TOP BAR ============ */
.be-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 20;
    gap: 1rem;
    flex-shrink: 0;
}

.be-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.be-topbar__back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    flex-shrink: 0;
}

.be-topbar__back:hover {
    background: #f1f5f9;
    color: #0a4ea0;
    border-color: #cbd5e1;
}

.be-topbar__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.be-topbar__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
}

.be-topbar__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.be-topbar__center {
    flex-shrink: 0;
}

.be-mode-switch {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.be-mode-switch__btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.be-mode-switch__btn.active {
    background: #fff;
    color: #0a4ea0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.be-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.be-topbar__unsaved {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 500;
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============ BUTTONS ============ */
.be-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.be-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.be-btn--ghost {
    background: #f1f5f9;
    color: #475569;
}

.be-btn--ghost:hover:not(:disabled) {
    background: #e2e8f0;
}

.be-btn--primary {
    background: linear-gradient(135deg, #0a4ea0, #1e73d0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10, 78, 160, 0.3);
}

.be-btn--primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.4);
    transform: translateY(-1px);
}

/* ============ LAYOUT ============ */
.be-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.be-editor-col {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.be-sidebar {
    width: 320px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ============ TITLE INPUT ============ */
.be-title-input {
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #0f172a;
    padding: 0;
    outline: none;
    width: 100%;
    letter-spacing: -0.02em;
}

.be-title-input::placeholder {
    color: #cbd5e1;
}

/* ============ MARKDOWN EDITOR ============ */
.be-markdown-editor {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex: 1;
}

.be-markdown-editor .w-md-editor {
    border: none !important;
    box-shadow: none !important;
}

/* ============ BLOCKS EDITOR ============ */
.be-blocks-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.be-blocks-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    color: #94a3b8;
}

.be-blocks-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.be-blocks-empty h3 {
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.be-blocks-empty p {
    font-size: 0.9rem;
}

/* ============ SINGLE BLOCK ============ */
.be-block {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s;
}

.be-block:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.be-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.be-block__type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.be-block__actions {
    display: flex;
    gap: 2px;
}

.be-block__actions button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.15s;
}

.be-block__actions button:hover:not(:disabled) {
    background: #e2e8f0;
    color: #475569;
}

.be-block__actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.be-block__delete:hover:not(:disabled) {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.be-block__body {
    padding: 1rem;
}

/* ============ BLOCK EDITOR FIELDS ============ */
.block-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.be-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.be-input:focus {
    border-color: #0a4ea0;
    box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.08);
}

.be-input--lg {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0.85rem;
}

.be-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.be-select:focus {
    border-color: #0a4ea0;
}

.be-textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #fff;
    resize: vertical;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.be-textarea:focus {
    border-color: #0a4ea0;
}

.be-textarea--code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
    border-radius: 10px;
}

.be-textarea--code:focus {
    border-color: #6366f1;
}

.be-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

/* Block previews */
.block-preview-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-height: 200px;
}

.block-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.block-preview-video {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.block-preview-video iframe {
    width: 100%;
    height: 100%;
}

.divider-preview {
    height: 3px;
    border-radius: 2px;
    margin: 0.5rem 0;
}

.divider-preview--line {
    background: #e2e8f0;
}

.divider-preview--dots {
    background: transparent;
    border-bottom: 3px dotted #cbd5e1;
    height: 0;
}

.divider-preview--gradient {
    background: linear-gradient(90deg, transparent, #0a4ea0, transparent);
}

/* ============ ADD BLOCK ============ */
.be-add-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.be-add-block__trigger {
    padding: 0.6rem 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.be-add-block__trigger:hover {
    border-color: #0a4ea0;
    color: #0a4ea0;
    background: #f0f7ff;
}

.be-block-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.be-block-picker__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
}

.be-block-picker__item:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.be-block-picker__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

/* ============ SIDEBAR ============ */
.be-sidebar-section {
    border-bottom: 1px solid #f1f5f9;
}

.be-sidebar-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.15s;
}

.be-sidebar-section__toggle:hover {
    background: #f8fafc;
}

.be-sidebar-section__toggle span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.be-sidebar-section__toggle i:first-child {
    color: #0a4ea0;
}

.be-sidebar-section__body {
    padding: 0 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.be-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.be-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Slug preview */
.be-slug-preview {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.be-slug-prefix {
    padding: 0.6rem 0.5rem 0.6rem 0.75rem;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
}

.be-slug-preview .be-input {
    border: none;
    border-radius: 0;
}

.be-slug-preview .be-input:focus {
    box-shadow: none;
}

/* Toggle */
.be-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.be-toggle input[type="checkbox"] {
    appearance: none;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}

.be-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.be-toggle input[type="checkbox"]:checked {
    background: #10b981;
}

.be-toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.be-toggle__label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

/* Image preview */
.be-image-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.be-image-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.be-image-preview__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.be-image-preview__remove:hover {
    background: #dc2626;
}

/* Upload area */
.be-upload-area {
    position: relative;
    padding: 1.5rem;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: pointer;
}

.be-upload-area:hover {
    border-color: #0a4ea0;
    background: #f0f7ff;
}

.be-upload-area i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.be-upload-area p {
    font-size: 0.8rem;
    margin: 0;
}

.be-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .be-sidebar {
        width: 280px;
    }

    .be-block-picker {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .be-layout {
        flex-direction: column;
    }

    .be-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .be-editor-col {
        padding: 1rem;
    }

    .be-title-input {
        font-size: 1.5rem;
    }

    .be-topbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .be-topbar__center {
        order: 3;
        width: 100%;
    }

    .be-mode-switch {
        width: 100%;
        justify-content: center;
    }

    .be-block-picker {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============ UPLOAD FIELD ============ */
.be-upload-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.be-upload-field__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.be-upload-field__row {
    display: flex;
    gap: 0.4rem;
}

.be-upload-field__row .be-input {
    flex: 1;
}

.be-btn--upload {
    padding: 0.6rem 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}

.be-btn--upload:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.be-upload-field__preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-height: 180px;
}

.be-upload-field__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ GALLERY GRID ============ */
.be-gallery-grid {
    display: grid;
    gap: 0.5rem;
}

.be-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
}

.be-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.be-gallery-item__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.be-gallery-item:hover .be-gallery-item__remove {
    opacity: 1;
}

.be-gallery-item__remove:hover {
    background: #dc2626;
}

/* ============ TOPBAR META ============ */
.be-topbar__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0.5rem;
}

.be-topbar__words {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.be-topbar__saved {
    font-size: 0.72rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.be-topbar__saving {
    font-size: 0.72rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

/* ============ COLLAPSIBLE BLOCKS ============ */
.be-block__header {
    cursor: pointer;
    user-select: none;
}

.be-block__preview-text {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 0.5rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.be-block--expanded .be-block__body {
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============ RANGE INPUT ============ */
.be-range-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.be-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.be-range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a4ea0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ============ EMBED PREVIEW ============ */
.be-embed-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    background: #f8fafc;
}

.be-embed-preview iframe {
    width: 100%;
    max-height: 400px;
}

/* ============ BLOCK PICKER V2 ============ */
.be-block-picker {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
}

.be-block-picker__item {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.be-block-picker__info {
    display: flex;
    flex-direction: column;
}

.be-block-picker__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}

.be-block-picker__desc {
    font-size: 0.65rem;
    color: #94a3b8;
}

.be-block-picker__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* ============ RICHTEXT EDITOR ============ */
.be-richtext-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============ TIPTAP EDITOR ============ */
.tiptap-editor-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tte-toolbar__group {
    display: flex;
    align-items: center;
    gap: 1px;
}

.tte-toolbar__divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
}

.tte-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: all 0.15s;
}

.tte-btn:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.tte-btn.active {
    background: #0a4ea0;
    color: #fff;
}

.tte-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tte-select {
    padding: 0.35rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #334155;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.tte-color-picker {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    background: transparent;
}

.tte-toolbar__stats {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Bubble Menu */
.tte-bubble-menu {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tte-bubble-menu .tte-btn {
    color: #cbd5e1;
    width: 30px;
    height: 30px;
}

.tte-bubble-menu .tte-btn:hover {
    background: #334155;
    color: #fff;
}

.tte-bubble-menu .tte-btn.active {
    background: #0a4ea0;
    color: #fff;
}

/* Floating Menu */
.tte-floating-menu {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tte-floating-item {
    padding: 0.35rem 0.65rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s;
    white-space: nowrap;
}

.tte-floating-item:hover {
    background: #f1f5f9;
    color: #0a4ea0;
}

/* TipTap Content Area */
.tiptap-editor-content {
    flex: 1;
    overflow-y: auto;
}

.tiptap-content {
    padding: 1.5rem 2rem;
    min-height: 500px;
    outline: none;
    font-size: 1rem;
    line-height: 1.75;
    color: #1e293b;
}

.tiptap-content>*+* {
    margin-top: 0.75em;
}

.tiptap-content h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5em;
    color: #0f172a;
}

.tiptap-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.4em;
    color: #0f172a;
}

.tiptap-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.3em;
    color: #0f172a;
}

.tiptap-content h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #334155;
}

.tiptap-content p.is-editor-empty:first-child::before {
    color: #cbd5e1;
    content: attr(data-placeholder);
    float: left;
    height: 0;
    pointer-events: none;
}

.tiptap-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.tiptap-content img.ProseMirror-selectednode {
    outline: 3px solid #0a4ea0;
}

.tiptap-content blockquote {
    border-left: 4px solid #0a4ea0;
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
}

.tiptap-content ul,
.tiptap-content ol {
    padding-left: 1.5rem;
}

.tiptap-content ul li,
.tiptap-content ol li {
    margin-bottom: 0.3em;
}

.tiptap-content ul[data-type="taskList"] {
    padding-left: 0;
    list-style: none;
}

.tiptap-content ul[data-type="taskList"] li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tiptap-content ul[data-type="taskList"] li label {
    margin-top: 0.15em;
}

.tiptap-content ul[data-type="taskList"] li[data-checked="true"]>div>p {
    text-decoration: line-through;
    color: #94a3b8;
}

.tiptap-content code {
    background: #f1f5f9;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
    color: #e11d48;
    font-family: 'JetBrains Mono', monospace;
}

.tiptap-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.tiptap-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.tiptap-content hr {
    border: none;
    background: linear-gradient(90deg, transparent, #0a4ea0, transparent);
    height: 2px;
    margin: 2rem 0;
}

.tiptap-content .tiptap-link {
    color: #0a4ea0;
    text-decoration: underline;
    cursor: pointer;
}

.tiptap-content mark {
    background: #fef08a;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* Tables */
.tiptap-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tiptap-content th,
.tiptap-content td {
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    min-width: 80px;
}

.tiptap-content th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
}

.tiptap-content td {
    font-size: 0.9rem;
}

.tiptap-content .selectedCell {
    background: #dbeafe;
}

/* YouTube embed */
.tiptap-content div[data-youtube-video] {
    margin: 1.5rem 0;
}

.tiptap-content div[data-youtube-video] iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
}/* Login Modal Overlay */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 78, 160, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Container */
.login-modal-container {
  position: relative;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(10, 78, 160, 0.1);
  color: #0A4EA0;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal-close:hover {
  background: rgba(10, 78, 160, 0.2);
  transform: rotate(90deg);
}

/* Modal Content */
.login-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.login-modal-content .login-success-screen {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mascot Side */
.login-modal-mascot {
  background: linear-gradient(135deg, #0A4EA0 0%, #0A3F8F 100%);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-modal-mascot::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.mascot-content {
  position: relative;
  z-index: 1;
  animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mascot-image {
  width: 280px;
  height: 280px;
  object-fit: contain;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.mascot-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mascot-subtitle {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 320px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* Form Side */
.login-modal-form-wrapper {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 90vh;
  animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  height: 60px;
  margin: 0 auto 32px auto;
  display: block;
  animation: fadeInDown 0.5s ease-out;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #0A192F;
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.login-subtitle {
  font-size: 15px;
  color: #64748B;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.form-input {
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
  animation: fadeInUp 0.5s ease-out both;
}

.form-group:nth-child(1) .form-input {
  animation-delay: 0.3s;
}

.form-group:nth-child(2) .form-input {
  animation-delay: 0.4s;
}

.form-input:focus {
  outline: none;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.1);
}

.form-input:disabled {
  background: #F8FAFC;
  cursor: not-allowed;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* Toggle Switch */
.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.toggle-label-text {
  color: #475569;
  font-size: 14px;
  user-select: none;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  background: #E2E8F0;
  border-radius: 26px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-slider {
  background: linear-gradient(135deg, #0A4EA0 0%, #1565C0 100%);
}

.toggle-checkbox:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch-label:hover .toggle-slider {
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.1);
}

.toggle-checkbox:focus + .toggle-slider {
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.2);
}

.forgot-password {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #1565C0;
}

/* Login Button */
.login-error {
  background-color: #FEE2E2;
  border: 1px solid #EF4444;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
  animation: shake 0.5s ease-in-out, fadeInDown 0.3s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-button {
  padding: 16px 24px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565C0 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
  animation: fadeInUp 0.5s ease-out 0.5s both;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 78, 160, 0.5);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-right: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading State */
.login-button:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565C0 100%);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}



/* Signup Text */
.signup-text {
  text-align: center;
  font-size: 14px;
  color: #64748B;
  margin-top: 24px;
  animation: fadeInUp 0.5s ease-out 0.6s both;
}

.signup-link {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: #1565C0;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .login-modal-content {
    grid-template-columns: 1fr;
  }

  .login-modal-mascot {
    display: none;
  }

  .login-modal-form-wrapper {
    padding: 40px 30px;
  }
}

@media (max-width: 600px) {
  .login-modal-container {
    border-radius: 16px;
    margin: 10px;
  }

  .login-modal-form-wrapper {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .mascot-image {
    width: 200px;
    height: 200px;
  }

  .mascot-title {
    font-size: 24px;
  }
}


/* ============================================
   LOGIN SUCCESS SCREEN
   ============================================ */

.login-success-screen {
  text-align: center;
  padding: 60px 40px;
  width: 100%;
  animation: fadeInUp 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-success-container {
  background: white;
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: successSlideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Check Animado */
.success-checkmark-wrapper {
  margin: 0 auto 32px;
  width: 120px;
  height: 120px;
}

.success-checkmark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #0A4EA0;
  animation: successFill 0.4s ease-in-out 0.4s forwards, successScale 0.3s ease-in-out 0.9s both;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #0A4EA0;
  fill: none;
  animation: successStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #fff;
  stroke-width: 3;
  animation: successStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes successStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes successScale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes successFill {
  100% {
    box-shadow: inset 0 0 0 60px #0A4EA0;
  }
}

/* Avatar do Usuário */
.success-user-avatar {
  margin: 24px auto;
  width: 100px;
  height: 100px;
  animation: successFadeIn 0.5s ease-in-out 1.2s both;
}

.success-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.success-user-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565C0 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  border: 4px solid #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

/* Textos */
.success-title {
  font-size: 32px;
  font-weight: 700;
  color: #0A4EA0;
  margin: 16px 0 8px;
  animation: successFadeIn 0.5s ease-in-out 0.6s both;
}

.success-username {
  font-size: 24px;
  font-weight: 600;
  color: #0A4EA0;
  margin: 0 0 12px;
  animation: successFadeIn 0.5s ease-in-out 1.6s both;
}

.success-message {
  font-size: 16px;
  color: #64748B;
  margin: 0;
  animation: successFadeIn 0.5s ease-in-out 0.8s both;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 600px) {
  .login-success-container {
    padding: 40px 24px;
  }

  .success-checkmark-wrapper {
    width: 100px;
    height: 100px;
  }

  .success-checkmark {
    width: 100px;
    height: 100px;
  }

  .success-user-avatar {
    width: 80px;
    height: 80px;
  }

  .success-user-avatar-placeholder {
    font-size: 36px;
  }

  .success-title {
    font-size: 28px;
  }

  .success-username {
    font-size: 20px;
  }

  .success-message {
    font-size: 14px;
  }
}
/* Public Navbar Styles */
.public-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.public-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(10, 78, 160, 0.1);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-logo-link {
  position: relative;
  display: block;
  transition: transform 0.3s ease;
}

.navbar-logo-link:hover {
  transform: scale(1.05);
}

.navbar-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: none;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.public-navbar.scrolled .navbar-logo-light {
  opacity: 0;
}

.public-navbar.scrolled .navbar-logo-dark {
  opacity: 1;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.menu-item-wrapper {
  position: relative;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.public-navbar.scrolled .menu-item {
  color: #1f2937;
  text-shadow: none;
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.1), rgba(0, 43, 94, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item:hover {
  transform: translateY(-2px);
  color: #0A4EA0;
}

.public-navbar.scrolled .menu-item:hover {
  color: #0A4EA0;
  background: rgba(10, 78, 160, 0.05);
}

.menu-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
  transform: scale(1.2);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
  flex-shrink: 0;
}

.public-navbar.scrolled .navbar-cta {
  border-color: rgba(10, 78, 160, 0.2);
}

.navbar-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 78, 160, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-icon {
  font-size: 1.1rem;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.public-navbar.scrolled .mobile-menu-toggle {
  color: #1f2937;
  text-shadow: none;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.98), rgba(0, 43, 94, 0.98));
  backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-menu-item {
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.4s ease forwards;
}

.mobile-menu-overlay.open .mobile-menu-item {
  animation: slideIn 0.4s ease forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.mobile-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.mobile-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #002b5e, #0A4EA0);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mobile-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 1560px) {
  .navbar-container {
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .menu-item {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }

  .navbar-cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .navbar-social-links {
    gap: 0.5rem;
    margin-left: 0;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 1320px) {
  .navbar-social-links {
    display: none !important;
  }

  .navbar-logo {
    height: 42px;
  }
}

@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
    justify-content: center;
    position: relative;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-logo {
    height: 40px;
  }

  .mobile-menu-toggle {
    margin-left: auto;
  }
}


/* Social Links */
.navbar-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.public-navbar.scrolled .social-link {
  background: rgba(10, 78, 160, 0.1);
  color: #0A4EA0;
  border-color: rgba(10, 78, 160, 0.2);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
}

.public-navbar.scrolled .social-link:hover {
  background: rgba(10, 78, 160, 0.15);
  color: #0A4EA0;
}

@media (max-width: 1024px) {
  .navbar-social-links {
    display: none;
  }
}

/* ========================================
   DROPDOWN MENU STYLES
   ======================================== */

.menu-item-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.menu-item-wrapper:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  display: none;
  z-index: 1001;
  overflow: hidden;
  /* Invisible padding area to prevent menu from closing when moving mouse */
  padding-top: 0.5rem;
  margin-top: -0.5rem;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown-menu.open {
  display: block;
  animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.08), rgba(0, 43, 94, 0.05));
  color: #0A4EA0;
  padding-left: 1.5rem;
}

/* ========================================
   MOBILE DROPDOWN STYLES
   ======================================== */

.mobile-item-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-item-dropdown .dropdown-icon {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.mobile-item-dropdown .dropdown-icon.open {
  transform: rotate(180deg);
}

.mobile-submenu {
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-submenu-item {
  display: block;
  padding: 0.875rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.mobile-submenu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.25rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================
   NEW HERO BANNER - Complete Rewrite
   ======================================== */

.new-hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
}

/* ========================================
   BACKGROUNDS LAYER
   ======================================== */

.new-hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.new-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.new-hero-bg.active {
  opacity: 1;
}

.new-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.new-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.new-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(10, 78, 160, 0.6) 0%,
      rgba(0, 43, 94, 0.6) 100%);
  z-index: 2;
}

/* Image background (shown when no video, or as subtle overlay behind video) */
.new-hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* YouTube iframe full-cover embed */
.new-hero-yt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  /* 16/9 * 100vh */
  height: 56.25vw;
  /* 9/16 * 100vw */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  z-index: 1;
}

/* ========================================
   CONTENT LAYER
   ======================================== */

.new-hero-content-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.new-hero-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.new-hero-text-box {
  text-align: center;
  padding: 2rem;
}

/* ========================================
   TEXT STYLES
   ======================================== */

.new-hero-h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  color: #FFFFFF;
  animation: fadeInUp 0.8s ease-out;
}

.new-hero-p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 3rem 0;
  color: #FFFFFF;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   BUTTONS
   ======================================== */

.new-hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.new-hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-hero-btn-primary {
  background: #FFFFFF;
  color: #0A4EA0;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.new-hero-btn-primary:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.new-hero-btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.new-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   NAVIGATION ARROWS
   ======================================== */

.new-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: #FFFFFF;
}

.new-hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.new-hero-nav-left {
  left: 2rem;
}

.new-hero-nav-right {
  right: 2rem;
}

/* ========================================
   DOTS NAVIGATION
   ======================================== */

.new-hero-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 1rem;
}

.new-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.new-hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.new-hero-dot.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  width: 40px;
  border-radius: 6px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .new-hero-banner {
    min-height: 500px;
    margin-top: 0;
  }

  .new-hero-content-layer {
    padding-top: 0;
  }

  .new-hero-text-box {
    padding: 1rem 2rem;
  }

  .new-hero-h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .new-hero-p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .new-hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .new-hero-btn {
    width: 100%;
    max-width: 300px;
  }

  .new-hero-nav {
    width: 50px;
    height: 50px;
  }

  .new-hero-nav-left {
    left: 1rem;
  }

  .new-hero-nav-right {
    right: 1rem;
  }

  .new-hero-dots {
    bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .new-hero-h1 {
    font-size: 2.5rem;
  }

  .new-hero-p {
    font-size: 1.2rem;
  }

  .new-hero-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    max-width: 100%;
  }

  .new-hero-text-box {
    padding: 0.5rem 1rem;
  }
}/* ===================================
   PUBLIC FOOTER
   =================================== */

.public-footer {
  background: #1a1a1a;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Logo e About */
.footer-about {
  max-width: 350px;
}

.footer-logo-wrapper {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-description {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #0A4EA0;
  color: white;
  transform: translateY(-3px);
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0A4EA0;
  padding-left: 5px;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-icon {
  color: #0A4EA0;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.footer-credits {
  margin-top: 0.5rem !important;
  color: #0A4EA0 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-about {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .public-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-wrapper {
    display: flex;
    justify-content: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links li,
  .footer-contact li {
    text-align: center;
    justify-content: center;
  }

  .footer-logo {
    height: 40px;
  }

  .footer-social {
    justify-content: center;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .public-footer {
    padding: 2rem 0 1rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer-contact li {
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* Phobinho Chatbot Button */
.phobinho-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(10, 78, 160, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 4px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phobinho-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(10, 78, 160, 0.6);
}

.phobinho-button-hidden {
  display: none;
}

.phobinho-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

.phobinho-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 18px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Phobinho Chatbot Window */
.phobinho-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.phobinho-header {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.phobinho-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phobinho-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  padding: 2px;
  object-fit: cover;
}

.phobinho-header-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.phobinho-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0 0;
}

.phobinho-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.phobinho-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 22px;
  line-height: 1;
}

.phobinho-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Messages */
.phobinho-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
  max-height: 450px;
}

.phobinho-messages::-webkit-scrollbar {
  width: 6px;
}

.phobinho-messages::-webkit-scrollbar-track {
  background: transparent;
}

.phobinho-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.phobinho-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.phobinho-message {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.phobinho-message-user {
  flex-direction: row-reverse;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phobinho-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  padding: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.phobinho-message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.phobinho-message-bot .phobinho-message-bubble {
  background: white;
  color: #1f2937;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.phobinho-message-user .phobinho-message-bubble {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(10, 78, 160, 0.3);
}

.phobinho-message-bubble p {
  margin: 0;
}

.phobinho-message-time {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Typing Indicator */
.phobinho-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: fit-content;
}

.phobinho-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typing 1.4s infinite;
}

.phobinho-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.phobinho-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

/* Input */
.phobinho-input-container {
  padding: 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

.phobinho-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.phobinho-input:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.phobinho-send-btn {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
}

.phobinho-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.phobinho-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
  .phobinho-window {
    width: calc(100vw - 32px);
    max-width: 380px;
    right: 16px;
    bottom: 16px;
  }

  .phobinho-button {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
}

/* ===== Markdown Rendered Content ===== */
.phobinho-message-bot .phobinho-message-bubble {
  max-width: 85%;
}

.phobinho-md {
  font-size: 13.5px;
  line-height: 1.6;
  color: #1f2937;
}

.phobinho-md strong {
  color: #0A4EA0;
  font-weight: 600;
}

.phobinho-md em {
  font-style: italic;
  color: #374151;
}

.phobinho-md .chat-h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0A4EA0;
  margin: 12px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #e0e7ff;
}

.phobinho-md .chat-h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 10px 0 4px 0;
}

.phobinho-md .chat-list-item {
  display: block;
  padding: 3px 0;
}

.phobinho-md .chat-step {
  color: #0A4EA0;
  font-weight: 700;
}

.phobinho-md .chat-bullet {
  display: block;
  padding: 2px 0 2px 14px;
  position: relative;
}

.phobinho-md .chat-bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0A4EA0;
  font-weight: 700;
}

.phobinho-md .chat-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0;
}

.phobinho-md .chat-img {
  max-width: 100%;
  border-radius: 10px;
  margin: 6px 0;
  display: block;
  border: 1px solid #e5e7eb;
}

/* ===== Anexos (prints e vídeos do problema) ===== */
.phobinho-attach-button {
  background: #eff4fb;
  border: 1px solid #d1d5db;
  color: #0A4EA0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.phobinho-attach-button:hover:not(:disabled) {
  background: #dbe7f7;
  transform: scale(1.05);
}

.phobinho-attach-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.phobinho-attach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.phobinho-attach-media {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
}

.phobinho-pending-attachments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px 0;
  background: white;
}

.phobinho-pending-item {
  position: relative;
  width: 56px;
  height: 56px;
}

.phobinho-pending-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.phobinho-pending-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phobinho-uploading {
  font-size: 12px;
  color: #64748b;
}
/* "Isso resolveu?" — só aparece quando o servidor pediu a avaliação */
.phobinho-avaliacao {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  color: #64748b;
}

.phobinho-avaliacao button {
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.phobinho-avaliacao button:hover {
  background: #eff6ff;
  border-color: #0A4EA0;
}

.phobinho-avaliacao .phobinho-avaliacao-motivo {
  font-size: 12px;
  color: #0A4EA0;
}

.phobinho-print {
  display: block;
  margin-top: 10px;
  text-decoration: none;
}

.phobinho-print img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #d6dbe4;
}

.phobinho-print span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}
/* Phobos Wizard - Design Premium */

.phobos-wizard {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(10, 78, 160, 0.15);
}

.phobos-wizard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.phobos-wizard-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0A4EA0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.phobos-wizard-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Progress Bar */
.phobos-wizard-progress {
  margin-bottom: 3rem;
}

.phobos-progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.phobos-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0A4EA0 0%, #1e88e5 100%);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phobos-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.phobos-progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.phobos-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.phobos-progress-step.active .phobos-step-number {
  background: linear-gradient(135deg, #0A4EA0 0%, #1e88e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
  transform: scale(1.1);
}

.phobos-step-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  text-align: center;
}

.phobos-progress-step.active .phobos-step-label {
  color: #0A4EA0;
  font-weight: 600;
}

/* Form */
.phobos-wizard-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.phobos-wizard-step {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phobos-step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.phobos-step-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Form Fields */
.phobos-form-field {
  margin-bottom: 1.75rem;
}

.phobos-form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.phobos-form-input,
.phobos-form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #212529;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.phobos-form-input:focus,
.phobos-form-textarea:focus {
  outline: none;
  background: white;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.1);
}

.phobos-form-input::placeholder,
.phobos-form-textarea::placeholder {
  color: #adb5bd;
}

.phobos-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
.phobos-wizard-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.phobos-btn {
  flex: 1;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.phobos-btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #1e88e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.phobos-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 78, 160, 0.4);
}

.phobos-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.phobos-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.phobos-btn-secondary {
  background: white;
  color: #0A4EA0;
  border: 2px solid #0A4EA0;
}

.phobos-btn-secondary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.phobos-btn-secondary:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .phobos-wizard {
    padding: 2rem 1.5rem;
  }

  .phobos-wizard-title {
    font-size: 2rem;
  }

  .phobos-wizard-subtitle {
    font-size: 1rem;
  }

  .phobos-wizard-form {
    padding: 2rem 1.5rem;
  }

  .phobos-step-title {
    font-size: 1.5rem;
  }

  .phobos-step-label {
    font-size: 0.75rem;
  }

  .phobos-wizard-buttons {
    flex-direction: column;
  }

  .phobos-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .phobos-wizard {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .phobos-wizard-title {
    font-size: 1.75rem;
  }

  .phobos-wizard-subtitle {
    font-size: 0.9375rem;
  }

  .phobos-wizard-form {
    padding: 1.5rem 1rem;
  }

  .phobos-step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .phobos-form-input,
  .phobos-form-textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
}

/* Success Screen */
.phobos-success-screen {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeInUp 0.6s ease;
}

.phobos-success-checkmark {
  margin: 0 auto 2rem;
  width: 120px;
  height: 120px;
}

.phobos-checkmark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #0A4EA0;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #0A4EA0;
  animation: fillCheckmark 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.phobos-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #0A4EA0;
  fill: none;
  animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.phobos-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #0A4EA0;
  stroke-width: 3;
  animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleCheckmark {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fillCheckmark {
  100% {
    box-shadow: inset 0 0 0 60px #0A4EA0;
  }
}

.phobos-success-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0A4EA0;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.phobos-success-message {
  font-size: 1.125rem;
  color: #6c757d;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.5s both;
}

/* Responsive adjustments for success screen */
@media (max-width: 768px) {
  .phobos-success-screen {
    padding: 3rem 1.5rem;
  }

  .phobos-success-checkmark {
    width: 100px;
    height: 100px;
  }

  .phobos-checkmark {
    width: 100px;
    height: 100px;
  }

  .phobos-success-title {
    font-size: 2rem;
  }

  .phobos-success-message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .phobos-success-screen {
    padding: 2rem 1rem;
  }

  .phobos-success-checkmark {
    width: 80px;
    height: 80px;
  }

  .phobos-checkmark {
    width: 80px;
    height: 80px;
  }

  .phobos-success-title {
    font-size: 1.75rem;
  }

  .phobos-success-message {
    font-size: 0.9375rem;
  }
}
/* ========================================
   SOCIAL ACTION SECTION
   ======================================== */

.social-action-section {
  background: #f8f9fa;
  padding: 5rem 0;
  width: 100%;
}

.social-action-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.social-action-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.social-action-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-action-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0A4EA0;
  margin: 0;
  line-height: 1.2;
}

.social-action-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin: 0;
}

.social-action-partner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #212529;
}

.social-action-heart {
  color: #dc3545;
  font-size: 1.5rem;
}

.social-action-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.partner-logo-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .social-action-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .social-action-text {
    align-items: center;
  }
  
  .social-action-partner {
    justify-content: center;
  }
  
  .social-action-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .social-action-section {
    padding: 3rem 0;
  }
  
  .social-action-title {
    font-size: 1.75rem;
  }
  
  .social-action-description {
    font-size: 1rem;
  }
  
  .logo-wrapper {
    max-width: 300px;
  }
}
[data-aos][data-aos][data-aos-duration="50"],body[data-aos-duration="50"] [data-aos]{transition-duration:50ms}[data-aos][data-aos][data-aos-delay="50"],body[data-aos-delay="50"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="50"].aos-animate,body[data-aos-delay="50"] [data-aos].aos-animate{transition-delay:50ms}[data-aos][data-aos][data-aos-duration="100"],body[data-aos-duration="100"] [data-aos]{transition-duration:.1s}[data-aos][data-aos][data-aos-delay="100"],body[data-aos-delay="100"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="100"].aos-animate,body[data-aos-delay="100"] [data-aos].aos-animate{transition-delay:.1s}[data-aos][data-aos][data-aos-duration="150"],body[data-aos-duration="150"] [data-aos]{transition-duration:.15s}[data-aos][data-aos][data-aos-delay="150"],body[data-aos-delay="150"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="150"].aos-animate,body[data-aos-delay="150"] [data-aos].aos-animate{transition-delay:.15s}[data-aos][data-aos][data-aos-duration="200"],body[data-aos-duration="200"] [data-aos]{transition-duration:.2s}[data-aos][data-aos][data-aos-delay="200"],body[data-aos-delay="200"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="200"].aos-animate,body[data-aos-delay="200"] [data-aos].aos-animate{transition-delay:.2s}[data-aos][data-aos][data-aos-duration="250"],body[data-aos-duration="250"] [data-aos]{transition-duration:.25s}[data-aos][data-aos][data-aos-delay="250"],body[data-aos-delay="250"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="250"].aos-animate,body[data-aos-delay="250"] [data-aos].aos-animate{transition-delay:.25s}[data-aos][data-aos][data-aos-duration="300"],body[data-aos-duration="300"] [data-aos]{transition-duration:.3s}[data-aos][data-aos][data-aos-delay="300"],body[data-aos-delay="300"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="300"].aos-animate,body[data-aos-delay="300"] [data-aos].aos-animate{transition-delay:.3s}[data-aos][data-aos][data-aos-duration="350"],body[data-aos-duration="350"] [data-aos]{transition-duration:.35s}[data-aos][data-aos][data-aos-delay="350"],body[data-aos-delay="350"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="350"].aos-animate,body[data-aos-delay="350"] [data-aos].aos-animate{transition-delay:.35s}[data-aos][data-aos][data-aos-duration="400"],body[data-aos-duration="400"] [data-aos]{transition-duration:.4s}[data-aos][data-aos][data-aos-delay="400"],body[data-aos-delay="400"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="400"].aos-animate,body[data-aos-delay="400"] [data-aos].aos-animate{transition-delay:.4s}[data-aos][data-aos][data-aos-duration="450"],body[data-aos-duration="450"] [data-aos]{transition-duration:.45s}[data-aos][data-aos][data-aos-delay="450"],body[data-aos-delay="450"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="450"].aos-animate,body[data-aos-delay="450"] [data-aos].aos-animate{transition-delay:.45s}[data-aos][data-aos][data-aos-duration="500"],body[data-aos-duration="500"] [data-aos]{transition-duration:.5s}[data-aos][data-aos][data-aos-delay="500"],body[data-aos-delay="500"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="500"].aos-animate,body[data-aos-delay="500"] [data-aos].aos-animate{transition-delay:.5s}[data-aos][data-aos][data-aos-duration="550"],body[data-aos-duration="550"] [data-aos]{transition-duration:.55s}[data-aos][data-aos][data-aos-delay="550"],body[data-aos-delay="550"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="550"].aos-animate,body[data-aos-delay="550"] [data-aos].aos-animate{transition-delay:.55s}[data-aos][data-aos][data-aos-duration="600"],body[data-aos-duration="600"] [data-aos]{transition-duration:.6s}[data-aos][data-aos][data-aos-delay="600"],body[data-aos-delay="600"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="600"].aos-animate,body[data-aos-delay="600"] [data-aos].aos-animate{transition-delay:.6s}[data-aos][data-aos][data-aos-duration="650"],body[data-aos-duration="650"] [data-aos]{transition-duration:.65s}[data-aos][data-aos][data-aos-delay="650"],body[data-aos-delay="650"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="650"].aos-animate,body[data-aos-delay="650"] [data-aos].aos-animate{transition-delay:.65s}[data-aos][data-aos][data-aos-duration="700"],body[data-aos-duration="700"] [data-aos]{transition-duration:.7s}[data-aos][data-aos][data-aos-delay="700"],body[data-aos-delay="700"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="700"].aos-animate,body[data-aos-delay="700"] [data-aos].aos-animate{transition-delay:.7s}[data-aos][data-aos][data-aos-duration="750"],body[data-aos-duration="750"] [data-aos]{transition-duration:.75s}[data-aos][data-aos][data-aos-delay="750"],body[data-aos-delay="750"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="750"].aos-animate,body[data-aos-delay="750"] [data-aos].aos-animate{transition-delay:.75s}[data-aos][data-aos][data-aos-duration="800"],body[data-aos-duration="800"] [data-aos]{transition-duration:.8s}[data-aos][data-aos][data-aos-delay="800"],body[data-aos-delay="800"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="800"].aos-animate,body[data-aos-delay="800"] [data-aos].aos-animate{transition-delay:.8s}[data-aos][data-aos][data-aos-duration="850"],body[data-aos-duration="850"] [data-aos]{transition-duration:.85s}[data-aos][data-aos][data-aos-delay="850"],body[data-aos-delay="850"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="850"].aos-animate,body[data-aos-delay="850"] [data-aos].aos-animate{transition-delay:.85s}[data-aos][data-aos][data-aos-duration="900"],body[data-aos-duration="900"] [data-aos]{transition-duration:.9s}[data-aos][data-aos][data-aos-delay="900"],body[data-aos-delay="900"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="900"].aos-animate,body[data-aos-delay="900"] [data-aos].aos-animate{transition-delay:.9s}[data-aos][data-aos][data-aos-duration="950"],body[data-aos-duration="950"] [data-aos]{transition-duration:.95s}[data-aos][data-aos][data-aos-delay="950"],body[data-aos-delay="950"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="950"].aos-animate,body[data-aos-delay="950"] [data-aos].aos-animate{transition-delay:.95s}[data-aos][data-aos][data-aos-duration="1000"],body[data-aos-duration="1000"] [data-aos]{transition-duration:1s}[data-aos][data-aos][data-aos-delay="1000"],body[data-aos-delay="1000"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1000"].aos-animate,body[data-aos-delay="1000"] [data-aos].aos-animate{transition-delay:1s}[data-aos][data-aos][data-aos-duration="1050"],body[data-aos-duration="1050"] [data-aos]{transition-duration:1.05s}[data-aos][data-aos][data-aos-delay="1050"],body[data-aos-delay="1050"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1050"].aos-animate,body[data-aos-delay="1050"] [data-aos].aos-animate{transition-delay:1.05s}[data-aos][data-aos][data-aos-duration="1100"],body[data-aos-duration="1100"] [data-aos]{transition-duration:1.1s}[data-aos][data-aos][data-aos-delay="1100"],body[data-aos-delay="1100"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1100"].aos-animate,body[data-aos-delay="1100"] [data-aos].aos-animate{transition-delay:1.1s}[data-aos][data-aos][data-aos-duration="1150"],body[data-aos-duration="1150"] [data-aos]{transition-duration:1.15s}[data-aos][data-aos][data-aos-delay="1150"],body[data-aos-delay="1150"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1150"].aos-animate,body[data-aos-delay="1150"] [data-aos].aos-animate{transition-delay:1.15s}[data-aos][data-aos][data-aos-duration="1200"],body[data-aos-duration="1200"] [data-aos]{transition-duration:1.2s}[data-aos][data-aos][data-aos-delay="1200"],body[data-aos-delay="1200"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1200"].aos-animate,body[data-aos-delay="1200"] [data-aos].aos-animate{transition-delay:1.2s}[data-aos][data-aos][data-aos-duration="1250"],body[data-aos-duration="1250"] [data-aos]{transition-duration:1.25s}[data-aos][data-aos][data-aos-delay="1250"],body[data-aos-delay="1250"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1250"].aos-animate,body[data-aos-delay="1250"] [data-aos].aos-animate{transition-delay:1.25s}[data-aos][data-aos][data-aos-duration="1300"],body[data-aos-duration="1300"] [data-aos]{transition-duration:1.3s}[data-aos][data-aos][data-aos-delay="1300"],body[data-aos-delay="1300"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1300"].aos-animate,body[data-aos-delay="1300"] [data-aos].aos-animate{transition-delay:1.3s}[data-aos][data-aos][data-aos-duration="1350"],body[data-aos-duration="1350"] [data-aos]{transition-duration:1.35s}[data-aos][data-aos][data-aos-delay="1350"],body[data-aos-delay="1350"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1350"].aos-animate,body[data-aos-delay="1350"] [data-aos].aos-animate{transition-delay:1.35s}[data-aos][data-aos][data-aos-duration="1400"],body[data-aos-duration="1400"] [data-aos]{transition-duration:1.4s}[data-aos][data-aos][data-aos-delay="1400"],body[data-aos-delay="1400"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1400"].aos-animate,body[data-aos-delay="1400"] [data-aos].aos-animate{transition-delay:1.4s}[data-aos][data-aos][data-aos-duration="1450"],body[data-aos-duration="1450"] [data-aos]{transition-duration:1.45s}[data-aos][data-aos][data-aos-delay="1450"],body[data-aos-delay="1450"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1450"].aos-animate,body[data-aos-delay="1450"] [data-aos].aos-animate{transition-delay:1.45s}[data-aos][data-aos][data-aos-duration="1500"],body[data-aos-duration="1500"] [data-aos]{transition-duration:1.5s}[data-aos][data-aos][data-aos-delay="1500"],body[data-aos-delay="1500"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1500"].aos-animate,body[data-aos-delay="1500"] [data-aos].aos-animate{transition-delay:1.5s}[data-aos][data-aos][data-aos-duration="1550"],body[data-aos-duration="1550"] [data-aos]{transition-duration:1.55s}[data-aos][data-aos][data-aos-delay="1550"],body[data-aos-delay="1550"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1550"].aos-animate,body[data-aos-delay="1550"] [data-aos].aos-animate{transition-delay:1.55s}[data-aos][data-aos][data-aos-duration="1600"],body[data-aos-duration="1600"] [data-aos]{transition-duration:1.6s}[data-aos][data-aos][data-aos-delay="1600"],body[data-aos-delay="1600"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1600"].aos-animate,body[data-aos-delay="1600"] [data-aos].aos-animate{transition-delay:1.6s}[data-aos][data-aos][data-aos-duration="1650"],body[data-aos-duration="1650"] [data-aos]{transition-duration:1.65s}[data-aos][data-aos][data-aos-delay="1650"],body[data-aos-delay="1650"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1650"].aos-animate,body[data-aos-delay="1650"] [data-aos].aos-animate{transition-delay:1.65s}[data-aos][data-aos][data-aos-duration="1700"],body[data-aos-duration="1700"] [data-aos]{transition-duration:1.7s}[data-aos][data-aos][data-aos-delay="1700"],body[data-aos-delay="1700"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1700"].aos-animate,body[data-aos-delay="1700"] [data-aos].aos-animate{transition-delay:1.7s}[data-aos][data-aos][data-aos-duration="1750"],body[data-aos-duration="1750"] [data-aos]{transition-duration:1.75s}[data-aos][data-aos][data-aos-delay="1750"],body[data-aos-delay="1750"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1750"].aos-animate,body[data-aos-delay="1750"] [data-aos].aos-animate{transition-delay:1.75s}[data-aos][data-aos][data-aos-duration="1800"],body[data-aos-duration="1800"] [data-aos]{transition-duration:1.8s}[data-aos][data-aos][data-aos-delay="1800"],body[data-aos-delay="1800"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1800"].aos-animate,body[data-aos-delay="1800"] [data-aos].aos-animate{transition-delay:1.8s}[data-aos][data-aos][data-aos-duration="1850"],body[data-aos-duration="1850"] [data-aos]{transition-duration:1.85s}[data-aos][data-aos][data-aos-delay="1850"],body[data-aos-delay="1850"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1850"].aos-animate,body[data-aos-delay="1850"] [data-aos].aos-animate{transition-delay:1.85s}[data-aos][data-aos][data-aos-duration="1900"],body[data-aos-duration="1900"] [data-aos]{transition-duration:1.9s}[data-aos][data-aos][data-aos-delay="1900"],body[data-aos-delay="1900"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1900"].aos-animate,body[data-aos-delay="1900"] [data-aos].aos-animate{transition-delay:1.9s}[data-aos][data-aos][data-aos-duration="1950"],body[data-aos-duration="1950"] [data-aos]{transition-duration:1.95s}[data-aos][data-aos][data-aos-delay="1950"],body[data-aos-delay="1950"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="1950"].aos-animate,body[data-aos-delay="1950"] [data-aos].aos-animate{transition-delay:1.95s}[data-aos][data-aos][data-aos-duration="2000"],body[data-aos-duration="2000"] [data-aos]{transition-duration:2s}[data-aos][data-aos][data-aos-delay="2000"],body[data-aos-delay="2000"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2000"].aos-animate,body[data-aos-delay="2000"] [data-aos].aos-animate{transition-delay:2s}[data-aos][data-aos][data-aos-duration="2050"],body[data-aos-duration="2050"] [data-aos]{transition-duration:2.05s}[data-aos][data-aos][data-aos-delay="2050"],body[data-aos-delay="2050"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2050"].aos-animate,body[data-aos-delay="2050"] [data-aos].aos-animate{transition-delay:2.05s}[data-aos][data-aos][data-aos-duration="2100"],body[data-aos-duration="2100"] [data-aos]{transition-duration:2.1s}[data-aos][data-aos][data-aos-delay="2100"],body[data-aos-delay="2100"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2100"].aos-animate,body[data-aos-delay="2100"] [data-aos].aos-animate{transition-delay:2.1s}[data-aos][data-aos][data-aos-duration="2150"],body[data-aos-duration="2150"] [data-aos]{transition-duration:2.15s}[data-aos][data-aos][data-aos-delay="2150"],body[data-aos-delay="2150"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2150"].aos-animate,body[data-aos-delay="2150"] [data-aos].aos-animate{transition-delay:2.15s}[data-aos][data-aos][data-aos-duration="2200"],body[data-aos-duration="2200"] [data-aos]{transition-duration:2.2s}[data-aos][data-aos][data-aos-delay="2200"],body[data-aos-delay="2200"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2200"].aos-animate,body[data-aos-delay="2200"] [data-aos].aos-animate{transition-delay:2.2s}[data-aos][data-aos][data-aos-duration="2250"],body[data-aos-duration="2250"] [data-aos]{transition-duration:2.25s}[data-aos][data-aos][data-aos-delay="2250"],body[data-aos-delay="2250"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2250"].aos-animate,body[data-aos-delay="2250"] [data-aos].aos-animate{transition-delay:2.25s}[data-aos][data-aos][data-aos-duration="2300"],body[data-aos-duration="2300"] [data-aos]{transition-duration:2.3s}[data-aos][data-aos][data-aos-delay="2300"],body[data-aos-delay="2300"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2300"].aos-animate,body[data-aos-delay="2300"] [data-aos].aos-animate{transition-delay:2.3s}[data-aos][data-aos][data-aos-duration="2350"],body[data-aos-duration="2350"] [data-aos]{transition-duration:2.35s}[data-aos][data-aos][data-aos-delay="2350"],body[data-aos-delay="2350"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2350"].aos-animate,body[data-aos-delay="2350"] [data-aos].aos-animate{transition-delay:2.35s}[data-aos][data-aos][data-aos-duration="2400"],body[data-aos-duration="2400"] [data-aos]{transition-duration:2.4s}[data-aos][data-aos][data-aos-delay="2400"],body[data-aos-delay="2400"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2400"].aos-animate,body[data-aos-delay="2400"] [data-aos].aos-animate{transition-delay:2.4s}[data-aos][data-aos][data-aos-duration="2450"],body[data-aos-duration="2450"] [data-aos]{transition-duration:2.45s}[data-aos][data-aos][data-aos-delay="2450"],body[data-aos-delay="2450"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2450"].aos-animate,body[data-aos-delay="2450"] [data-aos].aos-animate{transition-delay:2.45s}[data-aos][data-aos][data-aos-duration="2500"],body[data-aos-duration="2500"] [data-aos]{transition-duration:2.5s}[data-aos][data-aos][data-aos-delay="2500"],body[data-aos-delay="2500"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2500"].aos-animate,body[data-aos-delay="2500"] [data-aos].aos-animate{transition-delay:2.5s}[data-aos][data-aos][data-aos-duration="2550"],body[data-aos-duration="2550"] [data-aos]{transition-duration:2.55s}[data-aos][data-aos][data-aos-delay="2550"],body[data-aos-delay="2550"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2550"].aos-animate,body[data-aos-delay="2550"] [data-aos].aos-animate{transition-delay:2.55s}[data-aos][data-aos][data-aos-duration="2600"],body[data-aos-duration="2600"] [data-aos]{transition-duration:2.6s}[data-aos][data-aos][data-aos-delay="2600"],body[data-aos-delay="2600"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2600"].aos-animate,body[data-aos-delay="2600"] [data-aos].aos-animate{transition-delay:2.6s}[data-aos][data-aos][data-aos-duration="2650"],body[data-aos-duration="2650"] [data-aos]{transition-duration:2.65s}[data-aos][data-aos][data-aos-delay="2650"],body[data-aos-delay="2650"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2650"].aos-animate,body[data-aos-delay="2650"] [data-aos].aos-animate{transition-delay:2.65s}[data-aos][data-aos][data-aos-duration="2700"],body[data-aos-duration="2700"] [data-aos]{transition-duration:2.7s}[data-aos][data-aos][data-aos-delay="2700"],body[data-aos-delay="2700"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2700"].aos-animate,body[data-aos-delay="2700"] [data-aos].aos-animate{transition-delay:2.7s}[data-aos][data-aos][data-aos-duration="2750"],body[data-aos-duration="2750"] [data-aos]{transition-duration:2.75s}[data-aos][data-aos][data-aos-delay="2750"],body[data-aos-delay="2750"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2750"].aos-animate,body[data-aos-delay="2750"] [data-aos].aos-animate{transition-delay:2.75s}[data-aos][data-aos][data-aos-duration="2800"],body[data-aos-duration="2800"] [data-aos]{transition-duration:2.8s}[data-aos][data-aos][data-aos-delay="2800"],body[data-aos-delay="2800"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2800"].aos-animate,body[data-aos-delay="2800"] [data-aos].aos-animate{transition-delay:2.8s}[data-aos][data-aos][data-aos-duration="2850"],body[data-aos-duration="2850"] [data-aos]{transition-duration:2.85s}[data-aos][data-aos][data-aos-delay="2850"],body[data-aos-delay="2850"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2850"].aos-animate,body[data-aos-delay="2850"] [data-aos].aos-animate{transition-delay:2.85s}[data-aos][data-aos][data-aos-duration="2900"],body[data-aos-duration="2900"] [data-aos]{transition-duration:2.9s}[data-aos][data-aos][data-aos-delay="2900"],body[data-aos-delay="2900"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2900"].aos-animate,body[data-aos-delay="2900"] [data-aos].aos-animate{transition-delay:2.9s}[data-aos][data-aos][data-aos-duration="2950"],body[data-aos-duration="2950"] [data-aos]{transition-duration:2.95s}[data-aos][data-aos][data-aos-delay="2950"],body[data-aos-delay="2950"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="2950"].aos-animate,body[data-aos-delay="2950"] [data-aos].aos-animate{transition-delay:2.95s}[data-aos][data-aos][data-aos-duration="3000"],body[data-aos-duration="3000"] [data-aos]{transition-duration:3s}[data-aos][data-aos][data-aos-delay="3000"],body[data-aos-delay="3000"] [data-aos]{transition-delay:0}[data-aos][data-aos][data-aos-delay="3000"].aos-animate,body[data-aos-delay="3000"] [data-aos].aos-animate{transition-delay:3s}[data-aos][data-aos][data-aos-easing=linear],body[data-aos-easing=linear] [data-aos]{transition-timing-function:cubic-bezier(.25,.25,.75,.75)}[data-aos][data-aos][data-aos-easing=ease],body[data-aos-easing=ease] [data-aos]{transition-timing-function:ease}[data-aos][data-aos][data-aos-easing=ease-in],body[data-aos-easing=ease-in] [data-aos]{transition-timing-function:ease-in}[data-aos][data-aos][data-aos-easing=ease-out],body[data-aos-easing=ease-out] [data-aos]{transition-timing-function:ease-out}[data-aos][data-aos][data-aos-easing=ease-in-out],body[data-aos-easing=ease-in-out] [data-aos]{transition-timing-function:ease-in-out}[data-aos][data-aos][data-aos-easing=ease-in-back],body[data-aos-easing=ease-in-back] [data-aos]{transition-timing-function:cubic-bezier(.6,-.28,.735,.045)}[data-aos][data-aos][data-aos-easing=ease-out-back],body[data-aos-easing=ease-out-back] [data-aos]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}[data-aos][data-aos][data-aos-easing=ease-in-out-back],body[data-aos-easing=ease-in-out-back] [data-aos]{transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}[data-aos][data-aos][data-aos-easing=ease-in-sine],body[data-aos-easing=ease-in-sine] [data-aos]{transition-timing-function:cubic-bezier(.47,0,.745,.715)}[data-aos][data-aos][data-aos-easing=ease-out-sine],body[data-aos-easing=ease-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.39,.575,.565,1)}[data-aos][data-aos][data-aos-easing=ease-in-out-sine],body[data-aos-easing=ease-in-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.445,.05,.55,.95)}[data-aos][data-aos][data-aos-easing=ease-in-quad],body[data-aos-easing=ease-in-quad] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quad],body[data-aos-easing=ease-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quad],body[data-aos-easing=ease-in-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-cubic],body[data-aos-easing=ease-in-cubic] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-cubic],body[data-aos-easing=ease-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-cubic],body[data-aos-easing=ease-in-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-quart],body[data-aos-easing=ease-in-quart] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quart],body[data-aos-easing=ease-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quart],body[data-aos-easing=ease-in-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos^=fade][data-aos^=fade]{opacity:0;transition-property:opacity,transform}[data-aos^=fade][data-aos^=fade].aos-animate{opacity:1;transform:translateZ(0)}[data-aos=fade-up]{transform:translate3d(0,100px,0)}[data-aos=fade-down]{transform:translate3d(0,-100px,0)}[data-aos=fade-right]{transform:translate3d(-100px,0,0)}[data-aos=fade-left]{transform:translate3d(100px,0,0)}[data-aos=fade-up-right]{transform:translate3d(-100px,100px,0)}[data-aos=fade-up-left]{transform:translate3d(100px,100px,0)}[data-aos=fade-down-right]{transform:translate3d(-100px,-100px,0)}[data-aos=fade-down-left]{transform:translate3d(100px,-100px,0)}[data-aos^=zoom][data-aos^=zoom]{opacity:0;transition-property:opacity,transform}[data-aos^=zoom][data-aos^=zoom].aos-animate{opacity:1;transform:translateZ(0) scale(1)}[data-aos=zoom-in]{transform:scale(.6)}[data-aos=zoom-in-up]{transform:translate3d(0,100px,0) scale(.6)}[data-aos=zoom-in-down]{transform:translate3d(0,-100px,0) scale(.6)}[data-aos=zoom-in-right]{transform:translate3d(-100px,0,0) scale(.6)}[data-aos=zoom-in-left]{transform:translate3d(100px,0,0) scale(.6)}[data-aos=zoom-out]{transform:scale(1.2)}[data-aos=zoom-out-up]{transform:translate3d(0,100px,0) scale(1.2)}[data-aos=zoom-out-down]{transform:translate3d(0,-100px,0) scale(1.2)}[data-aos=zoom-out-right]{transform:translate3d(-100px,0,0) scale(1.2)}[data-aos=zoom-out-left]{transform:translate3d(100px,0,0) scale(1.2)}[data-aos^=slide][data-aos^=slide]{transition-property:transform}[data-aos^=slide][data-aos^=slide].aos-animate{transform:translateZ(0)}[data-aos=slide-up]{transform:translate3d(0,100%,0)}[data-aos=slide-down]{transform:translate3d(0,-100%,0)}[data-aos=slide-right]{transform:translate3d(-100%,0,0)}[data-aos=slide-left]{transform:translate3d(100%,0,0)}[data-aos^=flip][data-aos^=flip]{backface-visibility:hidden;transition-property:transform}[data-aos=flip-left]{transform:perspective(2500px) rotateY(-100deg)}[data-aos=flip-left].aos-animate{transform:perspective(2500px) rotateY(0)}[data-aos=flip-right]{transform:perspective(2500px) rotateY(100deg)}[data-aos=flip-right].aos-animate{transform:perspective(2500px) rotateY(0)}[data-aos=flip-up]{transform:perspective(2500px) rotateX(-100deg)}[data-aos=flip-up].aos-animate{transform:perspective(2500px) rotateX(0)}[data-aos=flip-down]{transform:perspective(2500px) rotateX(100deg)}[data-aos=flip-down].aos-animate{transform:perspective(2500px) rotateX(0)}/**
 * Swiper 12.0.3
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2025 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: October 21, 2025
 */

:root {
  --swiper-theme-color: #007aff;
  /*
  --swiper-preloader-color: var(--swiper-theme-color);
  --swiper-wrapper-transition-timing-function: initial;
  */
}
:host {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}
.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  /* Fix of Webkit flickering */
  z-index: 1;
  display: block;
}
.swiper-vertical > .swiper-wrapper {
  flex-direction: column;
}
.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}
.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px, 0, 0);
}
.swiper-horizontal {
  touch-action: pan-y;
}
.swiper-vertical {
  touch-action: pan-x;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}
.swiper-slide-invisible-blank {
  visibility: hidden;
}
/* Auto Height */
.swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: auto;
}
.swiper-autoheight .swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}
.swiper-backface-hidden .swiper-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* 3D Effects */
.swiper-3d.swiper-css-mode .swiper-wrapper {
  perspective: 1200px;
}
.swiper-3d .swiper-wrapper {
  transform-style: preserve-3d;
}
.swiper-3d {
  perspective: 1200px;
  .swiper-slide,
  .swiper-cube-shadow {
    transform-style: preserve-3d;
  }
}

/* CSS Mode */
.swiper-css-mode {
  > .swiper-wrapper {
    overflow: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    &::-webkit-scrollbar {
      display: none;
    }
  }
  > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: start start;
  }
  &.swiper-horizontal {
    > .swiper-wrapper {
      scroll-snap-type: x mandatory;
    }
  }
  &.swiper-vertical {
    > .swiper-wrapper {
      scroll-snap-type: y mandatory;
    }
  }
  &.swiper-free-mode {
    > .swiper-wrapper {
      scroll-snap-type: none;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: none;
    }
  }
  &.swiper-centered {
    > .swiper-wrapper::before {
      content: '';
      flex-shrink: 0;
      order: 9999;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: center center;
      scroll-snap-stop: always;
    }
  }
  &.swiper-centered.swiper-horizontal {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-inline-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      height: 100%;
      min-height: 1px;
      width: var(--swiper-centered-offset-after);
    }
  }
  &.swiper-centered.swiper-vertical {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-block-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      width: 100%;
      min-width: 1px;
      height: var(--swiper-centered-offset-after);
    }
  }
}

/* Slide styles start */
/* 3D Shadows */
.swiper-3d {
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom,
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  .swiper-slide-shadow {
    background: rgba(0, 0, 0, 0.15);
  }
  .swiper-slide-shadow-left {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-right {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-top {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-bottom {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
}
.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%;
  border-top-color: transparent;
}
.swiper:not(.swiper-watch-progress),
.swiper-watch-progress .swiper-slide-visible {
  .swiper-lazy-preloader {
    animation: swiper-preloader-spin 1s infinite linear;
  }
}
.swiper-lazy-preloader-white {
  --swiper-preloader-color: #fff;
}
.swiper-lazy-preloader-black {
  --swiper-preloader-color: #000;
}
@keyframes swiper-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Slide styles end */
.swiper-fade {
  &.swiper-free-mode {
    .swiper-slide {
      transition-timing-function: ease-out;
    }
  }
  .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
    .swiper-slide {
      pointer-events: none;
    }
  }
  .swiper-slide-active {
    pointer-events: auto;
    & .swiper-slide-active {
      pointer-events: auto;
    }
  }
}
:root {
  --swiper-navigation-size: 44px;
  /*
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-sides-offset: 4px;
  --swiper-navigation-color: var(--swiper-theme-color);
  */
}
.swiper-button-prev,
.swiper-button-next {
  position: absolute;

  width: var(--swiper-navigation-size);
  height: var(--swiper-navigation-size);

  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-navigation-color, var(--swiper-theme-color));
  &.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
  }
  &.swiper-button-hidden {
    opacity: 0;
    cursor: auto;
    pointer-events: none;
  }
  .swiper-navigation-disabled & {
    display: none !important;
  }
  svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    fill: currentColor;
    pointer-events: none;
  }
}

.swiper-button-lock {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  top: var(--swiper-navigation-top-offset, 50%);
  margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
}
.swiper-button-prev {
  left: var(--swiper-navigation-sides-offset, 4px);
  right: auto;
  .swiper-navigation-icon {
    transform: rotate(180deg);
  }
}
.swiper-button-next {
  right: var(--swiper-navigation-sides-offset, 4px);
  left: auto;
}
.swiper-horizontal {
  .swiper-button-prev,
  .swiper-button-next,
  ~ .swiper-button-prev,
  ~ .swiper-button-next {
    top: var(--swiper-navigation-top-offset, 50%);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    margin-left: 0;
  }
  .swiper-button-prev,
  & ~ .swiper-button-prev,
  &.swiper-rtl .swiper-button-next,
  &.swiper-rtl ~ .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 4px);
    right: auto;
  }
  .swiper-button-next,
  & ~ .swiper-button-next,
  &.swiper-rtl .swiper-button-prev,
  &.swiper-rtl ~ .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 4px);
    left: auto;
  }
  .swiper-button-prev,
  & ~ .swiper-button-prev,
  &.swiper-rtl .swiper-button-next,
  &.swiper-rtl ~ .swiper-button-next {
    .swiper-navigation-icon {
      transform: rotate(180deg);
    }
  }
  &.swiper-rtl .swiper-button-prev,
  &.swiper-rtl ~ .swiper-button-prev {
    .swiper-navigation-icon {
      transform: rotate(0deg);
    }
  }
}
.swiper-vertical {
  .swiper-button-prev,
  .swiper-button-next,
  ~ .swiper-button-prev,
  ~ .swiper-button-next {
    left: var(--swiper-navigation-top-offset, 50%);
    right: auto;
    margin-left: calc(0px - (var(--swiper-navigation-size) / 2));
    margin-top: 0;
  }
  .swiper-button-prev,
  ~ .swiper-button-prev {
    top: var(--swiper-navigation-sides-offset, 4px);
    bottom: auto;
    .swiper-navigation-icon {
      transform: rotate(-90deg);
    }
  }
  .swiper-button-next,
  ~ .swiper-button-next {
    bottom: var(--swiper-navigation-sides-offset, 4px);
    top: auto;
    .swiper-navigation-icon {
      transform: rotate(90deg);
    }
  }
}
:root {
  /*
  --swiper-pagination-color: var(--swiper-theme-color);
  --swiper-pagination-left: auto;
  --swiper-pagination-right: 8px;
  --swiper-pagination-bottom: 8px;
  --swiper-pagination-top: auto;
  --swiper-pagination-fraction-color: inherit;
  --swiper-pagination-progressbar-bg-color: rgba(0,0,0,0.25);
  --swiper-pagination-progressbar-size: 4px;
  --swiper-pagination-bullet-size: 8px;
  --swiper-pagination-bullet-width: 8px;
  --swiper-pagination-bullet-height: 8px;
  --swiper-pagination-bullet-border-radius: 50%;
  --swiper-pagination-bullet-inactive-color: #000;
  --swiper-pagination-bullet-inactive-opacity: 0.2;
  --swiper-pagination-bullet-opacity: 1;
  --swiper-pagination-bullet-horizontal-gap: 4px;
  --swiper-pagination-bullet-vertical-gap: 6px;
  */
}
.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: 300ms opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  &.swiper-pagination-hidden {
    opacity: 0;
  }
  .swiper-pagination-disabled > &,
  &.swiper-pagination-disabled {
    display: none !important;
  }
}
/* Common Styles */
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: var(--swiper-pagination-bottom, 8px);
  top: var(--swiper-pagination-top, auto);
  left: 0;
  width: 100%;
}
/* Bullets */
.swiper-pagination-bullets-dynamic {
  overflow: hidden;
  font-size: 0;
  .swiper-pagination-bullet {
    transform: scale(0.33);
    position: relative;
  }
  .swiper-pagination-bullet-active {
    transform: scale(1);
  }
  .swiper-pagination-bullet-active-main {
    transform: scale(1);
  }
  .swiper-pagination-bullet-active-prev {
    transform: scale(0.66);
  }
  .swiper-pagination-bullet-active-prev-prev {
    transform: scale(0.33);
  }
  .swiper-pagination-bullet-active-next {
    transform: scale(0.66);
  }
  .swiper-pagination-bullet-active-next-next {
    transform: scale(0.33);
  }
}
.swiper-pagination-bullet {
  width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
  height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
  display: inline-block;
  border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
  background: var(--swiper-pagination-bullet-inactive-color, #000);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
  button& {
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    appearance: none;
  }
  .swiper-pagination-clickable & {
    cursor: pointer;
  }

  &:only-child {
    display: none !important;
  }
}
.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--swiper-pagination-color, var(--swiper-theme-color));
}

.swiper-vertical > .swiper-pagination-bullets,
.swiper-pagination-vertical.swiper-pagination-bullets {
  right: var(--swiper-pagination-right, 8px);
  left: var(--swiper-pagination-left, auto);
  top: 50%;
  transform: translate3d(0px, -50%, 0);
  .swiper-pagination-bullet {
    margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
    display: block;
  }
  &.swiper-pagination-bullets-dynamic {
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    .swiper-pagination-bullet {
      display: inline-block;
      transition:
        200ms transform,
        200ms top;
    }
  }
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-horizontal.swiper-pagination-bullets {
  .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
  }
  &.swiper-pagination-bullets-dynamic {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    .swiper-pagination-bullet {
      transition:
        200ms transform,
        200ms left;
    }
  }
}
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transition:
    200ms transform,
    200ms right;
}
/* Fraction */
.swiper-pagination-fraction {
  color: var(--swiper-pagination-fraction-color, inherit);
}
/* Progress */
.swiper-pagination-progressbar {
  background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
  position: absolute;
  .swiper-pagination-progressbar-fill {
    background: var(--swiper-pagination-color, var(--swiper-theme-color));
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top;
  }
  .swiper-rtl & .swiper-pagination-progressbar-fill {
    transform-origin: right top;
  }
  .swiper-horizontal > &,
  &.swiper-pagination-horizontal,
  .swiper-vertical > &.swiper-pagination-progressbar-opposite,
  &.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size, 4px);
    left: 0;
    top: 0;
  }
  .swiper-vertical > &,
  &.swiper-pagination-vertical,
  .swiper-horizontal > &.swiper-pagination-progressbar-opposite,
  &.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
    width: var(--swiper-pagination-progressbar-size, 4px);
    height: 100%;
    left: 0;
    top: 0;
  }
}
.swiper-pagination-lock {
  display: none;
}
/* Public Site SPA Styles */

.public-site {
  width: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
  padding-top: 0;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-default {
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 78, 160, 0.7);
  z-index: 1;
}

/* Comentado para não conflitar com NewHeroBanner.css */
/*
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.3;
  padding: 0 1rem;
}
*/

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  padding: 0 1rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary {
  background: white;
  color: #0A4EA0;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: white;
  color: #0A4EA0;
  transform: translateY(-2px);
}

/* Section Padding */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0A4EA0;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* Background Variants */
.bg-light {
  background: #f8f9fa;
}

.bg-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  color: white;
}

/* About Section */
.about-section {
  background: white;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  transform: scale(1.05);
}

.play-icon {
  font-size: 4rem;
  color: white;
  opacity: 0.9;
}

.about-content {
  padding: 2rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0A4EA0;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: #0A4EA0;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* Testimonials Section */
.testimonials-section {
  background: #f8f9fa;
}

.testimonials-swiper {
  padding: 2rem 0;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quote-icon {
  font-size: 2rem;
  color: #0A4EA0;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #0A4EA0;
  box-shadow: 0 4px 10px rgba(10, 78, 160, 0.2);
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
}

.author-company {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.rating {
  display: flex;
  gap: 0.25rem;
}

.star-icon {
  color: #ffc107;
  font-size: 0.875rem;
}

/* Clients Section */
.clients-section {
  background: white;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.client-logo {
  width: 100%;
  max-width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Counters Section */
.counters-section {
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  color: white;
}

.counter-card {
  text-align: center;
  padding: 2rem;
}

.counter-value {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Plans Section */
.plans-section {
  background: white;
}

.plan-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(10, 78, 160, 0.25);
  border-color: #0A4EA0;
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.plan-card.featured {
  border-color: #0A4EA0;
  border-width: 3px;
  box-shadow: 0 15px 40px rgba(10, 78, 160, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
  transform: scale(1.05);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0A4EA0;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.plan-description {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.check-icon {
  color: #28a745;
  font-size: 1rem;
  flex-shrink: 0;
}

.plan-button {
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  transition: all 0.3s ease;
}

.plan-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(10, 78, 160, 0.3);
}

/* FAQ Section */
.faq-section {
  background: #f8f9fa;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #0A4EA0 0%, #0d6efd 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.faq-answer p {
  color: #6c757d;
  line-height: 1.8;
  margin: 0;
  padding-left: 3rem;
}

/* Page Section */
.page-section {
  background: white;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: #0A4EA0;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1rem;
}

.page-content ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-content ul li {
  line-height: 1.8;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  background: #f8f9fa;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A4EA0;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  font-size: 1.5rem;
  color: #0A4EA0;
  margin-top: 0.25rem;
}

.info-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
}

.info-item p {
  color: #6c757d;
  margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .about-content {
    margin-top: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons button {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .counter-value {
    font-size: 3rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ========================================
   BOTÃO DEMONSTRAÇÃO GRANDE
   ======================================== */

.btn-demo-large {
  padding: 1.25rem 3rem !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.3) !important;
  transition: all 0.3s ease !important;
}

.btn-demo-large:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(10, 78, 160, 0.4) !important;
}

.btn-demo-large .mr-2 {
  font-size: 1.5rem;
  margin-right: 0.75rem !important;
}

@media (max-width: 768px) {
  .btn-demo-large {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }

  .btn-demo-large .mr-2 {
    font-size: 1.2rem !important;
    margin-right: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .btn-demo-large {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  .btn-demo-large .mr-2 {
    font-size: 1rem !important;
  }
}

/* ========================================
   COMPROMISSO SOCIAL
   ======================================== */

.social-action-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

.social-action-section .container {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  width: 100% !important;
}

.social-action-section .row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.social-action-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0A4EA0;
  margin-bottom: 1.5rem;
}

.social-action-section .section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 2rem;
}

.partner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #212529;
}

.heart-icon {
  color: #dc3545;
  font-size: 1.5rem;
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .social-action-section .row {
    flex-direction: column;
    text-align: center;
  }
  
  .partner-info {
    justify-content: center;
  }
}

/* Fix buttons overflow on mobile */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  button {
    max-width: 100%;
    width: auto;
    white-space: normal;
    word-wrap: break-word;
  }

  .hero-buttons,
  .cta-buttons {
    padding: 0 1rem;
  }

  .about-section .btn-primary {
    width: 100%;
    max-width: 100%;
  }
}

/* ===================================
   PARALLAX SECTIONS
   =================================== */

.parallax-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.parallax-bg {
  display: none;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 78, 160, 0.85);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* Parallax para seção Sobre */
.about-parallax {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
}

/* Parallax para contador */
.counter-parallax {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=1920&q=80');
}

.counter-parallax .parallax-overlay {
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.9) 0%, rgba(13, 110, 253, 0.9) 100%);
}

/* Parallax para CTA */
.cta-parallax {
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&q=80');
}

.cta-parallax .parallax-overlay {
  background: rgba(10, 78, 160, 0.88);
}

/* Ajustes de texto para seções parallax */
.parallax-section h2,
.parallax-section h3,
.parallax-section p,
.parallax-section .counter-number,
.parallax-section .counter-label {
  color: white !important;
}

.parallax-section .benefit-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Exceção para formulário de demonstração */
.parallax-section.cta-parallax .phobos-form-label,
.cta-parallax .phobos-form-label,
.demo-section .phobos-form-label,
.phobos-form-label,
.cta-parallax h3,
.cta-parallax p {
  color: #1f2937 !important;
}

/* Exceção para cards de benefícios */
.parallax-section .feature-card .feature-desc,
.parallax-section .feature-card .feature-title,
.about-parallax .feature-desc,
.about-parallax .feature-title {
  color: #212529 !important;
}

.parallax-section .feature-card .feature-desc,
.about-parallax .feature-desc {
  color: #6c757d !important;
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
  .parallax-bg {
    transform: none !important;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
  
  .about-parallax,
  .counter-parallax,
  .cta-parallax {
    min-height: auto;
    padding: 4rem 0;
  }
}


/* ===================================
   PUBLIC NOVIDADES - Grid de Posts
   =================================== */

.public-novidades {
  min-height: 100vh;
  background: #f8f9fa;
}

/* Header removido - agora usa PublicPageHeader */

/* Filtros */
.novidades-filters {
  background: #fff;
  padding: 30px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.novidades-filters .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid #e9ecef;
  border-radius: 30px;
  font-size: 15px;
  transition: all 0.3s;
  background: #f8f9fa;
}

.search-box input:focus {
  outline: none;
  border-color: #0A4EA0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.1);
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-filters button {
  background: #fff;
  border: 2px solid #e9ecef;
  color: #666;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.category-filters button:hover {
  border-color: #0A4EA0;
  color: #0A4EA0;
  transform: translateY(-2px);
}

.category-filters button.active {
  background: #0A4EA0;
  border-color: #0A4EA0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

/* Grid de Posts */
.novidades-grid {
  padding: 60px 0 80px;
}

.novidades-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* Post Card */
.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(10, 78, 160, 0.2);
}

.post-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-image img {
  transform: scale(1.1);
}

.post-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  display: inline-block;
  background: #0A4EA0;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  width: fit-content;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
  color: #999;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta i {
  color: #0A4EA0;
  font-size: 13px;
}

/* Sem resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-results i {
  font-size: 70px;
  color: #ccc;
  margin-bottom: 25px;
}

.no-results p {
  font-size: 20px;
  color: #999;
  font-weight: 500;
}

/* Links sem decoração */
.novidades-grid a {
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 1200px) {
  .novidades-grid .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .novidades-header h1 {
    font-size: 42px;
  }

  .novidades-header p {
    font-size: 18px;
  }

  .novidades-filters .container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .category-filters {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .novidades-header {
    padding: 80px 0 60px;
  }

  .novidades-header h1 {
    font-size: 36px;
  }

  .novidades-header p {
    font-size: 16px;
  }

  .novidades-grid .grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .post-image {
    height: 200px;
  }

  .post-content {
    padding: 22px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-filters button {
    font-size: 14px;
    padding: 8px 18px;
  }
}

@media (max-width: 480px) {
  .novidades-header h1 {
    font-size: 28px;
  }

  .post-content h3 {
    font-size: 18px;
  }
}


.novidades-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
  color: #64748b;
  font-size: 14px;
}

.novidades-paginacao button {
  border: 2px solid #e9ecef;
  background: #fff;
  color: #0A4EA0;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.novidades-paginacao button:hover:not(:disabled) {
  border-color: #0A4EA0;
  background: #0A4EA0;
  color: #fff;
}

.novidades-paginacao button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ===================================
   PUBLIC POST - PREMIUM DESIGN
   =================================== */

.public-post-page {
  background: #f8f9fa;
  min-height: 100vh;
}

/* Not Found State */
.public-post-not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 20px;
}

.not-found-content {
  text-align: center;
  max-width: 500px;
}

.not-found-icon {
  font-size: 120px;
  margin-bottom: 30px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.not-found-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.not-found-content p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-back-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
}

.btn-back-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(10, 78, 160, 0.4);
}

/* Main Content */
.post-main-content {
  padding: 60px 0;
}

/* Breadcrumb */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #002b5e;
  text-decoration: underline;
}

.breadcrumb-nav .separator {
  color: #adb5bd;
  font-size: 0.9rem;
}

.breadcrumb-nav .current {
  color: #6c757d;
  font-weight: 400;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  align-items: start;
}

/* Article */
.post-article {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Post Meta Header */
.post-meta-header {
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 25px;
  margin-bottom: 35px;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.category-badge {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-details {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.95rem;
}

.meta-item svg {
  color: #0A4EA0;
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.post-tags svg {
  color: #0A4EA0;
}

.post-tags .tag {
  background: #e9ecef;
  color: #495057;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-tags .tag:hover {
  background: #0A4EA0;
  color: white;
}

/* Featured Image */
.featured-image {
  margin: 35px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

/* Excerpt Box */
.post-excerpt-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 5px solid #0A4EA0;
  padding: 25px 30px;
  margin: 35px 0;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: start;
}

.excerpt-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.post-excerpt-box p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2c3e50;
  margin: 0;
  font-weight: 500;
}

/* Post Content Body */
.post-content-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2c3e50;
  margin: 40px 0;
}

.content-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #0A4EA0;
  margin: 50px 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #e9ecef;
}

.content-subheading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #002b5e;
  margin: 40px 0 20px 0;
}

.content-paragraph {
  margin-bottom: 20px;
  text-align: justify;
}

.content-list,
.content-ordered-list {
  margin: 25px 0;
  padding-left: 30px;
}

.content-list li,
.content-ordered-list li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.content-quote {
  background: #f8f9fa;
  border-left: 5px solid #0A4EA0;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  color: #495057;
  border-radius: 4px;
}

.inline-code {
  background: #f1f3f5;
  color: #e83e8c;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.code-block {
  display: block;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
  font-family: 'Courier New', monospace;
  line-height: 1.6;
}

.content-link {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.content-link:hover {
  border-bottom-color: #0A4EA0;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-message {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 4px;
}

.info-message p {
  margin: 0;
  color: #856404;
}

/* Share Section */
.post-share-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 35px;
  margin: 50px 0 40px 0;
}

.share-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.share-header svg {
  color: #0A4EA0;
  font-size: 1.3rem;
}

.share-header h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

/* Navigation */
.post-navigation {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e9ecef;
}

.btn-back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #0A4EA0;
  border: 2px solid #0A4EA0;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-to-list:hover {
  background: #0A4EA0;
  color: white;
  transform: translateX(-5px);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sidebar-widget:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.widget-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.sidebar-widget p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6c757d;
  text-align: center;
  margin-bottom: 20px;
}

.btn-widget,
.btn-widget-primary {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-widget {
  background: #e9ecef;
  color: #0A4EA0;
}

.btn-widget:hover {
  background: #dee2e6;
  transform: translateY(-2px);
}

.btn-widget-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.btn-widget-primary:hover {
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.4);
  transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #0A4EA0;
}

.btn-subscribe {
  padding: 12px 20px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-sidebar {
    position: static;
  }

  .post-article {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .post-article {
    padding: 25px;
    border-radius: 12px;
  }

  .post-meta-header {
    padding-bottom: 20px;
  }

  .meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .meta-details {
    flex-direction: column;
    gap: 10px;
  }

  .content-heading {
    font-size: 1.6rem;
    margin: 35px 0 20px 0;
  }

  .content-subheading {
    font-size: 1.3rem;
  }

  .post-content-body {
    font-size: 1rem;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

  .breadcrumb-nav {
    font-size: 0.85rem;
  }

  .not-found-icon {
    font-size: 80px;
  }

  .not-found-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .post-main-content {
    padding: 30px 0;
  }

  .post-article {
    padding: 20px;
  }

  .sidebar-widget {
    padding: 25px;
  }

  .post-excerpt-box {
    flex-direction: column;
    padding: 20px;
  }

  .excerpt-icon {
    font-size: 1.5rem;
  }
}


/* Post Navigation Cards */
.post-navigation-arrows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid #e9ecef;
}

.nav-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.nav-card:hover:not(.disabled) {
  box-shadow: 0 12px 40px rgba(10, 78, 160, 0.2);
  transform: translateY(-8px);
  border-color: #0A4EA0;
}

.nav-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa;
}

.nav-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0 0%, #e9ecef 100%);
}

.nav-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nav-card:hover:not(.disabled) .nav-card-image img {
  transform: scale(1.08);
}

.nav-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 78, 160, 0.3);
  transition: background 0.3s ease;
}

.nav-card:hover:not(.disabled) .nav-card-overlay {
  background: rgba(10, 78, 160, 0.5);
}

.nav-arrow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-card:hover:not(.disabled) .nav-arrow-icon {
  opacity: 1;
  font-size: 3rem;
}

.nav-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.nav-label {
  font-size: 0.8rem;
  color: #0A4EA0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .post-navigation-arrows {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
  }

  .nav-card-image {
    height: 160px;
  }

  .nav-card-content {
    padding: 20px;
  }

  .nav-title {
    font-size: 1.1rem;
  }

  .nav-arrow-icon {
    font-size: 2rem;
  }

  .nav-card:hover:not(.disabled) .nav-arrow-icon {
    font-size: 2.5rem;
  }
}
/* ===================================
   PUBLIC CHANGELOG PAGE - MODERN DESIGN
   =================================== */

.public-changelog {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafd 0%, #eef2f7 100%);
}

/* ===================================
   FILTERS SECTION
   =================================== */

.changelog-filters {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 32px 0;
  border-bottom: 1px solid rgba(10, 78, 160, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.changelog-filters .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab;
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 2px solid #e4e8ef;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafd;
  transition: all 0.3s ease;
  color: #1a1a2e;
}

.search-box input::placeholder {
  color: #999;
}

.search-box input:focus {
  outline: none;
  border-color: #0A4EA0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.08);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 10px 14px;
  border: 2px solid #e4e8ef;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #f8fafd;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1a1a2e;
}

.filter-group select:focus {
  outline: none;
  border-color: #0A4EA0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.08);
}

/* ===================================
   CHANGELOG TIMELINE SECTION
   =================================== */

.changelog-section {
  padding: 60px 0 80px;
}

.changelog-section .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Timeline line */
.changelog-list::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0A4EA0 0%, #4a90d9 50%, rgba(10, 78, 160, 0.15) 100%);
  border-radius: 3px;
}

.changelog-item {
  display: block;
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(10, 78, 160, 0.06);
  margin-left: 50px;
}

/* Timeline dot */
.changelog-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0A4EA0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.changelog-item:hover {
  border-color: rgba(10, 78, 160, 0.15);
  box-shadow: 0 8px 32px rgba(10, 78, 160, 0.12);
  transform: translateY(-4px) translateX(4px);
}

.changelog-item:hover::before {
  background: #fff;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.3);
  transform: scale(1.2);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding: 20px 24px 0;
}

.changelog-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565c0 100%);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.changelog-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2f7;
  color: #4a5568;
  transition: all 0.3s ease;
}

.changelog-type-badge[data-type="feature"] {
  background: linear-gradient(135deg, #e8faf0 0%, #dcf5e7 100%);
  color: #15803d;
}

.changelog-type-badge[data-type="improvement"] {
  background: linear-gradient(135deg, #eef0ff 0%, #e2e6ff 100%);
  color: #4338ca;
}

.changelog-type-badge[data-type="bugfix"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffe4e1 100%);
  color: #dc2626;
}

.changelog-type-badge[data-type="breaking"] {
  background: linear-gradient(135deg, #fff8eb 0%, #ffedd5 100%);
  color: #c2410c;
}

.changelog-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-left: auto;
  font-weight: 500;
}

.changelog-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 10px 24px 8px;
  line-height: 1.3;
  word-break: break-word;
}

.changelog-excerpt {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 24px 12px;
  line-height: 1.6;
  font-weight: 400;
}

/* Content Preview */
.changelog-preview {
  background: #f8fafd;
  padding: 14px 18px;
  border-left: 3px solid #0A4EA0;
  border-radius: 0 8px 8px 0;
  margin: 8px 24px 16px;
}

.changelog-preview p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.changelog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fcfcfd;
}

.changelog-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.changelog-read-more {
  color: #0A4EA0;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.changelog-item:hover .changelog-read-more {
  gap: 8px;
  color: #083a7a;
}

.changelog-module {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #eef2f7;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #4a5568;
}

.changelog-author {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #94a3b8;
}

/* Large type badge - hidden since we have inline badges */
.changelog-type-badge-large {
  display: none;
}

/* ===================================
   NO RESULTS
   =================================== */

.no-results {
  text-align: center;
  padding: 80px 20px;
  margin-left: 50px;
}

.no-results i {
  font-size: 3.5rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  display: block;
}

.no-results p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin: 0;
  font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .changelog-filters {
    padding: 20px 0;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .changelog-section {
    padding: 40px 0 60px;
  }

  .changelog-list::before {
    left: 16px;
  }

  .changelog-item {
    margin-left: 40px;
  }

  .changelog-item::before {
    left: -30px;
    width: 12px;
    height: 12px;
  }

  .changelog-header {
    padding: 16px 18px 0;
    gap: 8px;
  }

  .changelog-date {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }

  .changelog-title {
    font-size: 1.15rem;
    margin: 8px 18px 6px;
  }

  .changelog-excerpt {
    font-size: 0.9rem;
    margin: 0 18px 10px;
  }

  .changelog-preview {
    margin: 8px 18px 12px;
  }

  .changelog-footer {
    padding: 12px 18px;
  }

  .no-results {
    margin-left: 40px;
  }
}

@media (max-width: 480px) {
  .changelog-filters {
    padding: 16px 0;
  }

  .search-box input {
    padding: 12px 14px 12px 42px;
    font-size: 16px;
  }

  .changelog-section {
    padding: 32px 0 48px;
  }

  .changelog-list::before {
    display: none;
  }

  .changelog-item {
    margin-left: 0;
  }

  .changelog-item::before {
    display: none;
  }

  .changelog-version-badge,
  .changelog-type-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .changelog-title {
    font-size: 1.1rem;
  }

  .changelog-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .no-results {
    margin-left: 0;
  }
}
/* ===================================
   CHANGELOG POST - MODERN DESIGN
   =================================== */

.changelog-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 60vh;
}

/* Loading & Error States */
.loading-state,
.error-state {
  text-align: center;
  padding: 80px 20px;
}

.loading-state i,
.error-state i {
  color: #0A4EA0;
  margin-bottom: 24px;
}

.error-state h2 {
  color: #1a1a2e;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.error-state p {
  color: #64748b;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Post Card */
.changelog-post {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid rgba(10, 78, 160, 0.06);
}

/* Post Header */
.post-header {
  padding: 40px 44px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #fdfdff 0%, #f8fafd 100%);
}

.back-button {
  background: transparent;
  border: 2px solid #e4e8ef;
  color: #4a5568;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  border-color: #0A4EA0;
  color: #0A4EA0;
  background: rgba(10, 78, 160, 0.04);
  gap: 12px;
}

.post-header h1 {
  font-size: 2.2rem;
  color: #1a1a2e;
  margin: 0 0 20px 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565c0 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(10, 78, 160, 0.25);
}

.post-meta .date,
.post-meta .author {
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.post-meta i {
  color: #0A4EA0;
  font-size: 0.85rem;
}

.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.module-tag {
  background: #eef2f7;
  color: #4a5568;
}

.type-tag {
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Post Content - Rich text from TipTap */
.post-content {
  padding: 44px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: #1a1a2e;
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 1.85rem;
  border-bottom: 3px solid #0A4EA0;
  padding-bottom: 12px;
}

.post-content h2 {
  font-size: 1.55rem;
  color: #0A4EA0;
}

.post-content h3 {
  font-size: 1.3rem;
}

.post-content h4 {
  font-size: 1.15rem;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
  margin: 18px 0;
  padding-left: 28px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content li::marker {
  color: #0A4EA0;
}

.post-content code {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
  font-size: 0.9em;
  color: #0A4EA0;
  border: 1px solid #e2e8f0;
}

.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  border: none;
}

.post-content blockquote {
  border-left: 4px solid #0A4EA0;
  padding: 16px 20px;
  margin: 24px 0;
  color: #4a5568;
  font-style: italic;
  background: #f8fafd;
  border-radius: 0 10px 10px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-content a {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(10, 78, 160, 0.2);
  transition: border-color 0.3s;
}

.post-content a:hover {
  border-bottom-color: #0A4EA0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.post-content th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0A4EA0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.post-content hr {
  border: none;
  border-top: 2px solid #f1f5f9;
  margin: 40px 0;
}

/* Post Footer */
.post-footer {
  padding: 28px 44px;
  border-top: 1px solid #f1f5f9;
  background: #fcfcfd;
  display: flex;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(10, 78, 160, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.35);
}

/* Changelog Navigation */
.changelog-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  border: 2px solid #e4e8ef;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.nav-item:not(.disabled):hover {
  border-color: #0A4EA0;
  background: #f8fafd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.1);
}

.nav-item.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  border-style: dashed;
}

.nav-previous {
  text-align: right;
}

.nav-previous .nav-arrow {
  order: -1;
}

.nav-next {
  text-align: left;
}

.nav-arrow {
  font-size: 1.3rem;
  color: #0A4EA0;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-item:not(.disabled):hover .nav-arrow {
  transform: translateX(4px);
}

.nav-previous:not(.disabled):hover .nav-arrow {
  transform: translateX(-4px);
}

.nav-content {
  flex: 1;
  min-width: 0;
}

.nav-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-version {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1565c0 100%);
  color: white;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .changelog-post-container {
    padding: 32px 16px 60px;
  }

  .post-header {
    padding: 28px 24px;
  }

  .post-content {
    padding: 28px 24px;
  }

  .post-footer {
    padding: 24px;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h1 {
    font-size: 1.5rem;
  }

  .post-content h2 {
    font-size: 1.35rem;
  }

  .post-content h3 {
    font-size: 1.15rem;
  }

  .changelog-navigation {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-item {
    padding: 18px;
    gap: 14px;
  }

  .nav-item h3 {
    font-size: 1rem;
  }

  .nav-arrow {
    font-size: 1.1rem;
  }
}/* Public Page Styles */
.public-page {
  min-height: 100vh;
  background: #ffffff;
}

/* Loading State */
.page-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Not Found */
.page-not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  text-align: center;
  padding: 2rem;
}

.not-found-content h1 {
  font-size: 8rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.not-found-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.not-found-content p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  opacity: 0.9;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: white;
  color: #0A4EA0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-back-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 100px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  opacity: 1;
}

.hero-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Content Section */
.page-content-section {
  padding: 80px 0;
  background: white;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.markdown-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.content-h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #0A4EA0;
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1rem;
}

.content-h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0A4EA0, #002b5e);
  border-radius: 2px;
}

.content-h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #002b5e;
  margin: 2.5rem 0 1.25rem;
  line-height: 1.4;
}

.content-h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0A4EA0;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

.content-paragraph {
  margin: 1.5rem 0;
  color: #444;
}

.content-list {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content-list.ordered {
  list-style: decimal;
}

.content-list-item {
  margin: 0.75rem 0;
  color: #444;
  line-height: 1.8;
}

.content-list-item::marker {
  color: #0A4EA0;
  font-weight: 600;
}

.content-blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.05), rgba(0, 43, 94, 0.05));
  border-left: 4px solid #0A4EA0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #555;
}

.content-link {
  color: #0A4EA0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.content-link:hover {
  border-bottom-color: #0A4EA0;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
.page-footer {
  position: relative;
  background: #1a1a1a;
  color: white;
  padding: 80px 0 40px;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(10, 78, 160, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 43, 94, 0.1) 0%, transparent 50%);
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #0A4EA0;
  border-color: #0A4EA0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 78, 160, 0.3);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0A4EA0;
  transform: translateX(5px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #aaa;
  line-height: 1.6;
}

.footer-contact li svg {
  color: #0A4EA0;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #666;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .content-h1 {
    font-size: 2.25rem;
  }

  .content-h2 {
    font-size: 1.875rem;
  }

  .content-h3 {
    font-size: 1.5rem;
  }

  .markdown-content {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Public Technology Page */
.public-technology {
  min-height: 100vh;
  background: #ffffff;
}

/* Tech Sections */
.tech-section {
  padding: 60px 0;
}

.tech-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-icon {
  font-size: 48px;
  color: #0A4EA0;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 18px;
  color: #6c757d;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Intro Section */
.intro-section {
  background: #f8f9fa;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 25px;
}

.intro-text strong {
  color: #0A4EA0;
  font-weight: 700;
}

.intro-cta {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

.intro-cta a {
  color: #0A4EA0;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.intro-cta a:hover {
  color: #002b5e;
}

/* Phobos IA Section */
.phobos-ia-section {
  background: #ffffff;
}

.frequency-management h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
}

.frequency-management > p {
  font-size: 17px;
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.frequency-management h4 {
  font-size: 22px;
  font-weight: 700;
  color: #0A4EA0;
  margin: 40px 0 30px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.benefit-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.1);
  transform: translateY(-5px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.benefit-card h5 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.phobos-tagline {
  text-align: center;
  font-size: 20px;
  color: #0A4EA0;
  font-weight: 700;
  margin-top: 30px;
}

/* Alien Tech Section */
.alien-tech-section {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
}

.alien-tech-section .section-header h2 {
  color: #fff;
}

.alien-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.alien-tech-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 35px;
  text-align: center;
  transition: all 0.3s ease;
}

.alien-tech-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.alien-tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.alien-tech-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.alien-tech-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* Alerts and Support Section */
.alerts-support-section {
  background: #f8f9fa;
}

.alerts-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.alert-support-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 35px;
  transition: all 0.3s ease;
}

.alert-support-card:hover {
  border-color: #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.1);
  transform: translateY(-5px);
}

.alert-support-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.alert-support-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.alert-support-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Training Section */
.training-section {
  background: #fff;
}

.training-content {
  margin-top: 40px;
}

.training-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.training-feature {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.training-feature:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.training-feature svg {
  font-size: 48px;
  color: #0A4EA0;
  margin-bottom: 15px;
}

.training-feature h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.training-feature p {
  font-size: 15px;
  color: #666;
}

/* AI Transformation Section */
.ai-transformation-section {
  background: linear-gradient(135deg, #002b5e, #0A4EA0);
  color: #fff;
  text-align: center;
}

.ai-transformation-section .section-icon {
  color: #fff;
}

.ai-transformation-section .section-header h2 {
  color: #fff;
}

.ai-transformation-section .section-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 19px;
}

/* Pointing Methods Section */
.pointing-methods-section {
  background: #f8f9fa;
}

.pointing-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.pointing-method {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.pointing-method:hover {
  border-color: #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.15);
  transform: translateY(-5px);
}

.pointing-method svg {
  font-size: 48px;
  color: #0A4EA0;
  margin-bottom: 15px;
}

.pointing-method h4 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.pointing-method p {
  font-size: 14px;
  color: #666;
}

/* Admission Section */
.admission-section {
  background: #fff;
}

.admission-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.admission-feature {
  background: #f8f9fa;
  border-left: 4px solid #0A4EA0;
  padding: 35px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.admission-feature:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.admission-feature svg {
  font-size: 42px;
  color: #0A4EA0;
  margin-bottom: 15px;
}

.admission-feature h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.admission-feature p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Quick Management Section */
.quick-management-section {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  text-align: center;
}

.quick-management-section .section-icon {
  color: #fff;
}

.quick-management-section .section-header h2 {
  color: #fff;
}

.quick-management-section .section-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
}

/* ERP Section */
.erp-section {
  background: #f8f9fa;
}

.erp-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.erp-logo-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.erp-logo-card:hover {
  border-color: #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.1);
  transform: translateY(-5px);
}

.erp-logo-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #0A4EA0;
}

.erp-logo-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Growth Section */
.growth-section {
  background: #fff;
}

.growth-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.growth-feature-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 35px;
  transition: all 0.3s ease;
}

.growth-feature-card:hover {
  background: #fff;
  border-color: #0A4EA0;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.1);
  transform: translateY(-5px);
}

.growth-feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.growth-feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.growth-feature-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Experience Section */
.experience-section {
  background: linear-gradient(135deg, #002b5e, #0A4EA0);
  color: #fff;
}

.experience-section .section-icon {
  color: #fff;
}

.experience-section .section-header h2 {
  color: #fff;
}

.experience-content {
  text-align: center;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.stat-item {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.experience-description {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Demo Section */
.demo-section {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.demo-section .section-header h2 {
  color: #fff;
}

.demo-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 40px;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: #fff;
  color: #0A4EA0;
}

.cta-button.primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-description {
    font-size: 16px;
  }

  .section-icon {
    font-size: 38px;
  }

  .benefits-grid,
  .alien-tech-grid,
  .alerts-support-grid,
  .training-features,
  .pointing-methods-grid,
  .admission-features,
  .erp-logos-grid,
  .growth-features-grid,
  .experience-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-text,
  .intro-cta {
    font-size: 16px;
  }

  .frequency-management h3 {
    font-size: 22px;
  }

  .frequency-management > p {
    font-size: 15px;
  }

  .stat-number {
    font-size: 42px;
  }

  .stat-label {
    font-size: 16px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 16px;
  }
}
/* ==================== PUBLIC JOURNEY PAGE ==================== */

.public-journey-page {
  min-height: 100vh;
  background: #f8f9fa;
}

/* ==================== JOURNEY SECTIONS ==================== */

.journey-section {
  padding: 60px 0;
}

.journey-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.journey-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.journey-section .section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.journey-section .section-header p {
  font-size: 16px;
  color: #6c757d;
}

/* ==================== VIDEO SECTION ==================== */

.video-section {
  background: #fff;
  padding: 50px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.video-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.video-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.video-highlights {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
}

.highlight-item svg {
  font-size: 20px;
  color: #0A4EA0;
}

.highlight-item span {
  font-weight: 500;
}

.video-player {
  position: relative;
}

.video-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #fff;
  aspect-ratio: 16/9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  padding: 40px 20px;
}

.video-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.video-placeholder p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* ==================== STORY SECTION ==================== */

.story-section {
  background: #fff;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-paragraph {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 25px;
  text-align: justify;
}

.story-highlight {
  font-size: 20px;
  font-weight: 700;
  color: #0A4EA0;
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.1), rgba(0, 43, 94, 0.05));
  border-radius: 12px;
  border-left: 4px solid #0A4EA0;
}

/* ==================== MVV SECTIONS (Mission, Vision, Values) ==================== */

.mission-section,
.vision-section {
  background: #f8f9fa;
}

.mvv-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.mvv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
}

.mvv-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.mvv-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* ==================== VALUES SECTION ==================== */

.values-section {
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(10, 78, 160, 0.15);
  border-color: #0A4EA0;
}

.value-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  text-align: justify;
}

/* ==================== EXPERIENCE SECTION ==================== */

.experience-section {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  text-align: center;
}

.experience-section .section-header h2 {
  color: #fff;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.experience-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* ==================== DEMO SECTION ==================== */

.demo-section {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.95), rgba(0, 43, 94, 0.95));
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

.demo-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 40px;
}

/* Exceção para textos do formulário não ficarem brancos */
.parallax-section.cta-parallax .phobos-form-label,
.cta-parallax .phobos-form-label,
.demo-section .phobos-form-label,
.phobos-form-label,
.cta-parallax h3,
.cta-parallax p,
.demo-section .wizard-step h3,
.demo-section .wizard-step p {
  color: #1f2937 !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .video-text h2 {
    font-size: 24px;
  }

  .video-text p {
    font-size: 14px;
  }


  .journey-section {
    padding: 40px 0;
  }

  .journey-section .section-header h2 {
    font-size: 26px;
  }

  .journey-section .section-header p {
    font-size: 14px;
  }

  .video-icon {
    font-size: 48px;
  }

  .video-placeholder p {
    font-size: 18px;
  }

  .story-paragraph {
    font-size: 15px;
    text-align: left;
  }

  .story-highlight {
    font-size: 18px;
    padding: 20px;
  }

  .mvv-card {
    padding: 30px 20px;
  }

  .mvv-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .mvv-card h2 {
    font-size: 24px;
  }

  .mvv-card p {
    font-size: 15px;
    text-align: left;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 25px;
  }

  .value-card p {
    text-align: left;
  }

  .experience-stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .experience-description {
    font-size: 15px;
  }

  .demo-section {
    padding: 60px 0;
  }

  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .journey-section .section-header h2 {
    font-size: 22px;
  }

  .stat-number {
    font-size: 32px;
  }

  .value-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .value-card h3 {
    font-size: 18px;
  }
}
/* ==================== PUBLIC CONTACT PAGE ==================== */

.public-contact {
  min-height: 100vh;
  background: #f8f9fa;
}

/* ==================== CONTACT SECTION ==================== */

.contact-section {
  padding: 60px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

/* ==================== FORM ==================== */

.contact-form-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
  text-align: center;
  margin-bottom: 35px;
}

.form-icon {
  font-size: 48px;
  color: #0A4EA0;
  margin-bottom: 15px;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 15px;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label svg {
  font-size: 14px;
  color: #0A4EA0;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ==================== INFO ==================== */

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.info-icon svg {
  font-size: 22px;
  color: #fff;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.info-card a {
  color: #0A4EA0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #002b5e;
  text-decoration: underline;
}

.social-card {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
}

.social-card h3 {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ==================== MAP SECTION ==================== */

.map-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: #666;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.map-container iframe {
  display: block;
}

/* ==================== DEMO CTA ==================== */

.demo-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  position: relative;
  overflow: hidden;
}

.demo-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.demo-cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-header {
  text-align: center;
  margin-bottom: 50px;
}

.cta-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.cta-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

/* Fix for demo form inside CTA */
.demo-cta-section .phobos-form-label,
.demo-cta-section .wizard-step h3,
.demo-cta-section .wizard-step p {
  color: #1f2937 !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-section,
  .map-section {
    padding: 40px 0;
  }

  .demo-cta-section {
    padding: 60px 0;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .cta-header h2 {
    font-size: 28px;
  }

  .cta-header p {
    font-size: 16px;
  }

  .map-container iframe {
    height: 350px;
  }
}
.public-plans-page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

/* Override PublicPageHeader padding for plans page */
.public-plans-page .public-page-header {
  padding: 100px 20px;
}

/* Intro Section */
.plans-intro-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.intro-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #f59e0b 100%);
}

.intro-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: #475569;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .intro-box {
    padding: 32px 24px;
  }
  
  .intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
  }
}

/* Benefits Section */
.benefits-section {
  padding: 80px 20px;
  background: white;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.benefit-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.benefit-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Plans Section */
.plans-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.plans-container {
  max-width: 1400px;
  margin: 0 auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Plan Card */
.plan-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--plan-color);
}

.plan-highlighted {
  border-color: var(--plan-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.plan-highlighted:hover {
  transform: scale(1.02) translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Plan Header */
.plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-name {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.plan-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 1rem;
}

/* Video Section */
.plan-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #f1f5f9;
}

.plan-video-iframe {
  width: 100%;
  height: 100%;
}

.plan-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.plan-video-placeholder:hover {
  transform: scale(1.02);
}

.plan-video-placeholder:hover .video-play-button {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.95);
}

.video-play-button {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 24px;
}

.video-text {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Features */
.plan-features {
  flex: 1;
  margin-bottom: 32px;
}

.features-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Button */
.plan-cta-button {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.plan-cta-button:active {
  transform: translateY(0);
}

/* CTA Section */
.plans-cta-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 80px 20px;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: white;
  color: #1e3a8a;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-demo-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-demo-button:active {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plan-highlighted {
    transform: scale(1);
  }

  .plan-highlighted:hover {
    transform: translateY(-8px);
  }

  .plan-name {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1.125rem;
  }

  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .video-play-button svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .plans-section {
    padding: 60px 20px;
  }

  .plan-card {
    padding: 32px 24px;
  }

  .plan-icon {
    width: 56px;
    height: 56px;
  }

  .plan-name {
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

/* Comparison Section */
.comparison-section {
  padding: 80px 20px;
  background: white;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 800px;
}

.comparison-table thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
}

.comparison-table th {
  padding: 24px 16px;
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
}

.comparison-table th.feature-column {
  text-align: left;
  min-width: 250px;
}

.comparison-table th.highlighted {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  position: relative;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background-color: #f8fafc;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 20px 16px;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}

.comparison-table .check-icon {
  width: 24px;
  height: 24px;
  color: #10b981;
  margin: 0 auto;
  display: block;
}

.comparison-table td.highlighted {
  background-color: #fef3c7;
}

/* Responsive Design for Comparison Table */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin-top: 32px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 12px;
    font-size: 0.875rem;
  }

  .comparison-table th.feature-column {
    min-width: 200px;
  }
}
/* ===================================
   PHOBOS FAQ PAGE
   =================================== */

.public-faq-page {
  min-height: 100vh;
  background: #f8f9fa;
}

.faq-page-content {
  padding: 80px 0;
}

/* ===================================
   SEARCH SECTION
   =================================== */

.faq-search-section {
  margin-bottom: 48px;
}

.faq-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  z-index: 1;
}

.faq-search-input {
  width: 100%;
  height: 60px;
  padding: 0 24px 0 56px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  transition: all 0.3s ease;
}

.faq-search-input:focus {
  outline: none;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.1);
}

.faq-search-input::placeholder {
  color: #94a3b8;
}

/* ===================================
   CATEGORIES
   =================================== */

.faq-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.category-btn:hover {
  border-color: #0A4EA0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.15);
}

.category-btn.active {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border-color: #0A4EA0;
  color: white;
}

.category-icon {
  font-size: 1.25rem;
}

.category-name {
  font-weight: 600;
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(10, 78, 160, 0.1);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.category-btn.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ===================================
   FAQ CATEGORIES LIST
   =================================== */

.faq-categories-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-category-section {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2rem;
  font-weight: 700;
  color: #0A4EA0;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.category-icon-large {
  font-size: 2.5rem;
}

/* ===================================
   FAQ ITEMS
   =================================== */

.faq-items-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-accordion-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-accordion-item.open {
  border-color: #0A4EA0;
  box-shadow: 0 4px 20px rgba(10, 78, 160, 0.15);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-accordion-header:hover {
  background: #f8f9fa;
}

.faq-accordion-item.open .faq-accordion-header {
  background: #f0f7ff;
}

.faq-question-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.3s ease;
}

.faq-accordion-item.open .faq-toggle-icon {
  background: #0A4EA0;
  color: white;
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-accordion-item.open .faq-accordion-content {
  max-height: 500px;
}

.faq-answer-text {
  padding: 0 32px 32px;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* ===================================
   NO RESULTS
   =================================== */

.faq-no-results {
  text-align: center;
  padding: 80px 24px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.no-results-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 24px;
}

.faq-no-results h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.faq-no-results p {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   CONTACT CTA
   =================================== */

.faq-contact-cta {
  margin-top: 80px;
  padding: 64px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(10, 78, 160, 0.3);
}

.faq-cta-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.faq-cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.faq-contact-btn {
  padding: 16px 48px;
  font-size: 1.125rem;
  font-weight: 600;
  background: white;
  color: #0A4EA0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .faq-page-content {
    padding: 48px 0;
  }

  .faq-search-section {
    margin-bottom: 32px;
  }

  .faq-search-input {
    height: 52px;
    font-size: 0.95rem;
  }

  .faq-categories {
    gap: 8px;
    margin-bottom: 48px;
  }

  .category-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .category-icon {
    font-size: 1.125rem;
  }

  .faq-categories-list {
    gap: 48px;
  }

  .faq-category-section {
    padding: 32px 24px;
  }

  .faq-category-title {
    font-size: 1.5rem;
    gap: 12px;
    margin-bottom: 24px;
  }

  .category-icon-large {
    font-size: 2rem;
  }

  .faq-accordion-header {
    padding: 20px 24px;
    gap: 16px;
  }

  .faq-question-text {
    font-size: 1rem;
  }

  .faq-toggle-icon {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }

  .faq-answer-text {
    padding: 0 24px 24px;
    font-size: 0.95rem;
  }

  .faq-contact-cta {
    margin-top: 48px;
    padding: 40px 24px;
  }

  .faq-cta-content h3 {
    font-size: 1.5rem;
  }

  .faq-cta-content p {
    font-size: 1rem;
  }

  .faq-contact-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-categories {
    flex-direction: column;
  }

  .category-btn {
    width: 100%;
    justify-content: space-between;
  }

  .faq-category-title {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   FAQ TOTAL INFO
   =================================== */

.faq-total-info {
  text-align: center;
  margin-bottom: 48px;
}

.faq-total-info p {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
}

.faq-total-info strong {
  color: #0A4EA0;
  font-size: 1.25rem;
}

/* ===================================
   TOP PERGUNTAS SECTION
   =================================== */

.faq-top-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0;
  margin-bottom: 60px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
}

.faq-top-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  text-align: center;
}

.faq-top-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin: 0 0 40px 0;
  font-weight: 500;
}

.faq-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.faq-top-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.faq-top-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0A4EA0 0%, #002b5e 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.faq-top-card:hover {
  border-color: #0A4EA0;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.2);
  transform: translateY(-8px);
}

.faq-top-card:hover::before {
  transform: scaleX(1);
}

.faq-top-rank {
  display: inline-block;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(10, 78, 160, 0.3);
}

.faq-top-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  line-height: 1.5;
  word-break: break-word;
}

.faq-top-views {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
}

.views-icon {
  font-size: 1.2rem;
}

.views-count {
  color: #0A4EA0;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-top-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .faq-top-title {
    font-size: 1.6rem;
  }

  .faq-top-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .faq-top-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .faq-top-card {
    padding: 20px;
  }

  .faq-top-question {
    font-size: 1rem;
  }
}

/* Logos dos clientes */
.faq-clientes {
  margin: 20px 0 60px;
}

.faq-clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.faq-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-cliente:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.14);
}

.faq-cliente img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 576px) {
  .faq-clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .faq-cliente {
    height: 90px;
    padding: 12px;
  }
}
/* ===================================
   PHOBOS CASES PAGE - COMPLETE REWRITE
   =================================== */

.phobos-cases-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

.phobos-cases-main {
  width: 100%;
}

.phobos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===================================
   CLIENTS SHOWCASE SECTION
   =================================== */

.phobos-clients-showcase {
  width: 100%;
  padding: 80px 0;
  background: #f5f7fa;
}

.phobos-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  width: 100%;
}

.phobos-client-item {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.phobos-client-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.15);
}

.phobos-client-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phobos-client-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ===================================
   METRICS SECTION
   =================================== */

.phobos-metrics-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  overflow: hidden;
}

.phobos-metrics-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A4EA0 0%, #003d82 100%);
  z-index: 1;
}

.phobos-metrics-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.phobos-metrics-content {
  position: relative;
  z-index: 3;
}

.phobos-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  width: 100%;
}

.phobos-metric-box {
  text-align: center;
  color: white;
}

.phobos-metric-number {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.phobos-metric-text {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.95;
  display: block;
}

/* ===================================
   CTA SECTION
   =================================== */

.phobos-cta-section {
  width: 100%;
  padding: 80px 0;
  background: #ffffff;
}

.phobos-cta-box {
  background: linear-gradient(135deg, #0A4EA0 0%, #003d82 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(10, 78, 160, 0.2);
}

.phobos-cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 16px 0;
  padding: 0;
}

.phobos-cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px 0;
  padding: 0;
  line-height: 1.6;
}

.phobos-cta-button {
  display: inline-block;
  padding: 16px 48px;
  font-size: 1.125rem;
  font-weight: 600;
  background: white;
  color: #0A4EA0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.phobos-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: #0A4EA0;
}

.phobos-cta-button:active {
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .phobos-clients-showcase {
    padding: 60px 0;
  }

  .phobos-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .phobos-client-item {
    height: 100px;
    padding: 15px;
  }

  .phobos-metrics-section {
    padding: 60px 0;
  }

  .phobos-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
  }

  .phobos-metric-number {
    font-size: 2.5rem;
  }

  .phobos-metric-text {
    font-size: 1rem;
  }

  .phobos-cta-section {
    padding: 60px 0;
  }

  .phobos-cta-box {
    padding: 40px 24px;
  }

  .phobos-cta-title {
    font-size: 1.75rem;
  }

  .phobos-cta-subtitle {
    font-size: 1rem;
  }

  .phobos-cta-button {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .phobos-clients-showcase {
    padding: 40px 0;
  }

  .phobos-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
  }

  .phobos-client-item {
    height: 80px;
    padding: 10px;
  }

  .phobos-metrics-section {
    padding: 40px 0;
  }

  .phobos-metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .phobos-metric-number {
    font-size: 2rem;
  }

  .phobos-metric-text {
    font-size: 0.95rem;
  }

  .phobos-cta-section {
    padding: 40px 0;
  }

  .phobos-cta-box {
    padding: 30px 16px;
  }

  .phobos-cta-title {
    font-size: 1.5rem;
  }

  .phobos-cta-subtitle {
    font-size: 0.95rem;
  }

  .phobos-cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
/* ===================================
   PHOBOS PARTNER PAGE
   =================================== */

.phobos-partner-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

.phobos-partner-section {
  width: 100%;
  padding: 80px 0;
  background: #f8f9fa;
}

.phobos-partner-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===================================
   PARTNER GRID LAYOUT
   =================================== */

.phobos-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ===================================
   FORM WRAPPER
   =================================== */

.phobos-partner-form-wrapper {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.phobos-partner-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.phobos-partner-form-icon {
  font-size: 3rem;
  color: #0A4EA0;
  margin-bottom: 16px;
  display: block;
}

.phobos-partner-form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.phobos-partner-form-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* ===================================
   PROGRESS BAR
   =================================== */

.phobos-partner-progress {
  margin-bottom: 40px;
}

.phobos-partner-progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.phobos-partner-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0A4EA0 0%, #003d82 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.phobos-partner-progress-text {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  font-weight: 500;
}

/* ===================================
   FORM STYLES
   =================================== */

.phobos-partner-form {
  width: 100%;
}

.phobos-partner-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phobos-partner-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
}

.phobos-partner-form-group {
  margin-bottom: 24px;
}

.phobos-partner-form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.phobos-partner-form-group input,
.phobos-partner-form-group select,
.phobos-partner-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.phobos-partner-form-group input:focus,
.phobos-partner-form-group select:focus,
.phobos-partner-form-group textarea:focus {
  outline: none;
  border-color: #0A4EA0;
  background: white;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.phobos-partner-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   BUTTONS
   =================================== */

.phobos-partner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.phobos-partner-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phobos-partner-btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #003d82 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(10, 78, 160, 0.3);
}

.phobos-partner-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 78, 160, 0.4);
}

.phobos-partner-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.phobos-partner-btn-secondary {
  background: white;
  color: #0A4EA0;
  border: 2px solid #0A4EA0;
}

.phobos-partner-btn-secondary:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
}

/* ===================================
   SUCCESS SCREEN
   =================================== */

.phobos-partner-success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.phobos-partner-success-checkmark {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.phobos-partner-checkmark {
  width: 100%;
  height: 100%;
}

.phobos-partner-checkmark-circle {
  stroke: #0A4EA0;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.phobos-partner-checkmark-check {
  stroke: #0A4EA0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.phobos-partner-success-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.phobos-partner-success-message {
  font-size: 1.125rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ===================================
   BENEFITS WRAPPER
   =================================== */

.phobos-partner-benefits-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.phobos-partner-benefits-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
}

/* ===================================
   BENEFITS LIST
   =================================== */

.phobos-partner-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phobos-partner-benefit-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #0A4EA0;
  transition: all 0.3s ease;
}

.phobos-partner-benefit-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.15);
}

.phobos-partner-benefit-icon {
  font-size: 2.5rem;
  color: #0A4EA0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(10, 78, 160, 0.1);
  border-radius: 12px;
}

.phobos-partner-benefit-content {
  flex: 1;
}

.phobos-partner-benefit-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.phobos-partner-benefit-content p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* ===================================
   HIGHLIGHT BOX
   =================================== */

.phobos-partner-highlight {
  padding: 32px;
  background: linear-gradient(135deg, #0A4EA0 0%, #003d82 100%);
  border-radius: 12px;
  color: white;
  text-align: center;
}

.phobos-partner-highlight h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.phobos-partner-highlight p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .phobos-partner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phobos-partner-form-wrapper {
    padding: 32px;
  }

  .phobos-partner-benefits-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .phobos-partner-section {
    padding: 60px 0;
  }

  .phobos-partner-form-wrapper {
    padding: 24px;
  }

  .phobos-partner-form-header h2 {
    font-size: 1.5rem;
  }

  .phobos-partner-form-icon {
    font-size: 2.5rem;
  }

  .phobos-partner-step h3 {
    font-size: 1.125rem;
  }

  .phobos-partner-buttons {
    flex-direction: column;
  }

  .phobos-partner-btn {
    width: 100%;
  }

  .phobos-partner-benefit-item {
    padding: 20px;
  }

  .phobos-partner-benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .phobos-partner-highlight {
    padding: 24px;
  }

  .phobos-partner-highlight h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .phobos-partner-container {
    padding: 0 16px;
  }

  .phobos-partner-form-wrapper {
    padding: 20px;
  }

  .phobos-partner-form-header h2 {
    font-size: 1.25rem;
  }

  .phobos-partner-form-icon {
    font-size: 2rem;
  }

  .phobos-partner-form-group input,
  .phobos-partner-form-group select,
  .phobos-partner-form-group textarea {
    padding: 10px 12px;
    font-size: 16px;
  }

  .phobos-partner-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .phobos-partner-benefits-title {
    font-size: 1.5rem;
  }

  .phobos-partner-benefit-item {
    padding: 16px;
    gap: 16px;
  }

  .phobos-partner-benefit-content h4 {
    font-size: 1rem;
  }

  .phobos-partner-benefit-content p {
    font-size: 0.9rem;
  }
}
/* ===================================
   USERS PAGE - PREMIUM REDESIGN
   =================================== */

.users-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Section */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: #64748b;
  font-size: 0.9375rem;
}

.page-header .btn-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.2);
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 78, 160, 0.3);
}

/* =========================================
   PREMIUM FILTER BAR
   ========================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.08);
}

/* -- Search Row (gradient top) -- */
.filter-bar__search {
  display: flex;
  align-items: center;
  flex: 1 1 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  gap: 0.875rem;
  position: relative;
}

.filter-bar__search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  flex-shrink: 0;
}

.filter-bar__search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9375rem;
  height: 44px;
  padding: 0 1rem;
  outline: none;
  transition: all 0.25s ease;
}

.filter-bar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.filter-bar__search-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.filter-bar__search-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.filter-bar__search-clear:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* -- Bottom Row (white) -- */
.filter-bar__group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  flex: 1;
}

.filter-bar__group:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.filter-bar__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Role pill tabs */
.filter-bar__tabs {
  display: flex;
  gap: 4px;
}

.filter-bar__tab {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.filter-bar__tab:hover {
  border-color: #0A4EA0;
  color: #0A4EA0;
  background: #eff6ff;
}

.filter-bar__tab--active {
  background: linear-gradient(135deg, #0A4EA0, #002b5e) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(10, 78, 160, 0.25);
}

/* Status chips */
.filter-bar__chips {
  display: flex;
  gap: 4px;
}

.filter-bar__chip {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-bar__chip--all {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.filter-bar__chip--all.filter-bar__chip--active {
  background: #0f172a;
  color: #fff;
  border-color: transparent;
}

.filter-bar__chip--active_item,
.filter-bar__chip--active[class*="active"] {
  background: #ecfdf5;
  color: #059669;
  border-color: #10b981;
}

.filter-bar__chip--active:not(.filter-bar__chip--inactive):not(.filter-bar__chip--all) {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #10b981 !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.2);
}

.filter-bar__chip--inactive {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.filter-bar__chip--inactive.filter-bar__chip--active {
  background: #e11d48 !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
}

/* Result counter */
.filter-bar__count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-left: 1px solid #f1f5f9;
  min-width: 90px;
  flex-shrink: 0;
}

.filter-bar__count-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0A4EA0, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.filter-bar__count-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Mobile filter bar */
@media (max-width: 768px) {
  .filter-bar__group {
    flex: 1 1 50%;
    border-right: none;
    border-top: 1px solid #f1f5f9;
  }

  .filter-bar__count {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 0.5rem;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    justify-content: center;
  }
}

/* Table Container */
.table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.users-table thead {
  background: #f8fafc;
}

.users-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f1f5f9;
}

.users-table tbody tr {
  transition: all 0.2s ease;
}

.users-table tbody tr:hover {
  background: #f1f5f9/50;
}

.users-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.users-table tr:last-child td {
  border-bottom: none;
}

/* User Identity Cell */
.user-name {
  font-weight: 600;
  color: #0f172a;
}

.no-data {
  text-align: center;
  padding: 4rem 2rem !important;
  color: #94a3b8;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #10b98120;
}

.status-badge.inactive {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #f43f5e20;
}

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  gap: 0.4rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Action Buttons Grid */
.action-buttons {
  display: flex;
  gap: 0.625rem;
}

.btn-action {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-edit:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.btn-password:hover {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
  transform: translateY(-1px);
}

.btn-toggle:hover {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
  transform: translateY(-1px);
}

.btn-delete:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .filters-section {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .users-page {
    padding: 1.25rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .page-header button {
    width: 100%;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box,
  .filter-select {
    width: 100% !important;
  }

  .action-buttons {
    flex-wrap: wrap;
  }
}

/* =========================================
   MODAL TABS AND EXPANDED LAYOUT
   ========================================= */

.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gap-4 {
  gap: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}

/* Modal Tab Switcher */
.modal-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 1.5rem;
  gap: 0.5rem;
}

.modal-tab {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  outline: none;
}

.modal-tab:hover {
  color: #0A4EA0;
}

.modal-tab.active {
  color: #0A4EA0;
}

.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0A4EA0;
  border-radius: 3px 3px 0 0;
}

/* Avatar Uploader */
.avatar-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  gap: 0.5rem;
}

.avatar-preview {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.15);
  border: 3px solid #fff;
  outline: 2px solid #e2e8f0;
  background: #f1f5f9;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0A4EA0;
  background: #eff6ff;
}

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 78, 160, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.avatar-preview:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.avatar-tip {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Custom Textarea */
.ag-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: all 0.25s ease;
  resize: vertical;
}

.ag-textarea:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.08);
}

/* Timeline Styles */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.timeline {
  position: relative;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Vertical line connecting timeline items */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding-left: 3rem;
}

.timeline-badge {
  position: absolute;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.timeline-item.completed .timeline-badge {
  background: #0A4EA0;
  border-color: #0A4EA0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(10, 78, 160, 0.3);
}

.timeline-item.pending .timeline-badge {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.timeline-panel {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item.completed .timeline-panel {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Tooltip arrow for panel */
.timeline-panel::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -7px;
  border-top: 7px solid transparent;
  border-right: 7px solid #e2e8f0;
  border-bottom: 7px solid transparent;
}

.timeline-panel::after {
  content: '';
  position: absolute;
  top: 13px;
  left: -6px;
  border-top: 7px solid transparent;
  border-right: 7px solid #f8fafc;
  border-bottom: 7px solid transparent;
}

.timeline-item.completed .timeline-panel::after {
  border-right-color: #fff;
}

.timeline-heading h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.timeline-heading p {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.timeline-body {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.4;
}
/* ═══════════════════════════════════════════════════════════════════════════
   PESSOAS DA PHOBOS — nova experiência (/admin/users)
   Classes com prefixo `us-`. Os blocos acima ficam para páginas que ainda
   dependem das classes genéricas (.status-badge, .btn-action, …).
   Paleta oficial: #0A4EA0 (primária) e #002b5e (profunda)
   ═══════════════════════════════════════════════════════════════════════════ */

.us-page {
  --us-primary: #0A4EA0;
  --us-deep: #002b5e;
  --us-ink: #0f172a;
  --us-ink-2: #475569;
  --us-muted: #94a3b8;
  --us-line: #e8edf4;
  --us-surface: #ffffff;

  padding: 1.75rem;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--us-ink);
  animation: us-fade 0.35s ease both;
}

@keyframes us-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.us-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.us-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.us-header p { margin: 0; font-size: 0.86rem; color: var(--us-ink-2); }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.us-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--us-line);
  background: #fff;
  color: var(--us-ink-2);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.us-btn:hover:not(:disabled) { border-color: var(--us-primary); color: var(--us-primary); background: #f5f9ff; }
.us-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.us-btn--primary {
  background: linear-gradient(135deg, var(--us-primary) 0%, var(--us-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(10, 78, 160, 0.7);
}
.us-btn--primary:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #0d5cbd 0%, #033b7d 100%);
  transform: translateY(-1px);
}
.us-btn--lg { padding: 0.7rem 1.35rem; font-size: 0.9rem; border-radius: 12px; }

/* ── Indicadores ─────────────────────────────────────────────────────────── */

.us-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.us-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--us-line);
  border-radius: 14px;
  background: var(--us-surface);
}
.us-stat > div { display: flex; flex-direction: column; min-width: 0; }
.us-stat strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.us-stat span:last-child { font-size: 0.72rem; color: var(--us-muted); font-weight: 600; }

.us-stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.us-stat--primary .us-stat-icon { background: #eff6ff; color: var(--us-primary); }
.us-stat--success .us-stat-icon { background: #ecfdf5; color: #047857; }
.us-stat--danger  .us-stat-icon { background: #fef2f2; color: #b91c1c; }
.us-stat--info    .us-stat-icon { background: #ecfeff; color: #0e7490; }
.us-stat--warning .us-stat-icon { background: #fffbeb; color: #b45309; }

/* ── Filtros ─────────────────────────────────────────────────────────────── */

.us-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--us-line);
  border-radius: 14px;
  background: var(--us-surface);
}

.us-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
}
.us-search > svg { position: absolute; left: 0.85rem; color: var(--us-muted); font-size: 0.8rem; }
.us-search input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.3rem;
  border: 1px solid var(--us-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #f8fafc;
  outline: none;
  transition: all 0.16s ease;
}
.us-search input:focus {
  background: #fff;
  border-color: var(--us-primary);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}
.us-search > button {
  position: absolute;
  right: 0.5rem;
  border: none;
  background: none;
  color: var(--us-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
}

.us-filter-group { display: flex; align-items: center; gap: 0.5rem; }
.us-filter-group > span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--us-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.us-tabs { display: flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 9px; }
.us-tabs button {
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--us-ink-2);
  cursor: pointer;
  transition: all 0.14s ease;
}
.us-tabs button:hover { color: var(--us-primary); }
.us-tabs button.is-active { background: #fff; color: var(--us-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

.us-view-toggle { display: flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 9px; }
.us-view-toggle button {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--us-muted);
  cursor: pointer;
  font-size: 0.8rem;
}
.us-view-toggle button.is-active { background: #fff; color: var(--us-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

.us-count { margin-left: auto; display: flex; align-items: baseline; gap: 0.3rem; }
.us-count strong { font-size: 1.05rem; font-weight: 800; color: var(--us-primary); }
.us-count span { font-size: 0.75rem; color: var(--us-muted); }

/* ── Cartões de pessoas ──────────────────────────────────────────────────── */

.us-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 0.9rem;
}

.us-card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem;
  border: 1px solid var(--us-line);
  border-radius: 16px;
  background: var(--us-surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.us-card:hover {
  transform: translateY(-3px);
  border-color: #cfdcee;
  box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.45);
}
.us-card.is-inactive { opacity: 0.62; background: #fafbfd; }

.us-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }

.us-card-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--us-primary);
  font-weight: 800;
  font-size: 1.05rem;
  overflow: hidden;
  flex-shrink: 0;
}
.us-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.us-card-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid #fff;
}
.us-card-dot.is-on  { background: #10b981; }
.us-card-dot.is-off { background: #94a3b8; }

.us-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.us-card-position { margin: 0 0 0.75rem; font-size: 0.76rem; color: var(--us-primary); font-weight: 600; }

.us-card-meta { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.us-card-meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--us-ink-2);
  min-width: 0;
}
.us-card-meta li > svg { color: var(--us-muted); font-size: 0.7rem; flex-shrink: 0; width: 12px; }
.us-card-meta li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.us-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.us-role svg { font-size: 0.62rem; }

.us-card-actions { display: flex; gap: 0.35rem; margin-top: auto; }
.us-card-actions button {
  flex: 1;
  height: 32px;
  border: 1px solid var(--us-line);
  border-radius: 9px;
  background: #fff;
  color: var(--us-ink-2);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.14s ease;
}
.us-card-actions button:hover { border-color: var(--us-primary); color: var(--us-primary); background: #f5f9ff; }
.us-card-actions button.is-on { color: #059669; }
.us-card-actions button.is-danger:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* ── Tabela ──────────────────────────────────────────────────────────────── */

.us-table-wrap {
  border: 1px solid var(--us-line);
  border-radius: 16px;
  background: var(--us-surface);
  overflow-x: auto;
}
.us-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 900px; }
.us-table thead th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--us-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid var(--us-line);
  white-space: nowrap;
}
.us-table tbody td { padding: 0.7rem 1rem; border-bottom: 1px solid #f4f7fb; vertical-align: middle; }
.us-table tbody tr:last-child td { border-bottom: none; }
.us-table tbody tr:hover { background: #fafcff; }
.us-table .us-card-actions { max-width: 168px; }

.us-cell-person { display: flex; align-items: center; gap: 0.65rem; }
.us-cell-person > div { display: flex; flex-direction: column; min-width: 0; }
.us-cell-person strong { font-weight: 600; }
.us-cell-person span { font-size: 0.73rem; color: var(--us-muted); }

.us-cell-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--us-primary);
  font-weight: 800;
  font-size: 0.78rem;
  overflow: hidden;
  flex-shrink: 0;
}
.us-cell-avatar img { width: 100%; height: 100%; object-fit: cover; }

.us-status { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
.us-status.is-on  { background: #ecfdf5; color: #047857; }
.us-status.is-off { background: #f1f5f9; color: #64748b; }

/* ── Vazio ───────────────────────────────────────────────────────────────── */

.us-empty {
  padding: 3.5rem 1rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fafbfd;
}
.us-empty > svg { font-size: 2.4rem; color: #cbd5e1; margin-bottom: 0.8rem; }
.us-empty h3 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; }
.us-empty p { margin: 0 0 1.1rem; font-size: 0.83rem; color: var(--us-muted); }

/* ── Modais ──────────────────────────────────────────────────────────────── */

.us-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1.25rem; }
.us-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 41, 0.62);
  backdrop-filter: blur(4px);
}

.us-wizard, .us-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: us-pop 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.us-dialog { max-width: 640px; }
.us-dialog--sm { max-width: 440px; }

@keyframes us-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.us-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.us-modal-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ── Assistente de admissão ──────────────────────────────────────────────── */

.us-wizard-head, .us-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, var(--us-primary, #0A4EA0) 0%, var(--us-deep, #002b5e) 100%);
  color: #fff;
}
.us-wizard-head h2, .us-dialog-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.us-wizard-head p { margin: 0; font-size: 0.78rem; opacity: 0.8; }
.us-dialog-head span { font-size: 0.78rem; opacity: 0.8; }
.us-dialog-person { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.us-dialog-person .us-cell-avatar { background: rgba(255, 255, 255, 0.2); color: #fff; }

.us-steps {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  border-bottom: 1px solid var(--us-line, #e8edf4);
  background: #f8fafc;
}
.us-steps li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }

.us-step-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}
.us-steps li.is-active .us-step-badge { background: #0A4EA0; color: #fff; box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.14); }
.us-steps li.is-done   .us-step-badge { background: #10b981; color: #fff; }

.us-step-text { display: flex; flex-direction: column; min-width: 0; }
.us-step-text strong { font-size: 0.78rem; font-weight: 700; color: #94a3b8; }
.us-step-text em { font-size: 0.68rem; font-style: normal; color: #cbd5e1; }
.us-steps li.is-active .us-step-text strong { color: #0A4EA0; }
.us-steps li.is-active .us-step-text em { color: #475569; }
.us-steps li.is-done .us-step-text strong { color: #047857; }

.us-wizard-body, .us-dialog-body { padding: 1.35rem 1.4rem; overflow-y: auto; flex: 1; }

.us-wizard-foot, .us-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--us-line, #e8edf4);
  background: #f8fafc;
}
.us-dialog-foot { justify-content: flex-end; }
.us-wizard-foot-right { display: flex; align-items: center; gap: 0.75rem; }
.us-step-count { font-size: 0.74rem; color: #94a3b8; font-weight: 600; }

/* ── Formulários ─────────────────────────────────────────────────────────── */

.us-form { display: flex; flex-direction: column; gap: 1.05rem; }
.us-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.us-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.us-field > label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.us-field > label svg { color: #0A4EA0; font-size: 0.72rem; }

.us-input, .us-select, .us-textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  transition: all 0.16s ease;
  box-sizing: border-box;
}
.us-textarea { resize: vertical; line-height: 1.5; }
.us-select--sm { width: auto; min-width: 140px; padding: 0.4rem 0.6rem; font-size: 0.8rem; }

.us-input:focus, .us-select:focus, .us-textarea:focus {
  background: #fff;
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}
.us-input.has-error { border-color: #dc2626; background: #fef2f2; }

.us-hint  { font-size: 0.72rem; color: #94a3b8; }
.us-error { font-size: 0.72rem; color: #b91c1c; font-weight: 600; }

/* Foto */
.us-avatar-picker { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.us-avatar-picker p { margin: 0; font-size: 0.72rem; color: #94a3b8; text-align: center; }

.us-avatar-preview {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #0A4EA0;
  font-size: 1.7rem;
  font-weight: 800;
  overflow: hidden;
}
.us-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.us-avatar-preview label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(0, 43, 94, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.us-avatar-preview:hover label,
.us-avatar-preview label:focus-within,
.us-avatar-picker.is-drop .us-avatar-preview label { opacity: 1; }
.us-avatar-picker.is-drop .us-avatar-preview { outline: 2px dashed var(--us-primary); outline-offset: 3px; }

/* Imagem arrastada em cima do colaborador na lista */
.us-card.is-drop,
.us-table tbody tr.is-drop { outline: 2px dashed var(--us-primary); outline-offset: -2px; background: #f5f9ff; }
.us-card.is-drop .us-card-avatar::after,
.us-table tbody tr.is-drop .us-cell-avatar::after {
  content: "\f030";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 43, 94, 0.72);
  color: #fff;
  font-size: 0.9rem;
}
.us-cell-avatar { position: relative; }

/* Seleção de função */
.us-role-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }

.us-role-option {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0.85rem;
  border: 1.5px solid #e8edf4;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}
.us-role-option:hover { border-color: #bfdbfe; background: #f8fbff; }
.us-role-option.is-selected {
  border-color: #0A4EA0;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}
.us-role-option strong { font-size: 0.85rem; font-weight: 700; }
.us-role-option em { font-style: normal; font-size: 0.73rem; color: #0A4EA0; font-weight: 600; }
.us-role-option p { margin: 0.15rem 0 0; font-size: 0.71rem; color: #475569; line-height: 1.45; }

.us-role-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.us-role-picker--compact .us-role-option { padding: 0.7rem; }

/* Senha */
.us-password { display: flex; gap: 0.5rem; }
.us-password .us-input { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.02em; }

.us-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 0.15rem; }
.us-meter span { height: 5px; border-radius: 999px; background: #e2e8f0; transition: background 0.2s ease; }
.us-meter span.is-on.lvl-1 { background: #dc2626; }
.us-meter span.is-on.lvl-2 { background: #d97706; }
.us-meter span.is-on.lvl-3 { background: #0A4EA0; }
.us-meter span.is-on.lvl-4 { background: #059669; }

/* ── Revisão ─────────────────────────────────────────────────────────────── */

.us-review { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.4rem; align-items: start; }

.us-badge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.6rem 1rem 1.3rem;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.5);
}
.us-badge-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
}
.us-badge-avatar {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #0A4EA0;
  font-size: 1.5rem;
  font-weight: 800;
  overflow: hidden;
  border: 3px solid #fff;
  margin-bottom: 0.3rem;
}
.us-badge-avatar img { width: 100%; height: 100%; object-fit: cover; }
.us-badge-card > strong { font-size: 0.95rem; font-weight: 700; }
.us-badge-card > em { font-style: normal; font-size: 0.77rem; color: #475569; margin-bottom: 0.3rem; }
.us-badge-card > p { margin: 0.35rem 0 0; font-size: 0.72rem; color: #94a3b8; }

.us-review-list h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.us-review-list h3:not(:first-child) { margin-top: 1.3rem; }

.us-review-list dl { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.us-review-list dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f4f7fb;
}
.us-review-list dt { font-size: 0.77rem; color: #94a3b8; }
.us-review-list dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

.us-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.us-checklist li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; color: #475569; }
.us-checklist li svg { color: #059669; font-size: 0.72rem; flex-shrink: 0; }

/* ── Conclusão ───────────────────────────────────────────────────────────── */

.us-done { padding: 2.2rem 1.8rem 1.2rem; text-align: center; }
.us-done h2 { margin: 0 0 0.45rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.us-done > p { margin: 0 auto 1.4rem; font-size: 0.85rem; color: #475569; max-width: 440px; }

.us-done-burst {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.12);
  animation: us-burst 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes us-burst {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.us-creds {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: #f8fafc;
  text-align: left;
}
.us-creds > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.us-creds span { font-size: 0.73rem; color: #94a3b8; font-weight: 600; }
.us-creds code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #002b5e;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 7px;
  padding: 0.22rem 0.55rem;
  overflow-wrap: anywhere;
}

.us-done-hint {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ── Abas do diálogo & linha do tempo ────────────────────────────────────── */

.us-dialog-tabs { display: flex; border-bottom: 1px solid #e8edf4; background: #f8fafc; }
.us-dialog-tabs button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
}
.us-dialog-tabs button:hover { color: #0A4EA0; }
.us-dialog-tabs button.is-active { color: #0A4EA0; border-bottom-color: #0A4EA0; background: #fff; }

.us-timeline { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0 0.5rem; position: relative; }
.us-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #e8edf4;
}
.us-timeline li { position: relative; display: flex; gap: 0.9rem; padding: 0.6rem 0; }
.us-timeline li > span {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.72rem;
  border: 3px solid #fff;
}
.us-timeline li.is-done > span { background: #0A4EA0; color: #fff; }
.us-timeline li > div { display: flex; flex-direction: column; gap: 1px; }
.us-timeline strong { font-size: 0.83rem; font-weight: 700; }
.us-timeline em { font-style: normal; font-size: 0.74rem; color: #0A4EA0; font-weight: 600; }
.us-timeline p { margin: 0.15rem 0 0; font-size: 0.73rem; color: #94a3b8; }

/* ── Esqueletos ──────────────────────────────────────────────────────────── */

@keyframes us-shimmer {
  0%   { background-position: -380px 0; }
  100% { background-position:  380px 0; }
}
.us-sk {
  display: block;
  border-radius: 6px;
  background: #eef2f7;
  background-image: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 380px 100%;
  background-repeat: no-repeat;
  animation: us-shimmer 1.25s ease-in-out infinite;
}
.us-sk-num    { width: 42px; height: 24px; margin-bottom: 3px; }
.us-sk-line   { height: 11px; }
.us-sk-avatar { width: 54px; height: 54px; border-radius: 16px; }

.us-card--skeleton { gap: 0.7rem; pointer-events: none; }
.us-card--skeleton:hover { transform: none; box-shadow: none; border-color: #e8edf4; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .us-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .us-page { padding: 1rem; }
  .us-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .us-count { margin-left: 0; }
  .us-review { grid-template-columns: minmax(0, 1fr); }
  .us-role-picker { grid-template-columns: minmax(0, 1fr); }
  .us-field-row { grid-template-columns: minmax(0, 1fr); }
  .us-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0.7rem 0.8rem; }
  .us-step-text { display: none; }
  .us-steps li { justify-content: center; }
  .us-wizard-foot { flex-direction: column-reverse; align-items: stretch; }
  .us-wizard-foot-right { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .us-page, .us-sk, .us-wizard, .us-dialog, .us-done-burst { animation: none; }
  .us-card:hover, .us-btn--primary:hover { transform: none; }
}

/* ── Aba Permissões Especiais ─────────────────────────────────────────────── */

.us-perm-intro {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f5f9ff;
}
.us-perm-intro > svg { color: var(--us-primary); font-size: 1.05rem; margin-top: 0.15rem; }
.us-perm-intro strong { display: block; font-size: 0.86rem; color: var(--us-ink); }
.us-perm-intro p { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--us-ink-2); line-height: 1.5; }

.us-perm-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--us-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.us-perm-row:hover { border-color: var(--us-primary); background: #f8fafc; }
.us-perm-row.is-on { border-color: var(--us-primary); background: #f5f9ff; }
.us-perm-row input { position: absolute; opacity: 0; pointer-events: none; }
.us-perm-row > svg { font-size: 1.25rem; color: #cbd5e1; transition: color 0.16s ease; }
.us-perm-row.is-on > svg { color: var(--us-primary); }
.us-perm-grupo {
  margin: 0.9rem 0 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--us-ink-2);
}
.us-perm-row span { font-size: 0.86rem; color: var(--us-ink); font-weight: 500; }

.us-boxes {
  border: 1.5px solid var(--us-line);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.us-boxes-head h4 { margin: 0; font-size: 0.86rem; color: var(--us-ink); display: flex; align-items: center; gap: 0.45rem; }
.us-boxes-head span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--us-ink-2); line-height: 1.5; }

.us-box-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.us-box-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--us-line);
  border-radius: 10px;
  background: #f8fafc;
}
.us-box-list li > svg { color: var(--us-primary); }
.us-box-list li > div { flex: 1; min-width: 0; }
.us-box-list strong { display: block; font-size: 0.82rem; color: var(--us-ink); overflow: hidden; text-overflow: ellipsis; }
.us-box-list em { font-size: 0.72rem; color: var(--us-ink-2); font-style: normal; }
.us-box-list button {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
}
.us-box-list button:hover { color: #dc2626; background: #fef2f2; }

.us-box-add {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--us-line);
}
.us-box-add > button { grid-column: 1 / -1; justify-content: center; }

@media (max-width: 640px) {
  .us-box-add { grid-template-columns: 1fr; }
}

/* ── Caixa de e-mail vinculada ao cadastro ────────────────────────────────── */

.us-mailbox { display: flex; gap: 0.5rem; align-items: stretch; }
.us-mailbox .us-select { flex: 1; }
.us-mailbox .us-btn { white-space: nowrap; }

.us-newbox {
  border: 1.5px dashed var(--us-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #fbfdff;
}
.us-newbox-head strong { display: block; font-size: 0.84rem; color: var(--us-ink); }
.us-newbox-head span { font-size: 0.74rem; color: var(--us-ink-2); }
.us-newbox-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.6rem; }
.us-newbox .us-hint strong { color: var(--us-primary); }
.us-newbox > .us-btn { align-self: flex-start; }

@media (max-width: 640px) {
  .us-newbox-grid { grid-template-columns: 1fr; }
  .us-mailbox { flex-direction: column; }
}
/* ===================================
   DEPARTMENTS PAGE
   =================================== */

.departments-page {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #6c757d;
  font-size: 1rem;
}

/* Filtros */
.filters-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.search-input {
  padding-left: 40px !important;
}

/* Grid de Departamentos */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
}

/* Card de Departamento */
.department-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.department-card:hover {
  box-shadow: 0 4px 20px rgba(10, 78, 160, 0.15);
  border-color: #0A4EA0;
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.title-icon {
  color: #0A4EA0;
  font-size: 1.5rem;
}

.card-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.card-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.stat svg {
  color: #0A4EA0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-edit {
  background: #e3f2fd;
  color: #0A4EA0;
}

.btn-edit:hover {
  background: #0A4EA0;
  color: white;
  transform: translateY(-2px);
}

.btn-toggle {
  background: #d1ecf1;
  color: #0c5460;
}

.btn-toggle:hover {
  background: #17a2b8;
  color: white;
  transform: translateY(-2px);
}

.btn-delete {
  background: #f8d7da;
  color: #721c24;
}

.btn-delete:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
}

/* Modal */
.department-modal {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input,
.form-group textarea {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

/* Permissões */
.permissions-section {
  margin-top: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.permissions-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.permissions-hint {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.permission-module {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.module-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0A4EA0;
}

.module-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

.module-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.module-permissions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.permission-item:hover {
  background: #f8f9fa;
}

.permission-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.permission-item span {
  font-size: 0.9rem;
  color: #495057;
}

/* ── Liderança do departamento ─────────────────────────────────────────── */
.leaders-section {
  margin-top: 1rem;
  padding: 1.5rem;
  background: #fffaf0;
  border: 1px solid #f0e0c0;
  border-radius: 12px;
}

.leaders-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaders-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.leader-item:hover {
  border-color: #B8860B;
}

.leader-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.leader-name {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 600;
  flex: 1;
}

.leader-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  background: #f1f3f5;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.leaders-empty {
  color: #8a6d3b;
  font-size: 0.9rem;
  margin: 0;
}

/* Selo de escopo no título de cada bloco de permissão */
.scope-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0A4EA0;
  background: #e7f0fb;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.scope-tag--leader {
  color: #8a6d3b;
  background: #fdf3d8;
}

/* Bloco de extras da liderança */
.permissions-section.leader-permissions {
  background: #fffdf7;
  border: 1px solid #f0e0c0;
}

.permissions-section.leader-permissions .module-header {
  border-bottom-color: #B8860B;
}

.preset-btn {
  margin-bottom: 1.25rem;
}

/* Permissão que já vem da base do departamento: marcada e travada */
.permission-item.herdada {
  cursor: not-allowed;
  opacity: 0.55;
}

.permission-item.herdada input[type="checkbox"] {
  cursor: not-allowed;
}

/* Liderança no card do departamento */
.card-leaders {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e9ecef;
  font-size: 0.85rem;
  color: #495057;
}

.card-leaders .leader-icon {
  color: #B8860B;
}

.card-leaders .no-leader {
  color: #adb5bd;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1200px) {
  .departments-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .departments-page {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .page-header button {
    width: 100%;
  }

  .departments-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    max-width: 100%;
  }

  .card-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .department-modal {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .card-title h3 {
    font-size: 1.1rem;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .btn-action {
    flex: 1 1 calc(50% - 0.25rem);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Servers Page — Light Theme + Server Cards
   ══════════════════════════════════════════════════════════════════════════ */

.servers-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 160px);
}

/* ── Header ── */
.servers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(10, 78, 160, 0.2);
}

.servers-header__title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.servers-header__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 1.35rem;
  color: #fff;
}

.servers-header__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.servers-header__subtitle {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0;
}

/* ── VPN Badge ── */
.vpn-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.vpn-badge--connected {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.vpn-badge--disconnected {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.vpn-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.vpn-badge__dot--green {
  background: #10b981;
}

.vpn-badge__dot--red {
  background: #f87171;
}

.vpn-badge__dot--pulse {
  animation: vpn-pulse 1.8s ease-in-out infinite;
}

@keyframes vpn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.vpn-badge__label {
  white-space: nowrap;
}

.vpn-badge__time {
  font-size: 0.73rem;
  opacity: 0.65;
  font-weight: 400;
  white-space: nowrap;
}

.vpn-badge__refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.75;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 0.83rem;
  transition: opacity 0.2s, background 0.2s;
}

.vpn-badge__refresh:hover:not(:disabled) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.vpn-badge__refresh:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* ── Checking ── */
.servers-checking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e9ecef;
  color: #6c757d;
}

.servers-checking__icon {
  font-size: 2.5rem;
  color: #0A4EA0;
  opacity: 0.4;
}

/* ── Blocked ── */
.servers-blocked {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 360px;
}

.servers-blocked__card {
  max-width: 500px;
  width: 100%;
  padding: 44px 36px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.servers-blocked__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  font-size: 1.75rem;
  color: #dc3545;
  background: #fff5f5;
  border-radius: 50%;
  border: 2px solid #fecdd3;
}

.servers-blocked__icon-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed #fca5a5;
  animation: rotate-ring 8s linear infinite;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.servers-blocked__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
}

.servers-blocked__desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.servers-blocked__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
}

.servers-blocked__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #475569;
}

.servers-blocked__step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A4EA0;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.servers-blocked__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.servers-blocked__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 78, 160, 0.4);
}

.servers-blocked__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Servers Grid ── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 20px;
}

/* ── Server Card ── */
.server-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.server-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.server-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.server-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.server-card__icon--linux {
  background: #fef3c7;
  color: #d97706;
}

.server-card__icon--windows {
  background: #dbeafe;
  color: #1d4ed8;
}

.server-card__info {
  flex: 1;
  min-width: 0;
}

.server-card__info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
}

.server-card__host {
  font-size: 0.8rem;
  color: #94a3b8;
}

.server-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.server-card__status.online {
  background: #dcfce7;
  color: #16a34a;
}

.server-card__status.offline {
  background: #fee2e2;
  color: #dc2626;
}

.server-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.server-card__status.online .server-card__status-dot {
  animation: vpn-pulse 1.8s ease-in-out infinite;
}

.server-card__refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.server-card__refresh:hover {
  color: #0A4EA0;
  background: #f0f7ff;
}

.server-card__metrics {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.server-card__loading {
  padding: 28px 24px;
  color: #94a3b8;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-card__error {
  padding: 20px 24px;
  color: #dc2626;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-card__offline-msg {
  color: #dc2626;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ── Metric Block (progress) ── */
.metric-block__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #475569;
}

.metric-block__label i {
  color: #94a3b8;
  width: 14px;
}

.metric-block__value {
  margin-left: auto;
  font-weight: 500;
  color: #1e293b;
  font-size: 0.8rem;
}

.server-progress {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.server-progress__bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.server-progress__bar.warning {
  background: #f59e0b !important;
}

.server-progress__bar.danger {
  background: #ef4444 !important;
}

/* ── Pills ── */
.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.metric-pill i {
  color: #94a3b8;
}

.metric-pill--refresh {
  color: #94a3b8;
  font-weight: 400;
}

.metric-pill--green {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #16a34a;
}

.metric-pill--cache {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  font-size: 0.72rem;
}

/* ── Ports Grid (Windows) ── */
.ports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.port-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.2s;
}

.port-chip--up {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.port-chip--down {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.port-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.port-chip__port {
  font-weight: 400;
  opacity: 0.6;
}

.port-chip__latency {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: 2px;
}

/* Agent notice */
.agent-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 12px;
}

.agent-notice i {
  color: #d97706;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }

  .servers-header {
    padding: 18px 20px;
  }

  .vpn-badge__time {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   RDP Modal — Connect Button + Fullscreen Overlay
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Connect Button (card header) ── */
.server-card__connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0A4EA0 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(10, 78, 160, 0.3);
}

.server-card__connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 78, 160, 0.4);
}

/* ── Fullscreen Overlay ── */
.rdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
}

/* ── Toolbar ── */
.rdp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
  flex-shrink: 0;
  z-index: 10;
}

.rdp-toolbar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-size: 0.88rem;
  font-weight: 600;
}

.rdp-toolbar__info>i {
  color: #60a5fa;
  font-size: 1.1rem;
}

.rdp-toolbar__host {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.8rem;
}

.rdp-toolbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.rdp-toolbar__badge--live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.rdp-toolbar__badge--connecting {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.rdp-toolbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: vpn-pulse 1.8s ease-in-out infinite;
}

.rdp-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rdp-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #1f2937;
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.rdp-toolbar__btn:hover {
  background: #374151;
  color: #fff;
}

.rdp-toolbar__btn--disconnect {
  border-color: #7f1d1d;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

.rdp-toolbar__btn--disconnect:hover {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}

/* ── Display Canvas ── */
.rdp-display {
  flex: 1;
  overflow: hidden;
  background: #000;
}

.rdp-display canvas {
  /* scale controlled programmatically by Guacamole display.scale() */
}

/* ── Login Form ── */
.rdp-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 70%);
}

.rdp-login__card {
  width: 380px;
  max-width: 90vw;
  padding: 40px 32px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rdp-login__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 16px;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.rdp-login__icon--error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.rdp-login__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f3f4f6;
  margin: 0 0 6px;
}

.rdp-login__sub {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.rdp-login__field {
  text-align: left;
  margin-bottom: 14px;
}

.rdp-login__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rdp-login__field input {
  width: 100%;
  padding: 10px 14px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #f3f4f6;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.rdp-login__field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.rdp-login__field input::placeholder {
  color: #4b5563;
}

.rdp-login__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  margin-top: 8px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.rdp-login__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.rdp-login__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.rdp-login__cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s;
}

.rdp-login__cancel:hover {
  color: #d1d5db;
}
/* ── RDP Manager Section ── */
.rdp-manager-section {
  margin-top: 32px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 24px;
}

.rdp-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.rdp-manager-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.rdp-manager-actions {
  display: flex;
  gap: 12px;
}

.rdp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rdp-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.rdp-btn--connect-selected {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.rdp-btn--connect-selected:hover {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.rdp-btn--connect-selected:disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.rdp-servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.rdp-server-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.rdp-server-chip:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rdp-server-chip.active {
  border-color: #10b981;
  background: #ecfdf5;
}

.rdp-server-chip__label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.rdp-server-chip__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #10b981;
  cursor: pointer;
}

.rdp-server-chip__win-icon {
  font-size: 1.25rem;
  color: #0ea5e9;
}

.rdp-server-chip.active .rdp-server-chip__win-icon {
  color: #059669;
}

.rdp-server-chip__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rdp-server-chip__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
}

.rdp-server-chip__ip {
  font-size: 0.75rem;
  color: #64748b;
}

.rdp-server-chip__btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0ea5e9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rdp-server-chip__btn:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

/* ── RDP Tabs and Layout ── */
.rdp-tabs-bar {
  display: flex;
  align-items: center;
  background: #1e293b;
  border-bottom: 2px solid #0f172a;
  padding: 8px 16px 0;
  gap: 6px;
  overflow-x: auto;
}

.rdp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rdp-tab:hover {
  color: #f8fafc;
  background: #1e293b;
}

.rdp-tab.active {
  color: #fff;
  background: #334155;
  border-color: #334155;
}

.rdp-tab__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rdp-tab__status--connected {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.rdp-tab__status--connecting {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.rdp-tab__status--error {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.rdp-tab__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.6875rem;
  transition: all 0.15s ease;
}

.rdp-tab__close:hover {
  background: #ef4444;
  color: #fff;
}

.rdp-tabs-bar__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0f172a;
  color: #94a3b8;
  border: 1px dashed #475569;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.rdp-tabs-bar__add:hover {
  background: #334155;
  color: #fff;
  border-style: solid;
}

.rdp-add-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 50;
  min-width: 180px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 0;
}

.rdp-add-dropdown__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rdp-add-dropdown__item:hover {
  background: #334155;
  color: #fff;
}

/* ── Hidden Tab CSS ── */
.rdp-tab-wrapper {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.rdp-tab-wrapper.active {
  position: relative;
  left: 0;
  top: 0;
  visibility: visible;
}
/* QAFlow.css — Fluxo de Homologação */
.qa-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; }

/* HERO */
.qa-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.5rem; color: #fff;
  margin-bottom: 1.75rem; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
}
.qa-hero::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background:rgba(255,255,255,0.05); border-radius:50%; pointer-events:none; }
.qa-hero-icon { width:72px; height:72px; border-radius:18px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.qa-hero-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:.25rem .75rem; font-size:.75rem; font-weight:600; color:#fff; margin-bottom:.5rem; }
.qa-hero-title { font-size:1.9rem; font-weight:800; color:#fff; margin:0 0 .3rem; }
.qa-hero-sub { font-size:.9rem; color:rgba(255,255,255,0.72); margin:0; }
.qa-hero-stat { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.15); border-radius:14px; padding:.85rem 1.1rem; text-align:center; min-width:88px; }
.qa-hero-stat-value { font-size:1.6rem; font-weight:800; color:#fff; line-height:1; }
.qa-hero-stat-label { font-size:.65rem; color:rgba(255,255,255,0.7); text-transform:uppercase; letter-spacing:.06em; margin-top:4px; }

/* LAYOUT */
.qa-layout { display:grid; grid-template-columns:280px 1fr; gap:1.5rem; align-items:start; }

/* PRODUCTS PANEL */
.qa-products-panel { background:#fff; border:2px solid #e8edf5; border-radius:18px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.05); }
.qa-panel-header { padding:1rem 1.25rem; border-bottom:1.5px solid #f0f4f8; background:#fafbff; }
.qa-panel-header h6 { margin:0; font-size:.9rem; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:.5rem; }
.qa-panel-header h6 i { color:#0A4EA0; }
.qa-products-list { padding:.5rem; display:flex; flex-direction:column; gap:.25rem; }

.qa-product-item { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; border-radius:12px; border:none; background:none; cursor:pointer; width:100%; text-align:left; transition:all .15s; }
.qa-product-item:hover { background:#f1f5fb; }
.qa-product-item.active { background:rgba(10,78,160,0.08); outline:2px solid rgba(10,78,160,0.2); }
.qa-product-icon { width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,#e8edf5,#d0d8e8); display:flex; align-items:center; justify-content:center; font-size:.9rem; color:#0A4EA0; flex-shrink:0; overflow:hidden; }
.qa-product-icon img { width:100%; height:100%; object-fit:cover; }
.qa-product-info { flex:1; min-width:0; }
.qa-product-name { display:block; font-size:.82rem; font-weight:600; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qa-product-count { font-size:.7rem; color:#64748b; }
.qa-product-badge { background:#0A4EA0; color:#fff; border-radius:20px; padding:1px 8px; font-size:.65rem; font-weight:700; flex-shrink:0; }

/* TESTS PANEL */
.qa-tests-panel { display:flex; flex-direction:column; gap:1rem; }
.qa-tests-toolbar { display:flex; gap:.75rem; align-items:center; background:#fff; border:2px solid #e8edf5; border-radius:14px; padding:.75rem 1rem; box-shadow:0 2px 8px rgba(0,0,0,0.04); flex-wrap:wrap; }
.qa-search-bar { display:flex; align-items:center; gap:.5rem; background:#f8faff; border:1.5px solid #e2e8f0; border-radius:10px; padding:.45rem .9rem; flex:1; min-width:180px; }
.qa-search-bar i { color:#94a3b8; font-size:.8rem; }
.qa-search-bar input { border:none; background:none; outline:none; font-size:.85rem; color:#1e293b; width:100%; }
.qa-filter-select { padding:.45rem .9rem; border:1.5px solid #e2e8f0; border-radius:10px; font-size:.82rem; color:#374151; background:#f8faff; outline:none; cursor:pointer; }
.qa-btn-primary { background:linear-gradient(135deg,#0A4EA0,#002b5e); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; transition:all .2s; white-space:nowrap; box-shadow:0 4px 12px rgba(10,78,160,0.25); }
.qa-btn-primary:hover { opacity:.9; transform:translateY(-1px); }

/* TESTS GRID */
.qa-tests-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:1rem; }

.qa-test-card { background:#fff; border:2px solid #e8edf5; border-radius:16px; overflow:hidden; transition:all .2s; }
.qa-test-card:hover { border-color:#c7d9f5; box-shadow:0 8px 28px rgba(10,78,160,0.1); transform:translateY(-2px); }
.qa-test-card-header { padding:.9rem 1.25rem; border-bottom:1.5px solid #f0f4f8; background:#fafbff; display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.qa-test-card-body { padding:1.1rem 1.25rem; }

.qa-category-badge { display:inline-flex; align-items:center; background:#e0f2fe; color:#0369a1; border:1px solid #bae6fd; border-radius:8px; padding:.2rem .6rem; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.qa-priority-badge { display:inline-flex; align-items:center; gap:.3rem; border-radius:8px; border:1px solid; padding:.2rem .6rem; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.qa-priority-dot { width:7px; height:7px; border-radius:50%; }

.qa-test-title { font-size:.95rem; font-weight:700; color:#1e293b; margin:0 0 .35rem; }
.qa-test-product { font-size:.72rem; color:#0A4EA0; display:flex; align-items:center; gap:.3rem; margin:0 0 .35rem; }
.qa-test-desc { font-size:.8rem; color:#64748b; line-height:1.6; margin:0 0 .75rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.qa-steps-preview { background:#f8faff; border:1px solid #e8edf5; border-radius:10px; padding:.75rem 1rem; }
.qa-steps-label { font-size:.7rem; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.06em; margin:0 0 .4rem; display:flex; align-items:center; gap:.35rem; }
.qa-steps-label i { color:#0A4EA0; }
.qa-steps-list { margin:0; padding-left:1.2rem; font-size:.78rem; color:#374151; line-height:1.7; }
.qa-steps-more { color:#94a3b8; font-style:italic; }

/* STEP EDITOR */
.qa-steps-editor { display:flex; flex-direction:column; gap:.5rem; }
.qa-step-input-row { display:flex; align-items:center; gap:.5rem; }
.qa-step-num { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; font-size:.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* BUTTON ICONS (shared) */
.qa-btn-icon { width:32px; height:32px; border-radius:8px; border:none; display:flex; align-items:center; justify-content:center; font-size:.75rem; cursor:pointer; transition:all .2s; }
.qa-btn-icon.edit   { background:#e0f2fe; color:#0284c7; }
.qa-btn-icon.edit:hover   { background:#0284c7; color:#fff; }
.qa-btn-icon.delete { background:#fee2e2; color:#dc2626; }
.qa-btn-icon.delete:hover { background:#dc2626; color:#fff; }

/* EMPTY */
.qa-empty { display:flex; flex-direction:column; align-items:center; padding:4rem 2rem; text-align:center; background:#fff; border:2px solid #e8edf5; border-radius:18px; }
.qa-empty-icon { width:72px; height:72px; border-radius:50%; background:#f1f5fb; display:flex; align-items:center; justify-content:center; font-size:1.8rem; color:#94a3b8; margin-bottom:1.25rem; }

/* Responsive */
@media (max-width: 900px) {
  .qa-layout { grid-template-columns: 1fr; }
  .qa-products-panel { max-height: 260px; overflow-y: auto; }
}
/* Homologations.css */
.hom-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; }

/* HERO */
.hom-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.5rem; color: #fff;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
}
.hom-hero::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background:rgba(255,255,255,0.05); border-radius:50%; pointer-events:none; }
.hom-hero-icon { width:72px; height:72px; border-radius:18px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.hom-hero-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:.25rem .75rem; font-size:.75rem; font-weight:600; color:#fff; margin-bottom:.5rem; }
.hom-hero-title { font-size:1.9rem; font-weight:800; color:#fff; margin:0 0 .3rem; }
.hom-hero-sub { font-size:.9rem; color:rgba(255,255,255,0.72); margin:0; }
.hom-hero-stat { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.15); border-radius:14px; padding:.85rem 1.1rem; text-align:center; min-width:88px; }
.hom-hero-stat-value { font-size:1.6rem; font-weight:800; color:#fff; line-height:1; }
.hom-hero-stat-label { font-size:.65rem; color:rgba(255,255,255,0.7); text-transform:uppercase; letter-spacing:.06em; margin-top:4px; }

/* TOOLBAR */
.hom-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; background:#fff; border:2px solid #e8edf5; border-radius:14px; padding:.75rem 1rem; margin-bottom:1.25rem; box-shadow:0 2px 8px rgba(0,0,0,0.04); flex-wrap:wrap; }
.hom-tabs { display:flex; gap:.35rem; background:#f1f5fb; border-radius:10px; padding:4px; }
.hom-tab { display:flex; align-items:center; gap:.45rem; background:none; border:none; border-radius:8px; padding:.5rem 1rem; font-size:.82rem; font-weight:500; color:#64748b; cursor:pointer; transition:all .18s; }
.hom-tab:hover { background:#e8edf5; color:#0A4EA0; }
.hom-tab.active { background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; font-weight:700; box-shadow:0 3px 10px rgba(10,78,160,0.28); }
.hom-tab-badge { background:rgba(255,255,255,0.25); border-radius:10px; padding:1px 7px; font-size:.65rem; font-weight:700; }
.hom-tab:not(.active) .hom-tab-badge { background:#e8edf5; color:#64748b; }
.hom-tab-badge.urgent { background:#ef4444 !important; color:#fff !important; }
.hom-filter { padding:.45rem .9rem; border:1.5px solid #e2e8f0; border-radius:10px; font-size:.82rem; color:#374151; background:#f8faff; outline:none; cursor:pointer; }
.hom-btn-primary { background:linear-gradient(135deg,#0A4EA0,#002b5e); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; transition:all .2s; white-space:nowrap; box-shadow:0 4px 12px rgba(10,78,160,0.25); }
.hom-btn-primary:hover { opacity:.9; transform:translateY(-1px); }

/* LIST */
.hom-list { display:flex; flex-direction:column; gap:.85rem; }

.hom-card { background:#fff; border:2px solid #e8edf5; border-radius:16px; padding:1.25rem 1.5rem; display:flex; align-items:flex-start; justify-content:space-between; gap:1.5rem; transition:all .2s; }
.hom-card:hover { border-color:#c7d9f5; box-shadow:0 6px 22px rgba(10,78,160,0.08); }
.hom-card--urgent { border-color:#fde68a; background:#fffbeb; }
.hom-card-left { flex:1; min-width:0; }
.hom-card-right { display:flex; flex-direction:column; align-items:flex-end; gap:.75rem; flex-shrink:0; }

.hom-card-prod { font-size:.7rem; color:#0A4EA0; font-weight:700; text-transform:uppercase; letter-spacing:.06em; display:flex; align-items:center; gap:.3rem; margin-bottom:.35rem; }
.hom-card-title { font-size:.9rem; font-weight:600; color:#1e293b; margin:0 0 .6rem; line-height:1.5; }
.hom-card-meta { display:flex; align-items:center; gap:.85rem; flex-wrap:wrap; }
.hom-assignee { display:flex; align-items:center; gap:.4rem; font-size:.78rem; color:#374151; font-weight:600; }
.hom-avatar { width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.65rem; font-weight:800; flex-shrink:0; }
.hom-by { font-size:.72rem; color:#94a3b8; }
.hom-due, .hom-date { font-size:.72rem; color:#64748b; display:flex; align-items:center; gap:.3rem; }
.hom-due i, .hom-date i { font-size:.65rem; }

.hom-status-badge { display:inline-flex; padding:.3rem .85rem; border-radius:20px; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.hom-result-badge { display:flex; align-items:center; gap:.35rem; font-size:.78rem; font-weight:700; }

.hom-btn-execute { background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; border:none; padding:.45rem .9rem; border-radius:9px; font-size:.78rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; transition:all .2s; box-shadow:0 3px 10px rgba(10,78,160,0.25); }
.hom-btn-execute:hover { opacity:.9; transform:translateY(-1px); }
.hom-btn-view { background:#f1f5fb; color:#0A4EA0; border:1.5px solid #c7d9f5; padding:.45rem .9rem; border-radius:9px; font-size:.78rem; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:.4rem; transition:all .2s; }
.hom-btn-view:hover { background:#e0f2fe; }
.hom-btn-icon-del { width:34px; height:34px; background:#fee2e2; color:#dc2626; border:none; border-radius:9px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.8rem; transition:all .2s; }
.hom-btn-icon-del:hover { background:#dc2626; color:#fff; }

/* EXECUTE MODAL extras */
.hom-expected-preview {
  background: linear-gradient(135deg, #f0f9f0, #e8f5e8);
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: .875rem; line-height: 1.75; color: #065f46;
  white-space: pre-wrap;
}
.hom-steps-ol {
  background: #f8faff;
  border: 1.5px solid #e8edf5;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 2.25rem;
  font-size: .875rem; line-height: 2; color: #374151; margin: 0;
}

.hom-result-row { display:flex; gap:.75rem; flex-wrap:wrap; }
.hom-result-btn { display:flex; align-items:center; gap:.45rem; flex-direction:column; padding:1rem 1.5rem; border:2px solid #e2e8f0; border-radius:14px; background:#f8faff; cursor:pointer; transition:all .2s; font-size:.82rem; font-weight:600; color:#374151; min-width:110px; }
.hom-result-btn:hover:not(:disabled) { border-color:#c7d9f5; transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.hom-result-btn.active { background:#f0f9ff; }
.hom-result-btn i { font-size:1.4rem; }
.hom-result-btn:disabled { opacity:.6; cursor:not-allowed; }

.hom-notify-info {
  display:flex; align-items:center; gap:.6rem;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  border:1.5px solid #bfdbfe;
  border-radius:10px;
  padding:.75rem 1rem;
  font-size:.8rem; color:#1e40af;
}
.hom-notify-info i { color:#1e40af; }

/* EMPTY */
.hom-empty { display:flex; flex-direction:column; align-items:center; padding:5rem 2rem; text-align:center; background:#fff; border:2px solid #e8edf5; border-radius:18px; }
.hom-empty-icon { width:72px; height:72px; border-radius:50%; background:#f1f5fb; display:flex; align-items:center; justify-content:center; font-size:1.8rem; color:#94a3b8; margin-bottom:1.25rem; }

@media (max-width: 768px) {
  .hom-card { flex-direction:column; }
  .hom-card-right { flex-direction:row; align-items:center; }
}
/* IPsLiberados.css */
.ipl-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; }

/* HERO */
.ipl-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.5rem; color: #fff;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
}
.ipl-hero::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background:rgba(255,255,255,0.05); border-radius:50%; pointer-events:none; }
.ipl-hero-icon { width:72px; height:72px; border-radius:18px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0; border:2px solid rgba(255,255,255,0.2); }
.ipl-hero-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:.25rem .75rem; font-size:.75rem; font-weight:600; color:#fff; margin-bottom:.5rem; }
.ipl-hero-title { font-size:1.9rem; font-weight:800; color:#fff; margin:0 0 .3rem; }
.ipl-hero-sub { font-size:.9rem; color:rgba(255,255,255,0.72); margin:0; }

/* STATS */
.ipl-stat { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.15); border-radius:14px; padding:.85rem 1.1rem; text-align:center; min-width:80px; }
.ipl-stat--green { background:rgba(5,150,105,0.25); border-color:rgba(5,150,105,0.4); }
.ipl-stat--red   { background:rgba(220,38,38,0.2);  border-color:rgba(220,38,38,0.35); }
.ipl-stat-value { font-size:1.6rem; font-weight:800; color:#fff; line-height:1; }
.ipl-stat-label { font-size:.65rem; color:rgba(255,255,255,0.7); text-transform:uppercase; letter-spacing:.06em; margin-top:4px; }

/* TOOLBAR */
.ipl-toolbar { display:flex; gap:.75rem; align-items:center; background:#fff; border:2px solid #e8edf5; border-radius:14px; padding:.75rem 1rem; margin-bottom:1.25rem; box-shadow:0 2px 8px rgba(0,0,0,0.04); flex-wrap:wrap; }
.ipl-search { display:flex; align-items:center; gap:.5rem; background:#f8faff; border:1.5px solid #e2e8f0; border-radius:10px; padding:.45rem .9rem; flex:1; min-width:180px; }
.ipl-search i { color:#94a3b8; font-size:.8rem; }
.ipl-search input { border:none; background:none; outline:none; font-size:.85rem; color:#1e293b; width:100%; }
.ipl-filter-tabs { display:flex; gap:.25rem; background:#f1f5fb; border-radius:10px; padding:4px; }
.ipl-filter-tab { background:none; border:none; border-radius:8px; padding:.4rem .85rem; font-size:.78rem; font-weight:500; color:#64748b; cursor:pointer; transition:all .18s; }
.ipl-filter-tab:hover { background:#e8edf5; color:#0A4EA0; }
.ipl-filter-tab.active { background:linear-gradient(135deg,#0A4EA0,#1a6fd4); color:#fff; font-weight:700; box-shadow:0 3px 10px rgba(10,78,160,0.25); }
.ipl-btn-primary { background:linear-gradient(135deg,#0A4EA0,#002b5e); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; box-shadow:0 4px 12px rgba(10,78,160,0.25); transition:all .2s; white-space:nowrap; }
.ipl-btn-primary:hover { opacity:.9; transform:translateY(-1px); }
.ipl-btn-secondary { background:#f8faff; color:#0A4EA0; border:1.5px solid #0A4EA0; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; transition:all .2s; white-space:nowrap; box-shadow:0 2px 6px rgba(10,78,160,0.1); }
.ipl-btn-secondary:hover:not(:disabled) { background:#e8edf5; transform:translateY(-1px); box-shadow:0 4px 8px rgba(10,78,160,0.15); }
.ipl-btn-secondary:disabled { opacity:.6; cursor:not-allowed; border-color:#cbd5e1; color:#94a3b8; box-shadow:none; }
.ipl-btn-danger { background:linear-gradient(135deg,#c0392b,#7b241c); color:#fff; border:none; padding:.5rem 1.1rem; border-radius:10px; font-size:.82rem; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:.4rem; box-shadow:0 4px 12px rgba(192,57,43,0.3); transition:all .2s; white-space:nowrap; }
.ipl-btn-danger:hover:not(:disabled) { opacity:.9; transform:translateY(-1px); }
.ipl-btn-danger:disabled { opacity:.6; cursor:not-allowed; }

/* TABLE */
.ipl-table-wrap { background:#fff; border:2px solid #e8edf5; border-radius:18px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.05); }
.ipl-table { width:100%; border-collapse:collapse; }
.ipl-table thead { background:linear-gradient(135deg,#f8faff,#f1f5fb); }
.ipl-table th { padding:.85rem 1.1rem; font-size:.72rem; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.06em; border-bottom:2px solid #e8edf5; text-align:left; white-space:nowrap; }
.ipl-table th i { margin-right:.35rem; color:#0A4EA0; }
.ipl-table td { padding:.9rem 1.1rem; font-size:.85rem; color:#374151; border-bottom:1px solid #f1f5fb; vertical-align:middle; }
.ipl-table tbody tr:hover { background:#f8faff; }
.ipl-table tbody tr:last-child td { border-bottom:none; }
.ipl-row--expired td { opacity:.6; }

/* STATUS BADGE */
.ipl-status-badge { display:inline-flex; align-items:center; gap:.4rem; border-radius:20px; padding:.25rem .7rem; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.ipl-status-badge.active  { background:#d1fae5; color:#065f46; }
.ipl-status-badge.expired { background:#fee2e2; color:#991b1b; }
.ipl-status-dot { width:7px; height:7px; border-radius:50%; background:currentColor; }

/* CELLS */
.ipl-ip { background:#f1f5fb; border:1px solid #e2e8f0; border-radius:6px; padding:.2rem .5rem; font-size:.82rem; font-family:monospace; color:#0A4EA0; font-weight:700; }
.ipl-liberador { font-size:.78rem; color:#374151; }
.ipl-date { font-size:.78rem; color:#64748b; }
.ipl-date--expired { color:#dc2626; }

/* ACTION BUTTONS */
.ipl-btn-icon { width:32px; height:32px; border-radius:8px; border:none; display:flex; align-items:center; justify-content:center; font-size:.78rem; cursor:pointer; transition:all .2s; }
.ipl-btn-icon.edit   { background:#e0f2fe; color:#0284c7; }
.ipl-btn-icon.edit:hover   { background:#0284c7; color:#fff; }
.ipl-btn-icon.delete { background:#fee2e2; color:#dc2626; }
.ipl-btn-icon.delete:hover { background:#dc2626; color:#fff; }

/* DAYS GRID */
.ipl-days-grid { display:flex; gap:.4rem; flex-wrap:wrap; }
.ipl-days-btn { background:#f8faff; border:1.5px solid #e2e8f0; border-radius:8px; padding:.35rem .7rem; font-size:.75rem; font-weight:600; color:#64748b; cursor:pointer; transition:all .18s; }
.ipl-days-btn:hover { border-color:#c7d9f5; color:#0A4EA0; }
.ipl-days-btn.active { background:linear-gradient(135deg,#0A4EA0,#1a6fd4); border-color:transparent; color:#fff; }

/* NOTIFY INFO */
.ipl-notify-info { display:flex; align-items:center; gap:.6rem; background:linear-gradient(135deg,#eff6ff,#dbeafe); border:1.5px solid #bfdbfe; border-radius:10px; padding:.75rem 1rem; font-size:.8rem; color:#1e40af; margin-top:.5rem; }

/* LOADING / EMPTY */
.ipl-loading { display:flex; align-items:center; gap:.75rem; padding:3rem 2rem; justify-content:center; color:#94a3b8; font-size:.9rem; }
.ipl-empty { display:flex; flex-direction:column; align-items:center; padding:4rem 2rem; text-align:center; }
.ipl-empty-icon { width:64px; height:64px; border-radius:50%; background:#f1f5fb; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:#94a3b8; margin-bottom:1rem; }

/* HERO LAYOUT */
.ipl-hero-top { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:1rem; position:relative; z-index:1; }
.ipl-hero-id { display:flex; align-items:center; gap:1.25rem; min-width:0; }
.ipl-hero-stats { display:flex; gap:1rem; }
.ipl-toolbar-actions { display:flex; gap:.5rem; }

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ipl-page { padding: 1rem .9rem; }

  .ipl-hero { padding: 1.35rem 1.1rem; border-radius: 16px; }
  .ipl-hero::before { width: 180px; height: 180px; right: -70px; top: -70px; }
  .ipl-hero-id { gap: .85rem; }
  .ipl-hero-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.35rem; }
  .ipl-hero-title { font-size: 1.3rem; }
  .ipl-hero-sub { font-size: .8rem; }

  /* Os 3 stats dividem a largura em vez de estourar para fora do hero */
  .ipl-hero-stats { width: 100%; gap: .5rem; }
  .ipl-hero-stats > .ipl-stat { flex: 1; min-width: 0; padding: .6rem .4rem; }
  .ipl-stat-value { font-size: 1.25rem; }
  .ipl-stat-label { font-size: .58rem; }

  /* Toolbar empilhada: cada controle ocupa a linha inteira */
  .ipl-toolbar { flex-direction: column; align-items: stretch; gap: .6rem; padding: .75rem; }
  .ipl-search { width: 100%; }
  .ipl-filter-tabs { width: 100%; }
  .ipl-filter-tab { flex: 1; padding: .45rem .3rem; text-align: center; }
  .ipl-toolbar-actions { width: 100%; }
  .ipl-toolbar-actions .ipl-btn-secondary,
  .ipl-toolbar-actions .ipl-btn-primary { flex: 1; justify-content: center; padding: .55rem .5rem; font-size: .78rem; }
  .ipl-btn-danger { width: 100%; justify-content: center; }

  /* min-width força o scroll horizontal em vez de espremer as colunas */
  .ipl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
  .ipl-table { min-width: 720px; }
  .ipl-table th { padding: .7rem .8rem; }
  .ipl-table td { padding: .7rem .8rem; }
}

@media (max-width: 400px) {
  .ipl-hero-stats { flex-wrap: wrap; }
  .ipl-hero-stats > .ipl-stat { flex: 1 1 30%; }
}
/* AspErrorsDashboard.css — Premium Phobos Design */

/* ── NUCLEAR FIX: nenhum elemento dentro da página estoura a tela ─────────── */
.aed-page *,
.aed-page *::before,
.aed-page *::after {
  box-sizing: border-box;
}
/* Exceção: tables ignoram max-width, tratamos elas separado */
.aed-page :not(table):not(col):not(colgroup) {
  max-width: 100%;
}

/* ── PAGE ─────────────────────────────────────────────────────────────────── */
.aed-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.aed-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.aed-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.aed-hero::after {
  content: "";
  position: absolute;
  left: -50px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.aed-hero-left { display: flex; align-items: center; gap: 1.25rem; }
.aed-hero-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.aed-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: .25rem .75rem;
  font-size: .72rem; font-weight: 600; color: #fff;
  margin-bottom: .5rem;
}
.aed-hero-title { font-size: 1.85rem; font-weight: 800; color: #fff; margin: 0 0 .25rem; }
.aed-hero-sub { font-size: .88rem; color: rgba(255,255,255,0.72); margin: 0; }
.aed-hero-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── PERIOD TABS ───────────────────────────────────────────────────────────── */
.aed-period-bar {
  display: flex; align-items: center; gap: .75rem;
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 14px;
  padding: .65rem 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.aed-period-label { font-size: .78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.aed-period-tabs { display: flex; gap: .25rem; background: #f1f5fb; border-radius: 10px; padding: 4px; }
.aed-period-tab {
  background: none; border: none;
  border-radius: 8px; padding: .4rem .9rem;
  font-size: .78rem; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all .18s;
}
.aed-period-tab:hover { background: #e8edf5; color: #0A4EA0; }
.aed-period-tab.active {
  background: linear-gradient(135deg,#0A4EA0,#1a6fd4);
  color: #fff; font-weight: 700;
  box-shadow: 0 3px 10px rgba(10,78,160,0.25);
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.aed-btn-primary {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; padding: .55rem 1.2rem;
  border-radius: 10px; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: .45rem;
  transition: all .2s; white-space: nowrap;
}
.aed-btn-primary:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.aed-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.aed-btn-ai {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none; color: #fff; padding: .55rem 1.2rem;
  border-radius: 10px; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: .45rem;
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}
.aed-btn-ai:hover { opacity: .9; transform: translateY(-1px); }
.aed-btn-ai:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── KPI CARDS ────────────────────────────────────────────────────────────── */
.aed-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.aed-kpi {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform .18s, box-shadow .18s;
}
.aed-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,78,160,0.1); }
.aed-kpi-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.aed-kpi-icon--red   { background: #fee2e2; color: #dc2626; }
.aed-kpi-icon--blue  { background: #dbeafe; color: #1d4ed8; }
.aed-kpi-icon--green { background: #d1fae5; color: #059669; }
.aed-kpi-icon--orange { background: #ffedd5; color: #ea580c; }
.aed-kpi-value { font-size: 1.8rem; font-weight: 800; color: #1e293b; line-height: 1; }
.aed-kpi-label { font-size: .72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── GRID LAYOUT ──────────────────────────────────────────────────────────── */
.aed-charts-grid,
.aed-charts-grid-2,
.aed-recent-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.aed-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.aed-charts-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
/* Cada filho do grid nunca cresce além da célula */
.aed-charts-grid > *,
.aed-charts-grid-2 > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .aed-charts-grid { grid-template-columns: 1fr; }
  .aed-charts-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .aed-charts-grid-2 { grid-template-columns: 1fr; }
}

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.aed-card {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.aed-card-title {
  font-size: .78rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem;
}
.aed-card-title i { color: #0A4EA0; font-size: .9rem; }

/* ── CHART CANVAS ─────────────────────────────────────────────────────────── */
.aed-chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.aed-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ── BAR LIST ─────────────────────────────────────────────────────────────── */
.aed-bar-list { display: flex; flex-direction: column; gap: .6rem; }
.aed-bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .79rem; margin-bottom: .3rem;
}
.aed-bar-name { color: #374151; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.aed-bar-count { font-weight: 700; color: #0A4EA0; font-size: .78rem; }
.aed-bar-track { height: 8px; background: #f1f5fb; border-radius: 99px; overflow: hidden; }
.aed-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0A4EA0, #1a6fd4);
  border-radius: 99px;
  transition: width .5s ease;
}
.aed-bar-fill--orange { background: linear-gradient(90deg, #ea580c, #fb923c); }
.aed-bar-fill--green  { background: linear-gradient(90deg, #059669, #34d399); }

/* ── TOP LIST ─────────────────────────────────────────────────────────────── */
.aed-top-list { display: flex; flex-direction: column; gap: .5rem; }
.aed-top-item {
  display: flex; align-items: center; gap: .7rem;
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 10px; padding: .6rem .85rem;
}
.aed-top-rank {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #002b5e, #0A4EA0);
  color: #fff; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aed-top-name { flex: 1; font-size: .82rem; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aed-top-badge {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff; border-radius: 99px;
  padding: .2rem .6rem; font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}

/* ── SERVER CARDS ─────────────────────────────────────────────────────────── */
.aed-server-list { display: flex; flex-direction: column; gap: .5rem; }
.aed-server-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 10px; padding: .6rem .85rem;
}
.aed-server-name { font-size: .82rem; font-weight: 600; color: #1e293b; }
.aed-server-name i { margin-right: .5rem; color: #0A4EA0; }
.aed-server-count {
  background: #fee2e2; color: #dc2626;
  border-radius: 99px; padding: .2rem .65rem;
  font-size: .72rem; font-weight: 700;
}

/* ── RECENT TABLE ─────────────────────────────────────────────────────────── */
.aed-recent-wrap {
  margin-bottom: 1.25rem;
  overflow: hidden;
  max-width: 100%;
}
.aed-table-scroll {
  overflow-x: auto;
  border-radius: 14px;
  max-width: 100%;
  width: 100%;
}
.aed-table {
  width: 100%;
  min-width: 700px; /* força scroll horizontal no mobile em vez de overflow */
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border-radius: 14px;
}
.aed-table thead { background: linear-gradient(135deg, #f8faff, #f1f5fb); }
.aed-table th {
  padding: .8rem 1rem; font-size: .7rem; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 2px solid #e8edf5; text-align: left; white-space: nowrap;
}
.aed-table th i { margin-right: .35rem; color: #0A4EA0; }
.aed-table td {
  padding: .75rem 1rem; font-size: .82rem; color: #374151;
  border-bottom: 1px solid #f1f5fb; vertical-align: middle;
}
.aed-table tbody tr:hover { background: #f8faff; }
.aed-table tbody tr:last-child td { border-bottom: none; }

.aed-badge-error {
  display: inline-block; background: #fee2e2; color: #991b1b;
  border-radius: 8px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700;
  white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.aed-code { font-family: monospace; font-size: .78rem; color: #0A4EA0; background: #eff6ff; padding: .1rem .4rem; border-radius: 5px; }
.aed-desc { font-size: .77rem; color: #64748b; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── AI MODAL ─────────────────────────────────────────────────────────────── */
.aed-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52); backdrop-filter: blur(4px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.aed-modal {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 680px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: aedModalIn .25s ease;
  overflow: hidden;
  max-height: 85vh;
  display: flex; flex-direction: column;
}
@keyframes aedModalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.aed-modal-header {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: .75rem; color: #fff;
}
.aed-modal-header h4 { margin: 0; font-size: 1rem; font-weight: 700; flex: 1; }
.aed-modal-close {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: background .18s;
}
.aed-modal-close:hover { background: rgba(255,255,255,0.35); }
.aed-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.aed-ai-text {
  font-size: .88rem; line-height: 1.7; color: #374151;
  white-space: pre-wrap;
}
.aed-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1.5px solid #f1f5fb;
  display: flex; justify-content: flex-end;
}
.aed-btn-close {
  background: #f1f5fb; border: none; color: #64748b;
  padding: .5rem 1.2rem; border-radius: 10px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .18s;
}
.aed-btn-close:hover { background: #e2e8f0; color: #374151; }

/* ── EMPTY / LOADING ─────────────────────────────────────────────────────── */
.aed-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 3rem 2rem; text-align: center; color: #94a3b8;
}
.aed-empty i { font-size: 2rem; margin-bottom: .75rem; }
.aed-loading {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 3rem; color: #94a3b8; font-size: .9rem;
}

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
.aed-table-scroll::-webkit-scrollbar,
.aed-modal-body::-webkit-scrollbar { width: 6px; height: 6px; }
.aed-table-scroll::-webkit-scrollbar-track,
.aed-modal-body::-webkit-scrollbar-track { background: #f1f5fb; }
.aed-table-scroll::-webkit-scrollbar-thumb,
.aed-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* ── LIVE COUNTER ─────────────────────────────────────────────────────────── */
.aed-live-counter {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: .45rem .9rem;
  white-space: nowrap;
}
.aed-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: aedPulse 1.5s ease-out infinite;
  flex-shrink: 0;
}
@keyframes aedPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.aed-live-label { font-size: .72rem; font-weight: 800; color: #4ade80; letter-spacing: .08em; }
.aed-live-time { font-size: .7rem; color: rgba(255,255,255,0.65); }
.aed-live-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden; }
.aed-live-bar-fill { height: 100%; background: #4ade80; border-radius: 99px; transition: width 1s linear; }

/* ── LAST UPDATE ─────────────────────────────────────────────────────────── */
.aed-last-update {
  font-size: .72rem; color: #94a3b8; display: flex; align-items: center; margin-left: auto;
}

/* ── NO DATA STATE ───────────────────────────────────────────────────────── */
.aed-no-data {
  background: #fff; border: 2px solid #e8edf5; border-radius: 20px;
  padding: 3rem 2rem; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
}
.aed-no-data-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #059669; margin: 0 auto 1.25rem;
}
.aed-no-data h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0 0 .5rem; }
.aed-no-data p { font-size: .88rem; color: #64748b; margin: 0; }
.aed-btn-reload {
  margin-top: 1.25rem;
  display: inline-flex; align-items: center; gap: .45rem;
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff; border: none; padding: .55rem 1.4rem;
  border-radius: 10px; font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.aed-btn-reload:hover { opacity: .9; transform: translateY(-1px); }


/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .aed-page { padding: 1rem .9rem; }

  .aed-hero { padding: 1.35rem 1.1rem; border-radius: 16px; gap: 1rem; }
  .aed-hero::before { width: 180px; height: 180px; right: -70px; top: -70px; }
  .aed-hero::after { display: none; }
  .aed-hero-left { gap: .85rem; min-width: 0; }
  .aed-hero-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; }
  .aed-hero-title { font-size: 1.25rem; }
  .aed-hero-sub { font-size: .78rem; }
  .aed-hero-actions { width: 100%; gap: .5rem; }
  .aed-hero-actions .aed-btn-primary,
  .aed-hero-actions .aed-btn-ai { flex: 1; justify-content: center; padding: .55rem .7rem; font-size: .78rem; }
  .aed-live-counter { flex: 1; justify-content: center; padding: .45rem .6rem; }
  .aed-live-bar { display: none; }

  /* Barra de período: rótulo em cima, abas ocupando a linha */
  .aed-period-bar { padding: .7rem .8rem; gap: .5rem; }
  .aed-period-tabs { width: 100%; }
  .aed-period-tab { flex: 1; padding: .4rem .3rem; font-size: .74rem; }
  .aed-last-update { margin-left: 0; width: 100%; }

  .aed-kpis { grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
  .aed-kpi { padding: .85rem .9rem; gap: .7rem; border-radius: 14px; }
  .aed-kpi-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
  .aed-kpi-value { font-size: 1.3rem; }
  .aed-kpi-label { font-size: .62rem; }

  .aed-card { padding: 1rem .9rem; border-radius: 14px; }
  .aed-card-title { margin-bottom: .9rem; font-size: .72rem; }
  .aed-chart-wrap { height: 200px; }

  .aed-table-scroll { -webkit-overflow-scrolling: touch; }
  .aed-table th { padding: .6rem .7rem; }
  .aed-table td { padding: .6rem .7rem; font-size: .77rem; }
  .aed-desc { max-width: 180px; }

  .aed-modal-overlay { padding: .75rem; }
  .aed-modal { max-height: 90vh; }
  .aed-no-data { padding: 2rem 1rem; }
}

@media (max-width: 420px) {
  .aed-kpis { grid-template-columns: 1fr; }
}
/* AgendadorDashboard.css — Premium Phobos Design */

.ag-page *,
.ag-page *::before,
.ag-page *::after { box-sizing: border-box; }
.ag-page :not(table):not(col):not(colgroup) { max-width: 100%; }

.ag-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
  width: 100%;
  overflow-x: hidden;
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.ag-hero {
  background: linear-gradient(135deg, #1c2a4a 0%, #0f3d8a 50%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.ag-hero::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.ag-hero::after {
  content: "";
  position: absolute; right: 60px; bottom: -80px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.ag-hero-left { display: flex; align-items: center; gap: 1.25rem; z-index: 1; }
.ag-hero-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.ag-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px; padding: .25rem .75rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  margin-bottom: .5rem;
}
.ag-hero-title { font-size: 1.65rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.02em; }
.ag-hero-sub { font-size: .82rem; opacity: .72; margin: 0; }
.ag-hero-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; z-index: 1; }

/* ── LIVE COUNTER ─────────────────────────────────────────────────────────── */
.ag-live {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px; padding: .45rem .9rem;
  white-space: nowrap;
}
.ag-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: agPulse 1.5s ease-out infinite;
}
@keyframes agPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.ag-live-label { font-size: .72rem; font-weight: 800; color: #4ade80; letter-spacing: .08em; }
.ag-live-time  { font-size: .7rem; color: rgba(255,255,255,0.65); }
.ag-live-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden; }
.ag-live-fill { height: 100%; background: #4ade80; border-radius: 99px; transition: width 1s linear; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.ag-btn-refresh {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; padding: .55rem 1.2rem;
  border-radius: 10px; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: .45rem;
  transition: all .2s; white-space: nowrap;
}
.ag-btn-refresh:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.ag-btn-refresh:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── KPI CARDS ────────────────────────────────────────────────────────────── */
.ag-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ag-kpi {
  background: #fff; border: 2px solid #e8edf5;
  border-radius: 16px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform .18s, box-shadow .18s;
}
.ag-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,78,160,0.1); }
.ag-kpi-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.ag-kpi-icon--blue   { background: #dbeafe; color: #1d4ed8; }
.ag-kpi-icon--green  { background: #d1fae5; color: #059669; }
.ag-kpi-icon--red    { background: #fee2e2; color: #dc2626; }
.ag-kpi-icon--orange { background: #ffedd5; color: #ea580c; }
.ag-kpi-value { font-size: 1.8rem; font-weight: 800; color: #1e293b; line-height: 1; }
.ag-kpi-label { font-size: .72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.ag-card {
  background: #fff; border: 2px solid #e8edf5;
  border-radius: 18px; padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
  min-width: 0; max-width: 100%; overflow: hidden;
}
.ag-card-title {
  font-size: .78rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.ag-count-badge {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff; border-radius: 99px;
  padding: .15rem .6rem; font-size: .7rem; font-weight: 700;
  margin-left: auto;
}
.ag-count-badge--purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* ── TOP DEMORADAS ────────────────────────────────────────────────────────── */
.ag-top-demora {
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 12px; padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.ag-top-label {
  font-size: .7rem; font-weight: 700; color: #7c3aed;
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .75rem;
}
.ag-top-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-top-chip {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid #e8edf5;
  border-radius: 10px; padding: .4rem .75rem;
  font-size: .78rem;
}
.ag-top-chip-rank {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ag-top-chip-name { color: #374151; font-weight: 500; }
.ag-top-chip-dur  { color: #7c3aed; font-weight: 700; font-size: .72rem; }

/* ── TABLE ────────────────────────────────────────────────────────────────── */
.ag-table-scroll {
  overflow-x: auto; border-radius: 12px;
  width: 100%; max-width: 100%;
}
.ag-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px;
  min-width: 700px;
}
.ag-table thead { background: linear-gradient(135deg, #f8faff, #f1f5fb); }
.ag-table th {
  padding: .75rem 1rem; font-size: .68rem;
  font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 2px solid #e8edf5;
  text-align: left; white-space: nowrap;
}
.ag-table td {
  padding: .7rem 1rem; font-size: .81rem;
  color: #374151; border-bottom: 1px solid #f1f5fb;
  vertical-align: middle;
}
.ag-table tbody tr:hover { background: #f8faff; }
.ag-table tbody tr:last-child td { border-bottom: none; }
.ag-row-running { background: linear-gradient(90deg, rgba(220,252,231,0.3), transparent) !important; }
.ag-row-running:hover { background: rgba(220,252,231,0.5) !important; }

/* ── COMPONENTS ───────────────────────────────────────────────────────────── */
.ag-code {
  font-family: monospace; font-size: .75rem;
  color: #0A4EA0; background: #eff6ff;
  padding: .15rem .4rem; border-radius: 5px;
}
.ag-server-badge {
  display: inline-flex; align-items: center;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  color: #15803d; border-radius: 8px;
  padding: .15rem .5rem; font-size: .72rem; font-weight: 700;
}
.ag-time-badge {
  display: inline-block;
  background: #faf5ff; border: 1.5px solid #e9d5ff;
  color: #7c3aed; border-radius: 8px;
  padding: .15rem .5rem; font-size: .72rem; font-weight: 700;
  font-family: monospace; white-space: nowrap;
}
.ag-desc-cell {
  max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ag-progress {
  display: flex; align-items: center; gap: .5rem;
  min-width: 100px;
}
.ag-progress-bar {
  height: 6px; border-radius: 99px;
  transition: width .3s ease; flex: 1;
  background: #0A4EA0;
}
.ag-progress-label { font-size: .72rem; font-weight: 700; color: #374151; white-space: nowrap; }

.ag-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 8px; padding: .2rem .55rem;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.ag-badge--ok      { background: #d1fae5; color: #065f46; }
.ag-badge--error   { background: #fee2e2; color: #991b1b; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ag-badge--neutral { background: #f1f5f9; color: #94a3b8; }

/* ── STATES ───────────────────────────────────────────────────────────────── */
.ag-loading {
  display: flex; align-items: center; gap: .75rem;
  color: #64748b; font-size: .85rem; padding: 2.5rem;
  justify-content: center;
}
.ag-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem; gap: .4rem; color: #374151; font-size: .88rem;
  text-align: center;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.ag-footer-time {
  font-size: .72rem; color: #94a3b8;
  display: flex; align-items: center; gap: .4rem;
  justify-content: flex-end; margin: 0;
}

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ag-page { padding: 1rem .9rem; }

  .ag-hero { padding: 1.35rem 1.1rem; border-radius: 16px; gap: 1rem; }
  .ag-hero::before { width: 170px; height: 170px; right: -70px; top: -70px; }
  .ag-hero::after { display: none; }
  .ag-hero-left { gap: .85rem; min-width: 0; }
  .ag-hero-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; }
  .ag-hero-title { font-size: 1.2rem; }
  .ag-hero-sub { font-size: .76rem; }
  .ag-hero-actions { width: 100%; gap: .5rem; }
  .ag-live { flex: 1; justify-content: center; padding: .45rem .6rem; }
  .ag-live-bar { display: none; }
  .ag-btn-refresh { flex: 1; justify-content: center; padding: .55rem .8rem; }

  /* Uma coluna: o minmax(180px,240px) deixava sobra e desalinhava no celular */
  .ag-kpis { grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1rem; }
  .ag-kpi { padding: .85rem .9rem; gap: .7rem; border-radius: 14px; }
  .ag-kpi-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
  .ag-kpi-value { font-size: 1.3rem; }
  .ag-kpi-label { font-size: .62rem; }

  .ag-card { padding: 1rem .9rem; border-radius: 14px; }
  .ag-card-title { margin-bottom: .9rem; font-size: .72rem; }
  .ag-count-badge { margin-left: 0; }

  .ag-table-scroll { -webkit-overflow-scrolling: touch; }
  .ag-table th { padding: .6rem .75rem; }
  .ag-table td { padding: .6rem .75rem; font-size: .78rem; }
  .ag-desc-cell { max-width: 160px; }

  .ag-top-demora { padding: .8rem .9rem; }
  .ag-footer-time { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .ag-kpis { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ────────────────────────────────────────────────────────────── */
.ag-table-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.ag-table-scroll::-webkit-scrollbar-track { background: #f1f5fb; }
.ag-table-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
/* CobrancaBasesDashboard.css — Premium Phobos Design */

.cb-page *, .cb-page *::before, .cb-page *::after { box-sizing: border-box; }
.cb-page :not(table):not(col):not(colgroup) { max-width: 100%; }

.cb-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
  width: 100%;
  overflow-x: hidden;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.cb-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px; padding: 2.5rem;
  color: #fff; margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(10,78,160,0.4);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; position: relative; overflow: hidden;
}
.cb-hero::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.cb-hero::after {
  content: ""; position: absolute; right: 80px; bottom: -80px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.cb-hero-left { display: flex; align-items: center; gap: 1.25rem; z-index: 1; flex: 1; min-width: 0; }
.cb-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: .85rem; z-index: 1; flex-shrink: 0; }
.cb-hero-stats { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cb-hstat {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: .75rem 1rem; text-align: center; min-width: 76px;
}
.cb-hstat--green { background: rgba(5,150,105,0.25);  border-color: rgba(5,150,105,0.4); }
.cb-hstat--red   { background: rgba(220,38,38,0.2);   border-color: rgba(220,38,38,0.35); }
.cb-hstat--blue  { background: rgba(10,78,160,0.35);  border-color: rgba(10,78,160,0.5); }
.cb-hstat--slate { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.cb-hstat--purple{ background: rgba(124,58,237,0.28); border-color: rgba(124,58,237,0.45); }
.cb-hstat--amber { background: rgba(217,119,6,0.28);  border-color: rgba(217,119,6,0.45); }
.cb-hstat-value { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.cb-hstat-label { font-size: .63rem; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.cb-hero-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.cb-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: .25rem .75rem;
  font-size: .75rem; font-weight: 600; color: #fff; margin-bottom: .5rem;
}
.cb-hero-title { font-size: 1.9rem; font-weight: 800; color: #fff; margin: 0 0 .3rem; }
.cb-hero-sub   { font-size: .9rem; color: rgba(255,255,255,0.72); margin: 0; }
.cb-hero-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 860px) {
  .cb-hero { flex-direction: column; align-items: flex-start; }
  .cb-hero-right { align-items: flex-start; width: 100%; }
  .cb-hero-stats { justify-content: flex-start; }
  .cb-hero-actions { justify-content: flex-start; }
}

/* ── LIVE ─────────────────────────────────────────────────────────────────── */
.cb-live {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: .45rem .9rem; white-space: nowrap;
}
.cb-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  animation: cbPulse 1.5s ease-out infinite;
}
@keyframes cbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.cb-live-label { font-size: .72rem; font-weight: 800; color: #4ade80; letter-spacing: .08em; }
.cb-live-time  { font-size: .7rem; color: rgba(255,255,255,0.6); }
.cb-live-bar   { width: 60px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden; }
.cb-live-fill  { height: 100%; background: #4ade80; border-radius: 99px; transition: width 1s linear; }

/* ── BUTTON ───────────────────────────────────────────────────────────────── */
.cb-btn-refresh {
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff; padding: .55rem 1.2rem; border-radius: 10px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: .45rem; transition: all .2s; white-space: nowrap;
}
.cb-btn-refresh:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.cb-btn-refresh:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── GRID ─────────────────────────────────────────────────────────────────── */
.cb-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .cb-grid-2 { grid-template-columns: 1fr; } }

/* ── CARD ─────────────────────────────────────────────────────────────────── */
.cb-card {
  background: #fff; border: 2px solid #e8edf5; border-radius: 18px;
  padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem; min-width: 0; max-width: 100%; overflow: visible;
}
.cb-card-title {
  font-size: .78rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.cb-count-badge {
  border-radius: 99px; padding: .15rem .6rem;
  font-size: .7rem; font-weight: 700; margin-left: auto;
  color: #fff;
}
.cb-count-badge--red   { background: linear-gradient(135deg, #dc2626, #ef4444); }
.cb-count-badge--green { background: linear-gradient(135deg, #059669, #10b981); }

/* ── SERVER LIST ──────────────────────────────────────────────────────────── */
.cb-server-list { display: flex; flex-direction: column; gap: .75rem; }
.cb-server-item {
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 10px; padding: .75rem 1rem;
}
.cb-server-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .4rem;
}
.cb-server-name { font-size: .82rem; font-weight: 600; color: #1e293b; }
.cb-server-name i { margin-right: .4rem; color: #0A4EA0; }
.cb-server-count-badge { font-size: .7rem; color: #64748b; font-weight: 600; }
.cb-server-bar-track { height: 6px; background: #e8edf5; border-radius: 99px; overflow: hidden; }
.cb-server-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0A4EA0, #1a6fd4); transition: width .4s ease; }

/* ── TIPO LIST ────────────────────────────────────────────────────────────── */
.cb-tipo-list { display: flex; flex-direction: column; gap: .65rem; }
.cb-tipo-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 10px; padding: .65rem 1rem;
}
.cb-tipo-badge {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; border-radius: 8px; padding: .2rem .6rem;
  font-size: .72rem; font-weight: 700;
}
.cb-tipo-count { font-size: .82rem; color: #374151; font-weight: 600; }

/* ── SEARCH ───────────────────────────────────────────────────────────────── */
.cb-search-wrap {
  display: flex; align-items: center; gap: .4rem;
  background: #f8faff; border: 1.5px solid #e8edf5;
  border-radius: 8px; padding: .3rem .75rem;
  margin-left: auto;
}
.cb-search-wrap i { color: #94a3b8; font-size: .78rem; }
.cb-search {
  border: none; background: transparent; font-size: .82rem;
  color: #374151; outline: none; width: 180px;
}

/* ── TABLE ────────────────────────────────────────────────────────────────── */
.cb-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  border-radius: 12px;
  border: 1.5px solid #e8edf5;
  width: 100%; max-width: 100%;
}
.cb-table {
  width: 100%; border-collapse: collapse;
  background: #fff; min-width: 600px;
}
.cb-table thead { background: linear-gradient(135deg, #f8faff, #f1f5fb); position: sticky; top: 0; z-index: 1; }
.cb-table th {
  padding: .75rem 1rem; font-size: .68rem; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 2px solid #e8edf5; text-align: left; white-space: nowrap;
}
.cb-table td {
  padding: .7rem 1rem; font-size: .81rem; color: #374151;
  border-bottom: 1px solid #f1f5fb; vertical-align: middle;
}
.cb-table tbody tr:hover { background: #f8faff; }
.cb-table tbody tr:last-child td { border-bottom: none; }

/* ── COMPONENTS ───────────────────────────────────────────────────────────── */
.cb-code {
  font-family: monospace; font-size: .75rem;
  color: #0A4EA0; background: #eff6ff;
  padding: .15rem .4rem; border-radius: 5px;
}
.cb-cnpj {
  font-family: monospace; font-size: .73rem;
  color: #475569; background: #f1f5f9;
  padding: .15rem .4rem; border-radius: 5px;
  white-space: nowrap;
}
.cb-desc-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-date-badge {
  display: inline-block; background: #f0fdf4; border: 1.5px solid #bbf7d0;
  color: #15803d; border-radius: 8px; padding: .15rem .5rem;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.cb-tipo-chip {
  display: inline-block; background: #faf5ff; border: 1.5px solid #e9d5ff;
  color: #7c3aed; border-radius: 8px; padding: .15rem .5rem;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.cb-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 8px; padding: .2rem .55rem;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.cb-badge--blocked { background: #fee2e2; color: #991b1b; }
.cb-badge--cnpj    { background: #fef3c7; color: #b45309; }
.cb-badge--fin     { background: #ffedd5; color: #9a3412; }
.cb-badge--inativa { background: #e2e8f0; color: #475569; }
.cb-badge--ok      { background: #ecfdf5; color: #047857; }
.cb-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }

/* ── CÉLULA DE CNPJ ───────────────────────────────────────────────────────── */
.cb-cnpj-cell { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.cb-cnpj-mais {
  background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1d4ed8;
  border-radius: 99px; padding: .1rem .45rem;
  font-size: .68rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cb-cnpj-mais:hover { background: #dbeafe; }
.cb-cnpj-vazio { color: #94a3b8; font-style: italic; font-size: .75rem; }

/* ── LINHA EXPANSÍVEL: os CNPJs da base ───────────────────────────────────── */
.cb-expandir {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 0 .4rem 0 0; font-size: .7rem; line-height: 1;
}
.cb-expandir:hover { color: #0A4EA0; }
.cb-row--aberta > td { background: #f8faff; }
.cb-row-expand > td { background: #f8faff; padding: 0 !important; }
.cb-empresas { padding: .75rem 1rem 1rem 2.2rem; }
/* ESTAPAR tem ~1.400 CNPJs: sem teto a linha expandida empurra a página inteira. */
.cb-empresas-scroll { max-height: 340px; overflow-y: auto; border-radius: 10px; }
.cb-empresas-head {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem;
}
.cb-empresas-head .cb-count-badge { margin-left: 0; }
.cb-empresas-vazio {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .8rem 1rem .8rem 2.2rem; font-size: .76rem; color: #64748b;
}
.cb-empresas-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cb-empresas-table th {
  text-align: left; padding: .45rem .7rem; font-size: .66rem; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .05em;
  background: #f1f5fb; border-bottom: 1.5px solid #e8edf5;
  position: sticky; top: 0; z-index: 1;
}
.cb-empresas-table td { padding: .4rem .7rem; font-size: .76rem; border-bottom: 1px solid #f1f5f9; }
.cb-empresas-table tbody tr:last-child td { border-bottom: none; }
.cb-empresa--inativa td { opacity: .6; }

/* ── FILTROS E AVISOS ─────────────────────────────────────────────────────── */
.cb-filtros { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.cb-filtro {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #f8fafc; border: 1.5px solid #e2e8f0; color: #475569;
  border-radius: 99px; padding: .3rem .8rem;
  font-size: .73rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.cb-filtro:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.cb-filtro--on { background: #0A4EA0; border-color: #0A4EA0; color: #fff; }
.cb-filtro--on:hover { background: #0A4EA0; border-color: #0A4EA0; color: #fff; }
.cb-filtro-hint { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: #94a3b8; }
.cb-aviso {
  background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: .6rem .85rem; font-size: .76rem; margin-bottom: .9rem;
}
.cb-aviso summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .45rem; }
.cb-aviso ul { margin: .5rem 0 0; padding-left: 1.4rem; }
.cb-aviso li { margin: .15rem 0; font-family: monospace; font-size: .71rem; }
.cb-aviso--erro { background: #fef2f2; border-color: #fecaca; color: #991b1b; display: flex; align-items: center; gap: .45rem; }

/* ── CÉLULA DE MÓDULOS ────────────────────────────────────────────────────── */
.cb-modulos { display: flex; flex-wrap: wrap; gap: .25rem; max-width: 260px; }
.cb-modulo-chip {
  background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #15803d;
  border-radius: 6px; padding: .1rem .4rem;
  font-size: .67rem; font-weight: 700; white-space: nowrap;
}
.cb-modulo-vazio { color: #94a3b8; }

/* ── CÉLULA DE OBSERVAÇÃO ─────────────────────────────────────────────────── */
.cb-obs-view {
  background: none; border: none; padding: .2rem .3rem;
  border-radius: 6px; text-align: left; cursor: pointer;
  font-size: .78rem; color: #374151; max-width: 240px;
  display: block; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .15s;
}
.cb-obs-view:hover { background: #f1f5f9; }
.cb-obs-view--vazia { color: #94a3b8; font-style: italic; }
.cb-obs-view--vazia i { margin-right: .3rem; font-size: .7rem; }

.cb-obs-edit { display: flex; flex-direction: column; gap: .35rem; min-width: 220px; }
.cb-obs-input {
  border: 1.5px solid #0A4EA0; border-radius: 8px;
  padding: .35rem .5rem; font-size: .78rem; color: #1e293b;
  outline: none; resize: vertical; font-family: inherit; width: 100%;
}
.cb-obs-actions { display: flex; gap: .3rem; }
.cb-obs-btn {
  border: 1.5px solid #e8edf5; background: #fff; color: #64748b;
  border-radius: 7px; padding: .25rem .6rem;
  font-size: .72rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.cb-obs-btn:hover { background: #f1f5f9; }
.cb-obs-btn--ok { background: linear-gradient(135deg, #0A4EA0, #1a6fd4); border-color: transparent; color: #fff; }
.cb-obs-btn--ok:hover { opacity: .9; background: linear-gradient(135deg, #0A4EA0, #1a6fd4); }
.cb-obs-btn--ok:disabled { opacity: .6; cursor: not-allowed; }
.cb-obs-btn i { margin-right: .25rem; }

/* ── STATES ───────────────────────────────────────────────────────────────── */
.cb-loading {
  display: flex; align-items: center; gap: .75rem;
  color: #64748b; font-size: .85rem; padding: 3rem;
  justify-content: center;
}
.cb-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.5rem; gap: .4rem; color: #94a3b8; font-size: .85rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.cb-footer-time {
  font-size: .72rem; color: #94a3b8;
  display: flex; align-items: center; gap: .4rem;
  justify-content: flex-end; margin: 0;
}

/* ── SCROLLBAR ────────────────────────────────────────────────────────────── */
.cb-table-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.cb-table-scroll::-webkit-scrollbar-track { background: #f1f5fb; }
.cb-table-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cb-table-scroll::-webkit-scrollbar-corner { background: #f1f5fb; }

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cb-page { padding: 1rem .9rem; }

  .cb-hero { padding: 1.35rem 1.1rem; border-radius: 16px; gap: 1rem; }
  .cb-hero::before { width: 180px; height: 180px; right: -70px; top: -70px; }
  .cb-hero::after { display: none; }
  .cb-hero-left { gap: .85rem; }
  .cb-hero-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; }
  .cb-hero-title { font-size: 1.25rem; }
  .cb-hero-sub { font-size: .78rem; }

  /* Os 4 stats viram grade 2x2 em vez de fila espremida */
  .cb-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
  .cb-hstat { min-width: 0; padding: .6rem .5rem; }
  .cb-hstat-value { font-size: 1.2rem; }
  .cb-hstat-label { font-size: .58rem; }

  .cb-hero-actions { width: 100%; gap: .5rem; }
  .cb-live { flex: 1; justify-content: center; padding: .45rem .6rem; }
  .cb-live-bar { display: none; }
  .cb-btn-refresh { flex: 1; justify-content: center; padding: .55rem .8rem; }

  .cb-grid-2 { gap: .9rem; margin-bottom: .9rem; }
  .cb-card { padding: 1rem .9rem; border-radius: 14px; }
  .cb-card-title { margin-bottom: .9rem; font-size: .72rem; }

  /* Busca sai da linha do título e ocupa a largura inteira */
  .cb-search-wrap { margin-left: 0; width: 100%; }
  .cb-search { width: 100%; }
  .cb-count-badge { margin-left: 0; }

  .cb-modulos { max-width: 150px; }
  .cb-obs-view { max-width: 150px; }
  .cb-obs-edit { min-width: 180px; }

  .cb-table-scroll { max-height: 320px; -webkit-overflow-scrolling: touch; }
  .cb-table th { padding: .6rem .75rem; }
  .cb-table td { padding: .6rem .75rem; font-size: .78rem; }
  .cb-desc-cell { max-width: 160px; }

  .cb-server-info { flex-wrap: wrap; gap: .25rem; }
  .cb-tipo-item { flex-wrap: wrap; gap: .4rem; }
  .cb-footer-time { justify-content: flex-start; }
}
/* ============================================================
   AceleratoDashboard.css — Design System Phobos
   Primary: #0A4EA0  Dark: #002b5e  Accent: #1a6fd4
   BG: #f1f5fb  Card: #fff  Border: #e8edf5
   ============================================================ */

/* Page */
.ac-page { padding: 1.75rem; min-height: 100vh; background: #f1f5fb; display: flex; flex-direction: column; gap: 1.25rem; }

/* ── HEADER ────────────────────────────────────────────────── */
.ac-header {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 50%, #1a6fd4 100%);
  border-radius: 20px; padding: 1.75rem 2rem; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,78,160,0.35);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ac-header::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none; }
.ac-header__left { display: flex; align-items: center; gap: 14px; }
.ac-header__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.ac-header h1 { margin: 0 0 2px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.ac-header p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.ac-header__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-equipe-filter { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 6px 12px; }
.ac-equipe-filter i { color: rgba(255,255,255,0.8); font-size: 0.78rem; }
.ac-equipe-filter select { background: transparent; border: none; color: #fff; font-size: 0.82rem; cursor: pointer; outline: none; font-weight: 600; }
.ac-equipe-filter select option { background: #0A4EA0; color: #fff; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.ac-btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 10px; padding: 8px 16px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; text-decoration: none; }
.ac-btn--primary { background: rgba(255,255,255,0.18); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px); }
.ac-btn--primary:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.ac-btn--ghost { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }
.ac-btn--ghost:hover { background: rgba(255,255,255,0.2); }
.ac-btn--sm { padding: 6px 12px; font-size: 0.78rem; }
.ac-btn--lg { padding: 13px 30px; font-size: 0.94rem; border-radius: 12px; background: linear-gradient(135deg, #0A4EA0, #002b5e) !important; color: #fff; border: none !important; box-shadow: 0 6px 20px rgba(10,78,160,.35); }
.ac-btn--lg:hover { opacity: .9; transform: translateY(-1px); }

/* ── TABS ─────────────────────────────────────────────────── */
.ac-tabs { display: flex; gap: 4px; background: #fff; border: 2px solid #e8edf5; border-radius: 14px; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-wrap: wrap; }
.ac-tab { display: flex; align-items: center; gap: 6px; background: none; border: none; border-radius: 10px; padding: 8px 16px; font-size: 0.8rem; font-weight: 600; color: #64748b; cursor: pointer; transition: all .18s; }
.ac-tab:hover { background: #f1f5fb; color: #0A4EA0; }
.ac-tab--active { background: linear-gradient(135deg, #0A4EA0, #1a6fd4) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(10,78,160,0.25); }
.ac-tab--active i { color: #fff !important; }
.ac-tab-badge { background: rgba(255,255,255,0.3); color: #fff; font-size: 0.68rem; font-weight: 700; border-radius: 99px; padding: 1px 6px; }
.ac-tab:not(.ac-tab--active) .ac-tab-badge { background: #e8edf5; color: #0A4EA0; }

/* ── CONTENT WRAPPER ───────────────────────────────────────── */
.ac-content { display: flex; flex-direction: column; gap: 16px; }

/* ── SECTION ──────────────────────────────────────────────── */
.ac-section { background: #fff; border: 2px solid #e8edf5; border-radius: 18px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.ac-section__title { margin: 0 0 18px; font-size: 0.88rem; font-weight: 700; color: #374151; display: flex; align-items: center; gap: 8px; }
.ac-section__title i { color: #0A4EA0; }

/* ── KPIs ─────────────────────────────────────────────────── */
.ac-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media(max-width:768px) { .ac-kpis { grid-template-columns: repeat(2,1fr); } }
.ac-kpi { background: #fff; border: 2px solid #e8edf5; border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all .2s; }
.ac-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.ac-kpi__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.ac-kpi--blue .ac-kpi__icon { background: #dbeafe; color: #1d4ed8; }
.ac-kpi--red .ac-kpi__icon { background: #fee2e2; color: #dc2626; }
.ac-kpi--orange .ac-kpi__icon { background: #ffedd5; color: #ea580c; }
.ac-kpi--green .ac-kpi__icon { background: #dcfce7; color: #16a34a; }
.ac-kpi__val { display: block; font-size: 1.8rem; font-weight: 800; color: #0f172a; line-height: 1; }
.ac-kpi__lbl { display: block; font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.ac-kpi--shimmer { background: linear-gradient(90deg,#f1f5fb 25%,#e8edf5 50%,#f1f5fb 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-color: transparent; min-height: 90px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── TIPOS ────────────────────────────────────────────────── */
.ac-tipos { display: flex; flex-direction: column; gap: 12px; }
.ac-tipo-row { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 12px; }
.ac-tipo-row__label { font-size: 0.82rem; color: #374151; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-tipo-row__bar-wrap { background: #f1f5fb; border-radius: 99px; height: 8px; overflow: hidden; }
.ac-tipo-row__bar { height: 100%; background: linear-gradient(90deg,#0A4EA0,#1a6fd4); border-radius: 99px; transition: width .5s; }
.ac-tipo-row__count { font-size: 0.8rem; font-weight: 700; color: #0A4EA0; text-align: right; }

/* ── EQUIPES GRID ─────────────────────────────────────────── */
.ac-equipes-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 10px; }
.ac-equipe-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all .18s; }
.ac-equipe-card:hover { border-color: #c7d9f5; background: #eff6ff; transform: translateY(-1px); }
.ac-equipe-card i { color: #0A4EA0; font-size: 1rem; margin-bottom: 4px; }
.ac-equipe-card strong { font-size: 0.83rem; color: #0f172a; }
.ac-equipe-card span { font-size: 0.72rem; color: #64748b; }

/* ── CTA IA ───────────────────────────────────────────────── */
.ac-ia-cta { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1.5px solid #bfdbfe; border-radius: 14px; padding: 16px 20px; cursor: pointer; transition: all .2s; }
.ac-ia-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,78,160,.12); border-color: #93c5fd; }
.ac-ia-cta > i:first-child { font-size: 1.4rem; color: #0A4EA0; flex-shrink: 0; }
.ac-ia-cta > i:last-child { color: #bfdbfe; margin-left: auto; }
.ac-ia-cta strong { font-size: 0.88rem; color: #1e40af; display: block; }
.ac-ia-cta p { font-size: 0.79rem; color: #3b82f6; margin: 0; }

/* ── FILTERS ──────────────────────────────────────────────── */
.ac-filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 2px solid #e8edf5; border-radius: 14px; padding: 10px 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ac-filter-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-filter-chips { display: flex; gap: 4px; background: #f1f5fb; border-radius: 10px; padding: 3px; }
.ac-chip { background: none; border: none; border-radius: 8px; padding: 5px 12px; font-size: 0.77rem; font-weight: 600; color: #64748b; cursor: pointer; transition: all .18s; }
.ac-chip:hover { background: #e8edf5; color: #0A4EA0; }
.ac-chip--active { background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; box-shadow: 0 3px 8px rgba(10,78,160,0.25); }
.ac-search { display: flex; align-items: center; gap: 8px; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 6px 12px; }
.ac-search i { color: #94a3b8; font-size: 0.8rem; }
.ac-search input { border: none; background: transparent; font-size: 0.83rem; outline: none; color: #1e293b; width: 180px; }
.ac-btn--primary.ac-btn--sm { background: linear-gradient(135deg,#0A4EA0,#002b5e); color: #fff; border: none; box-shadow: 0 3px 8px rgba(10,78,160,0.25); }
.ac-btn--primary.ac-btn--sm:hover { opacity: .9; transform: translateY(-1px); }

/* ── OPEN FORM ────────────────────────────────────────────── */
.ac-open-form { background: #fff; border: 2px solid #e8edf5; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 10px; }
.ac-open-form__header { display: flex; justify-content: space-between; align-items: center; }
.ac-open-form__header h3 { margin: 0; font-size: 0.9rem; font-weight: 700; color: #0A4EA0; }
.ac-open-form input, .ac-open-form textarea { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; color: #0f172a; outline: none; font-family: inherit; transition: border-color .15s; box-sizing: border-box; }
.ac-open-form input:focus, .ac-open-form textarea:focus { border-color: #0A4EA0; }
.ac-open-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-open-form__row select { flex: 1; min-width: 140px; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; background: #f8faff; outline: none; }
.ac-open-form .ac-btn--primary { background: linear-gradient(135deg,#0A4EA0,#002b5e); color: #fff; border: none; padding: 10px 18px; box-shadow: 0 3px 10px rgba(10,78,160,0.25); }

/* ── TABLE ────────────────────────────────────────────────── */
.ac-table-wrap { overflow-x: auto; }
.ac-table-count { font-size: 0.75rem; color: #94a3b8; padding: 0 0 10px; }
.ac-table { width: 100%; border-collapse: collapse; }
.ac-table thead { background: linear-gradient(135deg,#f8faff,#f1f5fb); }
.ac-table th { padding: 10px 14px; font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #e8edf5; text-align: left; white-space: nowrap; }
.ac-table td { padding: 11px 14px; font-size: 0.84rem; color: #374151; border-bottom: 1px solid #f1f5fb; vertical-align: middle; }
.ac-table tbody tr:last-child td { border-bottom: none; }
.ac-row--clickable { cursor: pointer; }
.ac-row--clickable:hover td { background: #f8faff; }
.ac-td-titulo { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-td-date { font-size: 0.76rem; color: #64748b; white-space: nowrap; }
.ac-ticket-num { color: #0A4EA0; font-weight: 800; font-size: 0.82rem; }
.ac-btn-icon { width: 30px; height: 30px; border-radius: 8px; border: none; display: flex; align-items: center; justify-content: center; font-size: 0.76rem; cursor: pointer; transition: all .18s; background: #e0f2fe; color: #0284c7; }
.ac-btn-icon:hover { background: #0284c7; color: #fff; }

/* ── BADGES ───────────────────────────────────────────────── */
.ac-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 3px 9px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-critical { background: #fee2e2; color: #991b1b; }
.badge-high     { background: #ffedd5; color: #9a3412; }
.badge-normal   { background: #dbeafe; color: #1e40af; }
.badge-low      { background: #dcfce7; color: #166534; }
.ac-tag { background: #f1f5fb; border: 1px solid #e2e8f0; color: #374151; border-radius: 6px; padding: 2px 8px; font-size: 0.73rem; font-weight: 500; }

/* ── LOADING / EMPTY / ERROR ──────────────────────────────── */
.ac-loading { display: flex; align-items: center; gap: 10px; padding: 3rem 2rem; justify-content: center; color: #94a3b8; font-size: 0.87rem; }
.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4rem 2rem; text-align: center; color: #94a3b8; }
.ac-empty p, .ac-empty small { margin: 0; }
.ac-error { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2rem; }
.ac-error i { color: #dc2626; font-size: 1.5rem; }
.ac-error p { margin: 0; font-size: 0.84rem; color: #64748b; }
.ac-error-inline { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fee2e2; border-radius: 10px; color: #991b1b; font-size: 0.84rem; }

/* ── KANBAN ───────────────────────────────────────────────── */
.ac-kanban { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.ac-kanban-col { background: #fff; border: 2px solid #e8edf5; border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ac-kanban-col__header { display: flex; justify-content: space-between; align-items: center; border-top: 3px solid #0A4EA0; padding-top: 10px; margin-bottom: 10px; }
.ac-kanban-col__title { font-size: 0.8rem; font-weight: 700; color: #374151; }
.ac-kanban-col__count { background: #dbeafe; color: #1e40af; border-radius: 99px; padding: 2px 10px; font-size: 0.8rem; font-weight: 800; }
.ac-kanban-col__bar-wrap { background: #f1f5fb; border-radius: 99px; height: 8px; overflow: hidden; }
.ac-kanban-col__bar { height: 100%; border-radius: 99px; transition: width .5s; }

/* ── WORKLOAD ─────────────────────────────────────────────── */
.ac-workload { display: flex; flex-direction: column; gap: 0; }
.ac-workload-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f1f5fb; }
.ac-workload-item:last-child { border-bottom: none; }
.ac-workload-item__avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.ac-workload-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-workload-item__info { min-width: 130px; }
.ac-workload-item__info strong { display: block; font-size: 0.84rem; color: #0f172a; }
.ac-workload-item__info span { font-size: 0.73rem; color: #64748b; }
.ac-workload-item__bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ac-workload-item__bar-row { display: grid; grid-template-columns: 80px 1fr 28px; align-items: center; gap: 8px; }
.lbl-exec, .lbl-wait { font-size: 0.72rem; color: #64748b; }
.bar-wrap { background: #f1f5fb; border-radius: 99px; height: 7px; overflow: hidden; }
.bar-exec { height: 100%; background: linear-gradient(90deg,#0A4EA0,#1a6fd4); border-radius: 99px; }
.bar-wait { height: 100%; background: linear-gradient(90deg,#94a3b8,#64748b); border-radius: 99px; }
.cnt { font-size: 0.72rem; font-weight: 700; color: #374151; text-align: right; }
.ac-workload-item__total { font-size: 0.84rem; font-weight: 800; color: #0A4EA0; min-width: 50px; text-align: right; }
.ac-workload-item__total small { font-size: 0.65rem; color: #94a3b8; font-weight: 400; }

/* ── CONFIG ───────────────────────────────────────────────── */
.ac-links-table-wrap { overflow-x: auto; }
.ac-user-cell { display: flex; align-items: center; gap: 10px; }
.ac-user-cell__avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.ac-user-cell > div > strong { display: block; font-size: 0.83rem; color: #0f172a; }
.ac-user-cell > div > span { font-size: 0.72rem; color: #64748b; }
.ac-agent-select { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 7px 10px; font-size: 0.82rem; background: #f8faff; outline: none; cursor: pointer; }
.ac-agent-select:focus { border-color: #0A4EA0; }

/* ── MODAL ────────────────────────────────────────────────── */
.ac-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.ac-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 860px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.15); animation: slideUp .2s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.ac-modal__header { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px 14px; border-bottom: 2px solid #f1f5fb; flex-wrap: wrap; }
.ac-modal__title { flex: 1; font-size: 0.95rem; font-weight: 700; color: #0f172a; display: flex; gap: 8px; align-items: flex-start; }
.ac-modal__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-modal__actions { display: flex; gap: 8px; align-items: center; }
.ac-modal__close { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #f8faff; color: #64748b; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.ac-modal__close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.ac-btn--ghost.ac-btn--sm { background: #f8faff; color: #0A4EA0; border: 1.5px solid #e2e8f0; }
.ac-btn--ghost.ac-btn--sm:hover { background: #dbeafe; border-color: #93c5fd; }
.ac-modal__body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.ac-modal__info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; background: #f8faff; border: 1.5px solid #e8edf5; border-radius: 12px; padding: 16px 18px; }
@media(max-width:600px) { .ac-modal__info-grid { grid-template-columns: repeat(2,1fr); } }
.ac-modal__info-grid > div { display: flex; flex-direction: column; gap: 3px; }
.ac-modal__info-grid label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ac-modal__info-grid span { font-size: 0.83rem; color: #0f172a; font-weight: 600; }
.ac-modal__descricao label { font-size: 0.78rem; font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ac-modal__descricao-text { background: #f8faff; border: 1.5px solid #e8edf5; border-radius: 10px; padding: 14px 16px; font-size: 0.82rem; color: #374151; max-height: 200px; overflow-y: auto; line-height: 1.6; }
.ac-modal__descricao-text * { font-family: inherit !important; font-size: 0.82rem !important; max-width: 100%; }
.ac-modal__timeline label { font-size: 0.78rem; font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ac-comments { display: flex; flex-direction: column; gap: 0; }
.ac-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f5fb; }
.ac-comment:last-child { border-bottom: none; }
.ac-comment--private { background: #fffbeb; border-radius: 10px; padding: 12px; border: 1px solid #fde68a; }
.ac-comment__avatar { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; }
.ac-comment__content { flex: 1; min-width: 0; }
.ac-comment__header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ac-comment__header strong { font-size: 0.83rem; color: #0f172a; }
.ac-comment__time { font-size: 0.72rem; color: #94a3b8; }
.ac-comment__text { font-size: 0.82rem; color: #374151; line-height: 1.55; }
.ac-comment__text * { font-family: inherit !important; font-size: inherit !important; }
.ac-comment__text p { margin: 0 0 4px; }
.ac-modal__resposta { border-top: 2px solid #f1f5fb; padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.ac-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #64748b; cursor: pointer; }
.ac-toggle input { accent-color: #0A4EA0; }
.ac-modal__resposta-row { display: flex; gap: 10px; align-items: flex-end; }
.ac-modal__textarea { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.83rem; color: #0f172a; resize: none; outline: none; font-family: inherit; transition: border-color .15s; }
.ac-modal__textarea:focus { border-color: #0A4EA0; }

/* ═══════════════════════════════════════════════════
   ABA IA — Design Premium
   ═══════════════════════════════════════════════════ */

/* Landing */
.ac-ia-landing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 32px; min-height: 420px; gap: 20px; }
.ac-ia-landing__icon { position: relative; width: 88px; height: 88px; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); border-radius: 28px; display: grid; place-items: center; margin-bottom: 4px; box-shadow: 0 12px 32px rgba(10,78,160,.35); }
.ac-ia-landing__icon i { font-size: 2.2rem; color: #fff; }
.ac-ia-landing__pulse { position: absolute; inset: -10px; border-radius: 36px; border: 2px solid rgba(10,78,160,.2); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.1); opacity: .15; } }
.ac-ia-landing h2 { font-size: 1.5rem; color: #0f172a; font-weight: 800; margin: 0; }
.ac-ia-landing > p { font-size: 0.88rem; color: #64748b; max-width: 460px; margin: 0; line-height: 1.6; }
.ac-ia-landing__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; background: #f8faff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 16px 20px; }
.ac-ia-landing__features li { font-size: 0.84rem; color: #1e40af; display: flex; align-items: center; gap: 10px; }
.ac-ia-landing__features li i { color: #0A4EA0; font-size: 0.75rem; background: #dbeafe; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.ac-ia-landing__hint { font-size: 0.72rem; color: #94a3b8; }

/* Loading */
.ac-ia-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 32px; gap: 20px; text-align: center; min-height: 420px; }
.ac-ia-loading__orb { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); animation: orbPulse 1.5s ease-in-out infinite; box-shadow: 0 0 40px rgba(10,78,160,.45); }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); opacity: .7; } }
.ac-ia-loading h3 { color: #0f172a; font-size: 1.15rem; font-weight: 800; margin: 0; }
.ac-ia-loading > p { color: #64748b; font-size: 0.85rem; margin: 0; }
.ac-ia-loading__steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.ac-ia-loading__steps span { font-size: 0.74rem; color: #0A4EA0; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 99px; padding: 5px 14px; display: flex; align-items: center; gap: 5px; animation: stepFade 2s ease-in-out infinite; }
.ac-ia-loading__steps span:nth-child(2) { animation-delay: .6s; }
.ac-ia-loading__steps span:nth-child(3) { animation-delay: 1.2s; }
@keyframes stepFade { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* Error */
.ac-ia-error { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 32px; text-align: center; }
.ac-ia-error i { font-size: 2.5rem; color: #dc2626; }
.ac-ia-error h3 { margin: 0; color: #0f172a; font-size: 1.15rem; }
.ac-ia-error > p { color: #64748b; font-size: 0.84rem; max-width: 400px; margin: 0; }

/* Content wrapper */
.ac-ia-content { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 8px; }

/* Header da análise */
.ac-ia-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 2px solid #e8edf5; border-radius: 14px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.ac-ia-header__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-ia-badge { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; border-radius: 99px; padding: 5px 14px; }
.ac-ia-meta { font-size: 0.76rem; color: #64748b; }
.ac-ia-rag-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; color: #1e40af; background: #dbeafe; border: 1px solid #bfdbfe; border-radius: 99px; padding: 3px 10px; }
.ac-ia-tokens { font-size: 0.7rem; color: #94a3b8; background: #f8faff; border: 1px solid #e2e8f0; border-radius: 99px; padding: 3px 9px; }
.ac-ia-header .ac-btn--ghost { background: #f8faff; color: #0A4EA0; border: 1.5px solid #e2e8f0; }
.ac-ia-header .ac-btn--ghost:hover { background: #dbeafe; }

/* Resumo executivo */
.ac-ia-resumo { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1.5px solid #bfdbfe; border-radius: 16px; padding: 18px 22px; }
.ac-ia-resumo i { font-size: 1.25rem; color: #0A4EA0; flex-shrink: 0; padding-top: 2px; }
.ac-ia-resumo p { margin: 0; font-size: 0.88rem; color: #1e40af; line-height: 1.65; font-weight: 500; }

/* Alertas */
.ac-ia-alertas { display: flex; flex-direction: column; gap: 10px; }
.ac-ia-alerta { display: flex; align-items: flex-start; gap: 14px; border: 1.5px solid; border-radius: 14px; padding: 14px 18px; animation: fadeIn .3s ease; }
.ac-ia-alerta > i { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.ac-ia-alerta strong { display: block; font-size: 0.85rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ac-ia-alerta p { margin: 0; font-size: 0.81rem; color: #374151; line-height: 1.55; }

/* Métricas */
.ac-ia-metricas { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; }
.ac-ia-metrica { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid #e8edf5; border-radius: 16px; padding: 18px 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .2s; }
.ac-ia-metrica:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ac-ia-metrica > i { color: #0A4EA0; font-size: 1.1rem; }
.ac-ia-metrica__val { font-size: 1.45rem; font-weight: 900; color: #0f172a; line-height: 1; }
.ac-ia-metrica > span:last-child { font-size: 0.67rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.ac-ia-metrica--warn { border-color: #fde68a; background: linear-gradient(135deg,#fffbeb,#fef9c3); }
.ac-ia-metrica--warn > i, .ac-ia-metrica--warn .ac-ia-metrica__val { color: #ca8a04; }
.ac-ia-metrica--danger { border-color: #fca5a5; background: linear-gradient(135deg,#fff5f5,#fee2e2); }
.ac-ia-metrica--danger > i, .ac-ia-metrica--danger .ac-ia-metrica__val { color: #dc2626; }

/* Grid de cards */
.ac-ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:768px) { .ac-ia-grid { grid-template-columns: 1fr; } }

/* Card genérico */
.ac-ia-card { background: #fff; border: 2px solid #e8edf5; border-radius: 18px; padding: 22px 24px; animation: fadeIn .3s ease; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.ac-ia-card--full { grid-column: 1/-1; }
.ac-ia-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #f1f5fb; }
.ac-ia-card__header > i { font-size: 1rem; color: #0A4EA0; }
.ac-ia-card__header h3 { margin: 0; font-size: 0.9rem; font-weight: 800; color: #0f172a; flex: 1; }

/* Card RAG */
.ac-ia-card--rag { border-color: #c7d9f5; background: linear-gradient(to bottom, #fafcff, #fff); }

/* Soluções RAG */
.ac-ia-solucoes { display: flex; flex-direction: column; gap: 4px; }
.ac-ia-solucao { border-radius: 12px; overflow: hidden; border: 1.5px solid #f1f5fb; transition: border-color .15s; }
.ac-ia-solucao:hover { border-color: #e2e8f0; }
.ac-ia-solucao__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background .15s; }
.ac-ia-solucao__head:hover { background: #f8faff; }
.ac-ia-solucao--open .ac-ia-solucao__head { background: #f8faff; border-bottom: 1.5px solid #e8edf5; }
.ac-ia-solucao__left { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ac-ia-solucao__titulo { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.ac-ia-solucao__problema { font-size: 0.78rem; color: #64748b; }
.ac-ia-solucao__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ac-ia-solucao__conf { font-size: 0.74rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ac-ia-solucao__body { padding: 16px 18px 18px; background: #fafcff; animation: fadeIn .2s ease; }
.ac-ia-solucao__texto { font-size: 0.83rem; color: #374151; line-height: 1.65; margin: 0 0 14px; }
.ac-ia-solucao__passos { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.ac-ia-solucao__passos li { font-size: 0.83rem; color: #374151; line-height: 1.55; }
.ac-ia-solucao__fonte { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: #64748b; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; }
.ac-ia-solucao__fonte i { color: #0A4EA0; }
.ac-ia-solucao__fonte strong { color: #0A4EA0; }

/* Lacunas */
.ac-ia-lacunas { display: flex; flex-direction: column; gap: 0; }
.ac-ia-lacuna { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1.5px solid #f8faff; }
.ac-ia-lacuna:last-child { border-bottom: none; }
.ac-ia-lacuna__icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#fef3c7,#fde68a); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(202,138,4,.15); }
.ac-ia-lacuna__icon i { color: #92400e; font-size: 0.9rem; }
.ac-ia-lacuna__info { flex: 1; min-width: 0; }
.ac-ia-lacuna__info strong { display: block; font-size: 0.85rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.ac-ia-lacuna__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ac-ia-lacuna__info p { margin: 0; font-size: 0.8rem; color: #64748b; line-height: 1.55; }

/* Tópicos */
.ac-ia-topicos { display: flex; flex-direction: column; gap: 16px; }
.ac-ia-topico__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ac-ia-topico__nome { font-size: 0.84rem; font-weight: 600; color: #0f172a; }
.ac-ia-topico__count { font-size: 0.78rem; color: #64748b; font-weight: 700; }
.ac-ia-bar-wrap { background: #f1f5fb; border-radius: 99px; height: 9px; overflow: hidden; margin-bottom: 4px; }
.ac-ia-bar { height: 100%; background: linear-gradient(90deg,#0A4EA0,#1a6fd4); border-radius: 99px; transition: width .7s ease; }
.ac-ia-topico__desc { font-size: 0.74rem; color: #94a3b8; }

/* Problemas */
.ac-ia-problemas { display: flex; flex-direction: column; gap: 0; }
.ac-ia-problema { padding: 14px 0; border-bottom: 1.5px solid #f8faff; }
.ac-ia-problema:last-child { border-bottom: none; }
.ac-ia-problema__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 5px; }
.ac-ia-problema__titulo { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.ac-ia-problema__freq { font-size: 0.71rem; color: #94a3b8; margin-bottom: 5px; display: block; }
.ac-ia-problema__desc { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.55; }

/* Dicas */
.ac-ia-dicas { display: flex; flex-direction: column; gap: 0; }
.ac-ia-dica { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1.5px solid #f8faff; }
.ac-ia-dica:last-child { border-bottom: none; }
.ac-ia-dica__icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#dbeafe,#bfdbfe); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(10,78,160,.1); }
.ac-ia-dica__icon i { color: #0A4EA0; font-size: 0.9rem; }
.ac-ia-dica__content strong { font-size: 0.85rem; color: #0f172a; display: block; margin-bottom: 5px; }
.ac-ia-dica__content p { font-size: 0.8rem; color: #64748b; margin: 0 0 8px; line-height: 1.55; }
.ac-ia-categoria { font-size: 0.67rem; color: #1e40af; background: #dbeafe; border-radius: 99px; padding: 3px 9px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* Padrões */
.ac-ia-padroes { display: flex; flex-direction: column; gap: 0; }
.ac-ia-padrao { padding: 14px 0; border-bottom: 1.5px solid #f8faff; }
.ac-ia-padrao:last-child { border-bottom: none; }
.ac-ia-padrao__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.ac-ia-padrao__top strong { font-size: 0.85rem; color: #0f172a; font-weight: 700; }
.ac-ia-tendencia { font-size: 0.74rem; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ac-ia-padrao > p { font-size: 0.8rem; color: #64748b; margin: 0 0 6px; line-height: 1.55; }
.ac-ia-padrao__acao { font-size: 0.78rem; color: #0A4EA0; background: #eff6ff; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* Agentes */
.ac-ia-agentes { display: flex; flex-direction: column; gap: 0; }
.ac-ia-agente { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid #f8faff; }
.ac-ia-agente:last-child { border-bottom: none; }
.ac-ia-agente__avatar { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(10,78,160,.25); }
.ac-ia-agente__info strong { font-size: 0.85rem; color: #0f172a; display: block; margin-bottom: 2px; }
.ac-ia-agente__info span { font-size: 0.75rem; color: #64748b; display: block; }
.ac-ia-agente__info > p { font-size: 0.78rem; color: #94a3b8; margin: 4px 0 0; }

@media(max-width:768px) { .ac-table-wrap { overflow-x: auto; } }

/* ── HISTÓRICO TIMELINE ───────────────────────────────────────── */
.ac-historico-timeline { display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 20px; }
.ac-historico-timeline::before { content: ""; position: absolute; left: 24px; top: 10px; bottom: 0; width: 2px; background: #e2e8f0; border-radius: 2px; }

.ac-historico-item { display: flex; gap: 16px; position: relative; animation: fadeIn .3s ease; }
.ac-historico-timeline__line { position: relative; width: 10px; flex-shrink: 0; display: flex; justify-content: center; }
.ac-historico-timeline__dot { position: relative; width: 14px; height: 14px; background: #fff; border: 3px solid #cbd5e1; border-radius: 50%; top: 18px; z-index: 2; transition: all .2s; }
.ac-historico-item:hover .ac-historico-timeline__dot { border-color: #0A4EA0; transform: scale(1.1); }
.ac-historico-item--latest .ac-historico-timeline__dot { border-color: #10b981; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }

.ac-historico-card { flex: 1; min-width: 0; background: #fff; border: 2px solid #e8edf5; border-radius: 16px; padding: 16px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: all .2s; }
.ac-historico-item--latest .ac-historico-card { border-color: #a7f3d0; box-shadow: 0 4px 16px rgba(16,185,129,0.08); }

.ac-historico-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.ac-historico-card__left { display: flex; flex-direction: column; gap: 6px; }
.ac-historico-card__date { font-size: 1rem; color: #0f172a; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ac-historico-card__kpis { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; font-weight: 600; color: #64748b; }
.ac-historico-card__kpis span { display: flex; align-items: center; gap: 4px; }

.ac-historico-card__resumo { margin: 12px 0 0; font-size: 0.85rem; color: #374151; line-height: 1.5; background: #f8faff; padding: 10px 14px; border-radius: 10px; border-left: 3px solid #0A4EA0; }

.ac-historico-comp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.ac-ia-comp__tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; border-radius: 6px; padding: 3px 8px; background: #f1f5fb; color: #475569; }
.ac-ia-comp__tag--up { background: #fee2e2; color: #991b1b; } /* Bad delta by default */
.ac-ia-comp__tag--down { background: #dcfce7; color: #166534; } /* Good delta by default */

.ac-historico-card__body { margin-top: 16px; padding-top: 16px; border-top: 2px solid #f1f5fb; display: flex; flex-direction: column; gap: 20px; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.ac-historico-section h4 { margin: 0 0 10px; font-size: 0.84rem; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.ac-historico-section h4 i { color: #0A4EA0; }

/* ── COMPARAÇÃO COM ANÁLISE ANTERIOR ────────────────────────── */
.ac-ia-comp { border-color: #c7d9f5; }
.ac-ia-card.ac-ia-comp .ac-ia-card__header { margin-bottom: 16px; }

/* Grid de itens de comparação */
.ac-ia-comp__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ac-ia-comp__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  flex: 1;
  min-width: 160px;
}

.ac-ia-comp__item > i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ac-ia-comp__val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-right: 4px;
}

.ac-ia-comp__item--up {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #7f1d1d;
}
.ac-ia-comp__item--up > i { color: #dc2626; }
.ac-ia-comp__item--up .ac-ia-comp__val { color: #dc2626; }

.ac-ia-comp__item--down {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}
.ac-ia-comp__item--down > i { color: #16a34a; }
.ac-ia-comp__item--down .ac-ia-comp__val { color: #16a34a; }

.ac-ia-comp__item--same {
  background: #f8faff;
  border-color: #e2e8f0;
  color: #64748b;
}
.ac-ia-comp__item--same > i { color: #94a3b8; }
.ac-ia-comp__item--same .ac-ia-comp__val { color: #64748b; }

/* Tags de tópicos que mudaram */
.ac-ia-comp__topicos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed #e2e8f0;
}

/* Métricas alteradas */
.ac-ia-comp__metricas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-ia-comp__metrica {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.ac-ia-comp__metrica > i.fa-arrow-right {
  color: #94a3b8;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ac-ia-comp__metrica-campo {
  font-weight: 700;
  color: #374151;
  min-width: 130px;
  text-transform: capitalize;
  /* Traduz camelCase para legível */
}

.ac-ia-comp__metrica-ant {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.ac-ia-comp__metrica-nov {
  font-weight: 800;
  color: #0A4EA0;
  font-size: 0.88rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Tela de operação do Acelerato (reformulação)
   Prefixo acx-* — as classes ac-* acima seguem servindo às abas de IA.
   ═══════════════════════════════════════════════════════════════════════════ */

.acx-page,
.acx-modal-overlay {
  --acx-primary: #0A4EA0;
  --acx-ink: #0f172a;
  --acx-ink-2: #475569;
  --acx-muted: #94a3b8;
  --acx-line: #e6ebf3;
  --acx-surface: #fff;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--acx-ink);
}

.acx-page { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.acx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.acx-header__id { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.acx-header__icone {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--acx-primary), #002b5e);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.acx-header__id h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.acx-header__id p { margin: 2px 0 0; font-size: 0.8rem; color: var(--acx-muted); }
.acx-header__acoes { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.acx-select {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  height: 38px;
  border: 1px solid var(--acx-line);
  border-radius: 10px;
  background: var(--acx-surface);
  color: var(--acx-ink-2);
  font-size: 0.82rem;
}
.acx-select i { color: var(--acx-muted); font-size: 0.75rem; }
.acx-select select {
  border: none;
  background: none;
  outline: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  max-width: 190px;
}

.acx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.95rem;
  border: 1px solid var(--acx-line);
  border-radius: 10px;
  background: var(--acx-surface);
  color: var(--acx-ink-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.acx-btn:hover:not(:disabled) { border-color: #cfdcee; color: var(--acx-primary); }
.acx-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.acx-btn--primary {
  background: var(--acx-primary);
  border-color: var(--acx-primary);
  color: #fff;
}
.acx-btn--primary:hover:not(:disabled) { background: #08417f; color: #fff; }
.acx-btn--ghost { background: transparent; }
.acx-btn--perigo { background: #dc2626; border-color: #dc2626; color: #fff; }
.acx-btn--perigo:hover:not(:disabled) { background: #b91c1c; color: #fff; }
.acx-btn--sm { height: 32px; padding: 0 0.7rem; font-size: 0.76rem; }

.acx-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--acx-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* ── Abas ────────────────────────────────────────────────────────────────── */

.acx-abas {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--acx-line);
  overflow-x: auto;
}
.acx-aba {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--acx-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.acx-aba:hover { color: var(--acx-ink-2); }
.acx-aba.is-ativa { color: var(--acx-primary); border-bottom-color: var(--acx-primary); }
.acx-aba i { font-size: 0.8rem; }
.acx-aba__badge {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--acx-ink-2);
  font-size: 0.7rem;
  font-weight: 800;
}
.acx-aba.is-ativa .acx-aba__badge { background: #e6effb; color: var(--acx-primary); }

.acx-conteudo { display: flex; flex-direction: column; gap: 1.15rem; }

/* ── Resumo em números ───────────────────────────────────────────────────── */

.acx-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--acx-line);
  border: 1px solid var(--acx-line);
  border-radius: 14px;
  overflow: hidden;
}
.acx-resumo__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.9rem 1.1rem;
  background: var(--acx-surface);
}
.acx-resumo__item strong { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.acx-resumo__item span { font-size: 0.73rem; color: var(--acx-muted); }
.acx-resumo__item.is-alerta strong { color: #b91c1c; }
.acx-resumo__item.is-suave strong { color: var(--acx-muted); }

/* ── Barra de ações e filtros ────────────────────────────────────────────── */

.acx-barra-acoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.acx-filtros {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.acx-chips { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.acx-chips--sub { padding-bottom: 0.25rem; }
.acx-chips__acao { margin-left: auto; }

.acx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.85rem;
  border: 1px solid var(--acx-line);
  border-radius: 999px;
  background: var(--acx-surface);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--acx-ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}
.acx-chip:hover { border-color: #cfdcee; }
.acx-chip.is-ativo { background: var(--acx-primary); border-color: var(--acx-primary); color: #fff; }

.acx-busca {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  height: 38px;
  padding: 0 0.8rem;
  border: 1px solid var(--acx-line);
  border-radius: 10px;
  background: var(--acx-surface);
}
.acx-busca i { color: var(--acx-muted); font-size: 0.78rem; }
.acx-busca input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 0.83rem;
  padding: 0 0.6rem;
  color: var(--acx-ink);
}
.acx-busca button {
  border: none;
  background: none;
  color: var(--acx-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.acx-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.79rem;
  color: var(--acx-ink-2);
  cursor: pointer;
}
.acx-check input { width: 15px; height: 15px; accent-color: var(--acx-primary); cursor: pointer; }

/* ── Lista da fila ───────────────────────────────────────────────────────── */

.acx-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.acx-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem 0.95rem 1.35rem;
  border: 1px solid var(--acx-line);
  border-radius: 14px;
  background: var(--acx-surface);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.acx-item:hover { border-color: #cfdcee; box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.5); }

/* A faixa lateral é a leitura rápida da urgência calculada */
.acx-item__faixa { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #cbd5e1; }
.acx-item.is-critico .acx-item__faixa { background: #dc2626; }
.acx-item.is-alto .acx-item__faixa { background: #ea580c; }
.acx-item.is-medio .acx-item__faixa { background: #f59e0b; }

.acx-item--skeleton {
  height: 92px;
  border-style: dashed;
  background: linear-gradient(90deg, #f8fafc 25%, #eef2f7 37%, #f8fafc 63%);
  background-size: 400% 100%;
  animation: acx-shimmer 1.3s ease infinite;
}
@keyframes acx-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.acx-item__espera {
  flex-shrink: 0;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.acx-item__espera strong { font-size: 1rem; font-weight: 800; color: var(--acx-ink-2); }
.acx-item__espera span { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--acx-muted); }
.acx-item.is-critico .acx-item__espera strong,
.acx-item.is-critico .acx-item__espera span { color: #b91c1c; }
.acx-item.is-alto .acx-item__espera strong { color: #c2410c; }

.acx-item__corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.acx-item__titulo { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.acx-item__key { font-size: 0.75rem; font-weight: 800; color: var(--acx-primary); flex-shrink: 0; }
.acx-item__titulo button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--acx-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acx-item__titulo button:hover { color: var(--acx-primary); text-decoration: underline; }

.acx-item__motivo {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--acx-ink-2);
}
.acx-item__motivo i { font-size: 0.68rem; color: var(--acx-muted); }
.acx-item.is-critico .acx-item__motivo { color: #b91c1c; font-weight: 600; }
.acx-item.is-critico .acx-item__motivo i { color: #dc2626; }

.acx-item__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.acx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acx-tag i { font-size: 0.62rem; }
.acx-tag--ok { background: #ecfdf5; color: #047857; }
.acx-tag--privado { background: #fef3c7; color: #92400e; }
.acx-tag--prio.is-critica { background: #fee2e2; color: #b91c1c; }
.acx-tag--prio.is-urgente { background: #fee2e2; color: #b91c1c; }
.acx-tag--prio.is-alta    { background: #ffedd5; color: #c2410c; }
.acx-tag--prio.is-media   { background: #e0f2fe; color: #0369a1; }
.acx-tag--prio.is-baixa   { background: #f1f5f9; color: #64748b; }

.acx-item__acoes { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }

.acx-nivel {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
}
.acx-nivel--critico { background: #fee2e2; color: #b91c1c; }
.acx-nivel--alto { background: #ffedd5; color: #c2410c; }
.acx-nivel--medio { background: #fef3c7; color: #92400e; }

/* ── Avisos e vazios ─────────────────────────────────────────────────────── */

.acx-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 14px;
}
.acx-aviso i { color: #b45309; font-size: 1.1rem; margin-top: 2px; }
.acx-aviso strong { display: block; font-size: 0.88rem; }
.acx-aviso p { margin: 3px 0 0; font-size: 0.8rem; color: var(--acx-ink-2); }
.acx-aviso--erro { border-color: #fecaca; background: #fef2f2; }
.acx-aviso--erro i { color: #b91c1c; }

.acx-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2.75rem 1rem;
  border: 1px dashed var(--acx-line);
  border-radius: 14px;
  text-align: center;
  color: var(--acx-muted);
}
.acx-vazio i { font-size: 1.6rem; color: #cbd5e1; }
.acx-vazio h4 { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--acx-ink-2); }
.acx-vazio p { margin: 0; font-size: 0.8rem; }

/* ── Cartões, KPIs e distribuições ───────────────────────────────────────── */

/* 6 indicadores: 6 lado a lado, 3x2 ou 2x3 — auto-fit deixava o sexto sozinho numa fileira */
.acx-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}
@media (max-width: 1300px) { .acx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acx-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--acx-line);
  border-radius: 14px;
  background: var(--acx-surface);
  border-left: 3px solid var(--acx-primary);
}
.acx-kpi__rotulo { font-size: 0.75rem; font-weight: 600; color: var(--acx-ink-2); }
.acx-kpi strong { font-size: 1.7rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.acx-kpi__nota { font-size: 0.7rem; color: var(--acx-muted); }
.acx-kpi.is-perigo { border-left-color: #dc2626; }
.acx-kpi.is-perigo strong { color: #b91c1c; }
.acx-kpi.is-atencao { border-left-color: #f59e0b; }
.acx-kpi.is-atencao strong { color: #b45309; }
.acx-kpi.is-suave { border-left-color: #cbd5e1; }
.acx-kpi.is-suave strong { color: var(--acx-ink-2); }

.acx-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }

.acx-card {
  border: 1px solid var(--acx-line);
  border-radius: 14px;
  background: var(--acx-surface);
  overflow: hidden;
}
.acx-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--acx-line);
}
.acx-card__head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.acx-card__head h3 i { color: var(--acx-primary); font-size: 0.8rem; }
.acx-card__nota { font-size: 0.72rem; color: var(--acx-muted); }
.acx-card__corpo { padding: 1rem 1.15rem; }

.acx-texto { margin: 0 0 0.9rem; font-size: 0.82rem; color: var(--acx-ink-2); line-height: 1.5; }

.acx-barras { display: flex; flex-direction: column; gap: 0.55rem; }
.acx-barra { display: flex; align-items: center; gap: 0.7rem; }
.acx-barra__rotulo {
  width: 195px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--acx-ink-2);
  min-width: 0;
}
.acx-barra__rotulo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acx-barra__rotulo em {
  flex-shrink: 0;
  font-style: normal;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--acx-muted);
  font-size: 0.62rem;
  font-weight: 700;
}
.acx-barra__trilho { flex: 1; height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.acx-barra__preenchimento { display: block; height: 100%; border-radius: 999px; }
.acx-barra__valor { width: 42px; text-align: right; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.acx-tabela { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.acx-tabela th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--acx-muted);
  border-bottom: 1px solid var(--acx-line);
}
.acx-tabela td { padding: 0.6rem; border-bottom: 1px solid #f4f7fb; vertical-align: middle; }
.acx-tabela tr:last-child td { border-bottom: none; }
.acx-tabela td.is-perigo { color: #b91c1c; font-weight: 700; }
.acx-tabela td.is-suave { color: var(--acx-muted); }

.acx-mini-barra {
  display: inline-block;
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  margin-right: 0.5rem;
  overflow: hidden;
  vertical-align: middle;
}
.acx-mini-barra span { display: block; height: 100%; background: var(--acx-primary); }

.acx-usuario { display: flex; align-items: center; gap: 0.6rem; }
.acx-usuario__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f8;
  color: var(--acx-primary);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.acx-usuario div { display: flex; flex-direction: column; }
.acx-usuario span { font-size: 0.72rem; color: var(--acx-muted); }

.acx-agente-select {
  height: 34px;
  padding: 0 0.6rem;
  border: 1px solid var(--acx-line);
  border-radius: 8px;
  background: var(--acx-surface);
  font: inherit;
  font-size: 0.8rem;
  color: var(--acx-ink-2);
  cursor: pointer;
  min-width: 200px;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.acx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.acx-modal {
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--acx-surface, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.acx-modal--estreito { max-width: 560px; }

.acx-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid #e6ebf3;
}
.acx-modal__titulo { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.acx-modal__titulo h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.acx-modal__acoes { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.acx-modal__fechar {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
}
.acx-modal__fechar:hover { background: #f1f5f9; color: #0f172a; }

.acx-modal__alerta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.79rem;
  background: #f8fafc;
  border-bottom: 1px solid #e6ebf3;
  color: #475569;
}
.acx-modal__alerta i { color: #94a3b8; }
.acx-modal__alerta .acx-nivel { margin-left: auto; }
.acx-modal__alerta.is-critico { background: #fef2f2; color: #b91c1c; }
.acx-modal__alerta.is-critico i { color: #dc2626; }
.acx-modal__alerta.is-alto { background: #fff7ed; color: #c2410c; }

.acx-modal__corpo { flex: 1; overflow-y: auto; padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: 1.25rem; }

.acx-modal__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin: 0;
}
.acx-modal__info div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acx-modal__info dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; font-weight: 700; }
.acx-modal__info dd { margin: 0; font-size: 0.82rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; }

.acx-modal__bloco h4 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.acx-modal__bloco h4 i { color: #94a3b8; font-size: 0.75rem; }
.acx-modal__carregando, .acx-modal__vazio { font-size: 0.8rem; color: #94a3b8; }

.acx-html { font-size: 0.83rem; line-height: 1.55; color: #334155; overflow-wrap: anywhere; }
.acx-html img { max-width: 100%; height: auto; border-radius: 8px; }
.acx-html p { margin: 0 0 0.6rem; }
.acx-html a { color: #0A4EA0; }
.acx-html table { max-width: 100%; }

.acx-coments { display: flex; flex-direction: column; gap: 0.75rem; }
.acx-coment { display: flex; gap: 0.7rem; padding: 0.75rem; border: 1px solid #eef2f7; border-radius: 12px; background: #fcfdff; }
.acx-coment.is-privado { background: #fffbeb; border-color: #fde68a; }
.acx-coment__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #e6effb;
  color: #0A4EA0;
  font-weight: 800;
  font-size: 0.76rem;
}
.acx-coment__corpo { min-width: 0; flex: 1; }
.acx-coment__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 3px; flex-wrap: wrap; }
.acx-coment__head strong { font-size: 0.8rem; }
.acx-coment__head span { font-size: 0.7rem; color: #94a3b8; }

.acx-modal__resposta { border-top: 1px solid #e6ebf3; padding: 0.9rem 1.35rem 1.1rem; background: #fcfdff; }
.acx-modal__resposta-linha { display: flex; gap: 0.6rem; margin-top: 0.55rem; }
.acx-modal__resposta textarea {
  flex: 1;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.83rem;
  resize: vertical;
  outline: none;
  color: #0f172a;
}
.acx-modal__resposta textarea:focus { border-color: #0A4EA0; box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1); }
.acx-modal__resposta textarea:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

/* Autoria da resposta — quem assina no Acelerato */
.acx-modal__resposta-topo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.acx-autor {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; color: #475569;
  background: #eef4fd; border: 1px solid #dbe7f8;
  border-radius: 999px; padding: 0.22rem 0.65rem;
}
.acx-autor i { color: #0A4EA0; font-size: 0.72rem; }
.acx-autor strong { color: #0f172a; font-weight: 700; }
.acx-autor-alerta {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-top: 0.55rem; padding: 0.55rem 0.7rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  font-size: 0.76rem; color: #92400e; line-height: 1.35;
}
.acx-autor-alerta i { margin-top: 2px; color: #d97706; }
.acx-modal__rodape { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.9rem 1.35rem; border-top: 1px solid #e6ebf3; background: #fcfdff; }

.acx-form { gap: 0.9rem; }
.acx-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: #475569; }
.acx-form input, .acx-form textarea, .acx-form select {
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.acx-form input:focus, .acx-form textarea:focus, .acx-form select:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}
.acx-form__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

@media (max-width: 900px) {
  .acx-item { flex-wrap: wrap; }
  .acx-item__acoes { width: 100%; justify-content: flex-end; }
  .acx-barra__rotulo { width: 120px; }
  .acx-form__linha { grid-template-columns: 1fr; }
}

/* ── Piloto automático da análise de IA ─────────────────────────────────── */

.ac-ia-auto {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #64748b;
}
.ac-ia-auto i { color: #0A4EA0; margin-top: 2px; }

.ac-ia-origem {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}
.ac-ia-origem.is-auto { background: #ecfdf5; color: #047857; }
.ac-ia-origem i { font-size: 0.62rem; }


/* ── CI/CD Deploy — Design System Phobos ──────────────────────────────── */
.ci-page {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: #f8fafc;
  display: flex; flex-direction: column; gap: 0;
}
/* ── HERO ──────────────────────────────────────────────────────────────── */
.ci-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0A4EA0 60%, #1a6fd4 100%);
  padding: 32px 32px 24px;
  position: relative; overflow: hidden;
}
.ci-hero__glow {
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.ci-hero__content {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.ci-hero__title {
  font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 4px;
  display: flex; align-items: center; gap: 12px;
}
.ci-hero__title i { font-size: 1.3rem; opacity: .9; }
.ci-hero__sub { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }
/* Stats */
.ci-stats {
  display: flex; gap: 0; margin-top: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; overflow: hidden;
}
.ci-stat {
  flex: 1; padding: 14px 20px; display: flex; flex-direction: column; align-items: center;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .15s;
}
.ci-stat:last-child { border-right: none; }
.ci-stat--warn { background: rgba(234,179,8,.12); }
.ci-stat__value { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.ci-stat--warn .ci-stat__value { color: #fde68a; }
.ci-stat__label { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: 4px; text-align: center; }
/* ── TOOLBAR ───────────────────────────────────────────────────────────── */
.ci-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 24px; background: #fff;
  border-bottom: 1px solid #e2e8f0; flex-wrap: wrap;
}
.ci-toolbar__left, .ci-toolbar__right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ci-search {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 7px 12px; min-width: 220px;
}
.ci-search i { color: #94a3b8; font-size: .85rem; }
.ci-search input {
  border: none; background: transparent; outline: none;
  font-size: .84rem; color: #1e293b; width: 100%;
}
.ci-filter-btns { display: flex; gap: 4px; }
.ci-filter-btn {
  padding: 6px 12px; border-radius: 7px; border: 1px solid #e2e8f0;
  background: #fff; color: #64748b; font-size: .78rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.ci-filter-btn.active { background: #0A4EA0; color: #fff; border-color: #0A4EA0; }
/* ── SERVIDORES BAR ────────────────────────────────────────────────────── */
.ci-srv-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 24px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.ci-srv-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  border: 1px solid;
}
.ci-srv-chip.online { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.ci-srv-chip.offline { background: #fff5f5; color: #991b1b; border-color: #fca5a5; }
.ci-srv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.ci-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px; border: none;
  font-size: .83rem; font-weight: 600; cursor: pointer; transition: all .15s;
  white-space: nowrap; text-decoration: none;
}
.ci-btn--primary { background: linear-gradient(135deg,#0A4EA0,#1a6fd4); color: #fff; }
.ci-btn--primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10,78,160,.3); }
.ci-btn--outline { background: #fff; color: #0A4EA0; border: 1.5px solid #0A4EA0; }
.ci-btn--outline:hover { background: #eff6ff; }
.ci-btn--sync { background: #0f172a; color: #fff; }
.ci-btn--sync:hover { background: #1e293b; }
.ci-btn--fix { background: #fff7ed; color: #c2410c; border: 1px solid #fb923c; padding: 5px 10px; }
.ci-btn--fix:hover { background: #ffedd5; }
.ci-btn--sm { padding: 5px 10px; font-size: .77rem; }
.ci-btn--full { width: 100%; justify-content: center; padding: 12px; font-size: .9rem; margin-top: 8px; }
.ci-btn.loading { opacity: .7; cursor: not-allowed; pointer-events: none; }
.ci-btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
/* ── EMPTY STATE ───────────────────────────────────────────────────────── */
.ci-empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-height: 320px; justify-content: center; color: #94a3b8;
}
.ci-empty-state i { font-size: 3rem; opacity: .4; }
.ci-empty-state p { font-size: .9rem; }
/* ── TABLE ─────────────────────────────────────────────────────────────── */
.ci-table-wrap {
  overflow-x: auto; padding: 20px 24px;
}
.ci-table {
  width: 100%; border-collapse: collapse; font-size: .82rem;
}
.ci-table thead th {
  padding: 10px 14px; text-align: left;
  background: #f1f5f9; color: #64748b;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid #e2e8f0;
}
.ci-table tbody tr {
  border-bottom: 1px solid #f1f5f9; transition: background .1s;
}
.ci-table tbody tr:hover { background: #fafafa; }
.ci-row--warn { background: #fffbeb !important; }
.ci-table td { padding: 10px 14px; color: #374151; vertical-align: middle; }
.ci-table__path { font-family: monospace; font-size: .8rem; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-table__size { color: #64748b; white-space: nowrap; }
.ci-table__empty { text-align: center; color: #94a3b8; padding: 36px !important; }
/* Badges */
.ci-badge {
  padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.ci-badge--ok { background: #dcfce7; color: #15803d; }
.ci-badge--warn { background: #fef3c7; color: #b45309; }
/* Server pills */
.ci-srv-pills { display: flex; flex-wrap: wrap; gap: 3px; }
.ci-srv-pill {
  padding: 2px 7px; border-radius: 99px; font-size: .68rem; font-weight: 700;
  border: 1px solid;
}
.ci-srv-pill.ok      { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.ci-srv-pill.warn    { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.ci-srv-pill.offline { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
/* ── MODAL ─────────────────────────────────────────────────────────────── */
.ci-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.ci-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
  animation: slideUp .25s cubic-bezier(.22,1,.36,1);
}
.ci-modal--wide { max-width: 860px; max-height: 85vh; }
.ci-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.ci-modal__header h2 {
  font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.ci-modal__header h2 i { color: #0A4EA0; }
.ci-modal__close {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: #f1f5f9; cursor: pointer; color: #64748b; font-size: .9rem;
  display: grid; place-items: center; transition: background .15s;
}
.ci-modal__close:hover { background: #e2e8f0; color: #1e293b; }
/* modal body padding */
.ci-modal > *:not(.ci-modal__header) { padding: 0 24px; }
.ci-modal > *:last-child { padding-bottom: 24px; }
/* ── DROPZONE ──────────────────────────────────────────────────────────── */
.ci-dropzone {
  margin-top: 18px; border: 2px dashed #cbd5e1; border-radius: 12px;
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: all .15s; background: #f8fafc;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ci-dropzone.drag { border-color: #0A4EA0; background: #eff6ff; }
.ci-dropzone:hover { border-color: #0A4EA0; }
.ci-dropzone i { font-size: 2rem; color: #94a3b8; }
.ci-dropzone p { margin: 0; color: #475569; font-size: .85rem; }
.ci-dropzone span { color: #94a3b8; font-size: .75rem; }
/* ── FILE LIST ─────────────────────────────────────────────────────────── */
.ci-filelist {
  margin-top: 12px; display: flex; flex-direction: column; gap: 6px;
  max-height: 180px; overflow-y: auto;
}
.ci-filelist__item {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 8px 12px;
}
.ci-filelist__item > i { color: #0A4EA0; font-size: .9rem; flex-shrink: 0; }
.ci-filelist__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ci-filelist__path-input {
  border: none; background: transparent; outline: none;
  font-size: .8rem; font-family: monospace; color: #1e293b; width: 100%;
  border-bottom: 1px dashed #e2e8f0;
}
.ci-filelist__hash { font-size: .68rem; color: #64748b; font-family: monospace; }
.ci-filelist__size { font-size: .68rem; color: #94a3b8; }
.ci-filelist__rm {
  background: none; border: none; color: #f87171; cursor: pointer;
  font-size: .8rem; padding: 2px 6px; border-radius: 4px; transition: background .1s;
}
.ci-filelist__rm:hover { background: #fee2e2; }
/* ── FORM ──────────────────────────────────────────────────────────────── */
.ci-form-group { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.ci-form-label {
  font-size: .78rem; font-weight: 600; color: #374151;
  display: flex; align-items: center; gap: 6px;
}
.ci-form-label i { color: #0A4EA0; }
.ci-textarea {
  border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 10px 12px;
  font-size: .83rem; resize: vertical; color: #1e293b; outline: none;
  font-family: 'Inter', sans-serif; transition: border .15s;
}
.ci-textarea:focus { border-color: #0A4EA0; }
/* Srv toggles */
.ci-srv-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ci-srv-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; font-size: .78rem; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all .15s;
}
.ci-srv-toggle input { display: none; }
.ci-srv-toggle.active { border-color: #0A4EA0; background: #eff6ff; color: #0A4EA0; }
/* ── GERMUD LIST ───────────────────────────────────────────────────────── */
.ci-germud-list { padding: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.ci-germud-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px;
  background: #f8fafc;
}
.ci-germud-id { font-weight: 700; font-size: .85rem; color: #1e293b; }
.ci-germud-date { font-size: .73rem; color: #64748b; margin-top: 2px; }
.ci-germud-size { color: #94a3b8; font-size: .75rem; margin-left: auto; white-space: nowrap; }
/* ── PDF VIEWER ────────────────────────────────────────────────────────── */
.ci-pdf-viewer {
  width: 100%; height: 65vh; border: none; border-radius: 8px;
  border: 1px solid #e2e8f0;
}
/* ── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
/* ── TREE VIEW ─────────────────────────────────────────────────────────── */
.ci-row--folder {
  cursor: pointer;
  background: #f8fafc !important;
  user-select: none;
}
.ci-row--folder:hover { background: #f1f5f9 !important; }
.ci-row--folder td { padding: 8px 14px; }
.ci-tree-cell {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.ci-tree-cell span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .82rem; color: #1e293b;
}
.ci-folder-icon {
  color: #f59e0b; font-size: .9rem; flex-shrink: 0;
}
.ci-file-icon {
  color: #64748b; font-size: .8rem; flex-shrink: 0;
}
.ci-folder-count {
  font-size: .7rem; color: #94a3b8; font-weight: 400;
  margin-left: 4px; white-space: nowrap;
}
.ci-expand-hint {
  font-size: .7rem; color: #0A4EA0; font-weight: 600;
  opacity: .7;
}
/* ── MOBILE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ci-hero { padding: 20px 16px 18px; }
  .ci-hero__glow { width: 200px; height: 200px; top: -70px; right: -70px; }
  .ci-hero__title { font-size: 1.2rem; gap: 8px; }
  .ci-hero__title i { font-size: 1rem; }
  .ci-hero__sub { font-size: .78rem; }
  .ci-hero__content .ci-btn { flex: 1; justify-content: center; }

  /* 4 stats em fila viravam colunas de ~70px; grade 2x2 resolve */
  .ci-stats { flex-wrap: wrap; margin-top: 16px; }
  .ci-stat { flex: 1 1 50%; padding: 12px 8px; }
  .ci-stat:nth-child(2n) { border-right: none; }
  .ci-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .ci-stat__value { font-size: 1.3rem; }
  .ci-stat__label { font-size: .65rem; }

  /* Toolbar empilhada, cada bloco na largura toda */
  .ci-toolbar { padding: 12px 16px; gap: 10px; align-items: stretch; }
  .ci-toolbar__left, .ci-toolbar__right { width: 100%; }
  .ci-search { min-width: 0; flex: 1; }
  .ci-filter-btns { width: 100%; }
  .ci-filter-btn { flex: 1; text-align: center; padding: 6px 4px; }
  .ci-toolbar__right .ci-btn { flex: 1; justify-content: center; }

  .ci-srv-bar { padding: 10px 16px; }

  /* min-width força o scroll lateral em vez de espremer as colunas */
  .ci-table-wrap { padding: 14px 16px; -webkit-overflow-scrolling: touch; }
  .ci-table { min-width: 720px; }
  .ci-table__path { max-width: 220px; }

  .ci-overlay { padding: 12px; }
  .ci-modal { max-height: 92vh; }
  .ci-modal__header { padding: 16px 16px 12px; }
  .ci-modal__header h2 { font-size: 1rem; }
  .ci-modal > *:not(.ci-modal__header) { padding: 0 16px; }
  .ci-modal > *:last-child { padding-bottom: 16px; }
  .ci-dropzone { padding: 22px 14px; }
  .ci-germud-item { flex-wrap: wrap; gap: 8px; }
  .ci-germud-size { margin-left: 0; }
  .ci-pdf-viewer { height: 55vh; }
}
/* ── Motivo de servidor fora do alcance ─────────────────────────────────────
   Antes o chip só ficava cinza e ninguém descobria se era rede, credencial ou
   share com outro nome. */
.ci-srv-offline {
  margin: 0 0 0.75rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  color: #78350f;
}
.ci-srv-offline strong { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.ci-srv-offline ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ci-srv-offline li { line-height: 1.5; word-break: break-word; }
.ci-srv-offline code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; border-radius: 5px; padding: 0.05rem 0.35rem;
  margin-right: 0.35rem; color: #92400e;
}
/* ── Escopo da comparação ──────────────────────────────────────────────────
   Deixa explícito que log/imagem/anexo não entram, para ninguém achar que a
   tela "perdeu" arquivos. */
.ci-escopo {
  margin: 0 0 0.9rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
  border: 1px solid #e2e8f0; background: #f8fafc;
  border-radius: 10px; padding: 0.65rem 0.85rem;
  font-size: 0.75rem; color: #475569; line-height: 1.55;
}
.ci-escopo i { color: #94a3b8; margin-top: 0.15rem; }
.ci-escopo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 5px;
  padding: 0.03rem 0.3rem; font-size: 0.7rem;
}
/* StatusMonitor.css */
.sm-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
}

/* HERO CONTAINER */
.sm-hero {
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 78, 160, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sm-hero::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sm-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sm-hero-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sm-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.sm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: .5rem;
}

.sm-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .3rem;
  letter-spacing: -0.02em;
}

.sm-hero-sub {
  font-size: .92rem;
  color: #9ca3af;
  margin: 0;
}

/* STATS */
.sm-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sm-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: .85rem 1.25rem;
  text-align: center;
  min-width: 90px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s;
}

.sm-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sm-stat-card--total { border-left: 3.5px solid #3b82f6; }
.sm-stat-card--up { border-left: 3.5px solid #10b981; }
.sm-stat-card--down { border-left: 3.5px solid #ef4444; }
.sm-stat-card--paused { border-left: 3.5px solid #9ca3af; }

.sm-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.sm-stat-label {
  font-size: .68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 5px;
  font-weight: 600;
}

/* NAVIGATION TABS */
.sm-navigation {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e8edf5;
  padding-bottom: 2px;
}

.sm-nav-btn {
  background: none;
  border: none;
  padding: .75rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.sm-nav-btn:hover {
  color: #0A4EA0;
}

.sm-nav-btn.active {
  color: #0A4EA0;
  font-weight: 700;
}

.sm-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0A4EA0, #1a6fd4);
  border-radius: 4px;
}

/* GENERAL PANEL / GRID */
.sm-toolbar {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 14px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  flex-wrap: wrap;
}

.sm-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: .45rem .9rem;
  flex: 1;
  min-width: 200px;
}

.sm-search i {
  color: #94a3b8;
  font-size: .85rem;
}

.sm-search input {
  border: none;
  background: none;
  outline: none;
  font-size: .88rem;
  color: #1e293b;
  width: 100%;
}

.sm-filter-tabs {
  display: flex;
  gap: .25rem;
  background: #f1f5fb;
  border-radius: 10px;
  padding: 4px;
}

.sm-filter-tab {
  background: none;
  border: none;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .18s;
}

.sm-filter-tab:hover {
  background: #e8edf5;
  color: #0A4EA0;
}

.sm-filter-tab.active {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(10,78,160,0.2);
}

.sm-btn-refresh {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sm-btn-refresh:hover:not(:disabled) {
  border-color: #94a3b8;
  color: #1e293b;
  background: #f8fafc;
}

.sm-btn-refresh:disabled i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* MONITOR CARDS GRID */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.sm-card {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.sm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  border-color: #c7d9f5;
}

.sm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.sm-card--up::before { background: #10b981; }
.sm-card--down::before { background: #ef4444; }
.sm-card--paused::before { background: #9ca3af; }

.sm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.sm-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.sm-card-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.sm-card-status-dot.pulsing::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  animation: pulse 1.5s infinite;
  left: 0;
  top: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.sm-card-status-dot--up { background-color: #10b981; color: #10b981; }
.sm-card-status-dot--down { background-color: #ef4444; color: #ef4444; }
.sm-card-status-dot--paused { background-color: #9ca3af; color: #9ca3af; }

.sm-card-body {
  margin-bottom: 1rem;
}

.sm-card-url {
  font-size: .82rem;
  color: #64748b;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-family: monospace;
}

.sm-card-details {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 10px;
  padding: .5rem .75rem;
  font-size: .78rem;
  color: #475569;
}

.sm-card-detail-item {
  display: flex;
  flex-direction: column;
}

.sm-card-detail-label {
  font-size: .65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}

.sm-card-detail-val {
  font-weight: 700;
  color: #334155;
}

.sm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 20px;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sm-badge--up { background: #d1fae5; color: #065f46; }
.sm-badge--down { background: #fee2e2; color: #991b1b; }
.sm-badge--paused { background: #f1f5f9; color: #475569; }

/* CONFIGURATION PANEL */
.sm-config-card {
  background: #fff;
  border: 2px solid #e8edf5;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.sm-config-section {
  margin-bottom: 2.25rem;
}

.sm-config-section:last-child {
  margin-bottom: 0;
}

.sm-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sm-section-title i {
  color: #0A4EA0;
}

.sm-form-group {
  margin-bottom: 1.25rem;
}

.sm-form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .5rem;
}

.sm-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sm-input {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: .9rem;
  color: #1e293b;
  outline: none;
  transition: all .2s;
  background: #f8fafc;
}

.sm-input:focus {
  border-color: #0A4EA0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.sm-input-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
}

.sm-input-toggle-btn:hover {
  color: #1e293b;
}

/* TOGGLE SWITCH (iOS style) */
.sm-toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.sm-toggle-label {
  flex: 1;
}

.sm-toggle-title {
  font-size: .92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.sm-toggle-sub {
  font-size: .78rem;
  color: #64748b;
}

.sm-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.sm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sm-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.sm-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .sm-slider {
  background-color: #10b981;
}

input:checked + .sm-slider:before {
  transform: translateX(24px);
}

/* CONTACTS FORM & GRID */
.sm-contact-form-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .sm-contact-form-row {
    grid-template-columns: 1fr;
  }
}

.sm-btn-add {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  color: #fff;
  border: none;
  padding: .68rem 1.25rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 4px 10px rgba(10,78,160,0.15);
  transition: all .2s;
  height: 38px;
  justify-content: center;
}

.sm-btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10,78,160,0.25);
}

/* TABLE STYLING */
.sm-table-wrap {
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1rem;
}

.sm-table {
  width: 100%;
  border-collapse: collapse;
}

.sm-table th {
  background: #f8fafc;
  padding: .75rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1.5px solid #cbd5e1;
}

.sm-table td {
  padding: .85rem 1rem;
  font-size: .85rem;
  color: #334155;
  border-bottom: 1px solid #f1f5fb;
  vertical-align: middle;
}

.sm-table tr:last-child td {
  border-bottom: none;
}

.sm-contact-phone {
  font-family: monospace;
  font-weight: 600;
  color: #475569;
}

/* ACTIONS */
.sm-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid #f1f5fb;
}

.sm-btn-save {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #fff;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 15px rgba(10,78,160,0.3);
  transition: all .2s;
}

.sm-btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,78,160,0.4);
}

.sm-btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* UTILITY CLASSES */
.sm-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #64748b;
  gap: 1rem;
}

.sm-loading-spinner {
  font-size: 2rem;
  color: #0A4EA0;
  animation: spin 1s linear infinite;
}

.sm-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
}

.sm-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.sm-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.sm-empty-sub {
  font-size: .82rem;
  color: #64748b;
  margin: 0;
}

/* Card hover cursor pointer */
.sm-card {
  cursor: pointer;
}

/* MODAL STYLES */
.sm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sm-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  animation: smModalIn 0.22s ease-out;
}

@keyframes smModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm-modal-header {
  padding: 1.25rem 1.5rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-modal-header--up {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.sm-modal-header--down {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.sm-modal-header--paused {
  background: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%);
}

.sm-modal-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.sm-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sm-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.sm-modal-section {
  margin-bottom: 2rem;
}

.sm-modal-section:last-child {
  margin-bottom: 0;
}

.sm-modal-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1rem;
}

.sm-modal-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sm-modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 500px) {
  .sm-modal-info-grid {
    grid-template-columns: 1fr;
  }
}

.sm-modal-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.sm-modal-info-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.sm-modal-info-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  word-break: break-all;
}

.sm-modal-info-val a {
  color: #0A4EA0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sm-modal-info-val a:hover {
  text-decoration: underline;
}

.sm-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1.5px solid #f1f5fb;
  display: flex;
  justify-content: flex-end;
}

.sm-btn-close {
  background: #f1f5fb;
  border: none;
  color: #64748b;
  padding: 0.55rem 1.4rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.sm-btn-close:hover {
  background: #e2e8f0;
  color: #334155;
}

/* CUSTOM CHART STYLING */
.sm-chart-container {
  background: #1e293b;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  height: 150px;
}

.sm-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: right;
  min-width: 45px;
}

.sm-chart-bars {
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
}

.sm-chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
  margin: 0 2px;
  max-width: 32px;
}

.sm-chart-bar {
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  width: 70%;
  border-radius: 4px 4px 0 0;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.sm-chart-bar:hover {
  background: linear-gradient(to top, #10b981, #34d399);
  transform: scaleY(1.05);
}

.sm-chart-bar-label {
  font-size: 0.58rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* 30 barras não cabem com a hora embaixo de cada uma: as barras encolhem e a
   hora aparece de 5 em 5 (antes as últimas barras saíam da caixa) */
.sm-chart-bars,
.sm-chart-bar-wrapper { min-width: 0; }
.sm-chart-bar-wrapper:not(:nth-child(5n+1)) .sm-chart-bar-label { visibility: hidden; }

.text-monospace {
  font-family: monospace;
}

.sm-modal-loading-inline {
  background: #1e293b;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: #94a3b8;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.sm-modal-loading-inline i {
  font-size: 1.1rem;
}

.sm-modal-empty-inline {
  background: #1e293b;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* UPTIME GRID IN MODAL */
.sm-uptime-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .sm-uptime-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .sm-uptime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sm-uptime-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.sm-uptime-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sm-uptime-card--overall {
  background: linear-gradient(135deg, rgba(10, 78, 160, 0.06), rgba(26, 111, 212, 0.06));
  border-color: #cbd5e1;
}

.sm-uptime-label {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sm-uptime-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -0.01em;
}

.sm-uptime-card--overall .sm-uptime-val {
  color: #0A4EA0;
}
/* ═══════════════════════════════════════════════════════════════════════════
   Monitor de Serviços (/admin/servicos)
   Paleta oficial Phobos: #0A4EA0 e #002b5e.
   Estados usam a paleta de status reservada (verde/âmbar/vermelho), nunca
   reaproveitada como cor de série.
   ═══════════════════════════════════════════════════════════════════════════ */

.sm-page {
  --sm-primary: #0A4EA0;
  --sm-deep: #002b5e;
  --sm-ink: #0f172a;
  --sm-ink-2: #475569;
  --sm-muted: #94a3b8;
  --sm-line: #e8edf4;
  --sm-surface: #ffffff;

  --sm-up: #047857;
  --sm-up-bg: #ecfdf5;
  --sm-degraded: #b45309;
  --sm-degraded-bg: #fffbeb;
  --sm-down: #b91c1c;
  --sm-down-bg: #fef2f2;

  padding: 1.75rem;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--sm-ink);
  animation: sm-fade 0.35s ease both;
}

@keyframes sm-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.sm-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sm-header h1 i { color: var(--sm-primary); font-size: 1.2rem; }
.sm-header p { margin: 0; font-size: 0.85rem; color: var(--sm-ink-2); }

.sm-header-actions { display: flex; align-items: center; gap: 0.75rem; }

.sm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sm-ink-2);
  cursor: pointer;
  user-select: none;
}
.sm-toggle input { accent-color: var(--sm-primary); width: 15px; height: 15px; cursor: pointer; }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--sm-line);
  background: #fff;
  color: var(--sm-ink-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.sm-btn:hover:not(:disabled) { border-color: var(--sm-primary); color: var(--sm-primary); background: #f5f9ff; }
.sm-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sm-btn--sm { padding: 0.32rem 0.65rem; font-size: 0.73rem; border-radius: 8px; }
.sm-btn--action { width: 100%; justify-content: center; }

.sm-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sm-primary);
  cursor: pointer;
}
.sm-link:hover { text-decoration: underline; }
.sm-link:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Faixa de resumo ─────────────────────────────────────────────────────── */

.sm-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface);
}
.sm-banner > i { font-size: 1.6rem; flex-shrink: 0; }
.sm-banner > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-banner strong { font-size: 1rem; font-weight: 700; }
.sm-banner span { font-size: 0.8rem; color: var(--sm-ink-2); }

.sm-banner-time {
  margin-left: auto;
  font-size: 0.74rem !important;
  color: var(--sm-muted) !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sm-banner.is-up       { border-color: #a7f3d0; background: var(--sm-up-bg); }
.sm-banner.is-up > i   { color: var(--sm-up); }
.sm-banner.is-degraded { border-color: #fde68a; background: var(--sm-degraded-bg); }
.sm-banner.is-degraded > i { color: var(--sm-degraded); }
.sm-banner.is-down     { border-color: #fecaca; background: var(--sm-down-bg); }
.sm-banner.is-down > i { color: var(--sm-down); }

.sm-banner-spinner {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #dbeafe;
  border-top-color: var(--sm-primary);
  animation: sm-spin 0.8s linear infinite;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }

/* ── Aviso de configuração ───────────────────────────────────────────────── */

.sm-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--sm-primary);
  background: #f0f7ff;
}
.sm-warning > i { color: var(--sm-primary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.sm-warning strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; }
.sm-warning p { margin: 0; font-size: 0.78rem; color: var(--sm-ink-2); line-height: 1.55; }

/* ── Cartões de serviço ──────────────────────────────────────────────────── */

.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.9rem;
}

.sm-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--sm-line);
  border-radius: 16px;
  background: var(--sm-surface);
  border-top: 3px solid #cbd5e1;
}
.sm-card.is-up       { border-top-color: var(--sm-up); }
.sm-card.is-degraded { border-top-color: var(--sm-degraded); }
.sm-card.is-down     { border-top-color: var(--sm-down); }
.sm-card.is-unpaired { border-top-color: var(--sm-primary); }

.sm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.sm-card-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sm-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sm-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.sm-state i { font-size: 0.65rem; }
.sm-state.is-up       { background: var(--sm-up-bg); color: var(--sm-up); }
.sm-state.is-degraded { background: var(--sm-degraded-bg); color: var(--sm-degraded); }
.sm-state.is-down     { background: var(--sm-down-bg); color: var(--sm-down); }
.sm-state.is-unknown  { background: #f1f5f9; color: #64748b; }
/* Pendência de configuração, não falha: azul da marca em vez de vermelho. */
.sm-state.is-unpaired { background: #eff6ff; color: var(--sm-primary); }

/* ── Recuperação automática em curso ───────────────────────────────────── */
.sm-recovery {
  margin-bottom: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}
.sm-recovery.is-stuck {
  border-color: #fecaca;
  background: var(--sm-down-bg);
}
.sm-recovery-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sm-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sm-recovery.is-stuck .sm-recovery-head { color: var(--sm-down); }
.sm-recovery p {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--sm-ink-2);
  line-height: 1.5;
}
.sm-recovery-next {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sm-muted);
}
.sm-recovery .sm-btn { margin-top: 0.5rem; }

.sm-card h2 { margin: 0 0 0.3rem; font-size: 0.98rem; font-weight: 700; }
.sm-card-detail { margin: 0 0 0.7rem; font-size: 0.79rem; color: var(--sm-ink-2); line-height: 1.5; }

.sm-card-error {
  margin: 0 0 0.7rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  background: var(--sm-down-bg);
  color: var(--sm-down);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sm-card-error i { margin-right: 0.35rem; }

.sm-card-facts {
  margin: 0 0 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.sm-card-facts > div { display: flex; flex-direction: column; }
.sm-card-facts dt { font-size: 0.66rem; color: var(--sm-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.sm-card-facts dd { margin: 0; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.sm-card-endpoint {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  color: var(--sm-muted);
  background: #f8fafc;
  border: 1px solid var(--sm-line);
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-qr-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  background: var(--sm-degraded-bg);
  color: var(--sm-degraded);
  font-size: 0.73rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.sm-card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.4rem; }

/* ── Colunas inferiores ──────────────────────────────────────────────────── */

.sm-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.sm-panel {
  border: 1px solid var(--sm-line);
  border-radius: 16px;
  background: var(--sm-surface);
  overflow: hidden;
}
.sm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--sm-line);
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.sm-panel-head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sm-panel-head h2 i { color: var(--sm-primary); font-size: 0.82rem; }
.sm-panel-body { padding: 1rem 1.15rem; }

/* ── Tabela de processos ─────────────────────────────────────────────────── */

.sm-table-wrap { overflow-x: auto; margin: -0.35rem -0.35rem; padding: 0.35rem; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 620px; }
.sm-table thead th {
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--sm-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--sm-line);
  white-space: nowrap;
}
.sm-table tbody td { padding: 0.6rem 0.7rem; border-bottom: 1px solid #f4f7fb; vertical-align: middle; }
.sm-table tbody tr:last-child td { border-bottom: none; }
.sm-table strong { display: block; font-weight: 700; }

.sm-table-sub {
  display: block;
  font-size: 0.67rem;
  color: var(--sm-muted);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-num-warn { color: var(--sm-down); font-weight: 700; }

.sm-pill {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.sm-pill.is-up      { background: var(--sm-up-bg); color: var(--sm-up); }
.sm-pill.is-down    { background: var(--sm-down-bg); color: var(--sm-down); }
.sm-pill.is-unknown { background: #f1f5f9; color: #64748b; }

/* ── Linha do tempo ──────────────────────────────────────────────────────── */

.sm-timeline { list-style: none; margin: 0; padding: 0; position: relative; max-height: 460px; overflow-y: auto; }
.sm-timeline li { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #f4f7fb; }
.sm-timeline li:last-child { border-bottom: none; }
.sm-timeline li > div { min-width: 0; }
.sm-timeline strong { font-size: 0.82rem; font-weight: 700; }
.sm-timeline p { margin: 2px 0; font-size: 0.75rem; color: var(--sm-ink-2); line-height: 1.45; }
.sm-timeline em { font-style: normal; font-size: 0.7rem; color: var(--sm-muted); font-variant-numeric: tabular-nums; }

.sm-timeline-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: #f1f5f9;
  color: #64748b;
}
.sm-timeline li.is-up .sm-timeline-dot       { background: var(--sm-up-bg); color: var(--sm-up); }
.sm-timeline li.is-degraded .sm-timeline-dot { background: var(--sm-degraded-bg); color: var(--sm-degraded); }
.sm-timeline li.is-down .sm-timeline-dot     { background: var(--sm-down-bg); color: var(--sm-down); }

/* ── Vazios e esqueletos ─────────────────────────────────────────────────── */

.sm-empty { text-align: center; padding: 1.6rem 0.5rem; }
.sm-empty i { font-size: 1.8rem; color: #cbd5e1; margin-bottom: 0.6rem; display: block; }
.sm-empty p { margin: 0 0 0.25rem; font-size: 0.82rem; font-weight: 600; color: var(--sm-ink-2); }
.sm-empty small { font-size: 0.73rem; color: var(--sm-muted); overflow-wrap: anywhere; }

@keyframes sm-shimmer {
  0%   { background-position: -380px 0; }
  100% { background-position:  380px 0; }
}
.sm-sk {
  display: block;
  border-radius: 6px;
  background: #eef2f7;
  background-image: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 380px 100%;
  background-repeat: no-repeat;
  animation: sm-shimmer 1.25s ease-in-out infinite;
}
.sm-sk-line { height: 11px; }
.sm-card--skeleton { border-top-color: #e2e8f0; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .sm-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .sm-page { padding: 1rem; }
  .sm-header-actions { width: 100%; justify-content: space-between; }
  .sm-banner { flex-wrap: wrap; }
  .sm-banner-time { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-page, .sm-sk, .sm-banner-spinner { animation: none; }
}

/* Reinício manual — quando a intranet não tem permissão para reiniciar
   o processo (dono diferente, sem regra no sudoers). */
.sm-manual {
  margin-bottom: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.sm-manual-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sm-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sm-manual-head i { color: var(--sm-primary); }
.sm-manual p {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.74rem;
  color: var(--sm-ink-2);
  line-height: 1.5;
}
.sm-manual code {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--sm-deep);
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── APIs públicas de monitoramento (UptimeRobot) ─────────────────────────── */

.sm-api-head-actions { display: flex; align-items: center; gap: 0.9rem; }

.sm-api-help {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--sm-ink-2);
}
.sm-api-help strong { color: var(--sm-ink); }
.sm-api-help em { font-style: normal; font-weight: 600; color: var(--sm-primary); }

.sm-table--api { min-width: 760px; }
.sm-table--api td { vertical-align: top; }
.sm-table-sub--wide {
  max-width: 320px;
  white-space: normal;
  line-height: 1.45;
  margin-top: 2px;
}

.sm-api-url {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--sm-deep);
  background: #f8fafc;
  border: 1px solid var(--sm-line);
  border-radius: 7px;
  padding: 0.35rem 0.5rem;
  max-width: 420px;
  overflow-wrap: anywhere;
}

.sm-api-notes {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sm-api-notes li { font-size: 0.75rem; color: var(--sm-ink-2); line-height: 1.55; }
.sm-api-notes strong { color: var(--sm-ink); }
.sm-api-notes code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 0.05rem 0.3rem;
  color: var(--sm-deep);
}

/* Faltavam estes dois estados na pílula — a tabela das APIs mostra todos. */
.sm-pill.is-degraded { background: var(--sm-degraded-bg); color: var(--sm-degraded); }
.sm-pill.is-unpaired { background: #eff6ff; color: var(--sm-primary); }

@media (max-width: 768px) {
  .sm-api-url { max-width: none; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Motor de IA (/admin/motor-ia)
   Paleta oficial Phobos: #0A4EA0 e #002b5e.
   Status (verde/âmbar/vermelho) fica reservado para estado — nunca é usado
   como cor de série nos gráficos.
   ═══════════════════════════════════════════════════════════════════════════ */

.mia-page {
  --mia-primary: #0A4EA0;
  --mia-primary-2: #1e6ecf;
  --mia-deep: #002b5e;
  --mia-ink: #0f172a;
  --mia-ink-2: #475569;
  --mia-muted: #94a3b8;
  --mia-line: #e8edf4;
  --mia-surface: #ffffff;
  --mia-surface-2: #f8fafc;

  --mia-ok: #047857;
  --mia-ok-bg: #ecfdf5;
  --mia-warn: #b45309;
  --mia-warn-bg: #fffbeb;
  --mia-bad: #b91c1c;
  --mia-bad-bg: #fef2f2;
  --mia-info: #0e7490;
  --mia-info-bg: #ecfeff;

  padding: 1.75rem;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mia-ink);
  animation: mia-fade 0.35s ease both;
}

@keyframes mia-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.mia-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.mia-header h1 {
  margin: 0 0 0.3rem; font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.025em; display: flex; align-items: center; gap: 0.6rem;
}
.mia-header h1 i { color: var(--mia-primary); font-size: 1.2rem; }
.mia-header p { margin: 0; font-size: 0.85rem; color: var(--mia-ink-2); max-width: 70ch; }

.mia-header-acoes { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.mia-periodo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--mia-surface); border: 1px solid var(--mia-line);
  border-radius: 10px; padding: 0.45rem 0.7rem; font-size: 0.82rem;
}
.mia-periodo i { color: var(--mia-primary); }
.mia-periodo select { border: 0; background: transparent; font: inherit; font-weight: 600; outline: none; cursor: pointer; }

/* ── Abas ────────────────────────────────────────────────────────────────── */

.mia-abas {
  display: flex; gap: 0.3rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--mia-line); padding-bottom: 0;
}
.mia-aba {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--mia-ink-2); border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: color 0.15s, border-color 0.15s;
}
.mia-aba i { font-size: 0.85rem; opacity: 0.8; }
.mia-aba:hover { color: var(--mia-primary); }
.mia-aba.ativa { color: var(--mia-primary); border-bottom-color: var(--mia-primary); }

.mia-conteudo { display: flex; flex-direction: column; gap: 1.15rem; }

/* ── Cartões ─────────────────────────────────────────────────────────────── */

.mia-cartao {
  background: var(--mia-surface); border: 1px solid var(--mia-line);
  border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mia-cartao h2 {
  margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.mia-cartao h2 i { color: var(--mia-primary); font-size: 0.9rem; }
.mia-cartao h3 {
  margin: 1.25rem 0 0.65rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--mia-muted);
}
.mia-cartao-topo {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.mia-sub { margin: 0 0 0.9rem; font-size: 0.8rem; color: var(--mia-ink-2); line-height: 1.55; max-width: 92ch; }
.mia-contador {
  background: var(--mia-surface-2); border: 1px solid var(--mia-line);
  border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.7rem;
  font-weight: 700; color: var(--mia-ink-2);
}

/* ── Botões ──────────────────────────────────────────────────────────────── */

.mia-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9px; padding: 0.5rem 0.85rem; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.mia-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mia-btn-primario { background: var(--mia-primary); color: #fff; }
.mia-btn-primario:hover:not(:disabled) { background: var(--mia-deep); }
.mia-btn-secundario { background: var(--mia-surface); border-color: var(--mia-line); color: var(--mia-ink); }
.mia-btn-secundario:hover:not(:disabled) { border-color: var(--mia-primary); color: var(--mia-primary); }
.mia-btn-texto { background: transparent; color: var(--mia-ink-2); }
.mia-btn-texto:hover:not(:disabled) { color: var(--mia-primary); }
.mia-btn-texto.perigo:hover:not(:disabled) { color: var(--mia-bad); }

.mia-btn-icone {
  border: 1px solid var(--mia-line); background: var(--mia-surface);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer;
  color: var(--mia-ink-2); transition: border-color 0.15s, color 0.15s;
}
.mia-btn-icone:hover:not(:disabled) { border-color: var(--mia-primary); color: var(--mia-primary); }
.mia-btn-icone:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Provedores ──────────────────────────────────────────────────────────── */

.mia-provedores { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.9rem; }
.mia-provedor {
  border: 1px solid var(--mia-line); border-radius: 12px; padding: 1rem;
  background: var(--mia-surface-2); display: flex; flex-direction: column; gap: 0.75rem;
}
.mia-provedor.conectado { background: var(--mia-surface); border-color: #cfe0f5; }
.mia-provedor-topo { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mia-provedor-dados { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mia-provedor-dados > div { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.78rem; }
.mia-provedor-dados dt { color: var(--mia-muted); margin: 0; }
.mia-provedor-dados dd { margin: 0; font-weight: 600; color: var(--mia-ink-2); }
.mia-provedor-acoes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mia-provedor-form { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mia-provedor-form input {
  flex: 1 1 180px; border: 1px solid var(--mia-line); border-radius: 9px;
  padding: 0.5rem 0.7rem; font-size: 0.8rem; font-family: ui-monospace, monospace;
}
.mia-provedor-form input:focus { outline: none; border-color: var(--mia-primary); }

.mia-tag-prov {
  display: inline-block; border-radius: 6px; padding: 0.1rem 0.42rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
}
.mia-tag-prov.openai { background: #e8f2ff; color: var(--mia-deep); }
.mia-tag-prov.deepseek { background: #f0e9ff; color: #5b21b6; }
.mia-tag-prov.gemini { background: #e6f4ea; color: #14532d; }

/* ── Modelo padrão ───────────────────────────────────────────────────────── */

.mia-padroes { display: flex; flex-direction: column; gap: 0.9rem; }
.mia-padrao {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.1fr);
  gap: 0.9rem; align-items: start;
  border: 1px solid var(--mia-line); border-radius: 12px; padding: 0.9rem;
}
.mia-padrao-texto strong { font-size: 0.88rem; }
.mia-padrao-texto p { margin: 0.2rem 0 0; font-size: 0.76rem; color: var(--mia-ink-2); line-height: 1.5; }
.mia-padrao select {
  width: 100%; border: 1px solid var(--mia-line); border-radius: 9px;
  padding: 0.55rem 0.7rem; font-size: 0.8rem; font: inherit; font-size: 0.8rem;
  background: var(--mia-surface); cursor: pointer;
}
.mia-padrao select:focus { outline: none; border-color: var(--mia-primary); }
.mia-padrao .mia-aviso-inline { grid-column: 1 / -1; }

.mia-aviso-inline {
  margin: 0.5rem 0 0; display: flex; align-items: flex-start; gap: 0.45rem;
  font-size: 0.75rem; line-height: 1.5; color: var(--mia-warn);
  background: var(--mia-warn-bg); border: 1px solid #fde68a;
  border-radius: 8px; padding: 0.5rem 0.65rem;
}
.mia-aviso-inline.suave { color: var(--mia-info); background: var(--mia-info-bg); border-color: #a5f3fc; }
.mia-aviso-inline i { margin-top: 0.12rem; }

/* ── Filtros ─────────────────────────────────────────────────────────────── */

.mia-filtros { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.9rem; }
.mia-filtros select {
  border: 1px solid var(--mia-line); border-radius: 9px; padding: 0.45rem 0.7rem;
  font-size: 0.78rem; background: var(--mia-surface); cursor: pointer;
}
.mia-busca { position: relative; flex: 1 1 220px; max-width: 320px; }
.mia-busca i { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--mia-muted); font-size: 0.75rem; }
.mia-busca input {
  width: 100%; border: 1px solid var(--mia-line); border-radius: 9px;
  padding: 0.45rem 0.7rem 0.45rem 1.9rem; font-size: 0.78rem;
}
.mia-busca input:focus { outline: none; border-color: var(--mia-primary); }
.mia-check {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.76rem; color: var(--mia-ink-2); cursor: pointer;
}

/* ── Tabelas ─────────────────────────────────────────────────────────────── */

.mia-tabela-rolagem { overflow-x: auto; margin: 0 -0.25rem; padding: 0 0.25rem; }
.mia-tabela { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.mia-tabela th {
  text-align: left; padding: 0.5rem 0.6rem; font-size: 0.68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--mia-muted); border-bottom: 1px solid var(--mia-line); white-space: nowrap;
}
.mia-tabela th.num, .mia-tabela td.num { text-align: right; }
.mia-tabela td { padding: 0.6rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.mia-tabela.compacta td { padding: 0.42rem 0.6rem; }
.mia-tabela tbody tr:hover { background: var(--mia-surface-2); }
.mia-tabela td.forte { font-weight: 700; color: var(--mia-ink); }
.mia-tabela td.positivo { color: var(--mia-ok); font-weight: 700; }
.mia-tabela td.negativo { color: var(--mia-bad); font-weight: 600; }
.mia-tabela tr.atual { background: #f2f7ff; }
.mia-tabela tr.incompativel { opacity: 0.55; }
.mia-tabela tr.descontinuado { opacity: 0.7; }
.mia-tabela tr.falhou td { background: var(--mia-bad-bg); }
.mia-tabela td.acoes { white-space: nowrap; display: flex; gap: 0.3rem; }
.mia-tabela code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem; color: var(--mia-ink-2);
  background: var(--mia-surface-2); padding: 0.06rem 0.32rem; border-radius: 5px;
}
.mia-tabela i.ok { color: var(--mia-ok); }
.mia-tabela i.falha { color: var(--mia-bad); }
.mia-vazio-celula { text-align: center; color: var(--mia-muted); padding: 1.5rem !important; }

.mia-modelo-nome { display: flex; gap: 0.5rem; align-items: flex-start; }
.mia-modelo-nome strong { display: block; font-size: 0.82rem; }
.mia-modelo-nome code { display: inline-block; margin-top: 0.15rem; }
.mia-modelo-nota { margin: 0.35rem 0 0; font-size: 0.7rem; color: var(--mia-muted); max-width: 42ch; line-height: 1.45; }

.mia-caps { display: flex; flex-wrap: wrap; gap: 0.2rem; max-width: 190px; }
.mia-cap {
  background: var(--mia-surface-2); border: 1px solid var(--mia-line);
  border-radius: 5px; padding: 0.02rem 0.3rem; font-size: 0.65rem; color: var(--mia-ink-2);
}

.mia-situacao { display: flex; flex-wrap: wrap; gap: 0.22rem; max-width: 160px; }
.mia-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 999px; padding: 0.08rem 0.45rem;
  font-size: 0.66rem; font-weight: 600; white-space: nowrap;
}
.mia-pill.ok { background: var(--mia-ok-bg); color: var(--mia-ok); }
.mia-pill.aviso { background: var(--mia-warn-bg); color: var(--mia-warn); }
.mia-pill.alerta { background: var(--mia-bad-bg); color: var(--mia-bad); }
.mia-pill.info { background: var(--mia-info-bg); color: var(--mia-info); }
.mia-pill.neutro { background: var(--mia-surface-2); color: var(--mia-muted); }

.mia-linha-preco td { background: var(--mia-surface-2); }
.mia-editor-preco p { margin: 0 0 0.6rem; font-size: 0.75rem; color: var(--mia-ink-2); max-width: 70ch; }
.mia-editor-campos { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.mia-editor-campos label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.7rem; font-weight: 600; color: var(--mia-ink-2); }
.mia-editor-campos input {
  border: 1px solid var(--mia-line); border-radius: 8px; padding: 0.42rem 0.6rem;
  font-size: 0.78rem; width: 120px;
}
.mia-editor-campos input:focus { outline: none; border-color: var(--mia-primary); }

/* ── Formulários ─────────────────────────────────────────────────────────── */

.mia-novo-modelo {
  border: 1px dashed #cfe0f5; border-radius: 12px; padding: 1rem;
  margin-bottom: 0.9rem; background: var(--mia-surface-2);
}
.mia-grade-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.7rem; }
.mia-grade-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.74rem; font-weight: 600; color: var(--mia-ink-2); }
.mia-grade-form input, .mia-grade-form select {
  border: 1px solid var(--mia-line); border-radius: 8px; padding: 0.45rem 0.6rem;
  font-size: 0.8rem; background: var(--mia-surface); font-weight: 500; color: var(--mia-ink);
}
.mia-grade-form input:focus, .mia-grade-form select:focus { outline: none; border-color: var(--mia-primary); }
.mia-grade-form small { font-weight: 400; font-size: 0.68rem; color: var(--mia-muted); line-height: 1.4; }
.mia-caps-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; font-size: 0.74rem; color: var(--mia-ink-2); }
.mia-form-acoes { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }

/* ── Teste de modelo ─────────────────────────────────────────────────────── */

.mia-teste {
  display: flex; gap: 0.65rem; align-items: flex-start;
  border-radius: 10px; padding: 0.75rem 0.9rem; margin-bottom: 0.9rem;
  font-size: 0.8rem; border: 1px solid;
}
.mia-teste.ok { background: var(--mia-ok-bg); border-color: #a7f3d0; color: var(--mia-ok); }
.mia-teste.falhou { background: var(--mia-bad-bg); border-color: #fecaca; color: var(--mia-bad); }
.mia-teste > div { flex: 1; }
.mia-teste p { margin: 0.3rem 0 0; color: var(--mia-ink-2); line-height: 1.5; }
.mia-teste button { border: 0; background: transparent; cursor: pointer; color: inherit; opacity: 0.6; }
.mia-teste button:hover { opacity: 1; }

/* ── Funções ─────────────────────────────────────────────────────────────── */

.mia-grupo + .mia-grupo { margin-top: 0.5rem; }
.mia-funcoes { display: flex; flex-direction: column; gap: 0.6rem; }
.mia-funcao {
  display: grid; grid-template-columns: minmax(280px, 1.6fr) minmax(240px, 1fr);
  gap: 1rem; align-items: start;
  border: 1px solid var(--mia-line); border-radius: 12px; padding: 0.9rem;
}
.mia-funcao.com-problema { border-color: #fecaca; background: #fffafa; }
.mia-funcao-titulo { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mia-funcao-titulo strong { font-size: 0.87rem; }
.mia-funcao-info > p { margin: 0.25rem 0 0.45rem; font-size: 0.77rem; color: var(--mia-ink-2); line-height: 1.5; }
.mia-funcao-meta { display: flex; gap: 0.65rem; flex-wrap: wrap; font-size: 0.68rem; color: var(--mia-muted); }
.mia-funcao-meta code {
  font-family: ui-monospace, monospace; background: var(--mia-surface-2);
  padding: 0.03rem 0.3rem; border-radius: 5px;
}
.mia-funcao-escolha { display: flex; flex-direction: column; gap: 0.35rem; }
.mia-funcao-escolha select {
  width: 100%; border: 1px solid var(--mia-line); border-radius: 9px;
  padding: 0.5rem 0.65rem; font-size: 0.79rem; background: var(--mia-surface); cursor: pointer;
}
.mia-funcao-escolha select:focus { outline: none; border-color: var(--mia-primary); }
.mia-funcao-atual { font-size: 0.7rem; color: var(--mia-muted); }
.mia-funcao-atual code {
  font-family: ui-monospace, monospace; background: var(--mia-surface-2);
  padding: 0.03rem 0.3rem; border-radius: 5px; color: var(--mia-ink-2);
}

.mia-origem {
  border-radius: 999px; padding: 0.08rem 0.45rem;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.mia-origem.is-especifico { background: #e8f2ff; color: var(--mia-deep); }
.mia-origem.is-global { background: #f0e9ff; color: #5b21b6; }
.mia-origem.is-fabrica { background: var(--mia-surface-2); color: var(--mia-muted); }

/* ── KPIs ────────────────────────────────────────────────────────────────── */

.mia-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.75rem; }
.mia-kpi {
  background: var(--mia-surface); border: 1px solid var(--mia-line);
  border-radius: 12px; padding: 0.9rem 1rem;
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.mia-kpi.destaque { border-color: #cfe0f5; background: linear-gradient(180deg, #f7fbff, #ffffff); }
.mia-kpi > i {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  background: #eef4fc; color: var(--mia-primary);
  display: grid; place-items: center; font-size: 0.85rem;
}
.mia-kpi span { display: block; font-size: 0.7rem; color: var(--mia-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.mia-kpi strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.1rem; }
.mia-kpi small { display: block; font-size: 0.7rem; color: var(--mia-ink-2); margin-top: 0.1rem; }

/* ── Gráficos ────────────────────────────────────────────────────────────── */

.mia-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.15rem; }

/* ── Taxa ────────────────────────────────────────────────────────────────── */

.mia-taxa { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: flex-end; font-size: 0.74rem; font-weight: 600; }
.mia-taxa-barra { width: 46px; height: 5px; border-radius: 3px; background: var(--mia-line); overflow: hidden; }
.mia-taxa-barra > span { display: block; height: 100%; border-radius: 3px; }
.mia-taxa.ok { color: var(--mia-ok); }
.mia-taxa.ok .mia-taxa-barra > span { background: var(--mia-ok); }
.mia-taxa.aviso { color: var(--mia-warn); }
.mia-taxa.aviso .mia-taxa-barra > span { background: var(--mia-warn); }
.mia-taxa.ruim { color: var(--mia-bad); }
.mia-taxa.ruim .mia-taxa-barra > span { background: var(--mia-bad); }

.mia-nota {
  display: inline-block; min-width: 40px; border-radius: 6px;
  background: #eef4fc; color: var(--mia-deep);
  padding: 0.1rem 0.4rem; font-weight: 800; font-size: 0.78rem;
}

/* ── Orçamento ───────────────────────────────────────────────────────────── */

.mia-orcamento { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.mia-orcamento-barra { height: 12px; border-radius: 7px; background: var(--mia-line); overflow: hidden; }
.mia-orcamento-barra > span { display: block; height: 100%; background: linear-gradient(90deg, var(--mia-primary), var(--mia-primary-2)); border-radius: 7px; }
.mia-orcamento.estourado .mia-orcamento-barra > span { background: linear-gradient(90deg, #dc2626, #f97316); }
.mia-orcamento-texto { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--mia-ink-2); }
.mia-orcamento-texto strong { font-size: 1.05rem; color: var(--mia-ink); }
.mia-orcamento-texto span { margin-left: auto; font-size: 0.75rem; color: var(--mia-muted); }

.mia-nota-metodo {
  margin: 0.9rem 0 0; display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.74rem; color: var(--mia-ink-2); line-height: 1.55;
  background: var(--mia-surface-2); border-radius: 9px; padding: 0.65rem 0.8rem;
  max-width: 92ch;
}
.mia-nota-metodo i { color: var(--mia-muted); margin-top: 0.15rem; }

/* ── Alertas ─────────────────────────────────────────────────────────────── */

.mia-alertas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.mia-alertas li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  border-radius: 10px; padding: 0.7rem 0.85rem; border: 1px solid;
}
.mia-alertas li.critico { background: var(--mia-bad-bg); border-color: #fecaca; }
.mia-alertas li.critico > i { color: var(--mia-bad); }
.mia-alertas li.atencao { background: var(--mia-warn-bg); border-color: #fde68a; }
.mia-alertas li.atencao > i { color: var(--mia-warn); }
.mia-alertas li.info { background: var(--mia-info-bg); border-color: #a5f3fc; }
.mia-alertas li.info > i { color: var(--mia-info); }
.mia-alertas strong { font-size: 0.83rem; }
.mia-alertas p { margin: 0.2rem 0 0; font-size: 0.77rem; color: var(--mia-ink-2); line-height: 1.5; }
.mia-alertas small { display: block; margin-top: 0.25rem; font-size: 0.71rem; color: var(--mia-muted); }

/* ── Sugestões ───────────────────────────────────────────────────────────── */

.mia-sugestoes { display: flex; flex-direction: column; gap: 0.9rem; }
.mia-sugestao { border: 1px solid #cfe0f5; border-radius: 12px; padding: 1rem; background: linear-gradient(180deg, #f7fbff, #ffffff); }
.mia-sugestao-cabecalho { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mia-sugestao-cabecalho strong { font-size: 0.9rem; }
.mia-sugestao-cabecalho p { margin: 0.2rem 0 0; font-size: 0.77rem; color: var(--mia-ink-2); max-width: 70ch; line-height: 1.5; }
.mia-sugestao-troca { display: flex; align-items: center; gap: 0.6rem; margin: 0.8rem 0 0.5rem; flex-wrap: wrap; }
.mia-sugestao-troca code {
  font-family: ui-monospace, monospace; font-size: 0.8rem;
  border-radius: 7px; padding: 0.25rem 0.55rem; font-weight: 600;
}
.mia-sugestao-troca code.de { background: var(--mia-surface-2); color: var(--mia-ink-2); text-decoration: line-through; }
.mia-sugestao-troca code.para { background: #e8f2ff; color: var(--mia-deep); }
.mia-sugestao-troca i { color: var(--mia-muted); }
.mia-sugestao-motivo { margin: 0 0 0.6rem; font-size: 0.79rem; color: var(--mia-ink-2); }
.mia-sugestao-ganhos { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.mia-sugestao-ganhos span {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 600;
}
.mia-sugestao-ganhos .ganho { background: var(--mia-ok-bg); color: var(--mia-ok); }
.mia-sugestao-ganhos .custo { background: var(--mia-warn-bg); color: var(--mia-warn); }

.mia-comparacao { border-top: 1px solid var(--mia-line); padding-top: 0.85rem; margin-top: 0.85rem; }
.mia-comparacao:first-of-type { border-top: 0; }
.mia-comparacao-topo { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.mia-comparacao-topo > div { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mia-comparacao-topo strong { font-size: 0.85rem; }

/* ── Simulação ───────────────────────────────────────────────────────────── */

.mia-simulacao { border: 1px solid var(--mia-line); border-radius: 11px; margin-bottom: 0.6rem; overflow: hidden; }
.mia-simulacao-topo {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.8rem 0.95rem; background: var(--mia-surface);
  border: 0; cursor: pointer; text-align: left; font: inherit;
}
.mia-simulacao-topo:hover { background: var(--mia-surface-2); }
.mia-simulacao-topo strong { display: block; font-size: 0.85rem; }
.mia-simulacao-topo > div > span { display: block; margin-top: 0.2rem; font-size: 0.73rem; color: var(--mia-ink-2); }
.mia-simulacao-topo code { font-family: ui-monospace, monospace; background: var(--mia-surface-2); padding: 0.03rem 0.3rem; border-radius: 5px; }
.mia-simulacao-valor { display: flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.mia-simulacao-valor strong { font-size: 0.95rem; }
.mia-simulacao-valor small { font-size: 0.68rem; color: var(--mia-muted); }
.mia-simulacao-valor i { color: var(--mia-muted); }
.mia-simulacao .mia-tabela-rolagem { padding: 0 0.95rem 0.85rem; }

/* ── Erros ───────────────────────────────────────────────────────────────── */

.mia-erros { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.mia-erros li { border: 1px solid #fecaca; background: var(--mia-bad-bg); border-radius: 10px; padding: 0.65rem 0.8rem; }
.mia-erros li > div { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.mia-erros strong { font-size: 0.81rem; }
.mia-erros code { font-family: ui-monospace, monospace; font-size: 0.72rem; background: #fff; padding: 0.05rem 0.35rem; border-radius: 5px; }
.mia-erro-quando { margin-left: auto; font-size: 0.7rem; color: var(--mia-muted); }
.mia-erros p { margin: 0.3rem 0 0; font-size: 0.75rem; color: var(--mia-bad); font-family: ui-monospace, monospace; word-break: break-word; }

/* ── Estados vazios ──────────────────────────────────────────────────────── */

.mia-vazio {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 3rem 1.5rem; text-align: center;
  color: var(--mia-ink-2); background: var(--mia-surface);
  border: 1px dashed var(--mia-line); border-radius: 14px;
}
.mia-vazio.compacto { padding: 1.75rem 1.25rem; }
.mia-vazio > i { font-size: 1.6rem; color: var(--mia-muted); }
.mia-vazio p { margin: 0; font-size: 0.88rem; font-weight: 600; }
.mia-vazio small { font-size: 0.76rem; color: var(--mia-muted); max-width: 62ch; line-height: 1.55; }

.mia-erro {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--mia-bad-bg); border: 1px solid #fecaca; color: var(--mia-bad);
  border-radius: 12px; padding: 1rem 1.15rem; font-size: 0.85rem;
}

.mia-negado {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 4rem 1.5rem; text-align: center;
}
.mia-negado i { font-size: 2rem; color: var(--mia-muted); }
.mia-negado h2 { margin: 0; font-size: 1.15rem; }
.mia-negado p { margin: 0; font-size: 0.85rem; color: var(--mia-ink-2); max-width: 46ch; line-height: 1.55; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .mia-page { padding: 1rem; }
  .mia-funcao, .mia-padrao { grid-template-columns: 1fr; }
  .mia-abas { overflow-x: auto; flex-wrap: nowrap; }
  .mia-aba { white-space: nowrap; }
}
.est {
  --est-primary: #0A4EA0;
  --est-primary-2: #1e6ecf;
  --est-deep: #002b5e;
  --est-night: #001833;
  --est-ink: #0f172a;
  --est-ink-2: #475569;
  --est-muted: #94a3b8;
  --est-line: #e5ebf3;
  --est-surface: #ffffff;
  --est-surface-2: #f6f9fd;
  --est-ok: #047857;
  --est-ok-bg: #ecfdf5;
  --est-warn: #b45309;
  --est-warn-bg: #fffbeb;
  --est-bad: #b91c1c;
  --est-bad-bg: #fef2f2;
  --est-cyan: #0e7490;
  --est-violet: #7c3aed;

  padding: 1.25rem 1.5rem 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--est-ink);
}

.est *, .est *::before, .est *::after { box-sizing: border-box; }

.est-topo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.15rem 1.4rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 120%, rgba(59, 143, 255, 0.45), transparent 45%),
    radial-gradient(circle at 10% -20%, rgba(124, 196, 255, 0.25), transparent 40%),
    linear-gradient(120deg, var(--est-night) 0%, var(--est-deep) 55%, var(--est-primary) 100%);
  box-shadow: 0 10px 30px rgba(0, 43, 94, 0.25);
}
.est-topo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 30%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 28% 70%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 58% 60%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 18%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 78% 48%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 26%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 36% 44%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}
.est-topo-linha { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.est-marca { display: flex; align-items: center; gap: 0.9rem; }
.est-marca img { height: 64px; width: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); animation: est-flutua 5s ease-in-out infinite; }
.est-marca h1 { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.est-marca p { margin: 0.15rem 0 0; font-size: 0.8rem; color: #b9d6ff; }
.est-status { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.est-chip-topo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem; font-weight: 600; color: #e6f0ff; backdrop-filter: blur(4px);
}
.est-chip-topo .ponto { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25); animation: est-pulso 1.8s infinite; }
.est-chip-topo .ponto.parado { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25); }

.est-nav { position: relative; display: flex; gap: 0.15rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.est-nav::-webkit-scrollbar { display: none; }
.est-nav button, .est-nav a {
  border: 0; background: transparent; color: #b9d6ff; cursor: pointer; white-space: nowrap;
  padding: 0.7rem 0.95rem 0.8rem; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem; border-radius: 12px 12px 0 0;
  transition: background 0.15s, color 0.15s;
}
.est-nav button:hover, .est-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.est-nav button.ativa { background: var(--est-surface-2); color: var(--est-deep); }
.est-nav .sep { width: 1px; background: rgba(255,255,255,0.18); margin: 0.55rem 0.35rem; }
.est-nav .contador {
  background: #f97316; color: #fff; border-radius: 999px; font-size: 0.65rem; padding: 0.05rem 0.4rem; font-weight: 800;
}

.est-conteudo { display: flex; flex-direction: column; gap: 1.1rem; animation: est-entra 0.35s ease both; }

.est-cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.est-cabecalho h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.55rem; }
.est-cabecalho h2 i { color: var(--est-primary); }
.est-cabecalho p { margin: 0.25rem 0 0; font-size: 0.84rem; color: var(--est-ink-2); max-width: 82ch; line-height: 1.55; }
.est-acoes { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.est-grade { display: grid; gap: 1rem; }
.est-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.est-g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.est-g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.est-kpis { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.est-cartao {
  background: var(--est-surface); border: 1px solid var(--est-line); border-radius: 16px;
  padding: 1.1rem 1.2rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); min-width: 0;
}
.est-cartao-topo { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.est-cartao-topo h3 { margin: 0; font-size: 0.92rem; font-weight: 750; display: flex; align-items: center; gap: 0.5rem; }
.est-cartao-topo h3 i { color: var(--est-primary); font-size: 0.85rem; }
.est-cartao-topo small { font-size: 0.74rem; color: var(--est-muted); }
.est-cartao.escuro { background: linear-gradient(135deg, var(--est-night), var(--est-deep)); color: #fff; border: 0; }
.est-cartao.escuro .est-cartao-topo h3 i { color: #7cc4ff; }

.est-kpi {
  background: var(--est-surface); border: 1px solid var(--est-line); border-radius: 14px;
  padding: 0.9rem 1rem; position: relative; overflow: hidden;
}
.est-kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cor, var(--est-primary)); }
.est-kpi .rotulo { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--est-muted); font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.est-kpi .rotulo i { color: var(--cor, var(--est-primary)); }
.est-kpi .valor { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 800; margin-top: 0.25rem; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-kpi .nota { font-size: 0.72rem; color: var(--est-ink-2); margin-top: 0.15rem; }
.est-kpi .nota.sobe { color: var(--est-ok); font-weight: 700; }
.est-kpi .nota.desce { color: var(--est-bad); font-weight: 700; }

.est-btn {
  border: 1px solid var(--est-line); background: var(--est-surface); color: var(--est-ink);
  border-radius: 10px; padding: 0.5rem 0.85rem; font-size: 0.8rem; font-weight: 650; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem; transition: all 0.15s; text-decoration: none;
}
.est-btn:hover:not(:disabled) { border-color: var(--est-primary); color: var(--est-primary); }
.est-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.est-btn.primario { background: var(--est-primary); border-color: var(--est-primary); color: #fff; }
.est-btn.primario:hover:not(:disabled) { background: var(--est-deep); color: #fff; }
.est-btn.verde { background: var(--est-ok); border-color: var(--est-ok); color: #fff; }
.est-btn.verde:hover:not(:disabled) { filter: brightness(0.92); color: #fff; }
.est-btn.perigo { color: var(--est-bad); }
.est-btn.perigo:hover:not(:disabled) { border-color: var(--est-bad); color: var(--est-bad); background: var(--est-bad-bg); }
.est-btn.pequeno { padding: 0.32rem 0.6rem; font-size: 0.74rem; border-radius: 8px; }
.est-btn.fantasma { border-color: transparent; background: transparent; }

.est-selo {
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px;
  padding: 0.18rem 0.6rem; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  color: var(--cor); background: color-mix(in srgb, var(--cor) 12%, white);
  border: 1px solid color-mix(in srgb, var(--cor) 25%, white);
}
.est-selo.pulsa i { animation: est-gira 1.6s linear infinite; }
.est-tag {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 650;
  padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--est-surface-2); color: var(--est-ink-2);
  border: 1px solid var(--est-line);
}

.est-avatar {
  position: relative; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #e8f1ff, #c9dcf6);
  display: grid; place-items: end center; overflow: hidden;
  box-shadow: 0 0 0 3px var(--anel, #cbd5e1), 0 4px 10px rgba(15, 23, 42, 0.12);
}
.est-avatar img { width: 92%; height: auto; transform: translateY(14%); }
.est-avatar.trabalhando { animation: est-anel 1.6s ease-in-out infinite; }
.est-avatar.foto { place-items: center; }
.est-avatar.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: none; }
.est-avatar.foto.mini img { transform: scale(1.5); transform-origin: 50% 26%; }

.est-agentes { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.est-cracha {
  background: var(--est-surface); border: 1px solid var(--est-line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s;
}
.est-cracha:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 78, 160, 0.12); }
.est-cracha-topo {
  position: relative; height: 70px;
  background: linear-gradient(120deg, var(--est-deep), var(--est-primary));
}
.est-cracha-topo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 40%, #fff, transparent), radial-gradient(1px 1px at 70% 30%, #fff, transparent), radial-gradient(1px 1px at 45% 75%, #fff, transparent);
  opacity: 0.7;
}
.est-cracha-corpo { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.est-cracha-corpo .est-avatar { margin-top: -38px; }
.est-cracha h4 { margin: 0.2rem 0 0; font-size: 1.02rem; font-weight: 800; }
.est-cracha .cargo { font-size: 0.78rem; color: var(--est-ink-2); font-weight: 600; }
.est-cracha .resumo { font-size: 0.76rem; color: var(--est-ink-2); line-height: 1.45; min-height: 2.2em; }
.est-cracha .linhas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem; font-size: 0.72rem; color: var(--est-ink-2); }
.est-cracha .linhas b { display: block; color: var(--est-ink); font-size: 0.82rem; }
.est-cracha .rodape { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }

.est-fluxo { display: flex; align-items: stretch; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.3rem; }
.est-fluxo-etapa {
  flex: 1 0 120px; text-align: center; padding: 0.7rem 0.5rem; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.est-fluxo-etapa .nomes { font-size: 0.78rem; font-weight: 700; }
.est-fluxo-etapa .papel { font-size: 0.68rem; color: #b9d6ff; }
.est-fluxo-seta { align-self: center; color: #7cc4ff; font-size: 0.9rem; flex: none; }
.est-fluxo-avatares { display: flex; gap: 0.3rem; }

.est-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.est-lista li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px dashed var(--est-line); }
.est-lista li:last-child { border-bottom: 0; }
.est-lista .icone-acao {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 0.78rem; color: var(--cor, var(--est-primary)); background: color-mix(in srgb, var(--cor, #0A4EA0) 12%, white);
}
.est-lista .texto { flex: 1; min-width: 0; }
.est-lista .titulo { font-size: 0.8rem; font-weight: 600; line-height: 1.4; word-break: break-word; }
.est-lista .meta { font-size: 0.7rem; color: var(--est-muted); margin-top: 0.15rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.est-tabela-wrap { overflow-x: auto; }
.est-tabela { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.est-tabela th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--est-muted); font-weight: 700; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--est-line); white-space: nowrap; }
.est-tabela td { padding: 0.6rem; border-bottom: 1px solid var(--est-line); vertical-align: middle; }
.est-tabela tr:hover td { background: var(--est-surface-2); }
.est-tabela tr.clicavel { cursor: pointer; }

.est-barra { height: 7px; border-radius: 99px; background: #e8eef6; overflow: hidden; }
.est-barra > span { display: block; height: 100%; border-radius: 99px; background: var(--cor, var(--est-primary)); transition: width 0.4s; }

.est-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.5rem 1rem; text-align: center; color: var(--est-ink-2); font-size: 0.82rem; }
.est-vazio img { height: 110px; opacity: 0.95; }
.est-carregando { padding: 3rem; text-align: center; color: var(--est-ink-2); }
.est-carregando img { height: 120px; animation: est-flutua 2.4s ease-in-out infinite; }

.est-negado { max-width: 560px; margin: 3rem auto; text-align: center; background: var(--est-surface); border: 1px solid var(--est-line); border-radius: 20px; padding: 2rem; }
.est-negado img { height: 150px; }
.est-negado h2 { margin: 0.6rem 0 0.4rem; }
.est-negado p { color: var(--est-ink-2); font-size: 0.86rem; line-height: 1.6; }

.est-kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 0.8rem; overflow-x: auto; }
.est-coluna { background: var(--est-surface-2); border: 1px solid var(--est-line); border-radius: 16px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 200px; }
.est-coluna-topo { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 750; color: var(--est-ink-2); padding: 0 0.2rem; }
.est-coluna-topo .n { background: #fff; border: 1px solid var(--est-line); border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.72rem; }
.est-pauta {
  background: #fff; border: 1px solid var(--est-line); border-radius: 12px; padding: 0.7rem; cursor: pointer;
  display: flex; flex-direction: column; gap: 0.45rem; transition: border-color 0.15s, box-shadow 0.15s;
  border-left: 3px solid var(--cor, var(--est-primary));
}
.est-pauta:hover { border-color: var(--est-primary); box-shadow: 0 6px 16px rgba(10, 78, 160, 0.1); }
.est-pauta .t { font-size: 0.8rem; font-weight: 650; line-height: 1.35; }
.est-pauta .m { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

.est-fundo-modal { position: fixed; inset: 0; background: rgba(0, 24, 51, 0.55); z-index: 1000; display: flex; justify-content: flex-end; animation: est-aparece 0.2s ease both; }
.est-gaveta {
  width: min(920px, 100%); height: 100%; background: var(--est-surface-2); overflow-y: auto;
  display: flex; flex-direction: column; animation: est-desliza 0.25s ease both; box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.est-gaveta-topo { position: sticky; top: 0; z-index: 2; background: linear-gradient(120deg, var(--est-night), var(--est-deep)); color: #fff; padding: 1rem 1.3rem; display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.est-gaveta-topo h3 { margin: 0.35rem 0 0; font-size: 1.05rem; line-height: 1.35; }
.est-gaveta-corpo { padding: 1.1rem 1.3rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
.est-modal { margin: auto; width: min(620px, 94vw); background: #fff; border-radius: 18px; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; animation: est-entra 0.25s ease both; }
.est-fundo-modal.centro { justify-content: center; align-items: center; }

.est-abas { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--est-line); overflow-x: auto; }
.est-abas button { border: 0; background: transparent; padding: 0.6rem 0.85rem; font-size: 0.8rem; font-weight: 650; color: var(--est-ink-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 0.4rem; align-items: center; }
.est-abas button.ativa { color: var(--est-primary); border-bottom-color: var(--est-primary); }

.est-campo { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 650; color: var(--est-ink-2); }
.est-campo input, .est-campo select, .est-campo textarea {
  border: 1px solid var(--est-line); border-radius: 10px; padding: 0.55rem 0.7rem; font-size: 0.84rem;
  font-family: inherit; color: var(--est-ink); background: #fff; font-weight: 500;
}
.est-campo textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.est-campo input:focus, .est-campo select:focus, .est-campo textarea:focus { outline: 2px solid color-mix(in srgb, var(--est-primary) 30%, white); border-color: var(--est-primary); }
.est-filtros { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.est-filtros .est-campo { min-width: 160px; }
.est-interruptor { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; font-weight: 600; }
.est-interruptor input { display: none; }
.est-interruptor .trilho { width: 38px; height: 22px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background 0.15s; }
.est-interruptor .trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.est-interruptor input:checked + .trilho { background: var(--est-ok); }
.est-interruptor input:checked + .trilho::after { transform: translateX(16px); }

.est-materia { background: #fff; border: 1px solid var(--est-line); border-radius: 16px; overflow: hidden; }
.est-materia img.capa { width: 100%; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }
.est-materia .corpo { padding: 1.2rem 1.4rem; font-size: 0.9rem; line-height: 1.7; color: #1e293b; }
.est-materia .corpo h1 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 0.4rem; }
.est-materia .corpo h2 { font-size: 1.08rem; margin: 1.3rem 0 0.4rem; color: var(--est-deep); }
.est-materia .corpo h3 { font-size: 0.95rem; margin: 1rem 0 0.3rem; }
.est-materia .corpo a { color: var(--est-primary); }
.est-materia .corpo .lide { color: var(--est-ink-2); font-size: 0.95rem; margin-bottom: 1rem; }

.est-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 1.4rem 1.6rem;
  background: linear-gradient(120deg, #eaf3ff, #f7fbff 60%); border: 1px solid #d6e6fb;
  display: flex; gap: 1.2rem; align-items: center;
}
.est-hero img { height: 150px; flex: none; }
.est-hero h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--est-deep); }
.est-hero p { margin: 0; font-size: 0.88rem; line-height: 1.65; color: #1e293b; }

.est-persona { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; }
.est-persona-lado { border-radius: 16px; padding: 1rem; color: #fff; background: linear-gradient(160deg, var(--cor, var(--est-deep)), var(--est-night)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
.est-persona-lado img { height: 170px; }
.est-persona-lado h4 { margin: 0.3rem 0 0; font-size: 1rem; }
.est-persona-lado .cargo { font-size: 0.76rem; color: #cfe2ff; }
.est-persona-lado blockquote { margin: 0.6rem 0 0; font-size: 0.8rem; font-style: italic; line-height: 1.5; color: #f1f7ff; }
.est-listinhas { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.est-listinha h5 { margin: 0 0 0.35rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cor, var(--est-primary)); display: flex; gap: 0.35rem; align-items: center; }
.est-listinha ul { margin: 0; padding-left: 1.05rem; font-size: 0.8rem; line-height: 1.55; color: #1e293b; }
.est-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.est-formato { border: 1px solid var(--est-line); border-radius: 16px; background: #fff; overflow: hidden; }
.est-formato-topo { display: flex; gap: 0.9rem; align-items: center; padding: 0.95rem 1.1rem; cursor: pointer; }
.est-formato-topo .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--est-primary), var(--est-deep)); color: #fff; flex: none; }
.est-formato-topo h4 { margin: 0; font-size: 0.95rem; }
.est-formato-topo .sub { font-size: 0.74rem; color: var(--est-ink-2); margin-top: 0.15rem; }
.est-formato-corpo { border-top: 1px solid var(--est-line); padding: 1rem 1.1rem 1.2rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.est-formato-corpo p { margin: 0; font-size: 0.84rem; line-height: 1.65; color: #1e293b; }
.est-bench { display: flex; flex-direction: column; gap: 0.5rem; }
.est-bench a { display: block; text-decoration: none; padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--est-surface-2); border: 1px solid var(--est-line); color: inherit; }
.est-bench a:hover { border-color: var(--est-primary); }
.est-bench .v { font-size: 1rem; font-weight: 800; color: var(--est-primary); }
.est-bench .mt { font-size: 0.74rem; color: #1e293b; margin-top: 0.1rem; }
.est-bench .f { font-size: 0.68rem; color: var(--est-muted); margin-top: 0.15rem; }
.est-expectativa { border-radius: 12px; padding: 0.75rem 0.9rem; background: linear-gradient(120deg, #ecfdf5, #f0fdfa); border: 1px solid #bbf7d0; font-size: 0.8rem; line-height: 1.55; color: #065f46; }
.est-gancho { font-size: 0.8rem; padding: 0.5rem 0.7rem; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; cursor: pointer; text-align: left; line-height: 1.4; font-family: inherit; }
.est-gancho:hover { background: #ffedd5; }

.est-semana { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 0.6rem; overflow-x: auto; }
.est-dia { background: var(--est-surface-2); border: 1px solid var(--est-line); border-radius: 14px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.est-dia h5 { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--est-deep); }
.est-post { background: #fff; border-radius: 10px; padding: 0.55rem; border-left: 3px solid var(--cor, var(--est-primary)); font-size: 0.74rem; line-height: 1.4; display: flex; flex-direction: column; gap: 0.25rem; }
.est-post .h { font-weight: 800; color: var(--est-deep); }
.est-post .r { color: var(--est-ink-2); font-size: 0.7rem; }

.est-linha-tempo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; }
.est-mes { border-radius: 14px; border: 1px solid var(--est-line); padding: 0.8rem; background: #fff; position: relative; }
.est-mes.destaque { border-color: #fdba74; background: linear-gradient(160deg, #fff7ed, #fff); }
.est-mes h5 { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--est-deep); }
.est-mes ul { margin: 0; padding-left: 1rem; font-size: 0.76rem; line-height: 1.5; color: #1e293b; }
.est-mes .d { display: inline-block; margin-bottom: 0.4rem; font-size: 0.68rem; font-weight: 800; color: #c2410c; text-transform: uppercase; letter-spacing: 0.04em; }

.est-detalhe { font-size: 0.74rem; background: var(--est-surface-2); border: 1px solid var(--est-line); border-radius: 10px; padding: 0.6rem 0.75rem; margin-top: 0.45rem; display: grid; gap: 0.25rem; }
.est-detalhe div { word-break: break-word; }
.est-detalhe b { color: var(--est-ink-2); }

.est-kit { display: grid; gap: 0.8rem; }
.est-kit-bloco { background: #fff; border: 1px solid var(--est-line); border-radius: 14px; padding: 0.9rem; }
.est-kit-bloco h5 { margin: 0 0 0.5rem; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.est-kit-bloco pre { white-space: pre-wrap; font-family: inherit; font-size: 0.8rem; line-height: 1.55; margin: 0; color: #1e293b; }
.est-cards-carrossel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.est-card-carrossel { aspect-ratio: 4 / 5; border-radius: 12px; padding: 0.7rem; background: linear-gradient(160deg, var(--est-deep), var(--est-primary)); color: #fff; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.72rem; line-height: 1.4; position: relative; overflow: hidden; }
.est-card-carrossel b { font-size: 0.82rem; line-height: 1.25; }
.est-card-carrossel .n { position: absolute; right: 0.5rem; bottom: 0.4rem; font-size: 0.65rem; opacity: 0.7; }

.est-ajuda { font-size: 0.74rem; color: var(--est-muted); line-height: 1.5; }
.est-separador { height: 1px; background: var(--est-line); margin: 0.2rem 0; }

@keyframes est-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes est-pulso { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes est-anel { 0%, 100% { box-shadow: 0 0 0 3px var(--anel), 0 0 0 6px transparent; } 50% { box-shadow: 0 0 0 3px var(--anel), 0 0 0 9px color-mix(in srgb, var(--anel) 25%, transparent); } }
@keyframes est-gira { to { transform: rotate(360deg); } }
@keyframes est-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes est-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes est-desliza { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }

@media (max-width: 1100px) {
  .est-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-g3, .est-g21, .est-g12 { grid-template-columns: minmax(0, 1fr); }
  .est-formato-corpo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .est { padding: 0.75rem 0.75rem 2rem; }
  .est-g2, .est-g4 { grid-template-columns: minmax(0, 1fr); }
  .est-marca img { height: 48px; }
  .est-marca h1 { font-size: 1.15rem; }
  .est-persona { grid-template-columns: minmax(0, 1fr); }
  .est-hero { flex-direction: column; text-align: center; }
  .est-kanban { grid-template-columns: repeat(4, minmax(240px, 85vw)); }
}

.est-conteudo > *, .est-grade > *, .est-kpis > * { min-width: 0; }
.est h2, .est h3, .est h4, .est h5, .est p, .est li, .est span, .est b, .est div { overflow-wrap: break-word; }
.est-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.est-nav button span { white-space: nowrap; }
.est-clamp-1, .est-clamp-2, .est-clamp-3, .est-clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.est-clamp-1 { -webkit-line-clamp: 1; }
.est-clamp-2 { -webkit-line-clamp: 2; }
.est-clamp-3 { -webkit-line-clamp: 3; }
.est-clamp-4 { -webkit-line-clamp: 4; }
.est-sub { font-size: 0.82rem; color: var(--est-ink-2); margin: 0; }

.est-subnav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.est-subnav button {
  border: 1px solid var(--est-line); background: #fff; color: var(--est-ink-2); border-radius: 999px;
  padding: 0.42rem 0.9rem; font-size: 0.78rem; font-weight: 650; cursor: pointer; display: inline-flex; gap: 0.4rem; align-items: center;
}
.est-subnav button.ativa { background: var(--est-deep); border-color: var(--est-deep); color: #fff; }

.est-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--est-surface-2); border: 1px solid var(--est-line); font-size: 0.74rem; font-weight: 600; color: #1e293b; max-width: 100%; }
.est-chip i { color: var(--cor, var(--est-primary)); }
.est-chip.forte { background: color-mix(in srgb, var(--cor, #0A4EA0) 10%, white); border-color: color-mix(in srgb, var(--cor, #0A4EA0) 25%, white); }

.est-titulo-secao { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 -0.2rem; }
.est-titulo-secao h3 { margin: 0; font-size: 1rem; font-weight: 800; display: flex; gap: 0.5rem; align-items: center; color: var(--est-deep); }
.est-titulo-secao h3 i { color: var(--est-primary); }

.est-trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 0.8rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }

.est-stat { background: #fff; border: 1px solid var(--est-line); border-radius: 14px; padding: 0.75rem 0.9rem; text-decoration: none; color: inherit; display: block; }
.est-stat b { display: block; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--est-deep); }
.est-stat span { font-size: 0.74rem; color: var(--est-ink-2); }

.est-personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.est-pcard {
  position: relative; border: 2px solid var(--est-line); border-radius: 18px; background: #fff; padding: 0.7rem 0.8rem; cursor: pointer;
  display: flex; gap: 0.7rem; align-items: center; text-align: left; transition: border-color 0.15s, transform 0.15s; font-family: inherit;
}
.est-pcard:hover { transform: translateY(-2px); }
.est-pcard.ativa { border-color: var(--cor); box-shadow: 0 8px 22px color-mix(in srgb, var(--cor) 22%, transparent); }
.est-pcard img { width: 54px; height: 66px; object-fit: contain; flex: none; }
.est-pcard b { display: block; font-size: 0.95rem; }
.est-pcard span { font-size: 0.74rem; color: var(--est-ink-2); }
.est-pcard .estrela { position: absolute; top: 8px; right: 10px; color: #f59e0b; font-size: 0.8rem; }

.est-perfil { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; }
.est-perfil-lado { border-radius: 18px; padding: 1.1rem; color: #fff; background: linear-gradient(165deg, var(--cor, var(--est-deep)), var(--est-night)); display: flex; flex-direction: column; gap: 0.55rem; }
.est-perfil-lado img { height: 150px; align-self: center; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35)); }
.est-perfil-lado h3 { margin: 0; font-size: 1.15rem; text-align: center; }
.est-perfil-lado .cargo { text-align: center; font-size: 0.78rem; color: #cfe2ff; }
.est-perfil-lado blockquote { margin: 0.2rem 0; font-size: 0.82rem; font-style: italic; line-height: 1.5; color: #fff; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 0.6rem 0.7rem; }
.est-fato { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.78rem; line-height: 1.4; color: #e6f0ff; }
.est-fato i { width: 16px; text-align: center; color: #7cc4ff; margin-top: 2px; }

.est-blocos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.7rem; }
.est-bloco { border: 1px solid var(--est-line); border-radius: 14px; padding: 0.75rem; background: #fff; }
.est-bloco h5 { margin: 0 0 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cor, var(--est-primary)); display: flex; gap: 0.4rem; align-items: center; }
.est-bloco ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.est-bloco li { font-size: 0.79rem; line-height: 1.35; padding-left: 0.85rem; position: relative; }
.est-bloco li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 5px; height: 5px; border-radius: 50%; background: var(--cor, var(--est-primary)); }
.est-bloco p { margin: 0; font-size: 0.8rem; line-height: 1.45; }

.est-dia-linha { position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding-left: 1.2rem; }
.est-dia-linha::before { content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--cor, #0A4EA0), #cbd5e1); border-radius: 2px; }
.est-dia-item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.45rem 0.6rem; border-radius: 12px; }
.est-dia-item:hover { background: var(--est-surface-2); }
.est-dia-item::before { content: ""; position: absolute; left: -1.05rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; border: 2px solid var(--cor, #0A4EA0); }
.est-dia-item .h { font-weight: 800; font-size: 0.82rem; color: var(--est-deep); }
.est-dia-item .m { font-size: 0.8rem; }
.est-dia-item .o { font-size: 0.7rem; color: var(--est-ok); background: var(--est-ok-bg); border-radius: 999px; padding: 0.15rem 0.55rem; font-weight: 650; max-width: 230px; }

.est-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.est-video { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: inherit; }
.est-video .capa { position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; aspect-ratio: 9 / 13; }
.est-video .capa img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.est-video:hover .capa img { transform: scale(1.05); }
.est-video .capa .v { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,0.72); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 6px; }
.est-video .capa .g { position: absolute; right: 6px; top: 6px; font-size: 0.62rem; font-weight: 800; padding: 0.12rem 0.45rem; border-radius: 6px; color: #fff; background: var(--cor, #0A4EA0); text-transform: uppercase; letter-spacing: 0.04em; }
.est-video .t { font-size: 0.76rem; font-weight: 650; line-height: 1.3; }
.est-video .c { font-size: 0.68rem; color: var(--est-muted); }
.est-videos.largos { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.est-videos.largos .capa { aspect-ratio: 16 / 9; }

.est-matriz { display: grid; grid-template-columns: 22px repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(110px, auto)) 22px; gap: 6px; }
.est-matriz .q { border-radius: 12px; padding: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-content: flex-start; position: relative; min-width: 0; }
.est-matriz .q .est-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0.22rem 0.45rem; gap: 0.25rem; }
.est-matriz .q small { width: 100%; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(15,23,42,0.55); }
.est-matriz .q1 { background: #ecfdf5; }
.est-matriz .q2 { background: #eff6ff; }
.est-matriz .q3 { background: #fffbeb; }
.est-matriz .q4 { background: #f8fafc; }
.est-matriz .eixo-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.66rem; color: var(--est-muted); text-align: center; grid-row: 1 / 3; font-weight: 700; }
.est-matriz .eixo-x { grid-column: 2 / 4; font-size: 0.66rem; color: var(--est-muted); text-align: center; font-weight: 700; }
.est-matriz button.est-chip { cursor: pointer; font-family: inherit; }

.est-ranking { display: flex; flex-direction: column; gap: 0.45rem; }
.est-ranking button { display: grid; grid-template-columns: minmax(0, 1fr) 120px 30px; gap: 0.6rem; align-items: center; border: 0; background: transparent; padding: 0.15rem 0; cursor: pointer; text-align: left; font-family: inherit; }
.est-ranking .n { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-ranking .v { font-size: 0.78rem; font-weight: 800; text-align: right; }

.est-fgrade { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0.85rem; }
.est-fcard { border: 1px solid var(--est-line); border-radius: 18px; background: #fff; padding: 0.95rem; display: flex; flex-direction: column; gap: 0.6rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; text-align: left; font-family: inherit; }
.est-fcard:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 78, 160, 0.12); }
.est-fcard .topo { display: flex; gap: 0.7rem; align-items: center; }
.est-fcard .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--cor, #0A4EA0), var(--est-deep)); flex: none; }
.est-fcard h4 { margin: 0; font-size: 0.92rem; line-height: 1.25; }
.est-fcard .meta { font-size: 0.74rem; font-weight: 700; color: var(--est-ok); background: var(--est-ok-bg); border-radius: 8px; padding: 0.35rem 0.55rem; }
.est-fcard .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.est-fcard .mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #e2e8f0; }

.est-semana2 { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 0.5rem; overflow-x: auto; }
.est-semana2 .d { background: var(--est-surface-2); border-radius: 14px; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 120px; }
.est-semana2 .d h5 { margin: 0 0 0.1rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--est-deep); }
.est-semana2 .p { background: #fff; border-radius: 10px; padding: 0.45rem 0.5rem; border-left: 3px solid var(--cor); font-size: 0.72rem; line-height: 1.3; }
.est-semana2 .p b { display: block; font-size: 0.7rem; color: var(--est-deep); }

.est-conc { border: 1px solid var(--est-line); border-radius: 18px; background: #fff; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.est-conc .topo { display: flex; gap: 0.7rem; align-items: center; }
.est-conc .letra { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c3aed, #002b5e); flex: none; }
.est-conc h4 { margin: 0; font-size: 0.95rem; }
.est-conc .foco { font-size: 0.72rem; color: var(--est-ink-2); }
.est-conc .manchete { font-size: 0.8rem; font-weight: 650; color: var(--est-deep); background: var(--est-surface-2); border-radius: 10px; padding: 0.5rem 0.6rem; }
.est-links { display: flex; flex-direction: column; gap: 0.3rem; }
.est-links a { font-size: 0.76rem; color: #1e293b; text-decoration: none; display: flex; gap: 0.4rem; align-items: baseline; }
.est-links a:hover { color: var(--est-primary); }
.est-links a i { color: var(--est-muted); font-size: 0.7rem; }

.est-camp { border: 1px solid var(--est-line); border-radius: 18px; background: #fff; padding: 0.9rem; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; }
.est-camp.pausada { opacity: 0.75; }
.est-funil { display: flex; flex-direction: column; gap: 0.35rem; }
.est-funil div { display: grid; grid-template-columns: 70px minmax(0, 1fr) 46px; gap: 0.5rem; align-items: center; font-size: 0.72rem; }
.est-balao { position: relative; background: #fff; border: 1px solid #dbe5f3; border-radius: 16px; box-shadow: 0 12px 28px rgba(0, 43, 94, 0.16); padding: 0.75rem 0.8rem 0.75rem 3.2rem; font-size: 0.78rem; line-height: 1.4; }
.est-balao img { position: absolute; left: 0.55rem; top: 0.6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e8f1ff; object-fit: cover; }
.est-balao b { display: block; font-size: 0.82rem; margin-bottom: 0.15rem; color: #0f172a; }
.est-balao .cta { display: inline-block; margin-top: 0.45rem; background: #0A4EA0; color: #fff; border-radius: 8px; padding: 0.3rem 0.65rem; font-weight: 700; font-size: 0.72rem; }
.est-balao .tipo { display: block; margin-bottom: 0.2rem; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--est-muted); }
.est-nexus { border-radius: 16px; background: linear-gradient(160deg, #f1f5fb, #e6eef9); padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid #dbe5f3; }
.est-nexus .barra { height: 8px; border-radius: 4px; background: #cfdcef; }
.est-nexus .barra.c { width: 60%; }

.est-detalhes summary { cursor: pointer; font-weight: 750; font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; color: var(--est-deep); list-style: none; }
.est-detalhes summary::-webkit-details-marker { display: none; }
.est-detalhes summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.7rem; margin-left: auto; color: var(--est-muted); }
.est-detalhes[open] summary::after { content: "\f077"; }
.est-detalhes > div { margin-top: 0.8rem; }

.est-vazio-grafico { position: relative; }
.est-vazio-grafico .aviso { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 0.8rem; color: var(--est-ink-2); background: rgba(255,255,255,0.75); border-radius: 12px; }

@media (max-width: 1100px) {
  .est-personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-perfil { grid-template-columns: minmax(0, 1fr); }
  .est-camp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .est-personas { grid-template-columns: minmax(0, 1fr); }
  .est-dia-item { grid-template-columns: 46px minmax(0, 1fr); }
  .est-dia-item .o { grid-column: 2; }
  .est-nav button span { display: none; }
  .est-nav button.ativa span { display: inline; }
}

.est-alerta { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--est-bad-bg); color: var(--est-bad); font-size: 0.82rem; font-weight: 600; }
.est-select { border: 1px solid var(--est-line); border-radius: 10px; padding: 0.38rem 0.6rem; font-size: 0.78rem; background: #fff; color: var(--est-ink); }
button.est-chip { cursor: pointer; }
.est-gaveta.larga { width: min(1080px, 100%); }
.est-iris { padding-top: 0.9rem; padding-bottom: 0.9rem; background: linear-gradient(120deg, color-mix(in srgb, #db2777 8%, white), #fff 60%); }
.est-iris-linha { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.est-iris-linha .nome { font-weight: 800; font-size: 0.95rem; }
.est-iris-linha .nome a { color: inherit; }
.est-metas { display: flex; flex-direction: column; gap: 0.85rem; padding-top: 0.3rem; }
.est-metas .rotulo { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.35rem; }
.est-metas .rotulo i { color: var(--cor); }
.est-metas .rotulo span { margin-left: auto; color: var(--est-ink-2); font-weight: 600; }
.est-metas .barra { height: 10px; border-radius: 99px; background: var(--est-surface-2); overflow: hidden; }
.est-metas .barra div { height: 100%; border-radius: 99px; background: var(--cor); transition: width 0.4s; }
.est-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.est-peca { text-align: left; border: 1px solid var(--est-line); border-radius: 16px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.est-peca:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 24, 51, 0.12); }
.est-peca .capa { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(135deg, #001833, #0A4EA0); }
.est-peca .capa img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.est-peca .capa .vazia { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; color: #fff; font-size: 0.76rem; font-weight: 700; }
.est-peca .capa .vazia img { width: auto; height: 90px; animation: est-flutua 2.4s ease-in-out infinite; }
.est-peca .capa .qtd { position: absolute; top: 8px; right: 8px; background: rgba(0, 24, 51, 0.7); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 99px; }
.est-peca .info { padding: 0.65rem 0.75rem 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; }
.est-peca .info .selos { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.est-peca .info .selos .est-selo { font-size: 0.64rem; }
.est-peca .info strong { font-size: 0.82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.est-peca .info small { font-size: 0.7rem; color: var(--est-muted); }
.est-peca-detalhe { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.est-peca-detalhe .lado { display: flex; flex-direction: column; gap: 0.8rem; }
.est-visor .tela { position: relative; border-radius: 18px; overflow: hidden; background: #001833; aspect-ratio: 4 / 5; box-shadow: 0 12px 30px rgba(0, 24, 51, 0.25); }
.est-visor.vertical .tela { aspect-ratio: 9 / 16; max-height: 70vh; margin: 0 auto; }
.est-visor .tela img, .est-visor .tela video { width: 100%; height: 100%; object-fit: contain; display: block; background: #001833; }
.est-visor .seta { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #0A4EA0; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.est-visor .seta:disabled { opacity: 0; pointer-events: none; }
.est-visor .seta.esq { left: 10px; }
.est-visor .seta.dir { right: 10px; }
.est-visor .miniaturas { display: flex; gap: 0.4rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 0.2rem; }
.est-visor .miniaturas button { flex: 0 0 54px; border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; background: none; opacity: 0.65; }
.est-visor .miniaturas button.ativa { border-color: var(--est-primary); opacity: 1; }
.est-visor .miniaturas img { width: 100%; display: block; }
.est-porque { display: flex; gap: 0.7rem; align-items: flex-start; background: #fff; border: 1px solid var(--est-line); border-radius: 14px; padding: 0.75rem; }
.est-porque img { height: 64px; }
.est-porque strong { font-size: 0.78rem; }
.est-porque p { margin: 0.2rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--est-ink-2); }
.est-conferir { background: color-mix(in srgb, #f59e0b 10%, white); border: 1px solid color-mix(in srgb, #f59e0b 35%, white); border-radius: 14px; padding: 0.75rem 0.9rem; font-size: 0.78rem; }
.est-conferir strong { color: #b45309; }
.est-conferir ul { margin: 0.4rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; line-height: 1.45; }
.est-copia { background: #fff; border: 1px solid var(--est-line); border-radius: 14px; padding: 0.75rem 0.9rem; }
.est-copia .topo { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.est-copia .topo strong { font-size: 0.8rem; }
.est-copia p { margin: 0; white-space: pre-wrap; font-size: 0.8rem; line-height: 1.55; color: var(--est-ink); max-height: 260px; overflow-y: auto; }
.est-formatos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.est-iris.quasar { background: linear-gradient(120deg, color-mix(in srgb, #ea580c 8%, white), #fff 60%); }
.est-formatos button { border: 1.5px solid var(--est-line); border-radius: 14px; background: #fff; padding: 0.7rem 0.4rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.est-formatos button i { font-size: 1.2rem; color: var(--cor); }
.est-formatos button strong { font-size: 0.76rem; }
.est-formatos button small { font-size: 0.66rem; color: var(--est-muted); }
.est-formatos button.ativo { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 8%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor) 18%, white); }
@media (max-width: 760px) {
  .est-peca-detalhe { grid-template-columns: 1fr; }
  .est-formatos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Módulo Marketing (/admin/marketing*)
   Paleta oficial Phobos: #0A4EA0 e #002b5e — a mesma do Motor de IA.
   As cores de rede social só aparecem em selo de identificação; série de
   gráfico e estado (verde/âmbar/vermelho) continuam no vocabulário da casa.
   ═══════════════════════════════════════════════════════════════════════════ */

.mkt-page {
  --mkt-primary: #0A4EA0;
  --mkt-primary-2: #1e6ecf;
  --mkt-deep: #002b5e;
  --mkt-ink: #0f172a;
  --mkt-ink-2: #475569;
  --mkt-muted: #94a3b8;
  --mkt-line: #e8edf4;
  --mkt-surface: #ffffff;
  --mkt-surface-2: #f8fafc;

  --mkt-ok: #047857;
  --mkt-ok-bg: #ecfdf5;
  --mkt-warn: #b45309;
  --mkt-warn-bg: #fffbeb;
  --mkt-bad: #b91c1c;
  --mkt-bad-bg: #fef2f2;
  --mkt-info: #0e7490;
  --mkt-info-bg: #ecfeff;

  padding: 1.75rem;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mkt-ink);
  animation: mkt-fade 0.35s ease both;
}

@keyframes mkt-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */

.mkt-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.mkt-header h1 {
  margin: 0 0 0.3rem; font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.025em; display: flex; align-items: center; gap: 0.6rem;
}
.mkt-header h1 i { color: var(--mkt-primary); font-size: 1.2rem; }
.mkt-header p { margin: 0; font-size: 0.85rem; color: var(--mkt-ink-2); max-width: 74ch; line-height: 1.55; }
.mkt-header-acoes { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* ── Abas ────────────────────────────────────────────────────────────────── */

.mkt-abas { display: flex; gap: 0.3rem; flex-wrap: wrap; border-bottom: 1px solid var(--mkt-line); }
.mkt-aba {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--mkt-ink-2); border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: color 0.15s, border-color 0.15s;
}
.mkt-aba i { font-size: 0.85rem; opacity: 0.8; }
.mkt-aba:hover { color: var(--mkt-primary); }
.mkt-aba.ativa { color: var(--mkt-primary); border-bottom-color: var(--mkt-primary); }

.mkt-conteudo { display: flex; flex-direction: column; gap: 1.15rem; }

/* ── Cartões ─────────────────────────────────────────────────────────────── */

.mkt-cartao {
  background: var(--mkt-surface); border: 1px solid var(--mkt-line);
  border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mkt-cartao h2 {
  margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.mkt-cartao h2 i { color: var(--mkt-primary); font-size: 0.9rem; }
.mkt-cartao h3 {
  margin: 1.25rem 0 0.65rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--mkt-muted);
}
.mkt-cartao-topo {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.mkt-sub { margin: 0 0 0.9rem; font-size: 0.8rem; color: var(--mkt-ink-2); line-height: 1.55; max-width: 92ch; }
.mkt-contador {
  background: var(--mkt-surface-2); border: 1px solid var(--mkt-line);
  border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.7rem;
  font-weight: 700; color: var(--mkt-ink-2);
}

/* ── Botões ──────────────────────────────────────────────────────────────── */

.mkt-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-radius: 9px; padding: 0.5rem 0.85rem; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.mkt-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mkt-btn-primario { background: var(--mkt-primary); color: #fff; }
.mkt-btn-primario:hover:not(:disabled) { background: var(--mkt-deep); }
.mkt-btn-secundario { background: var(--mkt-surface); border-color: var(--mkt-line); color: var(--mkt-ink); }
.mkt-btn-secundario:hover:not(:disabled) { border-color: var(--mkt-primary); color: var(--mkt-primary); }
.mkt-btn-texto { background: transparent; color: var(--mkt-ink-2); }
.mkt-btn-texto:hover:not(:disabled) { color: var(--mkt-primary); }
.mkt-btn-texto.perigo:hover:not(:disabled) { color: var(--mkt-bad); }
.mkt-btn-grande { padding: 0.7rem 1.3rem; font-size: 0.88rem; }

.mkt-btn-icone {
  border: 1px solid var(--mkt-line); background: var(--mkt-surface);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer;
  color: var(--mkt-ink-2); transition: border-color 0.15s, color 0.15s;
}
.mkt-btn-icone:hover:not(:disabled) { border-color: var(--mkt-primary); color: var(--mkt-primary); }
.mkt-btn-icone:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Placar do objetivo ──────────────────────────────────────────────────── */

.mkt-objetivo {
  background: linear-gradient(135deg, var(--mkt-deep) 0%, var(--mkt-primary) 100%);
  border-radius: 16px; padding: 1.5rem; color: #fff;
  display: grid; grid-template-columns: minmax(240px, 1.1fr) minmax(280px, 2fr);
  gap: 1.75rem; align-items: center;
}
.mkt-objetivo-numero { display: flex; flex-direction: column; gap: 0.15rem; }
.mkt-objetivo-numero .valor { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.mkt-objetivo-numero .meta { font-size: 0.9rem; opacity: 0.85; font-weight: 600; }
.mkt-objetivo-numero .rotulo {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.7; font-weight: 700; margin-bottom: 0.35rem;
}
.mkt-barra { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.mkt-barra span { display: block; height: 100%; border-radius: 999px; background: #fff; transition: width 0.5s ease; }
.mkt-objetivo-detalhe { display: flex; flex-direction: column; gap: 0.85rem; }
.mkt-objetivo-linhas { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.mkt-objetivo-linhas div { display: flex; flex-direction: column; gap: 0.1rem; }
.mkt-objetivo-linhas dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.72; font-weight: 700; }
.mkt-objetivo-linhas dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.mkt-objetivo-vazio { grid-column: 1 / -1; text-align: center; }
.mkt-objetivo-vazio p { margin: 0.4rem 0 1rem; opacity: 0.88; font-size: 0.86rem; }

/* ── Indicadores ─────────────────────────────────────────────────────────── */

.mkt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.mkt-kpi {
  background: var(--mkt-surface); border: 1px solid var(--mkt-line);
  border-radius: 12px; padding: 1rem;
}
.mkt-kpi .rotulo {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--mkt-muted); font-weight: 700; display: flex; align-items: center; gap: 0.35rem;
}
.mkt-kpi .valor { font-size: 1.65rem; font-weight: 800; margin-top: 0.3rem; letter-spacing: -0.025em; }
.mkt-kpi .nota { font-size: 0.73rem; color: var(--mkt-ink-2); margin-top: 0.2rem; }
.mkt-kpi .nota.positivo { color: var(--mkt-ok); font-weight: 700; }
.mkt-kpi .nota.negativo { color: var(--mkt-bad); font-weight: 700; }

/* ── Missão do dia ───────────────────────────────────────────────────────── */

.mkt-missao {
  border: 1px solid var(--mkt-line); border-radius: 14px; overflow: hidden;
  background: var(--mkt-surface);
}
.mkt-missao.destaque { border-color: var(--mkt-primary); box-shadow: 0 4px 18px rgba(10, 78, 160, 0.1); }
.mkt-missao-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1.15rem; background: var(--mkt-surface-2);
  border-bottom: 1px solid var(--mkt-line); flex-wrap: wrap;
}
.mkt-missao-topo strong { font-size: 0.88rem; display: flex; align-items: center; gap: 0.45rem; }
.mkt-missao-topo strong i { color: var(--mkt-primary); }
.mkt-missao-corpo { padding: 1.15rem; display: grid; gap: 0.95rem; }
.mkt-bloco { display: flex; gap: 0.75rem; align-items: flex-start; }
.mkt-bloco-icone {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: #e8f2ff; color: var(--mkt-primary); font-size: 0.85rem;
}
.mkt-bloco-icone.destaque { background: var(--mkt-primary); color: #fff; }
.mkt-bloco-texto { flex: 1; min-width: 0; }
.mkt-bloco-texto dt {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 800; color: var(--mkt-muted); margin-bottom: 0.2rem;
}
.mkt-bloco-texto dd { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--mkt-ink); }
.mkt-bloco-texto dd.gancho {
  font-size: 1rem; font-weight: 700; color: var(--mkt-deep);
  background: var(--mkt-surface-2); border-left: 3px solid var(--mkt-primary);
  padding: 0.6rem 0.85rem; border-radius: 0 9px 9px 0;
}
.mkt-missao-acoes {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.85rem 1.15rem; border-top: 1px solid var(--mkt-line); background: var(--mkt-surface-2);
}

/* ── Redes sociais ───────────────────────────────────────────────────────── */

.mkt-redes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.9rem; }
.mkt-rede {
  border: 1px solid var(--mkt-line); border-radius: 12px; padding: 1rem;
  background: var(--mkt-surface-2); display: flex; flex-direction: column; gap: 0.8rem;
}
.mkt-rede.conectada { background: var(--mkt-surface); border-color: #cfe0f5; }
.mkt-rede-topo { display: flex; align-items: center; gap: 0.65rem; }
.mkt-rede-topo strong { font-size: 0.92rem; flex: 1; }
.mkt-selo-rede {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.mkt-selo-rede.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.mkt-selo-rede.facebook  { background: #1877f2; }
.mkt-selo-rede.linkedin  { background: #0a66c2; }
.mkt-selo-rede.youtube   { background: #ff0000; }

.mkt-rede-acoes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mkt-rede-form { display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-rede-form input, .mkt-rede-form textarea, .mkt-rede-form select {
  width: 100%; border: 1px solid var(--mkt-line); border-radius: 9px;
  padding: 0.5rem 0.7rem; font-size: 0.8rem; font-family: inherit; background: var(--mkt-surface);
}
.mkt-rede-form input:focus, .mkt-rede-form textarea:focus, .mkt-rede-form select:focus {
  outline: none; border-color: var(--mkt-primary);
}
.mkt-rede-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; resize: vertical; }

.mkt-conta {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--mkt-line); border-radius: 10px;
  padding: 0.65rem 0.8rem; background: var(--mkt-surface);
}
.mkt-conta img, .mkt-conta .avatar-vazio {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px;
  background: var(--mkt-surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--mkt-muted); font-size: 0.85rem;
}
.mkt-conta-dados { flex: 1; min-width: 0; }
.mkt-conta-dados strong { display: block; font-size: 0.85rem; }
.mkt-conta-dados span { font-size: 0.72rem; color: var(--mkt-ink-2); }

/* ── Selos de estado ─────────────────────────────────────────────────────── */

.mkt-pill {
  display: inline-flex; align-items: center; gap: 0.28rem;
  border-radius: 999px; padding: 0.12rem 0.55rem;
  font-size: 0.68rem; font-weight: 700; white-space: nowrap;
}
.mkt-pill.ok      { background: var(--mkt-ok-bg);   color: var(--mkt-ok); }
.mkt-pill.warn    { background: var(--mkt-warn-bg); color: var(--mkt-warn); }
.mkt-pill.bad     { background: var(--mkt-bad-bg);  color: var(--mkt-bad); }
.mkt-pill.info    { background: var(--mkt-info-bg); color: var(--mkt-info); }
.mkt-pill.neutro  { background: var(--mkt-surface-2); color: var(--mkt-ink-2); border: 1px solid var(--mkt-line); }

/* ── Avisos ──────────────────────────────────────────────────────────────── */

.mkt-aviso {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.78rem; line-height: 1.55; color: var(--mkt-warn);
  background: var(--mkt-warn-bg); border: 1px solid #fde68a;
  border-radius: 10px; padding: 0.7rem 0.85rem; margin: 0;
}
.mkt-aviso.info { color: var(--mkt-info); background: var(--mkt-info-bg); border-color: #a5f3fc; }
.mkt-aviso.erro { color: var(--mkt-bad); background: var(--mkt-bad-bg); border-color: #fecaca; }
.mkt-aviso i { margin-top: 0.12rem; }
.mkt-aviso code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.06); padding: 0.06rem 0.32rem; border-radius: 5px;
}

/* ── Formulários ─────────────────────────────────────────────────────────── */

.mkt-form { display: grid; gap: 1rem; }
.mkt-form-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.mkt-campo { display: flex; flex-direction: column; gap: 0.35rem; }
.mkt-campo > label { font-size: 0.78rem; font-weight: 700; color: var(--mkt-ink-2); }
.mkt-campo > .ajuda { font-size: 0.72rem; color: var(--mkt-muted); line-height: 1.5; }
.mkt-campo input, .mkt-campo select, .mkt-campo textarea {
  border: 1px solid var(--mkt-line); border-radius: 9px;
  padding: 0.55rem 0.7rem; font-size: 0.82rem; font-family: inherit;
  background: var(--mkt-surface); color: var(--mkt-ink);
}
.mkt-campo textarea { resize: vertical; min-height: 78px; line-height: 1.55; }
.mkt-campo input:focus, .mkt-campo select:focus, .mkt-campo textarea:focus {
  outline: none; border-color: var(--mkt-primary);
}
.mkt-form-acoes { display: flex; gap: 0.55rem; flex-wrap: wrap; }

.mkt-opcoes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mkt-opcao {
  border: 1px solid var(--mkt-line); background: var(--mkt-surface);
  border-radius: 9px; padding: 0.45rem 0.75rem; font-size: 0.78rem;
  font-weight: 600; color: var(--mkt-ink-2); cursor: pointer; transition: all 0.15s;
}
.mkt-opcao:hover { border-color: var(--mkt-primary); color: var(--mkt-primary); }
.mkt-opcao.ativa { background: var(--mkt-primary); border-color: var(--mkt-primary); color: #fff; }

/* ── Tabelas ─────────────────────────────────────────────────────────────── */

.mkt-tabela-rolagem { overflow-x: auto; margin: 0 -0.25rem; padding: 0 0.25rem; }
.mkt-tabela { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.mkt-tabela th {
  text-align: left; padding: 0.5rem 0.6rem; font-size: 0.68rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--mkt-muted); border-bottom: 1px solid var(--mkt-line); white-space: nowrap;
}
.mkt-tabela th.num, .mkt-tabela td.num { text-align: right; }
.mkt-tabela td { padding: 0.6rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.mkt-tabela tbody tr:hover { background: var(--mkt-surface-2); }
.mkt-tabela td.forte { font-weight: 700; }
.mkt-tabela td.positivo { color: var(--mkt-ok); font-weight: 700; }
.mkt-tabela td.negativo { color: var(--mkt-bad); font-weight: 600; }
.mkt-vazio-celula { text-align: center; color: var(--mkt-muted); padding: 1.6rem !important; }

/* ── Estúdio ─────────────────────────────────────────────────────────────── */

.mkt-estudio { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr); gap: 1.15rem; align-items: start; }
@media (max-width: 1080px) { .mkt-estudio { grid-template-columns: 1fr; } }

.mkt-etapas { display: flex; flex-direction: column; gap: 0.55rem; }
.mkt-etapa {
  display: flex; gap: 0.7rem; align-items: flex-start;
  border: 1px solid var(--mkt-line); border-radius: 11px; padding: 0.8rem 0.9rem;
  background: var(--mkt-surface);
}
.mkt-etapa.feita { border-color: #bbf7d0; background: var(--mkt-ok-bg); }
.mkt-etapa.ativa { border-color: var(--mkt-primary); }
.mkt-etapa-num {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 800;
  background: var(--mkt-surface-2); color: var(--mkt-ink-2); border: 1px solid var(--mkt-line);
}
.mkt-etapa.feita .mkt-etapa-num { background: var(--mkt-ok); color: #fff; border-color: var(--mkt-ok); }
.mkt-etapa.ativa .mkt-etapa-num { background: var(--mkt-primary); color: #fff; border-color: var(--mkt-primary); }
.mkt-etapa-texto { flex: 1; min-width: 0; }
.mkt-etapa-texto strong { font-size: 0.83rem; display: block; }
.mkt-etapa-texto p { margin: 0.15rem 0 0; font-size: 0.74rem; color: var(--mkt-ink-2); line-height: 1.5; }

.mkt-roteiro-cena {
  display: grid; grid-template-columns: 52px 1fr; gap: 0.7rem;
  border-left: 2px solid var(--mkt-line); padding: 0.55rem 0 0.55rem 0.75rem; margin-left: 0.3rem;
}
.mkt-roteiro-cena .seg { font-size: 0.75rem; font-weight: 800; color: var(--mkt-primary); }
.mkt-roteiro-cena p { margin: 0 0 0.2rem; font-size: 0.79rem; line-height: 1.5; }
.mkt-roteiro-cena .fala { color: var(--mkt-ink-2); font-style: italic; }
.mkt-roteiro-cena .tela {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: var(--mkt-surface-2); border: 1px solid var(--mkt-line);
  border-radius: 6px; padding: 0.1rem 0.4rem; color: var(--mkt-deep);
}

.mkt-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem; line-height: 1.6; background: var(--mkt-surface-2);
  border: 1px solid var(--mkt-line); border-radius: 10px; padding: 0.85rem;
  white-space: pre-wrap; word-break: break-word; color: var(--mkt-ink-2); max-height: 260px; overflow: auto;
}

.mkt-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.mkt-video {
  border: 1px solid var(--mkt-line); border-radius: 12px; overflow: hidden;
  background: var(--mkt-surface); display: flex; flex-direction: column;
}
.mkt-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0f172a; display: block; }
.mkt-video-vazio {
  aspect-ratio: 9 / 16; display: flex; flex-direction: column; gap: 0.5rem;
  align-items: center; justify-content: center; background: var(--mkt-surface-2);
  color: var(--mkt-muted); font-size: 0.78rem; text-align: center; padding: 1rem;
}
.mkt-video-rodape { padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; }
.mkt-video-rodape strong { font-size: 0.8rem; line-height: 1.35; }
.mkt-video-rodape .meta { font-size: 0.7rem; color: var(--mkt-muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mkt-video-acoes { display: flex; gap: 0.3rem; margin-top: 0.15rem; }

/* ── Estados ─────────────────────────────────────────────────────────────── */

.mkt-vazio {
  text-align: center; padding: 3rem 1.5rem; color: var(--mkt-ink-2);
  border: 1px dashed var(--mkt-line); border-radius: 14px; background: var(--mkt-surface-2);
}
.mkt-vazio i { font-size: 1.8rem; color: var(--mkt-muted); margin-bottom: 0.8rem; display: block; }
.mkt-vazio h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--mkt-ink); }
.mkt-vazio p { margin: 0 auto 1.2rem; font-size: 0.83rem; max-width: 52ch; line-height: 1.6; }

.mkt-negado {
  text-align: center; padding: 4rem 1.5rem; color: var(--mkt-ink-2);
}
.mkt-negado i { font-size: 2.2rem; color: var(--mkt-muted); margin-bottom: 1rem; display: block; }
.mkt-negado h2 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--mkt-ink); }
.mkt-negado p { margin: 0 auto; font-size: 0.86rem; max-width: 56ch; line-height: 1.6; }

.mkt-carregando { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 3rem; color: var(--mkt-ink-2); font-size: 0.88rem; }

/* ── Gráficos ────────────────────────────────────────────────────────────── */

.mkt-grafico { width: 100%; height: 280px; margin-top: 0.5rem; }
.mkt-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.15rem; }

/* ── Diagnóstico ─────────────────────────────────────────────────────────── */

.mkt-listas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.15rem; margin-top: 0.9rem; }
.mkt-lista { display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-lista li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.82rem; line-height: 1.55; list-style: none;
}
.mkt-lista ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-lista i { margin-top: 0.22rem; font-size: 0.72rem; }
.mkt-lista.gargalos i { color: var(--mkt-bad); }
.mkt-lista.alavancas i { color: var(--mkt-ok); }

@media (max-width: 720px) {
  .mkt-page { padding: 1rem; }
  .mkt-objetivo { grid-template-columns: 1fr; gap: 1.2rem; }
  .mkt-objetivo-numero .valor { font-size: 2.1rem; }
}

.mkt-page.mkt-embutida { padding: 0; max-width: none; margin: 0; }
/* ═══════════════════════════════════════════════════════════════════════════
   Assinaturas de e-mail (/admin/marketing/assinaturas e /minha-assinatura)
   Herda as variáveis de .mkt-page; o que está aqui é só o que a tela de
   assinatura tem de próprio — prévia, linha do tempo do ano e editor de tema.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Sub-abas ────────────────────────────────────────────────────────────── */

.asn-secoes {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  background: var(--mkt-surface-2, #f8fafc);
  border: 1px solid var(--mkt-line, #e8edf4);
  border-radius: 10px; padding: 0.3rem;
}
.asn-secao {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.5rem 0.9rem; border-radius: 7px;
  font-size: 0.83rem; font-weight: 600; color: var(--mkt-ink-2, #475569);
  display: flex; align-items: center; gap: 0.45rem; transition: all 0.15s;
}
.asn-secao:hover { color: var(--mkt-primary, #0A4EA0); }
.asn-secao.ativa { background: #fff; color: var(--mkt-primary, #0A4EA0); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.09); }

/* ── Visão geral ─────────────────────────────────────────────────────────── */

.asn-topo { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.15rem; }
.asn-tema-atual { border-top: 3px solid var(--mkt-primary, #0A4EA0); }
.asn-tema-nome { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0 0.35rem; }
.asn-tema-desc { margin: 0 0 0.75rem; font-size: 0.83rem; line-height: 1.55; color: var(--mkt-ink-2, #475569); }
.asn-tema-rodape { margin-top: 0.7rem; font-size: 0.76rem; color: var(--mkt-muted, #94a3b8); }
.asn-proxima-dia { font-size: 1.45rem; font-weight: 800; color: var(--mkt-ink, #0f172a); margin: 0.2rem 0 0.35rem; }

.asn-cores { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.asn-cor { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(15, 23, 42, 0.12); display: inline-block; }
.asn-cor.mini { width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 3px; }

.asn-faixa-previa {
  color: #fff; font-size: 0.76rem; font-weight: 700; padding: 0.45rem 0.7rem;
  border-radius: 6px; line-height: 1.35;
}

.asn-selo {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0.35rem 0 0;
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 20px;
}
.asn-selo.ok    { background: var(--mkt-ok-bg, #ecfdf5); color: var(--mkt-ok, #047857); }
.asn-selo.off   { background: #f1f5f9; color: #64748b; }
.asn-selo.trava { background: var(--mkt-warn-bg, #fffbeb); color: var(--mkt-warn, #b45309); }

/* ── Troca manual de tema ────────────────────────────────────────────────── */

.asn-troca-manual {
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--mkt-line, #e8edf4);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.asn-troca-manual > label { font-size: 0.78rem; font-weight: 700; color: var(--mkt-ink-2, #475569); }
.asn-troca-manual > small { font-size: 0.71rem; color: var(--mkt-muted, #94a3b8); }
.asn-troca-manual .mkt-btn { align-self: flex-start; }

.asn-travado {
  display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem;
  background: var(--mkt-warn-bg, #fffbeb); border-radius: 9px; padding: 0.75rem 0.85rem;
  color: var(--mkt-warn, #b45309);
}
.asn-travado > i { margin-top: 0.15rem; }
.asn-travado strong { font-size: 0.84rem; }
.asn-travado p { margin: 0.25rem 0 0.6rem; font-size: 0.79rem; line-height: 1.5; }

.asn-situacao { list-style: none; margin: 0 0 0.9rem; padding: 0; font-size: 0.83rem; line-height: 1.9; color: var(--mkt-ink-2, #475569); }
.asn-situacao li.ok      { color: var(--mkt-ok, #047857); }
.asn-situacao li.alerta  { color: var(--mkt-bad, #b91c1c); }
.asn-situacao li.atencao { color: var(--mkt-warn, #b45309); }

/* ── Prévia ──────────────────────────────────────────────────────────────── */

.asn-previa-caixa {
  border: 1px solid var(--mkt-line, #e8edf4); border-radius: 10px; background: #fff;
  padding: 0.6rem; overflow-x: auto; min-height: 190px;
  /* Xadrez discreto: mostra que o PNG da foto tem fundo transparente. */
  background-image:
    linear-gradient(45deg, #f6f8fb 25%, transparent 25%, transparent 75%, #f6f8fb 75%),
    linear-gradient(45deg, #f6f8fb 25%, transparent 25%, transparent 75%, #f6f8fb 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
}
.asn-previa-caixa.carregando {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--mkt-muted, #94a3b8); font-size: 0.85rem; background-image: none;
}
.asn-previa-caixa > iframe { border-radius: 6px; }
.asn-previa-acoes { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; flex-wrap: wrap; }

.asn-dica, .asn-ajuda {
  font-size: 0.8rem; line-height: 1.6; color: var(--mkt-ink-2, #475569); margin: 0 0 0.85rem;
}
.asn-dica {
  background: var(--mkt-info-bg, #ecfeff); color: var(--mkt-info, #0e7490);
  border-radius: 8px; padding: 0.6rem 0.8rem;
}
.asn-ajuda-inline { font-size: 0.76rem; color: var(--mkt-muted, #94a3b8); }
.asn-select { max-width: 260px; }
.asn-previa-filtros { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.asn-erro-celula { color: var(--mkt-bad, #b91c1c); font-weight: 700; }

/* ── Lista de colaboradores ──────────────────────────────────────────────── */

.asn-lista-pessoas { display: flex; flex-direction: column; gap: 0.5rem; }
.asn-pessoa { border: 1px solid var(--mkt-line, #e8edf4); border-radius: 10px; background: #fff; transition: border-color 0.15s; }
.asn-pessoa:hover { border-color: #cfdcec; }
.asn-pessoa.fora { opacity: 0.55; }
.asn-pessoa-topo { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; }
.asn-pessoa-nome {
  flex: 1; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.asn-pessoa-nome strong { font-size: 0.9rem; color: var(--mkt-ink, #0f172a); }
.asn-pessoa-cargo { font-size: 0.76rem; color: var(--mkt-muted, #94a3b8); }
.asn-pessoa-selos { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.asn-pessoa-corpo { border-top: 1px solid var(--mkt-line, #e8edf4); padding: 1rem 0.9rem; }
.asn-pessoa-acoes { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 0.9rem 0; }

.asn-mini {
  font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 0.28rem; white-space: nowrap;
}
.asn-mini.ok      { background: var(--mkt-ok-bg, #ecfdf5); color: var(--mkt-ok, #047857); }
.asn-mini.alerta  { background: var(--mkt-bad-bg, #fef2f2); color: var(--mkt-bad, #b91c1c); }
.asn-mini.atencao { background: var(--mkt-warn-bg, #fffbeb); color: var(--mkt-warn, #b45309); }
.asn-mini.off     { background: #f1f5f9; color: #64748b; }

.asn-check { position: relative; display: inline-flex; cursor: pointer; }
.asn-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.asn-check span {
  width: 38px; height: 21px; border-radius: 20px; background: #cbd5e1; transition: background 0.18s; display: block;
}
.asn-check span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform 0.18s;
}
.asn-check input:checked + span { background: var(--mkt-primary, #0A4EA0); }
.asn-check input:checked + span::after { transform: translateX(17px); }

/* ── Formulários ─────────────────────────────────────────────────────────── */

.asn-form-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem 1.1rem; }
.asn-form-grade > label { display: flex; flex-direction: column; gap: 0.32rem; }
.asn-form-grade > label > span { font-size: 0.78rem; font-weight: 700; color: var(--mkt-ink-2, #475569); }
.asn-form-grade > label > small { font-size: 0.71rem; color: var(--mkt-muted, #94a3b8); line-height: 1.45; }
.asn-form-grade > label.asn-larga { grid-column: 1 / -1; }
.asn-form-grade > label.asn-inline {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.2rem 0.55rem;
}
.asn-form-grade > label.asn-inline > small { grid-column: 2; }
.asn-form-grade input[type="range"] { accent-color: var(--mkt-primary, #0A4EA0); }
.asn-form-grade input[type="color"] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--mkt-line, #e8edf4); border-radius: 7px; background: #fff; cursor: pointer; }
.asn-duplo { display: flex; gap: 0.4rem; align-items: center; }
.asn-duplo > .mkt-campo { flex: 1; min-width: 0; }

/* ── Linha do tempo do ano ───────────────────────────────────────────────── */

.asn-timeline { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid var(--mkt-line, #e8edf4); }
.asn-timeline-trecho { transition: filter 0.15s; min-width: 1px; }
.asn-timeline-trecho:hover { filter: brightness(1.25); }
.asn-timeline-trecho.vigente { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(15, 23, 42, 0.5); }
.asn-timeline-meses {
  display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 0.3rem;
  font-size: 0.68rem; color: var(--mkt-muted, #94a3b8); text-align: center;
}
.asn-legenda { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.75rem; }
.asn-legenda-item { font-size: 0.74rem; color: var(--mkt-ink-2, #475569); display: inline-flex; align-items: center; gap: 0.25rem; }
.asn-legenda-item small { color: var(--mkt-muted, #94a3b8); }

.asn-simulador {
  margin-top: 1rem; padding: 0.8rem; border-radius: 9px;
  background: var(--mkt-surface-2, #f8fafc); border: 1px dashed var(--mkt-line, #e8edf4);
}
.asn-simulador-campos { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--mkt-ink-2, #475569); }
.asn-simulador-campos .mkt-campo { width: auto; max-width: 100px; }
.asn-simulador-campos > i { color: var(--mkt-primary, #0A4EA0); }
.asn-simulador-saida { margin-top: 0.6rem; font-size: 0.82rem; color: var(--mkt-ink-2, #475569); }

.asn-linha-vigente { background: #f2f7ff; }
.asn-bolinha { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.asn-link-oficial { font-size: 0.78rem; color: var(--mkt-primary, #0A4EA0); text-decoration: none; word-break: break-all; }
.asn-link-oficial:hover { text-decoration: underline; }
.asn-acoes-celula a.mkt-btn-icone { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.asn-slug { font-size: 0.7rem; color: var(--mkt-muted, #94a3b8); font-family: ui-monospace, monospace; }
.asn-regra { font-size: 0.78rem; color: var(--mkt-ink-2, #475569); }
.asn-acoes-celula { display: flex; gap: 0.3rem; }

/* ── Editor de tema ──────────────────────────────────────────────────────── */

.asn-modal-fundo {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto;
}
.asn-modal {
  background: #fff; border-radius: 14px; width: min(880px, 100%); padding: 1.4rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28); animation: asn-sobe 0.2s ease both;
}
@keyframes asn-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.asn-modal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.asn-modal-topo h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.asn-modal-topo h2 i { color: var(--mkt-primary, #0A4EA0); font-size: 0.9rem; }
.asn-modal-acoes { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1.3rem; }

/* ── Teste de publicação ─────────────────────────────────────────────────── */

.asn-teste { margin-top: 0.9rem; padding: 0.8rem; border-radius: 9px; font-size: 0.8rem; line-height: 1.9; }
.asn-teste.ok      { background: var(--mkt-ok-bg, #ecfdf5); color: var(--mkt-ok, #047857); }
.asn-teste.atencao { background: var(--mkt-warn-bg, #fffbeb); color: var(--mkt-warn, #b45309); }
.asn-teste code { font-size: 0.75rem; background: rgba(15, 23, 42, 0.06); padding: 0.1rem 0.35rem; border-radius: 4px; }
.asn-teste-problema { margin: 0.4rem 0 0; line-height: 1.5; }

/* ── Autoatendimento (/minha-assinatura) ─────────────────────────────────── */

.asn-minha { max-width: 980px; margin: 0 auto; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.15rem; }
.asn-passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.asn-passos li { counter-increment: passo; display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; align-items: start; font-size: 0.84rem; line-height: 1.6; color: var(--mkt-ink-2, #475569); }
.asn-passos li::before {
  content: counter(passo); width: 24px; height: 24px; border-radius: 50%;
  background: var(--mkt-primary, #0A4EA0); color: #fff; font-size: 0.74rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.asn-abas-cliente { display: flex; gap: 0.35rem; margin-bottom: 0.9rem; }
.asn-abas-cliente button {
  border: 1px solid var(--mkt-line, #e8edf4); background: #fff; cursor: pointer;
  padding: 0.45rem 0.9rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--mkt-ink-2, #475569);
}
.asn-abas-cliente button.ativa { background: var(--mkt-primary, #0A4EA0); border-color: var(--mkt-primary, #0A4EA0); color: #fff; }

@media (max-width: 720px) {
  .asn-pessoa-topo { flex-wrap: wrap; }
  .asn-pessoa-selos { width: 100%; }
  .asn-minha { padding: 1rem; }
}
/* ============================================================
   ADMIN TEAM — Equipe / Membros
   Padrão visual Phobos Intranet
   ============================================================ */

.team-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.team-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}

.team-header::before {
  content: "\f0c0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 8rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
  line-height: 1;
}

.team-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-header-title p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.9375rem;
}

.btn-new-team {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-size: 0.9375rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.btn-new-team:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---- Stats ---- */
.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* ---- Filter bar ---- */
.team-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}

.team-filter-bar__search {
  position: relative;
  flex: 1;
}

.team-filter-bar__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9ab8;
  font-size: 0.875rem;
  pointer-events: none;
}

.team-filter-bar__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #374151;
  background: #f8fafc;
  transition: border-color 0.2s;
  outline: none;
}

.team-filter-bar__input:focus {
  border-color: #0A4EA0;
  background: white;
}

.team-filter-bar__count {
  font-size: 0.875rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}

.team-filter-bar__count-num {
  font-weight: 700;
  color: #0A4EA0;
  margin-right: 0.25rem;
}

/* ---- Grid de cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ---- Card de membro ---- */
.team-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.team-card__photo-area {
  position: relative;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.team-card__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
}

.team-card__status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

.team-card__status-dot--active   { background: #10b981; }
.team-card__status-dot--inactive { background: #94a3b8; }

.team-card__body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  text-align: center;
}

.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.2rem;
}

.team-card__position {
  font-size: 0.85rem;
  color: #0A4EA0;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.team-card__department {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.team-card__order {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.team-card__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f0f4f8;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: #fafbff;
}

/* Empty state */
.team-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #8a9ab8;
}

.team-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  display: block;
}

/* Action buttons on card */
.btn-card-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card-action--edit   { background: #f0f9ff; color: #0891b2; }
.btn-card-action--edit:hover   { background: #0891b2; color: white; }
.btn-card-action--toggle { background: #f0fdf4; color: #059669; }
.btn-card-action--toggle:hover { background: #059669; color: white; }
.btn-card-action--toggle-off { background: #f8f8f8; color: #94a3b8; }
.btn-card-action--toggle-off:hover { background: #94a3b8; color: white; }
.btn-card-action--delete { background: #fff1f2; color: #dc2626; }
.btn-card-action--delete:hover { background: #dc2626; color: white; }

/* ============================================================
   MODAL
   ============================================================ */
.team-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: tmFadeIn 0.2s ease;
}

@keyframes tmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.team-modal {
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: tmSlide 0.3s ease;
  overflow: hidden;
}

@keyframes tmSlide {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-modal__header {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.team-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.team-modal__close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.team-modal__close:hover { background: rgba(255,255,255,0.35); }

.team-modal__body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.team-modal__body::-webkit-scrollbar { width: 5px; }
.team-modal__body::-webkit-scrollbar-thumb { background: #0A4EA0; border-radius: 3px; }

.team-modal__footer {
  padding: 1.1rem 1.75rem;
  border-top: 1px solid #e8edf5;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8f9fa;
  flex-shrink: 0;
}

/* Form */
.team-form-group {
  margin-bottom: 1.1rem;
}

.team-form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.team-form-group label i { color: #0A4EA0; font-size: 0.78rem; }

.team-form-input,
.team-form-select {
  width: 100%;
  padding: 0.55rem 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.team-form-input:focus,
.team-form-select:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10,78,160,0.1);
  background: white;
}

.team-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Modal buttons */
.btn-tm-primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.btn-tm-primary:hover { opacity: 0.88; }
.btn-tm-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-tm-secondary {
  background: white;
  color: #374151;
  border: 1.5px solid #d1d5db;
  padding: 0.6rem 1.2rem;
  border-radius: 9px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-tm-secondary:hover { background: #f3f4f6; }

@media (max-width: 768px) {
  .team-page { padding: 1rem; }
  .team-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .team-form-row { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════
   WEBMAIL — Premium Light Theme
   ═══════════════════════════════════════════ */

/* ── Drag-over state ── */
.mail-sidebar__folder--drag-over {
    background: rgba(10, 78, 160, 0.12) !important;
    border-left-color: #0A4EA0 !important;
}

/* ── Folder delete btn ── */
.mail-sidebar__folder-del {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.15s;
}

.mail-sidebar__folder:hover .mail-sidebar__folder-del {
    opacity: 1;
}

.mail-sidebar__folder-del:hover {
    color: #dc3545;
}

/* ── Add folder ── */
.mail-sidebar__add-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 20px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.mail-sidebar__add-folder:hover {
    color: #0A4EA0;
}

/* ── New folder input ── */
.mail-sidebar__new-folder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
}

.mail-sidebar__new-folder input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    outline: none;
}

.mail-sidebar__new-folder input:focus {
    border-color: #0A4EA0;
}

.mail-sidebar__new-folder button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

.mail-sidebar__new-folder button:first-of-type {
    color: #0A4EA0;
}

.mail-sidebar__new-folder button:last-of-type {
    color: #9ca3af;
}

/* ── Move-to select ── */
.mail-reader__move-menu select {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    background: #fff;
    outline: none;
}

.mail-reader__move-menu select:focus {
    border-color: #0A4EA0;
}

/* Ocupa a área de conteúdo do layout, não a janela: com 100vw a leitura passava
   da borda e o .dashboard-content (overflow-x: hidden) cortava ~290px à direita.
   A altura desconta o cabeçalho e o padding de 24px do conteúdo. */
.mail-page {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - var(--ph-header-h, 62px) - 48px);
    background: #f8f9fb;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Sidebar ── */
.mail-sidebar {
    width: 240px;
    min-width: 240px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.mail-sidebar__compose {
    margin: 0 16px 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}

.mail-sidebar__compose:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 78, 160, 0.35);
}

.mail-sidebar__folders {
    flex: 1;
    overflow-y: auto;
}

.mail-sidebar__folder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.mail-sidebar__folder:hover {
    background: rgba(10, 78, 160, 0.04);
    color: #374151;
}

.mail-sidebar__folder--active {
    background: rgba(10, 78, 160, 0.08);
    color: #0A4EA0;
    border-left-color: #0A4EA0;
    font-weight: 600;
}

.mail-sidebar__folder i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.mail-sidebar__folder-name {
    flex: 1;
}

.mail-sidebar__badge {
    background: #0A4EA0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ── Lista de E-mails ── */
.mail-list {
    width: 380px;
    min-width: 380px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.mail-list__header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}



.mail-list__search {
    position: relative;
}

.mail-list__search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.mail-list__search input:focus {
    border-color: #0A4EA0;
    background: #fff;
}

.mail-list__search input::placeholder {
    color: #9ca3af;
}

.mail-list__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.mail-list__items {
    flex: 1;
    overflow-y: auto;
}

.mail-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.mail-item:hover {
    background: #f9fafb;
}

.mail-item--active {
    background: rgba(10, 78, 160, 0.06) !important;
    border-left: 3px solid #0A4EA0;
}

.mail-item--unread .mail-item__subject {
    font-weight: 700;
    color: #111827;
}

.mail-item--unread .mail-item__from {
    font-weight: 600;
    color: #111827;
}

.mail-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.mail-item__from {
    font-size: 13px;
    color: #374151;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.mail-item__date {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.mail-item__subject {
    font-size: 13px;
    color: #374151;
    font-weight: 400;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-item__preview {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-item__attachment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 4px;
}

/* ── Leitura ── */
.mail-reader {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fb;
    overflow: hidden;
}

.mail-reader__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 12px;
}

.mail-reader__empty i {
    font-size: 48px;
    color: #d1d5db;
}

.mail-reader__empty p {
    font-size: 14px;
}

.mail-reader__header {
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.mail-reader__subject {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.mail-reader__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mail-reader__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.mail-reader__from-info {
    flex: 1;
    min-width: 0;
}

.mail-reader__from-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mail-reader__from-email {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mail-reader__date {
    font-size: 12px;
    color: #9ca3af;
}

.mail-reader__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.mail-reader__action {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.mail-reader__action:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mail-reader__action--danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.mail-reader__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.mail-reader__body iframe {
    width: 100%;
    border: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    display: block;
}

/* ── Compose Modal ── */
.compose-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.compose-modal {
    width: 860px;
    max-width: 95vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.compose-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.compose-modal__header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.compose-modal__close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.compose-modal__close:hover {
    color: #374151;
}

.compose-modal__fields {
    padding: 12px 20px 0;
}

.compose-modal__field {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding: 8px 0;
}

.compose-modal__field label {
    width: 50px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.compose-modal__field input {
    flex: 1;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 13px;
    outline: none;
    padding: 4px 0;
}

.compose-modal__field input::placeholder {
    color: #9ca3af;
}

.compose-modal__editor {
    flex: 1;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
}

.compose-modal__editor textarea {
    width: 100%;
    min-height: 200px;
    background: transparent;
    border: none;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: inherit;
}

.compose-modal__editor textarea::placeholder {
    color: #9ca3af;
}

.compose-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

.compose-modal__send {
    padding: 10px 24px;
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.compose-modal__send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.35);
}

.compose-modal__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Signature Preview in Compose ── */
.compose-modal__signature-preview {
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    flex-shrink: 0;
}

.compose-modal__signature-label {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compose-modal__signature-label i {
    font-size: 12px;
}

.compose-modal__signature-iframe {
    width: 100%;
    min-height: 60px;
    max-height: 200px;
    border: none;
    background: #fff;
    display: block;
}

/* ── Config / Setup ── */
.mail-setup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-setup__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mail-setup__icon {
    font-size: 48px;
    color: #0A4EA0;
    margin-bottom: 16px;
}

.mail-setup__card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.mail-setup__card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
}

.mail-setup__field {
    text-align: left;
    margin-bottom: 14px;
}

.mail-setup__field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.mail-setup__field input {
    width: 100%;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 13px;
    outline: none;
}

.mail-setup__field input:focus {
    border-color: #0A4EA0;
    background: #fff;
}

.mail-setup__field input::placeholder {
    color: #9ca3af;
}

.mail-setup__btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mail-setup__btn:hover {
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.35);
}

/* ── Loading ── */
.mail-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    gap: 10px;
    font-size: 14px;
}

.mail-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e5e7eb;
    border-top-color: #0A4EA0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Sidebar Settings Button ── */
.mail-sidebar__settings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 8px 16px 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mail-sidebar__settings:hover {
    background: #e5e7eb;
    color: #374151;
}

.mail-sidebar__settings i {
    font-size: 14px;
}

/* ── Compose Attach Button ── */
.compose-modal__attach {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.compose-modal__attach:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.compose-modal__attach i {
    font-size: 14px;
    color: #6b7280;
}

.compose-modal__footer-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── Attachment Chips ── */
.compose-modal__attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 12px;
    min-height: 0;
}

.compose-modal__attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f4ff, #eef2ff);
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 12px;
    color: #374151;
    animation: chipSlideIn 0.2s ease;
}

@keyframes chipSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.compose-modal__attachment-chip i {
    color: #6366f1;
    font-size: 11px;
}

.compose-modal__attachment-chip span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compose-modal__attachment-chip button {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.compose-modal__attachment-chip button:hover {
    color: #dc3545;
}

/* ── Settings Modal ── */
.mail-settings-modal {
    width: 560px;
    max-width: 95vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.mail-settings-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
}

.mail-settings-modal__header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mail-settings-modal__body {
    padding: 24px;
    overflow-y: auto;
}

.mail-settings-modal__section {
    margin-bottom: 24px;
}

.mail-settings-modal__section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-settings-modal__section h4 i {
    color: #0A4EA0;
}

.mail-settings-modal__description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}

.mail-settings-modal__description code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #0A4EA0;
    font-family: monospace;
}

.mail-settings-modal__sig-preview {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mail-settings-modal__sig-label {
    padding: 10px 16px;
    background: #f0fdf4;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mail-settings-modal__sig-iframe {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    border: none;
    background: #fff;
}

.mail-settings-modal__sig-empty {
    padding: 20px;
    background: #fefce8;
    border: 1px dashed #fbbf24;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mail-settings-modal__actions {
    display: flex;
    gap: 10px;
}

.mail-settings-modal__btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.mail-settings-modal__btn--primary {
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    color: #fff;
}

.mail-settings-modal__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.35);
}

.mail-settings-modal__btn--danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mail-settings-modal__btn--danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* ── Received Attachments Section ── */
.mail-reader__attachments {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

.mail-reader__attachments-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-reader__attachments-title i {
    color: #6b7280;
}

.mail-reader__attachments-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mail-reader__attachment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    min-width: 180px;
    cursor: pointer;
}

.mail-reader__attachment-card:hover {
    border-color: #0A4EA0;
    box-shadow: 0 2px 8px rgba(10, 78, 160, 0.12);
    transform: translateY(-1px);
}

.mail-reader__attachment-card>i:first-child {
    font-size: 22px;
    color: #6366f1;
    width: 28px;
    text-align: center;
}

.mail-reader__attachment-card .fa-file-pdf {
    color: #dc2626;
}

.mail-reader__attachment-card .fa-file-image {
    color: #2563eb;
}

.mail-reader__attachment-card .fa-file-word {
    color: #2563eb;
}

.mail-reader__attachment-card .fa-file-excel {
    color: #16a34a;
}

.mail-reader__attachment-card .fa-file-zipper {
    color: #d97706;
}

.mail-reader__attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mail-reader__attachment-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.mail-reader__attachment-size {
    font-size: 11px;
    color: #9ca3af;
}

.mail-reader__attachment-card>i:last-child {
    font-size: 13px;
    color: #9ca3af;
    transition: color 0.15s;
}

.mail-reader__attachment-card:hover>i:last-child {
    color: #0A4EA0;
}

/* ── Mobile Sidebar Overlay ── */
.mail-sidebar-overlay {
    display: none;
}

/* ── Hamburger button (hidden on desktop) ── */
.mail-list__menu-btn {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.mail-list__menu-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.mail-list__header-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mail-list__header-top h2 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}

/* ── Back button (hidden on desktop) ── */
.mail-reader__back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #0A4EA0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.mail-reader__back-btn:hover {
    background: #f3f4f6;
}

.mail-reader__back-btn i {
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mail-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 1100;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .mail-sidebar--open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .mail-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(2px);
    }

    .mail-list__menu-btn {
        display: flex;
    }

    .mail-list {
        width: 320px;
        min-width: 280px;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .mail-page {
        height: calc(100vh - 56px);
        position: relative;
    }

    /* Sidebar — slide-out drawer */
    .mail-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 1100;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .mail-sidebar--open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .mail-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(2px);
    }

    .mail-list__menu-btn {
        display: flex;
    }

    /* Mail list — full width */
    .mail-list {
        width: 100%;
        min-width: 0;
        flex: 1;
        border-right: none;
    }

    .mail-list__header-top h2 {
        margin-bottom: 0;
    }

    .mail-list__header {
        padding: 12px 16px;
    }

    .mail-list__header-top {
        margin-bottom: 10px;
    }

    .mail-item {
        padding: 12px 16px;
    }

    .mail-item__from {
        max-width: 160px;
    }

    /* Reader — overlays the list on mobile */
    .mail-reader {
        position: absolute;
        inset: 0;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        background: #f8f9fb;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mail-page--reading .mail-reader {
        transform: translateX(0);
    }

    .mail-reader__back-btn {
        display: flex;
    }

    .mail-reader__empty {
        display: none;
    }

    /* No mobile, o scroll é gerenciado pelo .mail-reader,
       então o body interno NÃO deve ter scroll próprio */
    .mail-reader__body {
        overflow: visible;
        overflow-x: hidden;
        padding: 12px;
        flex: none;
    }

    .mail-reader__header {
        padding: 16px;
    }

    .mail-reader__subject {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .mail-reader__meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mail-reader__date {
        width: 100%;
        margin-top: 4px;
    }

    .mail-reader__actions {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .mail-reader__action {
        padding: 6px 10px;
        font-size: 11px;
    }

    .mail-reader__body {
        padding: 12px;
    }

    .mail-reader__attachments {
        padding: 12px 16px;
    }

    .mail-reader__attachments-list {
        flex-direction: column;
    }

    .mail-reader__attachment-card {
        min-width: unset;
        width: 100%;
    }

    /* Compose Modal — full screen on mobile */
    .compose-modal {
        width: 100%;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .compose-overlay {
        align-items: flex-start;
    }

    .compose-modal__editor {
        min-height: 200px;
    }

    .compose-modal__header {
        padding: 12px 16px;
    }

    .compose-modal__fields {
        padding: 8px 16px 0;
    }

    .compose-modal__footer {
        padding: 10px 16px;
    }

    .compose-modal__attachments {
        padding: 0 16px 8px;
    }

    /* Settings Modal — full screen on mobile */
    .mail-settings-modal {
        width: 100%;
        max-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .mail-reader__actions {
        gap: 4px;
    }

    .mail-reader__action {
        padding: 5px 8px;
        font-size: 10px;
        gap: 4px;
    }

    .mail-reader__move-menu select {
        padding: 5px 8px;
        font-size: 11px;
    }

    .mail-reader__subject {
        font-size: 15px;
    }

    .mail-reader__avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .compose-modal__field label {
        width: 40px;
        font-size: 11px;
    }

    .compose-modal__field input {
        font-size: 12px;
    }
}
/* ── Troca de caixa ───────────────────────────────────────────────────────── */
/* Aparece só para quem tem mais de uma caixa liberada no cadastro. */

.mail-contas {
    position: relative;
    margin: 0 16px 12px;
}

.mail-contas__atual,
.mail-contas__lista button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.16s;
}

.mail-contas__atual:hover,
.mail-contas__lista button:hover {
    border-color: #0A4EA0;
    background: #f1f6fd;
}

.mail-contas__atual > i {
    color: #94a3b8;
    font-size: 11px;
}

.mail-contas__avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.mail-contas__texto {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mail-contas__texto strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-contas__texto em {
    font-size: 10.5px;
    font-style: normal;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-contas__lista {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mail-contas__lista button { background: #fff; border-color: transparent; }
.mail-contas__lista button > i { color: #0A4EA0; font-size: 12px; }

.mail-contas__item { display: flex; align-items: center; gap: 2px; }
.mail-contas__item > button:first-child { flex: 1; min-width: 0; }
.mail-contas__item.is-ativa > button:first-child { background: #f1f6fd; border-color: #bfd7f5; }

.mail-contas__remover {
    width: 28px !important;
    min-width: 28px;
    justify-content: center;
    padding: 0 !important;
    color: #94a3b8;
    background: transparent !important;
}
.mail-contas__remover:hover { color: #dc2626; background: #fef2f2 !important; border-color: transparent !important; }
.mail-contas__remover > i { color: inherit !important; }

.mail-contas__add {
    justify-content: center;
    color: #0A4EA0;
    font-size: 12.5px;
    font-weight: 600;
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
}



/* Selo da caixa no topo da lista — no celular a lateral fica escondida. */
.mail-list__conta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f6fd;
    color: #0A4EA0;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

.compose-modal__de {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: default;
}


/* ── Tela de adicionar outra conta ────────────────────────────────────────── */
/* Usa o mesmo overlay do compose (.compose-overlay). */

.conta-modal {
    width: 520px;
    max-width: 95vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.conta-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}

.conta-modal__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.conta-modal__body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conta-modal__intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.conta-modal__campo { display: flex; flex-direction: column; gap: 6px; }

.conta-modal__campo label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.conta-modal__campo label em { font-weight: 400; font-style: normal; color: #94a3b8; }

.conta-modal__campo input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13.5px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: all 0.16s;
}

.conta-modal__campo input:focus {
    background: #fff;
    border-color: #0A4EA0;
    box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.conta-modal__dica { font-size: 11.5px; color: #94a3b8; line-height: 1.5; }

.conta-modal__aviso {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1f6fd;
    border: 1px solid #dbeafe;
    font-size: 12px;
    line-height: 1.55;
    color: #334155;
}

.conta-modal__aviso > i { color: #0A4EA0; margin-top: 2px; }

.conta-modal__acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #eef2f7;
    background: #fbfdff;
}

.conta-modal__acoes button {
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.16s;
}

.conta-modal__acoes button:hover:not(:disabled) { border-color: #cbd5e1; color: #334155; }

.conta-modal__acoes button.is-primaria {
    background: linear-gradient(135deg, #0A4EA0, #1a6fd0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 78, 160, 0.25);
}

.conta-modal__acoes button.is-primaria:hover:not(:disabled) { transform: translateY(-1px); }
.conta-modal__acoes button:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

@media (max-width: 560px) {
    .conta-modal { width: 100%; max-height: 100vh; border-radius: 0; }
    .conta-modal__acoes button { flex: 1; justify-content: center; }
}
/* ============================================================
   DOCUMENTOS — Gerenciador de Arquivos Phobos
   Segue o padrão visual de Products.css
   ============================================================ */

.docs-page {
  padding: 2rem;
  min-height: 100%;
  background: #f4f6f9;
}

/* ---- Header ---- */
.docs-header {
  background: linear-gradient(135deg, #0A4EA0 0%, #1a6fd4 40%, #002b5e 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(10, 78, 160, 0.35);
  position: relative;
  overflow: hidden;
}
.docs-header::before {
  content: "\f07c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 2rem;
  bottom: -0.5rem;
  font-size: 7rem;
  opacity: 0.07;
  color: white;
  pointer-events: none;
}
.docs-header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.docs-header-title h1 i { font-size: 1.5rem; opacity: 0.9; }
.docs-header-title p {
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-size: 0.9375rem;
}
.docs-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.btn-docs {
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.btn-docs:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.85);
}
.btn-docs-primary {
  background: white;
  color: #0A4EA0;
  border-color: white;
}
.btn-docs-primary:hover { background: #e8f0fe; }

/* ---- Quota bar ---- */
.docs-quota-bar {
  background: white;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.docs-quota-label { font-size: 0.82rem; color: #64748b; font-weight: 600; white-space: nowrap; }
.docs-quota-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.docs-quota-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #0A4EA0, #1a6fd4);
  transition: width 0.4s ease;
}
.docs-quota-fill.warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.docs-quota-fill.danger { background: linear-gradient(90deg, #dc2626, #ef4444); }
.docs-quota-text { font-size: 0.8rem; color: #475569; font-weight: 600; white-space: nowrap; }

/* ---- Main layout ---- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* ---- Sidebar ---- */
.docs-sidebar {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}
.docs-sidebar-header {
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.docs-sidebar-header button {
  background: none;
  border: none;
  color: #0A4EA0;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.docs-sidebar-header button:hover { background: #eff6ff; }
.docs-folder-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.875rem;
  color: #374151;
  position: relative;
}
.docs-folder-item:hover { background: #f8fafc; }
.docs-folder-item.active { background: #eff6ff; color: #0A4EA0; font-weight: 600; }
.docs-folder-item i { width: 16px; text-align: center; }
.docs-folder-item .folder-actions { display: none; margin-left: auto; gap: 4px; }
.docs-folder-item:hover .folder-actions { display: flex; }
.docs-folder-item .folder-actions button {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 2px 5px; border-radius: 4px; font-size: 0.75rem;
}
}
.docs-folder-item .folder-actions button:hover { color: #0A4EA0; background: #dbeafe; }

.docs-main {
  flex: 1;
  min-height: 550px;
  padding-bottom: 120px !important;
}

/* ---- Toolbar ---- */
.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  background: white;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* com itens selecionados entram Recortar/Copiar/Excluir: a busca não some e os
   botões não quebram o texto em duas linhas — a barra desce para a de baixo */
.docs-toolbar-search {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}
.docs-toolbar-search input {
  border: none; background: none; outline: none;
  font-size: 0.875rem; color: #374151; width: 100%;
}
.docs-toolbar-search i { color: #94a3b8; }
.docs-toolbar-btn {
  background: #f1f5f9; border: none; color: #475569;
  padding: 0.45rem 0.9rem; border-radius: 8px; cursor: pointer;
  font-size: 0.875rem; display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.15s; font-weight: 500; white-space: nowrap;
}
.docs-toolbar-btn:hover { background: #dbeafe; color: #0A4EA0; }
.docs-toolbar-btn.active { background: #0A4EA0; color: white; }

/* ---- Drop Zone ---- */
.docs-dropzone {
  border: 2.5px dashed #bfdbfe;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 1rem;
  background: #f8faff;
}
.docs-dropzone.drag-over {
  border-color: #0A4EA0;
  background: #eff6ff;
  transform: scale(1.01);
}
.docs-dropzone i { font-size: 2.5rem; color: #93c5fd; margin-bottom: 0.75rem; display: block; }
.docs-dropzone p { color: #64748b; font-size: 0.9rem; margin: 0; }
.docs-dropzone span { color: #0A4EA0; font-weight: 600; }

/* ---- File grid ---- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}
.docs-list { display: flex; flex-direction: column; gap: 0.4rem; }

.docs-file-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 2px solid transparent;
  text-align: center;
}
.docs-file-card:hover {
  box-shadow: 0 6px 20px rgba(10,78,160,0.15);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}
.docs-file-card.selected { border-color: #0A4EA0; background: #eff6ff; }
.docs-file-card .file-icon { font-size: 2.5rem; margin-bottom: 0.2rem; }
.docs-file-card .file-name {
  font-size: 0.78rem; font-weight: 600; color: #1e293b;
  word-break: break-word; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.docs-file-card .file-meta { font-size: 0.7rem; color: #94a3b8; }
.docs-file-card .file-actions {
  display: none; position: absolute; top: 6px; right: 6px; gap: 4px;
}
.docs-file-card:hover .file-actions { display: flex; }
.docs-file-card .file-actions button {
  background: white; border: 1.5px solid #e2e8f0; border-radius: 6px;
  padding: 3px 7px; font-size: 0.72rem; cursor: pointer; color: #475569;
  transition: all 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.docs-file-card .file-actions button:hover { background: #0A4EA0; color: white; border-color: #0A4EA0; }

/* List view */
.docs-file-row {
  background: white; border-radius: 10px; padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.15s; cursor: pointer;
  border: 2px solid transparent;
}
.docs-file-row:hover { box-shadow: 0 3px 12px rgba(10,78,160,0.1); border-color: #bfdbfe; }
.docs-file-row.selected { border-color: #0A4EA0; background: #eff6ff; }
.docs-file-row .file-icon { font-size: 1.6rem; flex-shrink: 0; }
.docs-file-row .file-info { flex: 1; min-width: 0; }
.docs-file-row .file-info .fn { font-size: 0.875rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-file-row .file-info .fm { font-size: 0.75rem; color: #94a3b8; }
.docs-file-row .file-row-actions { display: flex; gap: 0.4rem; margin-left: auto; }
.docs-file-row .file-row-actions button {
  background: #f1f5f9; border: none; border-radius: 7px;
  padding: 0.35rem 0.65rem; font-size: 0.78rem; cursor: pointer; color: #475569;
  transition: all 0.15s;
}
.docs-file-row .file-row-actions button:hover { background: #0A4EA0; color: white; }

/* ---- Share badges ---- */
.share-badge { font-size: 0.65rem; padding: 2px 7px; border-radius: 99px; font-weight: 700; }
.share-badge.private { background: #f1f5f9; color: #64748b; }
.share-badge.all { background: #dcfce7; color: #166534; }
.share-badge.user { background: #dbeafe; color: #1e40af; }

/* ---- Modal ---- */
.docs-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: docsModalBg 0.15s ease;
}
@keyframes docsModalBg { from { opacity: 0; } to { opacity: 1; } }
.docs-modal {
  background: white; border-radius: 18px; padding: 2rem;
  width: 440px; max-width: 95vw;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: docsModalSlide 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes docsModalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.docs-modal h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.docs-modal label { font-size: 0.82rem; font-weight: 600; color: #475569; display: block; margin-bottom: 0.4rem; }
.docs-modal input, .docs-modal select {
  width: 100%; padding: 0.6rem 0.9rem;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: 0.9rem; color: #1e293b;
  outline: none; transition: border 0.15s;
  margin-bottom: 1rem; box-sizing: border-box;
}
.docs-modal input:focus, .docs-modal select:focus { border-color: #0A4EA0; }
.docs-modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }
.btn-cancel {
  background: #f1f5f9; border: none; color: #475569;
  padding: 0.55rem 1.2rem; border-radius: 9px; cursor: pointer; font-weight: 600;
  transition: background 0.15s;
}
.btn-cancel:hover { background: #e2e8f0; }
.btn-confirm {
  background: #0A4EA0; border: none; color: white;
  padding: 0.55rem 1.4rem; border-radius: 9px; cursor: pointer; font-weight: 600;
  transition: background 0.15s;
}
.btn-confirm:hover { background: #0d3d80; }
.btn-danger {
  background: #dc2626; border: none; color: white;
  padding: 0.55rem 1.2rem; border-radius: 9px; cursor: pointer; font-weight: 600;
}

/* ---- Upload progress toast ---- */
.docs-upload-progress {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: white; border-radius: 14px; padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); min-width: 280px; z-index: 999;
  animation: docsModalSlide 0.2s ease;
}
.docs-upload-progress h4 { margin: 0 0 0.75rem; font-size: 0.85rem; color: #1e293b; }
.docs-upload-item { margin-bottom: 0.6rem; }
.docs-upload-item .name { font-size: 0.78rem; color: #475569; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-upload-item .track { height: 5px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.docs-upload-item .fill { height: 100%; background: linear-gradient(90deg, #0A4EA0, #1a6fd4); border-radius: 99px; transition: width 0.3s; }

/* ---- Empty state ---- */
.docs-empty { text-align: center; padding: 4rem 2rem; color: #94a3b8; }
.docs-empty i { font-size: 3.5rem; margin-bottom: 1rem; display: block; opacity: 0.5; }
.docs-empty h3 { font-size: 1rem; color: #64748b; margin: 0 0 0.5rem; }
.docs-empty p { font-size: 0.875rem; margin: 0; }

/* ---- Context menu ---- */
.docs-context-menu {
  position: fixed; background: white; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 0.4rem 0;
  min-width: 180px; z-index: 2000;
  animation: docsModalBg 0.1s ease;
}
.docs-context-menu button {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%; background: none; border: none;
  padding: 0.55rem 1rem; font-size: 0.875rem; color: #374151;
  cursor: pointer; transition: background 0.1s;
}
.docs-context-menu button:hover { background: #f1f5f9; }
.docs-context-menu button.danger { color: #dc2626; }
.docs-context-menu button.danger:hover { background: #fef2f2; }
.docs-context-menu .ctx-divider { height: 1px; background: #f1f5f9; margin: 0.3rem 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .docs-page { padding: 1rem; }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 10px;
  font-size: 0.83rem;
  color: #64748b;
  flex-wrap: wrap;
}
.docs-breadcrumb-item {
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}
.docs-breadcrumb-item:hover { background: #f1f5f9; color: #0f172a; }
.docs-breadcrumb-item.active { font-weight: 600; color: #0A4EA0; background: #eff6ff; cursor: default; }

/* ── Sub-pastas grid ────────────────────────────────────────────────── */
.docs-subfolders { margin-bottom: 1.25rem; }
.docs-subfolders-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.docs-subfolders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.docs-subfolder-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
  text-align: center;
}
.docs-subfolder-card:hover {
  border-color: #f59e0b55;
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}
.docs-subfolder-card.docs-subfolder-new {
  border-style: dashed;
  border-color: #e2e8f0;
  opacity: 0.7;
}
.docs-subfolder-card.docs-subfolder-new:hover { opacity: 1; border-color: #94a3b8; }
.docs-subfolder-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.docs-subfolder-owner {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}
.docs-subfolder-actions {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  gap: 3px;
}
.docs-subfolder-card:hover .docs-subfolder-actions { display: flex; }
.docs-subfolder-actions button {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
}
.docs-subfolder-actions button:hover { background: #f8fafc; color: #0f172a; }

/* ── Owner badge ────────────────────────────────────────────────────── */
.file-owner-badge {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 2px;
  margin-top: 2px;
}


/* ── Sidebar tree indentation ────────────────────────────────────────── */
.docs-folder-item {
  transition: background 0.15s, padding-left 0.15s;
}

/* ── Drag & Drop ─────────────────────────────────────────────────────── */
.docs-file-card.dragging,
.docs-file-row.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  box-shadow: 0 0 0 2px #0A4EA0 !important;
  cursor: grabbing !important;
}
.docs-file-card { cursor: grab; }
.docs-file-row { cursor: grab; }

.docs-folder-item.drop-target,
.docs-subfolder-card.drop-target {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px #f59e0b66 !important;
  transform: scale(1.03);
}
.docs-folder-item.drop-target {
  border-radius: 8px;
  transform: none;
  background: #fef9ec !important;
  outline: 2px solid #f59e0b;
}


/* ── GMUD Form Styling ──────────────────────────────────────────────── */
.gmud-form-container input:not([type="checkbox"]),
.gmud-form-container select,
.gmud-form-container textarea {
 width: 100% !important;
 padding: 0.55rem 0.75rem !important;
 border: 1.5px solid #cbd5e1 !important;
 border-radius: 8px !important;
 font-size: 0.83rem !important;
 color: #1e293b !important;
 background-color: #f8fafc !important;
 outline: none !important;
 transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
 box-sizing: border-box !important;
 margin-bottom: 0px !important;
}

.gmud-form-container input:not([type="checkbox"]):focus,
.gmud-form-container select:focus,
.gmud-form-container textarea:focus {
 border-color: #0A4EA0 !important;
 background-color: #ffffff !important;
 box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1) !important;
}

.gmud-form-container textarea {
 resize: vertical !important;
 font-family: inherit !important;
}

.gmud-form-container label {
 display: block !important;
 font-size: 0.75rem !important;
 font-weight: 600 !important;
 color: #475569 !important;
 margin-bottom: 5px !important;
 margin-top: 0px !important;
}

.gmud-form-container input[type="checkbox"] {
 width: 15px !important;
 height: 15px !important;
 border: 1.5px solid #cbd5e1 !important;
 border-radius: 4px !important;
 cursor: pointer !important;
 accent-color: #0A4EA0 !important;
 margin: 0 !important;
}

.gmud-form-container label.gmud-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  margin-bottom: 0px !important;
  margin-top: 0px !important;
}

/* ── Toggle switch (aba Changelog da GMUD) ───────────────────────── */
.gmud-form-container label.gmud-switch {
  position: relative !important;
  display: inline-block !important;
  width: 42px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.gmud-form-container label.gmud-switch input[type="checkbox"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  margin: 0 !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

.gmud-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s;
}

.gmud-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s;
}

.gmud-switch input:checked ~ .gmud-switch__track {
  background: #0a4ea0;
}

.gmud-switch input:checked ~ .gmud-switch__track::after {
  transform: translateX(18px);
}

/* ── Wizard da GMUD: trilha de passos ────────────────────────────── */
.gmud-wizard-steps {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.gmud-wizard-step {
  position: relative;
  flex: 1 1 0;
  min-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}

.gmud-wizard-step:disabled {
  cursor: not-allowed;
}

/* Trilho que liga cada passo ao anterior */
.gmud-wizard-step + .gmud-wizard-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(-50% + 17px);
  right: calc(50% + 17px);
  height: 2px;
  border-radius: 2px;
  background: #cbd5e1;
  transition: background 0.2s;
}

.gmud-wizard-step--alcancado::before {
  background: #0a4ea0;
}

.gmud-wizard-step__dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: #fff;
  border: 2px solid #cbd5e1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gmud-wizard-step__label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
}

.gmud-wizard-step--feito .gmud-wizard-step__dot {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}

.gmud-wizard-step--feito .gmud-wizard-step__label {
  color: #166534;
}

.gmud-wizard-step--alerta .gmud-wizard-step__dot {
  color: #b45309;
  background: #fffbeb;
  border-color: #f59e0b;
}

.gmud-wizard-step--alerta .gmud-wizard-step__label {
  color: #b45309;
}

.gmud-wizard-step--atual .gmud-wizard-step__dot {
  color: #fff;
  background: #0a4ea0;
  border-color: #0a4ea0;
  box-shadow: 0 0 0 4px rgba(10, 78, 160, 0.15);
}

.gmud-wizard-step--atual .gmud-wizard-step__label {
  color: #0a4ea0;
  font-weight: 700;
}

.gmud-wizard-step:not(:disabled):not(.gmud-wizard-step--atual):hover .gmud-wizard-step__dot {
  border-color: #0a4ea0;
}

/* Passo Demandas: lista e detalhe lado a lado; empilha em tela estreita */
@media (max-width: 760px) {
  .gmud-form-container .gmud-demandas {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .gmud-wizard-step {
    min-width: 40px;
  }
  .gmud-wizard-step__label {
    display: none;
  }
}

/* O editor rico não deve herdar o estilo dos campos do formulário da GMUD */
.gmud-form-container .tiptap-editor-wrapper {
  flex: none;
}

.gmud-form-container .tte-select {
  width: auto !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.75rem !important;
  background-color: #fff !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 0 !important;
}

.gmud-form-container .tte-toolbar input.tte-color-picker {
  width: 28px !important;
  height: 28px !important;
  padding: 2px !important;
  background-color: transparent !important;
  border: 1px solid #e2e8f0 !important;
}

.gmud-form-container .tiptap-editor-content {
  max-height: 320px;
  overflow-y: auto;
}

.gmud-form-container .tiptap-content label {
  display: inline-flex !important;
  margin: 0 !important;
}

.gmud-form-container .tiptap-content input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
}

.gmud-form-container input:disabled,
.gmud-form-container select:disabled,
.gmud-form-container textarea:disabled {
  background-color: #cbd5e144 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  border-color: #cbd5e1 !important;
  opacity: 0.8 !important;
}

/* Tabular lists inside the GMUD modal */
.gmud-form-container table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  font-size: 0.8rem !important;
}
.gmud-form-container th {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  padding: 6px 8px !important;
  text-align: left !important;
  border: 1px solid #e2e8f0 !important;
}
.gmud-form-container td {
  padding: 4px 6px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: white !important;
}
.gmud-form-container td input {
  padding: 4px 8px !important;
  font-size: 0.78rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  height: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
.gmud-form-container td input:focus {
  border-color: #0A4EA0 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(10, 78, 160, 0.1) !important;
}
.gmud-form-container td button:hover {
  opacity: 0.8;
}

/* ---- Selection Marquee ---- */
.docs-selection-marquee {
  position: fixed;
  border: 1.5px dashed #0A4EA0;
  background-color: rgba(10, 78, 160, 0.12);
  pointer-events: none;
  z-index: 99999;
}



/* ═══════════════════════════════════════════════════════════════════
   Estados de carregamento — a montagem SMB leva segundos, então a
   tela mostra o esqueleto da interface real em vez de ficar vazia.
   ═══════════════════════════════════════════════════════════════════ */

@keyframes docs-shimmer {
  0%   { background-position: -420px 0; }
  100% { background-position:  420px 0; }
}

.sk {
  display: block;
  border-radius: 6px;
  background: #eef2f7;
  background-image: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 420px 100%;
  background-repeat: no-repeat;
  animation: docs-shimmer 1.25s ease-in-out infinite;
}

.sk-line  { height: 10px; }
.sk-dot   { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.sk-icon  { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.sk-thumb { width: 46px; height: 46px; border-radius: 10px; }

.docs-skeleton-card,
.docs-skeleton-row {
  pointer-events: none;
  cursor: default;
  border-color: #f1f5f9;
  box-shadow: none;
}
.docs-skeleton-card:hover,
.docs-skeleton-row:hover {
  transform: none;
  border-color: #f1f5f9;
  box-shadow: none;
  background: #fff;
}

.docs-boot-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.docs-boot-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}

.docs-boot-status h3 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.docs-boot-spinner {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #dbeafe;
  border-top-color: #0A4EA0;
  animation: docs-boot-spin 0.8s linear infinite;
}

@keyframes docs-boot-spin { to { transform: rotate(360deg); } }

.docs-boot-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.docs-boot-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: #94a3b8;
}
.docs-boot-steps li i { width: 14px; text-align: center; font-size: 0.72rem; }
.docs-boot-steps li.done   { color: #16a34a; }
.docs-boot-steps li.active { color: #0A4EA0; font-weight: 600; }

.docs-boot-hint {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .sk, .docs-boot-spinner { animation: none; }
}
/* CentralConfig.css — Configurações e Métricas da Central de Atendimento · Phobos Intranet */

/* ── LAYOUT DA PÁGINA FULL-PAGE ──────────────────────────────── */
.cc-page {
  padding: 24px 32px 100px;
  max-width: 1360px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  animation: ccFadeIn 0.3s ease-out;
}

@keyframes ccFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── CABEÇALHO DA PÁGINA ─────────────────────────────────────── */
.cc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #e2e8f0;
}

.cc-page-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-page-header__icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -4px rgba(10, 78, 160, 0.3);
  flex-shrink: 0;
}

.cc-page-header__top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-page-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #002b5e;
  letter-spacing: -0.02em;
}

.cc-page-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.cc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-status-pill--open {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cc-status-pill--open .cc-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.cc-status-pill--closed {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.cc-status-pill--closed .cc-status-dot {
  background: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.cc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: ccPulse 2s infinite;
}

.cc-page-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BARRA DE NAVEGAÇÃO POR ABAS ─────────────────────────────── */
.cc-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cc-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.cc-nav-tab:hover {
  color: #0A4EA0;
  background: #f1f5f9;
}

.cc-nav-tab.active {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px -2px rgba(10, 78, 160, 0.3);
}

.cc-nav-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.cc-nav-tab__count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.cc-nav-tab.active .cc-nav-tab__count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── CONTAINER PRINCIPAL DA ABA ──────────────────────────────── */
.cc-tab-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 28px;
  min-height: 480px;
}

.cc-tab-content {
  animation: ccFadeIn 0.25s ease-out;
}

.cc-section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cc-section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-section-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #002b5e;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.cc-section-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* ── CARDS & GRIDS ───────────────────────────────────────────── */
.cc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.cc-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  transition: all 0.2s ease;
}

.cc-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.04);
}

.cc-card-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-card-desc {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: #64748b;
}

.cc-card-subtitle-inline {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
}

.cc-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.45;
}

/* ── CAMPOS DE FORMULÁRIO ────────────────────────────────────── */
.cc-field-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-field-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-field-col--grow {
  flex: 2.5;
}

.cc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.cc-mini-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cc-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cc-select:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.cc-select--compact {
  max-width: 280px;
}

.cc-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.cc-input:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.cc-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-input--num {
  width: 86px;
  text-align: center;
  font-weight: 700;
}

.cc-input-suffix {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.cc-num-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cc-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

/* ── SWITCH & TOGGLE BANNER ─────────────────────────────────── */
.cc-toggle-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.cc-toggle-banner.active {
  background: #f0fdf4;
  border-color: #86efac;
}

.cc-toggle-banner__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.cc-toggle-banner__desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 24px;
}

.cc-switch__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cc-switch input:checked + .cc-switch__slider {
  background-color: #10b981;
}

.cc-switch input:checked + .cc-switch__slider:before {
  transform: translateX(20px);
}

.cc-switch--sm {
  width: 36px;
  height: 20px;
}

.cc-switch--sm .cc-switch__slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}

.cc-switch--sm input:checked + .cc-switch__slider:before {
  transform: translateX(16px);
}

/* ── LISTA DE CAMPOS (SLA & DISTRIBUIÇÃO) ────────────────────── */
.cc-fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-field-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cc-field-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.cc-field-card.is-dirty {
  background: #fffbeb;
  border-color: #fcd34d;
}

.cc-field-card__info {
  flex: 1;
}

.cc-field-card__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.cc-field-card__desc {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* ── MENSAGENS AUTOMÁTICAS ──────────────────────────────────── */
.cc-msg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.cc-msg-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.cc-msg-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.cc-msg-card.is-dirty {
  background: #fffbeb;
  border-color: #fcd34d;
}

.cc-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cc-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-btn-reset:hover {
  background: #f1f5f9;
  color: #0A4EA0;
  border-color: #94a3b8;
}

.cc-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #1e293b;
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition: all 0.2s ease;
}

.cc-textarea:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12);
}

.cc-vars-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-vars-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.cc-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cc-var-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0A4EA0;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-var-chip:hover {
  background: #dbeafe;
  border-color: #0A4EA0;
  transform: translateY(-1px);
}

/* ── FERIADOS ────────────────────────────────────────────────── */
.cc-holiday-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.cc-holiday-box__title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.cc-holiday-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  padding-bottom: 10px;
}

.cc-holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cc-holiday-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cc-holiday-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.06);
}

.cc-holiday-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #002b5e;
  font-size: 0.84rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.cc-holiday-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-holiday-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

.cc-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0A4EA0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 1px 7px;
  width: fit-content;
}

/* ── MÉTRICAS & KPIS ─────────────────────────────────────────── */
.cc-period-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.cc-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.cc-kpi-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s ease;
}

.cc-kpi-card:hover {
  background: #ffffff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(10, 78, 160, 0.12);
}

.cc-kpi-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cc-kpi-card__icon {
  color: #0A4EA0;
}

.cc-kpi-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cc-kpi-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #002b5e;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cc-kpi-card__hint {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
}

.cc-table-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-table-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.cc-table-item__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

.cc-table-item__val {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-table-item__badge {
  font-size: 0.78rem;
  font-weight: 800;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 8px;
  color: #334155;
}

.cc-csat-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
}

.cc-chart-container {
  margin-top: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

.cc-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
}

.cc-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.cc-chart-bar {
  width: 100%;
  max-width: 24px;
  background: linear-gradient(180deg, #3b82f6 0%, #0A4EA0 100%);
  border-radius: 4px 4px 0 0;
  transition: opacity 0.2s ease;
}

.cc-chart-col:hover .cc-chart-bar {
  opacity: 0.75;
}

.cc-chart-bar.is-empty {
  background: #f1f5f9;
  min-height: 4px;
}

.cc-chart-tick {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 6px;
}

/* ── BOTÕES ─────────────────────────────────────────────────── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cc-btn--primary {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px -2px rgba(10, 78, 160, 0.35);
}

.cc-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(10, 78, 160, 0.45);
}

.cc-btn--ghost {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
}

.cc-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.cc-btn--soft {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #0A4EA0;
}

.cc-btn--soft:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #0A4EA0;
}

.cc-btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cc-btn-icon--danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* ── STICKY FOOTER DE SALVAMENTO ─────────────────────────────── */
.cc-sticky-footer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 320px);
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 12px 36px rgba(0, 33, 71, 0.15);
  border-radius: 16px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  animation: ccSlideUp 0.3s ease;
}

@keyframes ccSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cc-dirty-note {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-dirty-note.is-dirty {
  color: #0A4EA0;
}

.cc-dirty-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  animation: ccPulse 1.6s ease-in-out infinite;
}

@keyframes ccPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.cc-sticky-footer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── ESTADOS VAZIOS & LOADING ────────────────────────────────── */
.cc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.cc-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #0A4EA0;
  border-radius: 50%;
  animation: ccSpin 0.8s linear infinite;
}

@keyframes ccSpin {
  to { transform: rotate(360deg); }
}

.cc-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 36px 20px;
  border: 1.5px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.cc-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.84rem;
}

/* ── COMPATIBILIDADE COM MODAL ───────────────────────────────── */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 46, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: ccFadeIn 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.cc-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 21, 46, 0.28);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1e293b;
  animation: ccSlideUp 0.28s ease;
}

.cc-modal--wide { max-width: 880px; }

.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #ffffff;
}

.cc-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cc-header-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  letter-spacing: 0;
}

.cc-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cc-close:hover { background: rgba(255, 255, 255, 0.32); }

.cc-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(92vh - 140px);
}

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 2px solid #f1f5fb;
  background: #f8faff;
  flex-wrap: wrap;
}

/* ── RESPONSIVIDADE MOBILE ───────────────────────────────────── */
@media (max-width: 900px) {
  .cc-page { padding: 16px 16px 120px; }
  .cc-sticky-footer {
    width: calc(100% - 32px);
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .cc-sticky-footer__actions { width: 100%; }
  .cc-sticky-footer__actions .cc-btn { flex: 1; }
  .cc-grid-2 { grid-template-columns: 1fr; }
  .cc-msg-grid { grid-template-columns: 1fr; }
  .cc-holiday-form { flex-direction: column; align-items: stretch; }
  .cc-field-col--grow { flex: 1; }
}
/* CentralAtendimento.css - Light Theme (Phobos Intranet Branding) */

.central-container {
  display: flex;
  height: calc(100vh - 140px);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #f1f5fb;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

/* Glassmorphism elements replaced by clean, light borders and cards */
.glass-panel {
  background: #ffffff;
  border-right: 2px solid #f1f5fb;
}

/* Left Sidebar: Contacts list */
.central-sidebar {
  width: 350px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #ffffff;
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 2px solid #f1f5fb;
  background: #f8faff;
}

.sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #002b5e;
  margin: 0 0 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Queue rotation info */
.queue-box {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.queue-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0A4EA0;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.queue-operator {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.queue-operator.active {
  background: linear-gradient(135deg, #0A4EA0, #002b5e);
  color: #ffffff;
  border-color: #0A4EA0;
  box-shadow: 0 4px 10px rgba(10, 78, 160, 0.2);
}

.queue-arrow {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  outline: none;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

.contacts-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.sidebar-date-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0A4EA0;
  padding: 8px 14px;
  background: #f8faff;
  border-bottom: 1px solid #f1f5fb;
  letter-spacing: 0.05em;
}

.contact-card {
  display: flex;
  padding: 6px 12px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid #f1f5fb;
  border-left: 3px solid transparent;
  gap: 8px;
  background: #ffffff;
  align-items: center;
}

.contact-card:hover {
  background: #f8faff;
}

.contact-card.active {
  background: #eff6ff;
  border-left-color: #0A4EA0;
  border-bottom-color: #e2e8f0;
}

.contact-avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  color: #0A4EA0;
  font-weight: 800;
  font-size: 0.78rem;
}

.contact-card.active .contact-avatar-small {
  background: #ffffff;
  border-color: #93c5fd;
}

.status-badge-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #ffffff;
}

.status-badge-dot.bot {
  background: #6366f1;
}

.status-badge-dot.human {
  background: #10b981;
}

.status-badge-dot.waiting {
  background: #f59e0b;
}

.contact-info-compact {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.contact-name-company {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1e293b;
}

.contact-card.active .contact-name {
  color: #002b5e;
}

.contact-company {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  opacity: 0.85;
}

.contact-time {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-card-body {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1;
}

.contact-status-badge.bot {
  background: #e0e7ff;
  color: #4338ca;
}

.contact-status-badge.human {
  background: #d1fae5;
  color: #065f46;
}

.contact-status-badge.waiting {
  background: #fef3c7;
  color: #b45309;
}

.contact-snippet {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.contact-card.active .contact-snippet {
  color: #475569;
}

/* Chat Section */
.central-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8faff;
  border-right: 2px solid #f1f5fb;
}

.chat-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 2px solid #f1f5fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.chat-client-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-client-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #002b5e;
  margin: 0;
}

.chat-client-cnpj {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-mode-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid transparent;
}

.chat-mode-indicator.bot {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.chat-mode-indicator.human {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.chat-mode-indicator.waiting {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.btn-transfer {
  background: #0A4EA0;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px -1px rgba(10, 78, 160, 0.15);
}

.btn-transfer:hover {
  background: #002b5e;
  box-shadow: 0 6px 12px -2px rgba(10, 78, 160, 0.25);
  transform: translateY(-1px);
}

.btn-transfer.secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  box-shadow: none;
}

.btn-transfer.secondary:hover {
  background: #f8faff;
  border-color: #94a3b8;
  color: #1e293b;
  transform: none;
}

/* Chat Messages Box */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f4f7fc;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.message-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.message-bubble.incoming {
  align-self: flex-start;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  border-top-left-radius: 4px;
}

.message-bubble.outgoing {
  align-self: flex-end;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #002b5e;
  border-top-right-radius: 4px;
}

.message-bubble.bot {
  align-self: flex-end;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  color: #4c1d95;
  border-top-right-radius: 4px;
}

.message-meta {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 6px;
  text-align: right;
  display: block;
  font-weight: 500;
}

.message-sender {
  font-weight: 800;
  color: #0A4EA0;
  margin-right: 6px;
}

.system-event {
  align-self: center;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

/* Audio message style */
.audio-message {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 230px;
}

.audio-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0A4EA0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audio-play-btn:hover {
  background: #002b5e;
  transform: scale(1.05);
}

.audio-wave-simulation {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 20px;
}

.audio-wave-bar {
  width: 3.5px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.outgoing .audio-wave-bar {
  background: #93c5fd;
}

.audio-wave-bar.playing {
  animation: audioWave 1s ease-in-out infinite alternate;
  background: #0A4EA0;
}

@keyframes audioWave {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  border-top: 2px solid #f1f5fb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-input-wrapper {
  flex: 1;
}

.chat-input-bar input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.chat-input-bar input:focus {
  border-color: #0A4EA0;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  outline: none;
}

.btn-send-msg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0A4EA0;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(10, 78, 160, 0.15);
}

.btn-send-msg:hover {
  background: #002b5e;
  box-shadow: 0 6px 12px rgba(10, 78, 160, 0.25);
  transform: translateY(-1px);
}

/* Bottom tools area (pre-recorded audios, internal notes) */
.chat-bottom-tools {
  background: #ffffff;
  border-top: 2px solid #f1f5fb;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 24px;
}

.tool-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}

.btn-audio-tool {
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio-tool:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0A4EA0;
}

.notes-textarea {
  width: 100%;
  height: 84px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1e293b;
  font-size: 0.85rem;
  resize: none;
  transition: all 0.2s ease;
}

.notes-textarea:focus {
  border-color: #0A4EA0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
}

.notes-status {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Right Sidebar: Phobinho Chat + Chamados Client */
.central-right-sidebar {
  width: 330px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #ffffff;
}

/* Phobinho panel */
.phobinho-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #f1f5fb;
  min-height: 0;
}

.phobinho-header {
  padding: 12px 16px;
  border-bottom: 2px solid #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8faff;
}

.phobinho-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #002b5e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phobinho-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

.phobinho-chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f7fc;
}

.phobinho-msg {
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.phobinho-msg.phobinho {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  align-self: flex-start;
  color: #14532d;
}

.phobinho-msg.user {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  align-self: flex-end;
  color: #1e293b;
}

.phobinho-suggested-queries {
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
  border-top: 2px solid #f1f5fb;
}
.phobinho-suggested-queries .btn-suggested-query { flex: none; white-space: nowrap; padding: 4px 8px; }

.btn-suggested-query {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  color: #475569;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-suggested-query:hover {
  background: #eff6ff;
  border-color: #0A4EA0;
  color: #0A4EA0;
}

.phobinho-input-box {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  background: #ffffff;
  border-top: 2px solid #f1f5fb;
}

.phobinho-input-box input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.78rem;
}

.phobinho-input-box input:focus {
  border-color: #0A4EA0;
  outline: none;
}

.phobinho-input-box button {
  background: #0A4EA0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.phobinho-input-box button:hover {
  background: #002b5e;
}

/* Client Tickets Panel */
.tickets-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #f1f5fb;
  min-height: 0;
  background: #ffffff;
}

.tickets-header {
  padding: 12px 16px;
  border-bottom: 2px solid #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8faff;
}

.tickets-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #002b5e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-ticket {
  background: none;
  border: none;
  color: #0A4EA0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-add-ticket:hover {
  background: #eff6ff;
  transform: scale(1.1);
}

.tickets-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-card-small {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.ticket-card-small:hover {
  background: #f8faff;
  border-color: #cbd5e1;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ticket-id {
  font-weight: 800;
  color: #0A4EA0;
}

.ticket-status {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.ticket-status.open {
  background: #fef3c7;
  color: #b45309;
}

.ticket-status.progress {
  background: #dbeafe;
  color: #1e40af;
}

.ticket-status.resolved {
  background: #d1fae5;
  color: #065f46;
}

.ticket-subject {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-date {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Chamado que a própria Central abriu para este contato */
.cc-ticket-origem {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Animations */
.animate-pulse-slow {
  animation: pulseSlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scrollbar tweaks */
.central-container ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.central-container ::-webkit-scrollbar-track {
  background: transparent;
}

.central-container ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.central-container ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sidebar Tabs */
.sidebar-tabs {
  display: flex;
  background: #f8faff;
  border-bottom: 2px solid #f1f5fb;
  padding: 0;
}

.sidebar-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.sidebar-tab-btn:hover {
  color: #0A4EA0;
  background: #f1f5fb;
}

.sidebar-tab-btn.active {
  color: #0A4EA0;
  border-bottom-color: #0A4EA0;
  background: #ffffff;
}

/* History Filters and Pagination */
.history-filters {
  background: #f8faff;
  border-bottom: 2px solid #f1f5fb;
  padding: 10px 14px;
}

.filter-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-input-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-input-col label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.filter-input-col input {
  font-size: 0.72rem;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  width: 100%;
}

.filter-input-col input:focus {
  outline: none;
  border-color: #0A4EA0;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.btn-page {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #0A4EA0;
  color: #0A4EA0;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

/* Operator Transfer Modal Button */
.btn-transfer-target {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  color: #1e293b;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
}

.btn-transfer-target:hover {
  background: #eff6ff;
  border-color: #0A4EA0;
  color: #0A4EA0;
}

/* Acelerato Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid #e2e8f0;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0A4EA0;
  border: 2px solid #ffffff;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.timeline-user {
  font-size: 0.76rem;
  font-weight: 700;
  color: #002b5e;
}

.timeline-date {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.timeline-text {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.4;
  background: #f8faff;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #f1f5fb;
}

.chat-input-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

/* Business Hours Banner */
.business-hours-banner {
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  /* texto corrido: em flex, o <strong> virava uma coluna estreita */
  display: block;
  line-height: 1.45;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.business-hours-banner.closed {
  background: #fef2f2;
  color: #991b1b;
  border-bottom-color: #fca5a5;
}

.business-hours-banner.offline {
  background: #fffbeb;
  color: #92400e;
  border-bottom-color: #fde68a;
}

/* Business Hours Config Panel in Right Sidebar */
.business-hours-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 12px 16px;
}

.business-hours-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.business-hours-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #002b5e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-hours-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.business-hours-row {
  display: flex;
  gap: 10px;
}

.business-hours-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.business-hours-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

.business-hours-select,
.business-hours-input {
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  width: 100%;
  transition: border-color 0.2s ease;
}

.business-hours-select:focus,
.business-hours-input:focus {
  border-color: #0A4EA0;
  outline: none;
}

.business-hours-time-suffix {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* Placeholder Screen */
.chat-placeholder-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #f8faff;
  text-align: center;
}

.placeholder-icon-wrapper {
  background: #eff6ff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid #bfdbfe;
}

.placeholder-pulse {
  color: #0A4EA0;
  animation: pulse-animation 2s infinite ease-in-out;
}

@keyframes pulse-animation {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.chat-placeholder-container h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #002b5e;
  margin-bottom: 0.5rem;
}

.chat-placeholder-container p {
  max-width: 400px;
  line-height: 1.5;
}

/* Tool sections management */
.btn-tool-manage {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-tool-manage:hover {
  background: #eff6ff;
  color: #0A4EA0;
}

.btn-audio-tool-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.btn-audio-tool-wrapper .btn-audio-tool {
  flex: 1;
}

.audio-tool-controls {
  display: none;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  gap: 2px;
  z-index: 10;
}

.btn-audio-tool-wrapper:hover .audio-tool-controls {
  display: flex;
}

.audio-tool-controls button {
  background: transparent;
  border: none;
  font-size: 0.65rem;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-tool-controls button:hover {
  background: #f1f5f9;
}

.audio-tool-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Media rendering inside logs */
.chat-media-wrapper {
  margin-top: 8px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.chat-media-image {
  max-width: 260px;
  max-height: 200px;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chat-media-image:hover {
  opacity: 0.9;
}

.chat-media-video {
  max-width: 260px;
  max-height: 200px;
  display: block;
}

.chat-media-audio {
  width: 240px;
  display: block;
  height: 36px;
}

.chat-media-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.chat-media-file:hover {
  background: #e2e8f0;
  color: #0A4EA0;
}

/* Custom Phobos Audio Player Branding */
.phobos-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 78, 160, 0.08);
  border: 1px solid rgba(10, 78, 160, 0.15);
  padding: 8px 12px;
  border-radius: 20px;
  min-width: 240px;
  max-width: 100%;
  margin-top: 6px;
}

.phobos-audio-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0A4EA0;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(10, 78, 160, 0.2);
  flex-shrink: 0;
}

.phobos-audio-play-btn:hover {
  background: #1e6ecf;
  transform: scale(1.05);
}

.phobos-audio-progress-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.phobos-audio-seekbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(10, 78, 160, 0.2);
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}

.phobos-audio-seekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0A4EA0;
  transition: transform 0.1s;
}

.phobos-audio-seekbar::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.phobos-audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
}

/* Audio Recording Modal Styling */
.audio-recorder-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.recording-indicator .dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
@keyframes record-blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}
.blinking {
  animation: record-blink 1.2s infinite;
}
.recording-timer {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
  font-family: monospace;
  background: #f1f5f9;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
﻿
/* ═══════════════════════════════════════════════════════════
﻿
/* ═══════════════════════════════════════════════════════════

/* =================================================================

/* =================================================================

/* =================================================================

/* =================================================================
   CENTRAL DE ATENDIMENTO — MOBILE PREMIUM (v6 - sibling selector)
   Nao usa body class - usa seletor ~ (sibling) para escopar
   ================================================================= */

/* Desktop: classes mobile-active/hidden nao fazem nada */
.central-sidebar.mobile-active, .central-sidebar.mobile-hidden,
.central-chat-area.mobile-active, .central-chat-area.mobile-hidden,
.central-right-sidebar.mobile-active, .central-right-sidebar.mobile-hidden { }

/* Elementos mobile sempre ocultos (desktop e outras paginas) */
.mobile-tab-bar  { display: none !important; }
.mobile-back-btn { display: none !important; }
.mobile-tools-panel { display: none !important; }

/* =========================================================
   TELA MÉDIA (notebook, 901–1600 px)
   Com as duas colunas laterais fixas (350 + 330 px), num 1440 px sobravam
   ~440 px para a conversa: o cabeçalho quebrava o nome em várias linhas, o
   "Encerrar" ficava escondido embaixo do painel do Copilot e as ferramentas
   de baixo ocupavam a altura toda, sem espaço para as mensagens.
   ========================================================= */
.tool-section,
.btn-audio-tool-wrapper,
.btn-audio-tool { min-width: 0; }

.chat-header { flex-wrap: wrap; gap: 8px 12px; }
.chat-client-details { min-width: 0; flex: 1 1 220px; }
.chat-client-details > div { min-width: 0; }
.chat-client-name,
.chat-client-cnpj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chat-actions .btn-transfer,
.chat-mode-indicator { white-space: nowrap; }

.chat-messages-container { min-height: 160px; }
.chat-bottom-tools { max-height: min(32vh, 300px); overflow-y: auto; flex-shrink: 0; }

@media (min-width: 901px) and (max-width: 1600px) {
  .central-sidebar { width: 290px; }
  .central-right-sidebar { width: 280px; }
  .chat-header { padding: 0.8rem 1rem; }
  .chat-input-bar { padding: 0.8rem 1rem; }
  .chat-bottom-tools { padding: 0.9rem 1rem; gap: 16px; }
  .chat-actions .btn-transfer { padding: 7px 12px; font-size: 0.78rem; }
}

/* =================================================================
   MOBILE — usa .central-container como ancora CSS
   .central-container ~ .mobile-tab-bar = tab bar so aparece nesta pagina
   ================================================================= */

@media (max-width: 900px) {

  /* Remove padding do dashboard-content APENAS quando tem .central-container */
  .dashboard-content:has(.central-container) {
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Fallback para browsers sem :has() - o container fixed sobrepoe o padding */
  .central-container {
    position: fixed !important;
    top: var(--ph-header-h, 62px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100dvw !important;
    height: auto !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #f0f4ff !important;
    z-index: 50 !important;
    display: block !important;
  }

  /* Paineis absolutamente posicionados dentro do container fixo */
  .central-sidebar,
  .central-chat-area,
  .central-right-sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 64px !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    max-width: 100% !important;
    flex: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    transition: opacity 0.18s ease, transform 0.18s ease !important;
  }

  .central-sidebar.mobile-hidden,
  .central-chat-area.mobile-hidden,
  .central-right-sidebar.mobile-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(20px) !important;
    z-index: 1 !important;
  }

  .central-sidebar.mobile-active,
  .central-chat-area.mobile-active,
  .central-right-sidebar.mobile-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    z-index: 2 !important;
  }

  /* === TAB BAR: aparece SOMENTE como irma de .central-container === */
  .central-container ~ .mobile-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(10,78,160,0.12) !important;
    z-index: 1200 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -2px 20px rgba(10,78,160,0.10) !important;
    align-items: stretch !important;
  }

  .mobile-tab-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; border: none; background: transparent;
    cursor: pointer; padding: 6px 2px;
    color: #94a3b8; font-size: 0.6rem; font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease; position: relative;
  }

  .mobile-tab-item.active { color: #0A4EA0; }
  .mobile-tab-item:disabled { opacity: 0.35; pointer-events: none; }

  .mobile-tab-item .tab-icon {
    width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
  }

  .mobile-tab-item.active .tab-icon {
    background: rgba(10,78,160,0.12); transform: scale(1.1);
  }

  .mobile-tab-item:active .tab-icon { transform: scale(0.85); }

  .mobile-tab-badge {
    position: absolute; top: 5px; right: calc(50% - 22px);
    background: #ef4444; color: #fff; font-size: 0.55rem;
    font-weight: 800; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px; border: 2px solid white;
  }

  /* === BACK BUTTON: aparece SOMENTE dentro de .central-container === */
  .central-container .mobile-back-btn {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(10,78,160,0.08);
    border: none; border-radius: 10px;
    color: #0A4EA0; font-size: 1.2rem; font-weight: 700;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.1s;
    margin-right: 6px;
  }

  .central-container .mobile-back-btn:active {
    background: rgba(10,78,160,0.18); transform: scale(0.88);
  }

  /* === TOOLS PANEL: aparece SOMENTE como irma de .central-container === */
  .central-container ~ .mobile-tools-panel {
    display: none;
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 64px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    background: #f0f4ff !important;
    padding: 12px 12px 20px !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 1201 !important;
  }

  .central-container ~ .mobile-tools-panel.tab-active {
    display: flex !important;
  }

  .mobile-tools-panel .tool-section {
    background: #fff !important; border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 2px 10px rgba(10,78,160,0.07) !important;
    margin-bottom: 10px !important;
  }

  .mobile-tools-panel .tool-section-title {
    font-size: 0.72rem !important; font-weight: 700 !important;
    color: #0A4EA0 !important; text-transform: uppercase !important;
    letter-spacing: 0.05em !important; display: block !important;
    margin-bottom: 10px !important;
  }

  .mobile-tools-panel .btn-audio-tool {
    min-height: 44px !important; font-size: 0.8rem !important;
    border-radius: 12px !important; padding: 10px 12px !important;
    margin-bottom: 6px !important; width: 100% !important;
    display: flex !important; align-items: center !important;
  }

  .mobile-tools-panel .notes-textarea {
    font-size: 16px !important; border-radius: 12px !important;
    padding: 12px !important; min-height: 100px !important;
    margin-top: 8px !important; width: 100% !important;
    box-sizing: border-box !important;
  }

  /* === CHAT AREA STYLES === */
  .central-container .chat-bottom-tools { display: none !important; }

  .central-container .chat-header {
    padding: 10px 12px !important; min-height: 56px !important;
    gap: 6px !important; flex-wrap: nowrap !important;
    align-items: center !important; overflow: hidden !important;
    position: sticky !important; top: 0 !important;
    z-index: 3 !important; background: #fff !important;
  }

  .central-container .chat-client-details {
    flex: 1 !important; min-width: 0 !important;
    overflow: hidden !important; display: flex !important;
    align-items: center !important; gap: 8px !important;
  }

  .central-container .contact-avatar {
    width: 36px !important; height: 36px !important;
    font-size: 0.9rem !important; flex-shrink: 0 !important;
  }

  .central-container .chat-client-name {
    font-size: 0.88rem !important; white-space: nowrap !important;
    overflow: hidden !important; text-overflow: ellipsis !important;
    max-width: 150px !important; margin: 0 !important;
  }

  .central-container .chat-client-cnpj {
    font-size: 0.62rem !important; white-space: nowrap !important;
    overflow: hidden !important; text-overflow: ellipsis !important;
    display: block !important;
  }

  .central-container .chat-actions {
    display: flex !important; gap: 4px !important;
    flex-shrink: 0 !important; align-items: center !important;
  }

  .central-container .chat-mode-indicator { display: none !important; }

  .central-container .btn-transfer,
  .central-container .btn-close-chat {
    font-size: 0.6rem !important; padding: 5px 8px !important;
    border-radius: 8px !important; white-space: nowrap !important;
  }

  .central-container .chat-messages {
    padding: 10px 8px !important;
    overscroll-behavior: contain !important;
  }

  .central-container .message-bubble {
    max-width: 85% !important; font-size: 0.82rem !important;
  }

  .central-container .chat-input-wrapper {
    padding: 8px 10px !important; gap: 6px !important;
    position: sticky !important; bottom: 0 !important;
    background: #fff !important; z-index: 3 !important;
  }

  .central-container .chat-input-wrapper input,
  .central-container .chat-input-wrapper textarea,
  .central-container .chat-message-input {
    font-size: 16px !important;
    border-radius: 20px !important; padding: 10px 14px !important;
  }

  /* === SIDEBAR CONTATOS === */
  .central-container .sidebar-header { padding: 12px 12px 8px !important; }
  .central-container .sidebar-header h2 { font-size: 0.95rem !important; }
  .central-container .sidebar-tabs { padding: 8px 10px 0 !important; }

  .central-container .sidebar-tab-btn {
    font-size: 0.7rem !important; padding: 5px 10px !important;
    border-radius: 18px !important;
  }

  .central-container .contact-card {
    padding: 11px 12px !important; margin: 0 8px 5px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(10,78,160,0.06) !important;
  }

  .central-container .contact-card:active { transform: scale(0.97) !important; }

  /* === PHOBINHO === */
  .central-container .central-right-sidebar {
    display: flex !important; flex-direction: column !important;
  }

  .central-container .phobinho-panel {
    flex: 1 !important; display: flex !important;
    flex-direction: column !important; min-height: 0 !important;
  }

  .central-container .phobinho-chat-box {
    flex: 1 !important; overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important; padding: 10px !important;
  }

  .central-container .phobinho-msg {
    font-size: 0.8rem !important; padding: 9px 12px !important;
    border-radius: 14px !important; margin-bottom: 8px !important;
  }

  .central-container .phobinho-input-row {
    padding: 8px !important;
    border-top: 1px solid rgba(10,78,160,0.08) !important;
    background: #fff !important;
  }

  .central-container .phobinho-input-row input,
  .central-container .phobinho-input-row textarea { font-size: 16px !important; }

  .central-container .chat-placeholder-container { display: none !important; }
  .central-container .search-box input { font-size: 16px !important; }

  /* SweetAlert acima dos panels mobile */
  .swal2-container {
    z-index: 15000 !important;
  }

  /* Touch scroll nas mensagens sem propagar para o body */
  .central-container .chat-messages {
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .central-container .central-sidebar,
  .central-container .central-chat-area,
  .central-container .central-right-sidebar,
  .central-container .phobinho-chat-box {
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

}

/* Ponto pulsante na aba "Fila" quando há clientes aguardando */
.sidebar-tab-btn { position: relative; }
.sidebar-tab-pulse {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: ca-queue-pulse 1.8s ease-out infinite;
}
@keyframes ca-queue-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-send-msg:disabled,
.btn-transfer:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-tab-pulse { animation: none; }
}

.chat-canal-selo {
  display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: #e8f0fb; color: #0A4EA0; font-size: 0.62rem; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; vertical-align: middle; white-space: nowrap; flex-shrink: 0;
}
/* GeoCoordenadas.css — Ferramentas → Endereço → Coordenadas (padrão Phobos) */

.geo-page *, .geo-page *::before, .geo-page *::after { box-sizing: border-box; }

.geo-page {
  padding: 1.75rem;
  min-height: 100vh;
  background: #f1f5fb;
  width: 100%;
  overflow-x: hidden;
  color: #0f172a;
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.geo-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #002b5e 0%, #0A4EA0 45%, #1a6fd4 100%);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(10, 78, 160, 0.35);
}
.geo-hero__glow {
  position: absolute; right: -60px; top: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); pointer-events: none;
}
.geo-hero__esq { display: flex; align-items: center; gap: 1.15rem; z-index: 1; min-width: 0; }
.geo-hero__icone {
  width: 68px; height: 68px; border-radius: 18px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; font-size: 1.75rem;
}
.geo-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px; padding: .2rem .7rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.geo-hero h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .25rem; color: #fff; }
.geo-hero p { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, 0.75); }
.geo-hero__stats { display: flex; gap: .6rem; flex-wrap: wrap; z-index: 1; }
.geo-hstat {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px; padding: .7rem 1rem; text-align: center; min-width: 86px;
}
.geo-hstat--verde { background: rgba(5, 150, 105, 0.25); border-color: rgba(5, 150, 105, 0.4); }
.geo-hstat__v { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.geo-hstat__l {
  display: block; margin-top: 4px; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, 0.72);
}

/* ── ABAS ─────────────────────────────────────────────────────────────── */
.geo-abas { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.geo-aba {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  border-radius: 12px; padding: .55rem 1rem;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.geo-aba:hover { border-color: #bfd3ee; color: #0A4EA0; }
.geo-aba.is-ativa {
  background: #0A4EA0; border-color: #0A4EA0; color: #fff;
  box-shadow: 0 6px 18px rgba(10, 78, 160, 0.25);
}

/* ── CARTÕES ──────────────────────────────────────────────────────────── */
.geo-conteudo { display: flex; flex-direction: column; gap: 1.1rem; }
.geo-card {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 18px;
  padding: 1.3rem 1.4rem; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.geo-card__cabeca {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem;
}
.geo-card__cabeca h3 {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a;
}
.geo-card__cabeca h3 i { color: #0A4EA0; }
.geo-sub { margin: 1.2rem 0 .5rem; font-size: .85rem; font-weight: 800; color: #334155; }

.geo-label {
  display: block; margin-bottom: .4rem;
  font-size: .76rem; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: .04em;
}

.geo-entrada, .geo-input {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: .7rem .85rem; font: inherit; font-size: .88rem; color: #0f172a;
  outline: none; background: #fbfdff; transition: border-color .15s, box-shadow .15s;
}
.geo-entrada { resize: vertical; min-height: 76px; }
.geo-entrada--alta { min-height: 170px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .82rem; }
.geo-entrada:focus, .geo-input:focus { border-color: #0A4EA0; box-shadow: 0 0 0 3px rgba(10, 78, 160, .1); background: #fff; }

.geo-exemplos { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.geo-exemplos > span { font-size: .74rem; color: #94a3b8; font-weight: 600; }
.geo-chip {
  border: 1px dashed #cbd5e1; background: #f8fafc; color: #475569;
  border-radius: 999px; padding: .25rem .7rem; font-size: .73rem; cursor: pointer;
  transition: all .15s;
}
.geo-chip:hover { border-color: #0A4EA0; color: #0A4EA0; background: #eef4fd; border-style: solid; }

.geo-linha-acoes {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .8rem; flex-wrap: wrap; margin-top: .9rem;
}
.geo-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: #475569; cursor: pointer; margin-right: auto; }
.geo-check input { width: 15px; height: 15px; accent-color: #0A4EA0; cursor: pointer; }
.geo-contador { font-size: .75rem; color: #64748b; font-weight: 600; }
.geo-contador.is-estourado { color: #dc2626; }
.geo-dica { margin: .8rem 0 0; font-size: .76rem; color: #94a3b8; line-height: 1.45; }

/* ── BOTÕES ───────────────────────────────────────────────────────────── */
.geo-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid #e2e8f0; background: #fff; color: #334155;
  border-radius: 10px; padding: .5rem .9rem;
  font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.geo-btn:hover { border-color: #bfd3ee; color: #0A4EA0; background: #f8fbff; }
.geo-btn--primary {
  background: linear-gradient(135deg, #0A4EA0, #1a6fd4);
  border-color: #0A4EA0; color: #fff;
  box-shadow: 0 6px 16px rgba(10, 78, 160, .25);
}
.geo-btn--primary:hover { color: #fff; filter: brightness(1.06); }
.geo-btn--lg { padding: .65rem 1.35rem; font-size: .86rem; }
.geo-btn--ghost { background: transparent; border-style: dashed; }
.geo-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ── RESULTADO ────────────────────────────────────────────────────────── */
.geo-resultado__topo { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.geo-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 999px; padding: .22rem .65rem;
  font-size: .72rem; font-weight: 700; border: 1px solid transparent;
}
.geo-badge.is-exata  { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.geo-badge.is-aprox  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.geo-badge.is-interp { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.geo-badge.is-cep    { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.geo-badge.is-cidade { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.geo-badge.is-cache  { background: #eef4fd; color: #0A4EA0; border-color: #dbe7f8; }
.geo-badge.is-neutro { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.geo-badge.is-falha  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.geo-coords { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.geo-coord {
  position: relative; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, #f8fbff, #eef4fd);
  border: 1px solid #dbe7f8; border-radius: 14px; padding: .9rem 1.1rem;
  transition: all .15s;
}
.geo-coord:hover { border-color: #0A4EA0; box-shadow: 0 6px 18px rgba(10, 78, 160, .12); }
.geo-coord__rot {
  display: block; font-size: .68rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em;
}
.geo-coord__val {
  display: block; margin-top: .25rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1.45rem; font-weight: 800; color: #002b5e; word-break: break-all;
}
.geo-coord__copiar { display: block; margin-top: .3rem; font-size: .7rem; color: #0A4EA0; opacity: 0; transition: opacity .15s; }
.geo-coord:hover .geo-coord__copiar { opacity: 1; }

.geo-alerta {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .9rem; padding: .55rem .75rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  font-size: .78rem; color: #92400e;
}
.geo-detalhe {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .9rem; padding: .5rem .75rem;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
  font-size: .78rem; color: #075985;
}
.geo-detalhe i { color: #0284c7; margin-top: 2px; }

/* Como o motor leu o texto — a origem de quase todo resultado estranho */
.geo-leitura { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.geo-leitura__rot { font-size: .7rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.geo-tag {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: .15rem .5rem; font-size: .72rem; color: #475569;
}

.geo-endereco {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .9rem; padding: .7rem .85rem;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  font-size: .84rem; color: #334155; line-height: 1.4;
}
.geo-endereco i { color: #0A4EA0; margin-top: 3px; }

.geo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .55rem; margin-top: .9rem;
}
.geo-grid__item { background: #fbfdff; border: 1px solid #eef2f7; border-radius: 10px; padding: .5rem .7rem; }
.geo-grid__item dt {
  font-size: .65rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .05em;
}
.geo-grid__item dd { margin: 2px 0 0; font-size: .82rem; font-weight: 600; color: #0f172a; word-break: break-word; }

.geo-mapa {
  margin-top: .9rem; border-radius: 14px; overflow: hidden;
  border: 1px solid #e2e8f0; height: 280px; background: #eef2f7;
}
.geo-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.geo-acoes { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }

.geo-json, .geo-code {
  margin: .9rem 0 0; padding: .9rem 1rem;
  background: #0f172a; color: #e2e8f0; border-radius: 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .76rem; line-height: 1.5; overflow-x: auto; white-space: pre;
}
.geo-code--json { color: #bae6fd; }

/* ── ERRO / VAZIO ─────────────────────────────────────────────────────── */
.geo-card--erro { display: flex; gap: 1rem; align-items: flex-start; border-color: #fecaca; background: #fff7f7; }
.geo-erro__icone {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: #fee2e2; color: #b91c1c; display: grid; place-items: center; font-size: 1.2rem;
}
.geo-card--erro h3 { margin: 0 0 .25rem; font-size: .98rem; font-weight: 800; color: #991b1b; }
.geo-card--erro p { margin: 0; font-size: .84rem; color: #7f1d1d; }
.geo-erro__dicas { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .78rem; color: #9a3412; line-height: 1.6; }

.geo-vazio {
  text-align: center; padding: 2.5rem 1rem; color: #94a3b8;
  background: #fff; border: 1px dashed #dbe3ee; border-radius: 18px;
}
.geo-vazio i { font-size: 2rem; color: #cbd5e1; }
.geo-vazio h4 { margin: .7rem 0 .3rem; font-size: .95rem; font-weight: 700; color: #475569; }
.geo-vazio p { margin: 0; font-size: .82rem; }

/* ── TABELA DO LOTE ───────────────────────────────────────────────────── */
.geo-tabela-wrap { overflow-x: auto; border: 1px solid #eef2f7; border-radius: 12px; }
.geo-tabela { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 720px; }
.geo-tabela thead th {
  background: #f8fafc; text-align: left; padding: .6rem .8rem;
  font-size: .68rem; font-weight: 800; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.geo-tabela tbody td { padding: .55rem .8rem; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: top; }
.geo-tabela tbody tr:last-child td { border-bottom: 0; }
.geo-tabela tbody tr:hover { background: #f8fbff; }
.geo-tabela tr.is-falha td { background: #fff7f7; }
.geo-td-entrada { font-weight: 600; color: #0f172a; max-width: 260px; }
.geo-td-num { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: nowrap; }

/* ── PRECISÃO ─────────────────────────────────────────────────────────── */
.geo-precisao { padding: 0; overflow: hidden; }
.geo-precisao__cabeca {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  background: none; border: 0; cursor: pointer;
  padding: 1rem 1.4rem; font: inherit; font-size: .92rem; font-weight: 800; color: #0f172a;
  text-align: left;
}
.geo-precisao__cabeca > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.geo-precisao__cabeca i { color: #0A4EA0; }
.geo-precisao__resumo { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.geo-precisao__corpo { padding: 0 1.4rem 1.3rem; border-top: 1px solid #eef2f7; }
.geo-cadeia { margin: .9rem 0 0; padding-left: 1.2rem; font-size: .82rem; color: #475569; line-height: 1.6; }
.geo-cadeia li { margin-bottom: .3rem; }
.geo-cadeia strong { color: #0f172a; }
.geo-provedores { display: flex; gap: .4rem; flex-wrap: wrap; margin: .9rem 0; }

/* ── ABA API ──────────────────────────────────────────────────────────── */
.geo-endpoints { display: flex; flex-direction: column; gap: .5rem; }
.geo-endpoint {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: #fbfdff; border: 1px solid #eef2f7; border-radius: 12px; padding: .6rem .8rem;
  font-size: .8rem; color: #64748b;
}
.geo-endpoint code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .78rem; color: #0f172a; background: #eef2f7;
  padding: .1rem .4rem; border-radius: 6px;
}
.geo-metodo {
  font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  border-radius: 6px; padding: .18rem .5rem; color: #fff; flex-shrink: 0;
}
.geo-metodo.is-get { background: #0A4EA0; }
.geo-metodo.is-post { background: #059669; }

.geo-nota {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-top: .8rem; padding: .8rem .9rem;
  background: #f8fbff; border: 1px solid #dbe7f8; border-radius: 12px;
}
.geo-nota > i { color: #0A4EA0; margin-top: 3px; }
.geo-nota strong { display: block; font-size: .82rem; color: #0f172a; margin-bottom: .2rem; }
.geo-nota p { margin: 0; font-size: .8rem; color: #475569; line-height: 1.5; }
.geo-nota code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .76rem; background: #eef2f7; padding: .05rem .35rem; border-radius: 5px; color: #0f172a;
}

.geo-langs { display: flex; gap: .3rem; }
.geo-lang {
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  border-radius: 8px; padding: .3rem .7rem; font-size: .75rem; font-weight: 600; cursor: pointer;
}
.geo-lang.is-ativa { background: #0f172a; border-color: #0f172a; color: #fff; }

.geo-form-api { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
.geo-form-api .geo-label { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.geo-form-api .geo-label--larga { grid-column: 1 / -1; }
.geo-resposta-status { display: flex; gap: .4rem; margin-top: .9rem; }

/* ── RESPONSIVO ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .geo-page { padding: 1rem; }
  .geo-hero { padding: 1.4rem; border-radius: 16px; }
  .geo-hero h1 { font-size: 1.35rem; }
  .geo-hero__icone { width: 54px; height: 54px; font-size: 1.35rem; }
  .geo-coords { grid-template-columns: 1fr; }
  .geo-coord__val { font-size: 1.2rem; }
  .geo-form-api { grid-template-columns: 1fr; }
  .geo-mapa { height: 220px; }
  .geo-check { margin-right: 0; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Módulo EAD — telas de gestão (/admin/ead*)
   Paleta da casa (#0A4EA0 / #002b5e), a mesma do Marketing e do Motor de IA.
   O violeta aparece SÓ em ação de IA: quem opera sabe de relance o que gasta
   crédito. Modal e gaveta vão para o <body> por portal, por isso os tokens
   também moram em .ead-camada.
   ═══════════════════════════════════════════════════════════════════════════ */

.ead-page,
.ead-camada {
  --ead-primary: #0A4EA0;
  --ead-primary-2: #1e6ecf;
  --ead-deep: #002b5e;
  --ead-primary-bg: #eff6ff;
  --ead-ink: #0f172a;
  --ead-ink-2: #475569;
  --ead-muted: #8a97ab;
  --ead-line: #e5eaf2;
  --ead-line-2: #d3dce8;
  --ead-surface: #ffffff;
  --ead-surface-2: #f8fafc;

  --ead-ok: #047857;
  --ead-ok-bg: #ecfdf5;
  --ead-warn: #b45309;
  --ead-warn-bg: #fffbeb;
  --ead-bad: #b91c1c;
  --ead-bad-bg: #fef2f2;
  --ead-info: #0e7490;
  --ead-info-bg: #ecfeff;

  --ead-ia: #6d28d9;
  --ead-ia-2: #8b5cf6;
  --ead-ia-bg: #f5f3ff;

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ead-ink);
}

.ead-page {
  padding: 1.75rem;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  animation: ead-fade 0.3s ease both;
}

@keyframes ead-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Cabeçalho e abas ────────────────────────────────────────────────────── */

.ead-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.ead-voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600;
  color: var(--ead-ink-2); background: none; border: 0; padding: 0; margin-bottom: 0.45rem; cursor: pointer;
}
.ead-voltar:hover { color: var(--ead-primary); }
.ead-header h1 {
  margin: 0 0 0.3rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.ead-header h1 > i { color: var(--ead-primary); font-size: 1.2rem; }
.ead-header p { margin: 0; font-size: 0.85rem; color: var(--ead-ink-2); max-width: 80ch; line-height: 1.55; }
.ead-header-acoes { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.ead-abas { display: flex; gap: 0.2rem; flex-wrap: wrap; border-bottom: 1px solid var(--ead-line); }
.ead-aba {
  border: 0; background: transparent; cursor: pointer; padding: 0.7rem 1rem; font-size: 0.84rem; font-weight: 600;
  color: var(--ead-ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.15s, border-color 0.15s;
  white-space: nowrap; font-family: inherit;
}
.ead-aba i { font-size: 0.82rem; opacity: 0.8; }
.ead-aba:hover { color: var(--ead-primary); }
.ead-aba.ativa { color: var(--ead-primary); border-bottom-color: var(--ead-primary); }

.ead-conteudo { display: flex; flex-direction: column; gap: 1.15rem; }

/* ── Cartões ─────────────────────────────────────────────────────────────── */

.ead-cartao {
  background: var(--ead-surface); border: 1px solid var(--ead-line); border-radius: 14px;
  padding: 1.25rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); min-width: 0;
}
.ead-cartao h2 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.ead-cartao h2 > i { color: var(--ead-primary); font-size: 0.9rem; }
.ead-cartao h3.secao {
  margin: 1.1rem 0 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ead-muted);
}
.ead-cartao-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.ead-sub { margin: 0; font-size: 0.8rem; color: var(--ead-ink-2); line-height: 1.55; max-width: 90ch; }
.ead-contador {
  background: var(--ead-surface-2); border: 1px solid var(--ead-line); border-radius: 999px;
  padding: 0.02rem 0.5rem; font-size: 0.68rem; font-weight: 700; color: var(--ead-ink-2);
}
.ead-duas-colunas { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 1.15rem; align-items: start; }
.ead-linha { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.ead-empurra { margin-left: auto; }
.ead-muted { color: var(--ead-muted); }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.ead-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem; border-radius: 9px;
  padding: 0.52rem 0.9rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap; font-family: inherit; line-height: 1.2; text-decoration: none;
}
.ead-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ead-btn-primario { background: var(--ead-primary); color: #fff; }
.ead-btn-primario:hover:not(:disabled) { background: var(--ead-deep); }
.ead-btn-secundario { background: var(--ead-surface); border-color: var(--ead-line-2); color: var(--ead-ink); }
.ead-btn-secundario:hover:not(:disabled) { border-color: var(--ead-primary); color: var(--ead-primary); }
.ead-btn-texto { background: transparent; color: var(--ead-ink-2); padding-inline: 0.55rem; }
.ead-btn-texto:hover:not(:disabled) { color: var(--ead-primary); background: var(--ead-surface-2); }
.ead-btn-texto.perigo:hover:not(:disabled) { color: var(--ead-bad); background: var(--ead-bad-bg); }
.ead-btn-perigo { background: var(--ead-bad); color: #fff; }
.ead-btn-perigo:hover:not(:disabled) { background: #991b1b; }
.ead-btn-ia { background: linear-gradient(135deg, var(--ead-ia) 0%, var(--ead-ia-2) 100%); color: #fff; box-shadow: 0 1px 2px rgba(109, 40, 217, 0.25); }
.ead-btn-ia:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3); }
.ead-btn-ia-suave { background: var(--ead-ia-bg); color: var(--ead-ia); border-color: #ddd6fe; }
.ead-btn-ia-suave:hover:not(:disabled) { border-color: var(--ead-ia); }
.ead-btn-sm { padding: 0.32rem 0.6rem; font-size: 0.74rem; border-radius: 7px; }
.ead-btn-grande { padding: 0.72rem 1.3rem; font-size: 0.9rem; }

.ead-btn-icone {
  border: 1px solid var(--ead-line); background: var(--ead-surface); border-radius: 8px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ead-ink-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s; flex-shrink: 0; font-size: 0.78rem; padding: 0;
}
.ead-btn-icone:hover:not(:disabled) { border-color: var(--ead-primary); color: var(--ead-primary); }
.ead-btn-icone.perigo:hover:not(:disabled) { border-color: var(--ead-bad); color: var(--ead-bad); background: var(--ead-bad-bg); }
.ead-btn-icone:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Formulário ──────────────────────────────────────────────────────────── */

.ead-form { display: flex; flex-direction: column; gap: 0.95rem; }
.ead-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.ead-grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.ead-grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.ead-span-2 { grid-column: span 2; }
.ead-span-todo { grid-column: 1 / -1; }

.ead-campo { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
.ead-campo > label, .ead-rotulo {
  font-size: 0.74rem; font-weight: 700; color: var(--ead-ink-2); display: flex; align-items: center; gap: 0.35rem;
}
.ead-input,
.ead-campo input:not([type=checkbox]):not([type=radio]):not([type=file]),
.ead-campo select,
.ead-campo textarea {
  width: 100%; border: 1px solid var(--ead-line-2); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.84rem;
  font-family: inherit; color: var(--ead-ink); background: var(--ead-surface); transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box; min-width: 0;
}
.ead-input:focus,
.ead-campo input:focus,
.ead-campo select:focus,
.ead-campo textarea:focus {
  outline: none; border-color: var(--ead-primary); box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.14);
}
.ead-campo input:disabled, .ead-campo select:disabled, .ead-campo textarea:disabled { background: var(--ead-surface-2); color: var(--ead-ink-2); }
.ead-campo textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.ead-ajuda { font-size: 0.72rem; color: var(--ead-muted); line-height: 1.45; margin: 0; }
.ead-erro { font-size: 0.76rem; color: var(--ead-bad); margin: 0.2rem 0 0; }

.ead-interruptor {
  display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; padding: 0.6rem 0.7rem;
  border: 1px solid var(--ead-line); border-radius: 10px; background: var(--ead-surface); position: relative;
}
.ead-interruptor:hover { border-color: var(--ead-line-2); }
.ead-interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.ead-interruptor .trilho {
  width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0;
  transition: background 0.15s; margin-top: 1px;
}
.ead-interruptor .trilho::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s;
}
.ead-interruptor input:checked + .trilho { background: var(--ead-primary); }
.ead-interruptor input:checked + .trilho::after { transform: translateX(14px); }
.ead-interruptor input:focus-visible + .trilho { box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.25); }
.ead-interruptor .texto strong { display: block; font-size: 0.8rem; font-weight: 700; }
.ead-interruptor .texto span { display: block; font-size: 0.72rem; color: var(--ead-ink-2); line-height: 1.4; margin-top: 0.1rem; }
.ead-interruptor.desabilitado { opacity: 0.55; cursor: not-allowed; }

.ead-segmentos { display: inline-flex; border: 1px solid var(--ead-line-2); border-radius: 9px; overflow: hidden; background: var(--ead-surface); }
.ead-segmentos button {
  border: 0; background: transparent; padding: 0.45rem 0.8rem; font-size: 0.76rem; font-weight: 600; cursor: pointer;
  color: var(--ead-ink-2); font-family: inherit; border-right: 1px solid var(--ead-line);
}
.ead-segmentos button:last-child { border-right: 0; }
.ead-segmentos button.ativo { background: var(--ead-primary); color: #fff; }

/* ── Pílulas e selos ─────────────────────────────────────────────────────── */

.ead-pill {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 700; border-radius: 999px;
  padding: 0.16rem 0.55rem; white-space: nowrap; background: var(--ead-surface-2); color: var(--ead-ink-2);
  border: 1px solid var(--ead-line);
}
.ead-pill.ok { background: var(--ead-ok-bg); color: var(--ead-ok); border-color: #a7f3d0; }
.ead-pill.warn { background: var(--ead-warn-bg); color: var(--ead-warn); border-color: #fde68a; }
.ead-pill.bad { background: var(--ead-bad-bg); color: var(--ead-bad); border-color: #fecaca; }
.ead-pill.info { background: var(--ead-info-bg); color: var(--ead-info); border-color: #a5f3fc; }
.ead-pill.primario { background: var(--ead-primary-bg); color: var(--ead-primary); border-color: #bfdbfe; }
.ead-pill.ia { background: var(--ead-ia-bg); color: var(--ead-ia); border-color: #ddd6fe; }
.ead-pill.ead-tipo-colaborador, .ead-pill.publico-colaborador { background: var(--ead-primary-bg); color: var(--ead-primary); border-color: #bfdbfe; }
.ead-pill.ead-tipo-cliente, .ead-pill.publico-cliente { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.ead-pill.publico-todos { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }

/* ── Público do curso e tipo de aluno (cartões de escolha) ───────────────── */
.ead-publicos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.ead-publicos.dois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ead-publicos.lista { grid-template-columns: 1fr; gap: 0.45rem; }
.ead-publicos.lista .ead-publico { padding: 0.6rem 0.8rem; }
.ead-publicos.lista .ead-publico > i { width: 32px; height: 32px; }
.ead-publico {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.65rem; row-gap: 0.15rem;
  align-items: center; padding: 0.75rem 0.85rem; border: 1.5px solid var(--ead-line-2); border-radius: 12px;
  background: var(--ead-surface); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ead-publico:hover { border-color: var(--ead-primary-2); }
.ead-publico input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ead-publico > i {
  grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ead-surface-2); color: var(--ead-ink-2); font-size: 0.95rem; transition: background 0.15s, color 0.15s;
}
.ead-publico strong { font-size: 0.86rem; color: var(--ead-ink); line-height: 1.2; }
.ead-publico span { font-size: 0.74rem; color: var(--ead-ink-2); line-height: 1.35; }
.ead-publico.ativo { border-color: var(--ead-primary); background: var(--ead-primary-bg); box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.12); }
.ead-publico.ativo > i { background: var(--ead-primary); color: #fff; }
.ead-publico:has(input:focus-visible) { outline: 2px solid var(--ead-primary); outline-offset: 2px; }
.ead-contagem { display: inline-block; margin-left: 0.35rem; padding: 0 0.4rem; border-radius: 999px; background: rgba(15, 23, 42, 0.08); font-size: 0.7rem; font-weight: 700; }
.ead-segmentos button.ativo .ead-contagem { background: rgba(255, 255, 255, 0.25); }
.ead-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--ead-ink-2); cursor: pointer; white-space: nowrap; }
.ead-texto-bad { color: var(--ead-bad) !important; }

/* ── YouTube ─────────────────────────────────────────────────────────────── */
.ead-cor-youtube { color: #ff0033; }
.ead-segmentos button.ativo .ead-cor-youtube { color: #fff; }
.ead-yt-campo { position: relative; display: flex; align-items: center; }
.ead-yt-campo > i { position: absolute; left: 0.8rem; color: #ff0033; font-size: 1.05rem; pointer-events: none; }
.ead-yt-campo input { padding-left: 2.4rem !important; width: 100%; }
.ead-yt-cartao { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.85rem; border: 1px solid var(--ead-line); border-radius: 12px; background: var(--ead-surface-2); }
.ead-yt-carregando { display: flex; align-items: center; gap: 0.5rem; color: var(--ead-ink-2); font-size: 0.84rem; padding: 0.4rem 0.2rem; }
.ead-yt-topo { display: flex; gap: 0.85rem; align-items: flex-start; }
.ead-yt-topo img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #0f172a; }
.ead-yt-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ead-yt-info strong { font-size: 0.9rem; line-height: 1.3; color: var(--ead-ink); }
.ead-yt-info > span { font-size: 0.78rem; color: var(--ead-ink-2); }
.ead-yt-intro { display: flex; gap: 0.8rem; align-items: center; padding: 0.85rem 1rem; border-radius: 12px; background: linear-gradient(135deg, #fff1f2, #ffffff); border: 1px solid #fecdd3; }
.ead-yt-intro > i { font-size: 1.6rem; color: #ff0033; flex-shrink: 0; }
.ead-yt-intro div { display: flex; flex-direction: column; gap: 0.15rem; }
.ead-yt-intro strong { font-size: 0.9rem; }
.ead-yt-intro span { font-size: 0.8rem; color: var(--ead-ink-2); line-height: 1.45; }
.ead-yt-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; max-height: 420px; overflow-y: auto; }
.ead-yt-lista li {
  display: grid; grid-template-columns: auto 1.6rem 120px minmax(0, 1fr); gap: 0.65rem; align-items: center;
  padding: 0.45rem 0.6rem; border: 1px solid var(--ead-line); border-radius: 10px; background: var(--ead-surface);
}
.ead-yt-lista li.desmarcado { opacity: 0.5; }
.ead-yt-lista .ordem { font-size: 0.75rem; font-weight: 700; color: var(--ead-muted); text-align: right; }
.ead-yt-lista .miniatura { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #0f172a; }
.ead-yt-lista .miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ead-yt-lista .miniatura span { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 0 0.3rem; border-radius: 4px; }
.ead-yt-lista .info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ead-yt-lista .info small { font-size: 0.72rem; color: var(--ead-muted); }
@media (max-width: 720px) {
  .ead-publicos, .ead-publicos.dois { grid-template-columns: 1fr; }
  .ead-yt-topo { flex-direction: column; }
  .ead-yt-topo img { width: 100%; }
  .ead-yt-lista li { grid-template-columns: auto 90px minmax(0, 1fr); }
  .ead-yt-lista .ordem { display: none; }
}

.ead-tag {
  font-size: 0.68rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 6px; background: var(--ead-surface-2);
  color: var(--ead-ink-2); display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--ead-line);
}
.ead-tag .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--ead-muted); }

.ead-estrelas { color: #d97706; font-weight: 700; display: inline-flex; align-items: center; gap: 0.25rem; }

/* ── KPIs ────────────────────────────────────────────────────────────────── */

.ead-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.85rem; }
.ead-kpi {
  background: var(--ead-surface); border: 1px solid var(--ead-line); border-radius: 14px; padding: 0.95rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.28rem; text-align: left; font-family: inherit; color: inherit;
}
.ead-kpi .rotulo { font-size: 0.72rem; font-weight: 600; color: var(--ead-ink-2); display: flex; align-items: center; gap: 0.4rem; }
.ead-kpi .rotulo i { color: var(--ead-primary); }
.ead-kpi .valor { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ead-kpi .valor small { font-size: 0.85rem; font-weight: 700; color: var(--ead-muted); margin-left: 0.15rem; }
.ead-kpi .detalhe { font-size: 0.72rem; color: var(--ead-muted); line-height: 1.4; }
.ead-kpi.destaque { background: linear-gradient(135deg, var(--ead-deep), var(--ead-primary)); border-color: transparent; color: #fff; }
.ead-kpi.destaque .rotulo, .ead-kpi.destaque .rotulo i { color: #dbeafe; }
.ead-kpi.destaque .detalhe { color: #bfdbfe; }
.ead-kpi.alerta .valor { color: var(--ead-warn); }
button.ead-kpi { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
button.ead-kpi:hover { border-color: var(--ead-line-2); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }

/* ── Barra de progresso ──────────────────────────────────────────────────── */

.ead-progresso { display: flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; font-weight: 700; color: var(--ead-ink-2); font-variant-numeric: tabular-nums; min-width: 110px; }
.ead-barra { height: 6px; border-radius: 999px; background: #e8edf5; overflow: hidden; flex: 1; min-width: 50px; }
.ead-barra > span { display: block; height: 100%; border-radius: inherit; background: var(--ead-primary); transition: width 0.4s ease; }
.ead-barra > span.cheia { background: var(--ead-ok); }

/* ── Tabela ──────────────────────────────────────────────────────────────── */

.ead-tabela-caixa { overflow-x: auto; border: 1px solid var(--ead-line); border-radius: 12px; background: var(--ead-surface); }
.ead-tabela { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ead-tabela th {
  text-align: left; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ead-muted); padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--ead-line);
  background: var(--ead-surface-2); white-space: nowrap;
}
.ead-tabela td { padding: 0.62rem 0.8rem; border-bottom: 1px solid var(--ead-line); vertical-align: middle; }
.ead-tabela tr:last-child td { border-bottom: 0; }
.ead-tabela tr.clicavel { cursor: pointer; }
.ead-tabela tr.clicavel:hover td { background: #f7faff; }
.ead-tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ead-tabela .acoes { text-align: right; white-space: nowrap; }
.ead-tabela .nowrap { white-space: nowrap; }

.ead-pessoa { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.ead-pessoa .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ead-primary-bg); color: var(--ead-primary);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0;
}
.ead-pessoa > div { min-width: 0; }
.ead-pessoa strong { display: block; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ead-pessoa span { display: block; font-size: 0.72rem; color: var(--ead-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Filtros ─────────────────────────────────────────────────────────────── */

.ead-filtros { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.ead-filtros .ead-input { width: auto; min-width: 150px; }
.ead-busca { position: relative; flex: 1; min-width: 220px; max-width: 440px; }
.ead-busca > i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--ead-muted); font-size: 0.8rem; pointer-events: none; }
.ead-busca .ead-input { padding-left: 2.1rem; width: 100%; }

/* ── Estados ─────────────────────────────────────────────────────────────── */

.ead-carregando { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 3rem 1rem; color: var(--ead-ink-2); font-size: 0.85rem; }
.ead-vazio { text-align: center; padding: 2.5rem 1rem; color: var(--ead-ink-2); display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.ead-vazio > i { font-size: 2rem; color: #cbd5e1; margin-bottom: 0.3rem; }
.ead-vazio h3 { margin: 0; font-size: 0.95rem; color: var(--ead-ink); }
.ead-vazio p { margin: 0 0 0.5rem; font-size: 0.8rem; max-width: 56ch; line-height: 1.5; }
.ead-negado { text-align: center; padding: 3rem 1.5rem; background: var(--ead-surface); border: 1px solid var(--ead-line); border-radius: 14px; }
.ead-negado i { font-size: 2rem; color: var(--ead-muted); }
.ead-negado h2 { margin: 0.75rem 0 0.4rem; }
.ead-negado p { margin: 0 auto; max-width: 60ch; color: var(--ead-ink-2); font-size: 0.85rem; line-height: 1.55; }

.ead-aviso { display: flex; gap: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 10px; font-size: 0.78rem; line-height: 1.5; border: 1px solid; }
.ead-aviso > i { margin-top: 0.18rem; }
.ead-aviso.info { background: var(--ead-info-bg); border-color: #a5f3fc; color: #155e75; }
.ead-aviso.warn { background: var(--ead-warn-bg); border-color: #fde68a; color: #92400e; }
.ead-aviso.ok { background: var(--ead-ok-bg); border-color: #a7f3d0; color: #065f46; }
.ead-aviso.bad { background: var(--ead-bad-bg); border-color: #fecaca; color: #991b1b; }
.ead-aviso.ia { background: var(--ead-ia-bg); border-color: #ddd6fe; color: #5b21b6; }

.ead-codigo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; background: var(--ead-surface-2);
  border: 1px solid var(--ead-line); border-radius: 6px; padding: 0.1rem 0.4rem; word-break: break-all;
}

/* ── Modal e gaveta ──────────────────────────────────────────────────────── */

.ead-modal-fundo {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto;
  animation: ead-fade 0.15s ease both;
}
.ead-modal {
  background: var(--ead-surface); border-radius: 16px; width: 100%; max-width: 560px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); display: flex; flex-direction: column; max-height: 92vh;
}
.ead-modal.lg { max-width: 820px; }
.ead-modal.xl { max-width: 1100px; }
.ead-modal-topo, .ead-gaveta-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--ead-line); flex-shrink: 0;
}
.ead-modal-topo h3, .ead-gaveta-topo h3 { margin: 0; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ead-modal-topo h3 i, .ead-gaveta-topo h3 i { color: var(--ead-primary); }
.ead-modal-corpo, .ead-gaveta-corpo { padding: 1.2rem 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; font-size: 0.84rem; line-height: 1.5; }
.ead-modal-rodape, .ead-gaveta-rodape {
  padding: 0.8rem 1.25rem; border-top: 1px solid var(--ead-line); display: flex; justify-content: flex-end;
  gap: 0.55rem; flex-wrap: wrap; background: var(--ead-surface-2); flex-shrink: 0;
}
.ead-modal-rodape { border-radius: 0 0 16px 16px; }

.ead-gaveta-fundo {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42); z-index: 1000; display: flex; justify-content: flex-end;
  animation: ead-fade 0.15s ease both;
}
.ead-gaveta {
  background: var(--ead-surface); width: min(960px, 100vw); height: 100%; display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.2); animation: ead-entra 0.22s ease both;
}
.ead-gaveta.md { width: min(640px, 100vw); }
.ead-gaveta-corpo { flex: 1; }
@keyframes ead-entra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── IA ──────────────────────────────────────────────────────────────────── */

.ead-ia-caixa {
  border: 1px solid #ddd6fe; background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%); border-radius: 12px;
  padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.65rem;
}
.ead-ia-caixa h4 { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--ead-ia); display: flex; align-items: center; gap: 0.45rem; }
.ead-ia-caixa p { margin: 0; font-size: 0.76rem; color: var(--ead-ink-2); line-height: 1.5; }
.ead-ia-gerando {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.4rem; border-radius: 12px; background: var(--ead-ia-bg);
  color: var(--ead-ia); font-size: 0.84rem; font-weight: 600; line-height: 1.45;
}
.ead-ia-gerando i { font-size: 1.3rem; }
.ead-ia-gerando small { display: block; font-weight: 500; color: #7c3aed; opacity: 0.85; }

/* ── Cursos ──────────────────────────────────────────────────────────────── */

.ead-grade-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ead-curso-card {
  background: var(--ead-surface); border: 1px solid var(--ead-line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-align: left; padding: 0; font-family: inherit; color: inherit;
}
.ead-curso-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); border-color: var(--ead-line-2); }
.ead-capa {
  aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--ead-deep), var(--ead-primary-2)); position: relative;
  display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.92); overflow: hidden;
}
.ead-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ead-capa .iniciais { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.ead-capa .ead-pill { position: absolute; top: 0.6rem; left: 0.6rem; }
.ead-curso-card .corpo { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.ead-curso-card h4 { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.ead-curso-card .subtitulo {
  font-size: 0.76rem; color: var(--ead-ink-2); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ead-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.72rem; color: var(--ead-muted); }
.ead-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ead-curso-card .rodape {
  padding: 0.65rem 1rem; border-top: 1px solid var(--ead-line); display: flex; justify-content: space-between;
  align-items: center; gap: 0.5rem; font-size: 0.74rem; color: var(--ead-ink-2); background: var(--ead-surface-2);
}

.ead-capa-editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
.ead-capa-editor .ead-capa { border-radius: 12px; }

/* ── Estrutura (aulas e lições) ──────────────────────────────────────────── */

.ead-aulas { display: flex; flex-direction: column; gap: 0.8rem; }
.ead-aula { border: 1px solid var(--ead-line); border-radius: 12px; background: var(--ead-surface); overflow: hidden; }
.ead-aula-topo { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; background: var(--ead-surface-2); border-bottom: 1px solid var(--ead-line); }
.ead-aula-topo .numero {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ead-primary); color: #fff; font-size: 0.72rem;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ead-aula-topo .titulo { flex: 1; min-width: 0; }
.ead-aula-topo .titulo strong { display: block; font-size: 0.86rem; }
.ead-aula-topo .titulo span { display: block; font-size: 0.72rem; color: var(--ead-muted); }
.ead-licao-linha { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--ead-line); transition: background 0.12s; }
.ead-licao-linha:last-child { border-bottom: 0; }
.ead-licao-linha:hover { background: #fafcff; }
.ead-tipo-icone {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0; background: var(--ead-primary-bg); color: var(--ead-primary);
}
.ead-tipo-icone.video { background: #eef2ff; color: #4338ca; }
.ead-tipo-icone.arquivo { background: #f0fdfa; color: #0f766e; }
.ead-tipo-icone.link { background: #f1f5f9; color: #475569; }
.ead-tipo-icone.quiz { background: #fff7ed; color: #c2410c; }
.ead-licao-linha .info { flex: 1; min-width: 0; cursor: pointer; }
.ead-licao-linha .info strong { display: block; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ead-licao-linha .info span { font-size: 0.7rem; color: var(--ead-muted); display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.1rem; }
.ead-acoes-linha { display: flex; gap: 0.25rem; opacity: 0.55; transition: opacity 0.12s; }
.ead-licao-linha:hover .ead-acoes-linha, .ead-aula-topo:hover .ead-acoes-linha { opacity: 1; }
.ead-aula-rodape { padding: 0.45rem 0.9rem; background: var(--ead-surface); }

/* ── Questões ────────────────────────────────────────────────────────────── */

.ead-questoes { display: flex; flex-direction: column; gap: 0.8rem; }
.ead-questao { border: 1px solid var(--ead-line); border-radius: 12px; padding: 0.9rem; background: var(--ead-surface); display: flex; flex-direction: column; gap: 0.6rem; }
.ead-questao-topo { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ead-questao-topo .numero { font-size: 0.74rem; font-weight: 800; color: var(--ead-primary); }
.ead-alternativa { display: flex; align-items: center; gap: 0.5rem; }
.ead-alternativa .marcador {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ead-line-2); display: flex; align-items: center;
  justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--ead-ink-2); cursor: pointer; flex-shrink: 0;
  background: var(--ead-surface); font-family: inherit; text-transform: uppercase;
}
.ead-alternativa .marcador.correta { background: var(--ead-ok); border-color: var(--ead-ok); color: #fff; }
.ead-alternativa .ead-input { flex: 1; }

/* ── Desempenho ──────────────────────────────────────────────────────────── */

.ead-funil { display: flex; flex-direction: column; gap: 0.55rem; }
.ead-funil-linha { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(0, 2fr) 76px; align-items: center; gap: 0.8rem; font-size: 0.76rem; }
.ead-funil-linha .rot { min-width: 0; }
.ead-funil-linha .rot strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ead-funil-linha .rot small { color: var(--ead-muted); display: block; font-size: 0.66rem; }
.ead-funil-barra { height: 14px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.ead-funil-barra span { display: block; height: 100%; background: var(--ead-primary); border-radius: 0 4px 4px 0; }
.ead-funil-linha .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ead-funil-linha .num small { display: block; font-weight: 500; color: var(--ead-muted); font-size: 0.66rem; }

.ead-lista-simples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ead-lista-simples li { font-size: 0.8rem; line-height: 1.5; display: flex; gap: 0.5rem; }
.ead-lista-simples li > i { margin-top: 0.3rem; font-size: 0.68rem; flex-shrink: 0; }
.ead-problema { border-left: 3px solid var(--ead-warn); background: var(--ead-warn-bg); border-radius: 0 10px 10px 0; padding: 0.65rem 0.85rem; }
.ead-problema strong { display: block; font-size: 0.82rem; }
.ead-problema p { margin: 0.25rem 0 0; font-size: 0.76rem; color: var(--ead-ink-2); line-height: 1.5; }

.ead-atividade { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ead-atividade li { display: flex; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ead-line); font-size: 0.78rem; align-items: flex-start; line-height: 1.45; }
.ead-atividade li:last-child { border-bottom: 0; }
.ead-atividade .icone { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.ead-atividade .quando { color: var(--ead-muted); font-size: 0.7rem; display: block; }

/* ── Gráfico ─────────────────────────────────────────────────────────────── */

.ead-grafico { width: 100%; height: 260px; }
.ead-legenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--ead-ink-2); }
.ead-legenda span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ead-legenda i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ead-tooltip {
  background: var(--ead-surface); border: 1px solid var(--ead-line); border-radius: 10px; padding: 0.55rem 0.7rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12); font-size: 0.74rem; color: var(--ead-ink); min-width: 150px;
}
.ead-tooltip strong { display: block; margin-bottom: 0.3rem; font-size: 0.74rem; }
.ead-tooltip div { display: flex; align-items: center; gap: 0.45rem; justify-content: space-between; }
.ead-tooltip div span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ead-ink-2); }
.ead-tooltip div b { font-variant-numeric: tabular-nums; }
.ead-tooltip i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

/* ── Arquivo e seleção ───────────────────────────────────────────────────── */

.ead-arquivo { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.ead-arquivo-atual {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border: 1px solid var(--ead-line);
  border-radius: 10px; background: var(--ead-surface-2); font-size: 0.78rem; width: 100%; box-sizing: border-box;
}
.ead-arquivo-atual > i { color: var(--ead-primary); }
.ead-arquivo-atual > div { flex: 1; min-width: 0; }
.ead-arquivo-atual strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ead-arquivo-atual span { font-size: 0.7rem; color: var(--ead-muted); }
.ead-arquivo-progresso { display: flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; font-weight: 700; color: var(--ead-ink-2); width: 100%; }

.ead-selecao { border: 1px solid var(--ead-line); border-radius: 10px; max-height: 340px; overflow-y: auto; }
.ead-selecao label { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--ead-line); font-size: 0.8rem; cursor: pointer; }
.ead-selecao label:hover { background: var(--ead-surface-2); }
.ead-selecao label:last-child { border-bottom: 0; }
.ead-selecao label.desabilitado { opacity: 0.55; cursor: default; }
.ead-selecao label > div { flex: 1; min-width: 0; }
.ead-selecao label small { display: block; color: var(--ead-muted); font-size: 0.7rem; }

/* ── Conteúdo HTML (pré-visualização) ────────────────────────────────────── */

.ead-html { font-size: 0.9rem; line-height: 1.7; color: var(--ead-ink); overflow-wrap: anywhere; }
.ead-html h2 { font-size: 1.15rem; font-weight: 800; margin: 1.4rem 0 0.5rem; }
.ead-html h3 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; }
.ead-html ul, .ead-editor-caixa .tiptap-content ul { list-style: disc; }
.ead-html ol, .ead-editor-caixa .tiptap-content ol { list-style: decimal; }
.ead-editor-caixa .tiptap-content ul, .ead-editor-caixa .tiptap-content ol { padding-left: 1.4rem; }
.ead-editor-caixa .tiptap-content ul[data-type="taskList"] { list-style: none; padding-left: 0.2rem; }
.ead-editor-caixa .tiptap-content h2 { font-weight: 800; }
.ead-editor-caixa .tiptap-content h3 { font-weight: 700; }
.ead-html p { margin: 0 0 0.8rem; }
.ead-html ul, .ead-html ol { margin: 0 0 0.9rem; padding-left: 1.4rem; }
.ead-html blockquote { margin: 0.9rem 0; padding: 0.6rem 0.9rem; border-left: 3px solid var(--ead-primary); background: var(--ead-primary-bg); border-radius: 0 8px 8px 0; }
.ead-html table { border-collapse: collapse; width: 100%; margin: 0.9rem 0; font-size: 0.84rem; }
.ead-html td, .ead-html th { border: 1px solid var(--ead-line); padding: 0.45rem 0.6rem; text-align: left; }
.ead-html img { max-width: 100%; border-radius: 8px; }
.ead-html iframe { max-width: 100%; border-radius: 10px; }

/* ── Primeiros passos, opções e vídeo ────────────────────────────────────── */

.ead-passos { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem; }
.ead-passos li {
  counter-increment: passo; border: 1px solid var(--ead-line); border-radius: 12px; padding: 0.9rem 1rem 0.9rem 3rem;
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
}
.ead-passos li::before {
  content: counter(passo); position: absolute; left: 0.9rem; top: 0.9rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ead-primary); color: #fff; font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.ead-passos strong { font-size: 0.84rem; }
.ead-passos span { font-size: 0.76rem; color: var(--ead-ink-2); line-height: 1.5; }

.ead-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem; }
.ead-opcao { border: 1px solid var(--ead-line); border-radius: 10px; padding: 0.7rem 0.8rem; cursor: pointer; display: flex; gap: 0.55rem; align-items: flex-start; background: var(--ead-surface); }
.ead-opcao input { margin-top: 0.2rem; accent-color: var(--ead-primary); }
.ead-opcao strong { display: block; font-size: 0.8rem; }
.ead-opcao span { display: block; font-size: 0.72rem; color: var(--ead-ink-2); line-height: 1.4; }
.ead-opcao.ativa { border-color: var(--ead-primary); background: var(--ead-primary-bg); }

.ead-tipos { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ead-tipos button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.75rem; border-radius: 9px; font-family: inherit;
  border: 1px solid var(--ead-line-2); background: var(--ead-surface); color: var(--ead-ink-2); font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.ead-tipos button.ativo { border-color: var(--ead-primary); background: var(--ead-primary-bg); color: var(--ead-primary); }
.ead-tipos button:disabled { cursor: not-allowed; opacity: 0.6; }

.ead-video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1220; max-width: 640px; width: 100%; }
.ead-video iframe, .ead-video video { width: 100%; height: 100%; border: 0; display: block; }

.ead-secao-gaveta { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--ead-line); }
.ead-secao-gaveta:first-child { border-top: 0; padding-top: 0; }
.ead-secao-gaveta > h4 { margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ead-muted); display: flex; align-items: center; gap: 0.45rem; }

.ead-editor-caixa .tte-wrapper, .ead-editor-caixa > div { border-radius: 10px; }
.ead-editor-caixa .tiptap-content { min-height: 260px; }

.ead-material { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--ead-line); }
.ead-material:last-child { border-bottom: 0; }
.ead-material > div { flex: 1; min-width: 0; }
.ead-material strong { display: block; font-size: 0.82rem; }
.ead-material span { display: block; font-size: 0.72rem; color: var(--ead-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ead-duas-colunas { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ead-page { padding: 1rem; }
  .ead-header h1 { font-size: 1.3rem; }
  .ead-grade-2, .ead-grade-3, .ead-capa-editor { grid-template-columns: 1fr; }
  .ead-span-2 { grid-column: auto; }
  .ead-funil-linha { grid-template-columns: minmax(0, 1fr) 70px; }
  .ead-funil-linha .ead-funil-barra { grid-column: 1 / -1; order: 3; }
  .ead-modal-fundo { padding: 0; }
  .ead-modal { max-height: 100vh; border-radius: 0; min-height: 100vh; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Central do Aluno (/aluno*) — o portal que o cliente vê.
   Mesma família visual da intranet (#0A4EA0 / #002b5e). O âmbar é a cor da
   conquista (conclusão, certificado). O Phobinho Tutor usa o azul da marca (os tokens --al-ia).
   Modal e painel do tutor vão por portal ao <body>, por isso os tokens também
   moram em .al-camada.
   ═══════════════════════════════════════════════════════════════════════════ */

.al-app,
.al-camada {
  --al-primary: #0A4EA0;
  --al-primary-2: #1e6ecf;
  --al-deep: #002b5e;
  --al-primary-bg: #eaf2fd;
  --al-accent: #d97706;
  --al-accent-2: #f59e0b;
  --al-accent-bg: #fff7e6;
  --al-ink: #0f172a;
  --al-ink-2: #475569;
  --al-muted: #7b8aa0;
  --al-line: #e3e8f0;
  --al-line-2: #d2dae6;
  --al-bg: #f3f6fb;
  --al-surface: #ffffff;
  --al-surface-2: #f8fafc;
  --al-ok: #047857;
  --al-ok-bg: #ecfdf5;
  --al-warn: #b45309;
  --al-warn-bg: #fffbeb;
  --al-bad: #b91c1c;
  --al-bad-bg: #fef2f2;
  --al-ia: #0A4EA0;
  --al-ia-2: #1e6ecf;
  --al-ia-bg: #eaf2fd;
  --al-ia-linha: #cfe0f7;
  --al-raio: 16px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--al-ink);
  -webkit-font-smoothing: antialiased;
}
.al-app *, .al-camada * { box-sizing: border-box; }
.al-app { min-height: 100vh; background: var(--al-bg); display: flex; flex-direction: column; }

@keyframes al-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Topo ────────────────────────────────────────────────────────────────── */

.al-topo { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--al-line); }
.al-topo-dentro { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.al-marca { display: flex; align-items: center; gap: 0.65rem; color: var(--al-ink); flex-shrink: 0; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.al-marca img { height: 28px; width: auto; display: block; }
.al-marca span { font-size: 0.82rem; font-weight: 700; color: var(--al-ink-2); padding-left: 0.65rem; border-left: 1px solid var(--al-line-2); white-space: nowrap; }
.al-nav { display: flex; align-items: center; gap: 0.2rem; flex: 1; min-width: 0; }
.al-nav button {
  border: 0; background: none; font-family: inherit; font-size: 0.86rem; font-weight: 600; color: var(--al-ink-2);
  padding: 0.5rem 0.8rem; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
}
.al-nav button:hover { background: var(--al-surface-2); color: var(--al-ink); }
.al-nav button.ativo { color: var(--al-primary); background: var(--al-primary-bg); }
.al-nav .selo {
  min-width: 18px; height: 18px; border-radius: 999px; background: var(--al-bad); color: #fff; font-size: 0.65rem;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}
.al-usuario { position: relative; margin-left: auto; }
.al-usuario > button {
  display: flex; align-items: center; gap: 0.55rem; background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem; cursor: pointer; font-family: inherit; color: var(--al-ink);
}
.al-usuario > button:hover { border-color: var(--al-line); background: var(--al-surface); }
.al-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--al-primary), var(--al-deep));
  color: #fff; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.al-usuario .nome { font-size: 0.82rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--al-surface); border: 1px solid var(--al-line);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); min-width: 230px; padding: 0.35rem; z-index: 60;
}
.al-menu .quem { padding: 0.55rem 0.7rem 0.6rem; border-bottom: 1px solid var(--al-line); margin-bottom: 0.3rem; }
.al-menu .quem strong { display: block; font-size: 0.84rem; }
.al-menu .quem span { font-size: 0.74rem; color: var(--al-muted); word-break: break-all; }
.al-menu button {
  width: 100%; text-align: left; border: 0; background: none; padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.84rem;
  font-family: inherit; color: var(--al-ink); cursor: pointer; display: flex; align-items: center; gap: 0.55rem;
}
.al-menu button:hover { background: var(--al-surface-2); }
.al-menu button i { width: 16px; color: var(--al-muted); }

.al-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 1.6rem; animation: al-entra 0.3s ease both; }
.al-rodape { text-align: center; font-size: 0.74rem; color: var(--al-muted); padding: 1.25rem; }
.al-rodape a { color: inherit; }

/* ── Títulos e cartões ───────────────────────────────────────────────────── */

.al-titulo h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.025em; }
.al-titulo p { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--al-ink-2); max-width: 70ch; line-height: 1.55; }
.al-secao-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.al-secao-topo h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; display: flex; align-items: center; gap: 0.5rem; }
.al-secao-topo h2 i { color: var(--al-primary); font-size: 1rem; }
.al-cartao { background: var(--al-surface); border: 1px solid var(--al-line); border-radius: var(--al-raio); padding: 1.35rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); min-width: 0; }
.al-cartao h3 { margin: 0 0 0.65rem; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.al-cartao h3 i { color: var(--al-primary); }
.al-sub { margin: 0; font-size: 0.86rem; color: var(--al-ink-2); line-height: 1.55; }
.al-linha { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.al-muted { color: var(--al-muted); }
.al-so-mobile { display: none !important; }
.al-tag { display: inline-flex; align-items: center; gap: 0.38rem; font-size: 0.72rem; font-weight: 700; color: var(--al-ink-2); align-self: flex-start; }
.al-tag .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--al-primary); }

/* ── Botões ──────────────────────────────────────────────────────────────── */

.al-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit; font-size: 0.88rem;
  font-weight: 700; padding: 0.68rem 1.15rem; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s; text-decoration: none;
  white-space: nowrap; line-height: 1.2;
}
.al-btn:active:not(:disabled) { transform: translateY(1px); }
.al-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.al-btn-primario { background: var(--al-primary); color: #fff; box-shadow: 0 4px 14px rgba(10, 78, 160, 0.22); }
.al-btn-primario:hover:not(:disabled) { background: var(--al-deep); }
.al-btn-secundario { background: var(--al-surface); color: var(--al-ink); border-color: var(--al-line-2); }
.al-btn-secundario:hover:not(:disabled) { border-color: var(--al-primary); color: var(--al-primary); }
.al-btn-texto { background: none; color: var(--al-ink-2); padding-inline: 0.6rem; }
.al-btn-texto:hover:not(:disabled) { color: var(--al-primary); background: var(--al-surface); }
.al-btn-conquista { background: linear-gradient(135deg, var(--al-accent), var(--al-accent-2)); color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28); }
.al-btn-ia { background: linear-gradient(135deg, var(--al-ia), var(--al-ia-2)); color: #fff; box-shadow: 0 4px 14px rgba(10, 78, 160, 0.25); }
.al-btn-ok { background: var(--al-ok-bg); color: var(--al-ok); border-color: #a7f3d0; cursor: default; }
.al-btn-sm { font-size: 0.78rem; padding: 0.45rem 0.75rem; border-radius: 9px; }
.al-btn-grande { font-size: 0.98rem; padding: 0.85rem 1.5rem; border-radius: 13px; }
.al-btn-bloco { width: 100%; }
.al-btn-icone {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--al-line); background: var(--al-surface); color: var(--al-ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 0.9rem; padding: 0;
}
.al-btn-icone:hover { border-color: var(--al-primary); color: var(--al-primary); }
.al-link { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; color: var(--al-primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.al-link:hover { text-decoration: underline; }

/* ── Formulário ──────────────────────────────────────────────────────────── */

.al-form { display: flex; flex-direction: column; gap: 1rem; }
.al-grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.al-campo { display: flex; flex-direction: column; gap: 0.38rem; min-width: 0; }
.al-campo label { font-size: 0.8rem; font-weight: 700; color: var(--al-ink-2); }
.al-input,
.al-campo input,
.al-campo select,
.al-campo textarea {
  width: 100%; border: 1px solid var(--al-line-2); border-radius: 11px; padding: 0.72rem 0.85rem; font-size: 0.92rem;
  font-family: inherit; color: var(--al-ink); background: var(--al-surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.al-input:focus, .al-campo input:focus, .al-campo select:focus, .al-campo textarea:focus {
  outline: none; border-color: var(--al-primary); box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.14);
}
.al-campo input:read-only { background: var(--al-surface-2); color: var(--al-ink-2); }
.al-campo textarea, textarea.al-input { resize: vertical; min-height: 96px; line-height: 1.55; }
.al-senha { position: relative; }
.al-senha input { padding-right: 2.8rem; }
.al-senha button { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--al-muted); width: 34px; height: 34px; cursor: pointer; border-radius: 8px; }
.al-ajuda { font-size: 0.78rem; color: var(--al-muted); margin: 0; line-height: 1.5; }
.al-erro { font-size: 0.84rem; color: var(--al-bad); background: var(--al-bad-bg); border: 1px solid #fecaca; border-radius: 10px; padding: 0.6rem 0.8rem; display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.45; }
.al-erro i { margin-top: 0.15rem; }
.al-aviso { font-size: 0.86rem; border-radius: 12px; padding: 0.8rem 1rem; display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.5; border: 1px solid; }
.al-aviso > i { margin-top: 0.18rem; }
.al-aviso.info { background: var(--al-primary-bg); border-color: #bfdbfe; color: #1e3a8a; }
.al-aviso.ok { background: var(--al-ok-bg); border-color: #a7f3d0; color: #065f46; }
.al-aviso.warn { background: var(--al-warn-bg); border-color: #fde68a; color: #92400e; }
.al-aviso.bad { background: var(--al-bad-bg); border-color: #fecaca; color: #991b1b; }
.al-aviso.ia { background: var(--al-ia-bg); border-color: var(--al-ia-linha); color: #0a3f82; }
.al-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.78rem; color: var(--al-muted); }
.al-checklist li.ok { color: var(--al-ok); }
.al-checklist i { width: 14px; }

/* ── Pílulas, barra e anel ───────────────────────────────────────────────── */

.al-pill {
  display: inline-flex; align-items: center; gap: 0.32rem; font-size: 0.72rem; font-weight: 700; border-radius: 999px;
  padding: 0.22rem 0.62rem; background: var(--al-surface-2); color: var(--al-ink-2); border: 1px solid var(--al-line); white-space: nowrap;
}
.al-pill.primario { background: var(--al-primary-bg); color: var(--al-primary); border-color: #bfdbfe; }
.al-pill.ok { background: var(--al-ok-bg); color: var(--al-ok); border-color: #a7f3d0; }
.al-pill.warn { background: var(--al-warn-bg); color: var(--al-warn); border-color: #fde68a; }
.al-pill.bad { background: var(--al-bad-bg); color: var(--al-bad); border-color: #fecaca; }
.al-pill.conquista { background: var(--al-accent-bg); color: var(--al-accent); border-color: #fde68a; }
.al-pill.ia { background: var(--al-ia-bg); color: var(--al-ia); border-color: var(--al-ia-linha); }

.al-progresso { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 700; color: var(--al-ink-2); width: 100%; }
.al-barra { height: 8px; border-radius: 999px; background: #e6ebf3; overflow: hidden; flex: 1; min-width: 60px; }
.al-barra > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--al-primary-2), var(--al-primary)); transition: width 0.5s ease; }
.al-barra > span.cheia { background: linear-gradient(90deg, #10b981, var(--al-ok)); }

.al-anel { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-anel svg { transform: rotate(-90deg); display: block; }
.al-anel .trilho { stroke: #e6ebf3; }
.al-anel .valor { stroke: var(--al-primary); transition: stroke-dashoffset 0.6s ease; stroke-linecap: round; }
.al-anel.cheio .valor { stroke: var(--al-ok); }
.al-anel strong { position: absolute; font-size: 0.9rem; font-weight: 800; }
.al-anel.grande strong { font-size: 1.45rem; }
.al-estrelas { color: var(--al-accent-2); font-weight: 700; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.82rem; }

/* ── Estados ─────────────────────────────────────────────────────────────── */

.al-carregando { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 4rem 1rem; color: var(--al-ink-2); font-size: 0.92rem; flex: 1; }
.al-vazio { text-align: center; padding: 3rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.al-vazio .icone { width: 64px; height: 64px; border-radius: 20px; background: var(--al-primary-bg); color: var(--al-primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 0.4rem; }
.al-vazio h3 { margin: 0; font-size: 1.05rem; }
.al-vazio p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--al-ink-2); max-width: 52ch; line-height: 1.55; }

/* ── Entrar ──────────────────────────────────────────────────────────────────
   Painel da marca (céu, lua e o Phobinho Professor) + coluna do formulário.
   Três arranjos: lado a lado (> 1180px), empilhado com texto e Phobinho lado a
   lado (tablet) e empilhado centralizado (celular, <= 600px).
   Medidas do Phobinho saem da imagem recortada (699 x 1219): pés em x = 43%,
   ponta do dedo em (88.8%, 29.5%). */

.al-entrar { display: grid; grid-template-columns: minmax(0, 1fr) clamp(420px, 36vw, 560px); background: var(--al-bg); }

.al-entrar-marca {
  --ph-h: min(54vh, 34vw, 520px);
  --ph-w: calc(var(--ph-h) * 0.5734);
  --chao: clamp(64px, 12vh, 120px);
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(28px, 5vh, 48px) clamp(32px, 4.5vw, 72px) var(--chao);
  background:
    radial-gradient(760px 460px at 8% 0%, rgba(30, 110, 207, 0.55), transparent 62%),
    radial-gradient(560px 420px at 88% 22%, rgba(34, 211, 238, 0.10), transparent 66%),
    radial-gradient(700px 520px at 72% 100%, rgba(59, 130, 246, 0.35), transparent 70%),
    linear-gradient(165deg, #001d42 0%, var(--al-deep) 38%, #0b3a78 74%, var(--al-primary) 100%);
}
.al-entrar-logo { height: 34px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.al-entrar-palco {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.5rem;
  width: 100%; max-width: 1040px; margin: 0 auto; position: relative; z-index: 1;
}
.al-entrar-texto { align-self: center; max-width: 460px; display: flex; flex-direction: column; gap: 1.1rem; padding-bottom: 1rem; }
.al-entrar-texto h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.al-entrar-texto p { margin: 0; font-size: 1rem; line-height: 1.6; color: #dbeafe; }
.al-beneficios { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.95rem; }
.al-beneficios li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.88rem; color: #cfe0f7; line-height: 1.45; }
.al-beneficios li > i {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; backdrop-filter: blur(4px);
}
.al-beneficios li > img.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--al-ia-bg); object-fit: cover; flex-shrink: 0; }
.al-beneficios strong { display: block; color: #fff; font-size: 0.94rem; }

/* Céu: estrelas piscando e uma estrela cadente de vez em quando. */
.al-ceu { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.al-estrela { position: absolute; border-radius: 50%; background: #fff; opacity: var(--o); box-shadow: 0 0 4px rgba(255, 255, 255, 0.7); animation: al-pisca 4s ease-in-out infinite; }
@keyframes al-pisca { 0%, 100% { opacity: var(--o); } 50% { opacity: calc(var(--o) * 0.2); } }
.al-cadente {
  position: absolute; top: 14%; left: 6%; width: 150px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  transform: rotate(16deg); animation: al-cadente 12s linear 5s infinite;
}
@keyframes al-cadente {
  0% { opacity: 0; transform: rotate(16deg) translateX(0); }
  1.5% { opacity: 1; }
  6% { opacity: 0; transform: rotate(16deg) translateX(440px); }
  100% { opacity: 0; transform: rotate(16deg) translateX(440px); }
}

/* Palco do Phobinho: a caixa tem o tamanho da figura; a lua e o balão saem dela. */
.al-ph {
  position: relative; width: var(--ph-w); height: var(--ph-h); align-self: end;
  margin-right: max(84px, calc(var(--ph-w) * 0.3));
}
.al-ph-lua {
  position: absolute; left: 43%; top: calc(100% - var(--ph-w) * 0.05); width: calc(var(--ph-w) * 3.6); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 219, 254, 0.5), rgba(191, 219, 254, 0) 14%),
    radial-gradient(circle at 38% 6%, #3a7bd8 0%, #1a56b0 12%, #0d3f86 24%, #062a5c 42%);
  box-shadow: 0 0 0 1.5px rgba(147, 197, 253, 0.5), 0 -6px 28px rgba(96, 165, 250, 0.5), 0 -24px 90px rgba(59, 130, 246, 0.35);
}
/* Cratera iluminada de cima: parede de cima na sombra, borda de baixo pegando luz. */
.al-ph-lua i {
  position: absolute; border-radius: 50%;
  background: linear-gradient(to bottom, rgba(0, 18, 52, 0.42), rgba(0, 18, 52, 0.12) 62%, rgba(191, 219, 254, 0.2));
  box-shadow: 0 1px 0 rgba(191, 219, 254, 0.14);
}
.al-ph-sombra-pos { position: absolute; left: 43%; bottom: calc(var(--ph-w) * -0.005); width: 76%; height: calc(var(--ph-w) * 0.1); transform: translateX(-50%); }
.al-ph-sombra { width: 100%; height: 100%; background: radial-gradient(closest-side, rgba(0, 10, 30, 0.6), rgba(0, 10, 30, 0)); opacity: 0; }
.al-ph-feixe {
  position: absolute; left: 43%; bottom: calc(var(--ph-w) * -0.1); width: 96%; height: 175%; opacity: 0; transform: translateX(-50%) scaleY(0); transform-origin: 50% 0;
  background: linear-gradient(to top, rgba(165, 243, 252, 0.6), rgba(165, 243, 252, 0.18) 55%, rgba(165, 243, 252, 0));
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%); pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 9%); mask-image: linear-gradient(to top, transparent 0, #000 9%);
}
.al-ph-anel {
  position: absolute; left: 43%; bottom: calc(var(--ph-w) * -0.055); width: 110%; height: calc(var(--ph-w) * 0.2);
  border: 2px solid rgba(165, 243, 252, 0.85); border-radius: 50%; opacity: 0; transform: translateX(-50%) scale(0.3); pointer-events: none;
}
.al-ph-corpo { position: absolute; inset: 0; opacity: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.al-ph-pulo, .al-ph-flutua { width: 100%; height: 100%; transform-origin: 43% 100%; }
.al-ph-corpo img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.al-ph-brilho {
  position: absolute; left: 91%; top: 25.5%; width: calc(var(--ph-w) * 0.1); height: auto; transform: translate(-50%, -50%) scale(0);
  fill: #fff; filter: drop-shadow(0 0 5px rgba(165, 243, 252, 0.95)); overflow: visible;
}
.al-ph-balao-pos { position: absolute; left: 86%; top: 3%; transform-origin: 0 100%; opacity: 0; filter: drop-shadow(0 10px 22px rgba(0, 12, 40, 0.35)); }
.al-ph-balao-pos .al-ph-pulo, .al-ph-balao-pos .al-ph-flutua { width: auto; height: auto; transform-origin: 0 100%; }
.al-ph-balao {
  position: relative; background: #fff; color: var(--al-deep); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap;
  font-size: clamp(0.95rem, calc(var(--ph-w) * 0.068), 1.25rem); padding: 0.55em 0.95em; border-radius: 18px 18px 18px 6px;
}
.al-ph-balao::after {
  content: ""; position: absolute; left: -3px; bottom: -14px; width: 27px; height: 16px; background: #fff;
  clip-path: polygon(38% 0, 100% 0, 0 100%);
}
.al-ph-balao span { display: inline-block; opacity: 0; animation: al-ph-letra 0.35s ease both; animation-play-state: paused; }

/* Sequência: feixe (0,1s) → Phobinho se forma (0,35s) → anel no chão → balão (1,55s) → letras. */
.al-ph.pronto .al-ph-feixe { animation: al-ph-feixe 1.5s ease 0.1s both; }
.al-ph.pronto .al-ph-corpo { animation: al-ph-chega 1.2s cubic-bezier(0.22, 0.8, 0.3, 1) 0.35s both; }
.al-ph.pronto .al-ph-anel { animation: al-ph-anel 0.9s ease-out 1.05s both; }
.al-ph.pronto .al-ph-sombra { animation: al-ph-sombra-chega 0.6s ease 1s both, al-ph-sombra 4.8s ease-in-out 1.7s infinite; }
.al-ph.pronto .al-ph-flutua { animation: al-ph-flutua 4.8s ease-in-out 1.7s infinite; }
.al-ph.pronto .al-ph-balao-pos { animation: al-ph-balao 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 1.55s both; }
.al-ph.pronto .al-ph-balao span { animation-play-state: running; }
.al-ph.pronto .al-ph-brilho { animation: al-ph-brilho 3.6s ease-in-out 2.4s infinite; }
.al-ph-pulo.pula { animation: al-ph-pula 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); }
.al-ph-sombra-pos.pula { animation: al-ph-sombra-pula 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); }

@keyframes al-ph-feixe {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
  25% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  70% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}
@keyframes al-ph-chega {
  0% { opacity: 0; transform: translateY(-9%); clip-path: inset(0 0 100% 0); filter: brightness(2.4) saturate(0.4) blur(4px); }
  50% { opacity: 1; clip-path: inset(0 0 0 0); filter: brightness(1.7) saturate(0.7) blur(1px); }
  72% { transform: translateY(0.8%); filter: brightness(1.15); }
  86% { transform: translateY(-0.6%); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes al-ph-anel {
  0% { opacity: 0; transform: translateX(-50%) scale(0.3); }
  12% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}
@keyframes al-ph-sombra-chega { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes al-ph-sombra { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.84); opacity: 0.7; } }
@keyframes al-ph-flutua {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-1.6%) rotate(0.6deg); }
}
@keyframes al-ph-balao {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  80% { transform: scale(0.97); }
  100% { opacity: 1; transform: none; }
}
@keyframes al-ph-letra { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes al-ph-brilho {
  0%, 68%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0); }
  78% { transform: translate(-50%, -50%) scale(1) rotate(45deg); }
  90% { transform: translate(-50%, -50%) scale(0.15) rotate(90deg); }
}
@keyframes al-ph-pula {
  0% { transform: none; }
  30% { transform: translateY(-9%) rotate(-3deg); }
  55% { transform: translateY(0) scale(1.03, 0.97); }
  75% { transform: translateY(-2%); }
  100% { transform: none; }
}
@keyframes al-ph-sombra-pula {
  0%, 100% { transform: translateX(-50%); }
  30% { transform: translateX(-50%) scale(0.6); }
  55% { transform: translateX(-50%) scale(1.06); }
}

/* Coluna do formulário. */
.al-entrar-form {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.75rem);
  background:
    radial-gradient(640px 460px at 100% 0%, rgba(30, 110, 207, 0.1), transparent 70%),
    radial-gradient(560px 420px at 0% 100%, rgba(10, 78, 160, 0.06), transparent 70%),
    var(--al-bg);
}
.al-entrar-caixa {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 1.3rem; animation: al-entra 0.35s ease both;
  background: var(--al-surface); border: 1px solid var(--al-line); border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 28px 60px -28px rgba(0, 43, 94, 0.32);
}
.al-entrar-caixa h2 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.al-entrar-caixa > p { margin: -0.8rem 0 0; font-size: 0.92rem; color: var(--al-ink-2); line-height: 1.5; }
.al-saudacao {
  display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start; margin-bottom: -0.55rem;
  font-size: 0.78rem; font-weight: 700; color: var(--al-primary); background: var(--al-primary-bg); padding: 0.35rem 0.75rem; border-radius: 999px;
}
.al-saudacao i { color: var(--al-accent-2); }
.al-rotulo-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.al-rotulo-linha .al-link { font-size: 0.8rem; }
.al-campo-icone { position: relative; }
.al-campo-icone > i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--al-muted); font-size: 0.9rem; pointer-events: none; transition: color 0.15s; }
.al-campo .al-campo-icone input { padding-left: 2.6rem; }
.al-campo-icone:focus-within > i { color: var(--al-primary); }
.al-campo-icone input::placeholder { color: #a3b0c2; }
.al-entrar-caixa .al-btn-primario { background: linear-gradient(135deg, var(--al-primary) 0%, var(--al-primary-2) 100%); box-shadow: 0 12px 26px -12px rgba(10, 78, 160, 0.7); }
.al-entrar-caixa .al-btn-primario:hover:not(:disabled) { background: linear-gradient(135deg, var(--al-deep) 0%, var(--al-primary) 100%); }
.al-btn-entrar .seta { font-size: 0.85em; transition: transform 0.2s; }
.al-btn-entrar:hover:not(:disabled) .seta { transform: translateX(3px); }
.al-entrar-conta { margin: -0.35rem 0 0; text-align: center; font-size: 0.86rem; color: var(--al-ink-2); }
.al-dica { display: flex; gap: 0.65rem; align-items: flex-start; background: var(--al-surface-2); border: 1px solid var(--al-line); border-radius: 13px; padding: 0.8rem 0.9rem; }
.al-dica > i { color: var(--al-primary); margin-top: 0.15rem; font-size: 0.9rem; }
.al-dica strong { color: var(--al-ink); }
.al-ou { display: flex; align-items: center; gap: 0.8rem; font-size: 0.76rem; color: var(--al-muted); }
.al-ou::before, .al-ou::after { content: ""; flex: 1; height: 1px; background: var(--al-line); }
.al-btn-intranet { justify-content: flex-start; gap: 0.85rem; padding: 0.75rem 1.1rem 0.75rem 0.8rem; white-space: normal; text-align: left; }
.al-btn-intranet .al-avatar { width: 48px; height: 48px; font-size: 0.95rem; object-fit: cover; }
.al-btn-intranet .quem { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.al-btn-intranet .quem small { font-size: 0.74rem; font-weight: 600; color: var(--al-muted); }
.al-btn-intranet .quem strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
.al-btn-intranet .seta { margin-left: auto; color: var(--al-primary); }
.al-entrar-rodape { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.al-entrar-rodape > span { font-size: 0.74rem; color: var(--al-muted); text-wrap: balance; }

/* Notebook baixo: os benefícios ficam só com o título e o cartão aperta para caber sem rolar. */
@media (max-height: 760px) and (min-width: 1181px) {
  .al-beneficios span { display: none; }
  .al-beneficios li { align-items: center; }
  .al-entrar-texto p { font-size: 0.94rem; }
  .al-entrar-form { padding-block: 1.25rem; gap: 0.9rem; }
  .al-entrar-caixa { gap: 1.05rem; padding: 1.5rem 2rem; }
  .al-entrar-caixa > p { margin-top: -0.65rem; }
  .al-dica { padding: 0.65rem 0.8rem; }
  .al-entrar-rodape { gap: 0.45rem; }
}

/* Tablet: marca em cima (texto + Phobinho), formulário embaixo numa folha que sobe sobre a lua. */
@media (max-width: 1180px) {
  .al-entrar { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .al-entrar-marca { --ph-h: clamp(190px, 30vh, 290px); --chao: 64px; padding: 1.5rem clamp(1.25rem, 5vw, 3rem) var(--chao); gap: 1rem; }
  .al-entrar-palco { gap: 1.5rem; }
  .al-entrar-texto { padding-bottom: 0.5rem; }
  .al-entrar-texto h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .al-beneficios { display: none; }
  .al-entrar-form {
    position: relative; z-index: 2; margin-top: -30px; border-radius: 28px 28px 0 0; justify-content: flex-start;
    padding: 2.2rem clamp(1.25rem, 5vw, 3rem) 2.5rem; box-shadow: 0 -12px 30px rgba(0, 20, 60, 0.18);
  }
}

/* Celular: tudo centralizado, Phobinho no meio; o formulário vira a própria folha. */
@media (max-width: 600px) {
  .al-entrar-marca { --ph-h: clamp(140px, 23vh, 210px); --chao: 58px; padding-top: 1.1rem; gap: 0.85rem; }
  .al-entrar-logo { height: 28px; align-self: center; }
  .al-estrela.perto-texto { display: none; }
  .al-entrar-palco { grid-template-columns: 1fr; gap: 0.9rem; justify-items: center; text-align: center; }
  .al-entrar-texto { align-self: auto; align-items: center; padding: 0; gap: 0.4rem; }
  .al-entrar-texto h1 { font-size: 1.5rem; }
  .al-entrar-texto p { display: none; }
  .al-ph { margin-left: calc(max(84px, var(--ph-w) * 0.3) * 0.5); margin-right: calc(max(84px, var(--ph-w) * 0.3) * 0.5); }
  .al-entrar-form { background: var(--al-surface); padding: 1.8rem 1.25rem 2rem; gap: 1.6rem; }
  .al-entrar-caixa { border: 0; box-shadow: none; padding: 0; border-radius: 0; max-width: none; }
  .al-entrar-caixa h2 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .al-entrar-marca *, .al-entrar-caixa { animation: none !important; }
  .al-ph-corpo, .al-ph-sombra, .al-ph-balao-pos, .al-ph-balao span { opacity: 1; }
}

/* ── Início ──────────────────────────────────────────────────────────────── */

.al-hero {
  background: linear-gradient(135deg, var(--al-deep) 0%, var(--al-primary) 100%); color: #fff; border-radius: 22px; padding: 1.8rem 2rem;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; position: relative; overflow: hidden;
}
.al-hero::after { content: ""; position: absolute; right: -80px; top: -110px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, 0.06); }
.al-hero h1 { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
.al-hero p { margin: 0.5rem 0 0; font-size: 0.93rem; line-height: 1.6; color: #dbeafe; max-width: 60ch; }
.al-hero-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; position: relative; z-index: 1; }
.al-hero-numeros div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 0.8rem 0.95rem; }
.al-hero-numeros strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.al-hero-numeros span { font-size: 0.75rem; color: #cfe0fb; }

.al-continuar { display: grid; grid-template-columns: 300px minmax(0, 1fr); padding: 0; overflow: hidden; cursor: pointer; transition: box-shadow 0.18s, border-color 0.18s; }
.al-continuar:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1); border-color: var(--al-line-2); }
.al-continuar .al-capa { aspect-ratio: auto; height: 100%; min-height: 180px; }
.al-continuar-corpo { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.al-continuar-corpo small { font-size: 0.74rem; font-weight: 800; color: var(--al-accent); text-transform: uppercase; letter-spacing: 0.07em; }
.al-continuar-corpo h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.015em; }
.al-continuar-corpo .licao { font-size: 0.9rem; color: var(--al-ink-2); display: flex; align-items: center; gap: 0.5rem; }

/* ── Cursos ──────────────────────────────────────────────────────────────── */

.al-grade-cursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.1rem; }
.al-curso-card {
  background: var(--al-surface); border: 1px solid var(--al-line); border-radius: var(--al-raio); overflow: hidden; display: flex;
  flex-direction: column; text-align: left; font-family: inherit; color: inherit; padding: 0; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.al-curso-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1); border-color: var(--al-line-2); }
.al-capa {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--al-deep), var(--al-primary-2)); position: relative; display: flex;
  align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.95); overflow: hidden; width: 100%;
}
.al-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-capa .iniciais { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.al-capa .al-pill { position: absolute; top: 0.7rem; left: 0.7rem; }
.al-curso-card .corpo { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.al-curso-card h4 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.al-curso-card .subtitulo { margin: 0; font-size: 0.82rem; color: var(--al-ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.85rem; font-size: 0.78rem; color: var(--al-muted); }
.al-meta span { display: inline-flex; align-items: center; gap: 0.32rem; }
.al-curso-card .rodape { margin-top: auto; padding-top: 0.55rem; display: flex; flex-direction: column; gap: 0.45rem; }

.al-filtros { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.al-busca { position: relative; flex: 1; min-width: 240px; max-width: 480px; }
.al-busca > i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--al-muted); pointer-events: none; }
.al-busca .al-input { padding-left: 2.5rem; }
.al-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.al-chips button {
  border: 1px solid var(--al-line-2); background: var(--al-surface); border-radius: 999px; padding: 0.42rem 0.85rem; font-size: 0.8rem;
  font-weight: 600; color: var(--al-ink-2); cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 0.4rem;
}
.al-chips button.ativo { background: var(--al-primary); border-color: var(--al-primary); color: #fff; }

/* ── Página do curso ─────────────────────────────────────────────────────── */

.al-curso-hero { position: relative; border-radius: 22px; overflow: hidden; background: var(--al-deep); color: #fff; }
.al-curso-hero .fundo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.al-curso-hero .fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 43, 94, 0.97) 0%, rgba(0, 43, 94, 0.88) 50%, rgba(10, 78, 160, 0.6) 100%); }
.al-curso-hero .dentro { position: relative; padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 0.8rem; max-width: 780px; }
.al-curso-hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.al-curso-hero p { margin: 0; color: #dbeafe; font-size: 1rem; line-height: 1.6; }
.al-curso-hero .al-meta { color: #cfe0fb; font-size: 0.84rem; }
.al-curso-hero .al-tag { color: #fff; }
.al-voltar { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; font-weight: 600; color: #cfe0fb; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; align-self: flex-start; }
.al-voltar:hover { color: #fff; }
.al-voltar.escuro { color: var(--al-ink-2); }
.al-voltar.escuro:hover { color: var(--al-primary); }
.al-curso-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.al-coluna { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.al-lateral { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; }
.al-objetivos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem 1.2rem; }
.al-objetivos li { display: flex; gap: 0.55rem; font-size: 0.9rem; line-height: 1.5; }
.al-objetivos li i { color: var(--al-ok); margin-top: 0.25rem; }
.al-inclui { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.al-inclui li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.88rem; color: var(--al-ink-2); }
.al-inclui li i { width: 18px; color: var(--al-primary); text-align: center; }

.al-aulas { display: flex; flex-direction: column; gap: 0.7rem; }
.al-aula { border: 1px solid var(--al-line); border-radius: 14px; overflow: hidden; background: var(--al-surface); }
.al-aula > button { width: 100%; display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; background: var(--al-surface-2); border: 0; cursor: pointer; font-family: inherit; text-align: left; color: var(--al-ink); }
.al-aula .numero { width: 30px; height: 30px; border-radius: 9px; background: var(--al-primary-bg); color: var(--al-primary); font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-aula .numero.feita { background: var(--al-ok); color: #fff; }
.al-aula .titulo { flex: 1; min-width: 0; }
.al-aula .titulo strong { display: block; font-size: 0.92rem; }
.al-aula .titulo span { font-size: 0.76rem; color: var(--al-muted); }
.al-licao {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border: 0; border-top: 1px solid var(--al-line); background: var(--al-surface);
  width: 100%; font-family: inherit; text-align: left; color: var(--al-ink); cursor: pointer;
}
.al-licao:hover:not(:disabled) { background: #f7faff; }
.al-licao:disabled { cursor: not-allowed; color: var(--al-muted); }
.al-licao .estado { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; border: 2px solid var(--al-line-2); color: var(--al-muted); }
.al-licao .estado.feita { background: var(--al-ok); border-color: var(--al-ok); color: #fff; }
.al-licao .estado.bloqueada { border-style: dashed; }
.al-licao .estado.atual { border-color: var(--al-primary); color: var(--al-primary); }
.al-licao .texto { flex: 1; min-width: 0; }
.al-licao .texto strong { display: block; font-size: 0.87rem; font-weight: 600; }
.al-licao .texto span { font-size: 0.74rem; color: var(--al-muted); display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.1rem; }

.al-materiais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.al-materiais li > a, .al-materiais li > div { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--al-line); text-decoration: none; color: var(--al-ink); }
.al-materiais li:first-child > a, .al-materiais li:first-child > div { border-top: 0; }
.al-materiais .tipo { width: 36px; height: 36px; border-radius: 10px; background: var(--al-primary-bg); color: var(--al-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-materiais li > a > div { flex: 1; min-width: 0; }
.al-materiais strong { display: block; font-size: 0.87rem; }
.al-materiais span { font-size: 0.75rem; color: var(--al-muted); }
.al-materiais li > a:hover strong { color: var(--al-primary); }

.al-estrelas-entrada { display: flex; gap: 0.2rem; }
.al-estrelas-entrada button { background: none; border: 0; font-size: 1.7rem; color: #d7dde7; cursor: pointer; padding: 0 0.1rem; transition: transform 0.1s, color 0.1s; }
.al-estrelas-entrada button.acesa { color: var(--al-accent-2); }
.al-estrelas-entrada button:hover { transform: scale(1.12); }
.al-parabens { background: linear-gradient(135deg, #fff7e6, #fffbeb); border: 1px solid #fde68a; border-radius: var(--al-raio); padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.al-parabens .medalha { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--al-accent), var(--al-accent-2)); color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35); }
.al-parabens > div { flex: 1; min-width: 180px; }
.al-parabens strong { display: block; font-size: 1rem; }

/* ── Conteúdo HTML das lições ────────────────────────────────────────────── */

.al-conteudo { font-size: 1rem; line-height: 1.78; color: #1e293b; overflow-wrap: anywhere; }
.al-conteudo > :first-child { margin-top: 0; }
.al-conteudo h1, .al-conteudo h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 0.7rem; letter-spacing: -0.015em; color: var(--al-ink); line-height: 1.3; }
.al-conteudo h3 { font-size: 1.12rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--al-ink); }
.al-conteudo h4 { font-size: 1rem; font-weight: 700; margin: 1.2rem 0 0.4rem; }
.al-conteudo strong, .al-conteudo b { font-weight: 700; }
.al-conteudo ul { list-style: disc; }
.al-conteudo ol { list-style: decimal; }
.al-conteudo li > p { margin: 0; }
.al-conteudo p { margin: 0 0 1rem; }
.al-conteudo ul, .al-conteudo ol { margin: 0 0 1.1rem; padding-left: 1.5rem; }
.al-conteudo li { margin-bottom: 0.35rem; }
.al-conteudo blockquote { margin: 1.2rem 0; padding: 0.85rem 1.1rem; background: var(--al-primary-bg); border-left: 4px solid var(--al-primary); border-radius: 0 12px 12px 0; color: #1e3a8a; }
.al-conteudo blockquote p:last-child { margin-bottom: 0; }
.al-conteudo table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.al-conteudo th, .al-conteudo td { border: 1px solid var(--al-line); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.al-conteudo th { background: var(--al-surface-2); }
.al-conteudo img { max-width: 100%; height: auto; border-radius: 12px; }
.al-conteudo iframe { max-width: 100%; border-radius: 12px; border: 0; }
.al-conteudo a { color: var(--al-primary); font-weight: 600; }
.al-conteudo code { background: var(--al-surface-2); border: 1px solid var(--al-line); border-radius: 6px; padding: 0.05rem 0.35rem; font-size: 0.88em; }
.al-conteudo pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 12px; overflow-x: auto; }
.al-conteudo pre code { background: none; border: 0; color: inherit; }
.al-conteudo mark { background: #fef08a; padding: 0 0.15rem; border-radius: 3px; }
.al-conteudo ul[data-type="taskList"] { list-style: none; padding-left: 0.2rem; }
.al-conteudo ul[data-type="taskList"] li { display: flex; gap: 0.5rem; }

/* ── Player da lição ─────────────────────────────────────────────────────── */

.al-player { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 64px); flex: 1; }
.al-trilha { background: var(--al-surface); border-right: 1px solid var(--al-line); position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column; }
.al-trilha-fundo { display: none; }
.al-trilha-topo { padding: 1.1rem; border-bottom: 1px solid var(--al-line); display: flex; flex-direction: column; gap: 0.65rem; }
.al-trilha-topo strong { font-size: 0.93rem; line-height: 1.35; }
.al-trilha .al-aula { border: 0; border-radius: 0; border-bottom: 1px solid var(--al-line); }
.al-trilha .al-aula > button { background: var(--al-surface); padding: 0.8rem 1.1rem; }
.al-trilha .al-licao { padding: 0.6rem 1.1rem 0.6rem 1.3rem; }
.al-trilha .al-licao.atual { background: var(--al-primary-bg); box-shadow: inset 3px 0 0 var(--al-primary); }
.al-palco { min-width: 0; display: flex; flex-direction: column; }
.al-palco-dentro { width: 100%; max-width: 920px; margin: 0 auto; padding: 1.6rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.35rem; animation: al-entra 0.25s ease both; }
.al-licao-cabecalho small { font-size: 0.76rem; font-weight: 700; color: var(--al-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.al-licao-cabecalho h1 { margin: 0.3rem 0 0.6rem; font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.al-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #020617; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(2, 6, 23, 0.25); }
.al-video > div, .al-video iframe, .al-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.al-pdf { width: 100%; height: 78vh; border: 1px solid var(--al-line); border-radius: 14px; background: #fff; }
.al-arquivo-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.al-arquivo-card .icone { width: 54px; height: 54px; border-radius: 14px; background: var(--al-primary-bg); color: var(--al-primary); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-arquivo-card > div { flex: 1; min-width: 180px; }
.al-arquivo-card strong { display: block; font-size: 0.95rem; word-break: break-word; }
.al-arquivo-card span { font-size: 0.8rem; color: var(--al-muted); }
.al-barra-acao {
  position: sticky; bottom: 0; background: rgba(243, 246, 251, 0.94); backdrop-filter: blur(8px); border-top: 1px solid var(--al-line);
  padding: 0.8rem 1.5rem; display: flex; align-items: center; gap: 0.7rem; justify-content: space-between; z-index: 5; margin-top: auto;
}
.al-barra-acao .centro { display: flex; gap: 0.6rem; align-items: center; }
.al-abas { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--al-line); overflow-x: auto; scrollbar-width: none; }
.al-abas button {
  border: 0; background: none; padding: 0.75rem 1rem; font-family: inherit; font-size: 0.87rem; font-weight: 600; color: var(--al-ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem;
}
.al-abas button.ativa { color: var(--al-primary); border-bottom-color: var(--al-primary); }
.al-abas .contador { font-size: 0.68rem; background: var(--al-surface-2); border: 1px solid var(--al-line); border-radius: 999px; padding: 0 0.45rem; }
.al-resumo { display: flex; flex-direction: column; gap: 0.85rem; }
.al-resumo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.al-resumo li { display: flex; gap: 0.6rem; font-size: 0.93rem; line-height: 1.55; }
.al-resumo li i { color: var(--al-accent-2); margin-top: 0.3rem; font-size: 0.7rem; }
.al-transcricao { white-space: pre-wrap; font-size: 0.92rem; line-height: 1.75; color: var(--al-ink-2); max-height: 440px; overflow-y: auto; }
.al-notas textarea { min-height: 220px; font-size: 0.95rem; }
.al-duvida { border: 1px solid var(--al-line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--al-surface); }
.al-duvida .pergunta { font-size: 0.93rem; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.al-duvida .resposta { background: var(--al-ok-bg); border: 1px solid #a7f3d0; border-radius: 12px; padding: 0.8rem 0.95rem; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }
.al-duvida .resposta strong { display: block; font-size: 0.78rem; color: var(--al-ok); margin-bottom: 0.25rem; white-space: normal; }
.al-duvida.nova { border-color: var(--al-accent-2); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

/* ── Avaliação ───────────────────────────────────────────────────────────── */

.al-quiz { display: flex; flex-direction: column; gap: 1rem; }
.al-questao { background: var(--al-surface); border: 1px solid var(--al-line); border-radius: 16px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.al-questao.certa { border-color: #86efac; }
.al-questao.errada { border-color: #fca5a5; }
.al-questao.parcial { border-color: #fcd34d; }
.al-questao-topo { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.74rem; font-weight: 700; color: var(--al-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.al-questao .enunciado { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.55; white-space: pre-wrap; }
.al-opcoes { display: flex; flex-direction: column; gap: 0.5rem; }
.al-opcao {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.9rem; border: 1.5px solid var(--al-line); border-radius: 12px;
  cursor: pointer; transition: border-color 0.12s, background 0.12s; background: var(--al-surface); font-size: 0.93rem; line-height: 1.5; position: relative;
}
.al-opcao:hover { border-color: var(--al-line-2); }
.al-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.al-opcao .marca {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--al-line-2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.72rem; font-weight: 800; color: var(--al-ink-2); background: var(--al-surface);
}
.al-opcao.multipla .marca { border-radius: 7px; }
.al-opcao.escolhida { border-color: var(--al-primary); background: var(--al-primary-bg); }
.al-opcao.escolhida .marca { background: var(--al-primary); border-color: var(--al-primary); color: #fff; }
.al-opcao.correta { border-color: var(--al-ok); background: var(--al-ok-bg); }
.al-opcao.correta .marca { background: var(--al-ok); border-color: var(--al-ok); color: #fff; }
.al-opcao.incorreta { border-color: var(--al-bad); background: var(--al-bad-bg); }
.al-opcao.incorreta .marca { background: var(--al-bad); border-color: var(--al-bad); color: #fff; }
.al-opcao.travada { cursor: default; }
.al-opcao input:focus-visible + .marca { box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.3); }
.al-feedback { font-size: 0.88rem; line-height: 1.55; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--al-surface-2); border: 1px solid var(--al-line); white-space: pre-wrap; }
.al-feedback strong { display: block; font-size: 0.76rem; margin-bottom: 0.2rem; white-space: normal; }
.al-resultado { display: flex; align-items: center; gap: 1.4rem; }
.al-resultado.aprovado { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border-color: #a7f3d0; }
.al-resultado.reprovado { background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: #fde68a; }
.al-resultado h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.al-resultado > div { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Phobinho Tutor ────────────────────────────────────────────────────────────── */

.al-tutor-botao {
  position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 40; border: 0; border-radius: 999px; padding: 0.55rem 1.15rem 0.55rem 0.55rem;
  font-family: inherit; font-size: 0.9rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--al-ia), var(--al-ia-2));
  box-shadow: 0 12px 30px rgba(10, 78, 160, 0.38); display: flex; align-items: center; gap: 0.55rem; cursor: pointer; transition: transform 0.15s;
}
.al-tutor-botao:hover { transform: translateY(-2px); }
.al-tutor-botao img { width: 34px; height: 34px; border-radius: 50%; background: #fff; object-fit: cover; }
.al-tutor {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--al-surface); box-shadow: -18px 0 50px rgba(15, 23, 42, 0.22);
  z-index: 1000; display: flex; flex-direction: column; animation: al-desliza 0.22s ease both;
}
@keyframes al-desliza { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.al-tutor-topo { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--al-line); background: linear-gradient(135deg, #f4f8fe, #fff); }
.al-tutor-topo .icone { width: 40px; height: 40px; border-radius: 12px; background: var(--al-ia-bg); box-shadow: inset 0 0 0 1px var(--al-ia-linha); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.al-tutor-topo .icone img { width: 100%; height: 100%; object-fit: cover; }
.al-tutor-topo > div { flex: 1; min-width: 0; }
.al-tutor-topo strong { display: block; font-size: 0.95rem; }
.al-tutor-topo span { font-size: 0.74rem; color: var(--al-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-tutor-mensagens { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; background: var(--al-bg); }
.al-msg { max-width: 90%; font-size: 0.9rem; line-height: 1.6; border-radius: 16px; padding: 0.7rem 0.9rem; overflow-wrap: anywhere; }
.al-msg.user { align-self: flex-end; background: var(--al-primary); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.al-msg.assistant { align-self: flex-start; background: var(--al-surface); border: 1px solid var(--al-line); border-bottom-left-radius: 6px; }
.al-msg.assistant p { margin: 0 0 0.5rem; }
.al-msg.assistant p:last-child { margin-bottom: 0; }
.al-msg.assistant ul, .al-msg.assistant ol { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.al-msg.assistant ul { list-style: disc; }
.al-msg.assistant ol { list-style: decimal; }
.al-msg.assistant strong { font-weight: 700; }
.al-msg.assistant h1, .al-msg.assistant h2, .al-msg.assistant h3 { font-size: 0.95rem; font-weight: 700; margin: 0.4rem 0 0.3rem; }
.al-msg.assistant code { background: var(--al-surface-2); border-radius: 5px; padding: 0 0.3rem; font-size: 0.85em; }
.al-msg .acoes { margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px dashed var(--al-line); display: flex; gap: 0.4rem; }
.al-pontos { display: inline-flex; gap: 0.3rem; align-items: center; }
.al-pontos span { width: 7px; height: 7px; border-radius: 50%; background: var(--al-ia-2); display: inline-block; animation: al-pulo 1.2s infinite ease-in-out; }
.al-pontos span:nth-child(2) { animation-delay: 0.15s; }
.al-pontos span:nth-child(3) { animation-delay: 0.3s; }
@keyframes al-pulo { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }
.al-tutor-oi { display: flex; align-items: flex-end; gap: 0.6rem; }
.al-tutor-oi img { width: 78px; flex: none; filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.18)); }
.al-tutor-oi .al-msg { max-width: none; flex: 1; margin-bottom: 0.4rem; }
.al-sugestoes { display: flex; flex-direction: column; gap: 0.45rem; }
.al-sugestoes button { text-align: left; border: 1px solid var(--al-ia-linha); background: var(--al-surface); border-radius: 12px; padding: 0.62rem 0.8rem; font-family: inherit; font-size: 0.85rem; color: var(--al-ia); cursor: pointer; }
.al-sugestoes button:hover { background: var(--al-ia-bg); }
.al-tutor-entrada { border-top: 1px solid var(--al-line); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; background: var(--al-surface); }
.al-tutor-entrada .linha { display: flex; gap: 0.5rem; align-items: flex-end; }
.al-tutor-entrada textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 140px; border: 1px solid var(--al-line-2); border-radius: 12px; padding: 0.68rem 0.8rem;
  font-family: inherit; font-size: 0.9rem; line-height: 1.45;
}
.al-tutor-entrada textarea:focus { outline: none; border-color: var(--al-ia); box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.14); }
.al-tutor-entrada .rodape { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--al-muted); }

/* ── Modal e celebração ──────────────────────────────────────────────────── */

.al-modal-fundo {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); z-index: 1100; display: flex;
  align-items: center; justify-content: center; padding: 1rem; animation: al-entra 0.15s ease both;
}
.al-modal { background: var(--al-surface); border-radius: 20px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.al-modal h3 { margin: 0; font-size: 1.15rem; }
.al-modal .rodape { display: flex; justify-content: flex-end; gap: 0.55rem; flex-wrap: wrap; }
.al-celebra { text-align: center; align-items: center; padding: 2.2rem 1.75rem; overflow: hidden; }
.al-celebra .medalha {
  width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--al-accent), var(--al-accent-2)); color: #fff; font-size: 2.3rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(217, 119, 6, 0.4); animation: al-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes al-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.al-confete { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; animation-name: al-cai; animation-timing-function: linear; animation-fill-mode: forwards; opacity: 0.9; pointer-events: none; }
@keyframes al-cai { to { transform: translateY(560px) rotate(560deg); opacity: 0; } }

/* ── Certificados e validação ────────────────────────────────────────────── */

.al-certificado { display: flex; gap: 1.1rem; align-items: center; }
.al-certificado .selo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--al-accent), var(--al-accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; }
.al-certificado .selo.neutro { background: var(--al-surface-2); color: var(--al-muted); border: 1px solid var(--al-line); }
.al-certificado > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.al-certificado h3 { margin: 0; }
.al-codigo { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; letter-spacing: 0.03em; background: var(--al-surface-2); border: 1px solid var(--al-line); border-radius: 8px; padding: 0.15rem 0.5rem; }
.al-validar { align-items: center; padding: 3rem 1rem; gap: 1.5rem; }
.al-validar > .al-cartao { width: 100%; max-width: 640px; padding: 2rem; }
.al-validado { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.al-validado .icone { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.al-validado .icone.ok { background: var(--al-ok-bg); color: var(--al-ok); }
.al-validado .icone.bad { background: var(--al-bad-bg); color: var(--al-bad); }
.al-validado h2 { margin: 0; font-size: 1.4rem; }
.al-dados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.2rem; width: 100%; text-align: left; margin: 0.6rem 0; padding: 1rem 1.1rem; background: var(--al-surface-2); border-radius: 14px; border: 1px solid var(--al-line); }
.al-dados div span { display: block; font-size: 0.7rem; color: var(--al-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.15rem; }
.al-dados div strong { font-size: 0.95rem; }

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .al-curso-grade { grid-template-columns: 1fr; }
  .al-lateral { position: static; }
  .al-hero { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .al-player { grid-template-columns: minmax(0, 1fr); }
  .al-trilha {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(340px, 88vw); z-index: 80;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.25); transform: translateX(-105%); transition: transform 0.22s ease;
  }
  .al-trilha.aberta { transform: none; }
  .al-trilha-fundo { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 79; }
  .al-so-mobile { display: inline-flex !important; }
}

@media (max-width: 760px) {
  .al-topo-dentro { height: auto; flex-wrap: wrap; padding: 0.6rem 1rem; gap: 0.5rem 1rem; }
  .al-marca span { display: none; }
  .al-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.1rem; }
  .al-usuario .nome { display: none; }
  .al-main { padding: 1.1rem 0.9rem 2.5rem; }
  .al-hero { padding: 1.35rem; border-radius: 18px; }
  .al-hero h1 { font-size: 1.4rem; }
  .al-continuar { grid-template-columns: 1fr; }
  .al-continuar .al-capa { min-height: 150px; aspect-ratio: 16 / 7; }
  .al-curso-hero .dentro { padding: 1.4rem; }
  .al-palco-dentro { padding: 1.1rem 0.9rem 1.5rem; }
  .al-barra-acao { padding: 0.6rem 0.9rem; }
  .al-barra-acao .rotulo { display: none; }
  .al-tutor-botao span { display: none; }
  .al-tutor-botao { padding: 0.45rem; bottom: 5rem; }
  .al-dados, .al-grade-2 { grid-template-columns: 1fr; }
  .al-resultado { flex-direction: column; text-align: center; }
  .al-certificado { flex-direction: column; align-items: flex-start; }
}

/* ── Link para a validação, na tela de entrada ───────────────────────────── */
.al-validar-link {
  display: inline-flex; align-items: center; gap: 0.45rem; align-self: center; margin-top: 0.3rem; padding: 0.45rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; color: var(--al-ink-2); text-decoration: none;
  border: 1px dashed var(--al-line-2); border-radius: 999px; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.al-validar-link:hover { color: var(--al-primary); border-color: var(--al-primary); background: var(--al-primary-bg); }

/* ── Validação pública de certificado (/certificado) ─────────────────────── */
.cv { background: var(--al-bg); }
.cv-topo {
  position: relative; overflow: hidden; color: #fff; padding: 1.1rem 1.25rem 5rem;
  background: radial-gradient(900px 380px at 12% -20%, rgba(30, 110, 207, 0.9) 0%, transparent 65%),
    linear-gradient(135deg, var(--al-primary) 0%, var(--al-deep) 100%);
}
.cv-topo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 13px);
}
.cv-topo-conteudo { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cv-marca img { height: 30px; display: block; }
.cv-selo-topo {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); padding: 0.35rem 0.75rem; border-radius: 999px;
}
.cv-hero { position: relative; z-index: 1; max-width: 760px; margin: 2.2rem auto 0; text-align: center; }
.cv-hero h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.05; margin: 0 0 0.6rem; letter-spacing: 0.01em;
}
.cv-hero p { margin: 0 auto 1.5rem; max-width: 590px; color: #d7e6fa; line-height: 1.6; }
.cv-busca {
  display: flex; align-items: center; gap: 0.6rem; max-width: 560px; margin: 0 auto; padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 20, 60, 0.3);
}
.cv-busca > i { color: var(--al-muted); }
.cv-busca input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0.55rem 0; color: var(--al-ink);
  font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.cv-busca input::placeholder { color: #a9b4c5; }
.cv-main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 980px; margin: -3.5rem auto 0; padding: 0 1.25rem 2.5rem; }
.cv-cartao { background: var(--al-surface); border: 1px solid var(--al-line); border-radius: 20px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08); padding: 1.6rem; }
.cv-carregando { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--al-ink-2); padding: 3rem; }
.cv-status { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--al-line); }
.cv-status.sem-borda { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.cv-status-icone { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem; }
.cv-status.ok .cv-status-icone { background: var(--al-ok-bg); color: var(--al-ok); box-shadow: 0 0 0 7px rgba(4, 120, 87, 0.07); }
.cv-status.bad .cv-status-icone { background: var(--al-bad-bg); color: var(--al-bad); box-shadow: 0 0 0 7px rgba(185, 28, 28, 0.06); }
.cv-status h2 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.cv-status.ok h2 { color: var(--al-ok); }
.cv-status.bad h2 { color: var(--al-bad); }
.cv-status p { margin: 0; color: var(--al-ink-2); line-height: 1.5; font-size: 0.92rem; }
.cv-grade { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.cv-dados { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem 1.2rem; }
.cv-dados .largo { grid-column: 1 / -1; }
.cv-dados dt { font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--al-muted); margin-bottom: 0.2rem; }
.cv-dados dd { margin: 0; font-weight: 700; color: var(--al-ink); line-height: 1.35; }
.cv-dados dd.destaque { font-size: 1.15rem; }
.cv-dados dd small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--al-ink-2); }
.cv-codigo { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.cv-acoes { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--al-line); }
.cv-motivos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cv-motivos li { display: flex; gap: 0.65rem; color: var(--al-ink-2); line-height: 1.5; }
.cv-motivos li i { width: 1rem; margin-top: 0.3rem; text-align: center; color: var(--al-muted); flex-shrink: 0; }
.cv-passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cv-passo { position: relative; background: var(--al-surface); border: 1px solid var(--al-line); border-radius: 18px; padding: 1.35rem; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07); }
.cv-passo .icone { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 0.85rem; background: var(--al-primary-bg); color: var(--al-primary); font-size: 1.2rem; }
.cv-passo .numero { position: absolute; top: 0.9rem; right: 1.1rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--al-line-2); }
.cv-passo strong { display: block; margin-bottom: 0.3rem; }
.cv-passo p { margin: 0; color: var(--al-ink-2); font-size: 0.9rem; line-height: 1.5; }
.cv-rodape { text-align: center; color: var(--al-muted); font-size: 0.8rem; padding: 1.2rem; }
.cv-rodape a { color: var(--al-primary); }

/* Miniatura do certificado: mesmas proporções e cores do PDF (A4 deitado). */
.cv-mini {
  position: relative; margin: 0; width: 100%; aspect-ratio: 297 / 210; overflow: hidden; container-type: inline-size;
  background: #fffdf8; border-radius: 6px; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
}
.cv-mini::before { content: ""; position: absolute; inset: 1.9%; border: 0.85cqw solid #0b2d5b; pointer-events: none; }
.cv-mini::after { content: ""; position: absolute; inset: 3.4%; border: 1px solid #b3862f; pointer-events: none; }
.cv-mini-papel { position: absolute; inset: 5%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #172236; padding-top: 1.4cqw; }
.cv-mini-logo { width: 14cqw; height: auto; }
.cv-mini-titulo { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 700; font-size: 7.4cqw; line-height: 1; color: #0b2d5b; margin-top: 1.3cqw; }
.cv-mini-sub { font-size: 1.15cqw; font-weight: 700; letter-spacing: 0.38em; color: #b3862f; margin-top: 1cqw; }
.cv-mini-que { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 2.3cqw; color: #5c6778; margin-top: 2.8cqw; }
.cv-mini-nome {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 5.2cqw; line-height: 1.12;
  max-width: 92%; margin-top: 0.5cqw; padding: 0 5cqw 1cqw; border-bottom: 1px solid #b3862f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-mini-texto {
  font-size: 1.7cqw; line-height: 1.45; color: #3a4556; margin-top: 1.8cqw; max-width: 80%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cv-mini-texto strong { color: #172236; }
.cv-mini-rodape { position: absolute; left: 5%; right: 5%; bottom: 4%; display: flex; align-items: center; justify-content: space-between; font-size: 1.35cqw; color: #5c6778; }
.cv-mini-rodape .cv-codigo { font-size: 1.2cqw; }
.cv-mini-selo {
  width: 8.5cqw; height: 8.5cqw; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 2.6cqw;
  background: radial-gradient(circle at 35% 35%, #f6e2a6, #d3a64a 55%, #9c6d1b);
  box-shadow: inset 0 0 0 0.45cqw #9c6d1b, inset 0 0 0 0.75cqw #fff4d6;
}

@media (max-width: 760px) {
  .cv-topo { padding-bottom: 4.5rem; }
  .cv-selo-topo { display: none; }
  .cv-hero { margin-top: 1.4rem; }
  .cv-grade, .cv-passos { grid-template-columns: 1fr; }
  .cv-cartao { padding: 1.2rem; }
  .cv-status { align-items: flex-start; }
  .cv-status-icone { width: 46px; height: 46px; font-size: 1.4rem; }
}

/* Cartão de "Meus certificados": as ações descem para uma linha própria. */
.al-certificado { flex-wrap: wrap; }
.al-certificado > div:nth-child(2) { flex: 1 1 320px; }
/* `.al-certificado > div` põe todo filho em coluna: o seletor precisa ser mais forte que ele. */
.al-certificado > .al-certificado-acoes {
  flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.4rem;
  margin-top: 0.2rem; padding-top: 0.85rem; border-top: 1px solid var(--al-line);
}
@media (max-width: 760px) {
  .al-certificado > .al-certificado-acoes { flex: 0 0 auto; width: 100%; justify-content: flex-start; }
}

@media print {
  .cv-topo, .cv-acoes, .cv-rodape { display: none; }
  .cv-main { margin-top: 0; }
  .cv-cartao { box-shadow: none; }
}
/* =============================================
   SPLASH SCREEN — PWA Phobos Intranet
   ============================================= */

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: opacity 0.7s ease;
}

.splash-screen--fade {
    opacity: 0;
    pointer-events: none;
}

/* Logo */
.splash-logo {
    margin-bottom: 8px;
    animation: splashFadeDown 0.6s ease both;
}

.splash-logo-img {
    height: 48px;
    object-fit: contain;
}

/* Mascote */
.splash-mascot {
    animation: splashPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.splash-mascot-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* Texto */
.splash-text {
    text-align: center;
    margin-top: 16px;
    animation: splashFadeUp 0.6s ease 0.5s both;
}

.splash-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0A4EA0;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
    font-family: 'Inter', 'SF Pro Display', system-ui, sans-serif;
}

.splash-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Loader */
.splash-loader {
    margin-top: 40px;
    width: 120px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    animation: splashFadeUp 0.6s ease 0.7s both;
}

.splash-loader__bar {
    height: 100%;
    background: linear-gradient(90deg, #0A4EA0, #5b9bd5);
    border-radius: 99px;
    animation: splashLoaderFill 2s ease forwards;
}

/* Animações */
@keyframes splashFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashPop {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashLoaderFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}.sa-page {
  --sa-blue: #0a4ea0;
  --sa-ink: #16304f;
  --sa-muted: #687b93;
  --sa-border: #e3ebf4;
  --sa-surface: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1800px;
  margin: 0 auto;
  color: var(--sa-ink);
  padding-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.sa-page *, .sa-page *::before, .sa-page *::after { box-sizing: border-box; }
.sa-page h1, .sa-page h2, .sa-page p { margin: 0; }
.sa-page button, .sa-page input, .sa-page select { font: inherit; }
.sa-page button, .sa-page select { cursor: pointer; }
.sa-page button:disabled, .sa-page select:disabled { cursor: not-allowed; opacity: .5; }
.sa-page button, .sa-page a, .sa-page input, .sa-page select { -webkit-tap-highlight-color: transparent; }
.sa-page :focus-visible { outline: 3px solid #38a4f5; outline-offset: 3px; }
.sa-page svg { flex-shrink: 0; }

.sa-hero { position: relative; display: flex; align-items: center; gap: 28px; min-height: 224px; padding: 34px 36px; border-radius: 18px; background: linear-gradient(112deg, #052c63 0%, #0a4ea0 64%, #1264b6 100%); color: #fff; isolation: isolate; overflow: hidden; }
.sa-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; opacity: .055; z-index: -1; }
.sa-hero-content { position: relative; z-index: 1; }
.sa-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.sa-hero .sa-eyebrow { color: #b9d9ff; }
.sa-eyebrow > span:not(.sa-brand-mark) { opacity: .5; }
.sa-brand-mark { width: 23px; height: 23px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sa-hero .sa-brand-mark { filter: brightness(0) invert(1); }
.sa-hero h1 { font-size: clamp(27px, 2.8vw, 40px); font-weight: 720; line-height: 1.15; letter-spacing: -1.5px; color: #fff; margin-top: 15px; }
.sa-hero p { color: #c4dcf9; margin-top: 9px; font-size: 13px; }
.sa-hero-chips { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 22px; }
.sa-hero-chips > span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #d3e6ff; }
.sa-hero-actions { position: relative; z-index: 2; display: flex; gap: 8px; align-self: flex-end; margin-left: auto; flex-shrink: 0; }
.sa-hero-art { position: absolute; height: 220px; width: 330px; right: 180px; top: -16px; opacity: .6; pointer-events: none; z-index: -1; }
.sa-orbit { position: absolute; border: 1px solid #ffffff24; border-radius: 50%; transform: rotate(-25deg); }
.sa-orbit-one { width: 350px; height: 180px; top: 30px; left: -5px; }
.sa-orbit-two { width: 310px; height: 310px; top: -30px; left: 30px; }
.sa-art-chart { position: absolute; display: flex; align-items: flex-end; gap: 10px; height: 132px; width: 192px; top: 55px; left: 70px; padding: 0 10px; border-bottom: 1px solid #ffffff35; transform: rotate(-7deg); }
.sa-art-chart span { flex: 1; height: 25%; background: linear-gradient(0deg, #8ce4f033, #aee9ffb0); border-radius: 6px 6px 0 0; }
.sa-art-chart span:nth-child(2) { height: 40%; }
.sa-art-chart span:nth-child(3) { height: 32%; }
.sa-art-chart span:nth-child(4) { height: 57%; }
.sa-art-chart span:nth-child(5) { height: 48%; }
.sa-art-chart span:nth-child(6) { height: 74%; }
.sa-art-chart span:nth-child(7) { height: 91%; }
.sa-art-floating { position: absolute; width: 45px; height: 45px; border: 1px solid #cbe9ff40; background: #458bd433; border-radius: 13px; display: grid; place-items: center; left: 250px; top: 35px; transform: rotate(10deg); }

.sa-button, .sa-icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 8px 13px; border: 1px solid var(--sa-border); border-radius: 8px; background: #fff; color: var(--sa-blue); text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.35; transition: background .15s, border-color .15s, transform .15s; }
.sa-button:hover:not(:disabled), .sa-icon-button:hover:not(:disabled) { background: #f1f7ff; border-color: #b8d0ee; }
.sa-button--primary { color: #fff; background: var(--sa-blue); border-color: var(--sa-blue); }
.sa-button--primary:hover:not(:disabled) { color: #fff; background: #093e7e; border-color: #093e7e; }
.sa-button--white { color: #084591; border-color: #fff; }
.sa-button--ghost { color: #fff; border-color: #ffffff40; background: #ffffff0a; }
.sa-button--ghost:hover:not(:disabled) { color: #fff; background: #ffffff20; border-color: #ffffff80; }
.sa-icon-button { min-width: 34px; min-height: 34px; padding: 7px; }
.sa-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--sa-border); margin-top: -3px; overflow-x: auto; scrollbar-width: thin; }
.sa-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 14px; color: var(--sa-muted); white-space: nowrap; background: transparent; font-size: 12px; font-weight: 600; }
.sa-tabs button.active { color: var(--sa-blue); border-color: var(--sa-blue); }
.sa-tabs button:hover { color: var(--sa-blue); }
.sa-filters { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.sa-periods, .sa-segment { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--sa-border); border-radius: 9px; background: #eaf0f6; gap: 2px; }
.sa-periods button, .sa-segment button { display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; color: var(--sa-muted); font-weight: 600; background: transparent; padding: 7px 12px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.sa-periods button.active, .sa-segment button.active { background: #fff; color: var(--sa-blue); box-shadow: 0 1px 4px #15395c0d; }
.sa-date-label { font-size: 11px; color: var(--sa-muted); white-space: nowrap; }
.sa-filter-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.sa-page select, .sa-search, .sa-custom-range input { max-width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--sa-border); border-radius: 8px; background-color: var(--sa-surface); color: var(--sa-ink); font-size: 11px; }
.sa-filter-selects select { max-width: 195px; }
.sa-search { width: 210px; }
.sa-search::placeholder { color: #91a0b2; }
.sa-custom-range { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; width: 100%; padding: 14px; background: #fff; border: 1px solid var(--sa-border); border-radius: 10px; }
.sa-custom-range label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.sa-custom-range > span { align-self: center; color: #b53b43; font-size: 11px; }

.sa-stats-grid, .sa-grid-two, .sa-grid-three, .sa-audience-grid, .sa-behavior-grid, .sa-settings-grid { display: grid; gap: 18px; min-width: 0; }
.sa-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-audience-grid { grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1fr); }
.sa-behavior-grid, .sa-settings-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.sa-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sa-card, .sa-stat { border: 1px solid var(--sa-border); border-radius: 12px; background: var(--sa-surface); min-width: 0; box-shadow: 0 2px 3px #12355002; }
.sa-card { padding: 22px; }
.sa-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.sa-card-heading > div { min-width: 0; }
.sa-card h2 { color: var(--sa-ink); font-size: 13px; font-weight: 700; letter-spacing: -.2px; line-height: 1.4; }
.sa-card-heading p { color: var(--sa-muted); font-size: 10px; margin-top: 5px; }
.sa-stat { padding: 20px; }
.sa-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sa-stat-top > span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--sa-muted); }
.sa-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--sa-blue); background: #edf5ff; }
.sa-stat:nth-child(2) .sa-stat-icon { color: #078d9b; background: #e7f8f9; }
.sa-stat:nth-child(3) .sa-stat-icon { color: #7862bd; background: #f2effb; }
.sa-stat:nth-child(4) .sa-stat-icon { color: #bc8830; background: #fcf6e9; }
.sa-stat > strong { display: block; font-size: clamp(25px, 2.6vw, 34px); font-weight: 700; line-height: 1.25; margin: 12px 0 13px; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.sa-delta { display: flex; align-items: center; flex-wrap: wrap; column-gap: 3px; font-size: 9px; font-weight: 600; }
.sa-delta > span { color: #8a98aa; font-weight: 400; margin-left: 3px; }
.sa-delta--up { color: #14836a; }
.sa-delta--down { color: #bb6170; }
.sa-delta--neutral { color: #8a98aa; font-weight: 400; }
.sa-help { position: relative; display: inline-flex; cursor: help; color: #9aa9ba; }
.sa-help > span { position: absolute; display: none; left: -100px; top: 24px; width: 230px; z-index: 5; padding: 11px 13px; border-radius: 8px; background: #17314f; color: #fff; font-size: 11px; box-shadow: 0 4px 15px #001b4030; }
.sa-help:hover > span, .sa-help:focus > span { display: block; }
.sa-chart { height: 255px; margin: 0 -2px; }
.sa-chart-legend { display: flex; gap: 13px; font-size: 9px; color: var(--sa-muted); white-space: nowrap; }
.sa-chart-legend span { display: flex; align-items: center; gap: 5px; }
.sa-chart-legend i { height: 6px; width: 6px; background: #176ad0; border-radius: 50%; }
.sa-chart-legend span + span i { background: #26b8bf; }
.sa-chart-footer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #edf1f7; margin-top: 22px; padding-top: 18px; }
.sa-chart-footer > div { display: flex; flex-direction: column; gap: 3px; }
.sa-chart-footer span { font-size: 9px; color: var(--sa-muted); }
.sa-chart-footer strong { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }

.sa-realtime { color: #fff; background: linear-gradient(145deg, #062d61, #0b458b); border-color: #0b458b; }
.sa-realtime h2 { color: #fff; }
.sa-realtime .sa-card-heading p { color: #9fc4ee; }
.sa-live-dot { display: inline-block; height: 7px; width: 7px; background: #63dab3; border-radius: 50%; box-shadow: 0 0 0 4px #6ce9b514; flex-shrink: 0; }
.sa-live-dot.off { background: #f4bc68; box-shadow: 0 0 0 4px #eeb96714; }
.sa-realtime .sa-live-dot { margin-top: 7px; }
.sa-live-number { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.sa-live-number strong { font-size: 52px; font-weight: 650; line-height: 1.1; letter-spacing: -2px; }
.sa-live-number > span { font-size: 11px; color: #a9c7e9; }
.sa-live-spark { display: flex; gap: 3px; align-items: flex-end; height: 62px; margin-top: 27px; }
.sa-live-spark > span { display: block; flex: 1; background: #77d2f2; min-width: 1px; border-radius: 2px 2px 0 0; }
.sa-live-time { display: flex; justify-content: space-between; margin-top: 7px; color: #8fb6e2; font-size: 9px; }
.sa-live-pages { margin-top: 19px; padding-top: 15px; border-top: 1px solid #ffffff18; }
.sa-live-pages > div { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; padding: 5px 0; }
.sa-live-pages > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-live-pages p { font-size: 10px; color: #9fc4ee; }
.sa-live-refresh { display: flex; gap: 5px; align-items: center; color: #87b2e0; font-size: 9px; margin-top: 17px !important; }
.sa-breakdown { display: flex; flex-direction: column; gap: 19px; }
.sa-breakdown-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 11px; }
.sa-breakdown-label > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-breakdown-label > span:last-child { flex-shrink: 0; }
.sa-breakdown-label strong { font-weight: 600; }
.sa-breakdown-label small { font-size: 9px; color: #8a98aa; }
.sa-track { height: 5px; background: #edf2f8; border-radius: 4px; overflow: hidden; }
.sa-track > div { height: 100%; background: #347acb; border-radius: inherit; max-width: 100%; }
.sa-breakdown--cyan .sa-track > div { background: #27abb8; }
.sa-table-wrap { overflow-x: auto; width: 100%; }
.sa-table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
.sa-table th { padding: 10px 14px; color: #8291a5; font-size: 9px; font-weight: 500; border-bottom: 1px solid var(--sa-border); white-space: nowrap; }
.sa-table th:first-child, .sa-table td:first-child { padding-left: 0; }
.sa-table th:last-child, .sa-table td:last-child { padding-right: 0; }
.sa-table td { padding: 14px; color: #405773; border-bottom: 1px solid #eef2f7; font-variant-numeric: tabular-nums; }
.sa-table tbody tr:last-child td { border-bottom: 0; }
.sa-table tbody tr:hover { background: #f8fbff; }
.sa-table td:first-child { min-width: 180px; max-width: 330px; }
.sa-table td > strong { font-weight: 600; display: block; color: var(--sa-ink); overflow-wrap: anywhere; }
.sa-table td > small { font-size: 9px; color: #91a0b2; display: block; margin-top: 3px; overflow-wrap: anywhere; }
.sa-cell-progress { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sa-cell-progress > span { display: block; width: 42px; height: 4px; background: #ecf2f9; border-radius: 5px; overflow: hidden; }
.sa-cell-progress i { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: #27abb8; }

.sa-welcome, .sa-notice, .sa-error { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid #dce9f8; background: #edf5ff; border-radius: 10px; }
.sa-welcome { padding: 19px 21px; }
.sa-welcome-icon, .sa-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #3678c2; background: #dcecff; flex-shrink: 0; }
.sa-welcome > div:nth-child(2) { flex: 1; }
.sa-welcome strong { font-size: 12px; font-weight: 650; }
.sa-welcome p { font-size: 10px; color: #6f88a5; margin-top: 4px; line-height: 1.6; max-width: 88ch; }
.sa-welcome .sa-button { flex-shrink: 0; background: transparent; }
.sa-notice { font-size: 11px; align-items: flex-start; background: #fff9ee; color: #85622a; border-color: #f0e1c6; line-height: 1.7; }
.sa-notice > svg { margin-top: 2px; }
.sa-notice a { color: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.sa-notice--blue { background: #edf5ff; color: #53759b; border-color: #dce9f8; }
.sa-error { background: #fff1f2; color: #a44853; border-color: #f4d2d7; }
.sa-error > div { flex: 1; }
.sa-error strong { font-size: 12px; }
.sa-error p { font-size: 11px; margin-top: 3px; }
.sa-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 255px; padding: 35px 22px; color: var(--sa-muted); }
.sa-empty--compact { min-height: 195px; padding: 25px 12px; }
.sa-empty-icon { background: #eff5fc; color: #80a9d8; }
.sa-empty strong { color: #557191; font-weight: 600; font-size: 12px; }
.sa-empty p { font-size: 11px; max-width: 52ch; color: #8a9bb0; line-height: 1.7; }
.sa-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 140px; color: #6f88a5; }
.sa-loading--large { min-height: 350px; flex-direction: column; }
.sa-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: #eef5fd; color: #5782b4; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.sa-footnote { font-size: 10px; color: #8596aa; line-height: 1.7; margin-top: 15px !important; }
.sa-note-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; color: #487aa9; background: linear-gradient(130deg, #e9f4fb, #e9eefb); border: 1px solid #d9e6f5; border-radius: 12px; }
.sa-note-card strong { color: #285681; font-size: 13px; }
.sa-note-card p, .sa-note-card li { font-size: 11px; line-height: 1.8; }
.sa-note-card ul { padding-left: 16px; margin: 0; }

.sa-heatmap-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-select-label { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; font-size: 10px; color: var(--sa-muted); }
.sa-heatmap-meta { display: flex; justify-content: space-between; gap: 10px; color: #8a9ab0; font-size: 9px; margin: 14px 0 10px; }
.sa-preview-viewport { position: relative; width: 100%; border: 1px solid #dce5f0; border-radius: 8px; overflow: hidden; background: #e7edf4; }
.sa-preview-scroll { width: 100%; max-height: 680px; overflow: auto; overscroll-behavior: contain; }
.sa-preview-stage { transform-origin: top left; position: absolute; inset: 0 auto auto 0; overflow: hidden; background: #fff; }
.sa-preview-stage iframe { display: block; border: 0; pointer-events: none; user-select: none; }
.sa-heatmap-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sa-heat-spot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at center, #ff2800 0%, #ff6200cc 18%, #ffe50099 38%, #63dd4880 56%, #21a0ff50 71%, #1675ff00 85%); mix-blend-mode: multiply; }
.sa-scroll-overlay { position: absolute; left: 0; right: 0; border-top: 2px solid #ffffffa6; }
.sa-scroll-overlay span { display: inline-block; padding: 8px 16px; margin: 6px; border-radius: 6px; background: #102a49e6; color: #fff; font-weight: 600; font-size: 18px; }
.sa-preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #edf3faf5; color: #597b9e; }
.sa-heat-legend { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: #91a0b2; font-size: 9px; }
.sa-heat-legend i { display: block; height: 6px; width: 120px; border-radius: 4px; background: linear-gradient(90deg, #3f99e8, #58c18e, #ffdf5a, #fa7a43, #e94044); }
.sa-heatmap-card > .sa-notice { margin-top: 14px; }
.sa-scroll-bars { display: flex; flex-direction: column; gap: 19px; }
.sa-scroll-bars > div > div:first-child { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 7px; }
.sa-scroll-bars strong { font-weight: 600; }
.sa-targets { display: flex; flex-direction: column; gap: 13px; }
.sa-targets > div { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.sa-targets > div > span { color: #99aabe; width: 17px; }
.sa-targets code { font-size: 10px; color: #58769a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sa-targets strong { font-weight: 600; }
.sa-hour-grid { min-width: 480px; }
.sa-card:has(.sa-hour-grid) { overflow-x: auto; }
.sa-hour-labels, .sa-hour-row { display: grid; grid-template-columns: 32px repeat(24, minmax(8px, 1fr)); gap: 5px; margin-bottom: 5px; }
.sa-hour-labels > span, .sa-hour-row > span { font-size: 9px; color: #8a9aaf; align-self: center; }
.sa-hour-row > div { min-height: 18px; aspect-ratio: 1.9; border-radius: 3px; }

.sa-google-intro { display: flex; align-items: center; gap: 19px; padding: 27px; border: 1px solid var(--sa-border); border-radius: 13px; background: #fff; }
.sa-google-mark { display: grid; place-items: center; width: 62px; height: 62px; color: #ed9a16; background: #fff5df; border-radius: 17px; flex-shrink: 0; }
.sa-google-intro .sa-eyebrow { color: #ab8439; font-size: 9px; letter-spacing: 1.5px; }
.sa-google-intro h2 { color: var(--sa-ink); font-size: 19px; font-weight: 650; letter-spacing: -.4px; margin-top: 5px; }
.sa-google-intro p { font-size: 11px; color: var(--sa-muted); margin-top: 6px; }
.sa-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border-radius: 20px; padding: 6px 10px; color: #9e804c; background: #fbf5e9; white-space: nowrap; font-size: 9px; }
.sa-status i { display: block; height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
.sa-status--green { color: #258970; background: #e8f7f1; }
.sa-google-config { display: flex; flex-direction: column; gap: 18px; }
.sa-google-account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sa-google-account > div:nth-child(2) { flex: 1; min-width: 170px; }
.sa-google-account strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.sa-google-account p { font-size: 10px; color: var(--sa-muted); margin-top: 3px; }
.sa-round-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; color: #5487bd; background: #f0f6fd; }
.sa-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--sa-border); padding-top: 20px; }
.sa-form-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #70829a; }
.sa-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sa-checkbox { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; color: #6c7e94; }
.sa-checkbox input { width: 15px; height: 15px; accent-color: var(--sa-blue); }
.sa-ga-live { display: flex; align-items: center; gap: 10px; padding: 10px 0 23px; color: #179c98; }
.sa-ga-live strong { font-size: 39px; color: var(--sa-ink); line-height: 1; font-weight: 650; }
.sa-ga-live > span { color: var(--sa-muted); font-size: 10px; }
.sa-mini-metrics { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--sa-border); padding-top: 16px; }
.sa-mini-metrics > span { display: flex; justify-content: space-between; font-size: 10px; color: #7a8da6; }
.sa-mini-metrics strong { color: var(--sa-ink); font-weight: 600; }
.sa-setup { padding: 24px; border: 1px solid #d9e7f8; border-radius: 12px; background: #edf5ff; }
.sa-setup-heading { display: flex; align-items: flex-start; gap: 12px; color: #3b73b0; }
.sa-setup h2 { font-size: 14px; font-weight: 650; color: #234f80; }
.sa-setup p { font-size: 11px; color: #6987a9; margin-top: 4px; }
.sa-setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 22px 0; padding: 0; }
.sa-setup-steps li { display: flex; align-items: flex-start; gap: 10px; }
.sa-setup-steps li > span { display: grid; place-items: center; width: 25px; height: 25px; background: #d7e8fb; color: #4077b7; font-size: 10px; font-weight: 650; border-radius: 50%; flex-shrink: 0; }
.sa-setup-steps strong { font-size: 11px; color: #3b648e; }
.sa-setup-steps p { font-size: 10px; line-height: 1.65; }
.sa-settings-list { display: flex; flex-direction: column; }
.sa-setting { display: flex; align-items: center; gap: 14px; padding: 21px 0; border-bottom: 1px solid #edf2f8; }
.sa-setting:first-child { padding-top: 3px; }
.sa-setting:last-child { border-bottom: 0; padding-bottom: 3px; }
.sa-setting > div:nth-child(2) { flex: 1; }
.sa-setting strong { font-size: 12px; font-weight: 600; }
.sa-setting p { font-size: 10px; line-height: 1.7; color: #7b8ea6; margin-top: 4px; }
.sa-toggle { display: inline-flex; align-items: center; flex-shrink: 0; width: 36px; height: 21px; border: 0; background: #d5dfeb; border-radius: 20px; padding: 3px; }
.sa-toggle span { width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0000001a; transition: transform .15s; }
.sa-toggle.active { background: var(--sa-blue); }
.sa-toggle.active span { transform: translateX(15px); }
.sa-definitions { margin: 0; font-size: 11px; }
.sa-definitions dt { color: #486582; font-weight: 600; }
.sa-definitions dd { font-size: 10px; color: #8a9bb0; margin: 4px 0 16px; line-height: 1.7; }
.sa-definitions dd:last-child { margin-bottom: 0; }
.sa-page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e2eaf3; padding-top: 20px; margin-top: 1px; font-size: 9px; color: #8f9fb2; }
.sa-page-footer > span:first-child { display: flex; align-items: center; gap: 7px; color: #6482a5; font-weight: 700; letter-spacing: 1px; }
.sa-page-footer > span:first-child > span:last-child { letter-spacing: 0; font-weight: 400; border-left: 1px solid #d8e2ed; padding-left: 8px; margin-left: 2px; }
.sa-page-footer .sa-brand-mark { width: 17px; height: 17px; }
.sa-sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sa-spin { animation: sa-spin 1s linear infinite; }
@keyframes sa-spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) { .sa-page { gap: 24px; }.sa-card { padding: 25px; }.sa-chart { height: 285px; } }
@media (max-width: 1250px) {
  .sa-hero { padding: 28px; min-height: 230px; }
  .sa-hero-art { right: 70px; opacity: .4; }
  .sa-hero-actions { flex-direction: column; }
  .sa-filters { gap: 10px; }
  .sa-filter-selects { width: 100%; margin-left: 0; }
  .sa-filter-selects select { flex: 1; max-width: 260px; }
  .sa-card { padding: 19px; }
  .sa-stats-grid { gap: 12px; }
  .sa-stat { padding: 17px; }
  .sa-stat-top > span { font-size: 10px; }
  .sa-stat-icon { width: 28px; height: 28px; }
  .sa-stat-icon svg { width: 16px; }
  .sa-chart-legend { flex-direction: column; gap: 4px; }
  .sa-behavior-grid { grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); }
  .sa-google-intro { flex-wrap: wrap; }
  .sa-google-intro > div:nth-child(2) { flex: 1; }
  .sa-google-intro .sa-status { margin-left: 81px; }
}
@media (max-width: 1000px) {
  .sa-stats-grid, .sa-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-grid-three > :last-child { grid-column: 1 / -1; }
  .sa-audience-grid, .sa-behavior-grid, .sa-settings-grid { grid-template-columns: 1fr; }
  .sa-realtime { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .sa-realtime .sa-card-heading { grid-column: 1 / -1; margin-bottom: 5px; }
  .sa-live-number { grid-row: 2; grid-column: 1; }
  .sa-live-spark { grid-row: 2; grid-column: 2; margin-top: 10px; }
  .sa-live-time { grid-column: 2; }
  .sa-live-pages { grid-column: 1 / -1; margin-top: 10px; }
  .sa-live-refresh { grid-column: 1 / -1; }
  .sa-stat > strong { font-size: 30px; }
  .sa-chart-legend { flex-direction: row; gap: 12px; }
  .sa-welcome { flex-wrap: wrap; }
  .sa-welcome > div:nth-child(2) { min-width: 190px; }
  .sa-welcome .sa-button { margin-left: 54px; }
  .sa-setup-steps { gap: 16px; }
}
@media (max-width: 640px) {
  .sa-page { gap: 17px; }
  .sa-hero { display: block; padding: 25px 22px; border-radius: 13px; min-height: 260px; }
  .sa-hero h1 { font-size: 31px; }
  .sa-hero p { font-size: 11px; max-width: 28ch; }
  .sa-eyebrow { font-size: 8px; gap: 7px; letter-spacing: 1.4px; }
  .sa-hero-art { right: -65px; top: 50px; opacity: .2; }
  .sa-hero-chips { gap: 10px; margin-top: 18px; }
  .sa-hero-chips > span { font-size: 9px; }
  .sa-hero-actions { flex-direction: row; margin-top: 22px; }
  .sa-tabs { gap: 22px; margin-top: 0; }
  .sa-tabs button { font-size: 11px; gap: 6px; padding-bottom: 11px; }
  .sa-tabs svg { width: 14px; }
  .sa-periods { width: 100%; }
  .sa-periods button { flex: 1; padding: 7px 5px; font-size: 10px; }
  .sa-date-label { font-size: 10px; }
  .sa-filter-selects { flex-wrap: nowrap; gap: 6px; }
  .sa-filter-selects select { min-width: 0; width: 40%; padding: 7px 4px; font-size: 10px; }
  .sa-stats-grid { gap: 10px; }
  .sa-stat { padding: 14px; border-radius: 10px; }
  .sa-stat-top > span { font-size: 9px; gap: 4px; }
  .sa-stat-icon { width: 25px; height: 25px; border-radius: 7px; }
  .sa-stat-icon svg { width: 14px; }
  .sa-stat > strong { font-size: 25px; margin: 9px 0 11px; }
  .sa-delta { font-size: 8px; }
  .sa-delta > span { display: none; }
  .sa-help > span { left: -100px; width: 180px; }
  .sa-grid-two, .sa-grid-three { grid-template-columns: 1fr; }
  .sa-card { padding: 18px; }
  .sa-card-heading { gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
  .sa-card h2 { font-size: 12px; }
  .sa-card-heading p { font-size: 9px; }
  .sa-chart { height: 230px; }
  .sa-chart-legend { font-size: 8px; }
  .sa-chart-footer { grid-template-columns: repeat(2, 1fr); row-gap: 15px; }
  .sa-chart-footer strong { font-size: 17px; }
  .sa-welcome { padding: 16px; gap: 10px; }
  .sa-welcome-icon { height: 32px; width: 32px; border-radius: 9px; }
  .sa-welcome-icon svg { width: 19px; }
  .sa-welcome strong { font-size: 11px; }
  .sa-welcome .sa-button { margin-left: 42px; }
  .sa-welcome p { font-size: 9px; }
  .sa-search { width: 100%; }
  .sa-live-number strong { font-size: 45px; }
  .sa-live-number { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sa-live-spark { height: 65px; }
  .sa-realtime { column-gap: 18px; }
  .sa-live-time { font-size: 8px; }
  .sa-google-intro { padding: 19px; gap: 12px; }
  .sa-google-mark { width: 46px; height: 46px; border-radius: 12px; }
  .sa-google-mark svg { width: 26px; }
  .sa-google-intro h2 { font-size: 15px; }
  .sa-google-intro p { font-size: 10px; }
  .sa-google-intro .sa-status { margin-left: 58px; }
  .sa-form-grid { grid-template-columns: 1fr; }
  .sa-setup { padding: 20px; }
  .sa-setup-steps { grid-template-columns: 1fr; gap: 16px; }
  .sa-setting { gap: 10px; }
  .sa-setting .sa-round-icon { width: 30px; height: 30px; border-radius: 9px; }
  .sa-setting .sa-round-icon svg { width: 16px; }
  .sa-setting strong { font-size: 11px; }
  .sa-setting p { font-size: 9px; }
  .sa-heatmap-meta { flex-direction: column; gap: 4px; }
  .sa-preview-scroll { max-height: 520px; }
  .sa-page-footer { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 8px; }
  .sa-notice, .sa-error { padding: 13px; font-size: 10px; }
  .sa-error { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-page *, .sa-page *::before, .sa-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.ph-analytics-consent{position:fixed;z-index:10000;left:24px;bottom:24px;width:min(560px,calc(100vw - 48px));padding:22px 24px;border:1px solid #dce5ef;border-radius:16px;background:#fff;color:#172e4a;box-shadow:0 8px 40px #10274426;font-family:Inter,system-ui,sans-serif}.ph-analytics-consent strong{font-size:15px}.ph-analytics-consent p{margin:8px 0 18px;font-size:13px;line-height:1.65;color:#52637a}.ph-analytics-consent-actions{display:flex;justify-content:flex-end;gap:10px}.ph-analytics-consent button{border:1px solid #d8e2ec;border-radius:8px;padding:10px 15px;background:#fff;color:#344d68;font-size:12px;font-weight:650;cursor:pointer}.ph-analytics-consent button.ph-analytics-accept{background:#0a4ea0;border-color:#0a4ea0;color:#fff}.ph-analytics-privacy{position:fixed;bottom:10px;left:12px;z-index:90;background:#fff;border:1px solid #dbe3ec;color:#52637a;border-radius:6px;padding:5px 9px;font:11px Inter,system-ui,sans-serif;cursor:pointer}.ph-analytics-consent button:focus-visible,.ph-analytics-privacy:focus-visible{outline:3px solid #59a5ef;outline-offset:3px}@media(max-width:600px){.ph-analytics-consent{left:12px;bottom:12px;width:calc(100vw - 24px);padding:18px}.ph-analytics-consent-actions{justify-content:stretch}.ph-analytics-consent-actions button{flex:1}}
@layer theme, base, components, utilities;

@layer theme {
  @theme default {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;

    --color-red-50: oklch(97.1% 0.013 17.38);
    --color-red-100: oklch(93.6% 0.032 17.717);
    --color-red-200: oklch(88.5% 0.062 18.334);
    --color-red-300: oklch(80.8% 0.114 19.571);
    --color-red-400: oklch(70.4% 0.191 22.216);
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-600: oklch(57.7% 0.245 27.325);
    --color-red-700: oklch(50.5% 0.213 27.518);
    --color-red-800: oklch(44.4% 0.177 26.899);
    --color-red-900: oklch(39.6% 0.141 25.723);
    --color-red-950: oklch(25.8% 0.092 26.042);

    --color-orange-50: oklch(98% 0.016 73.684);
    --color-orange-100: oklch(95.4% 0.038 75.164);
    --color-orange-200: oklch(90.1% 0.076 70.697);
    --color-orange-300: oklch(83.7% 0.128 66.29);
    --color-orange-400: oklch(75% 0.183 55.934);
    --color-orange-500: oklch(70.5% 0.213 47.604);
    --color-orange-600: oklch(64.6% 0.222 41.116);
    --color-orange-700: oklch(55.3% 0.195 38.402);
    --color-orange-800: oklch(47% 0.157 37.304);
    --color-orange-900: oklch(40.8% 0.123 38.172);
    --color-orange-950: oklch(26.6% 0.079 36.259);

    --color-amber-50: oklch(98.7% 0.022 95.277);
    --color-amber-100: oklch(96.2% 0.059 95.617);
    --color-amber-200: oklch(92.4% 0.12 95.746);
    --color-amber-300: oklch(87.9% 0.169 91.605);
    --color-amber-400: oklch(82.8% 0.189 84.429);
    --color-amber-500: oklch(76.9% 0.188 70.08);
    --color-amber-600: oklch(66.6% 0.179 58.318);
    --color-amber-700: oklch(55.5% 0.163 48.998);
    --color-amber-800: oklch(47.3% 0.137 46.201);
    --color-amber-900: oklch(41.4% 0.112 45.904);
    --color-amber-950: oklch(27.9% 0.077 45.635);

    --color-yellow-50: oklch(98.7% 0.026 102.212);
    --color-yellow-100: oklch(97.3% 0.071 103.193);
    --color-yellow-200: oklch(94.5% 0.129 101.54);
    --color-yellow-300: oklch(90.5% 0.182 98.111);
    --color-yellow-400: oklch(85.2% 0.199 91.936);
    --color-yellow-500: oklch(79.5% 0.184 86.047);
    --color-yellow-600: oklch(68.1% 0.162 75.834);
    --color-yellow-700: oklch(55.4% 0.135 66.442);
    --color-yellow-800: oklch(47.6% 0.114 61.907);
    --color-yellow-900: oklch(42.1% 0.095 57.708);
    --color-yellow-950: oklch(28.6% 0.066 53.813);

    --color-lime-50: oklch(98.6% 0.031 120.757);
    --color-lime-100: oklch(96.7% 0.067 122.328);
    --color-lime-200: oklch(93.8% 0.127 124.321);
    --color-lime-300: oklch(89.7% 0.196 126.665);
    --color-lime-400: oklch(84.1% 0.238 128.85);
    --color-lime-500: oklch(76.8% 0.233 130.85);
    --color-lime-600: oklch(64.8% 0.2 131.684);
    --color-lime-700: oklch(53.2% 0.157 131.589);
    --color-lime-800: oklch(45.3% 0.124 130.933);
    --color-lime-900: oklch(40.5% 0.101 131.063);
    --color-lime-950: oklch(27.4% 0.072 132.109);

    --color-green-50: oklch(98.2% 0.018 155.826);
    --color-green-100: oklch(96.2% 0.044 156.743);
    --color-green-200: oklch(92.5% 0.084 155.995);
    --color-green-300: oklch(87.1% 0.15 154.449);
    --color-green-400: oklch(79.2% 0.209 151.711);
    --color-green-500: oklch(72.3% 0.219 149.579);
    --color-green-600: oklch(62.7% 0.194 149.214);
    --color-green-700: oklch(52.7% 0.154 150.069);
    --color-green-800: oklch(44.8% 0.119 151.328);
    --color-green-900: oklch(39.3% 0.095 152.535);
    --color-green-950: oklch(26.6% 0.065 152.934);

    --color-emerald-50: oklch(97.9% 0.021 166.113);
    --color-emerald-100: oklch(95% 0.052 163.051);
    --color-emerald-200: oklch(90.5% 0.093 164.15);
    --color-emerald-300: oklch(84.5% 0.143 164.978);
    --color-emerald-400: oklch(76.5% 0.177 163.223);
    --color-emerald-500: oklch(69.6% 0.17 162.48);
    --color-emerald-600: oklch(59.6% 0.145 163.225);
    --color-emerald-700: oklch(50.8% 0.118 165.612);
    --color-emerald-800: oklch(43.2% 0.095 166.913);
    --color-emerald-900: oklch(37.8% 0.077 168.94);
    --color-emerald-950: oklch(26.2% 0.051 172.552);

    --color-teal-50: oklch(98.4% 0.014 180.72);
    --color-teal-100: oklch(95.3% 0.051 180.801);
    --color-teal-200: oklch(91% 0.096 180.426);
    --color-teal-300: oklch(85.5% 0.138 181.071);
    --color-teal-400: oklch(77.7% 0.152 181.912);
    --color-teal-500: oklch(70.4% 0.14 182.503);
    --color-teal-600: oklch(60% 0.118 184.704);
    --color-teal-700: oklch(51.1% 0.096 186.391);
    --color-teal-800: oklch(43.7% 0.078 188.216);
    --color-teal-900: oklch(38.6% 0.063 188.416);
    --color-teal-950: oklch(27.7% 0.046 192.524);

    --color-cyan-50: oklch(98.4% 0.019 200.873);
    --color-cyan-100: oklch(95.6% 0.045 203.388);
    --color-cyan-200: oklch(91.7% 0.08 205.041);
    --color-cyan-300: oklch(86.5% 0.127 207.078);
    --color-cyan-400: oklch(78.9% 0.154 211.53);
    --color-cyan-500: oklch(71.5% 0.143 215.221);
    --color-cyan-600: oklch(60.9% 0.126 221.723);
    --color-cyan-700: oklch(52% 0.105 223.128);
    --color-cyan-800: oklch(45% 0.085 224.283);
    --color-cyan-900: oklch(39.8% 0.07 227.392);
    --color-cyan-950: oklch(30.2% 0.056 229.695);

    --color-sky-50: oklch(97.7% 0.013 236.62);
    --color-sky-100: oklch(95.1% 0.026 236.824);
    --color-sky-200: oklch(90.1% 0.058 230.902);
    --color-sky-300: oklch(82.8% 0.111 230.318);
    --color-sky-400: oklch(74.6% 0.16 232.661);
    --color-sky-500: oklch(68.5% 0.169 237.323);
    --color-sky-600: oklch(58.8% 0.158 241.966);
    --color-sky-700: oklch(50% 0.134 242.749);
    --color-sky-800: oklch(44.3% 0.11 240.79);
    --color-sky-900: oklch(39.1% 0.09 240.876);
    --color-sky-950: oklch(29.3% 0.066 243.157);

    --color-blue-50: oklch(97% 0.014 254.604);
    --color-blue-100: oklch(93.2% 0.032 255.585);
    --color-blue-200: oklch(88.2% 0.059 254.128);
    --color-blue-300: oklch(80.9% 0.105 251.813);
    --color-blue-400: oklch(70.7% 0.165 254.624);
    --color-blue-500: oklch(62.3% 0.214 259.815);
    --color-blue-600: oklch(54.6% 0.245 262.881);
    --color-blue-700: oklch(48.8% 0.243 264.376);
    --color-blue-800: oklch(42.4% 0.199 265.638);
    --color-blue-900: oklch(37.9% 0.146 265.522);
    --color-blue-950: oklch(28.2% 0.091 267.935);

    --color-indigo-50: oklch(96.2% 0.018 272.314);
    --color-indigo-100: oklch(93% 0.034 272.788);
    --color-indigo-200: oklch(87% 0.065 274.039);
    --color-indigo-300: oklch(78.5% 0.115 274.713);
    --color-indigo-400: oklch(67.3% 0.182 276.935);
    --color-indigo-500: oklch(58.5% 0.233 277.117);
    --color-indigo-600: oklch(51.1% 0.262 276.966);
    --color-indigo-700: oklch(45.7% 0.24 277.023);
    --color-indigo-800: oklch(39.8% 0.195 277.366);
    --color-indigo-900: oklch(35.9% 0.144 278.697);
    --color-indigo-950: oklch(25.7% 0.09 281.288);

    --color-violet-50: oklch(96.9% 0.016 293.756);
    --color-violet-100: oklch(94.3% 0.029 294.588);
    --color-violet-200: oklch(89.4% 0.057 293.283);
    --color-violet-300: oklch(81.1% 0.111 293.571);
    --color-violet-400: oklch(70.2% 0.183 293.541);
    --color-violet-500: oklch(60.6% 0.25 292.717);
    --color-violet-600: oklch(54.1% 0.281 293.009);
    --color-violet-700: oklch(49.1% 0.27 292.581);
    --color-violet-800: oklch(43.2% 0.232 292.759);
    --color-violet-900: oklch(38% 0.189 293.745);
    --color-violet-950: oklch(28.3% 0.141 291.089);

    --color-purple-50: oklch(97.7% 0.014 308.299);
    --color-purple-100: oklch(94.6% 0.033 307.174);
    --color-purple-200: oklch(90.2% 0.063 306.703);
    --color-purple-300: oklch(82.7% 0.119 306.383);
    --color-purple-400: oklch(71.4% 0.203 305.504);
    --color-purple-500: oklch(62.7% 0.265 303.9);
    --color-purple-600: oklch(55.8% 0.288 302.321);
    --color-purple-700: oklch(49.6% 0.265 301.924);
    --color-purple-800: oklch(43.8% 0.218 303.724);
    --color-purple-900: oklch(38.1% 0.176 304.987);
    --color-purple-950: oklch(29.1% 0.149 302.717);

    --color-fuchsia-50: oklch(97.7% 0.017 320.058);
    --color-fuchsia-100: oklch(95.2% 0.037 318.852);
    --color-fuchsia-200: oklch(90.3% 0.076 319.62);
    --color-fuchsia-300: oklch(83.3% 0.145 321.434);
    --color-fuchsia-400: oklch(74% 0.238 322.16);
    --color-fuchsia-500: oklch(66.7% 0.295 322.15);
    --color-fuchsia-600: oklch(59.1% 0.293 322.896);
    --color-fuchsia-700: oklch(51.8% 0.253 323.949);
    --color-fuchsia-800: oklch(45.2% 0.211 324.591);
    --color-fuchsia-900: oklch(40.1% 0.17 325.612);
    --color-fuchsia-950: oklch(29.3% 0.136 325.661);

    --color-pink-50: oklch(97.1% 0.014 343.198);
    --color-pink-100: oklch(94.8% 0.028 342.258);
    --color-pink-200: oklch(89.9% 0.061 343.231);
    --color-pink-300: oklch(82.3% 0.12 346.018);
    --color-pink-400: oklch(71.8% 0.202 349.761);
    --color-pink-500: oklch(65.6% 0.241 354.308);
    --color-pink-600: oklch(59.2% 0.249 0.584);
    --color-pink-700: oklch(52.5% 0.223 3.958);
    --color-pink-800: oklch(45.9% 0.187 3.815);
    --color-pink-900: oklch(40.8% 0.153 2.432);
    --color-pink-950: oklch(28.4% 0.109 3.907);

    --color-rose-50: oklch(96.9% 0.015 12.422);
    --color-rose-100: oklch(94.1% 0.03 12.58);
    --color-rose-200: oklch(89.2% 0.058 10.001);
    --color-rose-300: oklch(81% 0.117 11.638);
    --color-rose-400: oklch(71.2% 0.194 13.428);
    --color-rose-500: oklch(64.5% 0.246 16.439);
    --color-rose-600: oklch(58.6% 0.253 17.585);
    --color-rose-700: oklch(51.4% 0.222 16.935);
    --color-rose-800: oklch(45.5% 0.188 13.697);
    --color-rose-900: oklch(41% 0.159 10.272);
    --color-rose-950: oklch(27.1% 0.105 12.094);

    --color-slate-50: oklch(98.4% 0.003 247.858);
    --color-slate-100: oklch(96.8% 0.007 247.896);
    --color-slate-200: oklch(92.9% 0.013 255.508);
    --color-slate-300: oklch(86.9% 0.022 252.894);
    --color-slate-400: oklch(70.4% 0.04 256.788);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --color-slate-600: oklch(44.6% 0.043 257.281);
    --color-slate-700: oklch(37.2% 0.044 257.287);
    --color-slate-800: oklch(27.9% 0.041 260.031);
    --color-slate-900: oklch(20.8% 0.042 265.755);
    --color-slate-950: oklch(12.9% 0.042 264.695);

    --color-gray-50: oklch(98.5% 0.002 247.839);
    --color-gray-100: oklch(96.7% 0.003 264.542);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-400: oklch(70.7% 0.022 261.325);
    --color-gray-500: oklch(55.1% 0.027 264.364);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-700: oklch(37.3% 0.034 259.733);
    --color-gray-800: oklch(27.8% 0.033 256.848);
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-gray-950: oklch(13% 0.028 261.692);

    --color-zinc-50: oklch(98.5% 0 0);
    --color-zinc-100: oklch(96.7% 0.001 286.375);
    --color-zinc-200: oklch(92% 0.004 286.32);
    --color-zinc-300: oklch(87.1% 0.006 286.286);
    --color-zinc-400: oklch(70.5% 0.015 286.067);
    --color-zinc-500: oklch(55.2% 0.016 285.938);
    --color-zinc-600: oklch(44.2% 0.017 285.786);
    --color-zinc-700: oklch(37% 0.013 285.805);
    --color-zinc-800: oklch(27.4% 0.006 286.033);
    --color-zinc-900: oklch(21% 0.006 285.885);
    --color-zinc-950: oklch(14.1% 0.005 285.823);

    --color-neutral-50: oklch(98.5% 0 0);
    --color-neutral-100: oklch(97% 0 0);
    --color-neutral-200: oklch(92.2% 0 0);
    --color-neutral-300: oklch(87% 0 0);
    --color-neutral-400: oklch(70.8% 0 0);
    --color-neutral-500: oklch(55.6% 0 0);
    --color-neutral-600: oklch(43.9% 0 0);
    --color-neutral-700: oklch(37.1% 0 0);
    --color-neutral-800: oklch(26.9% 0 0);
    --color-neutral-900: oklch(20.5% 0 0);
    --color-neutral-950: oklch(14.5% 0 0);

    --color-stone-50: oklch(98.5% 0.001 106.423);
    --color-stone-100: oklch(97% 0.001 106.424);
    --color-stone-200: oklch(92.3% 0.003 48.717);
    --color-stone-300: oklch(86.9% 0.005 56.366);
    --color-stone-400: oklch(70.9% 0.01 56.259);
    --color-stone-500: oklch(55.3% 0.013 58.071);
    --color-stone-600: oklch(44.4% 0.011 73.639);
    --color-stone-700: oklch(37.4% 0.01 67.558);
    --color-stone-800: oklch(26.8% 0.007 34.298);
    --color-stone-900: oklch(21.6% 0.006 56.043);
    --color-stone-950: oklch(14.7% 0.004 49.25);

    --color-black: #000;
    --color-white: #fff;

    --spacing: 0.25rem;

    --breakpoint-sm: 40rem;
    --breakpoint-md: 48rem;
    --breakpoint-lg: 64rem;
    --breakpoint-xl: 80rem;
    --breakpoint-2xl: 96rem;

    --container-3xs: 16rem;
    --container-2xs: 18rem;
    --container-xs: 20rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --container-3xl: 48rem;
    --container-4xl: 56rem;
    --container-5xl: 64rem;
    --container-6xl: 72rem;
    --container-7xl: 80rem;

    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --text-8xl: 6rem;
    --text-8xl--line-height: 1;
    --text-9xl: 8rem;
    --text-9xl--line-height: 1;

    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;

    --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md:
      0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
      0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:
      0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
    --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
    --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);

    --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
    --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
    --drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
    --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
    --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
    --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);

    --text-shadow-2xs: 0px 1px 0px rgb(0 0 0 / 0.15);
    --text-shadow-xs: 0px 1px 1px rgb(0 0 0 / 0.2);
    --text-shadow-sm:
      0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075),
      0px 2px 2px rgb(0 0 0 / 0.075);
    --text-shadow-md:
      0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1),
      0px 2px 4px rgb(0 0 0 / 0.1);
    --text-shadow-lg:
      0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1),
      0px 4px 8px rgb(0 0 0 / 0.1);

    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    --animate-spin: spin 1s linear infinite;
    --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --animate-bounce: bounce 1s infinite;

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes ping {
      75%,
      100% {
        transform: scale(2);
        opacity: 0;
      }
    }

    @keyframes pulse {
      50% {
        opacity: 0.5;
      }
    }

    @keyframes bounce {
      0%,
      100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
      }

      50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
      }
    }

    --blur-xs: 4px;
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    --blur-2xl: 40px;
    --blur-3xl: 64px;

    --perspective-dramatic: 100px;
    --perspective-near: 300px;
    --perspective-normal: 500px;
    --perspective-midrange: 800px;
    --perspective-distant: 1200px;

    --aspect-video: 16 / 9;

    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: --theme(--font-sans, initial);
    --default-font-feature-settings: --theme(
      --font-sans--font-feature-settings,
      initial
    );
    --default-font-variation-settings: --theme(
      --font-sans--font-variation-settings,
      initial
    );
    --default-mono-font-family: --theme(--font-mono, initial);
    --default-mono-font-feature-settings: --theme(
      --font-mono--font-feature-settings,
      initial
    );
    --default-mono-font-variation-settings: --theme(
      --font-mono--font-variation-settings,
      initial
    );
  }

  /* Deprecated */
  @theme default inline reference {
    --blur: 8px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
    --radius: 0.25rem;
    --max-width-prose: 65ch;
  }
}

@layer base {
  /*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box; /* 1 */
    margin: 0; /* 2 */
    padding: 0; /* 2 */
    border: 0 solid; /* 3 */
  }

  /*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

  html,
  :host {
    line-height: 1.5; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    tab-size: 4; /* 3 */
    font-family: --theme(
      --default-font-family,
      ui-sans-serif,
      system-ui,
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji"
    ); /* 4 */
    font-feature-settings: --theme(
      --default-font-feature-settings,
      normal
    ); /* 5 */
    font-variation-settings: --theme(
      --default-font-variation-settings,
      normal
    ); /* 6 */
    -webkit-tap-highlight-color: transparent; /* 7 */
  }

  /*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

  hr {
    height: 0; /* 1 */
    color: inherit; /* 2 */
    border-top-width: 1px; /* 3 */
  }

  /*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  /*
  Remove the default font size and weight for headings.
*/

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  /*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  /*
  Add the correct font weight in Edge and Safari.
*/

  b,
  strong {
    font-weight: bolder;
  }

  /*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

  code,
  kbd,
  samp,
  pre {
    font-family: --theme(
      --default-mono-font-family,
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Monaco,
      Consolas,
      "Liberation Mono",
      "Courier New",
      monospace
    ); /* 1 */
    font-feature-settings: --theme(
      --default-mono-font-feature-settings,
      normal
    ); /* 2 */
    font-variation-settings: --theme(
      --default-mono-font-variation-settings,
      normal
    ); /* 3 */
    font-size: 1em; /* 4 */
  }

  /*
  Add the correct font size in all browsers.
*/

  small {
    font-size: 80%;
  }

  /*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  sub {
    bottom: -0.25em;
  }

  sup {
    top: -0.5em;
  }

  /*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

  table {
    text-indent: 0; /* 1 */
    border-color: inherit; /* 2 */
    border-collapse: collapse; /* 3 */
  }

  /*
  Use the modern Firefox focus style for all focusable elements.
*/

  :-moz-focusring {
    outline: auto;
  }

  /*
  Add the correct vertical alignment in Chrome and Firefox.
*/

  progress {
    vertical-align: baseline;
  }

  /*
  Add the correct display in Chrome and Safari.
*/

  summary {
    display: list-item;
  }

  /*
  Make lists unstyled by default.
*/

  ol,
  ul,
  menu {
    list-style: none;
  }

  /*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block; /* 1 */
    vertical-align: middle; /* 2 */
  }

  /*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  /*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

  button,
  input,
  select,
  optgroup,
  textarea,
  ::file-selector-button {
    font: inherit; /* 1 */
    font-feature-settings: inherit; /* 1 */
    font-variation-settings: inherit; /* 1 */
    letter-spacing: inherit; /* 1 */
    color: inherit; /* 1 */
    border-radius: 0; /* 2 */
    background-color: transparent; /* 3 */
    opacity: 1; /* 4 */
  }

  /*
  Restore default font weight.
*/

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  /*
  Restore indentation.
*/

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  /*
  Restore space after button.
*/

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  /*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

  ::placeholder {
    opacity: 1;
  }

  /*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

  @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
    (contain-intrinsic-size: 1px) /* Safari 17+ */ {
    ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }

  /*
  Prevent resizing textareas horizontally by default.
*/

  textarea {
    resize: vertical;
  }

  /*
  Remove the inner padding in Chrome and Safari on macOS.
*/

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  /*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

  ::-webkit-date-and-time-value {
    min-height: 1lh; /* 1 */
    text-align: inherit; /* 2 */
  }

  /*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  /*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit,
  ::-webkit-datetime-edit-year-field,
  ::-webkit-datetime-edit-month-field,
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field,
  ::-webkit-datetime-edit-second-field,
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  /*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  /*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

  :-moz-ui-invalid {
    box-shadow: none;
  }

  /*
  Correct the inability to style the border radius in iOS Safari.
*/

  button,
  input:where([type="button"], [type="reset"], [type="submit"]),
  ::file-selector-button {
    appearance: button;
  }

  /*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }

  /*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  @tailwind utilities;
}

@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}

@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}

@property --tw-animation-duration{syntax:"*";inherits:false}

@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}

@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}

@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}

@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}

@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}

@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}

@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}

@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}

@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}

@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}

@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}

@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}

@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}

@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}

@theme inline{--animation-delay-0: 0s; --animation-delay-75: 75ms; --animation-delay-100: .1s; --animation-delay-150: .15s; --animation-delay-200: .2s; --animation-delay-300: .3s; --animation-delay-500: .5s; --animation-delay-700: .7s; --animation-delay-1000: 1s; --animation-repeat-0: 0; --animation-repeat-1: 1; --animation-repeat-infinite: infinite; --animation-direction-normal: normal; --animation-direction-reverse: reverse; --animation-direction-alternate: alternate; --animation-direction-alternate-reverse: alternate-reverse; --animation-fill-mode-none: none; --animation-fill-mode-forwards: forwards; --animation-fill-mode-backwards: backwards; --animation-fill-mode-both: both; --percentage-0: 0; --percentage-5: .05; --percentage-10: .1; --percentage-15: .15; --percentage-20: .2; --percentage-25: .25; --percentage-30: .3; --percentage-35: .35; --percentage-40: .4; --percentage-45: .45; --percentage-50: .5; --percentage-55: .55; --percentage-60: .6; --percentage-65: .65; --percentage-70: .7; --percentage-75: .75; --percentage-80: .8; --percentage-85: .85; --percentage-90: .9; --percentage-95: .95; --percentage-100: 1; --percentage-translate-full: 1; --animate-in: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); --animate-out: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); @keyframes enter { from { opacity: var(--tw-enter-opacity,1); transform: translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0)); filter: blur(var(--tw-enter-blur,0)); }}@keyframes exit { to { opacity: var(--tw-exit-opacity,1); transform: translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0)); filter: blur(var(--tw-exit-blur,0)); }}--animate-accordion-down: accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); --animate-accordion-up: accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); --animate-collapsible-down: collapsible-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); --animate-collapsible-up: collapsible-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none); @keyframes accordion-down { from { height: 0; }to { height: var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto))))); }}@keyframes accordion-up { from { height: var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto))))); }to { height: 0; }}@keyframes collapsible-down { from { height: 0; }to { height: var(--radix-collapsible-content-height,var(--bits-collapsible-content-height,var(--reka-collapsible-content-height,var(--kb-collapsible-content-height,auto)))); }}@keyframes collapsible-up { from { height: var(--radix-collapsible-content-height,var(--bits-collapsible-content-height,var(--reka-collapsible-content-height,var(--kb-collapsible-content-height,auto)))); }to { height: 0; }}--animate-caret-blink: caret-blink 1.25s ease-out infinite; @keyframes caret-blink { 0%,70%,100% { opacity: 1; }20%,50% { opacity: 0; }}}

@utility animation-duration-*{--tw-animation-duration: calc(--value(number)*1ms); --tw-animation-duration: --value(--animation-duration-*,[duration],"initial",[*]); animation-duration: calc(--value(number)*1ms); animation-duration: --value(--animation-duration-*,[duration],"initial",[*]);}

@utility delay-*{animation-delay: calc(--value(number)*1ms); animation-delay: --value(--animation-delay-*,[duration],"initial",[*]); --tw-animation-delay: calc(--value(number)*1ms); --tw-animation-delay: --value(--animation-delay-*,[duration],"initial",[*]);}

@utility repeat-*{animation-iteration-count: --value(--animation-repeat-*,number,"initial",[*]); --tw-animation-iteration-count: --value(--animation-repeat-*,number,"initial",[*]);}

@utility direction-*{animation-direction: --value(--animation-direction-*,"initial",[*]); --tw-animation-direction: --value(--animation-direction-*,"initial",[*]);}

@utility fill-mode-*{animation-fill-mode: --value(--animation-fill-mode-*,"initial",[*]); --tw-animation-fill-mode: --value(--animation-fill-mode-*,"initial",[*]);}

@utility running{animation-play-state: running;}

@utility paused{animation-play-state: paused;}

@utility play-state-*{animation-play-state: --value("initial",[*]);}

@utility blur-in{--tw-enter-blur: 20px;}

@utility blur-in-*{--tw-enter-blur: calc(--value(number)*1px); --tw-enter-blur: --value(--blur-*,[*]);}

@utility blur-out{--tw-exit-blur: 20px;}

@utility blur-out-*{--tw-exit-blur: calc(--value(number)*1px); --tw-exit-blur: --value(--blur-*,[*]);}

@utility fade-in{--tw-enter-opacity: 0;}

@utility fade-in-*{--tw-enter-opacity: calc(--value(number)/100); --tw-enter-opacity: --value(--percentage-*,[*]);}

@utility fade-out{--tw-exit-opacity: 0;}

@utility fade-out-*{--tw-exit-opacity: calc(--value(number)/100); --tw-exit-opacity: --value(--percentage-*,[*]);}

@utility zoom-in{--tw-enter-scale: 0;}

@utility zoom-in-*{--tw-enter-scale: calc(--value(number)*1%); --tw-enter-scale: calc(--value(ratio)); --tw-enter-scale: --value(--percentage-*,[*]);}

@utility -zoom-in-*{--tw-enter-scale: calc(--value(number)*-1%); --tw-enter-scale: calc(--value(ratio)*-1); --tw-enter-scale: --value(--percentage-*,[*]);}

@utility zoom-out{--tw-exit-scale: 0;}

@utility zoom-out-*{--tw-exit-scale: calc(--value(number)*1%); --tw-exit-scale: calc(--value(ratio)); --tw-exit-scale: --value(--percentage-*,[*]);}

@utility -zoom-out-*{--tw-exit-scale: calc(--value(number)*-1%); --tw-exit-scale: calc(--value(ratio)*-1); --tw-exit-scale: --value(--percentage-*,[*]);}

@utility spin-in{--tw-enter-rotate: 30deg;}

@utility spin-in-*{--tw-enter-rotate: calc(--value(number)*1deg); --tw-enter-rotate: calc(--value(ratio)*360deg); --tw-enter-rotate: --value(--rotate-*,[*]);}

@utility -spin-in{--tw-enter-rotate: -30deg;}

@utility -spin-in-*{--tw-enter-rotate: calc(--value(number)*-1deg); --tw-enter-rotate: calc(--value(ratio)*-360deg); --tw-enter-rotate: --value(--rotate-*,[*]);}

@utility spin-out{--tw-exit-rotate: 30deg;}

@utility spin-out-*{--tw-exit-rotate: calc(--value(number)*1deg); --tw-exit-rotate: calc(--value(ratio)*360deg); --tw-exit-rotate: --value(--rotate-*,[*]);}

@utility -spin-out{--tw-exit-rotate: -30deg;}

@utility -spin-out-*{--tw-exit-rotate: calc(--value(number)*-1deg); --tw-exit-rotate: calc(--value(ratio)*-360deg); --tw-exit-rotate: --value(--rotate-*,[*]);}

@utility slide-in-from-top{--tw-enter-translate-y: -100%;}

@utility slide-in-from-top-*{--tw-enter-translate-y: calc(--value(integer)*var(--spacing)*-1); --tw-enter-translate-y: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-enter-translate-y: calc(--value(ratio)*-100%); --tw-enter-translate-y: calc(--value(--translate-*,[percentage],[length])*-1);}

@utility slide-in-from-bottom{--tw-enter-translate-y: 100%;}

@utility slide-in-from-bottom-*{--tw-enter-translate-y: calc(--value(integer)*var(--spacing)); --tw-enter-translate-y: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-enter-translate-y: calc(--value(ratio)*100%); --tw-enter-translate-y: --value(--translate-*,[percentage],[length]);}

@utility slide-in-from-left{--tw-enter-translate-x: -100%;}

@utility slide-in-from-left-*{--tw-enter-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-enter-translate-x: calc(--value(ratio)*-100%); --tw-enter-translate-x: calc(--value(--translate-*,[percentage],[length])*-1);}

@utility slide-in-from-right{--tw-enter-translate-x: 100%;}

@utility slide-in-from-right-*{--tw-enter-translate-x: calc(--value(integer)*var(--spacing)); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-enter-translate-x: calc(--value(ratio)*100%); --tw-enter-translate-x: --value(--translate-*,[percentage],[length]);}

@utility slide-in-from-start{&:dir(ltr){ --tw-enter-translate-x: -100%; }&:dir(rtl){ --tw-enter-translate-x: 100%; }}

@utility slide-in-from-start-*{&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*){ --tw-enter-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-enter-translate-x: calc(--value(ratio)*-100%); --tw-enter-translate-x: calc(--value(--translate-*,[percentage],[length])*-1); }&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*){ --tw-enter-translate-x: calc(--value(integer)*var(--spacing)); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-enter-translate-x: calc(--value(ratio)*100%); --tw-enter-translate-x: --value(--translate-*,[percentage],[length]); }}

@utility slide-in-from-end{&:dir(ltr){ --tw-enter-translate-x: 100%; }&:dir(rtl){ --tw-enter-translate-x: -100%; }}

@utility slide-in-from-end-*{&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*){ --tw-enter-translate-x: calc(--value(integer)*var(--spacing)); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-enter-translate-x: calc(--value(ratio)*100%); --tw-enter-translate-x: --value(--translate-*,[percentage],[length]); }&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*){ --tw-enter-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-enter-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-enter-translate-x: calc(--value(ratio)*-100%); --tw-enter-translate-x: calc(--value(--translate-*,[percentage],[length])*-1); }}

@utility slide-out-to-top{--tw-exit-translate-y: -100%;}

@utility slide-out-to-top-*{--tw-exit-translate-y: calc(--value(integer)*var(--spacing)*-1); --tw-exit-translate-y: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-exit-translate-y: calc(--value(ratio)*-100%); --tw-exit-translate-y: calc(--value(--translate-*,[percentage],[length])*-1);}

@utility slide-out-to-bottom{--tw-exit-translate-y: 100%;}

@utility slide-out-to-bottom-*{--tw-exit-translate-y: calc(--value(integer)*var(--spacing)); --tw-exit-translate-y: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-exit-translate-y: calc(--value(ratio)*100%); --tw-exit-translate-y: --value(--translate-*,[percentage],[length]);}

@utility slide-out-to-left{--tw-exit-translate-x: -100%;}

@utility slide-out-to-left-*{--tw-exit-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-exit-translate-x: calc(--value(ratio)*-100%); --tw-exit-translate-x: calc(--value(--translate-*,[percentage],[length])*-1);}

@utility slide-out-to-right{--tw-exit-translate-x: 100%;}

@utility slide-out-to-right-*{--tw-exit-translate-x: calc(--value(integer)*var(--spacing)); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-exit-translate-x: calc(--value(ratio)*100%); --tw-exit-translate-x: --value(--translate-*,[percentage],[length]);}

@utility slide-out-to-start{&:dir(ltr){ --tw-exit-translate-x: -100%; }&:dir(rtl){ --tw-exit-translate-x: 100%; }}

@utility slide-out-to-start-*{&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*){ --tw-exit-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-exit-translate-x: calc(--value(ratio)*-100%); --tw-exit-translate-x: calc(--value(--translate-*,[percentage],[length])*-1); }&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*){ --tw-exit-translate-x: calc(--value(integer)*var(--spacing)); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-exit-translate-x: calc(--value(ratio)*100%); --tw-exit-translate-x: --value(--translate-*,[percentage],[length]); }}

@utility slide-out-to-end{&:dir(ltr){ --tw-exit-translate-x: 100%; }&:dir(rtl){ --tw-exit-translate-x: -100%; }}

@utility slide-out-to-end-*{&:where(:dir(ltr),[dir="ltr"],[dir="ltr"]*){ --tw-exit-translate-x: calc(--value(integer)*var(--spacing)); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*100%); --tw-exit-translate-x: calc(--value(ratio)*100%); --tw-exit-translate-x: --value(--translate-*,[percentage],[length]); }&:where(:dir(rtl),[dir="rtl"],[dir="rtl"]*){ --tw-exit-translate-x: calc(--value(integer)*var(--spacing)*-1); --tw-exit-translate-x: calc(--value(--percentage-*,--percentage-translate-*)*-100%); --tw-exit-translate-x: calc(--value(ratio)*-100%); --tw-exit-translate-x: calc(--value(--translate-*,[percentage],[length])*-1); }}

@custom-variant dark (&:is(.dark *));

/* Desabilitar zoom */

html,
body {
  touch-action: manipulation;
}

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

:root {
  /* Cores oficiais da Phobos: #0A4EA0 e #002b5e */
  --primary: 210 85% 33%;
  /* #0A4EA0 */
  --primary-foreground: 0 0% 100%;
  --sidebar-primary: 210 100% 18%;
  /* #002b5e */
  --sidebar-primary-foreground: 0 0% 100%;
  --background: 0 0% 100%;
  --foreground: 210 40% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 210 40% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 40% 3.9%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 210 40% 3.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 210 40% 3.9%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 210 85% 33%;
  --chart-1: var(--color-blue-500);
  --chart-2: var(--color-blue-600);
  --chart-3: var(--color-blue-600);
  --chart-4: var(--color-blue-700);
  --chart-5: var(--color-blue-800);
  --sidebar: 210 40% 96%;
  --sidebar-foreground: 215 28% 17%;
  --sidebar-primary: 210 85% 33%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 210 40% 96%;
  --sidebar-accent-foreground: 210 40% 3.9%;
  --sidebar-border: 214 32% 91%;
  --sidebar-ring: 210 85% 33%;
}

.dark {
  --background: 210 40% 3.9%;
  --foreground: 0 0% 100%;
  --card: 215 28% 17%;
  --card-foreground: 0 0% 100%;
  --popover: 215 28% 17%;
  --popover-foreground: 0 0% 100%;
  --secondary: 215 28% 17%;
  --secondary-foreground: 210 40% 96%;
  --muted: 215 16% 47%;
  --muted-foreground: 217 33% 77%;
  --accent: 215 28% 17%;
  --accent-foreground: 210 40% 96%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 3.9%;
  --border: 215 28% 17%;
  --input: 215 28% 17%;
  --ring: 212 95% 58%;
  --sidebar: 215 28% 17%;
  --sidebar-foreground: 210 40% 96%;
  --sidebar-primary: 212 95% 58%;
  --sidebar-primary-foreground: 215 28% 17%;
  --sidebar-accent: 215 28% 17%;
  --sidebar-accent-foreground: 210 40% 96%;
  --sidebar-border: 215 28% 17%;
  --sidebar-ring: 212 95% 58%;
}

* {
  @apply border-border;
}

body {
  @apply bg-background text-foreground;
}

/* ============================================
   RADIX DIALOG - PHOBOS PREMIUM
   ============================================ */

[data-slot="dialog-overlay"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(11, 25, 41, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

[data-slot="dialog-content"] {
  position: fixed !important;
  z-index: 10000 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 2rem) !important;
  max-width: 560px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(10, 78, 160, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(10, 78, 160, 0.1) !important;
  padding: 0 !important;
}

[data-slot="dialog-header"] {
  background: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  position: relative;
}

[data-slot="dialog-header"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #3b82f6, transparent);
}

[data-slot="dialog-title"] {
  color: #fff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

[data-slot="dialog-description"] {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.85rem !important;
  margin-top: 4px;
}

[data-slot="dialog-content"]>div:not([data-slot]) {
  padding: 24px;
}

[data-slot="dialog-footer"] {
  padding: 16px 24px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e8ecf1 !important;
  border-radius: 0 0 16px 16px !important;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

[data-slot="dialog-close"] {
  color: rgba(255, 255, 255, 0.7) !important;
  top: 16px !important;
  right: 16px !important;
  transition: color 0.2s !important;
}

[data-slot="dialog-close"]:hover {
  color: #fff !important;
}/* ============================================
   SweetAlert2 — Phobos Theme
   ============================================ */

/* Popup */
.ph-swal-popup {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    border-radius: 20px !important;
    padding: 2rem 1.75rem 1.5rem !important;
    box-shadow: 0 16px 48px rgba(10, 78, 160, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ph-swal-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
}

.ph-swal-html {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

/* Botões base */
.ph-swal-btn {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 4px !important;
    min-width: 120px !important;
}

/* Confirmar — azul Phobos */
.ph-swal-btn--confirm {
    background: linear-gradient(135deg, #0A4EA0 0%, #1e6ecf 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(10, 78, 160, 0.30) !important;
}

.ph-swal-btn--confirm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(10, 78, 160, 0.38) !important;
}

.ph-swal-btn--confirm:active {
    transform: translateY(0) !important;
}

/* Deletar — vermelho */
.ph-swal-btn--danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.30) !important;
}

.ph-swal-btn--danger:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.38) !important;
}

/* Cancelar — cinza suave */
.ph-swal-btn--cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.ph-swal-btn--cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Deny — outline */
.ph-swal-btn--deny {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1.5px solid #ef4444 !important;
}

.ph-swal-btn--deny:hover {
    background: rgba(239, 68, 68, 0.06) !important;
}

/* Ícone success */
.ph-swal-popup .swal2-icon.swal2-success {
    border-color: #0A4EA0 !important;
    color: #0A4EA0 !important;
}

.ph-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(10, 78, 160, 0.3) !important;
}

.ph-swal-popup .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #0A4EA0 !important;
}

/* Toast */
.ph-swal-toast {
    font-family: 'Inter', system-ui, sans-serif !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Ícone question — azul */
.ph-swal-popup .swal2-icon.swal2-question {
    border-color: #0A4EA0 !important;
    color: #0A4EA0 !important;
}

/* Ícone info — azul */
.ph-swal-popup .swal2-icon.swal2-info {
    border-color: #0A4EA0 !important;
    color: #0A4EA0 !important;
}

/* Timer progress bar */
.ph-swal-toast .swal2-timer-progress-bar {
    background: #0A4EA0 !important;
}

/* Actions container */
.ph-swal-popup .swal2-actions {
    margin-top: 1.25rem !important;
    gap: 8px !important;
}

/* Backdrop */
.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
}/* ============================================
   PHOBOS INTRANET - MODERN DESIGN
   Baseado no Vyzor com branding Phobos
   ============================================ */

:root {
  /* Phobos Brand Colors */
  --phobos-primary: #0A4EA0;
  --phobos-primary-dark: #002b5e;
  --phobos-primary-light: #1e5bb8;
  --phobos-secondary: #6c757d;
  --phobos-success: #10b981;
  --phobos-danger: #ef4444;
  --phobos-warning: #f59e0b;
  --phobos-info: #3b82f6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A4EA0 0%, #002b5e 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6c757d;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
}

/* ============================================
   CARDS & WIDGETS
   ============================================ */

.phobos-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.phobos-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.phobos-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phobos-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phobos-card-body {
  padding: 1.5rem;
}

.phobos-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Stats Cards */
.stats-card-modern {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--phobos-primary);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.stats-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stats-card-modern.success {
  border-left-color: var(--phobos-success);
}

.stats-card-modern.danger {
  border-left-color: var(--phobos-danger);
}

.stats-card-modern.warning {
  border-left-color: var(--phobos-warning);
}

.stats-card-modern.info {
  border-left-color: var(--phobos-info);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-phobos {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-phobos:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 78, 160, 0.3);
}

.btn-phobos:active {
  transform: translateY(0);
}

.btn-phobos-outline {
  background: transparent;
  color: var(--phobos-primary);
  border: 2px solid var(--phobos-primary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-phobos-outline:hover {
  background: var(--phobos-primary);
  color: white;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge-phobos {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-primary {
  background: rgba(10, 78, 160, 0.1);
  color: var(--phobos-primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--phobos-success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--phobos-danger);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--phobos-warning);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--phobos-info);
}

/* ============================================
   TABLES
   ============================================ */

.table-phobos {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-phobos thead {
  background: var(--gradient-primary);
  color: white;
}

.table-phobos thead th {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
  border: none;
}

.table-phobos tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.table-phobos tbody tr:hover {
  background: var(--gray-50);
}

.table-phobos tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.table-phobos tbody tr:last-child {
  border-bottom: none;
}

/* ============================================
   MODALS
   ============================================ */

.modal-phobos .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-phobos .modal-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  border: none;
}

.modal-phobos .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-phobos .modal-body {
  padding: 1.5rem;
}

.modal-phobos .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.modal-phobos .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-phobos .btn-close:hover {
  opacity: 1;
}

/* ============================================
   FORMS
   ============================================ */

.form-phobos .form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-phobos .form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-phobos .form-control:focus {
  border-color: var(--phobos-primary);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  outline: none;
}

.form-phobos .form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-phobos .form-select:focus {
  border-color: var(--phobos-primary);
  box-shadow: 0 0 0 3px rgba(10, 78, 160, 0.1);
  outline: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease;
}

.animate-fadeInDown {
  animation: fadeInDown 0.5s ease;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.border-gradient-primary {
  border-image: var(--gradient-primary) 1;
}

/* Icon Backgrounds */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-box-primary {
  background: rgba(10, 78, 160, 0.1);
  color: var(--phobos-primary);
}

.icon-box-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--phobos-success);
}

.icon-box-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--phobos-danger);
}

.icon-box-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--phobos-warning);
}

.icon-box-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--phobos-info);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .phobos-card-header {
    padding: 1rem;
  }
  
  .phobos-card-body {
    padding: 1rem;
  }
  
  .stats-card-modern {
    padding: 1rem;
  }
}

