/* Tema e base */
:root {
  --forest: #073e31;
  --forest-2: #0b5743;
  --forest-3: #e5f1ec;
  --lime: #d8ff32;
  --lime-2: #f0ffb5;
  --ink: #0d211b;
  --muted: #667871;
  --line: #dde7e2;
  --paper: #fff;
  --bg: #f3f7f5;
  --danger: #d64b3f;
  --warning: #f2a71b;
  --shadow: 0 14px 40px rgba(7, 47, 36, 0.09);
  --shadow-hover: 0 20px 45px rgba(7, 47, 36, 0.13);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -12%, rgba(216, 255, 50, 0.13), transparent 28rem),
    radial-gradient(circle at 38% 105%, rgba(20, 118, 88, 0.06), transparent 32rem),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
::selection {
  color: var(--ink);
  background: var(--lime);
}
:focus-visible {
  outline: 3px solid rgba(122, 158, 0, 0.38);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
body[data-role="teacher"] [data-admin-only],
body[data-role="teacher"] [data-finance-only],
body[data-role="viewer"] [data-admin-only] {
  display: none !important;
}
body[data-role="teacher"] .bottom-nav {
  grid-template-columns: repeat(4, 1fr);
}

/* Entrada, conta e sincronização */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 255, 50, 0.2), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(48, 149, 116, 0.25), transparent 32%),
    linear-gradient(145deg, #030b09, #08271f 62%, #06110e);
  isolation: isolate;
}
.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.auth-brand {
  position: absolute;
  top: 30px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-brand strong,
.auth-brand small {
  display: block;
  font-family: Manrope, "Segoe UI", sans-serif;
}
.auth-brand strong {
  font-size: 1.25rem;
  line-height: 1;
}
.auth-brand small {
  margin-top: 5px;
  color: var(--lime);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}
.auth-card {
  width: min(100%, 430px);
  min-height: 390px;
  padding: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.965);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  animation: auth-card-in 0.65s var(--ease-out) both;
}
.auth-state h1 {
  margin: 9px 0 8px;
  font: 800 1.85rem/1.15 Manrope, "Segoe UI", sans-serif;
}
.auth-state > p:not(.auth-error) {
  margin: 0 0 25px;
  color: var(--muted);
}
.auth-state[data-auth-state="loading"] {
  min-height: 310px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.auth-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 4px solid var(--forest-3);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}
.auth-error {
  min-height: 1.4em;
  margin: 12px 0;
  color: var(--danger);
  font-size: 0.85rem;
}
.auth-link {
  display: block;
  margin: 18px auto 0;
}
.auth-footnote {
  position: absolute;
  bottom: 22px;
  color: #91a39c;
}
.logout-button {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: #d5dfdb;
  background: rgba(255, 255, 255, 0.05);
}
.logout-button:hover {
  color: var(--lime);
  border-color: rgba(216, 255, 50, 0.3);
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Estrutura principal e navegação */
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background:
    radial-gradient(circle at 20% 92%, rgba(216, 255, 50, 0.09), transparent 30%),
    linear-gradient(180deg, #04110d, #061c16 58%, #04110d);
  color: #fff;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  border-right: 1px solid rgba(216, 255, 50, 0.08);
  box-shadow: 18px 0 45px rgba(2, 20, 15, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 0 8px 26px;
}
.brand-mark {
  width: 45px;
  height: 45px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 50, 0.08);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -70%;
  width: 45%;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.55);
  animation: brand-sheen 6s ease-in-out infinite;
}
.brand-mark span {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand strong {
  display: block;
  font:
    800 1.25rem/1 Manrope,
    sans-serif;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: var(--lime);
  font:
    0.65rem/1 Manrope,
    sans-serif;
  letter-spacing: 0.25em;
}
.side-nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #aebbb6;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  font-weight: 600;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}
.nav-item.active {
  background: linear-gradient(135deg, #e3ff6a, var(--lime));
  color: #10221d;
  box-shadow: 0 9px 24px rgba(216, 255, 50, 0.15);
}
.nav-icon {
  font-size: 1.22rem;
  width: 20px;
  text-align: center;
}
.side-card {
  margin-top: auto;
  background: linear-gradient(145deg, #104e3f, #0b2c24);
  padding: 17px;
  border-radius: 16px;
  border: 1px solid rgba(216, 255, 50, 0.17);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease;
}
.side-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 255, 50, 0.32);
}
.side-card-icon {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--forest);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.side-card strong {
  font:
    700 0.9rem Manrope,
    sans-serif;
}
.side-card p {
  color: #b3c0bb;
  font-size: 0.76rem;
  margin: 6px 0 13px;
}
.side-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 7px 0;
}
.side-footer strong,
.side-footer small {
  display: block;
}
.side-footer strong {
  font-size: 0.78rem;
}
.side-footer small {
  color: #82928c;
  font-size: 0.7rem;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #d9e5e0;
  color: var(--forest);
  font-weight: 800;
  font-size: 0.72rem;
}
.avatar-gold {
  background: var(--lime);
}
/* Conteúdo e componentes compartilhados */
.main {
  margin-left: 250px;
  padding: 26px 34px 48px;
  max-width: 1560px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow,
.section-kicker {
  font:
    700 0.67rem Manrope,
    sans-serif;
  letter-spacing: 0.15em;
  color: #789087;
  margin: 0 0 6px;
}
.topbar h1 {
  font:
    800 clamp(1.45rem, 2.4vw, 2rem) / 1.1 Manrope,
    sans-serif;
  margin: 0;
  letter-spacing: -0.04em;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sync-button {
  min-width: 92px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(7, 47, 36, 0.04);
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.sync-button:hover {
  transform: translateY(-2px);
  border-color: #cddbd5;
  box-shadow: 0 9px 22px rgba(7, 47, 36, 0.09);
}
.sync-button i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ba9a4;
}
.sync-button[data-status="saved"] {
  color: #167347;
  background: #effaf4;
  border-color: #cfe9da;
}
.sync-button[data-status="saved"] i {
  background: #27a766;
}
.sync-button[data-status="syncing"] i {
  background: var(--warning);
  animation: sync-pulse 0.9s ease-in-out infinite alternate;
}
.sync-button[data-status="error"] {
  color: var(--danger);
  background: #fff5f4;
  border-color: #f3d4d0;
}
.sync-button[data-status="error"] i {
  background: var(--danger);
}
@keyframes sync-pulse {
  to {
    opacity: 0.35;
  }
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 13px;
  color: var(--ink);
  font-size: 1.3rem;
  position: relative;
  box-shadow: 0 5px 16px rgba(7, 47, 36, 0.04);
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.icon-button > span {
  display: grid;
  place-items: center;
}
.icon-button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  color: var(--forest-2);
  border-color: #cbd9d3;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 47, 36, 0.1);
}
.notification i {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    700 0.65rem DM Sans,
    sans-serif;
  border: 2px solid var(--bg);
}
.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}
.button:active {
  transform: translateY(0) scale(0.98);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.button-primary {
  background: linear-gradient(135deg, var(--forest-2), var(--forest));
  color: #fff;
  box-shadow: 0 9px 22px rgba(7, 62, 49, 0.2);
}
.button-primary:hover {
  box-shadow: 0 13px 28px rgba(7, 62, 49, 0.27);
}
.button-lime {
  background: linear-gradient(135deg, #e6ff73, var(--lime));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(160, 196, 0, 0.18);
}
.button-light {
  background: #fff;
  color: var(--forest);
}
.button-small {
  padding: 8px 12px;
  font-size: 0.78rem;
}
.button-full {
  width: 100%;
  margin-top: 13px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.83rem;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    transform 0.2s var(--ease-out),
    background 0.2s ease;
}
.text-button:hover {
  color: var(--forest-2);
  transform: translateX(2px);
}
.view {
  display: none;
}
.view.active {
  display: block;
  animation: view-in 0.38s var(--ease-out) both;
}
.welcome-strip {
  min-height: 170px;
  border-radius: 24px;
  padding: 28px 32px;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(216, 255, 50, 0.2),
      transparent 28%
    ),
    linear-gradient(120deg, #073e31, #0b5a45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(216, 255, 50, 0.13);
  box-shadow: 0 20px 45px rgba(7, 62, 49, 0.17);
}
.welcome-strip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50% auto -50% -30%;
  width: 24%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  animation: welcome-sheen 7s ease-in-out infinite;
}
.welcome-strip:after {
  content: "";
  position: absolute;
  right: 120px;
  top: -90px;
  width: 250px;
  height: 250px;
  border: 35px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  z-index: -1;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(216, 255, 50, 0.13);
  border: 1px solid rgba(216, 255, 50, 0.35);
  color: var(--lime);
  padding: 6px 10px;
  border-radius: 20px;
  font:
    700 0.64rem Manrope,
    sans-serif;
  letter-spacing: 0.12em;
}
.live-pill i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 50, 0.13);
  animation: live-pulse 1.8s ease-out infinite;
}
.welcome-strip h2 {
  font:
    800 clamp(1.8rem, 4vw, 3rem) / 1 Manrope,
    sans-serif;
  margin: 17px 0 9px;
  letter-spacing: -0.05em;
}
.welcome-strip p {
  color: #c9d7d2;
  margin: 0;
}
.sport-balls {
  display: flex;
  position: relative;
  z-index: 1;
  margin-right: 30px;
  align-items: end;
}
.sport-balls span {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(-10deg);
  animation: ball-float 4.8s ease-in-out infinite;
}
.sport-balls span:nth-child(2) {
  margin-left: -18px;
  transform: translateY(-25px) rotate(12deg);
  animation-delay: -1.3s;
}
.sport-balls span:nth-child(3) {
  width: 58px;
  height: 58px;
  margin-left: -11px;
  background: var(--lime);
  transform: translateY(7px) rotate(20deg);
  animation-delay: -2.6s;
}
/* Painel inicial */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 17px 0;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 5px 16px rgba(8, 43, 33, 0.03);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, var(--forest), var(--lime));
  transition: opacity 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: #cadbd4;
  box-shadow: var(--shadow-hover);
}
.stat-card:hover::after {
  opacity: 1;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--forest-3);
  color: var(--forest);
  font:
    800 1.15rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(7, 62, 49, 0.1);
}
.stat-card:nth-child(2) .stat-icon {
  background: #f0ffd1;
}
.stat-card:nth-child(3) .stat-icon {
  background: #fff3d4;
  color: #a56700;
}
.stat-card:nth-child(4) .stat-icon {
  background: #fee7e4;
  color: var(--danger);
}
.stat-card strong {
  display: block;
  font:
    800 1.45rem Manrope,
    sans-serif;
  line-height: 1.1;
}
.stat-card small {
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 17px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 7px 24px rgba(8, 43, 33, 0.045),
    inset 0 1px rgba(255, 255, 255, 0.8);
}
.schedule-card,
.reminder-card,
.activity-card {
  padding: 23px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.card-heading.compact {
  padding: 20px 22px 0;
}
.card-heading h2,
.section-toolbar h2 {
  font:
    800 1.15rem Manrope,
    sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
}
.count-chip {
  background: #fee6e2;
  color: var(--danger);
  border-radius: 30px;
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.class-list {
  display: grid;
  gap: 9px;
}
.class-row {
  display: grid;
  grid-template-columns: 64px 7px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 13px;
  background: #f8faf9;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s ease,
    border-color 0.2s ease;
}
.class-row:hover {
  transform: translateX(3px);
  background: #f3f8f5;
  border-color: var(--line);
}
.class-time strong {
  display: block;
  font:
    800 0.98rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
}
.class-time small {
  font-size: 0.7rem;
  color: var(--muted);
}
.class-line {
  width: 4px;
  height: 36px;
  border-radius: 4px;
  background: var(--lime);
}
.class-main strong,
.class-main small {
  display: block;
}
.class-main strong {
  font-size: 0.92rem;
}
.class-main small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}
.capacity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.mini-avatars {
  display: flex;
}
.mini-avatars i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c7d6d0;
  border: 2px solid #fff;
  margin-left: -6px;
}
.mini-avatars i:first-child {
  margin-left: 0;
}
.due-list {
  display: grid;
  gap: 10px;
}
.due-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f0;
}
.due-row:last-child {
  border: 0;
}
.due-row strong,
.due-row small {
  display: block;
}
.due-row strong {
  font-size: 0.84rem;
}
.due-row small {
  color: var(--muted);
  font-size: 0.72rem;
}
.due-badge {
  border-radius: 20px;
  padding: 5px 8px;
  font-weight: 700;
  font-size: 0.67rem;
  background: #fff0d7;
  color: #a35e00;
}
.due-badge.urgent {
  background: #fee4e1;
  color: var(--danger);
}
.activity-card {
  margin-top: 17px;
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.activity-item {
  padding: 12px 13px;
  background: #f8faf9;
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    background 0.2s ease;
}
.activity-item:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: #f3f8f5;
}
.activity-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--forest-3);
  color: var(--forest);
}
.activity-item p {
  margin: 0;
  font-size: 0.78rem;
}
.activity-item small {
  color: var(--muted);
  font-size: 0.68rem;
}
/* Listagens e filtros */
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 8px 0 22px;
}
.section-toolbar h2 {
  font-size: 1.85rem;
}
.section-toolbar p {
  color: var(--muted);
  margin: 5px 0 0;
}
.filterbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.search-field {
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  box-shadow: 0 5px 18px rgba(7, 47, 36, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.search-field:focus-within {
  border-color: rgba(7, 62, 49, 0.5);
  box-shadow: 0 0 0 4px rgba(7, 62, 49, 0.07);
}
.search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 12px 0;
  background: transparent;
}
.filterbar select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 0 13px;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(7, 47, 36, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.filterbar select:focus {
  border-color: rgba(7, 62, 49, 0.5);
  box-shadow: 0 0 0 4px rgba(7, 62, 49, 0.07);
}
.table-card {
  overflow: hidden;
}
.data-table {
  width: 100%;
}
.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.8fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.table-row.student-table-row {
  grid-template-columns: 1.4fr 0.85fr 1fr 0.8fr 0.8fr auto;
}
.table-row:last-child {
  border: 0;
}
.table-row.header {
  background: linear-gradient(180deg, #fbfdfc, #f5f9f7);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table-row:not(.header):hover {
  background: #f9fcfa;
  box-shadow: inset 3px 0 var(--lime);
}
.person-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.person-cell strong,
.person-cell small {
  display: block;
}
.person-cell strong {
  font-size: 0.86rem;
}
.person-cell small {
  font-size: 0.7rem;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  width: max-content;
  background: #e8f6ef;
  color: #207553;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.vencendo {
  background: #fff3d9;
  color: #a96a00;
}
.status.vencido {
  background: #fde6e3;
  color: #bf4237;
}
.row-actions {
  border: 0;
  background: #f0f4f2;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--forest);
  transition:
    transform 0.18s var(--ease-out),
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.row-actions:hover {
  transform: translateY(-2px);
  background: #e7efeb;
  box-shadow: 0 6px 14px rgba(7, 47, 36, 0.09);
}
.row-actions:active {
  transform: scale(0.96);
}
/* Aulas, professores, financeiro e planos */
.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow: auto;
  padding-bottom: 3px;
}
.day-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.day-tab:hover {
  transform: translateY(-2px);
  color: var(--forest);
  border-color: #c9d8d2;
}
.day-tab.active {
  background: linear-gradient(135deg, var(--forest-2), var(--forest));
  color: #fff;
  border-color: var(--forest);
  box-shadow: 0 8px 20px rgba(7, 62, 49, 0.18);
}
.class-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.class-card {
  padding: 20px;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.class-card:hover {
  transform: translateY(-4px);
  border-color: #c9d9d2;
  box-shadow: var(--shadow-hover);
}
.class-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.sport-tag {
  font:
    700 0.66rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
  background: var(--lime-2);
  color: var(--forest);
  padding: 5px 8px;
  border-radius: 7px;
}
.class-card h3 {
  font:
    800 1.08rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin: 15px 0 4px;
}
.class-card p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.class-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.people-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.person-card {
  padding: 23px;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.person-card:hover {
  transform: translateY(-4px);
  border-color: #c9d9d2;
  box-shadow: var(--shadow-hover);
}
.person-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.person-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(161, 197, 0, 0.15);
  transition: transform 0.3s var(--ease-out);
}
.person-card:hover .avatar {
  transform: rotate(-3deg) scale(1.05);
}
.person-card h3 {
  font:
    800 1rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin: 0;
}
.person-card p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 3px 0;
}
.person-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}
.person-metric {
  background: linear-gradient(145deg, #f9fcfa, #f2f7f4);
  border-radius: 12px;
  padding: 11px;
  border: 1px solid rgba(221, 231, 226, 0.75);
}
.person-metric strong,
.person-metric small {
  display: block;
}
.person-metric strong {
  font:
    800 1rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
}
.person-metric small {
  font-size: 0.68rem;
  color: var(--muted);
}
.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 16px;
}
.finance-card {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(8, 43, 33, 0.04);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.finance-card:hover {
  transform: translateY(-4px);
  border-color: #c9d9d2;
  box-shadow: var(--shadow-hover);
}
.finance-card.featured {
  background:
    radial-gradient(circle at 92% 10%, rgba(216, 255, 50, 0.2), transparent 35%),
    linear-gradient(135deg, var(--forest-2), var(--forest));
  color: #fff;
}
.finance-card span {
  font-size: 0.76rem;
  color: var(--muted);
}
.finance-card.featured span {
  color: #b8cbc4;
}
.finance-card strong {
  display: block;
  font:
    800 1.6rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin-top: 6px;
}
.pay-action {
  border: 0;
  background: var(--lime);
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  transition:
    transform 0.18s var(--ease-out),
    box-shadow 0.18s ease;
}
.pay-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(161, 197, 0, 0.2);
}
.plan-card {
  padding: 23px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: #c9d9d2;
  box-shadow: var(--shadow-hover);
}
.plan-card.featured {
  background:
    radial-gradient(circle at 85% 20%, rgba(216, 255, 50, 0.14), transparent 34%),
    linear-gradient(145deg, var(--forest-2), var(--forest));
  color: #fff;
  border-color: var(--forest);
}
.plan-accent {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -25px;
  top: -28px;
  background: var(--lime);
  opacity: 0.85;
}
.plan-card h3 {
  font:
    800 1.12rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin: 0 0 7px;
}
.plan-sport {
  font-size: 0.72rem;
  color: var(--muted);
}
.plan-card.featured .plan-sport {
  color: #b8cbc4;
}
.plan-price {
  font:
    800 1.8rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin: 25px 0 18px;
}
.plan-price small {
  font:
    500 0.75rem "DM Sans",
    system-ui,
    sans-serif;
}
.plan-details {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
}
.plan-details span:before {
  content: "✓";
  color: var(--forest);
  background: var(--lime);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  font-size: 0.65rem;
}
/* Modais, formulários e notificações */
.bottom-nav {
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 12, 0.66);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(5px);
  animation: backdrop-in 0.22s ease both;
}
.modal-backdrop[hidden] {
  display: none;
}
body.modal-open {
  overflow: hidden;
}
.modal {
  background: #fff;
  border-radius: 22px;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 27px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  animation: modal-in 0.38s var(--ease-out) both;
}
.modal:has(.access-list) {
  width: min(820px, 100%);
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  border: 0;
  background: #f0f4f2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.35rem;
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s ease,
    background 0.2s ease;
}
.modal-close:hover {
  color: var(--danger);
  background: #fbeceb;
  transform: rotate(5deg) scale(1.05);
}
.modal h2 {
  font:
    800 1.35rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
  margin: 0 0 6px;
}
.modal .intro {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.85rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 700;
  font-size: 0.76rem;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
  background: #fbfdfc;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(7, 62, 49, 0.08);
  background: #fff;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.button-ghost {
  background: #eef3f0;
  color: var(--ink);
}
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 8px;
}
.toast {
  background: #10221d;
  color: #fff;
  border-radius: 13px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 255, 50, 0.14);
  box-shadow: 0 18px 45px rgba(3, 25, 19, 0.22);
  animation: toast-in 0.35s var(--ease-out);
}
.toast strong {
  color: var(--lime);
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.table-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.backup-actions {
  display: grid;
  gap: 10px;
}
.backup-actions .button-full {
  margin-top: 0;
}
.backup-actions small {
  color: var(--muted);
  line-height: 1.5;
}
.access-invite-form {
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7faf8;
}
.access-invite-form .button-full {
  margin-top: 14px;
}
.access-list,
.backup-list {
  display: grid;
  gap: 9px;
  max-height: 330px;
  overflow-y: auto;
}
.access-row,
.backup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.access-row > div,
.backup-row > div {
  min-width: 0;
  flex: 1;
}
.access-row {
  align-items: flex-start;
}
.access-identity {
  padding-top: 7px;
}
.access-controls {
  display: grid;
  grid-template-columns: minmax(125px, 0.8fr) minmax(165px, 1.2fr) auto;
  align-items: end;
  gap: 8px;
  flex: 2.4 !important;
}
.access-controls label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.access-controls label > span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}
.access-controls select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #fff;
}
.access-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.access-row strong,
.access-row small,
.backup-row strong,
.backup-row small {
  display: block;
}
.access-row small,
.backup-row small {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.access-role {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--forest-3);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .access-row {
    display: grid;
    grid-template-columns: auto 1fr;
  }
  .access-controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .access-buttons {
    justify-content: flex-end;
  }
}
.field > span {
  font-weight: 700;
  font-size: 0.76rem;
}
.muted {
  color: var(--muted);
  font-size: 0.75rem;
}
@keyframes toast-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* Acabamento visual e movimento */
@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
}
@keyframes brand-sheen {
  0%,
  72% {
    left: -70%;
  }
  88%,
  100% {
    left: 135%;
  }
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes welcome-sheen {
  0%,
  68% {
    left: -30%;
  }
  92%,
  100% {
    left: 125%;
  }
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 255, 50, 0.38);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(216, 255, 50, 0);
  }
}
@keyframes ball-float {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -7px;
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
}
.view.active .stat-card,
.view.active .class-card,
.view.active .person-card,
.view.active .finance-card,
.view.active .plan-card {
  animation: content-rise 0.48s var(--ease-out) both;
}
.view.active :is(.stat-card, .class-card, .person-card, .finance-card, .plan-card):nth-child(2) {
  animation-delay: 45ms;
}
.view.active :is(.stat-card, .class-card, .person-card, .finance-card, .plan-card):nth-child(3) {
  animation-delay: 90ms;
}
.view.active :is(.stat-card, .class-card, .person-card, .finance-card, .plan-card):nth-child(4) {
  animation-delay: 135ms;
}
@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* Responsividade */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .class-board,
  .people-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-list {
    grid-template-columns: 1fr;
  }
  .sport-balls {
    display: none;
  }
}
@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }
  .sidebar {
    display: none;
  }
  .main {
    margin: 0;
    padding: 20px 16px 28px;
  }
  .topbar {
    align-items: flex-start;
  }
  .top-actions .button-primary {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }
  .top-actions .button-primary span {
    font-size: 1.3rem;
  }
  .top-actions #searchButton {
    display: none;
  }
  .sync-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }
  .sync-button span {
    display: none;
  }
  .auth-brand {
    top: 20px;
    left: 20px;
  }
  .auth-card {
    padding: 30px 24px;
  }
  .auth-footnote {
    position: static;
    margin-top: 18px;
  }
  .welcome-strip {
    min-height: 150px;
    padding: 23px;
  }
  .welcome-strip h2 {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    gap: 9px;
  }
  .stat-icon {
    width: 37px;
    height: 37px;
  }
  .stat-card strong {
    font-size: 1.18rem;
  }
  .stat-card small {
    font-size: 0.7rem;
  }
  .schedule-card,
  .reminder-card,
  .activity-card {
    padding: 18px;
  }
  .bottom-nav {
    display: grid;
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(6, 1fr);
    padding: 8px max(8px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 32px rgba(7, 47, 36, 0.08);
  }
  .bottom-nav button {
    border: 0;
    background: transparent;
    color: #899790;
    display: grid;
    gap: 2px;
    place-items: center;
    transition:
      color 0.2s ease,
      transform 0.2s var(--ease-out);
  }
  .bottom-nav button span {
    font-size: 1.15rem;
  }
  .bottom-nav button small {
    font-size: 0.56rem;
  }
  .bottom-nav button.active {
    color: var(--forest);
    font-weight: 800;
    transform: translateY(-1px);
  }
  .bottom-nav button.active span {
    background: linear-gradient(135deg, #e8ff7c, var(--lime));
    border-radius: 9px;
    padding: 2px 11px;
    box-shadow: 0 5px 13px rgba(161, 197, 0, 0.18);
  }
  .section-toolbar {
    align-items: start;
  }
  .section-toolbar .button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
  }
  .section-toolbar .button::first-letter {
    font-size: 1.2rem;
  }
  .filterbar {
    display: grid;
  }
  .search-field {
    min-width: 0;
  }
  .filterbar select {
    padding: 11px;
  }
  .table-card {
    overflow: auto;
  }
  #studentsTable {
    min-width: 850px;
  }
  #paymentsTable {
    min-width: 700px;
  }
  .class-board,
  .people-grid,
  .plan-grid,
  .finance-summary {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .modal {
    padding: 24px 19px;
  }
  .toast-region {
    left: 16px;
    right: 16px;
    bottom: 88px;
  }
  .toast {
    text-align: center;
  }
  .section-toolbar h2 {
    font-size: 1.55rem;
  }
}
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .class-row {
    grid-template-columns: 55px 5px 1fr;
  }
  .capacity {
    display: none;
  }
  .topbar .eyebrow {
    font-size: 0.58rem;
  }
  .topbar h1 {
    font-size: 1.35rem;
  }
}
@media (max-width: 350px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.row-action-group,
.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.card-actions {
  margin-left: auto;
}
.row-actions.danger,
.roster-remove {
  color: #bd4138;
  background: #fff0ee;
}
.row-actions.whatsapp {
  background: #dcf8e8;
  color: #087b45;
  font-weight: 800;
}
.row-actions.teacher-change {
  background: #e8f0ff;
  color: #315ca8;
  font-weight: 800;
}
.roster-preview {
  display: flex;
  align-items: center;
  margin-top: 18px;
  min-height: 32px;
}
.roster-preview .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: -6px;
  border: 2px solid #fff;
  font-size: 0.58rem;
}
.roster-preview small {
  color: var(--muted);
  margin-left: 14px;
}
.roster-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.roster-heading .attendance-count {
  flex: 0 0 auto;
  margin-right: 32px;
}
.roster-heading h2 {
  margin-top: 12px;
}
.attendance-count {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    800 1rem Manrope,
    "DM Sans",
    system-ui,
    sans-serif;
}
.roster-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  background: #f3f7f5;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 14px;
}
.roster-add select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}
.roster-list {
  display: grid;
  gap: 8px;
}
.roster-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.roster-row strong,
.roster-row small {
  display: block;
}
.roster-row strong {
  font-size: 0.84rem;
}
.roster-row small {
  font-size: 0.72rem;
  color: var(--muted);
}
.attendance-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid #cbd6d1;
  background: #fff;
  color: var(--forest);
  font-weight: 900;
}
.attendance-toggle.present {
  background: var(--lime);
  border-color: var(--lime);
}
.roster-remove {
  border: 0;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 0.7rem;
  font-weight: 700;
}
.teacher-students-button {
  margin-top: 14px;
}
.teacher-student-list {
  display: grid;
  gap: 8px;
}
.teacher-student-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.teacher-student-row strong,
.teacher-student-row small {
  display: block;
}
.teacher-student-row strong {
  font-size: 0.84rem;
}
.teacher-student-row small {
  color: var(--muted);
  font-size: 0.72rem;
}
.due-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e3f6eb;
  color: #167347;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .roster-add {
    grid-template-columns: 1fr;
  }
  .roster-row {
    grid-template-columns: auto auto 1fr;
  }
  .roster-remove {
    grid-column: 3;
    justify-self: start;
  }
  .row-action-group {
    gap: 4px;
  }
  .row-actions {
    padding: 7px;
  }
  .person-card-head {
    align-items: flex-start;
  }
}
.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.plan-actions {
  display: flex;
  gap: 6px;
}
.plan-card.featured .plan-actions .row-actions {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.plan-card.featured .plan-actions .row-actions.danger {
  background: rgba(255, 231, 228, 0.15);
  color: #ffd7d2;
}
.class-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.class-card-actions strong {
  margin-right: 3px;
}
