:root {
  color-scheme: dark;
  --blue: #5d9bef;
  --sky: #82c8f8;
  --violet: #8d6be8;
  --lavender: #b178ee;
  --aqua: #6be7e9;
  --navy: #17345f;
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.2);
  --glass-strong: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.36);
  --shadow: 0 18px 44px rgba(20, 31, 78, 0.28);
  font-family: Inter, "SF Pro Display", "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 5%, rgba(107, 231, 233, 0.45), transparent 28%),
    linear-gradient(172deg, #5d9bef 0%, #7976ec 44%, #b178ee 100%);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(107, 231, 233, 0.9);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 18px 34px;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  backdrop-filter: blur(18px);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 52, 95, 0.15);
}

.icon-button span {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 5px;
  align-items: end;
  height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.brand-mark span {
  display: block;
  width: 8px;
  border-radius: 999px;
  background: #fff;
}

.brand-mark span:nth-child(1) {
  height: 10px;
}

.brand-mark span:nth-child(2) {
  height: 18px;
  background: var(--aqua);
}

.brand-mark span:nth-child(3) {
  height: 14px;
}

.class-summary {
  padding: 12px 2px 20px;
}

.eyebrow,
.card-kicker,
.phase-label,
.mini-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.card-kicker,
.phase-label {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 6px 0 8px;
  font-size: 26px;
  line-height: 1.08;
}

.summary-copy,
.phase-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
}

.class-card,
.glass-card,
.attendance-card,
.share-panel {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.class-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
}

.class-card h2,
.phase-content h2,
.glass-card h3,
.attendance-card h3,
.share-panel h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.14;
}

.class-card p:last-child,
.share-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
}

.primary-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--navy);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(23, 52, 95, 0.2);
}

.journey-jump {
  position: sticky;
  top: 66px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(40, 56, 116, 0.24);
  backdrop-filter: blur(20px);
}

.journey-jump a {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.journey-jump a.is-active {
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-phase {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.phase-marker {
  display: grid;
  justify-items: center;
  grid-template-rows: 34px 1fr;
}

.phase-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.is-current .phase-dot {
  background: var(--aqua);
  color: var(--navy);
}

.phase-line {
  width: 2px;
  min-height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
}

.phase-content {
  min-width: 0;
  padding-bottom: 28px;
}

.phase-content h2 {
  margin-top: 3px;
}

.glass-card,
.attendance-card,
.share-panel {
  margin-top: 14px;
  padding: 15px;
  border-radius: 14px;
}

.next-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.mini-label {
  color: rgba(255, 255, 255, 0.72);
}

.glass-card p,
.glass-card small,
.student-grid small {
  color: var(--muted);
}

.glass-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.next-action button,
.attendance-head button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-weight: 850;
}

.skill-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.skill-strip div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(17, 35, 78, 0.18);
}

.skill-strip strong,
.skill-strip small {
  display: block;
}

.skill-strip strong {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
}

.skill-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.skill-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.practiced {
  background: rgba(107, 231, 233, 0.24);
  color: #eaffff;
}

.revisit {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.new {
  background: rgba(177, 120, 238, 0.34);
  color: #fff;
}

.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.secondary-action {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}

.attendance-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.student {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-weight: 850;
}

.student.is-present {
  background: rgba(107, 231, 233, 0.84);
  color: var(--navy);
}

.student.is-away {
  background: rgba(23, 52, 95, 0.28);
  color: rgba(255, 255, 255, 0.68);
  text-decoration: line-through;
}

.quick-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quick-log button {
  display: grid;
  min-height: 70px;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 850;
  text-align: left;
}

.quick-log span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-weight: 900;
}

.recap-card {
  display: grid;
  gap: 12px;
}

.recap-row {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.recap-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.recap-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.recap-row strong {
  font-size: 15px;
  line-height: 1.28;
}

.share-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 34px;
  align-items: center;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch span {
  display: block;
  width: 58px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 52, 95, 0.28);
}

.switch span::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--aqua);
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.full-width {
  width: 100%;
  margin-top: 14px;
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: start center;
    padding: 28px 0;
  }

  .app-shell {
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(23, 52, 95, 0.35);
  }
}

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