:root {
  --ink: #15232d;
  --muted: #5b6872;
  --line: #dce4e5;
  --paper: #f7faf8;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #e56b4f;
  --gold: #e2aa35;
  --shadow: 0 20px 50px rgba(21, 35, 45, 0.12);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(21, 35, 45, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: currentColor;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
}

.brand-logo {
  width: 46px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: var(--white);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav .nav-pill {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-pill,
.site-header.is-open .nav-pill {
  border-color: var(--line);
  background: rgba(15, 118, 110, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 29, 35, 0.86) 0%, rgba(10, 29, 35, 0.68) 42%, rgba(10, 29, 35, 0.1) 76%),
    linear-gradient(0deg, rgba(10, 29, 35, 0.22), rgba(10, 29, 35, 0));
}

.hero-content {
  align-self: center;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 88px);
  padding-top: 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero .motto {
  display: inline-flex;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--white);
  background: rgba(15, 118, 110, 0.72);
  font-size: 20px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost {
  color: var(--teal-dark);
  border-color: var(--line);
  background: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -58px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.stats div {
  padding: 26px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-copy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.section-copy.narrow {
  display: block;
  max-width: 680px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.intro-grid,
.level-list {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.level-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-grid article,
.level-list article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-grid span {
  color: var(--gold);
  font-weight: 800;
}

.intro-grid h3,
.level-list h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.intro-grid p,
.level-list p,
.life p,
.contact p,
.steps span {
  color: var(--muted);
}

.levels {
  padding-top: 40px;
}

.level-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.life {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.life-panel {
  padding: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.life-panel .eyebrow,
.life-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.programs span {
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(21, 35, 45, 0.06);
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 72px 0.65fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--coral);
  font-size: 24px;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--teal-dark);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.auth-page,
.intranet-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.09), rgba(226, 170, 53, 0.1)),
    var(--paper);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px 18px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-brand {
  margin-bottom: 32px;
}

.auth-card h1,
.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}

.auth-copy,
.dashboard-hero p,
.dashboard-grid p {
  color: var(--muted);
}

.auth-notice {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(229, 107, 79, 0.1);
  font-weight: 700;
}

.auth-notice:empty {
  display: none;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form .button {
  width: 100%;
}

.auth-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--teal-dark);
  font-weight: 800;
}

.intranet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.intranet-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
}

.role-badge {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.intranet-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.dashboard-hero {
  padding: 38px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), #23485f);
}

.dashboard-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dashboard-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dashboard-grid h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.dashboard-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.intranet-tabs {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.intranet-tabs a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 800;
}

.intranet-tabs a:hover {
  background: rgba(15, 118, 110, 0.15);
}

.module {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(21, 35, 45, 0.08);
}

.module-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.module-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.module-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.comunicados-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.module-form {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: var(--paper);
}

.module-form .button {
  width: 100%;
}

.comunicados-feed {
  min-height: 360px;
}

.feed-status {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfc;
  font-weight: 700;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.feed-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feed-meta span {
  color: var(--coral);
  text-transform: uppercase;
}

.feed-item h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.feed-item p {
  margin: 0;
  color: var(--muted);
}

.feed-image {
  width: 100%;
  max-height: 220px;
  margin: 14px 0 0;
  border-radius: 8px;
  object-fit: cover;
}

.feed-item small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.feed-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.feed-delete {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(229, 107, 79, 0.34);
  border-radius: 8px;
  color: #b3422c;
  background: rgba(229, 107, 79, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feed-delete:hover {
  border-color: rgba(229, 107, 79, 0.62);
  background: rgba(229, 107, 79, 0.14);
}

.feed-toggle {
  color: var(--teal-dark);
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
}

.classroom-module {
  border-top: 4px solid var(--gold);
}

.classroom-module .module-badge {
  background: rgba(226, 170, 53, 0.18);
}

.student-attendance-module {
  border-top: 4px solid var(--teal);
}

.student-homework-module {
  border-top: 4px solid var(--gold);
}

.student-attendance-module .module-heading,
.student-homework-module .module-heading {
  margin-bottom: 18px;
}

.student-attendance-module .module-badge {
  background: rgba(15, 118, 110, 0.1);
}

.student-homework-module .module-badge {
  background: rgba(226, 170, 53, 0.18);
}

.student-attendance-module .feed-status,
.student-homework-module .feed-status {
  margin-top: 0;
}

.student-task-panel {
  display: grid;
  gap: 22px;
}

.student-task-heading {
  display: flex;
  justify-content: flex-end;
}

.student-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.student-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.student-section-heading h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.attendance-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 4px;
}

.attendance-preview h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.attendance-preview p {
  margin: 0;
  color: var(--muted);
}

.attendance-list {
  display: grid;
  gap: 10px;
}

.attendance-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.attendance-item strong,
.attendance-item small {
  display: block;
  overflow-wrap: anywhere;
}

.attendance-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.task-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.classroom-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.classroom-summary div {
  padding: 16px;
  background: var(--white);
}

.classroom-summary strong {
  display: block;
  color: var(--teal);
  font-size: 28px;
  line-height: 1;
}

.classroom-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.delivery-status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #8a4b12;
  background: rgba(226, 170, 53, 0.16);
  font-weight: 800;
}

.delivery-status.is-delivered {
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.12);
}

.submission-box {
  margin-top: 14px;
}

.submission-box summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 800;
}

.submission-form {
  margin-top: 12px;
  padding: 18px;
}

.submission-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.review-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.delivery-report {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.delivery-report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.delivery-report-summary div {
  padding: 12px;
  background: var(--white);
}

.delivery-report-summary strong {
  display: block;
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
}

.delivery-report-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pending-report {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--white);
}

.delivery-download {
  justify-self: end;
}

.pending-report summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 800;
}

.pending-student-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pending-student-list span {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-item strong,
.review-item small {
  display: block;
}

.review-item small {
  margin-top: 3px;
  color: var(--muted);
}

.review-item p {
  margin: 10px 0;
}

.feedback-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.feedback-form .button {
  justify-self: end;
}

.student-feedback {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
}

.student-feedback p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feed-delete:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.check-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
}

.check-line input {
  width: 18px;
  height: 18px;
}

.public-news {
  padding-top: 40px;
}

.public-news-status {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  font-weight: 700;
}

.public-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-news-card {
  overflow: hidden;
  min-height: 230px;
  padding: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(21, 35, 45, 0.06);
}

.public-news-card .feed-meta,
.public-news-card h3,
.public-news-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.public-news-card .feed-meta {
  margin-top: 24px;
}

.public-news-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--line);
}

.public-news-card h3 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
}

.public-news-card p {
  margin: 0;
  color: var(--muted);
}

.users-list {
  display: grid;
  gap: 12px;
}

.user-directory-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.user-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.user-row > .user-role-editor {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

.user-row > .role-badge {
  justify-self: end;
}

.user-row strong,
.user-row small {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.user-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.user-role-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

.user-role-editor select {
  min-height: 42px;
  min-width: 0;
  padding: 10px 36px 10px 12px;
}

.student-code-editor input {
  min-height: 42px;
  min-width: 0;
}

.user-role-button {
  min-height: 42px;
  padding-inline: 14px;
}

.teacher-aula-editor {
  align-items: start;
  grid-template-columns: 1fr;
  gap: 12px;
}

.teacher-aula-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 8px;
}

.teacher-aula-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.teacher-aula-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.teacher-aula-option input {
  width: 16px;
  height: 16px;
}

.student-roster-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.student-roster-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.student-roster-heading h3 {
  margin: 4px 0 0;
  font-size: 26px;
}

.student-roster-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.1);
  font-weight: 800;
}

.student-roster-list {
  display: grid;
  gap: 10px;
}

.student-roster-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.student-roster-item strong,
.student-roster-item small {
  display: block;
  overflow-wrap: anywhere;
}

.student-roster-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

[data-users-module] .comunicados-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

[data-users-module] .module-form {
  align-self: start;
}

[data-users-module] .role-badge {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 29, 35, 0.86), rgba(10, 29, 35, 0.48));
  }

  .hero-content {
    margin: 0 auto;
  }

  .stats,
  .intro-grid,
  .level-list,
  .life,
  .contact,
  .section-copy,
  .dashboard-grid,
  .comunicados-layout,
  .public-news-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 0;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intranet-header,
  .intranet-user {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-heading {
    flex-direction: column;
  }

  .user-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .user-role-editor {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .user-directory-controls {
    grid-template-columns: 1fr;
  }

  .teacher-aula-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-aula-actions {
    flex-direction: column;
  }

  .student-roster-heading,
  .student-roster-item,
  .attendance-preview,
  .attendance-item {
    grid-template-columns: 1fr;
  }

  [data-users-module] .comunicados-layout {
    grid-template-columns: 1fr;
  }

  .task-filters {
    grid-template-columns: 1fr;
  }

  .classroom-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .hero-content,
  .section,
  .stats {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .programs {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
