:root {
  color-scheme: light;
  --bg: #eef4ef;
  --app-bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f0f7f1;
  --text: #17231b;
  --text-secondary: #5f6d64;
  --text-muted: #88938c;
  --primary: #197a4b;
  --primary-dark: #105c37;
  --primary-soft: #dff4e7;
  --blue: #1769d2;
  --orange: #d96b17;
  --red: #c83b32;
  --border: #e5e9e6;
  --shadow-sm: 0 4px 16px rgb(24 53 35 / 7%);
  --shadow-lg: 0 28px 80px rgb(21 49 31 / 18%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 15%, rgb(255 255 255 / 95%) 0 6%, transparent 28%),
    linear-gradient(145deg, #edf6ef 0%, #e8f0eb 52%, #f7f3ea 100%);
}

button,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgb(23 105 210 / 35%);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(340px, 520px) 430px;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 8vw, 120px);
  min-height: 100dvh;
  padding: 48px;
}

.preview-copy {
  max-width: 520px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  box-shadow: 0 8px 24px rgb(25 122 75 / 24%);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.preview-eyebrow,
.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-copy h1 {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.preview-copy > p:not(.preview-eyebrow, .privacy-note) {
  max-width: 500px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.desktop-shortcut {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid rgb(23 35 27 / 8%);
  border-radius: 14px;
  background: rgb(255 255 255 / 65%);
  color: var(--text-secondary);
  font-size: 13px;
}

.desktop-shortcut > span:first-child {
  margin-right: 6px;
  font-weight: 700;
}

kbd {
  min-width: 27px;
  padding: 4px 7px;
  border: 1px solid #d9e1dc;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.privacy-note {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13px;
}

.phone-shell {
  position: relative;
  width: 410px;
  height: min(850px, calc(100dvh - 48px));
  min-height: 680px;
  overflow: hidden;
  border: 8px solid #18251d;
  border-radius: 46px;
  background: var(--app-bg);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 20%);
}

.phone-shell::before {
  position: absolute;
  z-index: 60;
  top: 10px;
  left: 50%;
  width: 110px;
  height: 27px;
  border-radius: 20px;
  background: #18251d;
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 22px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: 16px;
  height: 16px;
  fill: var(--text);
  stroke: var(--text);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.status-icons svg:last-child {
  width: 23px;
  fill: none;
}

.status-icons .battery-fill {
  fill: var(--text);
  stroke: none;
}

.app-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--app-bg);
}

.app-header {
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  padding: 14px 20px;
  background: rgb(245 245 247 / 90%);
  backdrop-filter: blur(18px);
}

.app-header h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.avatar-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #247c52, #0e5c37);
  box-shadow: 0 6px 16px rgb(25 122 75 / 22%);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.avatar-button:active,
.nav-item:active,
.icon-button:active,
.week-nav button:active,
.day-chip:active,
.action-row:active,
.primary-button:active,
.text-button:active {
  opacity: 0.72;
}

.online-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--app-bg);
  border-radius: 50%;
  background: #31c968;
}

#main-content {
  height: 100%;
  overflow-y: auto;
  padding: 132px 16px 104px;
  scrollbar-width: none;
}

#main-content::-webkit-scrollbar {
  display: none;
}

.screen {
  animation: screen-in 220ms var(--ease);
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #cde7d6;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.demo-banner svg,
.section-title svg,
.info-row svg,
.action-row svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.week-card,
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.week-card {
  margin-bottom: 18px;
  padding: 15px;
}

.week-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.week-label {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.week-range {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.week-nav {
  display: flex;
  gap: 6px;
}

.week-nav button,
.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.week-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.week-nav svg,
.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.day-chip {
  min-width: 0;
  min-height: 52px;
  padding: 7px 2px;
  border: 0;
  border-radius: 13px;
  background: #f4f5f4;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.day-chip span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.day-chip.is-active {
  background: var(--primary);
  box-shadow: 0 6px 14px rgb(25 122 75 / 18%);
  color: white;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 11px;
}

.section-title h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.course-list,
.subject-list,
.receipt-list {
  display: grid;
  gap: 10px;
}

.course-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.course-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--primary);
  content: "";
}

.course-card[data-type="makeup"]::before {
  background: var(--orange);
}

.course-card[data-type="exam"]::before {
  background: var(--blue);
}

.course-card[data-type="cancelled"]::before {
  background: var(--red);
}

.course-time {
  padding-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.course-time strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.course-content {
  min-width: 0;
}

.course-content h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.course-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-card[data-type="makeup"] .course-badge {
  background: #fff0e3;
  color: #9a490d;
}

.course-card[data-type="exam"] .course-badge {
  background: #e6f0ff;
  color: #1356a8;
}

.course-card[data-type="cancelled"] .course-badge {
  background: #fde9e7;
  color: #a62d25;
}

.empty-state {
  padding: 44px 24px;
  border: 1px dashed #ced6d0;
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state svg {
  width: 38px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.empty-state h3 {
  margin: 12px 0 5px;
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.gpa-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #176d43, #0e5232);
  box-shadow: 0 16px 32px rgb(19 93 56 / 24%);
  color: white;
}

.gpa-card::after {
  position: absolute;
  top: -45px;
  right: -35px;
  width: 150px;
  height: 150px;
  border: 25px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
}

.gpa-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.gpa-main p {
  margin: 0 0 6px;
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  font-weight: 700;
}

.gpa-number {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.rank-pill {
  padding: 7px 11px;
  border-radius: 99px;
  background: rgb(255 255 255 / 15%);
  font-size: 12px;
  font-weight: 800;
}

.gpa-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.gpa-grid small {
  display: block;
  margin-bottom: 3px;
  color: rgb(255 255 255 / 65%);
  font-size: 10px;
}

.gpa-grid strong {
  font-size: 14px;
}

.filter-row {
  margin-bottom: 12px;
}

.filter-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.filter-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%) calc(100% - 18px) 20px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%) calc(100% - 13px) 20px / 5px 5px no-repeat,
    white;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.subject-card,
.receipt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.grade-letter {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.subject-copy,
.receipt-copy {
  min-width: 0;
  flex: 1;
}

.subject-copy strong,
.receipt-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-copy small,
.receipt-copy small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.subject-score,
.receipt-amount {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.subject-score small,
.receipt-amount small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.tuition-hero {
  margin-bottom: 16px;
  padding: 20px;
}

.tuition-hero > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.tuition-total {
  margin: 6px 0 18px;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5eae6;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.tuition-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.tuition-stat {
  padding: 12px;
  border-radius: 12px;
  background: #f5f7f5;
}

.tuition-stat small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.tuition-stat strong {
  font-size: 13px;
}

.tuition-stat.debt strong {
  color: var(--red);
}

.receipt-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.receipt-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.receipt-card.is-debt .receipt-icon {
  background: #fde9e7;
  color: var(--red);
}

.receipt-card.is-debt .receipt-amount {
  color: var(--red);
}

.profile-hero {
  padding: 22px 18px;
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  place-items: center;
  border: 5px solid var(--primary-soft);
  border-radius: 50%;
  background: linear-gradient(145deg, #247c52, #0e5c37);
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.profile-hero h3 {
  margin: 0;
  font-size: 19px;
}

.profile-hero p {
  margin: 5px 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.profile-details {
  margin-top: 12px;
  overflow: hidden;
}

.info-row,
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child,
.action-row:last-child {
  border-bottom: 0;
}

.info-row svg,
.action-row svg {
  color: var(--primary);
}

.info-row div,
.action-row div {
  min-width: 0;
  flex: 1;
}

.info-row small,
.action-row small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
}

.info-row strong,
.action-row strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.action-row > svg:last-child {
  width: 16px;
  color: var(--text-muted);
}

.bottom-nav {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 82px;
  padding: 8px 8px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(219 225 221 / 88%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.nav-item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item.is-active {
  color: var(--primary);
}

.nav-item.is-active svg {
  stroke-width: 2.3;
}

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 20px;
  background: rgb(14 28 19 / 58%);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.tutorial-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 16px 22px 20px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
  animation: sheet-in 300ms var(--ease);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: #d8ded9;
}

.tutorial-sheet .icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: #f1f3f1;
}

.tutorial-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.tutorial-icon svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tutorial-sheet h2 {
  max-width: 330px;
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.tutorial-lead {
  margin: 11px 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.tutorial-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.tutorial-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f7f5;
}

.tutorial-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.tutorial-steps strong {
  display: block;
  margin: 1px 0 3px;
  font-size: 13px;
}

.tutorial-steps small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.primary-button,
.text-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--primary);
  box-shadow: 0 8px 20px rgb(25 122 75 / 20%);
  color: white;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.text-button {
  margin-top: 4px;
  background: transparent;
  color: var(--text-secondary);
}

.toast {
  position: fixed;
  z-index: 1200;
  right: 50%;
  bottom: 28px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 13px 17px;
  border-radius: 13px;
  background: #17231b;
  box-shadow: 0 12px 32px rgb(0 0 0 / 22%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  transform: translateX(50%);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 840px) {
  body {
    background: var(--app-bg);
  }

  .preview-layout {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .preview-copy,
  .phone-status {
    display: none;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    min-height: 600px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-shell::before {
    display: none;
  }

  .app-header {
    top: 0;
    height: 96px;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  #main-content {
    padding-top: calc(104px + env(safe-area-inset-top));
  }

  .modal-backdrop {
    padding: 0;
  }

  .tutorial-sheet {
    width: 100%;
    max-height: 94dvh;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 360px) {
  .app-header {
    padding-inline: 15px;
  }

  #main-content {
    padding-inline: 12px;
  }

  .course-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .tutorial-sheet {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
