@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  src: url("../fonts/Inter.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #24293d;
  background: #24293d;
  font-synthesis: none;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  border: 0;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.55;
}
.muted {
  color: #73798c;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8196;
}
.btn {
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  background: #eef0f6;
  color: #24293d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 46px;
}
.primary {
  background: #e34444;
  color: white;
}
.secondary {
  background: #dceaff;
  color: #244777;
}
.ghost {
  background: transparent;
}
.small {
  font-size: 0.8rem;
  min-height: 36px;
  padding: 8px 12px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: #eef0f6;
  font-size: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
input,
select {
  border: 1px solid #dde1ea;
  border-radius: 12px;
  background: white;
  padding: 13px 14px;
  min-height: 46px;
  color: #24293d;
  max-width: 100%;
}
input:focus,
select:focus {
  border-color: #78a8ef;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  background: radial-gradient(ellipse at top right, #34405e, transparent 65%);
}
.login-card {
  width: min(100%, 430px);
  background: white;
  border-radius: 28px;
  padding: 38px;
}
.login-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 28px;
}
.login-card h1 {
  text-align: center;
  margin-bottom: 28px;
}
.login-card form {
  display: grid;
  gap: 20px;
}
.login-card .primary {
  width: 100%;
}
.login-card form[aria-busy="true"] .primary {
  opacity: 1;
  cursor: wait;
}
.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 56px;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: #737d92;
}
.password-toggle:hover {
  background: #edf2fa;
}
.password-toggle:focus-visible {
  outline: 3px solid #78a8ef;
  outline-offset: 1px;
}
.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .eye-slash {
  display: none;
}
.password-toggle[aria-pressed="true"] .eye-slash {
  display: block;
}
.login-card .login-spinner {
  width: 19px;
  height: 19px;
  margin: 0;
  border-width: 2px;
  border-color: #ffffff55;
  border-top-color: white;
}
@media (max-width: 480px) {
  .login-card {
    padding: 28px;
  }
  .login-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
  }
  .login-card h1 {
    font-size: 1.65rem;
  }
}
.shell {
  max-width: 1500px;
  margin: auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.sidebar {
  padding: 30px 20px;
  color: #aab0c2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  margin: 0 12px 38px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand strong {
  font-size: 1rem;
}
.brand span {
  display: block;
  font-size: 0.7rem;
  color: #aab0c2;
  margin-top: 4px;
  letter-spacing: 0.08em;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  text-align: left;
  padding: 15px 16px;
  background: transparent;
  color: #aab0c2;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  gap: 13px;
  align-items: center;
}
.nav button.active {
  background: #ffffff12;
  color: white;
}
.nav button.active:before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: #f06464;
}
.nav-icon {
  width: 20px;
  color: #9fb9e7;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid #ffffff15;
  font-size: 0.8rem;
}
.sidebar-foot strong {
  display: block;
  color: white;
  margin-bottom: 5px;
}
.main {
  background: #f3f5f9;
  border-radius: 28px 0 0 28px;
  margin-top: 16px;
  padding: 0 38px 38px;
  min-width: 0;
}
.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e1e5ee;
}
.topbar .eyebrow {
  color: #9298a9;
}
.avatar {
  background: #dce8fa;
  color: #33527e;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}
.mobile-menu,
.mobile-logo {
  display: none;
}
.content {
  padding-top: 32px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 0.9rem;
}
.preview-banner {
  background: #e7effd;
  border: 1px solid #d4e2fc;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
  color: #355783;
}
.preview-banner strong {
  color: #234271;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid #e9ecf2;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat strong {
  font-size: 1.8rem;
  display: block;
  margin-top: 8px;
  letter-spacing: -0.06em;
}
.stat-icon {
  background: #eef4fe;
  color: #6b94cc;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.panel {
  background: white;
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  padding: 24px;
}
.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.week-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.date-btn {
  background: transparent;
  border: 1px solid #e6e9f0;
  border-radius: 13px;
  padding: 13px 4px;
  color: #7b8396;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 0.7rem;
}
.date-btn strong {
  font-size: 1.12rem;
  color: #24293d;
}
.date-btn.active {
  background: #24293d;
  border-color: #24293d;
  color: #bbc7df;
}
.date-btn.active strong {
  color: white;
}
.date-btn.today:not(.active) {
  border-color: #8ab1ef;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.toolbar .field {
  flex: 1;
  min-width: 160px;
}
.toolbar .search {
  flex: 1.5;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-label .muted {
  font-size: 0.8rem;
}
.class-list {
  display: grid;
  gap: 12px;
}
.class-card {
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.class-time {
  min-width: 78px;
  border-right: 1px solid #e7eaf1;
  padding-right: 20px;
}
.class-time strong {
  display: block;
  font-size: 1rem;
}
.class-time span {
  display: block;
  font-size: 0.75rem;
  color: #8b92a3;
  margin-top: 5px;
}
.class-details {
  flex: 1;
  min-width: 0;
}
.class-details h3 {
  margin: 8px 0;
}
.class-details p {
  font-size: 0.8rem;
  color: #7d8597;
}
.pill {
  display: inline-block;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #edf3fe;
  color: #537bad;
}
.pill.saved {
  background: #e8f4ec;
  color: #398254;
}
.pill.neutral {
  background: #f1f2f6;
  color: #7a8192;
}
.empty {
  padding: 45px 16px;
  text-align: center;
}
.empty-icon {
  font-size: 2rem;
  color: #9eb6d8;
  margin-bottom: 12px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 0.9rem;
  color: #7a8192;
  max-width: 430px;
  margin: auto;
}
.empty .btn {
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
th {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #939aaa;
  padding: 14px;
  border-bottom: 1px solid #e5e9f0;
}
td {
  padding: 17px 14px;
  border-bottom: 1px solid #eef0f5;
}
td strong {
  display: block;
}
td small {
  display: block;
  margin-top: 5px;
  color: #8c93a3;
}
.school-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.school-card {
  border: 1px solid #e5e9f1;
  border-radius: 16px;
  padding: 22px;
}
.school-card h3 {
  margin: 12px 0 8px;
}
.school-card p {
  font-size: 0.82rem;
  color: #788194;
  margin: 4px 0;
}
.account {
  max-width: 640px;
}
.account dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  font-size: 0.9rem;
  margin: 25px 0;
}
.account dt {
  color: #7f8797;
}
.account dd {
  margin: 0;
  font-weight: 600;
}
.error {
  background: #fff0ef;
  border: 1px solid #f7d3d0;
  color: #a03632;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #7a8192;
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #dce4f2;
  border-top-color: #6f98d3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(680px, calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  color: #24293d;
  box-shadow: 0 30px 90px #0005;
}
dialog::backdrop {
  background: #14182799;
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid #e6e9f0;
}
.dialog-head > div {
  flex: 1;
}
.dialog-head h2 {
  margin: 8px 0;
}
.dialog-head p {
  font-size: 0.8rem;
}
.dialog-body {
  padding: 24px;
  max-height: 58dvh;
  overflow: auto;
}
.dialog-footer {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e6e9f0;
  background: #fafbfe;
}
.attendance-summary {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: #f3f6fc;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.8rem;
}
.student-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
}
.student-row > div:first-child {
  flex: 1;
}
.student-row strong {
  font-size: 0.86rem;
}
.student-row small {
  display: block;
  font-size: 0.72rem;
  color: #8a92a4;
  margin-top: 5px;
}
.attendance-toggle {
  display: flex;
  gap: 4px;
  border-radius: 10px;
  background: #f0f2f7;
  padding: 4px;
}
.attendance-toggle button {
  padding: 9px 12px;
  border-radius: 7px;
  background: transparent;
  font-size: 0.75rem;
  color: #7b8394;
}
.attendance-toggle button[aria-pressed="true"] {
  background: white;
  color: #267344;
  box-shadow: 0 2px 6px #0001;
}
.attendance-toggle button.absent[aria-pressed="true"] {
  color: #bb4141;
}
.dialog-footer small {
  color: #7d8596;
}
.drawer-overlay {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #24293d;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 5px 25px #0003;
  z-index: 100;
  display: none;
}
#toast.visible {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .main {
    padding: 0 24px 28px;
  }
  .class-card {
    gap: 14px;
    padding: 16px;
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 260px;
    z-index: 20;
    background: #24293d;
  }
  .drawer-open .sidebar {
    transform: none;
  }
  .drawer-open .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #0007;
    z-index: 19;
  }
  .main {
    margin: 0;
    border-radius: 0;
    padding: 0 16px 28px;
    min-height: 100dvh;
  }
  .topbar {
    min-height: 76px;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }
  .topbar > .eyebrow {
    display: none;
  }
  .top-right .coach-label {
    display: none;
  }
  .content {
    padding-top: 24px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 1.75rem;
  }
  .page-heading p {
    font-size: 0.8rem;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px 10px;
    border-radius: 14px;
  }
  .stat .eyebrow {
    font-size: 0.57rem;
    letter-spacing: 0.07em;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .stat-icon {
    display: none;
  }
  .panel {
    padding: 16px;
    border-radius: 18px;
  }
  .schedule-head h2 {
    font-size: 1rem;
  }
  .week-controls {
    gap: 5px;
  }
  .dates {
    gap: 4px;
  }
  .date-btn {
    border-radius: 9px;
    padding: 11px 2px;
    font-size: 0.65rem;
  }
  .date-btn strong {
    font-size: 1rem;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .field {
    min-width: 130px;
  }
  .class-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .class-time {
    min-width: 67px;
    padding-right: 12px;
  }
  .class-details h3 {
    font-size: 0.9rem;
  }
  .class-card > .btn {
    width: 100%;
    min-height: 40px;
  }
  .class-card .pill {
    font-size: 0.6rem;
  }
  .preview-banner {
    font-size: 0.72rem;
  }
  .dialog-body,
  .dialog-head {
    padding: 18px;
  }
  .dialog-footer {
    padding: 16px;
    flex-wrap: wrap;
  }
  .attendance-toggle button {
    padding: 9px;
  }
  .account dl {
    grid-template-columns: 100px 1fr;
  }
  .top-right {
    gap: 8px;
  }
}

.sidebar-signout {
  color: #b9c0d1;
  padding-left: 0;
  margin-top: 12px;
}
.stat-total {
  font-size: 1rem;
}
.school-students {
  margin-top: 15px;
}
.account-name {
  margin-top: 18px;
}
.summary-school {
  margin-bottom: 20px;
}

.summary-details {
  display: grid;
  gap: 12px;
  font-size: 0.85rem;
}
.summary-details h3 {
  margin-top: 8px;
}
