:root {
  color-scheme: dark;
  --blue: #5d9bef;
  --sky: #82c8f8;
  --violet: #8d6be8;
  --lavender: #b178ee;
  --aqua: #6be7e9;
  --navy: #17345f;
  --ink: #102a4c;
  --glass: rgba(255, 255, 255, 0.21);
  --glass-strong: rgba(255, 255, 255, 0.31);
  --hairline: rgba(255, 255, 255, 0.36);
  --shadow: 0 20px 48px rgba(25, 32, 80, 0.25);
  font-family: Inter, "SF Pro Display", "Avenir Next", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #315fba;
}

body {
  min-height: 100vh;
  margin: 0;
  color: white;
  background:
    radial-gradient(circle at 22% 4%, rgba(107, 231, 233, 0.44), transparent 32rem),
    linear-gradient(155deg, #5d9bef 0%, #716fe0 48%, #b178ee 100%);
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px calc(116px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.phone-shell::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(to top, rgba(31, 40, 111, 0.52), transparent);
}

.app-bar,
.class-card,
.flow-tabs,
.skill-tile,
.capture-feed,
.note-card,
.review-card,
.share-safety,
.next-plan article,
.import-hint,
.capture-dock {
  border: 1px solid var(--hairline);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.app-bar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 10;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 5px;
  border-radius: 18px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  font-size: 25px;
  line-height: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.class-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(23, 52, 95, 0.16), rgba(23, 52, 95, 0.5)),
    linear-gradient(135deg, rgba(107, 231, 233, 0.28), rgba(177, 120, 238, 0.26));
}

.class-card__topline,
.section-heading,
.capture-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-card__topline {
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.live-pill,
.small-pill {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.live-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--aqua);
}

.class-card h1 {
  margin: 17px 0 8px;
  font-size: clamp(24px, 7vw, 30px);
  line-height: 1.02;
  letter-spacing: 0;
}

.class-card p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.class-meter {
  height: 9px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.class-meter span {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), white);
}

.flow-tabs {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 64px);
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 14px 0 18px;
  padding: 5px;
  border-radius: 999px;
}

.flow-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.flow-tab.is-active {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
}

.view {
  position: relative;
  z-index: 1;
  display: none;
}

.view.is-active {
  display: block;
}

.section-heading {
  gap: 12px;
  margin: 2px 0 14px;
}

.section-heading p {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.small-pill {
  flex: 0 0 auto;
}

.attendee-strip {
  display: flex;
  gap: 8px;
  margin: 0 -18px 16px;
  padding: 0 18px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.attendee-strip::-webkit-scrollbar {
  display: none;
}

.student-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 800;
}

.student-chip.is-selected {
  color: var(--navy);
  background: var(--aqua);
}

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

.skill-tile {
  display: grid;
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  color: white;
  text-align: left;
}

.skill-tile.is-hot {
  background:
    linear-gradient(135deg, rgba(107, 231, 233, 0.35), rgba(255, 255, 255, 0.17)),
    var(--glass);
}

.tile-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  font-size: 24px;
  font-weight: 900;
}

.skill-tile strong {
  align-self: end;
  font-size: 16px;
  line-height: 1.15;
}

.skill-tile small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.capture-feed {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
}

.capture-feed h2,
.review-card h3,
.next-plan h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.capture-feed ol {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.capture-feed li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
}

.feed-time {
  color: var(--aqua);
  font-size: 13px;
  font-weight: 900;
}

.capture-feed strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.capture-feed p,
.share-safety p,
.import-hint p,
.next-plan p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.wrap-stack,
.next-plan {
  display: grid;
  gap: 12px;
}

.note-card,
.review-card,
.share-safety,
.import-hint {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
}

.note-card span,
.share-safety strong,
.import-hint strong {
  font-size: 16px;
  font-weight: 850;
}

.note-card textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: white;
  background: rgba(23, 52, 95, 0.24);
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.review-card button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.15);
}

.review-card span {
  font-weight: 850;
}

.review-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.next-plan article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 98px;
  padding: 16px;
  border-radius: 18px;
}

.plan-step {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--aqua);
  font-weight: 900;
}

.next-plan h3 {
  margin-bottom: 5px;
}

.capture-dock {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 20;
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
}

.capture-dock button {
  display: grid;
  min-width: 0;
  min-height: 56px;
  flex: 1;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 850;
}

.capture-dock span {
  font-size: 20px;
  line-height: 1;
}

.capture-dock .primary-capture {
  min-height: 68px;
  color: var(--navy);
  background: var(--aqua);
  transform: translateY(-8px);
}

.toast {
  position: fixed;
  right: max(22px, calc((100vw - 430px) / 2 + 22px));
  bottom: calc(104px + env(safe-area-inset-bottom));
  left: max(22px, calc((100vw - 430px) / 2 + 22px));
  z-index: 30;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

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

  .phone-shell {
    min-height: calc(100vh - 56px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(23, 52, 95, 0.3);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .view.is-active {
    animation: rise-in 180ms ease-out;
  }

  .toast:not([hidden]) {
    animation: toast-in 180ms ease-out;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
