/**
 * EVOLUA — Central 20 Bancas, Extrator de Provas, Tutor IA & Governança (Fase F6C/F11/F14/F15/U-OFFLINE)
 * Estilos semânticos para o Hub Central (#evoluaHub) e seus componentes integrados.
 *
 * Em conformidade estrita com as diretrizes Modern Web Guidance:
 * - HTML & Forms Guides: min-height 48px (52px em coarse), font-size 1rem, :focus-visible
 * - WCAG AA: contraste >= 4.5:1 em temas escuro (default) e claro (body.theme-day)
 * - Suporte nativo a <search>, <dialog> e ::backdrop
 * - Redução de movimento: @media (prefers-reduced-motion: reduce)
 */

/* ==========================================================================
   1. Banner na Tela Inicial (#home)
   ========================================================================== */
.hubHomeBanner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(37, 109, 99, 0.22) 0%, rgba(30, 82, 146, 0.22) 100%);
  border: 1px solid var(--border-default, #2e4359);
  border-left: 4px solid var(--brand-primary, #256d63);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 18px 0 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.hubHomeBannerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hubHomeBannerTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hubHomeBannerDesc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
}

.hubHomeBannerActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ==========================================================================
   2. Estrutura Principal da Central Evolua (#evoluaHub)
   ========================================================================== */
.evoluaHubSection {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px clamp(8px, 3vw, 32px) 64px clamp(8px, 3vw, 32px);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.evoluaHubSection.hidden {
  display: none !important;
}

.hubHeader {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle, #233142);
  padding-bottom: 20px;
}

.hubTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hubTitle {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hubSubtitle {
  font-size: 1.05rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

/* Barra de Resiliência Offline do Hub */
.hubOfflineBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--feedback-warning-bg, #4a3412);
  border: 1px solid var(--feedback-warning-border, #7a551e);
  color: var(--feedback-warning-text, #ffd27c);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  box-sizing: border-box;
}

.hubOfflineBar.hidden {
  display: none !important;
}

/* ==========================================================================
   3. Barra de Abas da Central (.hubTabsNav)
   ========================================================================== */
.hubTabsNav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-subtle, #233142);
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 4px;
}

.hubTabBtn {
  min-height: 48px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.hubTabBtn:hover {
  color: var(--text-primary, #f0f6fc);
  background-color: rgba(255, 255, 255, 0.04);
}

.hubTabBtn.active,
.hubTabBtn[aria-selected="true"] {
  color: var(--brand-accent, #79c7a7);
  border-bottom-color: var(--brand-accent, #79c7a7);
  background-color: rgba(37, 109, 99, 0.14);
}

.hubTabBadge {
  background: var(--surface-inset, #0d1622);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, #233142);
}

.hubTabBtn.active .hubTabBadge {
  background: var(--brand-primary, #256d63);
  color: #ffffff;
  border-color: var(--brand-accent, #79c7a7);
}

.hubTabPanel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.hubTabPanel.hidden {
  display: none !important;
}

/* ==========================================================================
   4. Aba 1: 20 Bancas & Editais Reais
   ========================================================================== */
search.hubSearchContainer,
.hubSearchContainer {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.hubSearchForm {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: var(--surface-card, #111925);
  border: 1px solid var(--border-subtle, #233142);
  border-radius: 10px;
  padding: 16px 20px;
  box-sizing: border-box;
}

.hubSearchField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
}

.hubSearchField label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
}

.hubSearchInput,
.hubSelect,
.hubInput,
.hubTextarea {
  min-height: 48px;
  font-size: 1rem;
  padding: 10px 14px;
  background: var(--surface-inset, #0a1017);
  border: 1px solid var(--border-default, #2e4359);
  border-radius: 8px;
  color: var(--text-primary, #f0f6fc);
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hubSearchInput:focus,
.hubSelect:focus,
.hubInput:focus,
.hubTextarea:focus {
  border-color: var(--focus-ring-color, #3478c5);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring-shadow, rgba(52, 120, 197, 0.35));
}

.hubSearchActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Grid de Bancas */
.hubBancasGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.hubBancaCard {
  background: var(--surface-card, #111925);
  border: 1px solid var(--border-subtle, #233142);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hubBancaCard:hover {
  border-color: var(--brand-primary-light, #3f8f82);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hubBancaCardHeader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.hubBancaCode {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-accent, #79c7a7);
}

.hubBancaName {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
  line-height: 1.4;
}

.hubBancaSummary {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  line-height: 1.45;
}

.hubBancaPills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hubBadge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-inset, #0d1622);
  color: var(--text-secondary, #cbd5e1);
  border: 1px solid var(--border-subtle, #233142);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hubBadge.active {
  background: rgba(37, 109, 99, 0.25);
  color: var(--brand-accent, #79c7a7);
  border-color: var(--brand-primary, #256d63);
}

.hubBadgeCebraspe {
  background: rgba(52, 120, 197, 0.2);
  color: #8ec0f5;
  border-color: #1e5292;
}

.hubBadgeMultiple {
  background: rgba(181, 128, 43, 0.2);
  color: #ffd27c;
  border-color: #8c6220;
}

.hubPdfTag {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.hubBancaCardActions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* Botões */
.hubBtnPrimary {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--btn-primary-bg, #256d63);
  border: 1px solid var(--btn-primary-border, #1d564e);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.hubBtnPrimary:hover {
  background-color: var(--btn-primary-hover, #1d564e);
}

.hubBtnSecondary {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--btn-secondary-text, #e6edf3);
  background-color: var(--btn-secondary-bg, #1e2633);
  border: 1px solid var(--btn-secondary-border, #2e3846);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hubBtnSecondary:hover {
  background-color: var(--btn-secondary-hover, #283344);
}

/* ==========================================================================
   5. Modal Nativo (<dialog id="evoluaBancaPreviewDialog">)
   ========================================================================== */
dialog#evoluaBancaPreviewDialog,
.hubDialog {
  background: var(--surface-card, #111925);
  color: var(--text-primary, #f0f6fc);
  border: 1px solid var(--border-default, #2e4359);
  border-radius: 14px;
  padding: 0;
  max-width: 720px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

dialog#evoluaBancaPreviewDialog::backdrop,
.hubDialog::backdrop {
  background: rgba(5, 10, 16, 0.82);
  backdrop-filter: blur(4px);
}

.hubCustomEdictEntry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(75, 138, 235, .35);
  border-radius: 12px;
}

.hubCustomEdictEntry h2,
.hubCustomEdictEntry p { margin: 0 0 .35rem; }

.hubCustomEdictDialog { width: min(850px, 96vw); }

.hubCustomEdictDialog [hidden] { display: none; }

.hubCustomEdictBody .hubEdictUpload,
.hubEdictPlan,
.hubEdictSubject {
  display: grid;
  gap: .7rem;
}

.hubEdictUpload { justify-items: start; }
.hubEdictUpload input { max-width: 100%; }

.hubEdictFields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: .85rem;
}

.hubEdictFields label,
.hubEdictSubject label { display: grid; gap: .3rem; min-width: 0; }

.hubEdictSubject {
  margin: .5rem 0;
  padding: .75rem;
  min-width: 0;
  border: 1px solid rgba(135, 156, 189, .35);
  border-radius: 8px;
}

.hubEdictSubject textarea { resize: vertical; }
.hubEdictSubject button { justify-self: start; }
.hubEdictSubject summary { cursor: pointer; }
.hubEdictProvenance { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hubEdictSubject summary .hubEdictOrigin { margin-inline-start: .5rem; }
.hubEdictSubject .hubEdictInclude { display: flex; align-items: center; gap: .45rem; }

.hubEdictActions { display: flex; flex-wrap: wrap; gap: .7rem; }

.hubDialogHeader {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle, #233142);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hubDialogTitle {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
}

.hubDialogBody {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Feedback and draft sections must keep their content height in the scroll area. */
#hubDialogBody > * {
  flex-shrink: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}


.hubDialogSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hubDialogSectionTitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-accent, #79c7a7);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hubDialogList {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hubDialogFooter {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle, #233142);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--surface-inset, #0d1622);
}

/* ==========================================================================
   6. Aba 2: Extrator Canônico de Provas e Gabaritos (F6B)
   ========================================================================== */
.hubFormCard {
  background: var(--surface-card, #111925);
  border: 1px solid var(--border-subtle, #233142);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.hubFormCard fieldset {
  border: 1px solid var(--border-default, #2e4359);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 16px 0;
  box-sizing: border-box;
}

.hubFormCard legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-accent, #79c7a7);
  padding: 0 10px;
}

.hubFormGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 10px;
}

.hubFormField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hubFormField.fullWidth {
  grid-column: 1 / -1;
}

.hubFormField label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f0f6fc);
}

.hubFeedback {
  min-height: 24px;
  font-size: 0.9rem;
  margin: 8px 0;
  font-weight: 600;
}

.hubFeedback.hasError {
  color: var(--feedback-error-text, #ff7f87);
}

.hubFeedback.hasSuccess {
  color: var(--feedback-success-text, #4fd08a);
}

.hubInput[aria-invalid="true"],
.hubTextarea[aria-invalid="true"],
.hubSelect[aria-invalid="true"] {
  border-color: var(--feedback-error-border, #74404a);
  background-color: var(--feedback-error-bg, #321c22);
}

/* Tabela de Reconciliação de Gabarito */
.hubTableWrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle, #233142);
  border-radius: 8px;
  margin-top: 16px;
}

.hubTable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.hubTable th {
  background: var(--surface-inset, #0d1622);
  color: var(--text-primary, #f0f6fc);
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-default, #2e4359);
  font-weight: 700;
}

.hubTable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle, #233142);
  color: var(--text-secondary, #cbd5e1);
}

.hubTable tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.statusAnulada {
  color: #ff7f87;
  font-weight: 700;
}

.statusAlterada {
  color: #ffd27c;
  font-weight: 700;
}

.statusValida {
  color: #4fd08a;
  font-weight: 700;
}

/* ==========================================================================
   7. Aba 3: Professor IA & Tutor Socrático (F11)
   ========================================================================== */
.hubAiResultCard {
  background: var(--surface-card, #111925);
  border: 1px solid var(--border-subtle, #233142);
  border-left: 4px solid var(--brand-blue, #3478c5);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.hubAiTelemetry {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  border-top: 1px solid var(--border-subtle, #233142);
  padding-top: 10px;
  margin-top: 8px;
}

/* ==========================================================================
   8. Aba 4: Governança, LGPD, Offline & Sistema (F14/F15/U-OFFLINE)
   ========================================================================== */
.hubGovGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.hubGovCard {
  background: var(--surface-card, #111925);
  border: 1px solid var(--border-subtle, #233142);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

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

.hubGovCardTitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hubGovCardDesc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.hubGovValue {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-accent, #79c7a7);
  margin: 4px 0;
}

.hubGovCardActions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* ==========================================================================
   9. Regras de Acessibilidade & Focus-Visible
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--focus-ring-color, #3478c5);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .hubBtnPrimary,
  .hubBtnSecondary,
  .hubTabBtn,
  .hubSearchInput,
  .hubSelect,
  .hubInput,
  .hubTextarea {
    min-height: 52px;
  }

  .hubSimRadioOption {
    min-height: 52px;
    padding: 12px 18px;
  }

  .hubSimRadioOption input[type="radio"] {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   9b. Galeria de Provas Reais das 20 Bancas & Simulador Interativo (Round 010)
   ========================================================================== */
.hubRealExamsSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.hubRealExamsGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.hubRealExamCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-card, #172433);
  border: 1px solid var(--border-subtle, #2e4359);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.hubRealExamCard:hover {
  border-color: var(--brand-secondary, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hubRealExamHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hubRealExamTitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.hubRealExamOrg {
  font-size: 0.9rem;
  color: var(--brand-accent, #79c7a7);
  font-weight: 600;
  margin: 0 0 8px 0;
}

.hubRealExamRole {
  font-size: 0.92rem;
  color: var(--text-secondary, #cbd5e1);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.hubRealExamBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px 0;
}

.hubRealExamActions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.hubRealExamActions .hubBtnPrimary,
.hubRealExamActions .hubBtnSecondary {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* Painel do Simulador Interativo */
.hubSimulatorPanel {
  background: var(--surface-card, #172433);
  border: 2px solid var(--brand-secondary, #38bdf8);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.hubSimHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle, #2e4359);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.hubSimTitle {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hubSimRulesBadge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hubSimQuestionFieldset {
  border: 1px solid var(--border-subtle, #2e4359);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.hubSimQuestionFieldset legend {
  padding: 0 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary, #f0f6fc);
}

.hubSimStatement {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #cbd5e1);
  margin: 8px 0 16px 0;
}

.hubSimRadioList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hubSimRadioOption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #2e4359);
  background: var(--surface-base, #111a24);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.hubSimRadioOption:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--brand-secondary, #38bdf8);
}

.hubSimRadioOption input[type="radio"] {
  accent-color: var(--brand-primary, #256d63);
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.hubSimRadioOption input[type="radio"]:focus-visible {
  outline: 2px solid var(--brand-secondary, #38bdf8);
  outline-offset: 2px;
}

.hubSimRadioOption label {
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary, #f0f6fc);
}

.hubSimActionsRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Placar Oficial e Correção (Scoreboard) */
.hubSimScoreboard {
  background: linear-gradient(135deg, rgba(20, 35, 52, 0.95) 0%, rgba(15, 25, 38, 0.95) 100%);
  border: 2px solid var(--brand-secondary, #38bdf8);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.hubSimScoreHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle, #2e4359);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.hubSimScoreTitle {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #f0f6fc);
  margin: 0;
}

.hubSimNetScore {
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 6px 16px;
  border-radius: 8px;
}

.hubSimScoreGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.hubSimScoreCard {
  background: var(--surface-card, #172433);
  border: 1px solid var(--border-subtle, #2e4359);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.hubSimScoreLabel {
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 600;
  text-transform: uppercase;
}

.hubSimScoreVal {
  font-size: 1.3rem;
  font-weight: 800;
}

.hubSimScoreVal.textSuccess { color: #86efac; }
.hubSimScoreVal.textDanger { color: #fca5a5; }
.hubSimScoreVal.textMuted { color: #cbd5e1; }
.hubSimScoreVal.textWarning { color: #fde047; }

.hubSimQuestionReviewList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hubSimReviewItem {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle, #2e4359);
  border-radius: 8px;
  padding: 16px;
}

.hubSimReviewHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badgeCorreta {
  background: #14532d;
  color: #86efac;
  border: 1px solid #22c55e;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badgeErrada {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badgeAnulada {
  background: #581c87;
  color: #d8b4fe;
  border: 1px solid #a855f7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badgeBranco {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #64748b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hubSimCommentary {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--brand-secondary, #38bdf8);
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   10. Tema Claro: Overrides Deliberados (body.theme-day)
   ========================================================================== */
body.theme-day .hubHomeBanner {
  background: linear-gradient(135deg, rgba(37, 109, 99, 0.1) 0%, rgba(52, 120, 197, 0.1) 100%);
  border-color: #cbd5e1;
  border-left-color: #256d63;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.theme-day .hubHomeBannerTitle {
  color: #17201e;
}

body.theme-day .hubHomeBannerDesc {
  color: #475569;
}

body.theme-day .evoluaHubSection {
  background-color: var(--surface-base, #f7f9f8);
}

body.theme-day .hubTitle {
  color: #17201e;
}

body.theme-day .hubSubtitle {
  color: #64748b;
}

body.theme-day .hubHeader {
  border-bottom-color: #cbd5e1;
}

body.theme-day .hubTabsNav {
  border-bottom-color: #cbd5e1;
}

body.theme-day .hubTabBtn {
  color: #64748b;
}

body.theme-day .hubTabBtn:hover {
  color: #17201e;
  background-color: rgba(0, 0, 0, 0.04);
}

body.theme-day .hubTabBtn.active,
body.theme-day .hubTabBtn[aria-selected="true"] {
  color: #1e5292;
  border-bottom-color: #1e5292;
  background-color: rgba(30, 82, 146, 0.08);
}

body.theme-day .hubSearchForm,
body.theme-day .hubBancaCard,
body.theme-day .hubFormCard,
body.theme-day .hubGovCard,
body.theme-day .hubAiResultCard {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-day .hubSearchInput,
body.theme-day .hubSelect,
body.theme-day .hubInput,
body.theme-day .hubTextarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #17201e;
}

body.theme-day .hubBancaName,
body.theme-day .hubGovCardTitle,
body.theme-day .hubFormField label {
  color: #17201e;
}

body.theme-day .hubBancaSummary,
body.theme-day .hubGovCardDesc {
  color: #64748b;
}

body.theme-day .hubBancaCode {
  color: #1e5292;
}

body.theme-day .hubBadge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.theme-day .hubBadge.active {
  background: #e8f7f0;
  border-color: #8ce0b5;
  color: #2e9b66;
}

body.theme-day .hubBtnSecondary {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #263449;
}

body.theme-day .hubBtnSecondary:hover {
  background-color: #eef4fb;
}

body.theme-day dialog#evoluaBancaPreviewDialog,
body.theme-day .hubDialog {
  background: #ffffff;
  color: #17201e;
  border-color: #cbd5e1;
}

body.theme-day .hubDialogHeader,
body.theme-day .hubDialogFooter {
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.theme-day .hubDialogTitle {
  color: #17201e;
}

body.theme-day .hubTable th {
  background: #f1f5f9;
  color: #17201e;
  border-bottom-color: #cbd5e1;
}

body.theme-day .hubTable td {
  border-bottom-color: #e2e8f0;
  color: #334155;
}

body.theme-day .hubTableWrapper {
  border-color: #cbd5e1;
}

body.theme-day .hubRealExamCard {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.theme-day .hubRealExamTitle {
  color: #17201e;
}

body.theme-day .hubRealExamOrg {
  color: #1e5292;
}

body.theme-day .hubRealExamRole {
  color: #475569;
}

body.theme-day .hubSimulatorPanel {
  background: #ffffff;
  border-color: #1e5292;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.theme-day .hubSimTitle,
body.theme-day .hubSimQuestionFieldset legend {
  color: #17201e;
}

body.theme-day .hubSimStatement {
  color: #334155;
}

body.theme-day .hubSimQuestionFieldset {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.theme-day .hubSimRadioOption {
  background: #ffffff;
  border-color: #cbd5e1;
}

body.theme-day .hubSimRadioOption:hover {
  background: #f1f5f9;
  border-color: #1e5292;
}

body.theme-day .hubSimRadioOption label {
  color: #17201e;
}

body.theme-day .hubSimScoreboard {
  background: #ffffff;
  border-color: #1e5292;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

body.theme-day .hubSimScoreTitle {
  color: #17201e;
}

body.theme-day .hubSimScoreCard {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.theme-day .hubSimReviewItem {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.theme-day .hubSimCommentary {
  background: #f1f5f9;
  color: #334155;
  border-left-color: #1e5292;
}

body.theme-day .badgeCorreta {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

body.theme-day .badgeErrada {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

body.theme-day .badgeAnulada {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}

body.theme-day .badgeBranco {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

/* ==========================================================================
   12. Reflow e Acessibilidade para Viewports Estreitos (320px, 390px, 850px)
   G013-17: Previne scrollWidth > clientWidth em telas de 320px
   ========================================================================== */
@media (max-width: 480px) {
  .evoluaHubSection {
    padding: 12px 6px 36px 6px;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .hubGovGrid,
  .hubBancasGrid,
  .hubRealExamsGallery {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hubGovCard,
  .hubBancaCard,
  .hubRealExamCard {
    padding: 14px 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hubGovCardHeader {
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
  }

  .hubGovCardActions {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hubGovCardActions button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .hubTabsNav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .hubTabBtn {
    padding: 10px 14px;
    min-height: 48px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-sizing: border-box;
  }
}

/* ===== Evolua UI/UX Fixes + Top Plan & Workspace Overrides ===== */

/* 1. Ocultar controles legados de IA local/Gemini nao configurada */
#workspaceTopControls,
#health,
#model,
.evoluaModelSelectWrapper,
#selectModelDialog {
  display: none !important;
}

/* 2. Liberar espaco vertical util para Materias na barra lateral */
#evoluaSidebar {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  padding: 12px 10px 58px !important;
  box-sizing: border-box !important;
}

#evoluaSidebar .evoluaBrandHeader,
#evoluaSidebar .evoluaBrand {
  min-height: 46px !important;
  padding: 4px 8px 10px !important;
  margin-bottom: 4px !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

#evoluaSidebar .evoluaBrandSymbol {
  width: 20px !important;
  height: 30px !important;
}

#evoluaSidebar .evoluaBrandTitle {
  font-size: 18px !important;
}

#evoluaSidebar .evoluaNav,
#evoluaSidebar nav {
  gap: 2px !important;
  margin-bottom: 6px !important;
  flex-shrink: 0 !important;
}

#evoluaSidebar .evoluaNavItem,
#evoluaSidebar .sideLink {
  padding: 6px 10px !important;
  min-height: 34px !important;
  gap: 10px !important;
  font-size: 13px !important;
}

#evoluaSidebar .evoluaNavIcon,
#evoluaSidebar .evoluaNavIcon svg {
  width: 18px !important;
  height: 18px !important;
}

#evoluaSidebar .evoluaSidebarSection {
  flex: 1 1 auto !important;
  min-height: 180px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin-top: 6px !important;
  margin-bottom: 4px !important;
}

#evoluaSidebar .evoluaSectionHeader {
  padding: 4px 10px 6px !important;
  flex-shrink: 0 !important;
}

#evoluaSidebar #subjects {
  flex: 1 1 auto !important;
  min-height: 160px !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

#evoluaSidebar #subjects .subject {
  display: flex !important;
  align-items: center !important;
  padding: 7px 10px 7px 36px !important;
  margin-bottom: 2px !important;
  min-height: 36px !important;
  border-radius: 6px !important;
}

#evoluaSidebar #subjects .subject::before {
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17px !important;
  height: 17px !important;
}

#evoluaSidebar #subjects .subject b {
  font-size: 13px !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Ocultar painel ocioso de geracao ("Nenhuma geracao em preparacao.") */
#sideGenerationPanel:has(.sideGenerationIdle),
.sideGenerationPanel:has(.sideGenerationIdle) {
  display: none !important;
}

#evoluaSidebar .evoluaSidebarFooter {
  flex-shrink: 0 !important;
  padding-top: 4px !important;
  gap: 4px !important;
}

#evoluaSidebar #homeClock {
  padding: 2px 10px !important;
  margin: 0 !important;
}

#evoluaSidebar #themeToggleBtn {
  min-height: 28px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
}

/* 3. Corrigir #userControl (elemento fixo irmao do sidebar, em uma linha no desktop e sem bloco branco em theme-day) */
@media (max-width: 850px) {
  #evoluaSidebar {
    padding-bottom: 18px !important;
  }
}

@media (min-width: 851px) {
  #userControl {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 8px !important;
    left: 10px !important;
    width: 212px !important;
    max-width: 212px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 6px 0 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--dashboard-line, #26313d) !important;
    border-radius: 0 !important;
    background: var(--dashboard-bg, #050c15) !important;
    color: var(--dashboard-text, #edf0f6) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  #userControl .userAccountButton {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 4px 6px !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  #userControl .userAccountName {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
  }

  #userControl .userAccountAvatar {
    width: 22px !important;
    height: 22px !important;
    flex: none !important;
  }

  #userControl .themeDayNightToggle,
  #userControl .userLogoutButton,
  #userControl .userAdminButton {
    min-height: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
}

body.theme-minimal.theme-day #userControl,
body.theme-day #userControl {
  background: var(--dashboard-bg, #f4f7fa) !important;
  border-color: var(--dashboard-line, #dbe3eb) !important;
  color: var(--dashboard-text, #172434) !important;
  box-shadow: none !important;
}

body.theme-minimal.theme-day #userControl button,
body.theme-day #userControl button {
  background: var(--dashboard-card, #ffffff) !important;
  border-color: var(--dashboard-line, #cbd5e1) !important;
  color: var(--dashboard-text, #172434) !important;
}

/* 4. Impedir corte no topo de modais (.appDialogBackdrop / .appDialog) */
.appDialogBackdrop {
  display: flex !important;
  align-items: center !important;
  align-items: safe center !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.appDialogBackdrop .appDialog {
  max-height: calc(100vh - 32px) !important;
  margin: auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* 5. Barra de Plano de Assinatura, Badge Plano Top e Modais do Hub */
.hubPlanSwitcherBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-sizing: border-box;
}

body.theme-day .hubPlanSwitcherBar {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-color: #cbd5e1;
  color: #0f172a;
}

.hubPlanSwitcherInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hubPlanSwitcherTitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

body.theme-day .hubPlanSwitcherTitle {
  color: #0f172a;
}

.hubPlanSwitcherSub {
  font-size: 0.8rem;
  color: #94a3b8;
}

body.theme-day .hubPlanSwitcherSub {
  color: #475569;
}

.hubPlanPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hubPlanPillBtn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.hubPlanPillBtn:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
}

.hubPlanPillBtn.is-active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: #93c5fd;
  color: #ffffff;
}

.hubPlanPillBtn.is-top.is-active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #fcd34d;
  color: #ffffff;
}

body.theme-day .hubPlanPillBtn {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

body.theme-day .hubPlanPillBtn.is-active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
}

body.theme-day .hubPlanPillBtn.is-top.is-active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
}

.hubTopPlanBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

body.theme-day .hubTopPlanBadge {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.hubModalDialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0f172a;
  color: #f1f5f9;
  padding: 0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.65);
  overflow: hidden;
  box-sizing: border-box;
}

.hubModalDialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

body.theme-day .hubModalDialog {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.hubModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.theme-day .hubModalHeader {
  border-bottom-color: #e2e8f0;
}

.hubModalBody {
  padding: 16px 20px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.hubModalFooter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.theme-day .hubModalFooter {
  border-top-color: #e2e8f0;
}

.hubSubjectsManagerList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hubSubjectManagerRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-sizing: border-box;
}

body.theme-day .hubSubjectManagerRow {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.hubSubjectManagerMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  flex: 1 1 220px;
}

.hubSubjectManagerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hubSaveToast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #065f46;
  color: #ecfdf5;
  border: 1px solid #34d399;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  font-size: 0.88rem;
  font-weight: 600;
}

.hubSaveToast.is-error {
  background: #7f1d1d;
  color: #fef2f2;
  border-color: #f87171;
}
