/* Portado de Automações DEV/Agendador/Styles.html sem mudança de regra. */
:root {
  --bg: #f7f4f3;
  --card: #ffffff;
  --surface: #f1efef;
  --surface-strong: #ece8e7;
  --text: #171718;
  --muted: #5c413c;
  --muted-soft: #bcaead;
  --brand: #be0d19;
  --brand-dark: #9c0812;
  --border: rgba(92, 65, 60, 0.12);
  --shadow: 0 18px 44px rgba(55, 24, 19, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 46%, rgba(255, 80, 80, 0.32), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(120, 0, 0, 0.42), transparent 36%),
    linear-gradient(180deg, #6b0000 0%, #b10000 36%, #da0000 68%, #ff1717 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 28px 20px 34px;
}

.brand-mark svg,
.hero-mark svg,
.verify-mark svg,
.hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.hero-card,
.verify-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-card {
  padding: 56px 56px 44px;
  min-height: min(92vh, 1400px);
  display: flex;
  flex-direction: column;
}

.hero-top {
  text-align: center;
  margin-top: 12px;
}

.hero-mark {
  width: min(280px, 72vw);
  margin: 0 auto 22px;
}

.hero-mark img {
  height: auto;
  object-fit: contain;
}

.hero-brand {
  color: #b10d16;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-copy {
  text-align: center;
  max-width: 520px;
  margin: 84px auto 0;
}

.hero-copy h1,
.verify-intro h2 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-copy p,
.verify-intro p {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.42;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.auth-form {
  max-width: 560px;
  width: 100%;
  margin: 82px auto 0;
}

.field-label {
  display: block;
  margin: 0 0 14px 8px;
  color: #4a312d;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.field-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 22px 0 28px;
  border-radius: 18px;
  background: var(--surface);
  min-height: 92px;
}

.field-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2e1e1b;
  font-size: 1.45rem;
  outline: none;
}

.field-shell input::placeholder {
  color: #b9adab;
}

.field-icon {
  color: #b9adab;
  font-size: 2.2rem;
  line-height: 1;
}

.primary-button {
  width: 100%;
  margin-top: 34px;
  min-height: 98px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #c40f1b 0%, #c7161e 100%);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(188, 13, 24, 0.2);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button[disabled],
.text-button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

.inline-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 244, 244, 0.98);
  border: 1px solid rgba(180, 12, 23, 0.18);
  color: #8b1b24;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(180, 12, 23, 0.08);
}

.support-link {
  margin: 86px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5b3b35;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  width: min(100%, 420px);
  gap: 10px;
}

.support-link-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.45;
  width: 100%;
  flex: 0 0 auto;
}

.support-link-line {
  display: block;
  width: 100%;
  white-space: normal;
}

.support-link-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.support-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.how-to-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 52px auto 0;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(190, 13, 25, 0.08);
  color: #b10d16;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.footer-note,
.footer-note-card {
  text-align: center;
  color: var(--muted-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-note-line {
  display: block;
}

.footer-note-card {
  margin-top: auto;
  padding-top: 56px;
  border-top: 1px solid rgba(92, 65, 60, 0.12);
}

.screen-code {
  padding-top: 132px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 40px;
  box-shadow: var(--shadow);
}

.screen-family {
  padding: 0;
}

.screen-loading {
  min-height: calc(100vh - 62px);
}

.screen-schedule {
  display: none;
}

.schedule-shell {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 20px 16px 26px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.schedule-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(247, 244, 243, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 12;
}

.schedule-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.schedule-loading-card {
  min-width: min(100%, 240px);
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(190, 13, 25, 0.1);
  box-shadow: 0 18px 36px rgba(31, 13, 13, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.schedule-loading-card .loading-spinner {
  margin-top: 0;
}

.schedule-loading-text {
  margin-top: 14px;
  color: #4f3b37;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.schedule-back-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f5efee;
  color: #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-back-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.schedule-header-copy {
  min-width: 0;
  flex: 1;
}

.schedule-student-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-student-photo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #efefef, #e2e2e2);
  flex: 0 0 auto;
}

.schedule-student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.schedule-student-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b7b7b;
  font-size: 1rem;
  font-weight: 800;
}

.schedule-student-copy {
  min-width: 0;
}

.schedule-student-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.schedule-student-class {
  margin-top: 4px;
  color: #6a5651;
  font-size: 0.92rem;
}

.schedule-search {
  position: relative;
}

.schedule-search input {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #f1efef;
  padding: 0 16px 0 46px;
  color: #2a201d;
  font-size: 0.98rem;
  outline: none;
}

.schedule-search input::placeholder {
  color: #8d7f7d;
}

.schedule-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7d7473;
}

.schedule-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.schedule-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  min-height: 58px;
  flex: 0 0 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.schedule-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 821px) {
  .schedule-filters {
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 12, 23, 0.28) rgba(92, 65, 60, 0.08);
  }

  .schedule-filters::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .schedule-filters::-webkit-scrollbar-thumb {
    background: rgba(180, 12, 23, 0.28);
    border-radius: 999px;
  }

  .schedule-filters::-webkit-scrollbar-track {
    background: rgba(92, 65, 60, 0.08);
    border-radius: 999px;
  }
}

.schedule-filter {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #eef0f2;
  color: #55666d;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.schedule-filter.is-active {
  background: #d92323;
  color: #fff;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 12, 23, 0.22) transparent;
}

.schedule-list::-webkit-scrollbar {
  width: 6px;
}

.schedule-list::-webkit-scrollbar-thumb {
  background: rgba(180, 12, 23, 0.22);
  border-radius: 999px;
}

.schedule-list::-webkit-scrollbar-track {
  background: transparent;
}

.teacher-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(185, 34, 34, 0.14);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(39, 24, 19, 0.05);
  cursor: pointer;
}

.teacher-card.is-unavailable {
  opacity: 0.7;
}

.teacher-card.is-expanded {
  border-color: rgba(185, 34, 34, 0.28);
  box-shadow: 0 12px 26px rgba(39, 24, 19, 0.08);
}

.teacher-photo {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #efefef, #e2e2e2);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b7b7b;
  font-size: 1rem;
  font-weight: 800;
}

.teacher-info {
  min-width: 0;
}

.teacher-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.teacher-summary-main {
  min-width: 0;
  flex: 1 1 auto;
}

.teacher-name-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.teacher-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #231917;
}

.teacher-subject {
  margin-top: 4px;
  color: #d92323;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teacher-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.teacher-subject-tags-inline {
  margin-top: 0;
  justify-content: flex-end;
  align-self: start;
}

.teacher-subject-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.teacher-subject-tag.is-portugues {
  background: #fff1f1;
  border: 1px solid rgba(206, 56, 56, 0.16);
  color: #a01f1f;
}

.teacher-subject-tag.is-historia {
  background: #fff6e9;
  border: 1px solid rgba(205, 140, 34, 0.18);
  color: #9b6206;
}

.teacher-subject-tag.is-geografia {
  background: #edf8ee;
  border: 1px solid rgba(56, 153, 84, 0.18);
  color: #1f7a39;
}

.teacher-subject-tag.is-matematica {
  background: #eef3ff;
  border: 1px solid rgba(73, 113, 220, 0.18);
  color: #3556b8;
}

.teacher-subject-tag.is-ciencias {
  background: #f4efff;
  border: 1px solid rgba(122, 86, 198, 0.18);
  color: #6940b1;
}

.teacher-subject-tag.is-ingles {
  background: #eef8ff;
  border: 1px solid rgba(64, 148, 211, 0.18);
  color: #1e6f9f;
}

.teacher-subject-tag.is-artes {
  background: #fff0f7;
  border: 1px solid rgba(208, 95, 160, 0.18);
  color: #a23573;
}

.teacher-subject-tag.is-ed-fisica {
  background: #eefbf2;
  border: 1px solid rgba(73, 169, 96, 0.18);
  color: #26763f;
}

.teacher-subject-tag.is-redacao {
  background: #fff3ea;
  border: 1px solid rgba(214, 120, 52, 0.18);
  color: #ac5820;
}

.teacher-subject-tag.is-criatividade {
  background: #fff0ec;
  border: 1px solid rgba(223, 96, 73, 0.18);
  color: #b24631;
}

.teacher-subject-tag.is-computacional {
  background: #eef6ff;
  border: 1px solid rgba(77, 126, 220, 0.18);
  color: #3458af;
}

.teacher-subject-tag.is-reflexao {
  background: #fff8e8;
  border: 1px solid rgba(199, 156, 39, 0.18);
  color: #9a6d0f;
}

.teacher-subject-tag.is-tecnologia {
  background: #edf7f7;
  border: 1px solid rgba(54, 155, 155, 0.18);
  color: #1f7d7d;
}

.teacher-subject-tag.is-default {
  background: #f7f1ec;
  border: 1px solid rgba(173, 122, 86, 0.16);
  color: #8a5734;
}

.teacher-slots {
  margin-top: 8px;
  color: #66615f;
  font-size: 0.85rem;
  line-height: 1.45;
}

.teacher-expand-icon {
  width: 24px;
  height: 24px;
  color: #8c7f7c;
  flex: 0 0 auto;
  transition: transform 160ms ease, color 160ms ease;
}

.teacher-expand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.teacher-card.is-expanded .teacher-expand-icon {
  transform: rotate(180deg);
  color: #d92323;
}

.teacher-availability {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 34, 34, 0.12);
}

.teacher-availability-title {
  color: #6b5450;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-slot-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.teacher-slot-chip {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: #fff4f4;
  color: #a11922;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  gap: 6px;
  text-align: center;
}

.teacher-slot-chip.is-selected {
  background: #e6f8e8;
  color: #1f7a39;
}

.teacher-slot-chip.is-booked,
.teacher-slot-chip[disabled] {
  background: #ece8e8;
  color: #9a9090;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.teacher-slot-check {
  font-size: 0.78rem;
  line-height: 1;
}

.teacher-unavailable-note {
  margin-top: 10px;
  color: #9c8f8b;
  font-size: 0.84rem;
}

.schedule-action-bar {
  position: sticky;
  bottom: 0;
  padding: 10px 4px 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 18%, rgba(255,255,255,0.98) 100%);
}

.schedule-confirm-button {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #c40f1b 0%, #c7161e 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
}

.schedule-confirm-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-empty {
  padding: 30px 12px 10px;
  color: #6f6260;
  text-align: center;
  font-size: 0.96rem;
}

.loading-shell {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.loading-brand {
  width: min(240px, 60vw);
  margin: 0 auto 20px;
}

.loading-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.loading-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #171718;
}

.loading-text {
  margin-top: 12px;
  max-width: 380px;
  color: #5c413c;
  font-size: 1.08rem;
  line-height: 1.5;
}

.loading-spinner {
  width: 54px;
  height: 54px;
  margin-top: 22px;
  border-radius: 50%;
  border: 4px solid rgba(180, 12, 23, 0.18);
  border-top-color: #b40c17;
  animation: loading-spin 0.9s linear infinite;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.family-shell {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.family-header {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(92, 65, 60, 0.08);
}

.family-header-menu,
.family-header-bell,
.family-header-spacer {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.family-header-menu,
.family-header-bell {
  background: #fff;
  box-shadow: 0 10px 20px rgba(39, 24, 19, 0.1);
}

.family-header-menu {
  border: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.family-header-menu span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2a2a2a;
  display: block;
}

.family-header-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.family-header-bell {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.family-header-bell svg {
  width: 22px;
  height: 22px;
  display: block;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 24, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 80;
}

.drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 18px 0 40px rgba(31, 13, 13, 0.18);
  transform: translateX(-104%);
  transition: transform 220ms ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-drawer.is-open {
  transform: translateX(0);
}

.app-drawer-header {
  padding: 26px 22px 10px;
}

.drawer-close-button {
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-bottom: 10px;
  border: 0;
  border-radius: 14px;
  background: #f4f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.drawer-close-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #2a2a2a;
  display: block;
}

.drawer-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.drawer-profile-media {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 12px 24px rgba(31, 13, 13, 0.14);
}

.drawer-profile-media img {
  display: none;
}

.drawer-profile-initials {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #202127, #111216);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.drawer-profile-badge {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #b40c17;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(180, 12, 23, 0.28);
}

.drawer-profile-badge svg {
  width: 20px;
  height: 20px;
  display: block;
}

.drawer-profile-name {
  margin-top: 30px;
  color: #171718;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.drawer-profile-role {
  margin-top: 8px;
  color: #b40c17;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drawer-profile-tag {
  margin-top: 10px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f0f0f0;
  color: #63666d;
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 700;
}

.app-drawer-nav {
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-drawer-nav-secondary {
  padding-top: 14px;
}

.drawer-item {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #2b201e;
  text-align: left;
  padding: 0 16px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.02em;
}

.drawer-item:active,
.drawer-item:hover {
  background: #f6f0ef;
}

.drawer-item-icon {
  width: 28px;
  height: 28px;
  color: #363640;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-item-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.drawer-item-active {
  background: #b40c17;
  color: #fff;
}

.drawer-item-active .drawer-item-icon {
  color: #fff;
}

.drawer-item.is-temporary-active {
  background: #b40c17;
  color: #fff;
}

.drawer-item.is-temporary-active .drawer-item-icon {
  color: #fff;
}

.drawer-item-dot {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b40c17;
  flex: 0 0 auto;
}

.drawer-divider {
  height: 1px;
  margin: 22px 22px 0;
  background: rgba(92, 65, 60, 0.12);
}

.drawer-spacer {
  flex: 1;
}

.drawer-footer-actions {
  padding: 0 14px 10px;
}

.drawer-item-exit {
  color: #b40c17;
}

.drawer-item-exit .drawer-item-icon {
  color: #b40c17;
}

.family-hero {
  padding: 34px 22px 8px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(189, 13, 24, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.family-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b40c17;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.family-hero h2 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.family-hero p {
  margin: 16px auto 0;
  max-width: 420px;
  color: #5c413c;
  font-size: 1.15rem;
  line-height: 1.5;
}

.family-student-list {
  padding: 24px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.family-action-bar {
  position: sticky;
  bottom: 0;
  padding: 10px 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 18%, rgba(255, 255, 255, 0.98) 100%);
}

.family-continue-button {
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #c40f1b 0%, #c7161e 100%);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 30px rgba(188, 13, 24, 0.22);
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.family-continue-button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.student-card {
  position: relative;
  background: #fff;
  border-radius: 30px;
  padding: 34px 20px 20px;
  box-shadow: 0 18px 40px rgba(55, 24, 19, 0.08);
  border: 1px solid rgba(190, 13, 25, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.student-card::after {
  content: '';
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(189, 13, 24, 0.1), rgba(189, 13, 24, 0));
}

.student-card.is-selected {
  background: linear-gradient(180deg, #f4fff4 0%, #e6f8e8 100%);
  border-color: rgba(50, 140, 68, 0.42);
  box-shadow: 0 18px 40px rgba(38, 110, 52, 0.14);
}

.student-card.is-activating {
  background: linear-gradient(180deg, #ecffef 0%, #dff6e4 100%);
  border-color: rgba(47, 145, 69, 0.52);
  box-shadow: 0 20px 42px rgba(38, 110, 52, 0.18);
  transform: translateY(-2px) scale(0.995);
}

.student-card.is-selected::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(47, 145, 69, 0.42);
  border-radius: 30px;
  pointer-events: none;
}

.student-appointment-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 168px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8eb 0%, #fff2d8 100%);
  border: 1px solid rgba(199, 138, 33, 0.24);
  box-shadow: 0 10px 20px rgba(95, 62, 16, 0.08);
}

.student-appointment-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #b87400;
  flex: 0 0 auto;
}

.student-appointment-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.student-appointment-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-appointment-title {
  color: #8f5b00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-appointment-time {
  color: #5d4430;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 700;
}

.student-photo-wrap {
  width: 154px;
  margin: 0 auto;
}

.student-photo {
  width: 154px;
  height: 154px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f0f0, #e7e3e3);
  box-shadow: 0 14px 28px rgba(39, 24, 19, 0.14);
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b40c17;
  font-size: 2.6rem;
  font-weight: 800;
}

.student-name {
  margin-top: 24px;
  text-align: center;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.student-class-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 14px auto 0;
  padding: 0 16px;
  border-radius: 999px;
  background: #b40c17;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.student-segment {
  margin-top: 12px;
  text-align: center;
  color: #5f5a73;
  font-size: 1rem;
  font-weight: 600;
}

.student-rm {
  margin-top: 6px;
  text-align: center;
  color: #8d7c79;
  font-size: 0.92rem;
}

.student-select-button {
  width: 100%;
  margin-top: 24px;
  min-height: 74px;
  border: 0;
  border-radius: 20px;
  background: #dce9f3;
  color: #263740;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 14px 18px;
  text-align: center;
}

.student-select-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.student-select-primary {
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.student-select-primary.is-positive {
  color: #227646;
}

.student-select-primary.is-warning {
  color: #c06a00;
}

.student-select-primary.is-danger {
  color: #b40c17;
}

.student-select-primary.is-closed {
  color: #8b5a00;
}

.student-card.has-appointment .student-select-button {
  background: linear-gradient(180deg, #e7f8ea 0%, #d4efd9 100%);
  color: #1c5b36;
}

.student-select-primary.is-booked {
  color: #1f7a46;
}

.student-select-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #48616d;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
}

.student-select-secondary.is-highlight {
  background: rgba(190, 13, 25, 0.12);
  color: #af101b;
}

.student-select-secondary.is-warning {
  background: rgba(240, 170, 54, 0.14);
  color: #a86200;
}

.student-select-secondary.is-danger {
  background: rgba(180, 12, 23, 0.12);
  color: #a10b15;
}

.student-select-secondary.is-closed {
  background: rgba(240, 181, 74, 0.2);
  color: #805100;
}

.family-empty {
  padding: 28px 20px 42px;
  text-align: center;
  color: #5c413c;
}

.verify-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.verify-mark {
  width: 146px;
  height: 146px;
  margin: 0 auto 38px;
}

.verify-card {
  padding: 58px 38px 42px;
}

.otp-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.otp-input {
  width: 100%;
  height: 114px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  font-size: 2.1rem;
  color: #1a1a1a;
  outline: 2px solid transparent;
  transition: outline-color 120ms ease, background 120ms ease;
}

.otp-input:focus {
  background: #fff;
  outline-color: #2d61ff;
}

.resend-block {
  margin-top: 34px;
  text-align: center;
}

.resend-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-button {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #b10d16;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.footer-note {
  margin-top: 68px;
  color: #6c4f49;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(24px);
  width: min(calc(100% - 32px), 420px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(24, 24, 24, 0.94);
  color: #fff;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.appointment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 18, 18, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 95;
}

.appointment-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 96;
}

.appointment-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.appointment-modal-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 28px;
  padding: 26px 20px 20px;
  border: 1px solid rgba(190, 13, 25, 0.1);
  box-shadow: 0 22px 48px rgba(31, 13, 13, 0.2);
}

.appointment-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff8eb 0%, #fff0d0 100%);
  color: #b87400;
  margin-bottom: 16px;
}

.appointment-modal-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.appointment-modal-title {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.15;
  font-weight: 800;
  color: #211917;
}

.appointment-modal-text {
  margin: 12px 0 0;
  color: #5e4b46;
  font-size: 0.98rem;
  line-height: 1.55;
}

.appointment-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.appointment-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #efe4e3;
  border-radius: 16px;
  background: #fbf8f8;
  text-align: left;
}

.appointment-modal-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.appointment-modal-item-teacher {
  font-weight: 800;
  color: #352827;
  font-size: 0.96rem;
}

.appointment-modal-item-when {
  color: #7a6661;
  font-size: 0.86rem;
}

.appointment-modal-item-cancel {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(180, 12, 23, 0.35);
  border-radius: 12px;
  background: #fff;
  color: #b40c17;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 140ms ease, color 140ms ease;
}

.appointment-modal-item-cancel:active,
.appointment-modal-item-cancel.is-loading {
  background: #b40c17;
  color: #fff;
}

.appointment-modal-item-cancel[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.student-cancel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 6px auto 0;
  padding: 0 16px;
  border: 1px solid rgba(180, 12, 23, 0.3);
  border-radius: 999px;
  background: #fff;
  color: #b40c17;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 140ms ease, color 140ms ease;
}

.student-cancel-link:active {
  background: #b40c17;
  color: #fff;
}

.appointment-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.appointment-modal-primary,
.appointment-modal-secondary {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 0;
  font-size: 1rem;
  font-weight: 800;
  background: #f3efef;
  color: #352827;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.appointment-modal-primary {
  box-shadow: none;
}

.appointment-modal-primary.is-loading {
  position: relative;
  color: #7f7674;
}

.appointment-modal-primary.is-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(180, 12, 23, 0.18);
  border-top-color: #b40c17;
  animation: loading-spin 0.9s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.appointment-modal-primary.is-temporary-active,
.appointment-modal-secondary.is-temporary-active {
  background: #b40c17;
  color: #fff;
  transform: translateY(1px);
}

.appointment-modal-primary[disabled],
.appointment-modal-secondary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.how-to-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 18, 18, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 95;
}

.how-to-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.how-to-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 96;
}

.how-to-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.how-to-modal-card {
  width: min(100%, 440px);
  background: #fff;
  border-radius: 28px;
  padding: 26px 20px 20px;
  border: 1px solid rgba(190, 13, 25, 0.1);
  box-shadow: 0 22px 48px rgba(31, 13, 13, 0.2);
}

.how-to-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.how-to-modal-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c7161e;
  flex: 0 0 auto;
}

.how-to-modal-icon span {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 900;
}

.how-to-modal-title {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.15;
  font-weight: 800;
  color: #211917;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.how-to-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: #faf7f6;
  border: 1px solid #eee5e3;
}

.how-to-step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c7161e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.how-to-step p {
  margin: 4px 0 0;
  color: #5e4b46;
  font-size: 0.96rem;
  line-height: 1.5;
}

.how-to-modal-close {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(180deg, #c40f1b 0%, #c7161e 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(188, 13, 24, 0.2);
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .app-shell {
    padding: 18px 12px 28px;
  }

  .hero-card {
    min-height: auto;
    padding: 34px 18px 28px;
    border-radius: 22px;
  }

  .hero-mark {
    width: min(220px, 64vw);
    margin-bottom: 18px;
  }

  .hero-brand {
    font-size: clamp(1.45rem, 6vw, 2.1rem);
  }

  .hero-copy {
    margin-top: 56px;
  }

  .hero-copy h1,
  .verify-intro h2 {
    font-size: clamp(2.25rem, 11vw, 3.7rem);
  }

  .hero-copy p,
  .verify-intro p {
    font-size: clamp(1rem, 5vw, 1.45rem);
    max-width: 320px;
  }

  .auth-form {
    margin-top: 52px;
  }

  .field-label {
    margin-left: 6px;
    font-size: 0.9rem;
  }

  .field-shell {
    min-height: 72px;
    padding: 0 18px 0 20px;
  }

  .field-shell input {
    font-size: 1rem;
  }

  .field-icon {
    font-size: 1.9rem;
  }

  .primary-button {
    min-height: 82px;
    margin-top: 28px;
    font-size: 1.08rem;
    border-radius: 16px;
  }

  .support-link {
    margin-top: 72px;
    font-size: 0.95rem;
    width: min(100%, 320px);
    gap: 8px;
  }

  .how-to-button {
    margin-top: 40px;
    min-height: 42px;
    font-size: 0.9rem;
  }

  .inline-feedback {
    font-size: 0.9rem;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .support-link-icon {
    width: 22px;
    height: 22px;
  }

  .footer-note-card {
    margin-top: 72px;
    padding-top: 44px;
    font-size: 0.72rem;
  }

  .screen-code {
    padding-top: 88px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 28px;
    border-radius: 22px;
  }

  .schedule-shell {
    border-radius: 22px;
    padding: 16px 12px 22px;
    min-height: calc(100vh - 36px);
  }

  .schedule-student-photo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .schedule-student-name {
    font-size: 1rem;
  }

  .schedule-student-class {
    font-size: 0.84rem;
  }

  .teacher-card {
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .teacher-photo {
    width: 54px;
    height: 54px;
  }

  .teacher-name {
    font-size: 0.98rem;
  }

  .teacher-name-row {
    gap: 8px;
  }

  .teacher-subject {
    font-size: 0.74rem;
  }

  .teacher-subject-tags-inline {
    flex-basis: 50%;
    gap: 4px;
  }

  .teacher-subject-tag {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .teacher-slots {
    font-size: 0.8rem;
  }

  .teacher-slot-chip {
    font-size: 0.76rem;
  }

  .teacher-slot-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .verify-intro {
    margin-bottom: 34px;
  }

  .verify-mark {
    width: 92px;
    height: 92px;
    margin-bottom: 26px;
  }

  .verify-card {
    padding: 30px 12px 28px;
    border-radius: 22px;
  }

  .family-shell {
    border-radius: 22px;
  }

  .loading-shell {
    min-height: calc(100vh - 46px);
    border-radius: 22px;
    padding: 22px 18px;
  }

  .loading-brand {
    width: min(210px, 66vw);
    margin-bottom: 18px;
  }

  .loading-title {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .loading-text {
    font-size: 0.98rem;
    max-width: 290px;
  }

  .loading-spinner {
    width: 48px;
    height: 48px;
    margin-top: 18px;
  }

  .family-header {
    grid-template-columns: 48px 1fr 48px;
    padding: 14px 14px;
  }

  .family-header-menu,
  .family-header-bell,
  .family-header-spacer {
    width: 42px;
    height: 42px;
  }

  .family-header-title {
    font-size: 1.08rem;
  }

  .family-hero {
    padding: 28px 18px 4px;
  }

  .family-eyebrow {
    min-height: 30px;
    font-size: 0.72rem;
    padding: 0 12px;
  }

  .family-hero h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .family-hero p {
    font-size: 1rem;
    max-width: 290px;
  }

  .family-student-list {
    padding: 22px 12px 26px;
    gap: 18px;
  }

  .family-action-bar {
    padding: 8px 12px 16px;
  }

  .family-continue-button {
    min-height: 68px;
    border-radius: 18px;
    font-size: 1.08rem;
  }

  .student-card {
    border-radius: 24px;
    padding: 28px 16px 16px;
  }

  .student-appointment-badge {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 168px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .student-card.has-appointment {
    padding-top: 92px;
  }

  .student-appointment-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .student-appointment-time {
    font-size: 0.76rem;
  }

  .student-card.is-selected::before {
    border-radius: 24px;
  }

  .student-photo-wrap,
  .student-photo {
    width: 128px;
    height: 128px;
  }

  .student-photo {
    border-radius: 28px;
  }

  .student-name {
    font-size: 1.78rem;
  }

  .student-class-pill {
    min-height: 32px;
    font-size: 0.86rem;
  }

  .student-segment {
    font-size: 0.94rem;
  }

  .student-select-button {
    min-height: 66px;
    border-radius: 18px;
    padding: 12px 14px;
  }

  .student-select-primary {
    font-size: 1rem;
  }

  .student-select-secondary {
    font-size: 0.76rem;
    min-height: 30px;
    padding: 0 12px;
  }

  .otp-group {
    gap: 10px;
  }

  .otp-input {
    height: 82px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .resend-block {
    margin-top: 28px;
  }

  .footer-note {
    margin-top: 58px;
    font-size: 0.72rem;
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }

  .appointment-modal {
    padding: 14px;
  }

  .appointment-modal-card {
    border-radius: 24px;
    padding: 22px 16px 16px;
  }

  .appointment-modal-title {
    font-size: 1.2rem;
  }

  .appointment-modal-text {
    font-size: 0.92rem;
  }

  .how-to-modal {
    padding: 14px;
  }

  .how-to-modal-card {
    border-radius: 24px;
    padding: 22px 16px 16px;
  }

  .how-to-modal-title {
    font-size: 1.18rem;
  }

  .how-to-step {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .how-to-step-number {
    width: 30px;
    height: 30px;
    font-size: 0.86rem;
  }

  .how-to-step p {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .otp-group {
    gap: 8px;
  }

  .otp-input {
    height: 72px;
    font-size: 1.35rem;
  }

  .teacher-slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.student-card.is-unavailable {
  opacity: 0.72;
}

.student-card.is-unavailable,
.student-card.is-unavailable .student-select-button {
  cursor: default;
}

.student-card.is-unavailable:hover {
  transform: none;
}
