@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;
}
body.navigation-open {
  overflow: hidden;
}
.secondary-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.secondary-shell .main {
  height: 100%;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 16px;
}
.secondary-shell .topbar {
  flex-shrink: 0;
}
.secondary-shell .content,
.secondary-shell #page-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.secondary-shell .content {
  padding-top: 16px;
}
.secondary-shell .preview-banner {
  flex-shrink: 0;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.schools-page,
.account-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.schools-page > h1,
.account-page > h1 {
  flex-shrink: 0;
  margin-bottom: 18px;
  font-size: 1.7rem;
}
.schools-page .branch-filter {
  flex-shrink: 0;
  max-width: 360px;
  margin-bottom: 18px;
}
.schools-page .branch-filter select {
  min-height: 44px;
}
.schools-page .school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  grid-auto-rows: max-content;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}
.schools-page .school-grid > .empty {
  grid-column: 1 / -1;
}
.schools-page .school-grid::-webkit-scrollbar,
.account-page .account-scroll::-webkit-scrollbar {
  display: none;
}
.schools-page .school-grid:focus-visible,
.account-page .account-scroll:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: -2px;
  border-radius: 12px;
}
.account-page .account-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}
.schools-page .school-card {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid #343c55;
  border-left: 3px solid #23b6e8;
  border-radius: 12px;
  background: #24293d;
  color: #f4f4fc;
}
.schools-page .school-card h2 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-page .account-card {
  max-width: 560px;
  padding: 22px;
  border: 1px solid #343c55;
  border-top: 3px solid #23b6e8;
  border-radius: 17px;
  background: #24293d;
  color: #f4f4fc;
}
.account-page .account-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.account-page .account-identity > div {
  min-width: 0;
}
.account-page .account-identity .avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #23b6e819;
  border: 1px solid #23b6e83b;
  color: #b8e5f6;
}
.account-page .account-identity h2 {
  font-size: 1.08rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.account-page .account-identity p {
  margin-top: 4px;
  color: #b8c9e2;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.account-page .account-branches {
  margin: 20px 0;
  padding-top: 17px;
  border-top: 1px solid #ffffff12;
}
.account-page .account-branches h3 {
  margin-bottom: 7px;
  color: #90a4c2;
  font-size: 0.72rem;
  font-weight: 600;
}
.account-page .account-branches p {
  color: #e0e8f5;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.account-page .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.8rem;
}
.account-page .btn .menu-icon {
  width: 17px;
  height: 17px;
}
@media (max-width: 760px) {
  .secondary-shell .main {
    padding: 0 8px 20px;
  }
  .secondary-shell .topbar {
    min-height: 64px;
    padding: 0 8px;
  }
  .secondary-shell .content {
    padding-top: 10px;
  }
  .schools-page .school-grid {
    grid-template-columns: 1fr;
  }
  .schools-page .branch-filter {
    max-width: none;
  }
  .schools-page .school-card {
    padding: 15px 13px;
  }
  .account-page .account-card {
    padding: 18px;
  }
}
@media (max-height: 420px) {
  .secondary-shell .main {
    padding-bottom: 6px;
  }
  .secondary-shell .topbar {
    min-height: 48px;
  }
  .secondary-shell .content {
    padding-top: 6px;
  }
  .secondary-shell .preview-banner {
    padding: 4px 10px;
    margin-bottom: 6px;
  }
  .schools-page > h1,
  .account-page > h1 {
    margin-bottom: 10px;
    font-size: 1.4rem;
  }
  .schools-page .branch-filter {
    margin-bottom: 12px;
  }
}
.confirm-dialog {
  width: min(420px, calc(100% - 32px));
  border-radius: 20px;
  border-top: 3px solid #23b6e8;
}
.confirm-dialog .confirm-content {
  padding: 26px 24px 22px;
}
.confirm-dialog h2 {
  margin-bottom: 12px;
  color: #24293d;
}
.confirm-dialog p {
  color: #717b90;
  font-size: 0.85rem;
}
.confirm-dialog .confirm-session {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #f0f6fc;
  color: #536781;
  font-size: 0.8rem;
}
.confirm-dialog .confirm-session strong {
  color: #24293d;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.confirm-dialog .confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e6ebf2;
  background: #fafbfe;
}
.confirm-dialog .btn {
  min-height: 44px;
  padding: 11px 16px;
  font-size: 0.82rem;
}
.confirm-dialog textarea {
  width: 100%;
  min-height: 88px;
  max-height: 24dvh;
  resize: vertical;
  padding: 12px;
  border: 1px solid #dce3ed;
  border-radius: 11px;
  background: white;
  color: #24293d;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
}
.confirm-dialog textarea:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: 2px;
}
.confirm-dialog .reason-hint {
  margin-top: 7px;
  font-size: 0.72rem;
  color: #7a8599;
}
.confirm-dialog .reason-error {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #a83e44;
}
.attendance-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  inset: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f7f9fc;
  overflow: hidden;
}
.attendance-dialog[open] {
  display: flex;
  flex-direction: column;
}
.attendance-dialog .attendance-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: max(8px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) 8px
    max(16px, env(safe-area-inset-left));
  background: #24293d;
  color: #f4f4fc;
}
.attendance-dialog .attendance-header > div {
  flex: 1;
  min-width: 0;
}
.attendance-dialog .attendance-header h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.attendance-dialog .attendance-header p {
  color: #bdcde2;
  font-size: 0.72rem;
  line-height: 1.4;
}
.attendance-dialog .attendance-state {
  display: inline-block;
  margin-top: 4px;
  color: #a6def3;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}
.attendance-dialog .attendance-notice,
.attendance-dialog > .attendance-conflict {
  flex-shrink: 0;
  min-height: 0;
  max-height: 18dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  margin: 8px 16px;
  padding: 10px 12px;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  background: #eef3fa;
  color: #52637c;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.attendance-dialog .attendance-notice::-webkit-scrollbar {
  display: none;
}
.attendance-dialog .attendance-conflict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #8e4545;
}
.attendance-dialog .attendance-conflict[hidden] {
  display: none;
}
.attendance-dialog .attendance-conflict .btn {
  min-height: 44px;
  padding: 9px 12px;
  background: #24293d;
  color: #f4f4fc;
  font-size: 0.72rem;
}
.attendance-dialog .attendance-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #ffffff0c;
  color: #bde6f6;
}
.attendance-dialog .attendance-tabs {
  display: flex;
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid #e1e7f0;
  padding: 0 max(16px, env(safe-area-inset-left));
}
.attendance-dialog .attendance-tabs button {
  min-height: 50px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: transparent;
  color: #818a9d;
  border-bottom: 3px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
}
.attendance-dialog .attendance-tabs button[aria-selected="true"] {
  color: #24293d;
  border-bottom-color: #23b6e8;
}
.attendance-dialog .attendance-tabs span {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #eef2f8;
  color: #6c7890;
  font-size: 0.7rem;
}
.attendance-dialog .attendance-tabs button[aria-selected="true"] span {
  background: #e4f5fc;
  color: #25647b;
}
.attendance-dialog .attendance-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 max(16px, env(safe-area-inset-right)) 0
    max(16px, env(safe-area-inset-left));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.attendance-dialog .attendance-list::-webkit-scrollbar {
  display: none;
}
.attendance-dialog .attendance-list:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: -2px;
}
.attendance-dialog .attendance-student {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 65px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e7f0;
}
.attendance-dialog .attendance-student > strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}
.attendance-dialog .attendance-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #e0f3ed;
  color: #24694f;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.attendance-dialog .attendance-mark .menu-icon {
  width: 17px;
  height: 17px;
}
.attendance-dialog .attendance-mark.mark-absent {
  background: #fae7e7;
  color: #a74246;
}
.attendance-dialog .attendance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px max(16px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid #e1e7f0;
  background: white;
  flex-wrap: wrap;
}
.attendance-dialog .attendance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.attendance-dialog .attendance-actions .btn {
  min-width: 44px;
  padding: 10px 12px;
  font-size: 0.76rem;
}
.attendance-dialog .attendance-actions [data-cancel-session],
.attendance-dialog .attendance-actions .session-cancel {
  background: #fae8e8;
  color: #a43c43;
}
.attendance-dialog .attendance-footer small {
  color: #7c879c;
  font-size: 0.72rem;
}
.attendance-dialog .attendance-footer .btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.8rem;
}
.attendance-dialog > .error {
  flex-shrink: 0;
  margin: 10px 16px 0;
  font-size: 0.78rem;
  padding: 10px 12px;
}
.attendance-dialog button:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .attendance-dialog .attendance-header,
  .attendance-dialog .attendance-tabs,
  .attendance-dialog .attendance-list,
  .attendance-dialog .attendance-footer {
    padding-left: max(24px, calc((100vw - 1000px) / 2));
    padding-right: max(24px, calc((100vw - 1000px) / 2));
  }
}
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;
}
.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;
}
.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;
}
.panel {
  background: white;
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  padding: 24px;
}
.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;
}
.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;
}
.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;
}
.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;
}
.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;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .main {
    margin: 0;
    border-radius: 0;
    padding: 0 16px 28px;
    min-height: 100dvh;
  }
  .topbar {
    min-height: 76px;
  }
  .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;
  }
  .panel {
    padding: 16px;
    border-radius: 18px;
  }
  .dates {
    gap: 4px;
  }
  .date-btn {
    border-radius: 9px;
    padding: 11px 2px;
    font-size: 0.65rem;
  }
  .date-btn strong {
    font-size: 1rem;
  }
  .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;
  }
  .preview-banner {
    font-size: 0.72rem;
  }
  .dialog-body,
  .dialog-head {
    padding: 18px;
  }
  .dialog-footer {
    padding: 16px;
    flex-wrap: wrap;
  }
  .top-right {
    gap: 8px;
  }
}

/* Home owns the viewport; only its session list scrolls. */
.home-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.home-shell .main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100%;
  margin-top: 0;
  padding-bottom: 16px;
}
.home-shell .sidebar {
  min-height: 0;
  overflow-y: auto;
}
.home-shell .brand,
.home-shell .nav,
.home-shell .sidebar-foot {
  flex-shrink: 0;
}
.home-shell .topbar {
  flex-shrink: 0;
}
.home-shell .content,
.home-shell #page-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home-shell .content {
  padding-top: 16px;
}
.home-shell .preview-banner {
  flex-shrink: 0;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.home-schedule {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 18px;
}
.home-shell .mobile-menu {
  min-width: 44px;
  min-height: 44px;
}
.home-schedule .dates {
  flex-shrink: 0;
  gap: 6px;
  margin-bottom: 14px;
}
.home-schedule .date-btn {
  min-width: 44px;
  min-height: 56px;
  padding: 9px 2px;
  gap: 4px;
}
.home-schedule .date-btn.active {
  background: #24293d;
  border-color: #24293d;
  box-shadow: inset 0 -3px #23b6e8;
}
.home-schedule .date-btn.today:not(.active) {
  border-color: #23b6e8;
  background: #effaff;
}
.home-schedule .class-list {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  gap: 8px;
  padding: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.home-schedule .class-list::-webkit-scrollbar {
  display: none;
}
.home-schedule .class-list:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: 0;
  border-radius: 12px;
}
.home-schedule .class-card {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 12px;
  border-left: 3px solid #23b6e8;
  border-radius: 13px;
  background: #24293d;
  border-top-color: #343c55;
  border-right-color: #343c55;
  border-bottom-color: #343c55;
}
.home-schedule .class-card.session-started {
  border-left-color: #e34444;
}
.home-schedule .class-time {
  flex-shrink: 0;
  min-width: 66px;
  padding: 9px 8px;
  border: 0;
  border-radius: 9px;
  text-align: center;
  background: #ffffff0d;
  color: #f4f8ff;
}
.home-schedule .class-time strong {
  font-size: 0.88rem;
}
.home-schedule .class-time span {
  margin-top: 3px;
  font-size: 0.68rem;
  color: #c1d6ed;
}
.home-schedule .class-details h3 {
  margin: 0 0 5px;
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: #f4f4fc;
}
.home-schedule .class-details p {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #bcc7dc;
}
.home-schedule .class-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
}
.home-schedule .class-actions > .btn {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 10px;
  font-size: 0.8rem;
  border-radius: 10px;
}
.home-schedule .class-actions > .secondary {
  background: #dceaff;
  color: #244777;
}
.home-schedule .class-actions > .session-cancel {
  min-height: 44px;
  min-width: 44px;
  padding: 9px 8px;
  border: 1px solid #e9949c45;
  background: #e7687812;
  color: #f0b6bb;
  font-size: 0.72rem;
}
.home-schedule .class-card.session-completed {
  border-left-color: #7ebd9d;
}
.home-schedule .class-card.session-cancelled {
  border-left-color: #d18b96;
}
.home-schedule .session-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
  color: #b6ddca;
}
.home-schedule .session-cancelled .session-label {
  color: #e6aeb7;
}
.home-schedule .session-cancellation {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #adbbd0;
  font-size: 0.66rem;
}
.home-shell .nav button.active .nav-icon {
  color: #23b6e8;
}
@media (max-width: 760px) {
  .home-shell .main {
    padding: 0 8px 8px;
  }
  .home-shell .content {
    padding-top: 10px;
  }
  .home-shell .topbar {
    min-height: 64px;
    padding: 0 8px;
  }
  .home-schedule {
    padding: 10px;
    border-radius: 15px;
  }
  .home-schedule .dates {
    gap: 3px;
  }
  .home-schedule .class-card {
    gap: 9px;
    padding: 10px;
  }
  .home-schedule .class-time {
    min-width: 54px;
    padding: 8px 5px;
  }
  .home-schedule .class-details h3 {
    font-size: 0.82rem;
  }
  .home-schedule .class-details p {
    font-size: 0.66rem;
  }
  .home-schedule .class-actions > .btn {
    padding: 9px 8px;
    font-size: 0.72rem;
    gap: 5px;
  }
}
@media (max-width: 600px) {
  .attendance-dialog .attendance-footer {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .attendance-dialog .attendance-actions {
    width: 100%;
    flex-wrap: nowrap;
  }
  .attendance-dialog .attendance-actions .btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 0.7rem;
  }
  .attendance-dialog .attendance-footer small {
    width: 100%;
    font-size: 0.66rem;
  }
  .home-schedule .class-actions > .session-cancel {
    padding: 9px 6px;
    font-size: 0.66rem;
  }
}
@media (max-height: 420px) {
  .attendance-dialog .attendance-notice {
    max-height: 16dvh;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 6px 10px;
  }
  .confirm-dialog .confirm-content {
    padding: 16px 20px;
  }
  .confirm-dialog textarea {
    min-height: 64px;
    max-height: 22dvh;
  }
  .confirm-dialog .confirm-actions {
    padding: 10px 20px;
  }
}

/* Shared RSD navigation, including the mobile drawer. */
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  color: #aab0c2;
  padding: 24px 16px;
  min-height: 0;
  overflow-y: auto;
  background: #24293d;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #536178 transparent;
}
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 26px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  color: white;
  margin: 0;
  gap: 10px;
}
.brand img {
  object-fit: contain;
  width: 44px;
  height: 44px;
}
.brand strong {
  font-size: 1rem;
  letter-spacing: -0.035em;
}
.menu-icon,
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
.nav {
  display: grid;
  gap: 7px;
  flex-shrink: 0;
  margin-bottom: 24px;
}
.nav button {
  display: flex;
  align-items: center;
  text-align: left;
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
  position: relative;
  min-height: 48px;
  padding: 12px 14px;
  gap: 12px;
  color: #c0c8db;
  font-size: 0.84rem;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav button:hover {
  background: #ffffff09;
  color: white;
}
.nav button.active {
  background: #23b6e813;
  border-color: #23b6e830;
  color: #f4f8ff;
}
.nav button.active:before {
  content: "";
  border-radius: 4px;
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  height: auto;
  background: #ed5152;
}
.nav-icon {
  color: #99aac7;
}
.nav button.active .nav-icon {
  color: #23b6e8;
}
.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border: 1px solid #ffffff10;
  border-radius: 16px;
  background: #ffffff05;
  flex-shrink: 0;
}
.coach-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.coach-identity .avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #23b6e844;
  background: #23b6e814;
  color: #a8ddf4;
  font-size: 0.7rem;
}
.sidebar-foot strong {
  color: white;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  color: #c0c8db;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
}
.sidebar-signout .menu-icon {
  width: 17px;
  height: 17px;
  color: #e68b8f;
}
.sidebar-signout:hover {
  color: white;
  background: #ffffff08;
}
.drawer-close,
.mobile-menu {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  place-items: center;
  flex-shrink: 0;
}
.drawer-close {
  display: none;
  background: #ffffff09;
  color: #c0d0e8;
  border: 1px solid #ffffff12;
}
.mobile-menu {
  background: #24293d;
  color: #a5dff4;
  border: 1px solid #3d4863;
  box-shadow: 0 3px 8px #24293d14;
}
.nav button:focus-visible,
.sidebar-signout:focus-visible,
.drawer-close:focus-visible,
.mobile-menu:focus-visible {
  outline: 2px solid #23b6e8;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0s 0.2s;
    z-index: 20;
    width: min(300px, calc(100vw - 32px));
    border-radius: 0 22px 22px 0;
    border-right: 1px solid #53627b55;
    padding: 22px 18px;
    box-shadow: 12px 0 48px #10152638;
  }
  .drawer-open .sidebar {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .drawer-close,
  .mobile-menu {
    display: grid;
  }
  .drawer-open .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: #11172988;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .drawer-overlay {
    touch-action: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .nav button {
    transition: none;
  }
}
@media (max-height: 420px) {
  .sidebar {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .drawer-heading {
    margin-bottom: 12px;
  }
  .nav {
    gap: 4px;
    margin-bottom: 16px;
  }
  .nav button {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (max-width: 360px) {
  .home-shell .main {
    padding: 0 3px 6px;
  }
  .home-schedule {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .home-schedule .dates {
    gap: 1px;
  }
}
@media (max-height: 420px) {
  .home-shell .main {
    margin-top: 0;
    padding-bottom: 6px;
  }
  .home-shell .topbar {
    min-height: 48px;
  }
  .home-shell .content {
    padding-top: 6px;
  }
  .home-shell .preview-banner {
    padding: 4px 10px;
    margin-bottom: 5px;
  }
  .home-schedule {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .home-schedule .dates {
    margin-bottom: 6px;
    min-height: 44px;
  }
  .home-schedule .date-btn {
    min-height: 44px;
    padding: 5px 2px;
    gap: 1px;
  }
}

/* Shared student notes, separate from attendance editing. */
.attendance-dialog .attendance-student{flex-wrap:wrap;gap:8px}.attendance-dialog .attendance-student>strong{flex:1;min-width:80px}.student-note-trigger{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:36px;min-height:36px;border:1px solid #d7e7f0;border-radius:10px;background:#f1f8fc;color:#159cc0;cursor:pointer}.student-note-trigger.has-notes{color:#df2447;background:#fff1f4;border-color:#f6cbd4}.student-note-count{font-size:10px;font-weight:700}.student-note-preview{flex-basis:100%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f0f7fb;border:0;border-radius:7px;padding:7px 9px;font-size:11px;color:#4e6b83;cursor:pointer}.session-notes-status{display:flex;align-items:center;gap:8px;font-size:11px;padding:0 16px;color:#70849c}.session-notes-status:not(:empty){padding-top:8px;padding-bottom:8px}.session-notes-status .btn{padding:5px 8px;min-height:28px;font-size:10px}.coach-notes-dialog{width:min(560px,calc(100vw - 20px));height:min(660px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #dce7f0;border-radius:18px;background:#f5f9fc;color:#263950}.coach-notes-dialog[open]{display:flex;flex-direction:column}.coach-notes-dialog::backdrop{background:#192c4b80;backdrop-filter:blur(4px)}.coach-notes-dialog .dialog-head{display:flex;align-items:center;gap:12px;background:#26354b;color:#fff;padding:16px;flex-shrink:0}.coach-notes-dialog .dialog-head img{width:32px}.coach-notes-dialog .dialog-head div{flex:1}.coach-notes-dialog .dialog-head h2{font-size:17px;margin:0}.coach-notes-dialog .dialog-head p{font-size:12px;margin:4px 0 0;color:#a6e0f2}.coach-notes-dialog .icon-button{color:white;font-size:22px}.coach-notes-history{flex:1;overflow:auto;min-height:0;padding:14px}.coach-note{background:#fff;border:1px solid #dbe6ef;border-left:3px solid #26b3d8;padding:11px 12px;border-radius:10px;margin-bottom:10px}.coach-note.admin{border-left-color:#df2447}.coach-note-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#7b8a9e}.coach-note-meta strong{color:#354861}.coach-note p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:8px 0 0}.coach-notes-compose{padding:12px 14px;border-top:1px solid #dce7ef;background:#fff}.coach-notes-compose label{font-size:12px;font-weight:600;display:block;margin-bottom:6px}.coach-notes-compose textarea{width:100%;height:74px;resize:none;border:1px solid #d0deeb;border-radius:9px;padding:9px;font:inherit;font-size:13px;box-sizing:border-box}.coach-notes-compose>div{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:8px}.coach-notes-compose small{font-size:10px;color:#7b8da2}.coach-notes-compose .btn,.coach-notes-footer .btn{min-height:34px;font-size:12px;padding:7px 12px}.coach-notes-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;font-size:11px;padding:10px 14px;border-top:1px solid #e3ebf3}.coach-notes-notice{font-size:12px;color:#73869b;display:flex;align-items:center;gap:7px}.coach-notes-notice:not(:empty){padding:10px 14px}.coach-notes-dialog .spinner{width:15px;height:15px}

.coach-notes-dialog .icon-button{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border:1px solid #ffffff26;background:#ffffff12;border-radius:10px;color:#fff;cursor:pointer}
