/* Newcastle Idiomas — ajustes consolidados da base v1.0.0 */

/* --- Base visual consolidada --- */
/* Newcastle Idiomas — base consolidada
   Refinamentos administrativos, login desktop e recuperação de senha. */

/* Relatórios: o rodapé permanece no fim mesmo com pouco conteúdo. */
body.platform-page.reports-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
body.platform-page.reports-page > .app-main { flex: 1 0 auto; }
body.platform-page.reports-page > .app-footer { flex: 0 0 auto; }

/* Menus de ação sempre acima das linhas seguintes. */
.admin-page .user-management-table tbody tr {
  position: relative;
  z-index: 0;
}
.admin-page .user-management-table tbody tr.has-open-action-menu,
.admin-page .user-management-table tbody tr:has(.user-action-menu[open]) {
  z-index: 80;
}
.admin-page .user-action-menu[open] { position: relative; z-index: 50000; }
.admin-page .user-action-menu-panel { z-index: 50000 !important; }

/* Histórico administrativo — hierarquia mais leve e sem linha sobreposta. */
.admin-audit-page .admin-page-heading { margin-bottom: 20px; }
.admin-audit-page .admin-page-heading > div:first-child { max-width: 760px; }
.admin-audit-page .audit-integrity-banner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px 17px;
  border-color: #cfe9da;
  border-radius: 15px;
  background: #f5fbf7;
  box-shadow: none;
}
.admin-audit-page .audit-integrity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 14px;
}
.admin-audit-page .audit-integrity-banner strong { font-size: 13px; }
.admin-audit-page .audit-integrity-banner p { margin: 2px 0 0; color: #657188; font-size: 11px; line-height: 1.5; }
.admin-audit-page .audit-integrity-banner > span {
  padding: 6px 9px;
  border-radius: 8px;
  color: #3b7056;
  background: #eaf6ef;
  font-size: 9px;
  white-space: nowrap;
}
.admin-audit-page .audit-view-tabs {
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--nci-admin-line, #e2e7f0);
  border-radius: 11px;
  background: #fff;
}
.admin-audit-page .audit-view-tabs a {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
}
.admin-audit-page .audit-view-tabs a.is-active { color: var(--nci-blue); background: #edf1fb; }
.admin-audit-page .audit-view-tabs a.is-active span { color: #fff; background: var(--nci-blue); }
.admin-audit-page .audit-filter-card { margin-bottom: 12px; padding: 14px; }
.admin-audit-page .audit-filter-card form {
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(160px,220px) auto auto;
  gap: 10px;
  align-items: end;
}
.admin-audit-page .audit-filter-card label { gap: 5px; font-size: 10px; }
.admin-audit-page .audit-filter-card .btn { min-height: 42px; }

.admin-audit-page .audit-bulk-panel {
  margin: 0 0 14px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.025);
}
.admin-audit-page .audit-bulk-panel > summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  color: #33405d;
  cursor: pointer;
  list-style: none;
}
.admin-audit-page .audit-bulk-panel > summary::-webkit-details-marker { display: none; }
.admin-audit-page .audit-bulk-summary-copy { display: flex; align-items: center; gap: 10px; }
.admin-audit-page .audit-bulk-summary-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--nci-blue);
  background: #edf1fa;
}
.admin-audit-page .audit-bulk-summary-icon svg { width: 16px; height: 16px; }
.admin-audit-page .audit-bulk-summary-copy span { display: grid; gap: 1px; }
.admin-audit-page .audit-bulk-summary-copy strong { font-size: 11px; }
.admin-audit-page .audit-bulk-summary-copy small { color: #7c8699; font-size: 9px; }
.admin-audit-page .audit-bulk-summary-action { color: var(--nci-blue); font-size: 10px; font-weight: 650; }
.admin-audit-page .audit-bulk-summary-action::after { content: "⌄"; margin-left: 6px; }
.admin-audit-page .audit-bulk-panel[open] .audit-bulk-summary-action::after { content: "⌃"; }
.admin-audit-page .audit-bulk-content {
  display: grid;
  grid-template-columns: minmax(210px,.8fr) minmax(0,1.4fr);
  gap: 14px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid #e7eaf0;
  background: #fafbfe;
  border-radius: 0 0 14px 14px;
}
.admin-audit-page .audit-select-all {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  color: #394660;
  font-size: 10px;
  font-weight: 600;
}
.admin-audit-page .audit-bulk-content form {
  display: grid;
  grid-template-columns: minmax(190px,1fr) auto;
  gap: 9px;
  align-items: end;
}
.admin-audit-page .audit-bulk-content form:has(label + label) { grid-template-columns: repeat(2,minmax(170px,1fr)) auto; }
.admin-audit-page .audit-bulk-content form label { display: grid; gap: 5px; color: #46526a; font-size: 9px; font-weight: 600; }
.admin-audit-page .audit-bulk-content .btn-danger {
  min-height: 42px;
  color: #b4232a;
  border-color: #f0c9cc;
  background: #fff7f7;
}

.admin-audit-page .audit-list-card.audit-timeline-card {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-audit-page .audit-timeline { gap: 10px; padding: 0; }
.admin-audit-page .audit-timeline::before { display: none; }
.admin-audit-page .audit-timeline-day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0 1px;
  padding: 0;
  color: #7a8497;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
}
.admin-audit-page .audit-timeline-day::after { content: ""; flex: 1; height: 1px; background: #dfe4ed; }
.admin-audit-page .audit-timeline-item {
  grid-template-columns: minmax(0,1fr) 118px;
  gap: 16px;
  margin: 0;
  padding: 16px 17px;
  border-color: #e2e6ee;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.02);
}
.admin-audit-page .audit-timeline-item::before { display: none; }
.admin-audit-page .audit-event-heading { align-items: flex-start !important; }
.admin-audit-page .audit-friendly-action {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--nci-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-audit-page .audit-timeline-main h2 { font-size: 14px; font-weight: 650 !important; line-height: 1.35; }
.admin-audit-page .audit-timeline-main > p { margin: 5px 0 7px; color: #697489; font-size: 11px; }
.admin-audit-page .audit-timeline-meta {
  display: grid;
  grid-template-columns: max-content minmax(180px,1fr) minmax(190px,auto);
  gap: 6px 14px;
  color: #7a8498;
  font-size: 9px;
}
.admin-audit-page .audit-timeline-meta span { min-width: 0; overflow-wrap: anywhere; }
.admin-audit-page .audit-timeline-side { gap: 6px; }
.admin-audit-page .audit-timeline-side .immutable-badge { padding: 4px 7px; border-radius: 6px; font-size: 7px; }
.admin-audit-page .audit-more-details > summary,
.admin-audit-page .audit-delete-control > summary {
  width: fit-content;
  padding: 4px 0;
  color: #53617d;
  font-size: 9px;
  font-weight: 600;
}
.admin-audit-page .audit-delete-control { position: relative; width: auto; }
.admin-audit-page .audit-delete-control > summary { color: #a54045; }
.admin-audit-page .audit-delete-control form {
  position: absolute;
  z-index: 60;
  top: calc(100% + 7px);
  right: 0;
  width: min(300px,calc(100vw - 40px));
  padding: 12px;
  border: 1px solid #e0e5ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9,18,62,.18);
}
.admin-audit-page .audit-record-selector { display: none; }
.admin-audit-page main:has(.audit-bulk-panel[open]) .audit-record-selector {
  position: absolute;
  top: 13px;
  left: -33px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #dbe1ec;
  border-radius: 8px;
  background: #fff;
}
.admin-audit-page main:has(.audit-bulk-panel[open]) .audit-timeline { padding-left: 34px; }
.admin-audit-page .audit-timeline-item:has(.audit-record-selector input:checked) {
  border-color: rgba(20,36,107,.35);
  background: #f8faff;
  box-shadow: 0 0 0 2px rgba(20,36,107,.06);
}

/* Login e recuperação: apenas o desktop recebe a nova composição. */
@media (min-width: 1000px) {
  body.login-page { background: #07122d; }
  .login-page .login-shell { grid-template-columns: minmax(0,1.12fr) minmax(460px,.88fr); }
  .login-page .login-visual { background-position: center 42%; }
  .login-page .login-visual-overlay {
    background:
      radial-gradient(circle at 16% 16%,rgba(229,52,56,.34),transparent 30%),
      linear-gradient(135deg,rgba(7,18,45,.97),rgba(20,36,107,.86) 62%,rgba(7,18,45,.82));
  }
  .login-page .login-visual-content {
    width: min(calc(100% - 104px),760px);
    padding: 48px 0 46px;
  }
  .login-page .login-message { max-width: 640px; padding: 54px 0; }
  .login-page .login-message h1 { font-size: clamp(46px,4.7vw,72px); font-weight: 720; letter-spacing: -.05em; }
  .login-page .login-message p { max-width: 570px; margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .login-page .login-stats { gap: 10px; }
  .login-page .login-stats article {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.075);
    box-shadow: inset 0 1px rgba(255,255,255,.06);
  }
  .login-page .login-stats strong { font-size: 25px; }
  .login-page .login-access {
    position: relative;
    padding: 48px;
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 0%,rgba(20,36,107,.075),transparent 25rem),
      #f5f7fb;
  }
  .login-page .login-access::before {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -170px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(20,36,107,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(20,36,107,.018);
  }
  .login-page .login-card {
    position: relative;
    z-index: 1;
    width: min(100%,520px);
    padding: 36px;
    border: 1px solid #e0e5ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(9,18,62,.13);
    margin: auto 0;
  }
  .login-page .login-card-heading h2 { color: #101936; font-size: 40px; font-weight: 680; letter-spacing: -.04em; }
  .login-page .login-card-heading p { margin-top: 11px; color: #6c768a; font-size: 14px; }
  .login-page .login-form { gap: 17px; margin-top: 27px; }
  .login-page .field-control input { min-height: 52px; border-radius: 13px; }
  .login-page .login-form .btn-primary {
    min-height: 51px;
    border-radius: 13px;
    border-color: var(--nci-blue);
    background: var(--nci-blue);
    box-shadow: 0 12px 28px rgba(20,36,107,.20);
  }
  .login-page .login-form .btn-primary:hover { border-color: #0d194e; background: #0d194e; }
  .login-page .login-demo-note { margin-top: 22px; padding: 13px 14px; border-radius: 13px; background: #f7f9fc; }
  .login-page .login-copyright {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 20px;
    left: 24px;
    margin: 0;
  }
}

.password-recovery-card .recovery-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--nci-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.login-page .login-alert.success {
  border-color: #c7e8d6;
  color: #176a46;
  background: #f0faf5;
}
.login-page .login-alert.warning {
  border-color: #f0dfad;
  color: #805b00;
  background: #fff9e9;
}
.password-recovery-card .recovery-security-note {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 11px;
  margin-top: 19px;
  padding: 13px;
  border: 1px solid #dfe5ef;
  border-radius: 13px;
  color: #667187;
  background: #f8faff;
  font-size: 11px;
  line-height: 1.5;
}
.password-recovery-card .recovery-security-note svg { width: 19px; height: 19px; color: var(--nci-blue); }
.password-recovery-card .recovery-actions { display: grid; gap: 10px; margin-top: 18px; }
.password-recovery-card .recovery-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #59647a;
  font-size: 11px;
  font-weight: 650;
}
.password-recovery-card .password-rules {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #788297;
  font-size: 10px;
  line-height: 1.6;
}
.password-recovery-card .recovery-result {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #cfe6da;
  border-radius: 15px;
  background: #f4fbf7;
  text-align: center;
}
.password-recovery-card .recovery-result-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 11px;
  place-items: center;
  border-radius: 13px;
  color: #167149;
  background: #dff5e9;
  font-size: 19px;
  font-weight: 800;
}
.password-recovery-card .recovery-result strong { display: block; color: #173322; font-size: 14px; }
.password-recovery-card .recovery-result p { margin: 6px 0 0; color: #617467; font-size: 11px; line-height: 1.55; }

@media (max-width: 820px) {
  .admin-audit-page .audit-integrity-banner { grid-template-columns: auto minmax(0,1fr); }
  .admin-audit-page .audit-integrity-banner > span { grid-column: 2; justify-self: start; }
  .admin-audit-page .audit-filter-card form { grid-template-columns: 1fr 1fr; }
  .admin-audit-page .audit-filter-card form > label:first-of-type { grid-column: 1 / -1; }
  .admin-audit-page .audit-bulk-content { grid-template-columns: 1fr; }
  .admin-audit-page .audit-bulk-content form,
  .admin-audit-page .audit-bulk-content form:has(label + label) { grid-template-columns: 1fr; }
  .admin-audit-page .audit-timeline-item { grid-template-columns: 1fr; }
  .admin-audit-page .audit-timeline-meta { grid-template-columns: 1fr; }
  .admin-audit-page .audit-timeline-side { justify-items: start; }
}

@media (max-width: 560px) {
  .admin-audit-page .audit-filter-card form { grid-template-columns: 1fr; }
  .admin-audit-page .audit-filter-card form > label:first-of-type { grid-column: auto; }
  .admin-audit-page .audit-view-tabs { width: 100%; }
  .admin-audit-page .audit-view-tabs a { flex: 1; justify-content: center; }
  .admin-audit-page .audit-bulk-panel > summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-audit-page main:has(.audit-bulk-panel[open]) .audit-timeline { padding-left: 0; }
  .admin-audit-page main:has(.audit-bulk-panel[open]) .audit-record-selector { position: static; display: inline-grid; margin-bottom: 8px; }
}


/* --- Recursos administrativos --- */
/* Newcastle Idiomas — ajustes de recursos administrativos */

/* Login: tipografia mais equilibrada e composição fixa no mobile. */
.login-message { max-width: 620px; padding-block: 54px; }
.login-message h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.75vw, 72px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.login-message p { max-width: 570px; margin-top: 22px; font-size: 17px; line-height: 1.65; }
.login-brand span { font-weight: 700; }
.login-stats article { display: grid; align-content: center; min-height: 90px; padding: 17px 18px; }
.login-stats strong { font-size: 27px; font-weight: 750; }
.login-stats span { font-weight: 580; }
.login-card-heading h2 { font-weight: 760; }

/* Formulários administrativos: campos e ações na mesma linha visual. */
.admin-page .password-create-row { align-items: start; }
.admin-page .password-create-row > .btn { align-self: start; margin-top: 25px; min-height: 47px; }
.admin-page .form-two > label { align-content: start; }
.admin-page .form-two > label > small { min-height: 0; }
.admin-page .course-release-control {
  padding: 18px;
  border: 1px solid rgba(20,36,107,.10);
  border-radius: 18px;
  background: rgba(20,36,107,.035);
}
.admin-page .course-release-control .form-section-heading { margin-bottom: 14px; }

/* Ficha 360º: carregamento por guias e paginação compacta. */
.student-history-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 18px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.student-history-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--nci-line);
  border-radius: 999px;
  color: var(--nci-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}
.student-history-tabs a span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--nci-soft);
  font-size: 10px;
}
.student-history-tabs a.is-active { border-color: var(--nci-blue); color: #fff; background: var(--nci-blue); }
.student-history-tabs a.is-active span { color: var(--nci-blue); background: #fff; }
.student-history-panel { min-height: 150px; }
.student-history-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.student-history-pagination a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--nci-line);
  border-radius: 10px;
  color: var(--nci-blue);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}
.student-history-pagination a.is-active { color: #fff; border-color: var(--nci-blue); background: var(--nci-blue); }
.history-password-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(20,36,107,.10);
  border-radius: 14px;
  background: var(--nci-soft);
}
.history-password-summary strong { color: var(--nci-blue-2); }
.history-password-summary span { color: var(--nci-muted); font-size: 13px; }
.student-history-cleanup { margin-top: 22px; }
.student-history-cleanup form { padding-top: 15px; }
.student-history-cleanup p { margin: 0; color: var(--nci-muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 920px) {
  html, body.login-page { min-height: 100%; }
  .login-shell, .login-access { min-height: 100svh; }
  .login-access {
    justify-content: space-between;
    padding: 24px 22px 12px;
    overflow: hidden;
  }
  .login-card { margin: auto 0; }
  .login-mobile-brand { margin-bottom: 20px; }
  .login-card-heading h2 { font-size: clamp(30px, 9vw, 40px); }
  .login-card-heading p { margin-top: 10px; line-height: 1.5; }
  .login-form { gap: 15px; margin-top: 23px; }
  .login-demo-note { margin-top: 18px; padding: 12px 14px; }
  .login-copyright { flex: 0 0 auto; margin: 10px 0 0; padding: 0; line-height: 1.35; }
}

@media (max-width: 700px) {
  .admin-page .password-create-row > .btn { width: 100%; margin-top: 0; }
  .history-password-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .student-history-cleanup .form-two { grid-template-columns: 1fr; }
}

@media (max-height: 720px) and (max-width: 920px) {
  .login-access { padding-top: 14px; padding-bottom: 8px; }
  .login-mobile-brand { margin-bottom: 12px; }
  .login-mobile-brand img { width: 138px; }
  .login-card-heading p { font-size: 13px; }
  .login-form { margin-top: 16px; }
  .field-control input { min-height: 49px; }
  .login-demo-note { margin-top: 12px; }
}

/* Aula de texto: leitura longa com largura, ritmo e contraste confortáveis. */
.text-lesson-reader {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(20,36,107,.10);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(20,36,107,.08);
}
.text-lesson-reader > header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nci-line);
}
.text-lesson-reader > header h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--nci-blue-2);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.text-lesson-reader > header small { color: var(--nci-muted); font-weight: 650; }
.text-lesson-body {
  max-width: 760px;
  margin: 30px auto 0;
  color: #29324a;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 700px) {
  .text-lesson-reader { padding: 25px 20px; border-radius: 18px; }
  .text-lesson-reader > header { padding-bottom: 18px; }
  .text-lesson-body { margin-top: 22px; line-height: 1.75; }
}
.student-history-pagination-gap {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 34px;
  color: var(--nci-muted);
  font-weight: 800;
}


/* --- Atualizador e liberação de cursos --- */
/* Newcastle Idiomas — ajustes do atualizador e da liberação de cursos */

/* Login desktop: peso mais elegante, respiro entre letras e hierarquia melhor. */
@media (min-width: 1000px) {
  .login-page .login-brand { gap: 16px; }
  .login-page .login-brand span {
    padding-left: 16px;
    font-size: 12px;
    font-weight: 620;
    letter-spacing: .085em;
  }
  .login-page .login-message {
    max-width: 660px;
    padding-block: 58px;
  }
  .login-page .login-message .eyebrow {
    margin-bottom: 18px;
    font-weight: 650;
    letter-spacing: .16em;
  }
  .login-page .login-message h1 {
    max-width: 650px;
    font-size: clamp(44px, 4.45vw, 68px);
    font-weight: 620;
    letter-spacing: .002em;
    line-height: 1.075;
    text-wrap: pretty;
  }
  .login-page .login-message p {
    max-width: 590px;
    margin-top: 23px;
    font-size: 16px;
    font-weight: 450;
    letter-spacing: .004em;
    line-height: 1.7;
  }
  .login-page .login-stats { gap: 12px; }
  .login-page .login-stats article {
    min-height: 88px;
    padding: 17px 18px;
  }
  .login-page .login-stats strong {
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -.01em;
  }
  .login-page .login-stats span {
    font-size: 12px;
    font-weight: 520;
    letter-spacing: .005em;
    line-height: 1.45;
  }
}

/* A regra de público só reaparece quando uma cópia ainda precisa ser configurada. */
.course-release-control[hidden] { display: none !important; }
.course-release-pending-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(227,160,8,.28);
  border-radius: 12px;
  color: #765400;
  background: #fff9e8;
  font-size: 12px;
  line-height: 1.55;
}
.course-release-pending-badge {
  border-color: rgba(227,160,8,.25) !important;
  color: #765400 !important;
  background: #fff7dd !important;
}

/* Tela de atualização versionada. */
.upgrade-page-main {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px) 20px;
  background: #f4f6fb;
}
.upgrade-shell { width: min(100%, 920px); margin: 0 auto; }
.upgrade-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--nci-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--nci-shadow-soft);
}
.upgrade-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.upgrade-heading h1 { margin: 5px 0 8px; color: var(--nci-blue-2); font-size: clamp(31px, 5vw, 46px); line-height: 1.08; }
.upgrade-heading p { max-width: 650px; margin: 0; color: var(--nci-muted); line-height: 1.65; }
.upgrade-version-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.upgrade-version-grid article { padding: 17px; border: 1px solid var(--nci-line); border-radius: 16px; background: var(--nci-soft); }
.upgrade-version-grid span { display: block; color: var(--nci-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.upgrade-version-grid strong { display: block; margin-top: 5px; color: var(--nci-blue-2); font-size: 18px; }
.upgrade-check-list { display: grid; gap: 9px; margin: 22px 0; }
.upgrade-check-list div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--nci-line); border-radius: 13px; }
.upgrade-check-list span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--nci-green); font-size: 12px; font-weight: 800; }
.upgrade-check-list .is-warning span { background: #d99500; }
.upgrade-check-list strong { display: block; color: var(--nci-blue-2); }
.upgrade-check-list small { display: block; margin-top: 2px; color: var(--nci-muted); line-height: 1.5; }
.upgrade-form { display: grid; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--nci-line); }
.upgrade-form .form-two { align-items: start; }
.upgrade-result { margin-top: 24px; padding: 16px; border-radius: 15px; line-height: 1.6; }
.upgrade-result.success { color: #176a46; background: #f0faf5; border: 1px solid #c7e8d6; }
.upgrade-result.error { color: #9f1f24; background: #fff1f1; border: 1px solid #f0c8ca; }
.upgrade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@media (max-width: 700px) {
  .upgrade-heading { display: block; }
  .upgrade-version-grid { grid-template-columns: 1fr; }
  .upgrade-actions .btn { width: 100%; }
}

.install-protected-actions { display: grid; gap: 10px; margin-top: 16px; }
.upgrade-last-run { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--nci-line); border-radius: 13px; color: var(--nci-muted); background: #fafbfe; font-size: 13px; }
.upgrade-check-list p { margin: 0; }

.system-upgrade-link { margin-top: 18px; }
.system-hero .system-upgrade-link { color: var(--nci-blue-2); background: #fff; border-color: rgba(255,255,255,.65); }


/* --- Categorias e mapa de matrículas --- */
/* Newcastle Idiomas — categorias de alunos e mapa de matrículas */

/* Curso do perfil: seleção controlada e legível nos cadastros. */
.admin-page [data-student-category-select] {
  min-height: 48px;
  background-color: #fff;
}
.admin-page [data-student-category-select]:required:invalid {
  color: #6f778e;
}
.admin-page [data-student-category-select] option { color: var(--nci-ink); }

/* Formulário do atualizador com o mesmo acabamento dos modais administrativos. */
.upgrade-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--nci-blue-2);
  font-size: 13px;
  font-weight: 700;
}
.upgrade-form input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid var(--nci-line);
  border-radius: 14px;
  outline: none;
  color: var(--nci-ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.upgrade-form input:focus {
  border-color: var(--nci-blue);
  box-shadow: 0 0 0 4px rgba(20,36,107,.09);
}
.upgrade-form small {
  color: var(--nci-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.upgrade-authenticator-input {
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  font-weight: 750 !important;
}
.upgrade-authenticator-input::placeholder {
  color: #9ca4b8;
  letter-spacing: .14em;
}

/* Mapa de matrículas. */
.academic-map-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.16), transparent 32%),
    linear-gradient(135deg, #07122d 0%, #14246b 62%, #263d91 100%);
  box-shadow: var(--nci-shadow-soft);
}
.academic-map-hero h1 {
  max-width: 680px;
  margin: 7px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
}
.academic-map-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}
.academic-map-hero .btn-light {
  flex: 0 0 auto;
  color: var(--nci-blue-2);
  background: #fff;
  border-color: rgba(255,255,255,.7);
}
.academic-map-stats { margin-bottom: 24px; }
.academic-map-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 26px;
  padding: 17px 19px;
  border: 1px solid rgba(227,160,8,.28);
  border-radius: 17px;
  color: #6f5000;
  background: #fff9e8;
}
.academic-map-alert strong { display: block; color: #624500; }
.academic-map-alert p { margin: 4px 0 0; line-height: 1.55; }
.academic-map-section-heading { margin-top: 34px; }
.academic-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.academic-group-card {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--nci-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--nci-shadow-soft);
}
.academic-group-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--nci-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.academic-group-copy > span {
  color: var(--nci-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.academic-group-copy h2 {
  min-height: 52px;
  margin: 7px 0 7px;
  color: var(--nci-blue-2);
  font-size: 20px;
  line-height: 1.25;
}
.academic-group-copy p { margin: 0; color: var(--nci-muted); line-height: 1.5; }
.academic-group-copy p strong { color: var(--nci-blue-2); }
.academic-group-card dl { display: grid; gap: 8px; margin: 20px 0; }
.academic-group-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--nci-line);
}
.academic-group-card dt { color: var(--nci-muted); font-size: 12px; }
.academic-group-card dd { margin: 0; color: var(--nci-blue-2); font-weight: 800; }
.academic-group-card .text-button { align-self: end; text-align: left; }
.academic-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  margin-top: 18px;
}
.academic-map-panel { min-width: 0; }
.academic-unit-table td strong { display: block; }
.academic-unit-table td small { display: block; margin-top: 3px; color: #a46f00; }
.academic-modality-list { display: grid; gap: 15px; }
.academic-modality-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 14px;
  align-items: center;
}
.academic-modality-item strong,
.academic-modality-item small { display: block; }
.academic-modality-item strong { color: var(--nci-blue-2); }
.academic-modality-item small { margin-top: 2px; color: var(--nci-muted); }
.academic-modality-item > span { color: var(--nci-muted); font-size: 12px; font-weight: 700; }
.academic-modality-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f7;
}
.academic-modality-track i { display: block; height: 100%; border-radius: inherit; background: var(--nci-blue); }
.academic-student-list,
.academic-expiry-list { display: grid; }
.academic-student-list > a,
.academic-expiry-list > a {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--nci-line);
  color: inherit;
  text-decoration: none;
}
.academic-student-list > a { grid-template-columns: 38px minmax(0,1fr) auto; }
.academic-expiry-list > a { grid-template-columns: minmax(0,1fr) auto; }
.academic-student-list > a:first-child,
.academic-expiry-list > a:first-child { border-top: 0; }
.academic-student-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--nci-blue), #334fa4);
  font-weight: 800;
}
.academic-student-list strong,
.academic-student-list small,
.academic-expiry-list strong,
.academic-expiry-list small { display: block; min-width: 0; }
.academic-student-list strong,
.academic-expiry-list strong { overflow: hidden; color: var(--nci-blue-2); text-overflow: ellipsis; white-space: nowrap; }
.academic-student-list small,
.academic-expiry-list small { margin-top: 3px; overflow: hidden; color: var(--nci-muted); text-overflow: ellipsis; white-space: nowrap; }
.academic-student-list time { color: var(--nci-muted); font-size: 12px; }
.academic-expiry-list b {
  padding: 7px 9px;
  border-radius: 10px;
  color: #9a6400;
  background: #fff4d4;
  font-size: 11px;
  white-space: nowrap;
}
.admin-action-card-academic { border-color: rgba(20,36,107,.2); }
.admin-action-card-academic > span { background: linear-gradient(135deg, #14246b, #405ab0); }

@media (max-width: 1050px) {
  .academic-group-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .academic-map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .academic-map-hero { display: grid; align-items: start; padding: 26px 22px; }
  .academic-map-hero .btn { width: 100%; }
  .academic-map-alert { display: grid; }
  .academic-map-alert .btn { width: 100%; }
  .academic-group-grid { grid-template-columns: 1fr; }
  .academic-group-copy h2 { min-height: 0; }
  .academic-student-list > a { grid-template-columns: 38px minmax(0,1fr); }
  .academic-student-list time { grid-column: 2; }
}

/* Categorias administráveis e mapa paginado. */
.admin-page [data-student-category-select] {
  min-height: 48px;
  color: var(--nci-ink);
  background-color: #fff;
}
.academic-map-hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.academic-map-hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.08);
}
.academic-group-card.is-inactive { opacity: .7; background: #f7f8fb; }
.academic-table-link { color: inherit; text-decoration: none; }
.academic-table-link:hover strong { color: var(--nci-blue); }
a.academic-modality-item { color: inherit; text-decoration: none; }
a.academic-modality-item:hover strong { color: var(--nci-blue); }
.academic-detail-panel { margin-top: 18px; }
.academic-map-filter {
  display: grid;
  grid-template-columns: minmax(210px,1.4fr) repeat(4,minmax(150px,1fr));
  gap: 12px;
  margin: 8px 0 22px;
  padding: 18px;
  border: 1px solid var(--nci-line);
  border-radius: 18px;
  background: var(--nci-soft);
}
.academic-map-filter label { display: grid; gap: 7px; min-width: 0; color: var(--nci-blue-2); font-size: 12px; font-weight: 750; }
.academic-map-filter :is(input,select) {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--nci-line);
  border-radius: 13px;
  color: var(--nci-ink);
  background: #fff;
  font: inherit;
}
.academic-map-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.academic-detail-table td strong,
.academic-detail-table td small { display: block; }
.academic-detail-table td small { margin-top: 3px; color: var(--nci-muted); }
.academic-detail-table .academic-internal-note { max-width: 280px; color: #6a7288; font-style: italic; }

.student-category-layout {
  display: grid;
  grid-template-columns: minmax(360px,1fr) minmax(0,2fr);
  gap: 20px;
  align-items: start;
}
.student-category-create-card { position: sticky; top: 24px; }
.student-category-create-card h2 { margin: 7px 0 8px; }
.student-category-create-card > p { margin: 0 0 20px; color: var(--nci-muted); line-height: 1.6; }
.student-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.student-category-card {
  display: grid;
  gap: 17px;
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--nci-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: var(--nci-shadow-soft);
}
.student-category-card.is-inactive { opacity: .72; background: #f7f8fb; }
.student-category-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.student-category-card h2 { margin: 4px 0 0; color: var(--nci-blue-2); font-size: 21px; }
.student-category-status { color: var(--nci-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.student-category-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.student-category-metrics div { min-width: 0; padding: 11px; border-radius: 13px; background: var(--nci-soft); }
.student-category-metrics strong,
.student-category-metrics span { display: block; }
.student-category-metrics strong { color: var(--nci-blue-2); font-size: 19px; }
.student-category-metrics span { margin-top: 2px; color: var(--nci-muted); font-size: 10px; line-height: 1.35; }
.student-category-edit-form { display: grid; gap: 13px; }
.student-category-edit-form label { display: grid; gap: 7px; color: var(--nci-blue-2); font-size: 12px; font-weight: 750; }
.student-category-edit-form input {
  width: 100%; min-height: 45px; padding: 11px 13px; box-sizing: border-box;
  border: 1px solid var(--nci-line); border-radius: 13px; color: var(--nci-ink); background: #fff; font: inherit;
}
.student-category-edit-form input[readonly] { color: #667087; background: #f2f4f8; }
.student-category-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.student-category-card > form:last-child { margin-top: -5px; }
.student-category-card .text-button[disabled] { opacity: .42; cursor: not-allowed; }

@media (max-width: 1120px) {
  .academic-map-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .student-category-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .academic-map-hero-actions { width: 100%; justify-content: stretch; }
  .academic-map-hero-actions .btn { width: 100%; }
  .academic-map-filter { grid-template-columns: 1fr 1fr; }
  .student-category-layout { grid-template-columns: 1fr; }
  .student-category-create-card { position: static; }
}
@media (max-width: 580px) {
  .academic-map-filter { grid-template-columns: 1fr; }
  .student-category-metrics { grid-template-columns: 1fr; }
}


/* --- Grade final de categorias --- */
/* Correção estrutural da grade de categorias.
   O formulário e todos os cartões são irmãos na mesma grade, garantindo largura idêntica. */
.student-category-page .student-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  width: 100%;
}

.student-category-page .student-category-create-card,
.student-category-page .student-category-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

/* O cartão de criação usa exatamente a mesma caixa visual dos cartões cadastrados. */
.student-category-page .student-category-create-card {
  position: static !important;
  align-self: start;
  padding: 21px;
  border: 1px solid var(--nci-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: var(--nci-shadow-soft);
}

.student-category-page .student-category-create-card .stack-form {
  min-width: 0;
}

.student-category-page .student-category-create-card .stack-form :is(input, select, textarea, button) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1180px) {
  .student-category-page .student-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .student-category-page .student-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Kit de recuperação acessível no próprio atualizador, inclusive durante manutenção de esquema. */
.upgrade-recovery-card {
  display: grid;
  gap: 18px;
  margin: 24px 0 4px;
  padding: 20px;
  border: 1px solid #f0d18a;
  border-radius: 18px;
  background: #fffaf0;
}
.upgrade-recovery-card.is-ready {
  border-color: #c7e8d6;
  background: #f2faf6;
}
.upgrade-recovery-card h2 {
  margin: 5px 0 7px;
  color: var(--nci-blue-2);
  font-size: 20px;
}
.upgrade-recovery-card p {
  margin: 0;
  color: var(--nci-muted);
  line-height: 1.6;
}
.upgrade-recovery-card .upgrade-form {
  margin-top: 0;
  padding-top: 18px;
}
.upgrade-recovery-card .checkbox-line {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--nci-ink);
  font-weight: 550;
  line-height: 1.5;
}
.upgrade-recovery-card .checkbox-line input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  box-shadow: none;
}

/* Google V3 escondido Mobile - deixa apenas uma pequena parte do badge visível */
@media (max-width: 768px) {
    .grecaptcha-badge {
        right: -230px !important;
        bottom: 15px !important;
    }
}

/* Central de notificações — layout do aluno sem herdar a interface administrativa */
body.platform-page.notifications-page:not(.admin-page) {
  background: var(--nci-soft);
}

body.platform-page.notifications-page:not(.admin-page) > .notifications-main {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 42px 0 82px;
}

.notifications-page:not(.admin-page) .breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--nci-muted);
  font-size: 13px;
}

.notifications-page:not(.admin-page) .breadcrumbs a {
  color: var(--nci-blue);
  font-weight: 800;
}

.notifications-page:not(.admin-page) .breadcrumbs span {
  color: rgba(102, 112, 133, .55);
}

.notifications-page:not(.admin-page) .notification-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.notifications-page:not(.admin-page) .notification-page-heading > div:first-child {
  max-width: 820px;
}

.notifications-page:not(.admin-page) .notification-page-heading .eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--nci-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notifications-page:not(.admin-page) .notification-page-heading h1 {
  margin: 4px 0 10px;
  color: var(--nci-ink);
  font-size: clamp(34px, 3.35vw, 46px);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.notifications-page:not(.admin-page) .notification-page-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--nci-muted);
  font-size: 15px;
  line-height: 1.65;
}

.notifications-page:not(.admin-page) .notification-empty-card {
  display: grid;
  gap: 8px;
  padding: clamp(28px, 4vw, 46px);
  text-align: center;
}

.notifications-page:not(.admin-page) .notification-empty-card h2 {
  margin: 0;
  color: var(--nci-blue-2);
  font-size: clamp(23px, 2.4vw, 30px);
}

.notifications-page:not(.admin-page) .notification-empty-card p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--nci-muted);
  line-height: 1.65;
}

.notifications-page:not(.admin-page) .notification-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.notifications-page:not(.admin-page) .notification-pagination .pagination-button,
.notifications-page:not(.admin-page) .notification-pagination .pagination-pages a {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid var(--nci-line);
  border-radius: 12px;
  color: var(--nci-blue);
  background: var(--nci-surface);
  font-size: 13px;
  font-weight: 700;
}

.notifications-page:not(.admin-page) .notification-pagination .pagination-pages {
  display: flex;
  gap: 7px;
}

.notifications-page:not(.admin-page) .notification-pagination .pagination-pages a.is-current {
  color: #fff;
  border-color: var(--nci-blue);
  background: var(--nci-blue);
}

.notifications-page:not(.admin-page) .notification-pagination .is-disabled {
  pointer-events: none;
  opacity: .45;
}

@media (max-width: 760px) {
  body.platform-page.notifications-page:not(.admin-page) > .notifications-main {
    width: min(calc(100% - 28px), 1240px);
    padding: 28px 0 56px;
  }

  .notifications-page:not(.admin-page) .notification-page-heading {
    display: grid;
    gap: 16px;
  }

  .notifications-page:not(.admin-page) .notification-page-heading h1 {
    font-size: 32px;
  }

  .notifications-page:not(.admin-page) .notification-filter-tabs {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .notifications-page:not(.admin-page) .notification-pagination {
    flex-wrap: wrap;
  }
}

/* Segunda rodada de QA — experiência do aluno */
body.platform-page.notifications-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
body.platform-page.notifications-page > .app-main { flex: 1 0 auto; }
body.platform-page.notifications-page > .app-footer { flex: 0 0 auto; }

.complete-button.is-gated {
  cursor: not-allowed;
  opacity: .72;
}

.audio-player-feedback {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.45;
}
.audio-player-feedback.is-info {
  color: #34405e;
  background: #eef2fb;
}
.audio-player-feedback.is-error {
  color: #8b1d24;
  background: #fff0f1;
  border: 1px solid rgba(199,35,26,.18);
}
.audio-native-fallback {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 12px;
}
.audio-lesson-card.is-loading .audio-play-toggle { opacity: .65; }
html[data-theme="dark"] .audio-player-feedback.is-info { color: #dfe6ff; background: #1c2945; }
html[data-theme="dark"] .audio-player-feedback.is-error { color: #ffd7da; background: #3a1b24; }

/* =========================================================
   UX básica sem requisições adicionais
   ========================================================= */

/* Loader simples de transição, sem requisições adicionais. */
.page-skeleton {
  position: fixed;
  z-index: 11000;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity .2s ease, visibility .2s ease;
  animation: page-loader-failsafe .2s ease 3s forwards;
}
.page-skeleton.is-hidden { opacity: 0; visibility: hidden; }
.page-loader {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 24px;
  color: var(--nci-blue);
}
.page-loader-spinner {
  display: block;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(20, 36, 107, .16);
  border-top-color: var(--nci-blue);
  border-radius: 50%;
  animation: page-loader-spin .75s linear infinite;
}
.page-loader-text {
  color: #43506f;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
}
@keyframes page-loader-spin { to { transform: rotate(360deg); } }
@keyframes page-loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* Animação da barra real de progresso já existente. */
[data-animate-progress] { transition: width .9s cubic-bezier(.22,.8,.3,1) !important; }

/* Toasts profissionais com fechamento e indicador de tempo. */
.toast-stack { width: min(calc(100% - 32px), 410px); gap: 12px; }
.toast {
  position: relative;
  grid-template-columns: 42px minmax(0,1fr) 28px;
  gap: 12px;
  min-height: 70px;
  padding: 14px 13px 16px;
  overflow: hidden;
  border-color: rgba(21, 38, 101, .12);
  border-radius: 19px;
  box-shadow: 0 20px 58px rgba(9, 18, 62, .2);
}
.toast.is-leaving { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
.toast-icon { width: 40px; height: 40px; border-radius: 13px; }
.toast.is-warning .toast-icon { background: #d48a00; }
.toast-copy { min-width: 0; padding-top: 2px; }
.toast strong { font-size: 12px; line-height: 1.3; }
.toast span:not(.toast-timer) { margin-top: 4px; font-size: 10px; line-height: 1.5; }
.toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #6c748d;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover,.toast-close:focus-visible { color: var(--nci-blue); background: #eef2fb; outline: 0; }
.toast-timer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 3px;
  margin: 0 !important;
  transform-origin: left;
  background: currentColor;
  opacity: .55;
  animation: toast-timer var(--toast-duration,4500ms) linear forwards;
}
.toast.is-paused .toast-timer { animation-play-state: paused; }
.toast.is-success .toast-timer { color: var(--nci-green); }
.toast.is-error .toast-timer { color: var(--nci-red); }
.toast.is-warning .toast-timer { color: #d48a00; }
.toast.is-info .toast-timer { color: var(--nci-blue); }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Aviso local de inatividade. */
.session-expiry-modal { z-index: 12500; }
.session-expiry-dialog { text-align: center; }
.session-expiry-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, var(--nci-blue), #33499d);
  box-shadow: 0 14px 32px rgba(20, 36, 107, .24);
}
.session-expiry-icon svg { width: 30px; height: 30px; fill: currentColor; }
.session-expiry-dialog .modal-intro strong { color: var(--nci-blue); font-variant-numeric: tabular-nums; }
.session-expiry-actions { display: grid; gap: 9px; margin-top: 20px; }

@media (max-width: 760px) {
  .toast-stack { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-spinner,.page-skeleton,.toast,.toast-timer,[data-animate-progress] { animation: none !important; transition: none !important; }
}



/* =========================================================
   ENGAJAMENTO PREMIUM — v1.0.0
   ========================================================= */
.engagement-section{position:relative;z-index:3;margin-top:0;padding:48px 0 54px}.engagement-title-row{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}.engagement-title-row h2{margin:4px 0 5px;color:#111b4a;font-size:clamp(28px,3vw,39px)}.engagement-title-row p{margin:0;color:#6d7590}.engagement-week{padding:8px 12px;border-radius:999px;background:#eef1fb;color:#505a7c;font-size:11px;font-weight:800;white-space:nowrap}.engagement-grid{display:grid;grid-template-columns:1.05fr 1.45fr .85fr;gap:16px}.streak-card,.missions-card,.review-card{border:1px solid rgba(24,44,120,.1);border-radius:23px;background:#fff;box-shadow:0 18px 48px rgba(20,35,91,.09)}.streak-card{padding:25px;background:radial-gradient(circle at 90% 8%,rgba(232,63,68,.12),transparent 33%),linear-gradient(145deg,#fff,#f8f9fd)}.streak-card-heading{display:flex;align-items:center;gap:14px}.streak-card-heading>div span{display:block;color:#7a829b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.streak-card-heading strong{display:block;margin-top:2px;color:#121d50;font-size:29px}.streak-flame{width:50px;height:50px;display:grid;place-items:center;border-radius:17px;background:#fff0ed;color:#dc3c43}.streak-flame svg{width:28px;height:28px;fill:currentColor}.streak-card.is-active .streak-flame{background:linear-gradient(145deg,#ff765e,#d83240);color:#fff;box-shadow:0 11px 26px rgba(214,48,62,.25)}.streak-card>p{min-height:42px;margin:16px 0;color:#68718c;font-size:13px;line-height:1.6}.streak-week{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.streak-day{display:grid;place-items:center;gap:4px;padding:8px 2px;border-radius:12px;background:#f2f4f9;color:#8a91a6}.streak-day small{font-size:9px;font-weight:800}.streak-day b{font-size:11px}.streak-day i{width:6px;height:6px;border-radius:50%;background:#d7dbe5}.streak-day.is-active{background:#edf7f2;color:#17774f}.streak-day.is-active i{background:#1a9362}.streak-day.is-today{box-shadow:inset 0 0 0 1px #304997}.missions-card{padding:24px}.missions-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.missions-card-heading h3{margin:3px 0 0;color:#151f50;font-size:20px}.missions-total{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#172f86;color:#fff;font-size:13px;font-weight:900}.missions-list{display:grid;gap:10px}.mission-row{display:flex;gap:11px;padding:12px;border:1px solid #e7eaf2;border-radius:15px;background:#fbfcfe}.mission-row.is-complete{border-color:#d4eadf;background:#f6fcf8}.mission-icon{flex:0 0 auto;width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#edf1fc;color:#243e93;font-weight:900}.mission-row.is-complete .mission-icon{background:#1b8b5a;color:#fff}.mission-copy{min-width:0;flex:1}.mission-copy>strong{display:block;color:#1c2759;font-size:12px}.mission-copy>span{display:block;margin-top:2px;color:#7b8298;font-size:10px}.mission-progress{display:flex;align-items:center;gap:8px;margin-top:8px}.mission-progress>i{height:5px;flex:1;overflow:hidden;border-radius:999px;background:#e6e9f1}.mission-progress>i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#213d94,#d43843)}.mission-progress em{color:#707991;font-size:9px;font-style:normal;font-weight:800}.review-card{padding:25px;display:flex;flex-direction:column;background:linear-gradient(145deg,#132770,#1a3994);color:#fff}.review-card .eyebrow{color:#aebef5}.review-card-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:18px;border-radius:17px;background:rgba(255,255,255,.12)}.review-card-icon svg{width:27px;height:27px;fill:#fff}.review-card h3{margin:6px 0 9px;font-size:21px;line-height:1.18}.review-card p{margin:0 0 20px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.6}.review-card .btn{margin-top:auto;background:#fff;color:#142870;border-color:#fff}

/* Coffee Break */
.coffee-break-button{position:relative;width:auto;min-width:46px;padding:0 12px;gap:7px;overflow:visible}.coffee-break-button svg{width:20px;height:20px}.coffee-break-label{font-size:11px;font-weight:800;white-space:nowrap}.coffee-steam{position:absolute;left:21px;top:0;width:17px;height:12px;pointer-events:none}.coffee-steam i{position:absolute;bottom:0;width:2px;height:7px;border-radius:99px;background:currentColor;opacity:0;animation:coffeeSteam 2.4s ease-in-out infinite}.coffee-steam i:nth-child(1){left:1px}.coffee-steam i:nth-child(2){left:7px;animation-delay:.55s}.coffee-steam i:nth-child(3){left:13px;animation-delay:1.1s}@keyframes coffeeSteam{0%{transform:translateY(5px);opacity:0}30%{opacity:.65}100%{transform:translateY(-5px);opacity:0}}.coffee-break-dialog{width:min(870px,calc(100vw - 32px));max-width:870px;padding:0;display:grid;grid-template-columns:38% 62%;overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 32px 90px rgba(9,20,70,.34)}.coffee-break-visual{position:relative;min-height:510px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.23),transparent 32%),linear-gradient(145deg,#0f1c58,#17368f 70%,#c82f3a 145%)}.coffee-break-orbit{position:absolute;width:220px;height:220px;border:1px dashed rgba(255,255,255,.28);border-radius:50%;animation:coffeeOrbit 20s linear infinite}.coffee-break-orbit::before{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;top:14px;left:37px;box-shadow:0 0 22px #fff}@keyframes coffeeOrbit{to{transform:rotate(360deg)}}.coffee-cup-large{position:relative;z-index:2;width:150px;height:150px;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 22px 28px rgba(0,0,0,.24))}.coffee-cup-large svg{width:126px;height:126px;fill:currentColor}.coffee-cup-large i{position:absolute;top:-4px;width:5px;height:42px;border-radius:50%;border-left:3px solid rgba(255,255,255,.72);animation:coffeeSteamLarge 2.7s ease-in-out infinite}.coffee-cup-large i:nth-child(1){left:48px}.coffee-cup-large i:nth-child(2){left:73px;animation-delay:.7s}.coffee-cup-large i:nth-child(3){left:97px;animation-delay:1.4s}@keyframes coffeeSteamLarge{0%,100%{transform:translateY(10px);opacity:0}30%{opacity:.8}75%{transform:translateY(-18px) translateX(5px);opacity:.15}}.coffee-break-content{padding:52px 50px 40px;display:flex;flex-direction:column;justify-content:center}.coffee-break-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.coffee-break-counter{padding:7px 11px;border-radius:999px;background:#eef2ff;color:#14246b;font-size:11px;font-weight:800}.coffee-break-content h2{margin:9px 0 8px;color:#101a48;font-size:clamp(28px,4vw,41px);line-height:1.05}.coffee-break-intro{margin:0 0 23px;color:#69728d;line-height:1.65}.coffee-tip-card{padding:25px;border:1px solid #e4e8f3;border-radius:21px;background:linear-gradient(180deg,#fff,#f8f9fd);box-shadow:0 14px 38px rgba(25,40,96,.08)}.coffee-tip-category{display:inline-flex;margin-bottom:14px;color:#c82f3a;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.coffee-tip-english{display:block;color:#101a48;font-size:clamp(23px,3vw,32px);line-height:1.2}.coffee-tip-translation{margin-top:20px;padding-top:18px;border-top:1px solid #e4e8f3;animation:coffeeReveal .35s ease both}.coffee-tip-translation span{display:block;margin-bottom:5px;color:#77809d;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.coffee-tip-translation strong{color:#14246b;font-size:20px}.coffee-tip-translation p{margin:8px 0 0;color:#69728d;font-size:13px;line-height:1.55}@keyframes coffeeReveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.coffee-break-actions{display:grid;gap:9px;margin-top:18px}.coffee-break-footnote{margin-top:15px;color:#8991a9;text-align:center}.coffee-break-close{z-index:5;color:#fff;background:rgba(255,255,255,.14)}

/* Caderno de revisão */
.review-errors-main{min-height:calc(100vh - 80px);padding:34px 0 80px;background:#f6f7fb}.review-errors-hero{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;margin:20px 0 18px;padding:42px;border-radius:28px;background:radial-gradient(circle at 90% 15%,rgba(224,59,66,.22),transparent 30%),linear-gradient(135deg,#111e5e,#183991);color:#fff;box-shadow:0 24px 60px rgba(14,27,86,.2)}.review-errors-hero h1{max-width:720px;margin:8px 0 12px;font-size:clamp(30px,4vw,48px);line-height:1.05}.review-errors-hero p{max-width:760px;margin:0;color:rgba(255,255,255,.76);line-height:1.7}.review-errors-hero aside{min-width:150px;padding:21px;border:1px solid rgba(255,255,255,.15);border-radius:20px;background:rgba(255,255,255,.12);text-align:center}.review-errors-hero aside span,.review-errors-hero aside small{display:block;color:rgba(255,255,255,.68);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.review-errors-hero aside strong{display:block;margin:4px 0;font-size:44px}.review-readonly-note{display:flex;gap:12px;align-items:center;margin-bottom:18px;padding:15px 18px;border:1px solid #dfe4f2;border-radius:16px;background:#fff;color:#65708d}.review-readonly-note svg{flex:0 0 auto;width:24px;height:24px;fill:#20398e}.review-readonly-note span{font-size:12px;line-height:1.5}.review-readonly-note strong{display:block;color:#172257}.review-errors-list{display:grid;gap:15px}.review-error-card{overflow:hidden;border:1px solid #e2e6f0;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(23,37,89,.07)}.review-error-card header{display:grid;grid-template-columns:46px 1fr auto;align-items:start;gap:14px;padding:22px 24px;border-bottom:1px solid #edf0f6}.review-error-number{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#eef1fc;color:#1d368d;font-size:12px;font-weight:900}.review-error-card header div>span{display:block;margin-bottom:4px;color:#8088a0;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.review-error-card h2{margin:0;color:#151e4d;font-size:17px;line-height:1.4}.review-error-card time{color:#9097aa;font-size:10px}.review-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 24px}.review-answer{padding:15px;border:1px solid;border-radius:15px}.review-answer span{display:block;margin-bottom:5px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.review-answer strong{font-size:14px;line-height:1.45}.review-answer.is-wrong{border-color:#f1d3d6;background:#fff7f7;color:#9e2630}.review-answer.is-correct{border-color:#cfe9db;background:#f5fcf8;color:#15754c}.review-explanation{margin:0 24px 18px;padding:17px;border-radius:15px;background:#f6f8fc}.review-explanation span{display:block;margin-bottom:6px;color:#213a90;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.review-explanation p{margin:0;color:#59637f;font-size:13px;line-height:1.65}.review-error-card footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 24px;border-top:1px solid #edf0f6;background:#fbfcfe}.review-error-card footer span{color:#6e7894;font-size:11px}.review-error-card footer a{display:inline-flex;align-items:center;gap:7px;color:#18358e;font-size:12px;font-weight:800}.review-error-card footer svg{width:15px;height:15px;fill:currentColor}.review-errors-empty{padding:70px 24px;border:1px solid #e1e5ef;border-radius:24px;background:#fff;text-align:center}.review-errors-empty>span{width:65px;height:65px;display:grid;place-items:center;margin:0 auto 18px;border-radius:20px;background:#e8f6ee;color:#168553;font-size:30px;font-weight:900}.review-errors-empty h2{margin:0 0 8px;color:#172052}.review-errors-empty p{max-width:600px;margin:0 auto 22px;color:#727b95}

/* Botão de topo */
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:80;width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:15px;background:#152c83;color:#fff;box-shadow:0 14px 30px rgba(18,38,119,.3);opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;cursor:pointer}.back-to-top svg{width:21px;height:21px;fill:currentColor}.back-to-top.is-visible{opacity:1;visibility:visible;transform:none}.back-to-top:hover{transform:translateY(-3px);background:#c72f3a}

/* Conclusão premium */
.completion-dialog-premium{max-width:560px;padding:0;overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 34px 100px rgba(10,23,78,.34)}.completion-premium-hero{position:relative;padding:38px 38px 30px;background:radial-gradient(circle at 50% 20%,rgba(255,255,255,.2),transparent 30%),linear-gradient(145deg,#101d5b,#1a3c9a);color:#fff;text-align:center}.completion-premium-hero h2{margin:8px 0;font-size:34px}.completion-premium-hero p{margin:0;color:rgba(255,255,255,.76);line-height:1.55}.completion-premium-hero .completion-badge-stage{margin:20px auto 16px}.completion-badge-shine{position:absolute;inset:5px;border-radius:50%;background:linear-gradient(120deg,rgba(255,255,255,.32),transparent 42%);pointer-events:none}.completion-premium-body{padding:24px 34px 30px}.completion-level-premium{margin:0 0 18px;border:1px solid #e3e7f2;background:#f8f9fd}.completion-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:19px}.completion-benefits span{padding:11px 7px;border-radius:13px;background:#f5f7fb;text-align:center}.completion-benefits i{width:20px;height:20px;display:grid;place-items:center;margin:0 auto 6px;border-radius:50%;background:#1b8b5a;color:#fff;font-size:11px;font-style:normal}.completion-benefits b{display:block;color:#58627e;font-size:10px}.completion-dialog-premium .completion-actions{display:grid;gap:8px}.completion-confetti{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}.completion-confetti i{position:absolute;top:-20px;width:7px;height:14px;border-radius:2px;background:#ffcc56;animation:premiumConfetti 2.4s ease-out infinite}.completion-confetti i:nth-child(3n){background:#e64a54}.completion-confetti i:nth-child(3n+2){background:#6d8cff}.completion-confetti i:nth-child(1){left:7%;animation-delay:.1s}.completion-confetti i:nth-child(2){left:15%;animation-delay:.7s}.completion-confetti i:nth-child(3){left:24%;animation-delay:.3s}.completion-confetti i:nth-child(4){left:35%;animation-delay:1s}.completion-confetti i:nth-child(5){left:44%;animation-delay:.5s}.completion-confetti i:nth-child(6){left:54%;animation-delay:1.2s}.completion-confetti i:nth-child(7){left:62%;animation-delay:.2s}.completion-confetti i:nth-child(8){left:70%;animation-delay:.8s}.completion-confetti i:nth-child(9){left:78%;animation-delay:.4s}.completion-confetti i:nth-child(10){left:86%;animation-delay:1.1s}.completion-confetti i:nth-child(11){left:92%;animation-delay:.6s}.completion-confetti i:nth-child(12){left:50%;animation-delay:1.4s}@keyframes premiumConfetti{0%{transform:translateY(-20px) rotate(0);opacity:0}15%{opacity:1}100%{transform:translateY(430px) rotate(520deg);opacity:0}}

@media(max-width:1100px){.engagement-grid{grid-template-columns:1fr 1fr}.review-card{grid-column:1/-1}.coffee-break-label{display:none}.coffee-break-button{width:46px;min-width:46px;padding:0}.coffee-steam{left:14px}}
@media(max-width:760px){.engagement-section{margin-top:0;padding:34px 0 38px}.engagement-title-row{align-items:start;flex-direction:column;gap:10px}.engagement-grid{grid-template-columns:1fr}.review-card{grid-column:auto}.coffee-break-dialog{grid-template-columns:1fr;max-height:calc(100vh - 24px);overflow:auto}.coffee-break-visual{min-height:180px}.coffee-cup-large{transform:scale(.7)}.coffee-break-content{padding:28px 22px 24px}.review-errors-hero{grid-template-columns:1fr;padding:28px}.review-errors-hero aside{min-width:0;display:flex;align-items:center;justify-content:center;gap:12px}.review-errors-hero aside strong{font-size:32px}.review-answer-grid{grid-template-columns:1fr}.review-error-card header{grid-template-columns:42px 1fr}.review-error-card time{grid-column:2}.review-error-card footer{align-items:flex-start;flex-direction:column}.back-to-top{right:16px;bottom:16px}.completion-premium-hero{padding:34px 22px 26px}.completion-premium-body{padding:20px}.completion-benefits{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.coffee-steam i,.coffee-cup-large i,.coffee-break-orbit,.completion-confetti i{animation:none!important}.back-to-top{transition:none}}

/* =========================================================
   Coffee Break — ícone compacto e menu móvel consolidado
   ========================================================= */
.coffee-break-button {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  gap: 0;
  overflow: visible;
  border-radius: 14px;
}

.coffee-icon {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coffee-icon-steam path {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: coffeeIconSteam 2.4s ease-in-out infinite;
}

.coffee-icon-steam path:nth-child(2) { animation-delay: .35s; }
.coffee-icon-steam path:nth-child(3) { animation-delay: .7s; }

@keyframes coffeeIconSteam {
  0%, 100% { opacity: .18; transform: translateY(1.5px); }
  45% { opacity: 1; transform: translateY(-1.5px); }
}

/* A área visual da dica continua igual, agora somente com xícara e vapor. */
.coffee-break-orbit,
.coffee-steam,
.coffee-break-label { display: none !important; }

.coffee-cup-large {
  position: relative;
  z-index: 2;
  display: grid;
  width: 158px;
  height: 158px;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.24));
}

.coffee-cup-large .coffee-icon-large {
  width: 132px;
  height: 132px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

/* Opções exclusivas do celular aparecem dentro do menu do perfil. */
.user-menu-mobile-only { display: none !important; }

@media (max-width: 920px) {
  /* A xícara fica disponível no celular, mesmo com a regra geral que oculta ferramentas. */
  .header-actions .coffee-break-button {
    display: inline-grid !important;
    position: relative;
    z-index: 1302;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  /* O avatar concentra as opções de navegação no celular. */
  .header-user {
    display: block !important;
    position: relative;
    z-index: 1302;
  }

  .user-menu-mobile-only { display: flex !important; }

  .header-user .user-menu {
    max-height: calc(100dvh - 92px);
    overscroll-behavior: contain;
  }
}

@media (max-width: 700px) {
  .app-header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 560px) {
  .app-header-inner {
    min-height: 66px;
    gap: 6px;
  }

  .app-brand img { width: 108px; }
  .header-actions { gap: 5px; }

  .header-actions .coffee-break-button,
  .header-actions .header-search-button,
  .header-actions .mobile-notification-button,
  .header-user-button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  .header-user-button { padding: 2px !important; }
  .header-user-button .user-avatar { width: 32px; height: 32px; }
  .coffee-break-button .coffee-icon { width: 23px; height: 23px; }

  .header-user .user-menu {
    top: 70px;
    right: 10px;
    width: min(310px, calc(100vw - 20px));
    max-height: calc(100dvh - 82px);
  }
}

@media (max-width: 360px) {
  .container.app-header-inner { width: calc(100% - 18px); }
  .app-brand img { width: 98px; }
  .header-actions { gap: 4px; }

  .header-actions .coffee-break-button,
  .header-actions .header-search-button,
  .header-actions .mobile-notification-button,
  .header-user-button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }

  .header-user-button .user-avatar { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .coffee-icon-steam path { animation: none !important; opacity: .8; }
}

/* Coffee Break — estética alinhada ao site Newcastle */
.coffee-break-dialog{
  width:min(976px,calc(100vw - 40px));
  max-width:976px;
  grid-template-columns:27% 73%;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.9);
  background:#fff;
  box-shadow:0 28px 84px rgba(8,21,70,.32);
}
.coffee-break-visual{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 28% 14%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(180deg,#15337f 0%, #1b378e 68%, #e1475a 150%);
}
.coffee-break-circle{
  position:absolute;
  border:2px solid rgba(255,255,255,.22);
  border-radius:50%;
}
.coffee-break-circle-top{width:110px;height:110px;top:34px;right:-20px;}
.coffee-break-circle-bottom{width:160px;height:160px;left:-76px;bottom:-62px;}
.coffee-cup-large{
  width:154px;
  height:154px;
  display:grid;
  place-items:center;
  transform:translateX(-6px);
}
.coffee-cup-large .coffee-icon-large{
  width:128px;
  height:128px;
  color:#fff;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.24));
}
.coffee-break-content{
  padding:58px 46px 42px;
  justify-content:flex-start;
}
.coffee-break-brand{
  margin:0 0 14px;
  color:#1f327d;
  font-size:22px;
  line-height:1.1;
  font-weight:800;
}
.coffee-break-kicker{
  display:block;
  margin:0 0 20px;
  color:#f1393d;
  font-size:12px;
  letter-spacing:.18em;
  font-weight:900;
  text-transform:uppercase;
}
.coffee-break-content .coffee-tip-english{
  display:block;
  margin:0 0 12px;
  color:#1d2f7c;
  font-size:clamp(42px,4.3vw,62px);
  line-height:.98;
  font-weight:900;
  letter-spacing:-.03em;
}
.coffee-tip-portuguese{
  margin:0 0 28px;
  color:#42506f;
  font-size:18px;
  line-height:1.35;
  font-weight:700;
}
.coffee-tip-card{
  margin:0;
  padding:18px 22px 18px 20px;
  border:1px solid #d7ddeb;
  border-left:4px solid #ef3d40;
  border-radius:16px;
  background:#f5f7fc;
  box-shadow:none;
}
.coffee-tip-card-label{
  display:block;
  margin-bottom:12px;
  color:#8f99af;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.coffee-tip-example{
  display:block;
  color:#374463;
  font-size:18px;
  line-height:1.45;
  font-weight:700;
}
.coffee-tip-translation{
  display:block;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #d7ddeb;
  animation:none;
}
.coffee-tip-translation strong{
  display:block;
  color:#6d7691;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}
.coffee-tip-translation p{
  margin:10px 0 0;
  color:#7d869f;
  font-size:13px;
  line-height:1.55;
}
.coffee-break-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}
.coffee-break-actions .btn{
  min-width:0;
  padding:0 26px;
  border-radius:999px;
  height:46px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
}
.coffee-break-actions .btn-primary{
  background:#f1393d;
  border-color:#f1393d;
  color:#fff;
}
.coffee-break-actions .btn-secondary{
  background:#f1f4fa;
  border-color:#d7ddeb;
  color:#22377f;
}
.coffee-break-footnote{
  margin-top:18px;
  color:#949db2;
  text-align:left;
  font-size:14px;
  font-weight:700;
}
.coffee-break-close{
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#1b2f76;
  color:#fff;
  box-shadow:none;
}
@media (max-width: 760px){
  .coffee-break-dialog{
    width:min(100vw - 24px, 440px);
    grid-template-columns:1fr;
    border-radius:26px;
    max-height:calc(100vh - 24px);
    overflow:auto;
  }
  .coffee-break-visual{
    min-height:162px;
    align-items:flex-start;
    justify-content:center;
    padding-top:26px;
  }
  .coffee-break-circle-top{top:34px;right:-30px;width:96px;height:96px;}
  .coffee-break-circle-bottom{left:-64px;bottom:-56px;width:144px;height:144px;}
  .coffee-cup-large{width:92px;height:92px;transform:none;}
  .coffee-cup-large .coffee-icon-large{width:78px;height:78px;}
  .coffee-break-content{padding:24px 24px 24px;}
  .coffee-break-brand{margin-bottom:10px;font-size:18px;}
  .coffee-break-kicker{margin-bottom:18px;font-size:11px;}
  .coffee-break-content .coffee-tip-english{font-size:clamp(31px,10vw,50px);line-height:1.02;}
  .coffee-tip-portuguese{margin-bottom:20px;font-size:15px;}
  .coffee-tip-example{font-size:16px;}
  .coffee-tip-translation strong{font-size:13px;}
  .coffee-break-actions{display:grid;grid-template-columns:1fr;gap:12px;}
  .coffee-break-actions .btn{width:100%;height:48px;justify-content:center;}
  .coffee-break-footnote{text-align:center;font-size:13px;}
  .coffee-break-close{top:18px;right:16px;width:48px;height:48px;background:rgba(39,54,118,.88);}
}


/* =========================================================
   Ajustes finais — Coffee Break, sequência e continuidade admin
   ========================================================= */

/* Coffee Break: reproduz o painel horizontal do site e neutraliza as regras
   genéricas dos modais, que adicionavam largura reduzida, padding e rolagem. */
.platform-page .coffee-break-modal{
  padding:14px !important;
}
.platform-page .coffee-break-dialog{
  width:min(650px,calc(100vw - 28px)) !important;
  max-width:650px !important;
  height:min(478px,calc(100dvh - 28px));
  max-height:calc(100dvh - 28px) !important;
  min-height:0;
  display:grid !important;
  grid-template-columns:175px minmax(0,1fr) !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  scrollbar-gutter:auto !important;
  border:1px solid rgba(255,255,255,.92);
  border-radius:28px;
  background:#fff;
  box-shadow:0 28px 78px rgba(8,21,70,.34);
}
.platform-page .coffee-break-visual{
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 16%,rgba(255,255,255,.12),transparent 26%),
    linear-gradient(180deg,#243f8e 0%,#233f91 67%,#ce3f5b 145%);
}
.platform-page .coffee-break-circle-top{width:92px;height:92px;top:34px;right:-17px;}
.platform-page .coffee-break-circle-bottom{width:142px;height:142px;left:-70px;bottom:-58px;}
.platform-page .coffee-cup-large{
  width:88px;
  height:88px;
  transform:translateY(18px);
  color:#fff;
  filter:drop-shadow(0 9px 11px rgba(0,0,0,.28));
}
.platform-page .coffee-cup-large .coffee-icon-large{
  width:78px;
  height:78px;
}
.platform-page .coffee-break-content{
  min-width:0;
  height:100%;
  padding:36px 47px 20px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow:hidden;
}
.platform-page .coffee-break-dialog h2.coffee-break-brand{
  margin:0 0 12px !important;
  font-size:20px !important;
  line-height:1.12;
}
.platform-page .coffee-break-kicker{
  margin:0 0 12px;
  font-size:11px;
}
.platform-page .coffee-break-content .coffee-tip-english{
  margin:0 0 9px;
  font-size:clamp(38px,6vw,44px);
  line-height:1.02;
  overflow-wrap:break-word;
}
.platform-page .coffee-tip-portuguese{
  margin:0 0 16px;
  font-size:17px;
  line-height:1.3;
}
.platform-page .coffee-tip-card{
  padding:12px 19px 11px 17px;
  border-radius:14px;
}
.platform-page .coffee-tip-card-label{
  margin-bottom:7px;
  font-size:10px;
}
.platform-page .coffee-tip-example{
  font-size:15px;
  line-height:1.4;
}
.platform-page .coffee-tip-translation{
  margin-top:8px;
  padding-top:8px;
}
.platform-page .coffee-tip-translation strong{
  font-size:13px;
  line-height:1.35;
}
.platform-page .coffee-tip-translation p{
  margin:5px 0 0;
  font-size:11px;
  line-height:1.4;
}
.platform-page .coffee-break-actions{
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  margin-top:15px;
}
.platform-page .coffee-break-actions .btn{
  height:42px;
  min-height:42px;
  padding:0 20px;
  white-space:nowrap;
  font-size:12px;
}
.platform-page .coffee-break-footnote{
  margin-top:9px;
  text-align:left;
  font-size:12px;
}
.platform-page .coffee-break-close{
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  background:#1b2e6b;
  color:#fff;
}


@media (min-width:561px){
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-content{
    padding:32px 39px 22px;
  }
  .platform-page .coffee-break-dialog.is-long-expression h2.coffee-break-brand{
    margin-bottom:8px !important;
    font-size:18px !important;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-kicker{
    margin-bottom:10px;
    font-size:10px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-english{
    margin-bottom:6px;
    font-size:36px;
    line-height:1;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-portuguese{
    margin-bottom:13px;
    font-size:15px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card{
    padding:11px 15px 10px 13px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card-label{
    margin-bottom:6px;
    font-size:9px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-example{
    font-size:13px;
    line-height:1.3;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation{
    margin-top:7px;
    padding-top:7px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation strong{
    font-size:11px;
    line-height:1.3;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation p{
    margin-top:4px;
    font-size:10px;
    line-height:1.3;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions{
    gap:10px;
    margin-top:11px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions .btn{
    height:39px;
    min-height:39px;
    padding:0 16px;
    font-size:10px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-footnote{
    margin-top:7px;
    font-size:10px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-content{
    padding:27px 35px 18px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-english{
    font-size:31px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-portuguese{
    margin-bottom:10px;
    font-size:14px;
  }
}

/* Desktop: cartão da sequência não é mais esticado até a altura das missões.
   Os dias ganham leitura completa e distribuição 4 + 3. */
@media (min-width:761px){
  .streak-card{align-self:start;padding:25px 25px 27px;}
  .streak-card>p{min-height:0;margin:18px 0 20px;}
  .streak-week{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
  .streak-day{min-height:62px;padding:9px 5px;border-radius:13px;}
  .streak-day small{font-size:8px;line-height:1.1;}
  .streak-day b{font-size:12px;}
  .streak-day-full{display:block;}
  .streak-day-short{display:none;}
}

@media (max-width:560px){
  /* Mantém o visual vertical do site mesmo no celular: o painel colorido vira
     uma faixa lateral, reduzindo bastante a altura total e eliminando scroll. */
  .platform-page .coffee-break-modal{padding:8px !important;}
  .platform-page .coffee-break-dialog{
    width:calc(100vw - 16px) !important;
    max-width:650px !important;
    height:auto;
    max-height:calc(100dvh - 16px) !important;
    grid-template-columns:clamp(72px,24vw,112px) minmax(0,1fr) !important;
    border-radius:24px;
  }
  .platform-page .coffee-break-visual{
    min-height:0;
    height:100%;
    align-items:center;
    justify-content:center;
    padding:0;
  }
  .platform-page .coffee-break-circle-top{top:36px;right:-43px;width:88px;height:88px;}
  .platform-page .coffee-break-circle-bottom{left:-66px;bottom:-46px;width:126px;height:126px;}
  .platform-page .coffee-cup-large{
    width:62px;
    height:62px;
    transform:none;
  }
  .platform-page .coffee-cup-large .coffee-icon-large{width:58px;height:58px;}
  .platform-page .coffee-break-content{
    padding:27px 18px 20px;
    overflow:hidden;
  }
  .platform-page .coffee-break-dialog h2.coffee-break-brand{margin:0 0 9px !important;font-size:18px !important;}
  .platform-page .coffee-break-kicker{margin-bottom:14px;font-size:9px;letter-spacing:.15em;}
  .platform-page .coffee-break-content .coffee-tip-english{
    margin-bottom:7px;
    font-size:clamp(28px,8vw,39px);
    line-height:1.02;
  }
  .platform-page .coffee-tip-portuguese{margin-bottom:16px;font-size:14px;}
  .platform-page .coffee-tip-card{padding:13px 14px 12px 12px;border-radius:13px;}
  .platform-page .coffee-tip-card-label{margin-bottom:7px;font-size:9px;}
  .platform-page .coffee-tip-example{font-size:14px;line-height:1.35;}
  .platform-page .coffee-tip-translation{margin-top:9px;padding-top:9px;}
  .platform-page .coffee-tip-translation strong{font-size:12px;}
  .platform-page .coffee-tip-translation p{margin-top:6px;font-size:11px;line-height:1.35;}
  .platform-page .coffee-break-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:15px;}
  .platform-page .coffee-break-actions .btn{width:100%;height:41px;min-height:41px;padding:0 10px;font-size:11px;}
  .platform-page .coffee-break-footnote{margin-top:11px;text-align:left;font-size:11px;line-height:1.35;}
  .platform-page .coffee-break-close{top:14px;right:13px;width:40px;height:40px;}

  /* O cartão semanal permanece exatamente no formato compacto original. */
  .streak-week{grid-template-columns:repeat(7,1fr);gap:5px;}
  .streak-day{min-height:0;padding:8px 2px;border-radius:12px;}
  .streak-day-short{display:block;}
  .streak-day-full{display:none;}
}

@media (max-width:560px) and (max-height:700px){
  .platform-page .coffee-break-dialog{height:auto;}
  .platform-page .coffee-break-content{padding:19px 14px 14px;}
  .platform-page .coffee-break-dialog h2.coffee-break-brand{font-size:16px !important;margin:0 0 6px !important;}
  .platform-page .coffee-break-kicker{margin-bottom:9px;font-size:8px;}
  .platform-page .coffee-break-content .coffee-tip-english{font-size:clamp(25px,7.3vw,34px);}
  .platform-page .coffee-tip-portuguese{margin-bottom:10px;font-size:13px;}
  .platform-page .coffee-tip-card{padding:10px 12px 9px 10px;}
  .platform-page .coffee-tip-card-label{margin-bottom:5px;}
  .platform-page .coffee-tip-translation{margin-top:7px;padding-top:7px;}
  .platform-page .coffee-tip-translation p{display:none;}
  .platform-page .coffee-break-actions{gap:7px;margin-top:10px;}
  .platform-page .coffee-break-actions .btn{height:37px;min-height:37px;font-size:10px;}
  .platform-page .coffee-break-footnote{margin-top:7px;font-size:10px;}
}


@media (max-width:760px){
  .streak-week{grid-template-columns:repeat(7,1fr);gap:5px;}
  .streak-day{min-height:0;padding:8px 2px;border-radius:12px;}
  .streak-day-short{display:block;}
  .streak-day-full{display:none;}
}

/* =========================================================
   Refinamentos — dashboard, Coffee Break e sobreposição
   ========================================================= */

/* O carregamento permanece acima da página, mas nunca cobre uma resposta
   modal já aberta. */
.page-skeleton{z-index:9500;}

/* Separa visualmente o bloco de consistência da área de cursos. */
.engagement-section{
  background:var(--nci-soft-2);
  box-shadow:inset 0 1px 0 rgba(20,36,107,.04),inset 0 -1px 0 rgba(20,36,107,.05);
}

@media (min-width:761px){
  /* Mesma hierarquia tipográfica dos demais títulos principais da home. */
  .engagement-title-row h2{
    font-size:clamp(34px,4.1vw,54px);
    font-weight:870;
    letter-spacing:-.045em;
  }

  /* Mantém os três cartões alinhados, sem o efeito de escada. */
  .streak-card{
    align-self:stretch;
    display:flex;
    flex-direction:column;
  }
  .streak-week{margin-top:auto;}

  /* Um pouco mais de respiro antes das ações, como no popup do site. */
  .platform-page .coffee-break-actions{margin-top:20px;}
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions{margin-top:14px;}
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-actions{margin-top:10px;}
}

/* =========================================================
   Coffee Break — altura dinâmica e respiro entre conteúdos
   ========================================================= */

/* O conteúdo passa a definir a altura do popup. Textos maiores aumentam o
   cartão verticalmente; somente quando a altura disponível da tela termina o
   próprio popup recebe rolagem, sem ocultar blocos. */
.platform-page .coffee-break-dialog{
  height:auto !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  align-items:stretch;
}
.platform-page .coffee-break-content{
  height:auto;
  overflow:visible;
}

@media (min-width:561px){
  .platform-page .coffee-break-dialog{
    min-height:478px;
    max-height:calc(100dvh - 28px) !important;
  }
  .platform-page .coffee-break-visual{
    height:auto;
    min-height:478px;
    align-self:stretch;
  }
  .platform-page .coffee-break-content{
    min-height:478px;
    padding:38px 47px 26px;
  }
  .platform-page .coffee-break-dialog h2.coffee-break-brand{
    margin-bottom:14px !important;
  }
  .platform-page .coffee-break-kicker{
    margin-bottom:16px;
  }
  .platform-page .coffee-break-content .coffee-tip-english{
    margin-bottom:13px;
  }
  .platform-page .coffee-tip-portuguese{
    margin-bottom:22px;
  }
  .platform-page .coffee-tip-card{
    padding:15px 19px 14px 17px;
  }
  .platform-page .coffee-tip-card-label{
    margin-bottom:10px;
  }
  .platform-page .coffee-tip-translation{
    margin-top:11px;
    padding-top:11px;
  }
  .platform-page .coffee-tip-translation p{
    margin-top:7px;
  }
  .platform-page .coffee-break-actions{
    margin-top:24px;
  }
  .platform-page .coffee-break-footnote{
    margin-top:13px;
  }

  /* Expressões longas reduzem apenas o necessário na tipografia. Os blocos
     não são mais comprimidos para caber em uma altura fixa. */
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-content{
    min-height:478px;
    padding:36px 43px 25px;
  }
  .platform-page .coffee-break-dialog.is-long-expression h2.coffee-break-brand{
    margin-bottom:12px !important;
    font-size:19px !important;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-kicker{
    margin-bottom:14px;
    font-size:10px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-english{
    margin-bottom:11px;
    font-size:36px;
    line-height:1.02;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-portuguese{
    margin-bottom:19px;
    font-size:15px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card{
    padding:14px 17px 13px 15px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card-label{
    margin-bottom:9px;
    font-size:9px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-example{
    font-size:13px;
    line-height:1.4;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation{
    margin-top:10px;
    padding-top:10px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation strong{
    font-size:11px;
    line-height:1.4;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation p{
    margin-top:6px;
    font-size:10px;
    line-height:1.4;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions{
    margin-top:22px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-footnote{
    margin-top:12px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-content{
    min-height:478px;
    padding:34px 40px 24px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-english{
    font-size:31px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-portuguese{
    margin-bottom:18px;
    font-size:14px;
  }
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-actions{
    margin-top:20px;
  }
}

@media (max-width:560px){
  .platform-page .coffee-break-dialog{
    height:auto !important;
    max-height:calc(100dvh - 16px) !important;
    overflow-y:auto !important;
  }
  .platform-page .coffee-break-visual{
    height:auto;
    min-height:100%;
    align-self:stretch;
  }
  .platform-page .coffee-break-content{
    height:auto;
    overflow:visible;
    padding:28px 18px 22px;
  }
  .platform-page .coffee-break-dialog h2.coffee-break-brand{
    margin-bottom:11px !important;
  }
  .platform-page .coffee-break-kicker{margin-bottom:15px;}
  .platform-page .coffee-break-content .coffee-tip-english{margin-bottom:9px;}
  .platform-page .coffee-tip-portuguese{margin-bottom:18px;}
  .platform-page .coffee-tip-card-label{margin-bottom:8px;}
  .platform-page .coffee-tip-translation{margin-top:10px;padding-top:10px;}
  .platform-page .coffee-tip-translation p{margin-top:7px;}
  .platform-page .coffee-break-actions{margin-top:17px;}
  .platform-page .coffee-break-footnote{margin-top:12px;}
}

@media (max-width:560px) and (max-height:700px){
  /* Em telas baixas, o conteúdo permanece completo; a rolagem do próprio
     popup substitui o antigo corte da observação final. */
  .platform-page .coffee-break-content{padding:20px 14px 16px;}
  .platform-page .coffee-tip-translation p{display:block;}
  .platform-page .coffee-break-actions{margin-top:13px;}
  .platform-page .coffee-break-footnote{margin-top:9px;}
}

/* =========================================================
   Coffee Break — largura fixa e tipografia preservada
   ========================================================= */

/* Frases maiores passam a ocupar mais altura, nunca mais largura. */
@media (min-width:561px){
  .platform-page .coffee-break-dialog{
    width:min(650px,calc(100vw - 28px)) !important;
    min-width:0 !important;
    max-width:650px !important;
    box-sizing:border-box;
    grid-template-columns:175px minmax(0,1fr) !important;
  }
  .platform-page .coffee-break-content,
  .platform-page .coffee-tip-card,
  .platform-page .coffee-tip-example,
  .platform-page .coffee-tip-translation{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .platform-page .coffee-tip-card{
    width:100%;
    height:auto;
    min-height:124px;
    padding:18px 20px 17px 18px;
    overflow:visible;
  }
  .platform-page .coffee-tip-example,
  .platform-page .coffee-tip-translation strong,
  .platform-page .coffee-tip-translation p{
    overflow-wrap:break-word;
    word-break:normal;
    white-space:normal;
  }

  /* As classes de conteúdo longo deixam de reduzir a tipografia. O diálogo
     cresce verticalmente conforme o exemplo e sua tradução ocupam mais linhas. */
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-content,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-content{
    min-height:478px;
    padding:38px 47px 26px;
  }
  .platform-page .coffee-break-dialog.is-long-expression h2.coffee-break-brand,
  .platform-page .coffee-break-dialog.is-very-long-expression h2.coffee-break-brand{
    margin-bottom:14px !important;
    font-size:20px !important;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-kicker,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-kicker{
    margin-bottom:16px;
    font-size:11px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-english,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-english{
    margin-bottom:13px;
    font-size:clamp(38px,6vw,44px);
    line-height:1.02;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-portuguese,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-portuguese{
    margin-bottom:22px;
    font-size:17px;
    line-height:1.3;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-card{
    min-height:124px;
    padding:18px 20px 17px 18px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-card-label,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-card-label{
    margin-bottom:10px;
    font-size:10px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-example,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-example{
    font-size:15px;
    line-height:1.48;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-translation{
    margin-top:12px;
    padding-top:12px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation strong,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-translation strong{
    font-size:13px;
    line-height:1.45;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-tip-translation p,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-tip-translation p{
    margin-top:8px;
    font-size:11px;
    line-height:1.45;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-actions{
    margin-top:24px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-actions .btn,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-actions .btn{
    height:42px;
    min-height:42px;
    padding:0 20px;
    font-size:12px;
  }
  .platform-page .coffee-break-dialog.is-long-expression .coffee-break-footnote,
  .platform-page .coffee-break-dialog.is-very-long-expression .coffee-break-footnote{
    margin-top:13px;
    font-size:12px;
  }
}

@media (max-width:560px){
  .platform-page .coffee-break-dialog{
    width:calc(100vw - 16px) !important;
    min-width:0 !important;
    max-width:650px !important;
    box-sizing:border-box;
  }
  .platform-page .coffee-break-content,
  .platform-page .coffee-tip-card{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .platform-page .coffee-tip-card{
    width:100%;
    height:auto;
    min-height:116px;
    overflow:visible;
  }
  .platform-page .coffee-tip-example,
  .platform-page .coffee-tip-translation strong,
  .platform-page .coffee-tip-translation p{
    overflow-wrap:break-word;
    word-break:normal;
    white-space:normal;
  }
}


/* Ajustes finais: conclusão e Coffee Break */
.completion-dialog-premium .completion-premium-hero,
.completion-dialog-premium .completion-premium-hero h2,
.completion-dialog-premium .completion-premium-hero p,
.completion-dialog-premium .completion-premium-hero p strong,
.completion-dialog-premium .completion-premium-hero .eyebrow,
.completion-dialog-premium .completion-premium-hero .completion-status { color:#fff !important; }
.completion-dialog-premium .completion-premium-hero p { color:rgba(255,255,255,.82) !important; }


/* Ajustes finais — conclusão de curso mais compacta e sem rolagem no mobile */
@media (max-width: 760px) {
  .completion-dialog-premium {
    width: min(calc(100vw - 16px), 430px) !important;
    max-height: calc(100dvh - 16px);
  }

  .completion-premium-hero {
    padding: 26px 18px 18px;
  }

  .completion-premium-hero h2 {
    margin: 6px 0 8px;
    font-size: 28px;
    line-height: 1.08;
  }

  .completion-premium-hero p {
    font-size: 13px;
    line-height: 1.45;
  }

  .completion-premium-hero .completion-badge-stage {
    width: 88px;
    height: 88px;
    margin: 14px auto 12px;
    border-width: 5px;
  }

  .completion-premium-body {
    padding: 16px;
  }

  .completion-level-premium {
    margin-bottom: 12px;
  }

  .completion-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    margin-bottom: 12px;
  }

  .completion-benefits span {
    display: grid;
    min-height: 72px;
    align-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid #e6ebf4;
    border-radius: 14px;
    background: #f8faff;
  }

  .completion-benefits i {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    font-size: 10px;
  }

  .completion-benefits b {
    font-size: 9px;
    line-height: 1.25;
  }
}

@media (max-width: 390px) {
  .completion-premium-hero {
    padding: 22px 16px 16px;
  }

  .completion-premium-hero h2 {
    font-size: 25px;
  }

  .completion-premium-hero p {
    font-size: 12px;
  }

  .completion-premium-body {
    padding: 14px;
  }

  .completion-benefits span {
    min-height: 68px;
    padding: 7px 5px;
  }

  .completion-benefits b {
    font-size: 8.5px;
  }
}

/* =========================================================
   Check-in diário — sequência e conquistas de constância
   ========================================================= */
.streak-card-heading{position:relative;align-items:center}.streak-today-status{margin-left:auto;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #d6eadf;border-radius:999px;color:#16724d;background:#f3fbf7;font-size:9px;font-weight:850;white-space:nowrap}.streak-today-status i{display:grid;width:15px;height:15px;place-items:center;border-radius:50%;color:#fff;background:#1a9362;font-size:8px;font-style:normal}.streak-next-milestone{display:grid;gap:7px;margin-top:14px;padding:13px 14px;border:1px solid #e5e9f2;border-radius:15px;background:rgba(255,255,255,.76)}.streak-next-milestone>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.streak-next-milestone span{color:#7b8398;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.streak-next-milestone strong{color:#1a285f;font-size:11px}.streak-next-milestone small{color:#7d8598;font-size:9px}.streak-mini-progress{height:5px;overflow:hidden;border-radius:999px;background:#e7eaf1}.streak-mini-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e95d3f,#d83240)}.streak-all-badges{display:flex;align-items:center;gap:8px;margin-top:14px;padding:12px 13px;border:1px solid #dcece3;border-radius:14px;color:#176c49;background:#f4fbf7}.streak-all-badges span{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;color:#fff;background:#1a9362;font-size:10px}.streak-all-badges strong{font-size:10px}.streak-checkin-button{width:100%;min-height:40px;margin-top:12px;border:0;border-radius:12px;color:#fff;background:#14246b;font-size:10px;font-weight:850;cursor:pointer;box-shadow:0 9px 22px rgba(20,36,107,.17);transition:transform .18s ease,box-shadow .18s ease}.streak-checkin-button:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(20,36,107,.22)}

.daily-checkin-modal .modal-backdrop{background:rgba(7,13,39,.66);backdrop-filter:blur(9px)}.daily-checkin-dialog{width:min(470px,calc(100vw - 26px))!important;max-height:calc(100dvh - 26px);padding:0!important;overflow:auto!important;border:1px solid rgba(255,255,255,.8);border-radius:28px!important;background:#fff;box-shadow:0 34px 100px rgba(5,14,48,.34);text-align:left}.daily-checkin-dialog .modal-close{top:15px;right:15px;z-index:5;width:36px;height:36px;border:1px solid rgba(20,36,107,.10);border-radius:12px;color:#53607d;background:rgba(255,255,255,.88);backdrop-filter:blur(7px)}.daily-checkin-visual{position:relative;display:grid;height:132px;place-items:center;overflow:hidden;background:linear-gradient(145deg,#f7f9ff,#eef2ff)}.daily-checkin-visual::before,.daily-checkin-visual::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(20,36,107,.08)}.daily-checkin-visual::before{width:230px;height:230px;top:-158px;right:-58px}.daily-checkin-visual::after{width:170px;height:170px;bottom:-130px;left:-45px}.daily-checkin-orbit{position:absolute;width:96px;height:96px;border:1px solid rgba(232,73,62,.16);border-radius:50%;box-shadow:0 0 0 15px rgba(232,73,62,.045),0 0 0 29px rgba(20,36,107,.028)}.daily-checkin-flame{position:relative;z-index:2;display:grid;width:62px;height:62px;place-items:center;border-radius:21px;color:#fff;background:linear-gradient(145deg,#ff7859,#d93643);box-shadow:0 17px 34px rgba(214,54,67,.24)}.daily-checkin-flame svg{width:32px;height:32px;fill:currentColor}.daily-checkin-content{padding:25px 28px 27px}.daily-checkin-kicker{display:block;margin-bottom:8px;color:#d63e46;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.daily-checkin-content h2{margin:0 40px 9px 0;color:#111a43;font-size:29px;line-height:1.08;letter-spacing:-.035em}.daily-checkin-content>p{margin:0;color:#6d758b;font-size:12.5px;line-height:1.6}.daily-checkin-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:20px 0 16px}.daily-checkin-week>span{display:grid;min-width:0;place-items:center;gap:4px;padding:8px 2px;border:1px solid #e6e9f1;border-radius:12px;color:#8a92a6;background:#f7f8fb}.daily-checkin-week small{font-size:8px;font-weight:850}.daily-checkin-week b{font-size:10px}.daily-checkin-week i{display:grid;width:15px;height:15px;place-items:center;border-radius:50%;color:#fff;background:#dde1ea;font-size:8px;font-style:normal}.daily-checkin-week .is-active{border-color:#d4eadd;color:#17744e;background:#f2faf6}.daily-checkin-week .is-active i{background:#1a9362}.daily-checkin-week .is-today{box-shadow:inset 0 0 0 1px #294494}.daily-checkin-goal{display:grid;gap:8px;padding:14px 15px;border:1px solid #e3e7f0;border-radius:16px;background:#f8f9fd}.daily-checkin-goal>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.daily-checkin-goal span{color:#81899c;font-size:8.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.daily-checkin-goal strong{color:#18265f;font-size:11px}.daily-checkin-goal small{color:#7c8498;font-size:9px}.daily-checkin-goal-track{height:6px;overflow:hidden;border-radius:999px;background:#e3e7ef}.daily-checkin-goal-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f1744f,#d73543)}.daily-checkin-actions{display:grid;gap:8px;margin-top:18px}.daily-checkin-actions .btn{min-height:45px;border-radius:13px;font-size:11px;text-transform:none}.daily-checkin-actions .btn-quiet{min-height:34px;border:0;color:#6f7890;background:transparent}.daily-checkin-actions .btn-quiet:hover{color:#14246b;transform:none}

.daily-checkin-success-dialog{display:grid;justify-items:center;padding:32px 28px 27px!important;text-align:center}.daily-checkin-success-badge{position:relative;display:grid;width:94px;height:94px;place-items:center;margin:7px 0 18px;border-radius:29px;color:#fff;background:linear-gradient(145deg,#ff765a,#d93843);box-shadow:0 20px 42px rgba(214,52,65,.24)}.daily-checkin-success-badge svg{position:absolute;width:46px;height:46px;fill:rgba(255,255,255,.19)}.daily-checkin-success-badge strong{position:relative;z-index:2;margin-top:-5px;font-size:31px;line-height:1}.daily-checkin-success-badge>span{position:relative;z-index:2;margin-top:-23px;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.daily-checkin-success-badge>i{position:absolute;right:-7px;bottom:-7px;display:grid;width:29px;height:29px;place-items:center;border:4px solid #fff;border-radius:50%;color:#fff;background:#1a9362;font-size:11px;font-style:normal}.daily-checkin-success-badge.is-milestone{background:linear-gradient(145deg,#f2b43f,#b98313);box-shadow:0 20px 44px rgba(181,133,24,.25)}.daily-checkin-success-copy>span{color:#c78c1e;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.daily-checkin-success-copy h2{margin:7px 0 8px;color:#111a43;font-size:30px;letter-spacing:-.035em}.daily-checkin-success-copy p{max-width:360px;margin:0;color:#6d758b;font-size:12.5px;line-height:1.6}.daily-checkin-success-streak{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;padding:14px 16px;border:1px solid #e4e8f1;border-radius:16px;background:#f8f9fd}.daily-checkin-success-streak span{color:#7a8398;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.daily-checkin-success-streak strong{color:#17255f;font-size:13px}.daily-checkin-success-dialog .daily-checkin-actions{width:100%}

@media(max-width:620px){.streak-today-status{padding:5px 8px}.daily-checkin-dialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px);border-radius:23px!important}.daily-checkin-visual{height:112px}.daily-checkin-flame{width:56px;height:56px;border-radius:19px}.daily-checkin-flame svg{width:29px;height:29px}.daily-checkin-content{padding:21px 18px 20px}.daily-checkin-content h2{font-size:25px}.daily-checkin-content>p{font-size:11.5px}.daily-checkin-week{gap:4px;margin:16px 0 13px}.daily-checkin-week>span{padding:7px 1px;border-radius:10px}.daily-checkin-week small{font-size:7px}.daily-checkin-week b{font-size:9px}.daily-checkin-week i{width:13px;height:13px;font-size:7px}.daily-checkin-goal{padding:12px 13px}.daily-checkin-actions{margin-top:14px}.daily-checkin-success-dialog{padding:27px 19px 21px!important}.daily-checkin-success-badge{width:82px;height:82px;border-radius:25px}.daily-checkin-success-copy h2{font-size:27px}.daily-checkin-success-copy p{font-size:11.5px}.daily-checkin-success-streak{margin-top:16px;padding:12px 14px}}

@media(prefers-reduced-motion:reduce){.daily-checkin-dialog *{transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* Estados seguros quando o histórico de check-in está temporariamente indisponível. */
.streak-card.is-unavailable{background:linear-gradient(145deg,#fff,#f7f8fc)}
.streak-card.is-unavailable .streak-flame{color:#7f899f;background:#eef1f6;box-shadow:none}
.streak-unavailable-notice{display:flex;align-items:center;gap:9px;margin-top:14px;padding:12px 13px;border:1px solid #e2e6ef;border-radius:14px;color:#59647d;background:#f7f9fc}
.streak-unavailable-notice span{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;color:#fff;background:#7a859c;font-size:10px;font-weight:800}
.streak-unavailable-notice strong{font-size:10px}
.mission-row.is-unavailable{opacity:.78}
.mission-row.is-unavailable .mission-icon{color:#66718a;background:#edf0f5}
.mission-unavailable{margin-top:7px;color:#7a8499;font-size:9px;font-weight:750}
.achievement-card.is-temporarily-unavailable{opacity:.78;border-style:dashed;background:#fafbfc}
.achievement-card.is-temporarily-unavailable .achievement-card-progress{color:#737d91;background:#eef1f5}
.daily-checkin-goal-complete{border-color:#d9eadf;background:#f4faf7}
.daily-checkin-goal-complete strong{color:#176b49}
.daily-checkin-goal-complete p{margin:0;color:#64746c;font-size:10px;line-height:1.5}
