:root {
  color-scheme: light;
  --blue: #5d9bef;
  --sky: #82c8f8;
  --violet: #8d6be8;
  --lavender: #b178ee;
  --aqua: #6be7e9;
  --navy: #17345f;
  --ink: #122849;
  --muted: #4d6382;
  --card: rgba(255, 255, 255, 0.9);
  --card-soft: rgba(255, 255, 255, 0.76);
  --line: rgba(23, 52, 95, 0.16);
  --focus: #fff176;
  --shadow: 0 18px 42px rgba(24, 37, 90, 0.22);
  font-family: Inter, "SF Pro Text", "SF Pro Display", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #4d77d7;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 2%, rgba(107, 231, 233, 0.46), transparent 25rem),
    radial-gradient(circle at 86% 12%, rgba(177, 120, 238, 0.44), transparent 22rem),
    linear-gradient(155deg, #5d9bef 0%, #7473e2 52%, #b178ee 100%);
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(23, 52, 95, 0.36);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.46;
}

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

.app-bar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(23, 52, 95, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  color: #ffffff;
}

.brand-lockup div {
  min-width: 0;
}

.brand-lockup span,
.brand-lockup strong {
  display: block;
  overflow-wrap: anywhere;
}

.brand-lockup span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-lockup strong {
  font-size: 15px;
  line-height: 1.12;
}

.hero-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(13, 31, 66, 0.26), rgba(13, 31, 66, 0.6)),
    linear-gradient(135deg, rgba(107, 231, 233, 0.32), rgba(141, 107, 232, 0.42));
  box-shadow: var(--shadow);
}

.hero-card__meta,
.section-heading--inline,
.thumb-dock,
.review-card button,
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-card__meta {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
}

.status-pill,
.private-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #19b5b9;
}

.hero-card h1 {
  margin: 17px 0 8px;
  color: #ffffff;
  font-size: clamp(25px, 7vw, 31px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-card p {
  max-width: 32rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 650;
}

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

.hero-grid span {
  min-height: 60px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.hero-grid strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.view-switcher {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 70px);
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 14px 0 18px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(23, 52, 95, 0.58);
  box-shadow: 0 14px 34px rgba(23, 52, 95, 0.24);
  backdrop-filter: blur(18px);
}

.view-tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

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

.view {
  display: none;
}

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

.section-heading {
  margin-bottom: 13px;
}

.section-heading p,
.kicker {
  margin: 0 0 4px;
  color: #315277;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: 0;
}

.plan-card,
.roster-strip article,
.skill-tile,
.feed-card,
.summary-card,
.review-card,
.next-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.plan-card {
  padding: 18px;
  border-radius: 17px;
}

.plan-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

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

.plan-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 3px;
  left: 14px;
  width: 2px;
  border-radius: 999px;
  background: rgba(23, 52, 95, 0.16);
}

.step-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--aqua), #ffffff);
  font-size: 14px;
  font-weight: 900;
}

.plan-row h3,
.roster-strip h3,
.feed-card h2,
.summary-card span,
.review-card h3,
.next-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.plan-row p:last-child,
.roster-strip p,
.next-card p {
  margin-bottom: 0;
}

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

.roster-strip article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 15px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #d9f8ff;
  font-size: 14px;
  font-weight: 900;
}

.small-action {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(23, 52, 95, 0.35);
  font-weight: 850;
}

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

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

.student-chip {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 850;
}

.student-chip.is-selected {
  background: var(--aqua);
  border-color: rgba(23, 52, 95, 0.2);
}

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

.skill-tile {
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
}

.skill-tile.is-recommended {
  background: linear-gradient(135deg, #dffbff, rgba(255, 255, 255, 0.94));
}

.skill-tile span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(93, 155, 239, 0.18);
  font-size: 21px;
}

.skill-tile strong,
.skill-tile small {
  display: block;
  overflow-wrap: anywhere;
}

.skill-tile strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.12;
}

.skill-tile small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.feed-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 17px;
}

.feed-card ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-card li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.feed-card time {
  color: #315277;
  font-size: 13px;
  font-weight: 900;
}

.feed-card strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.feed-card p {
  margin-bottom: 0;
}

.summary-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  border-radius: 17px;
}

.summary-card textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid rgba(23, 52, 95, 0.2);
  border-radius: 13px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
}

.review-card {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 17px;
}

.review-card button {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(23, 52, 95, 0.14);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.review-card button span,
.review-card button small {
  display: block;
  padding: 0 12px;
  overflow-wrap: anywhere;
}

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

.review-card button small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.next-card {
  align-items: flex-start;
  margin-top: 12px;
  padding: 15px;
  border-radius: 17px;
}

.private-badge {
  flex: 0 0 auto;
  background: #dffbff;
}

.thumb-dock {
  position: fixed;
  right: 18px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 30;
  max-width: 394px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(23, 52, 95, 0.72);
  box-shadow: 0 16px 38px rgba(23, 52, 95, 0.34);
  backdrop-filter: blur(22px);
}

.thumb-dock button {
  min-height: 48px;
  min-width: 0;
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.thumb-dock button span {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.thumb-dock .primary-capture {
  color: var(--navy);
  background: var(--aqua);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 22px;
  z-index: 35;
  max-width: 386px;
  min-height: 46px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(18, 40, 73, 0.92);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 750;
}

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

  .phone-shell {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 24px 70px rgba(23, 52, 95, 0.32);
  }
}

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

  button {
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }

  button:active {
    transform: scale(0.98);
  }
}

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

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