:root {
  --navy: #0B2D5C;
  --blue-light: #EAF3FF;
  --blue-mid: #DCEAFC;
  --blue-link: #2563A6;
  --bg: oklch(95% 0.02 260);
  --surface: oklch(97% 0.012 260);
  --page-bg: oklch(93% 0.015 260);
  --text-muted: #8A93A3;
  --text-dark: #101828;
  --text-nav-inactive: #A6AEBB;

  /* Identidade visual clean (iOS-style, tons oklch) */
  --ink: oklch(28% 0.07 265);
  --ink-soft: oklch(45% 0.02 260);
  --muted-2: oklch(50% 0.02 260);
  --muted-3: oklch(55% 0.02 260);
  --dark-2: oklch(20% 0.02 260);
  --card-shadow: 0 8px 20px oklch(30% 0.05 265 / 0.08);
  --brand-from: oklch(32% 0.11 268);
  --brand-to: oklch(40% 0.15 292);
  --avatar-from: oklch(58% 0.16 265);
  --avatar-to: oklch(62% 0.17 300);

  --hue-blue: oklch(48% 0.16 265);
  --hue-blue-bg: oklch(92% 0.05 265);
  --hue-purple: oklch(48% 0.16 300);
  --hue-purple-bg: oklch(92% 0.05 300);
  --hue-cyan: oklch(48% 0.14 190);
  --hue-cyan-bg: oklch(92% 0.05 190);
  --hue-amber: oklch(50% 0.15 60);
  --hue-amber-bg: oklch(92% 0.06 60);
  --hue-green: oklch(46% 0.13 145);
  --hue-green-bg: oklch(92% 0.05 145);
  --hue-pink: oklch(50% 0.16 340);
  --hue-pink-bg: oklch(92% 0.05 340);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 320px, var(--surface) 100%);
  min-height: 100vh;
  position: relative;
}

.view {
  display: none;
  flex-direction: column;
  gap: 32px;
  padding: 24px 20px 120px 20px;
}

.view.is-active {
  display: flex;
}

/* Cabeçalho de subtela */
.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn[hidden] {
  display: none;
}

.back-btn {
  border: none;
  background: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  flex: none;
}

.view-header__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.view-subtitle {
  margin: -20px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Saudação */
.greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting__text {
  flex: 1;
  min-width: 0;
}

.menu-btn[hidden] {
  display: none;
}

.menu-btn {
  border: none;
  background: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(11, 45, 92, 0.08);
  flex: none;
}

.greeting__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.greeting__subtitle {
  margin: 3px 0 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-from), var(--avatar-to));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 6px 16px oklch(58% 0.16 265 / 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex: none;
}

/* Card de boas-vindas */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-from) 0%, var(--brand-to) 100%);
  border-radius: 32px;
  padding: 26px 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px oklch(32% 0.11 268 / 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: 230px;
}

.hero__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.hero__subtitle {
  margin: 10px 0 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.hero__deco {
  position: absolute;
  right: -10px;
  bottom: -12px;
  opacity: 0.9;
}

/* Seções */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.see-all {
  border: none;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--hue-blue);
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
}

/* Acesso rápido */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-card {
  background: #FFFFFF;
  border: none;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  box-shadow: 0 12px 26px oklch(30% 0.05 265 / 0.13);
  transform: translateY(-1px);
}

.quick-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--hue-blue-bg);
  color: var(--hue-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ciclo de 6 matizes por card, igual ao design de referência */
.quick-grid .quick-card:nth-child(6n+2) .quick-card__icon { background: var(--hue-purple-bg); color: var(--hue-purple); }
.quick-grid .quick-card:nth-child(6n+3) .quick-card__icon { background: var(--hue-cyan-bg); color: var(--hue-cyan); }
.quick-grid .quick-card:nth-child(6n+4) .quick-card__icon { background: var(--hue-amber-bg); color: var(--hue-amber); }
.quick-grid .quick-card:nth-child(6n+5) .quick-card__icon { background: var(--hue-green-bg); color: var(--hue-green); }
.quick-grid .quick-card:nth-child(6n+0) .quick-card__icon { background: var(--hue-pink-bg); color: var(--hue-pink); }

.quick-card__text {
  display: flex;
  flex-direction: column;
}

.quick-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-2);
}

.quick-card__subtitle {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 3px;
  line-height: 1.4;
}

/* Últimos comunicados */
.announcements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--card-shadow);
}

.announcement--clicavel {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.announcement--clicavel:hover,
.announcement--clicavel:focus-visible {
  box-shadow: 0 12px 26px oklch(30% 0.05 265 / 0.13);
  transform: translateY(-1px);
}

/* Breve destaque ao chegar na lista vindo de um card da Início */
@keyframes announcement-destaque {
  0%, 70% { outline-color: var(--hue-blue); }
  100% { outline-color: transparent; }
}

.announcement--destacado {
  outline: 2px solid transparent;
  outline-offset: 2px;
  animation: announcement-destaque 1.6s ease forwards;
}

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

.announcement__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-2);
}

.announcement__date {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-3);
  white-space: nowrap;
  flex: none;
}

.announcement__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

.announcement__desc p,
.announcement__desc div {
  margin: 0 0 8px;
}

.announcement__desc p:last-child,
.announcement__desc div:last-child {
  margin-bottom: 0;
}

/* Navegação inferior */
.bottom-nav[hidden] {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 12px 30px oklch(30% 0.05 265 / 0.18);
  z-index: 10;
}

.nav-item {
  flex: none;
  min-width: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted-3);
  padding: 6px 14px;
  border-radius: 18px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item__label {
  font-size: 10px;
  font-weight: 600;
}

.nav-item.is-active {
  background: var(--hue-blue-bg);
  color: var(--hue-blue);
}

.nav-item.is-active .nav-item__label {
  font-weight: 700;
}

/* Tag de categoria (Comunicados) */
.tag {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.tag--blue {
  background: var(--blue-light);
  color: var(--navy);
}

.tag--green {
  background: #E7F7EF;
  color: #1F8A5A;
}

.tag--amber {
  background: #FFF4E0;
  color: #B4700A;
}

.tag--scope {
  background: #F1F3F6;
  color: #54607A;
}

.tag--direct {
  background: #FBEAFB;
  color: #9B2FAE;
}

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

.announcement__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-link);
}

.announcement__compromisso {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 4px;
}

.announcement__compromisso strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.announcement__compromisso span {
  font-size: 13px;
  color: var(--muted-2);
}

.announcement__enquete,
.announcement__formulario {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  margin-top: 4px;
}

.announcement__block-titulo {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.announcement__opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
}

.announcement__campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-dark);
}

.announcement__campo input {
  border: 1px solid rgba(11, 45, 92, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #FFFFFF;
}

.announcement__status {
  font-size: 11.5px;
  color: #1F8A5A;
  font-weight: 600;
}

.btn-mini {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.announcement__anexo {
  align-self: flex-start;
  border: 1px solid rgba(11, 45, 92, 0.12);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
}

/* Abas (Calendário) */
.tab-bar {
  display: flex;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  box-shadow: var(--card-shadow);
}

.tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--navy);
  color: #FFFFFF;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-panel.is-active {
  display: flex;
}

/* Calendário real (Escolar e Provas) */
.calendar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--card-shadow);
}

.calendar__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.calendar__nav-btn {
  border: none;
  background: var(--blue-light);
  color: var(--navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--card-shadow);
}

.calendar__day {
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dark);
  border-radius: 50%;
  cursor: pointer;
}

.calendar__day--vazio {
  cursor: default;
}

.calendar__day--hoje {
  font-weight: 700;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.calendar__day--selecionado {
  background: var(--navy);
  color: #FFFFFF;
}

.calendar__dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

.calendar__day--selecionado .calendar__dot {
  background: #FFFFFF;
}

.calendar__agenda {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar__agenda-hint {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

/* Lista de Materiais */
.materials-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.materials-group__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.material-item {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  box-shadow: var(--card-shadow);
}

.material-item--link {
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

/* Notas */
.nota-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nota-item__bimestre {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.nota-item__valor {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  flex: none;
}

.nota-item__data {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}

/* Horários */
.horario-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.horario-item__hora {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}

.horario-item__disciplina {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.horario-item__professor {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}

/* Grade semanal de horários (aulas x dias, formato boletim) */
.grade-horarios-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  background: #FFFFFF;
}

.grade-horarios {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100%;
}

.grade-horarios th:first-child,
.grade-horarios td:first-child {
  width: 52px;
}

.grade-horarios th:nth-child(2),
.grade-horarios td:nth-child(2) {
  width: 54px;
}

.grade-horarios th {
  background: var(--navy);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 9px 6px;
  text-align: center;
  white-space: nowrap;
}

.grade-horarios td {
  border: 1px solid var(--blue-mid);
  text-align: center;
  vertical-align: middle;
  padding: 6px 4px;
}

.grade-horarios__aula {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  background: var(--blue-light);
  font-size: 11px;
}

.grade-horarios__hora {
  color: var(--text-muted);
  font-size: 10.5px;
  white-space: nowrap;
  background: var(--blue-light);
}

.grade-horarios__cel {
  min-width: 74px;
}

.grade-horarios__cel--vazia {
  background: var(--surface);
}

.grade-horarios__disciplina {
  display: block;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.25;
}

.grade-horarios__rodape {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
  line-height: 1.2;
}

/* Linhas de informação (Links, Fale com a Escola, Perfil) */
.info-row {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.info-row--static {
  cursor: default;
}

.info-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.info-row__icon--danger {
  background: #FDEDEB;
}

.info-row__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.info-row__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.info-row__title--danger {
  color: #C0392B;
}

.info-row__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.info-row__chevron {
  font-size: 20px;
  color: var(--text-nav-inactive);
  flex: none;
}

/* Perfil */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 4px 0;
  cursor: pointer;
  border-radius: 20px;
}

.profile-card__edit-hint {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-link);
}

.primeiro-acesso-aviso {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #B4700A;
  background: #FFF4E0;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.5;
}

.edit-profile-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px 0;
}

.edit-profile-photo__btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}

.edit-profile-photo__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.profile-card__name {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.profile-card__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Menu lateral (troca entre filhos vinculados) */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 45, 92, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.side-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: var(--surface);
  box-shadow: 8px 0 32px rgba(11, 45, 92, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 21;
  display: flex;
  flex-direction: column;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 14px)) 18px;
  gap: 18px;
  overflow-y: auto;
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-menu__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.side-menu__close {
  border: none;
  background: var(--blue-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 15px;
  flex: none;
}

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

.side-menu__child {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #FFFFFF;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: var(--card-shadow);
}

.side-menu__child.is-active {
  border-color: var(--navy);
  background: var(--blue-light);
}

.side-menu__child-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  flex: none;
}

.side-menu__child-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.side-menu__child-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-menu__child-turma {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.side-menu__child-check {
  color: var(--navy);
  font-weight: 700;
  flex: none;
}

.side-menu__child-remove {
  border: none;
  background: none;
  color: var(--text-nav-inactive);
  font-size: 13px;
  cursor: pointer;
  flex: none;
  padding: 6px;
  font-family: inherit;
}

.side-menu__child-remove:hover {
  color: #C0392B;
}

.side-menu__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding: 0 4px;
}

/* Visualizador de PDF (Listas de Materiais) */
.pdf-viewer-overlay {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.pdf-viewer-overlay[hidden] {
  display: none;
}

.pdf-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-top, 0px)) 16px;
  padding-top: 14px;
  background: var(--navy);
  flex: none;
}

.pdf-viewer__title {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-viewer__close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-viewer__frame {
  flex: 1;
  border: none;
  width: 100%;
}
