/* ==========================================================================
   HOME V2 — INÍCIO REDESENHADO (GCP-ACE)
   Ativação: <body data-home="v2">  ·  Reversão: remover o atributo
   Escopo: SOMENTE a aba Início (tab1) + barra de abas inferior + botão de
   informações no topo. Nenhum estilo das telas internas é alterado.
   Paleta V1: as mesmas cores do layout aprovado (verde/laranja/teal/azul/roxo).
   ========================================================================== */

:root,
html,
body[data-home="v2"] {
  --hv2-bg: #0A0F12;
  --hv2-surface: #141C21;
  --hv2-surface-2: #1A242A;
  --hv2-border: #28373E;
  --hv2-border-soft: #1E2A31;
  --hv2-text: #EEF4F2;
  --hv2-muted: #94A5AA;

  --hv2-green: #22C55E;
  --hv2-green-d: #16A34A;
  --hv2-green-soft: rgba(34, 197, 94, 0.14);
  --hv2-orange: #F97316;
  --hv2-orange-soft: rgba(249, 115, 22, 0.14);
  --hv2-teal: #14B8A6;
  --hv2-teal-soft: rgba(20, 184, 166, 0.14);
  --hv2-blue: #3B82F6;
  --hv2-blue-soft: rgba(59, 130, 246, 0.14);
  --hv2-purple: #B98BFF;
  --hv2-purple-soft: rgba(168, 85, 247, 0.14);
  --hv2-indigo: #818CF8;
  --hv2-indigo-soft: rgba(129, 140, 248, 0.14);

  --hv2-r-card: 16px;
  --hv2-r-btn: 12px;
  --hv2-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

/* --------------------------------------------------------------------------
   1. LEGADO OCULTO — partes do dashboard antigo substituídas pela home v2
   (os elementos continuam no DOM porque o JS grava valores neles)
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hub-main-dashboard .hub-hero-grid,
body[data-home="v2"] .hub-main-dashboard .hub-pills-wrap,
body[data-home="v2"] .hub-main-dashboard .hub-section-block,
body[data-home="v2"] .hub-main-dashboard .hub-backup-banner {
  display: none !important;
}

body[data-home="v2"] .main-dashboard > #main-dashboard-title,
body[data-home="v2"] .main-dashboard > .dashboard-grid,
body[data-home="v2"] .main-dashboard > .dashboard-actions,
body[data-home="v2"] .main-dashboard > .mgmt-panel,
body[data-home="v2"] .main-dashboard > #notifSectionInicio,
body[data-home="v2"] .main-dashboard > #backupSectionInicio {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. ESTRUTURA GERAL DO INÍCIO (fundo #0A0F12 fiel ao modelo V1)
   -------------------------------------------------------------------------- */
html body[data-home="v2"] #tab1,
html body[data-home="v2"] .hub-main-dashboard {
  background-color: #0A0F12 !important;
  color: #EEF4F2 !important;
}

html:not([data-theme="light"]) body[data-home="v2"]:has(#tab1.active),
html:not([data-theme="light"]) body[data-home="v2"]:has(#tab1.active) #app {
  background-color: #0A0F12 !important;
  background-image: none !important;
}

body[data-home="v2"] .hub-main-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 8px 0 !important;
  display: block;
  box-sizing: border-box !important;
}

body[data-home="v2"] .hv2-greet {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
}

body[data-home="v2"] .hv2-greet-title {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
  letter-spacing: -0.2px;
}

body[data-home="v2"] .hv2-greet-date {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94A5AA !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* --------------------------------------------------------------------------
   3. BLOCO DE HOJE (card principal)
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-block {
  position: relative;
  background-color: #141C21 !important;
  border: 2px solid #22C55E !important;
  border-radius: 16px !important;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.24), 0 12px 34px rgba(34, 197, 94, 0.18) !important;
}

body[data-home="v2"] .hv2-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

body[data-home="v2"] .hv2-block-tag,
body[data-home="v2"] .hv2-block-resume {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background-color: rgba(34, 197, 94, 0.18) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  color: #86EFAC !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px;
}

body[data-home="v2"] .hv2-block-time {
  color: #F97316 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-home="v2"] .hv2-block-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body[data-home="v2"] .hv2-block-num {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-block-unit {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-block-subgoals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

body[data-home="v2"] .hv2-block-subgoal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #101B17 !important;
  border: 2px solid #22C55E !important;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] #hv2BlockTeoriaRow {
  background-color: #101B17 !important;
  border-color: #22C55E !important;
}

body[data-home="v2"] #hv2BlockCardsRow {
  background-color: #191512 !important;
  border-color: #F97316 !important;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] #hv2BlockQuestoesRow {
  background-color: #0F1A1D !important;
  border-color: #14B8A6 !important;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] .hv2-subgoal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

body[data-home="v2"] .hv2-dot-green {
  background-color: #22C55E !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65) !important;
}

body[data-home="v2"] .hv2-dot-orange {
  background-color: #F97316 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.65) !important;
}

body[data-home="v2"] .hv2-dot-teal {
  background-color: #14B8A6 !important;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.65) !important;
}

body[data-home="v2"] .hv2-subgoal-num {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  min-width: 40px;
  color: #86EFAC !important;
}

body[data-home="v2"] #hv2BlockCards {
  color: #FDBA74 !important;
}

body[data-home="v2"] #hv2BlockQuestoesNum {
  color: #5EEAD4 !important;
}

body[data-home="v2"] .hv2-subgoal-unit {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hv2-block-sub {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
  color: #94A5AA !important;
}

body[data-home="v2"] .hv2-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  flex-wrap: wrap;
}

body[data-home="v2"] .hv2-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #94A5AA !important;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

body[data-home="v2"] .hv2-step:hover {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-color: #26533C !important;
  color: #86EFAC !important;
}

/* Barra de sequência guiada durante o bloco (Teoria -> Cards -> Questões) */
body[data-home="v2"] .hv2-flow-bar {
  margin: 0 0 14px 0;
  padding: 13px 15px;
  border-radius: 16px;
  background-color: #141C21 !important;
  border: 1.5px solid #22C55E !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body[data-home="v2"] .hv2-flow-bar.hidden {
  display: none !important;
}

body[data-home="v2"] .hv2-flow-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body[data-home="v2"] .hv2-flow-pill {
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background-color: #1A2329 !important;
  border: 1px solid #28373E !important;
  color: #94A5AA !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

body[data-home="v2"] .hv2-flow-pill.done {
  background-color: rgba(34, 197, 94, 0.16) !important;
  border-color: #22C55E !important;
  color: #86EFAC !important;
}

body[data-home="v2"] .hv2-flow-pill.curr {
  background-color: rgba(34, 197, 94, 0.24) !important;
  border-color: #22C55E !important;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hv2-flow-kicker {
  display: block;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  color: #86EFAC !important;
  margin-bottom: 3px;
}

body[data-home="v2"] .hv2-flow-title {
  display: block;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
  margin-bottom: 10px;
}

body[data-home="v2"] .hv2-flow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-home="v2"] .hv2-flow-primary {
  min-height: 38px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
  background-color: #22C55E !important;
  border: none !important;
  color: #052E16 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

body[data-home="v2"] .hv2-flow-next {
  min-height: 38px !important;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  background-color: #1A2329 !important;
  border: 1px solid #3B82F6 !important;
  color: #93C5FD !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

body[data-home="v2"] .hv2-flow-close {
  margin-left: auto;
  min-height: 32px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  border: 1px solid #28373E !important;
  color: #94A5AA !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

body[data-home="v2"] .hv2-step::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #33454D !important;
}

body[data-home="v2"] .hv2-step.on {
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-step.on::before {
  background-color: #22C55E !important;
}

body[data-home="v2"] .hv2-step-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: #33454D !important;
}

body[data-home="v2"] .hv2-cta {
  width: 100%;
  min-height: 48px !important;
  border: none !important;
  border-radius: 12px !important;
  background-color: #22C55E !important;
  background-image: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
  color: #052E16 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.32) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-home="v2"] .hv2-cta:hover {
  transform: translateY(-1px);
  background-color: #2ED267 !important;
  background-image: linear-gradient(135deg, #2ED267 0%, #17B052 100%) !important;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.42) !important;
}

body[data-home="v2"] .hv2-cta:focus-visible {
  outline: 3px solid #86EFAC !important;
  outline-offset: 2px !important;
}

body[data-home="v2"] .hv2-block-foot {
  margin: 12px 0 0 !important;
  font-size: 10.5px !important;
  color: #6F8189 !important;
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   4. ATALHOS 2×2 (cores por área)
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

body[data-home="v2"] .hv2-tile {
  display: block;
  width: 100%;
  min-height: 76px !important;
  text-align: left;
  background-color: #141C21 !important;
  border: 2px solid #3D5564 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  color: #EEF4F2 !important;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

body[data-home="v2"] .hv2-tile:hover {
  transform: translateY(-2px);
  background-color: #1A242A !important;
  border-color: #5C7B8E !important;
}

body[data-home="v2"] .hv2-tile:focus-visible {
  outline: 3px solid #22C55E !important;
  outline-offset: 2px !important;
}

body[data-home="v2"] .hv2-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

body[data-home="v2"] .hv2-tile-ico {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-home="v2"] .hv2-tile-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-home="v2"] .hv2-tile-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-home="v2"] .hv2-tile-desc {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #94A5AA !important;
  margin-top: 2px;
}

body[data-home="v2"] .hv2-bar {
  height: 4px;
  border-radius: 3px;
  background-color: #26353C !important;
  overflow: hidden;
}

body[data-home="v2"] .hv2-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background-color: #22C55E !important;
  transition: width 0.4s ease;
}

body[data-home="v2"] .hv2-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-home="v2"] .hv2-bar-row .hv2-bar {
  flex: 1;
}

body[data-home="v2"] .hv2-bar-pct {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #94A5AA !important;
  min-width: 30px;
  text-align: right;
}

/* cores por área — aplica tanto nos tiles 2×2 (.hv2-tile-ico) quanto nas linhas (.hv2-row-ico) e destaca as bordas dos cards */
body[data-home="v2"] .hv2-tile.hv2-c-green,
body[data-home="v2"] .hv2-row.hv2-c-green {
  border-color: rgba(34, 197, 94, 0.72) !important;
}
body[data-home="v2"] .hv2-c-green .hv2-tile-ico,
body[data-home="v2"] .hv2-c-green .hv2-row-ico {
  background-color: rgba(34, 197, 94, 0.18) !important;
  border: 1px solid rgba(34, 197, 94, 0.55) !important;
  color: #22C55E !important;
}
body[data-home="v2"] .hv2-c-green .hv2-bar > i {
  background-color: #22C55E !important;
}

body[data-home="v2"] .hv2-tile.hv2-c-orange,
body[data-home="v2"] .hv2-row.hv2-c-orange {
  border-color: rgba(249, 115, 22, 0.72) !important;
}
body[data-home="v2"] .hv2-c-orange .hv2-tile-ico,
body[data-home="v2"] .hv2-c-orange .hv2-row-ico {
  background-color: rgba(249, 115, 22, 0.18) !important;
  border: 1px solid rgba(249, 115, 22, 0.55) !important;
  color: #F97316 !important;
}
body[data-home="v2"] .hv2-c-orange .hv2-bar > i {
  background-color: #F97316 !important;
}

body[data-home="v2"] .hv2-tile.hv2-c-teal,
body[data-home="v2"] .hv2-row.hv2-c-teal {
  border-color: rgba(20, 184, 166, 0.72) !important;
}
body[data-home="v2"] .hv2-c-teal .hv2-tile-ico,
body[data-home="v2"] .hv2-c-teal .hv2-row-ico {
  background-color: rgba(20, 184, 166, 0.18) !important;
  border: 1px solid rgba(20, 184, 166, 0.55) !important;
  color: #14B8A6 !important;
}
body[data-home="v2"] .hv2-c-teal .hv2-bar > i {
  background-color: #14B8A6 !important;
}

body[data-home="v2"] .hv2-tile.hv2-c-blue,
body[data-home="v2"] .hv2-row.hv2-c-blue {
  border-color: rgba(59, 130, 246, 0.72) !important;
}
body[data-home="v2"] .hv2-c-blue .hv2-tile-ico,
body[data-home="v2"] .hv2-c-blue .hv2-row-ico {
  background-color: rgba(59, 130, 246, 0.18) !important;
  border: 1px solid rgba(59, 130, 246, 0.55) !important;
  color: #3B82F6 !important;
}
body[data-home="v2"] .hv2-c-blue .hv2-bar > i {
  background-color: #3B82F6 !important;
}

body[data-home="v2"] .hv2-tile.hv2-c-purple,
body[data-home="v2"] .hv2-row.hv2-c-purple {
  border-color: rgba(185, 139, 255, 0.72) !important;
}
body[data-home="v2"] .hv2-c-purple .hv2-tile-ico,
body[data-home="v2"] .hv2-c-purple .hv2-row-ico {
  background-color: rgba(168, 85, 247, 0.18) !important;
  border: 1px solid rgba(185, 139, 255, 0.55) !important;
  color: #B98BFF !important;
}
body[data-home="v2"] .hv2-c-purple .hv2-bar > i {
  background-color: #B98BFF !important;
}

body[data-home="v2"] .hv2-tile.hv2-c-indigo,
body[data-home="v2"] .hv2-row.hv2-c-indigo {
  border-color: rgba(129, 140, 248, 0.72) !important;
}
body[data-home="v2"] .hv2-c-indigo .hv2-tile-ico,
body[data-home="v2"] .hv2-c-indigo .hv2-row-ico {
  background-color: rgba(129, 140, 248, 0.18) !important;
  border: 1px solid rgba(129, 140, 248, 0.55) !important;
  color: #818CF8 !important;
}
body[data-home="v2"] .hv2-c-indigo .hv2-bar > i {
  background-color: #818CF8 !important;
}

/* --------------------------------------------------------------------------
   5. SEQUÊNCIA / META
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #141C21 !important;
  border: 1.5px solid #3D5564 !important;
  border-radius: 14px !important;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] .hv2-streak-fire {
  color: #F97316 !important;
  display: inline-flex;
}

body[data-home="v2"] .hv2-streak-num {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #F97316 !important;
  line-height: 1;
}

body[data-home="v2"] .hv2-streak-lbl {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94A5AA !important;
}

body[data-home="v2"] .hv2-streak-meta {
  margin-left: auto;
  text-align: right;
  min-width: 120px;
}

body[data-home="v2"] .hv2-streak-meta-txt {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #22C55E !important;
  margin-bottom: 5px;
  display: block;
}

/* --------------------------------------------------------------------------
   6. BOTÃO "VER TODOS OS MÓDULOS"
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-more {
  width: 100%;
  margin-top: 12px;
  min-height: 52px !important;
  background-color: #10181C !important;
  border: 1.5px dashed #3D5564 !important;
  border-radius: 13px !important;
  color: #EEF4F2 !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body[data-home="v2"] .hv2-more:hover {
  border-color: #22C55E !important;
  background-color: #12201A !important;
}

body[data-home="v2"] .hv2-more b {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-more span {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #94A5AA !important;
}

/* --------------------------------------------------------------------------
   7. SEGUNDA DOBRA — números, grupos, constância, simulados
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-fold2 {
  margin-top: 22px;
  scroll-margin-top: 84px;
}

body[data-home="v2"] .hv2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: #141C21 !important;
  border: 1.5px solid #3D5564 !important;
  border-radius: 14px !important;
  padding: 12px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] .hv2-stat {
  text-align: center;
  position: relative;
}

body[data-home="v2"] .hv2-stat + .hv2-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background-color: #3D5564 !important;
}

body[data-home="v2"] .hv2-stat b {
  display: block;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.1;
}

body[data-home="v2"] .hv2-stat span {
  display: block;
  font-size: 10px !important;
  color: #94A5AA !important;
  margin-top: 4px;
}

body[data-home="v2"] .hv2-group-title {
  margin: 18px 0 8px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  color: #94A5AA !important;
  text-transform: uppercase;
}

body[data-home="v2"] .hv2-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #141C21 !important;
  border: 1.5px solid #3D5564 !important;
  border-radius: 13px !important;
  padding: 12px !important;
  margin-bottom: 8px;
  color: #EEF4F2 !important;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body[data-home="v2"] .hv2-row:hover {
  background-color: #1A242A !important;
  border-color: #5C7B8E !important;
  transform: translateX(2px);
}

body[data-home="v2"] .hv2-row:focus-visible {
  outline: 3px solid #22C55E !important;
  outline-offset: 2px !important;
}

body[data-home="v2"] .hv2-row-ico {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-home="v2"] .hv2-row-txt {
  flex: 1;
  min-width: 0;
}

body[data-home="v2"] .hv2-row-name {
  display: block;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-row-desc {
  display: block;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94A5AA !important;
  margin-top: 2px;
}

body[data-home="v2"] .hv2-row-bar {
  margin-top: 7px;
}

body[data-home="v2"] .hv2-row-chev {
  color: #6F8189 !important;
  display: inline-flex;
  min-width: 16px;
  justify-content: flex-end;
}

body[data-home="v2"] .hv2-badge {
  display: none;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: #A855F7 !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-align: center;
}

body[data-home="v2"] .hv2-badge[data-show="1"] {
  display: inline-block;
}

/* constância */
body[data-home="v2"] .hv2-heat {
  background-color: #141C21 !important;
  border: 1.5px solid #3D5564 !important;
  border-radius: 14px !important;
  padding: 14px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

body[data-home="v2"] .hv2-heat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

body[data-home="v2"] .hv2-heat-title {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-heat-sub {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #22C55E !important;
}

body[data-home="v2"] .hv2-heat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

body[data-home="v2"] .hv2-heat-cell {
  aspect-ratio: 2.2 / 1;
  border-radius: 3px;
  background-color: #26353C !important;
}

body[data-home="v2"] .hv2-heat-cell.l1 { background-color: rgba(34, 197, 94, 0.35) !important; }
body[data-home="v2"] .hv2-heat-cell.l2 { background-color: #22C55E !important; }
body[data-home="v2"] .hv2-heat-cell.l3 { background-color: #F97316 !important; }

/* simulados (lista gerada pelo layout-hub.js) */
body[data-home="v2"] .hv2-quiz .hub-quiz-card {
  background-color: #141C21 !important;
  border: 1px solid #28373E !important;
  border-radius: 13px !important;
  padding: 12px 14px !important;
}

body[data-home="v2"] .hv2-quiz .hub-quiz-card:hover {
  background-color: #1A242A !important;
  border-color: #22C55E !important;
}

/* --------------------------------------------------------------------------
   8. TOPO — botões de ação blindados conforme screenshot oficial
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hdr-action-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  padding: 0 !important;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hdr-btn-calendar {
  background-color: #2563EB !important;
  border: 1px solid #1D4ED8 !important;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hdr-btn-calendar:hover {
  background-color: #1D4ED8 !important;
  border-color: #1E40AF !important;
  transform: translateY(-1px);
}

body[data-home="v2"] .hdr-btn-info,
body[data-home="v2"] .hdr-btn-search,
body[data-home="v2"] .hdr-btn-settings {
  background-color: #222328 !important;
  border: 1px solid #38393F !important;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hdr-btn-info:hover,
body[data-home="v2"] .hdr-btn-search:hover,
body[data-home="v2"] .hdr-btn-settings:hover {
  background-color: #2C2D34 !important;
  border-color: #6E6E74 !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. BARRA DE ABAS INFERIOR
   -------------------------------------------------------------------------- */
body[data-home="v2"] #app {
  padding-bottom: 86px;
}

body[data-home="v2"] .hv2-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 380;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background-color: #0B1114 !important;
  border-top: 1px solid #28373E !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

body[data-home="v2"] .hv2-tab {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: 62px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  cursor: pointer;
  color: #FFFFFF !important;
}

body[data-home="v2"] .hv2-tab-ico {
  width: 40px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #141C21 !important;
  border: 1px solid #28373E !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body[data-home="v2"] .hv2-tab-lbl {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

body[data-home="v2"] .hv2-tab-dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background-color: transparent !important;
}

/* cores por aba (ícone) */
body[data-home="v2"] .hv2-tab[data-c="green"]  .hv2-tab-ico { color: #22C55E !important; }
body[data-home="v2"] .hv2-tab[data-c="orange"] .hv2-tab-ico { color: #F97316 !important; }
body[data-home="v2"] .hv2-tab[data-c="purple"] .hv2-tab-ico { color: #B98BFF !important; }
body[data-home="v2"] .hv2-tab[data-c="blue"]   .hv2-tab-ico { color: #3B82F6 !important; }

/* ativo */
body[data-home="v2"] .hv2-tab.active .hv2-tab-ico {
  background-color: rgba(34, 197, 94, 0.16) !important;
  border-color: #22C55E !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35) !important;
}

body[data-home="v2"] .hv2-tab.active[data-c="orange"] .hv2-tab-ico {
  background-color: rgba(249, 115, 22, 0.14) !important;
  border-color: #F97316 !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35) !important;
}

body[data-home="v2"] .hv2-tab.active[data-c="purple"] .hv2-tab-ico {
  background-color: rgba(168, 85, 247, 0.14) !important;
  border-color: #B98BFF !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35) !important;
}

body[data-home="v2"] .hv2-tab.active[data-c="blue"] .hv2-tab-ico {
  background-color: rgba(59, 130, 246, 0.14) !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35) !important;
}

body[data-home="v2"] .hv2-tab.active .hv2-tab-dot {
  background-color: #22C55E !important;
}

body[data-home="v2"] .hv2-tab.active[data-c="orange"] .hv2-tab-dot { background-color: #F97316 !important; }
body[data-home="v2"] .hv2-tab.active[data-c="purple"] .hv2-tab-dot { background-color: #B98BFF !important; }
body[data-home="v2"] .hv2-tab.active[data-c="blue"]   .hv2-tab-dot { background-color: #3B82F6 !important; }

body[data-home="v2"] .hv2-tab:focus-visible .hv2-tab-ico {
  outline: 3px solid #86EFAC !important;
  outline-offset: 2px !important;
}

/* --------------------------------------------------------------------------
   10. PAINEL "MAIS" (bottom sheet)
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(3px);
}

body[data-home="v2"] .hv2-sheet.hidden {
  display: none !important;
}

body[data-home="v2"] .hv2-sheet-card {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  background-color: #121A1E !important;
  border: 1px solid #28373E !important;
  border-bottom: none !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.55) !important;
}

body[data-home="v2"] .hv2-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #28373E !important;
}

body[data-home="v2"] .hv2-sheet-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-sheet-close {
  background-color: transparent !important;
  border: none !important;
  color: #94A5AA !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer;
  padding: 6px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

body[data-home="v2"] .hv2-sheet-close:hover {
  color: #FFFFFF !important;
}

body[data-home="v2"] .hv2-sheet .hv2-row:last-child {
  margin-bottom: 0;
}

body[data-home="v2"] .hv2-sheet-note {
  margin: 12px 0 0 !important;
  font-size: 10.5px !important;
  color: #6F8189 !important;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10B. MODAL DE CALENDÁRIO DA PROVA E META DIÁRIA
   -------------------------------------------------------------------------- */
body[data-home="v2"] .hv2-cal-card {
  max-width: 520px;
}

body[data-home="v2"] .hv2-cal-label {
  display: block;
  margin: 0 0 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #94A5AA !important;
  letter-spacing: 0.3px;
}

body[data-home="v2"] .hv2-cal-input-wrap {
  margin-bottom: 10px;
}

body[data-home="v2"] .hv2-cal-date-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px !important;
  background-color: #141C21 !important;
  border: 1.5px solid #2563EB !important;
  color: #EEF4F2 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color-scheme: dark;
  cursor: pointer;
}

body[data-home="v2"] .hv2-cal-presets,
body[data-home="v2"] .hv2-cal-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-home="v2"] .hv2-cal-chip,
body[data-home="v2"] .hv2-cal-goal {
  flex: 1 1 auto;
  min-height: 36px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  background-color: #1A2329 !important;
  border: 1px solid #28373E !important;
  color: #EEF4F2 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: center;
  cursor: pointer;
}

body[data-home="v2"] .hv2-cal-chip.active,
body[data-home="v2"] .hv2-cal-goal.active {
  background-color: rgba(34, 197, 94, 0.20) !important;
  border-color: #22C55E !important;
  color: #86EFAC !important;
  font-weight: 800 !important;
}

body[data-home="v2"] .hv2-cal-summary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background-color: #141C21 !important;
  border: 1.5px solid #26533C !important;
}

body[data-home="v2"] .hv2-cal-summary-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.7px;
  color: #86EFAC !important;
}

body[data-home="v2"] .hv2-cal-countdown-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #222F36 !important;
}

body[data-home="v2"] .hv2-cal-days-num {
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #86EFAC !important;
}

body[data-home="v2"] .hv2-cal-days-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-home="v2"] .hv2-cal-days-txt b {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-cal-days-txt span {
  font-size: 11px !important;
  color: #94A5AA !important;
}

body[data-home="v2"] .hv2-cal-targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-home="v2"] .hv2-cal-target-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body[data-home="v2"] .hv2-cal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

body[data-home="v2"] .hv2-cal-target-row b {
  display: block;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #EEF4F2 !important;
}

body[data-home="v2"] .hv2-cal-target-row span {
  display: block;
  font-size: 11px !important;
  color: #94A5AA !important;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  body[data-home="v2"] .hv2-tab-lbl { font-size: 10px !important; }
  body[data-home="v2"] .hv2-tile-name { font-size: 12px !important; }
  body[data-home="v2"] .hv2-block-num { font-size: 30px !important; }
}

@media (min-width: 640px) {
  body[data-home="v2"] .hv2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-home="v2"] .hv2-greet-title { font-size: 24px !important; }
  body[data-home="v2"] .hv2-heat-grid { gap: 4px; }
  body[data-home="v2"] .hv2-tab-lbl { font-size: 11.5px !important; }
}

@media (min-width: 900px) {
  body[data-home="v2"] .hub-main-dashboard { padding: 4px 0 8px 0 !important; max-width: 100% !important; }
  body[data-home="v2"] .hv2-block { padding: 20px; }
  body[data-home="v2"] .hv2-block-num { font-size: 40px !important; }
  body[data-home="v2"] .hv2-tile { min-height: 88px !important; }
  body[data-home="v2"] .hv2-tabbar {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0;
  }
}

/* --------------------------------------------------------------------------
   12. ACESSIBILIDADE / PREFERÊNCIAS
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body[data-home="v2"] .hv2-tile,
  body[data-home="v2"] .hv2-row,
  body[data-home="v2"] .hv2-cta,
  body[data-home="v2"] .hv2-tab-ico,
  body[data-home="v2"] .hv2-bar > i {
    transition: none !important;
  }
  body[data-home="v2"] .hv2-tile:hover,
  body[data-home="v2"] .hv2-row:hover,
  body[data-home="v2"] .hv2-cta:hover {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. TEMA CLARO (mantém contraste quando o usuário escolhe "Claro")
   -------------------------------------------------------------------------- */
html[data-theme="light"] body[data-home="v2"] {
  --hv2-bg: #F1F5F3;
  --hv2-surface: #FFFFFF;
  --hv2-surface-2: #F4F8F6;
  --hv2-border: #D6E2DC;
  --hv2-border-soft: #E3ECE7;
  --hv2-text: #12211B;
  --hv2-muted: #5A6B66;
}

html[data-theme="light"] body[data-home="v2"] #tab1,
html[data-theme="light"] body[data-home="v2"] .hub-main-dashboard {
  background-color: #F1F5F3 !important;
  color: #12211B !important;
}

html[data-theme="light"] body[data-home="v2"] .hv2-greet-title,
html[data-theme="light"] body[data-home="v2"] .hv2-block-num,
html[data-theme="light"] body[data-home="v2"] .hv2-step.on,
html[data-theme="light"] body[data-home="v2"] .hv2-tile-name,
html[data-theme="light"] body[data-home="v2"] .hv2-more,
html[data-theme="light"] body[data-home="v2"] .hv2-more b,
html[data-theme="light"] body[data-home="v2"] .hv2-row,
html[data-theme="light"] body[data-home="v2"] .hv2-row-name,
html[data-theme="light"] body[data-home="v2"] .hv2-heat-title,
html[data-theme="light"] body[data-home="v2"] .hv2-sheet-title {
  color: #12211B !important;
}

html[data-theme="light"] body[data-home="v2"] .hv2-greet-date,
html[data-theme="light"] body[data-home="v2"] .hv2-block-unit,
html[data-theme="light"] body[data-home="v2"] .hv2-block-sub,
html[data-theme="light"] body[data-home="v2"] .hv2-step,
html[data-theme="light"] body[data-home="v2"] .hv2-tile-desc,
html[data-theme="light"] body[data-home="v2"] .hv2-bar-pct,
html[data-theme="light"] body[data-home="v2"] .hv2-streak-lbl,
html[data-theme="light"] body[data-home="v2"] .hv2-more span,
html[data-theme="light"] body[data-home="v2"] .hv2-stat span,
html[data-theme="light"] body[data-home="v2"] .hv2-group-title,
html[data-theme="light"] body[data-home="v2"] .hv2-row-desc,
html[data-theme="light"] body[data-home="v2"] .hv2-sheet-close {
  color: #5A6B66 !important;
}

html[data-theme="light"] body[data-home="v2"] .hv2-block {
  background-color: #FFFFFF !important;
  border-color: #9BD8B5 !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), 0 12px 30px rgba(22, 163, 74, 0.12) !important;
}

html[data-theme="light"] body[data-home="v2"] .hv2-block-tag {
  background-color: rgba(34, 197, 94, 0.16) !important;
  color: #15803D !important;
}

html[data-theme="light"] body[data-home="v2"] .hv2-bar { background-color: #DCE7E1 !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-step::before { background-color: #C4D4CD !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-step-line { background-color: #C4D4CD !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-heat-cell { background-color: #E1EAE5 !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-more { background-color: #FFFFFF !important; border-color: #D6E2DC !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-more:hover { background-color: #F1FBF5 !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-tile,
html[data-theme="light"] body[data-home="v2"] .hv2-row,
html[data-theme="light"] body[data-home="v2"] .hv2-streak,
html[data-theme="light"] body[data-home="v2"] .hv2-stats,
html[data-theme="light"] body[data-home="v2"] .hv2-heat,
html[data-theme="light"] body[data-home="v2"] .hv2-quiz .hub-quiz-card {
  background-color: #FFFFFF !important;
  border-color: #D6E2DC !important;
}
html[data-theme="light"] body[data-home="v2"] .hv2-tile:hover,
html[data-theme="light"] body[data-home="v2"] .hv2-row:hover {
  background-color: #F4F8F6 !important;
}
html[data-theme="light"] body[data-home="v2"] .hv2-tabbar {
  background-color: #0B1114 !important;
  border-top-color: #28373E !important;
}
html[data-theme="light"] body[data-home="v2"] .hv2-tab-lbl { color: #FFFFFF !important; }
html[data-theme="light"] body[data-home="v2"] .hv2-sheet-card {
  background-color: #FFFFFF !important;
  border-color: #D6E2DC !important;
}
html[data-theme="light"] body[data-home="v2"] .hv2-block-foot { color: #6B7C76 !important; }

/* --------------------------------------------------------------------------
   14. CARDS AMPLIADOS EM LARGURA TOTAL (100%) EM TODO O APP
   Remove os espaços vazios nas bordas laterais e os limitadores max-width
   centralizados em todas as abas (Início, Teoria, Flashcards, Mapa Mental,
   Labs e Questões).
   -------------------------------------------------------------------------- */
html body #app,
html body[data-home="v2"] #app,
html[data-theme="dark"] body #app,
html[data-theme="light"] body #app {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

html body .app-header-v2,
html body[data-home="v2"] .app-header-v2 {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}

html body .tab-content,
html body[data-home="v2"] .tab-content,
html body #tab1.tab-content,
html body #tab2.tab-content,
html body #tab3.tab-content,
html body #tab4.tab-content,
html body #tab5.tab-content,
html body #tab6.tab-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 6px 6px 26px 6px !important;
  box-sizing: border-box !important;
}

html body .hub-main-dashboard,
html body[data-home="v2"] .hub-main-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 8px 0 !important;
  box-sizing: border-box !important;
}

/* Cards da tela inicial (#tab1) em 100% da largura */
html body[data-home="v2"] .hv2-greet,
html body[data-home="v2"] .hv2-block,
html body[data-home="v2"] .hv2-block-subgoals,
html body[data-home="v2"] .hv2-block-subgoal,
html body[data-home="v2"] .hv2-grid,
html body[data-home="v2"] .hv2-tile,
html body[data-home="v2"] .hv2-list,
html body[data-home="v2"] .hv2-row,
html body[data-home="v2"] .hv2-stats,
html body[data-home="v2"] .hv2-streak,
html body[data-home="v2"] .hv2-heat,
html body[data-home="v2"] .hv2-more,
html body[data-home="v2"] .hv2-second {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Containers e cards de todas as abas internas (#tab2 Teoria, #tab3 Mapa Mental, #tab4 Flashcards, #tab5 Labs, #tab6 Questões) */
html body .coverage-panel,
html body .teoria-intro,
html body .teoria-filter,
html body .teoria-search-wrap,
html body #teoria-container,
html body .teoria-area-block,
html body .teoria-card,
html body .theory-content,
html body .theory-body,
html body .reading-panel,
html body .lesson-content,
html body .article-content,
html body .modal-theory,
html body [data-view="theory"],
html body .selector-wrap,
html body #mind-content,
html body .mind-card,
html body .mind-summary-shell,
html body .mind-summary-intro,
html body .mind-summary-intro p,
html body .mind-summary-canvas,
html body .fc-topbar-header,
html body .fc-container,
html body .fc-top-progress-bar,
html body .fc-stats-bar,
html body .fc-tools-bar,
html body .flashcard-wrap,
html body .flashcard-inner,
html body .fc-face,
html body .fc-actions-container,
html body .fc-rating-grid,
html body .fc-nav-row,
html body .fc-schedule-box,
html body .labs-intro,
html body .labs-stats-bar,
html body .labs-filter-wrap,
html body .lab-grid,
html body #labs-container,
html body .lab-card,
html body .quiz-stats,
html body .quiz-tools,
html body #quiz-exam-panel,
html body #quiz-timer,
html body #quiz-history-wrap,
html body .quiz-box,
html body #quiz-container,
html body .quiz-option,
html body .quiz-feedback,
html body .main-dashboard,
html body .dashboard-grid,
html body .dashboard-card,
html body #sections-container,
html body .area-section,
html body .topic-item,
html body .backup-panel,
html body .review-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

html body .theory-content p,
html body .theory-body p,
html body .reading-panel p,
html body .lesson-content p,
html body .article-content p,
html body [data-view="theory"] p {
  max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   15. LAYOUT DESKTOP INTELIGENTE (@media min-width: 960px) — BENTO GRID 2 COLUNAS
   Mantém o Celular (< 960px) 100% igual (cards ampliados até a borda lateral)
   e organiza o Computador Desktop em 2 colunas proporcionais lado a lado.
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
  html body .app-header-v2,
  html body[data-home="v2"] .app-header-v2 {
    padding: 12px 24px !important;
  }

  html body .header-inner-v2 {
    max-width: 1380px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  html body .tab-content,
  html body[data-home="v2"] .tab-content,
  html body #tab1.tab-content,
  html body #tab2.tab-content,
  html body #tab3.tab-content,
  html body #tab4.tab-content,
  html body #tab5.tab-content,
  html body #tab6.tab-content {
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 14px 24px 36px 24px !important;
  }

  /* Dashboard Principal (#tab1) em 2 Colunas Lado a Lado (Bento Grid) */
  html body[data-home="v2"] .hub-main-dashboard {
    display: grid !important;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 1fr) !important;
    column-gap: 20px !important;
    row-gap: 14px !important;
    align-items: stretch !important;
    padding: 4px 0 16px 0 !important;
  }

  /* Saudação no topo atravessando as 2 colunas */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-greet {
    grid-column: 1 / -1 !important;
    margin: 2px 0 4px 0 !important;
  }

  /* Coluna Esquerda: Card Plano do Dia (.hv2-block) proporcional */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-block {
    grid-column: 1 / 2 !important;
    grid-row: 2 / span 3 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
  }

  /* Coluna Direita (Linha 1): Grade 2x2 de Atalhos (Guia Estudo, FlashCards, Questões, Quizes) */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-grid {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    align-self: stretch !important;
  }

  html body[data-home="v2"] .hub-main-dashboard > .hv2-grid .hv2-tile {
    min-height: 104px !important;
  }

  /* Coluna Direita (Linha 2): Sequência de dias seguidos + Meta */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-streak {
    grid-column: 2 / 3 !important;
    grid-row: 3 / 4 !important;
    margin: 0 !important;
    align-self: center !important;
  }

  /* Coluna Direita (Linha 3): Botão Ver todos os módulos */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-more {
    grid-column: 2 / 3 !important;
    grid-row: 4 / 5 !important;
    margin: 0 !important;
    align-self: end !important;
  }

  /* 2ª Dobra (#hv2Fold2): atravessa as 2 colunas e organiza os cards em grade de 2 colunas */
  html body[data-home="v2"] .hub-main-dashboard > .hv2-fold2 {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 18px !important;
    align-items: stretch !important;
    margin-top: 8px !important;
  }

  html body[data-home="v2"] .hv2-fold2 > .hv2-stats,
  html body[data-home="v2"] .hv2-fold2 > .hv2-group-title,
  html body[data-home="v2"] .hv2-fold2 > .hv2-heat,
  html body[data-home="v2"] .hv2-fold2 > .hv2-quiz {
    grid-column: 1 / -1 !important;
  }

  html body[data-home="v2"] .hv2-fold2 > .hv2-row {
    margin: 0 !important;
    height: 100% !important;
  }

  /* Teoria (#tab2): Cards de tópicos em grade de 2 colunas no Desktop */
  html body #teoria-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  html body #teoria-container > .dashboard-empty,
  html body #teoria-container > .teoria-card.open,
  html body #teoria-container > .teoria-card:only-child {
    grid-column: 1 / -1 !important;
  }

  html body #teoria-container > .teoria-card {
    margin: 0 !important;
  }

  /* Flash Cards (#tab4): Largura proporcional confortável no monitor Desktop */
  html body #tab4 .fc-topbar-header,
  html body #tab4 .fc-container {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Labs (#tab5): Grade de 2 colunas no Desktop */
  html body .lab-grid,
  html body #labs-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  html body #labs-container > .lab-card {
    margin: 0 !important;
  }

  /* Questões / Simulado (#tab6): Largura proporcional confortável no monitor Desktop */
  html body #tab6 > .quiz-stats,
  html body #tab6 > .quiz-tools,
  html body #tab6 > #quiz-exam-panel,
  html body #tab6 > #quiz-timer,
  html body #tab6 > #quiz-history-wrap,
  html body #tab6 > .quiz-box,
  html body #tab6 > #quiz-container {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Barra inferior no Desktop: dock centralizado elegante */
  html body[data-home="v2"] .hv2-tabbar {
    max-width: 860px !important;
    margin: 0 auto !important;
    border-radius: 18px 18px 0 0 !important;
    border-left: 1px solid #28373E !important;
    border-right: 1px solid #28373E !important;
  }
}

/* ============================================================================
   14. TELA DE LOGIN / CADASTRO (#authScreen) & PAINEL DE ADMINISTRAÇÃO (#adminPanel)
   ============================================================================ */
html body #authScreen {
  z-index: 10000 !important;
  background: radial-gradient(circle at top, #152238 0%, #0D1418 70%) !important;
  padding: 14px !important;
  overflow-y: auto !important;
}

html body #authScreen .auth-card {
  width: 100% !important;
  max-width: 420px !important;
  padding: 24px 20px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

html body #authScreen .auth-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  text-align: center !important;
  width: 100% !important;
}

html body #authScreen .auth-brand-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
}

html body #authScreen .auth-logo-img {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html body #authScreen .auth-brand-titles {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

html body #authScreen .auth-brand-title {
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.02em !important;
}

html body #authScreen .auth-brand-sub {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
}

html body #authScreen .auth-brand-desc {
  margin: 0 auto !important;
  padding: 8px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.76rem !important;
  line-height: 1.42 !important;
  color: #D4D4D8 !important;
  text-align: center !important;
  text-wrap: balance !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
}

@media (max-width: 480px) {
  html body #authScreen .auth-card {
    padding: 20px 16px !important;
  }
  html body #authScreen .auth-logo-img {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
  }
  html body #authScreen .auth-brand-title {
    font-size: 1.25rem !important;
  }
  html body #authScreen .auth-brand-sub {
    font-size: 0.78rem !important;
  }
  html body #authScreen .auth-brand-desc {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
  }
}

html body #adminPanel {
  z-index: 9500 !important;
}

/* Oculta a barra inferior quando a tela de login ou o painel de administração estão abertos */
html body #authScreen:not(.hidden) ~ .hv2-tabbar,
html body #app.hidden ~ .hv2-tabbar,
html body #adminPanel:not(.hidden) ~ .hv2-tabbar {
  display: none !important;
}

html body .auth-feedback {
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
  border: 1px solid transparent !important;
}

html body .auth-feedback.hidden {
  display: none !important;
}

html body .auth-feedback.success {
  background: rgba(52, 168, 83, 0.16) !important;
  border-color: rgba(52, 168, 83, 0.55) !important;
  color: #81C995 !important;
}

html body .auth-feedback.warning {
  background: rgba(251, 188, 4, 0.16) !important;
  border-color: rgba(251, 188, 4, 0.55) !important;
  color: #FDD663 !important;
}

html body .auth-feedback.error {
  background: rgba(234, 67, 53, 0.16) !important;
  border-color: rgba(234, 67, 53, 0.55) !important;
  color: #F28B82 !important;
}

html body .auth-feedback.info {
  background: rgba(66, 133, 244, 0.16) !important;
  border-color: rgba(66, 133, 244, 0.55) !important;
  color: #8AB4F8 !important;
}

/* Barra rápida de Administração na Home V2 (visível apenas para o Administrador) */
html body[data-home="v2"] .hv2-admin-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 6px !important;
}

html body[data-home="v2"] .hv2-admin-bar.hidden {
  display: none !important;
}

html body[data-home="v2"] .hv2-admin-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.22), rgba(138, 180, 248, 0.12)) !important;
  border: 1.5px solid rgba(138, 180, 248, 0.55) !important;
  color: #E8F0FE !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

html body[data-home="v2"] .hv2-admin-btn:hover {
  border-color: #8AB4F8 !important;
  transform: translateY(-1px) !important;
}

html body[data-home="v2"] .hv2-admin-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #FBBC04 !important;
  color: #1A1A1A !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

html body[data-home="v2"] .hv2-admin-badge.hidden {
  display: none !important;
}

html body[data-home="v2"] .hv2-logout-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  background: rgba(234, 67, 53, 0.14) !important;
  border: 1.5px solid rgba(234, 67, 53, 0.45) !important;
  color: #F28B82 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* Botão "Zerar plano de estudos" abaixo de "Salvar data e atualizar plano" */
html body[data-home="v2"] .hv2-cal-reset-btn {
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 10px !important;
  padding: 11px 16px !important;
  border-radius: 13px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(248, 113, 113, 0.48) !important;
  color: #FCA5A5 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

html body[data-home="v2"] .hv2-cal-reset-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #F87171 !important;
  color: #FEE2E2 !important;
}

/* ============================================================================
   16. CABEÇALHO SUPERIOR (.app-header-v2): LOGO AMPLIADA E SUBTÍTULO BRANCO EM
       DESTAQUE ALINHADO EM LINHA ÚNICA (CELULAR + DESKTOP)
   ============================================================================ */
html body .app-header-v2,
html body[data-home="v2"] .app-header-v2,
html[data-theme="light"] body .app-header-v2,
html[data-theme="dark"] body .app-header-v2 {
  background: #18191D !important;
  border-bottom: 1px solid #2A2C34 !important;
  padding: 10px 10px !important;
}

html body .app-header-v2 .header-main-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
}

html body .app-header-v2 .app-brand-v2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body .app-header-v2 .app-logo-v2 {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 13px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55) !important;
}

html body .app-header-v2 .app-title-block-v2 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-width: 0 !important;
}

html body .app-header-v2 .app-title-v2 {
  display: flex !important;
  align-items: center !important;
  line-height: 1.08 !important;
  margin: 0 !important;
}

html body .app-header-v2 .gcp-ace-title-v2 {
  color: #22C55E !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

html body .app-header-v2 .app-subtitle-v2,
html[data-theme="light"] body .app-header-v2 .app-subtitle-v2,
html[data-theme="dark"] body .app-header-v2 .app-subtitle-v2 {
  color: #FFFFFF !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.15px !important;
  line-height: 1.2 !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
  text-align: left !important;
}

html body .app-header-v2 .header-actions-v2 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

html body .app-header-v2 .hdr-action-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
}

@media (max-width: 390px) {
  html body .app-header-v2 {
    padding: 9px 8px !important;
  }
  html body .app-header-v2 .app-logo-v2 {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }
  html body .app-header-v2 .app-brand-v2 {
    gap: 8px !important;
  }
  html body .app-header-v2 .gcp-ace-title-v2 {
    font-size: 18.5px !important;
  }
  html body .app-header-v2 .app-subtitle-v2,
  html[data-theme="light"] body .app-header-v2 .app-subtitle-v2,
  html[data-theme="dark"] body .app-header-v2 .app-subtitle-v2 {
    font-size: 11px !important;
  }
  html body .app-header-v2 .header-actions-v2 {
    gap: 5px !important;
  }
  html body .app-header-v2 .hdr-action-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}

@media (min-width: 960px) {
  html body .app-header-v2,
  html body[data-home="v2"] .app-header-v2 {
    padding: 12px 24px !important;
  }
  html body .app-header-v2 .app-brand-v2 {
    gap: 14px !important;
  }
  html body .app-header-v2 .app-logo-v2 {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 15px !important;
  }
  html body .app-header-v2 .gcp-ace-title-v2 {
    font-size: 22px !important;
  }
  html body .app-header-v2 .app-subtitle-v2,
  html[data-theme="light"] body .app-header-v2 .app-subtitle-v2,
  html[data-theme="dark"] body .app-header-v2 .app-subtitle-v2 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-top: 3px !important;
  }
  html body .app-header-v2 .header-actions-v2 {
    gap: 8px !important;
  }
  html body .app-header-v2 .hdr-action-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
  }
}





