/* The Hive · contraste y foco de la superficie activa.
 * Cargada después de galileo.css/ht-ipad.css para no modificar el archivo
 * histórico v3 que todavía comparte las hojas antiguas. */

:root {
  --galileo-text-secondary: #6f6e69;
  --galileo-success: #137a3a;
  --galileo-warning: #875700;
  --galileo-error: #b4232a;
}
.dark {
  --galileo-text-secondary: rgba(255, 255, 255, .72);
  --galileo-text-muted: rgba(255, 255, 255, .70);
  --galileo-success: #78dfa0;
  --galileo-warning: #ffd166;
  --galileo-error: #ff9a9f;
  --g-gray-400: rgba(255, 255, 255, .70);
  --g-gray-500: rgba(255, 255, 255, .70);
}

.daily-guard,
.g-kpi .l,
.g-source .name {
  color: var(--galileo-text-primary) !important;
}
.g-funnel-group.won { color: #137a3a; }
.g-funnel-group.wait { color: #875700; }
.dark .g-funnel-group.won { color: #78dfa0; }
.dark .g-funnel-group.wait { color: #ffd166; }

.ht-tag-live { color: #0f6d2e; }
.dark .ht-tag-live { color: #8ee8aa; }
.roles-vis .lvl.f { color: #0b6b31 !important; }
.dark .roles-vis .lvl.f { color: #8ee8aa !important; }
.roles-vis .lvl.r { color: #7c5000 !important; }
.dark .roles-vis .lvl.r { color: #ffd166 !important; }

.hc-hd .g-badge { color: var(--galileo-error) !important; }
.hc-th .acct,
.hc-kid .acct,
.g-msg.in .g-bubble .sender { color: #755100 !important; }
.dark .hc-th .acct,
.dark .hc-kid .acct,
.dark .g-msg.in .g-bubble .sender { color: #f5d66f !important; }
.hc-th .av,
.hc-kid .av { background: #59616f !important; }

#ctLive > span,
.g-stagebadge,
.g-task .due,
#fmRate,
.g-stage,
.stage,
.src,
.who {
  color: var(--galileo-text-primary) !important;
}
#gv-roles .g-badge { color: var(--galileo-text-primary) !important; }

.dark .g-view .g-btn-pill,
.dark button[data-filtro].on {
  color: #191919 !important;
}
.dark .g-view.on .sub,
.dark .g-detail-title h3 {
  color: var(--galileo-text-secondary) !important;
}
.dark .g-qstat {
  background: var(--galileo-card-inner-bg) !important;
}
.dark .g-qstat .l {
  color: var(--galileo-text-secondary) !important;
}

.g-app :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--galileo-accent-hover);
  outline-offset: 2px;
}

.g-view button {
  min-width: 44px;
  min-height: 44px;
}
.g-view input:not([type="checkbox"]):not([type="radio"]),
.g-view select,
.g-view textarea {
  min-height: 44px;
}

#convListScroll:focus-visible,
#gMsgs:focus-visible,
.g-detail-body:focus-visible {
  outline: 3px solid var(--galileo-accent-hover);
  outline-offset: -3px;
}

/* 12-nov-2026 · Menú lateral en claro: sus textos no llegaban al contraste AA sobre el
 * fondo #F7F6F3 (medido con axe): «The Hive» en dorado de acento 2,16:1, «Powered by»
 * 3,58:1, «Search…» 3,42:1, y los nombres de las pantallas, el rol y «Sign out» entre
 * 3,4 y 4,3:1. El dorado pasa al dorado de texto del sitio público (#8A6410) y los dos
 * grises del menú suben un tono, SOLO dentro del menú. En oscuro no cambia nada. */
html:not(.dark) .g-sidebar { --g-gray-400: #6b6862; --g-gray-500: #65625b; }
html:not(.dark) .g-logo-area h1,
html:not(.dark) .g-logo-area p b span { color: #8A6410; }

/* 12-nov · Child's Records: «Reviewed» y «Corrected» llevaban texto #22c55e / #78736b sobre fondo
   claro (2,2:1 y 4,4:1). Ahora pasan 4,5:1 en claro y en oscuro. */
.hf-rec-est.revisado { background: rgba(52,199,89,0.12); color: #166534; }
.hf-rec-est.corregido { background: rgba(168,162,154,0.15); color: #57534e; }
html.dark .hf-rec-est.revisado { color: #4ade80; }
html.dark .hf-rec-est.corregido { color: #d6d3d1; }
