:root {
  color-scheme: light;
  --ink: #10233a;
  --muted: #607089;
  --line: #d6e3e7;
  --teal: #147f89;
  --blue: #176cc7;
  --surface: #ffffff;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #f4fafb;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

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

.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: max(14px, env(safe-area-inset-top)) clamp(18px, 5vw, 56px) 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand,
.app-topbar nav,
.action-list a,
.primary-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 16px;
}

.brand > strong {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand > strong > span {
  font-size: 16px;
}

.brand > strong > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.brand > span,
.action-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #a9dce0;
  border-radius: 8px;
  background: #e8fafb;
  color: var(--teal);
  font-weight: 900;
}

.brand > span {
  border-color: rgba(20, 127, 137, 0.24);
  background: #061a3b url("../assets/pwa/icon-96.png?v=20260910-owner-reviewed-data-export-v359") center / cover no-repeat;
  color: transparent;
  font-size: 0;
}

.app-topbar nav {
  gap: 18px;
}

.app-topbar nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 68px) clamp(18px, 5vw, 52px) 60px;
}

.practice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: end;
  padding-bottom: clamp(34px, 7vw, 72px);
  border-bottom: 1px solid var(--line);
}

.practice-hero > div > span,
.primary-action > span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

h1 {
  max-width: 620px;
  margin: 10px 0 14px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.practice-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.primary-action {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #145f70, #218d96 58%, #2f79c8);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 95, 112, 0.2);
}

.primary-action > span {
  color: rgba(255, 255, 255, 0.8);
}

.primary-action strong {
  max-width: 260px;
  font-size: 30px;
  line-height: 1.18;
}

.primary-action em,
.action-list a > em {
  font-style: normal;
  font-size: 26px;
}

.primary-action em {
  position: absolute;
  right: 26px;
  bottom: 24px;
}

.action-list {
  padding-top: 30px;
}

.action-list h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.action-list a {
  gap: 16px;
  min-height: 82px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.action-list a > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.action-list strong {
  font-size: 19px;
}

.action-list small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.action-list a > em {
  color: var(--blue);
}

@media (max-width: 700px) {
  .app-topbar {
    align-items: flex-start;
  }

  .app-topbar nav {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
  }

  .practice-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-action {
    min-height: 156px;
  }
}

.choice-page {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  padding-top: 40px;
  padding-bottom: 70px;
}

.choice-page h1 {
  margin-bottom: clamp(28px, 6vw, 52px);
  font-size: clamp(34px, 6vw, 56px);
}

.choice-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 6vw, 52px);
}

.choice-page-head a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  font-size: 24px;
}

.choice-page-head h1 {
  margin: 0;
}

.primary-choice-list {
  display: grid;
  gap: 14px;
}

.primary-choice-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 24px clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 35, 58, 0.06);
}

.primary-choice-list a:first-child {
  border-left: 6px solid var(--teal);
}

.primary-choice-list a:nth-child(2) {
  border-left: 6px solid var(--blue);
}

.primary-choice-list a:nth-child(3) {
  border-left: 6px solid #6c8095;
}

.choice-number {
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.primary-choice-list strong {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
}

.primary-choice-list em {
  color: var(--blue);
  font-size: 28px;
  font-style: normal;
}

@media (max-width: 700px) {
  .choice-page {
    align-content: start;
    min-height: auto;
  }

  .primary-choice-list a {
    min-height: 96px;
  }
}

/* Family hubs use the available screen like an app launcher, while the
   existing guided task pages keep their compact step-by-step layout. */
.choice-page--hub {
  width: min(1180px, 100%);
  align-content: center;
  padding-top: clamp(46px, 8vh, 96px);
  padding-bottom: clamp(56px, 10vh, 112px);
}

.choice-page--hub h1 {
  max-width: 820px;
  margin: 0 0 clamp(28px, 5vh, 54px);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
}

.choice-page--hub .choice-page-head {
  margin-bottom: clamp(28px, 5vh, 54px);
}

.choice-page--hub .choice-page-head h1 {
  margin: 0;
}

.choice-page--hub .primary-choice-list {
  gap: clamp(16px, 2.5vw, 28px);
}

.choice-page--home .primary-choice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-page--teacher .primary-choice-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-page--analysis .primary-choice-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-page--subchoice .primary-choice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-page--hub .primary-choice-list .choice-card {
  --card-accent: var(--teal);
  --icon-surface: #e3f6f1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px;
  min-height: clamp(220px, 28vh, 300px);
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid #d5e2e5;
  border-top: 6px solid var(--card-accent);
  border-left-width: 1px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(16, 35, 58, 0.09);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-page--hub .primary-choice-list .choice-card:hover {
  border-color: var(--card-accent);
  box-shadow: 0 22px 52px rgba(16, 35, 58, 0.14);
  transform: translateY(-3px);
}

.choice-page--hub .primary-choice-list .choice-card:focus-visible,
.choice-page--hub .choice-page-head a:focus-visible {
  outline: 4px solid rgba(35, 107, 196, 0.24);
  outline-offset: 4px;
}

.choice-page--hub .primary-choice-list .choice-card--motion,
.choice-page--hub .primary-choice-list .choice-card--review {
  --card-accent: #15806f;
  --icon-surface: #e3f6f1;
}

.choice-page--hub .primary-choice-list .choice-card--analysis,
.choice-page--hub .primary-choice-list .choice-card--recording {
  --card-accent: #236bc4;
  --icon-surface: #e8f1fc;
}

.choice-page--hub .primary-choice-list .choice-card--practice,
.choice-page--hub .primary-choice-list .choice-card--observation {
  --card-accent: #b57a16;
  --icon-surface: #fff3d9;
}

.choice-page--hub .primary-choice-list .choice-card--acoustic {
  --card-accent: #b57a16;
  --icon-surface: #fff3d9;
}

.choice-page--hub .primary-choice-list .choice-card--digital,
.choice-page--hub .primary-choice-list .choice-card--live {
  --card-accent: #236bc4;
  --icon-surface: #e8f1fc;
}

.choice-page--hub .primary-choice-list .choice-card--video {
  --card-accent: #15806f;
  --icon-surface: #e3f6f1;
}

.choice-page--hub .choice-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: var(--icon-surface);
  color: var(--card-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.choice-page--hub .choice-copy {
  display: grid;
  align-self: end;
  gap: 8px;
  min-width: 0;
}

.choice-page--hub .choice-copy small {
  color: var(--card-accent);
  font-size: 14px;
  font-weight: 900;
}

.choice-page--hub .primary-choice-list .choice-copy strong {
  max-width: 10em;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
}

.choice-page--hub .primary-choice-list .choice-card > em {
  display: grid;
  place-items: center;
  align-self: end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-surface);
  color: var(--card-accent);
  font-size: 26px;
}

@media (max-width: 760px) {
  .choice-page--hub {
    align-content: start;
    min-height: calc(100dvh - 68px);
    padding-top: 34px;
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }

  .choice-page--hub h1 {
    margin-bottom: 28px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .choice-page--home .primary-choice-list,
  .choice-page--teacher .primary-choice-list,
  .choice-page--analysis .primary-choice-list,
  .choice-page--subchoice .primary-choice-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-page--hub .primary-choice-list .choice-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: clamp(132px, 20vh, 176px);
    padding: 24px;
    border-top-width: 1px;
    border-left: 6px solid var(--card-accent);
  }

  .choice-page--hub .choice-icon {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }

  .choice-page--hub .choice-copy {
    align-self: center;
  }

  .choice-page--hub .primary-choice-list .choice-copy strong {
    font-size: clamp(23px, 7vw, 30px);
  }

  .choice-page--hub .primary-choice-list .choice-card > em {
    align-self: center;
    width: 42px;
    height: 42px;
    font-size: 23px;
  }
}

@media (max-width: 700px) {
  .app-hub-body .app-topbar {
    align-items: center;
  }

  .app-hub-body .app-topbar nav {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .app-hub-body .app-topbar nav a,
  .app-hub-body .pwa-install-button {
    display: grid;
    place-items: center;
    min-width: 38px;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-size: 12px;
  }

  .app-hub-body .pwa-install-button {
    border-color: #9ed0d4;
    background: #e8fafb;
    color: var(--teal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-page--hub .primary-choice-list .choice-card {
    transition: none;
  }
}

/* Light technology workspace for the family performance-analysis hub. */
.analysis-app-body {
  --analysis-navy: #05294f;
  --analysis-navy-soft: #0f3a65;
  --analysis-blue: #1680ff;
  --analysis-cyan: #17a9bc;
  --analysis-cyan-bright: #27d9ef;
  --analysis-ice: #ecf8ff;
  --analysis-surface: #ffffff;
  --analysis-line: #c9e1ec;
  --analysis-yellow: #f6c84c;
  overflow: hidden;
  background: var(--analysis-ice);
}

.analysis-app-body button,
.analysis-app-body a {
  font: inherit;
}

.analysis-app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.analysis-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 20px 24px;
  border-right: 1px solid rgba(77, 231, 255, 0.18);
  background: var(--analysis-navy);
  color: #ffffff;
}

.analysis-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.analysis-brand > span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 231, 255, 0.5);
  border-radius: 8px;
  background: #061a3b url("../assets/pwa/icon-96.png?v=20260910-owner-reviewed-data-export-v359") center / cover no-repeat;
}

.analysis-brand strong,
.analysis-brand b,
.analysis-brand small {
  display: block;
}

.analysis-brand b {
  font-size: 16px;
  letter-spacing: 0;
}

.analysis-brand small {
  margin-top: 3px;
  color: #9bd9e7;
  font-size: 10px;
  font-weight: 800;
}

.analysis-sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 54px;
}

.analysis-sidebar-nav a {
  position: relative;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #bcd4e7;
  font-size: 14px;
  font-weight: 800;
}

.analysis-sidebar-nav a:hover,
.analysis-sidebar-nav a:focus-visible {
  border-color: rgba(77, 231, 255, 0.22);
  color: #ffffff;
}

.analysis-sidebar-nav a.is-active {
  border-color: rgba(77, 231, 255, 0.3);
  background: #0f4776;
  color: var(--analysis-cyan-bright);
}

.analysis-sidebar-nav a.is-active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -21px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--analysis-cyan-bright);
  content: "";
}

.analysis-mode-switch {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 7px;
  border: 1px solid rgba(77, 231, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 24, 54, 0.45);
}

.analysis-mode-switch span,
.analysis-mode-switch a {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.analysis-mode-switch span {
  background: #0f4776;
  color: var(--analysis-cyan-bright);
}

.analysis-mode-switch a {
  color: #adc8dd;
}

.analysis-stage {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  background-color: #f5fbfe;
  background-image:
    linear-gradient(rgba(15, 58, 101, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 58, 101, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}

.analysis-topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(22px, 4vw, 52px);
  border-bottom: 1px solid var(--analysis-line);
  background: rgba(255, 255, 255, 0.96);
}

.analysis-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--analysis-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--analysis-navy);
  font-size: 23px;
}

.analysis-mobile-title {
  display: grid;
  gap: 2px;
  margin-left: 14px;
}

.analysis-mobile-title strong {
  font-size: 17px;
}

.analysis-mobile-title small {
  color: #71859a;
  font-size: 10px;
  font-weight: 750;
}

.analysis-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.analysis-topbar nav a,
.analysis-topbar .pwa-install-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--analysis-line);
  border-radius: 7px;
  background: #ffffff;
  color: #38526d;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.analysis-topbar .pwa-install-button {
  border-color: #9edfeb;
  background: #e6fafd;
  color: #087f95;
}

.analysis-workspace {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 7vh, 72px) clamp(22px, 5vw, 64px) 72px;
}

.analysis-workspace-head {
  margin-bottom: clamp(28px, 5vh, 46px);
}

.analysis-workspace-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #9edfeb;
  border-radius: 6px;
  background: #e4f9fc;
  color: #087f95;
  font-size: 13px;
  font-weight: 900;
}

.analysis-workspace-head h1 {
  max-width: none;
  margin: 13px 0 0;
  color: var(--analysis-navy);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.analysis-task-list {
  display: grid;
  gap: 16px;
}

.analysis-task {
  --task-accent: var(--analysis-cyan);
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 146px;
  padding: 24px 28px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--analysis-line);
  border-radius: 8px;
  background: var(--analysis-surface);
  box-shadow: 0 14px 34px rgba(15, 58, 101, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.analysis-task::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--task-accent);
  content: "";
}

.analysis-task--practice {
  --task-accent: var(--analysis-yellow);
}

.analysis-task--recording {
  --task-accent: var(--analysis-blue);
}

.analysis-task--motion {
  --task-accent: var(--analysis-cyan);
}

.analysis-task:hover,
.analysis-task:focus-visible {
  border-color: var(--task-accent);
  box-shadow: 0 18px 42px rgba(15, 58, 101, 0.13);
  transform: translateY(-2px);
}

.analysis-task:focus-visible,
.analysis-topbar a:focus-visible,
.analysis-topbar button:focus-visible,
.analysis-sidebar a:focus-visible,
.analysis-bottom-nav a:focus-visible {
  outline: 3px solid rgba(22, 128, 255, 0.26);
  outline-offset: 3px;
}

.analysis-task-number {
  padding-right: 22px;
  border-right: 1px solid var(--analysis-line);
  color: var(--task-accent);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.analysis-task-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.analysis-task-copy small {
  color: var(--task-accent);
  font-size: 12px;
  font-weight: 900;
}

.analysis-task-copy strong {
  color: var(--analysis-navy);
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.16;
}

.analysis-task-copy b {
  color: #6a7e93;
  font-size: 14px;
  font-weight: 700;
}

.analysis-task-action {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--analysis-blue);
  border-radius: 7px;
  background: var(--analysis-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.analysis-task--practice .analysis-task-action {
  border-color: #e8b72d;
  background: #fff8dc;
  color: #a56b00;
}

.analysis-task--motion .analysis-task-action {
  border-color: #7bd4df;
  background: #e6fafd;
  color: #087f95;
}

.analysis-bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  .analysis-app-body {
    overflow: auto;
  }

  .analysis-app-shell {
    display: block;
  }

  .analysis-sidebar {
    display: none;
  }

  .analysis-stage {
    min-height: 100dvh;
    overflow: visible;
  }

  .analysis-workspace {
    width: min(860px, 100%);
  }
}

@media (max-width: 640px) {
  .analysis-stage {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    background-size: 38px 38px;
  }

  .analysis-topbar {
    min-height: 64px;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  }

  .analysis-back {
    width: 40px;
    height: 40px;
  }

  .analysis-mobile-title strong {
    font-size: 16px;
  }

  .analysis-topbar nav a:last-child {
    display: none;
  }

  .analysis-topbar nav a,
  .analysis-topbar .pwa-install-button {
    min-width: 38px;
    min-height: 36px;
    padding: 0 9px;
  }

  .analysis-workspace {
    padding: 28px 16px 42px;
  }

  .analysis-workspace-head {
    margin-bottom: 24px;
  }

  .analysis-workspace-head h1 {
    font-size: 31px;
  }

  .analysis-task-list {
    gap: 12px;
  }

  .analysis-task {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 126px;
    padding: 20px 18px 20px 22px;
  }

  .analysis-task-number {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0;
    border: 0;
    opacity: 0.22;
    font-size: 25px;
  }

  .analysis-task-copy {
    gap: 4px;
  }

  .analysis-task-copy strong {
    padding-right: 24px;
    font-size: 23px;
  }

  .analysis-task-copy b {
    font-size: 13px;
  }

  .analysis-task-action {
    min-width: 68px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .analysis-bottom-nav {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px env(safe-area-inset-bottom);
    border-top: 1px solid #b8d8e5;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(15, 58, 101, 0.08);
  }

  .analysis-bottom-nav a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 8px 2px;
    color: #62768a;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
  }

  .analysis-bottom-nav a.is-active {
    color: #087f95;
  }

  .analysis-bottom-nav a.is-active::after {
    position: absolute;
    right: 24%;
    bottom: 3px;
    left: 24%;
    height: 3px;
    border-radius: 3px;
    background: var(--analysis-cyan-bright);
    content: "";
  }
}

@media (max-width: 380px) {
  .analysis-mobile-title small,
  .analysis-topbar .pwa-install-button {
    display: none;
  }

  .analysis-task {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .analysis-task-action {
    min-width: 62px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-task {
    transition: none;
  }
}

/* Shared family-app surface from the home screen through every choice step. */
.app-hub-body--unified {
  --app-navy: #05294f;
  --app-blue: #1680ff;
  --app-cyan: #17a9bc;
  --app-cyan-bright: #27d9ef;
  --app-ice: #ecf8ff;
  --app-yellow: #f6c84c;
  min-height: 100dvh;
  background-color: #f5fbfe;
  background-image:
    linear-gradient(rgba(15, 58, 101, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 58, 101, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
}

.app-hub-body--unified .app-topbar--unified {
  min-height: 76px;
  border-bottom-color: rgba(77, 231, 255, 0.2);
  background: var(--app-navy);
  color: #ffffff;
}

.app-hub-body--unified .app-topbar--unified .brand > strong > small {
  color: #9bd9e7;
}

.app-hub-body--unified .app-topbar--unified nav a,
.app-hub-body--unified .app-topbar--unified .pwa-install-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(77, 231, 255, 0.24);
  border-radius: 7px;
  background: #0f3a65;
  color: #d8edf7;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.app-hub-body--unified .app-topbar--unified .pwa-install-button {
  border-color: rgba(77, 231, 255, 0.55);
  background: #0f4776;
  color: var(--app-cyan-bright);
}

.choice-page--unified {
  width: min(1040px, 100%);
  align-content: center;
  min-height: calc(100dvh - 76px);
  padding-top: clamp(44px, 8vh, 86px);
  padding-bottom: clamp(64px, 10vh, 104px);
}

.unified-page-heading {
  min-width: 0;
}

.unified-page-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #9edfeb;
  border-radius: 6px;
  background: #e4f9fc;
  color: #087f95;
  font-size: 13px;
  font-weight: 900;
}

.choice-page--unified .unified-page-heading h1 {
  max-width: none;
  margin: 13px 0 clamp(28px, 5vh, 44px);
  color: var(--app-navy);
  font-size: clamp(35px, 4.5vw, 50px);
  line-height: 1.08;
}

.choice-page--unified .choice-page-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.choice-page--unified .choice-page-head > a {
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 8px;
  color: var(--app-navy);
}

.choice-page--unified .choice-page-head .unified-page-heading h1 {
  margin-bottom: clamp(28px, 5vh, 44px);
}

.choice-page--unified .unified-choice-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.choice-page--unified .unified-choice-list .choice-card {
  --choice-accent: var(--app-cyan);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 142px;
  padding: 26px 30px 26px 34px;
  overflow: hidden;
  border: 1px solid #c9e1ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 58, 101, 0.08);
}

.choice-page--unified .unified-choice-list .choice-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--choice-accent);
  content: "";
}

.choice-page--unified .unified-choice-list .choice-card--motion,
.choice-page--unified .unified-choice-list .choice-card--video,
.choice-page--unified .unified-choice-list .choice-card--live {
  --choice-accent: var(--app-cyan);
}

.choice-page--unified .unified-choice-list .choice-card--analysis,
.choice-page--unified .unified-choice-list .choice-card--recording,
.choice-page--unified .unified-choice-list .choice-card--digital {
  --choice-accent: var(--app-blue);
}

.choice-page--unified .unified-choice-list .choice-card--acoustic,
.choice-page--unified .unified-choice-list .choice-card--observation {
  --choice-accent: var(--app-yellow);
}

.choice-page--unified .unified-choice-list .choice-card:hover,
.choice-page--unified .unified-choice-list .choice-card:focus-visible {
  border-color: var(--choice-accent);
  box-shadow: 0 18px 42px rgba(15, 58, 101, 0.13);
  transform: translateY(-2px);
}

.choice-page--unified .unified-choice-list .choice-copy {
  align-self: center;
  gap: 6px;
}

.choice-page--unified .unified-choice-list .choice-copy small {
  color: var(--choice-accent);
  font-size: 13px;
  font-weight: 900;
}

.choice-page--unified .unified-choice-list .choice-copy strong {
  max-width: none;
  color: var(--app-navy);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.16;
}

.choice-page--unified .unified-choice-list .choice-card > em {
  display: grid;
  place-items: center;
  align-self: center;
  width: auto;
  min-width: 92px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #80d4df;
  border-radius: 7px;
  background: #e6fafd;
  color: #087f95;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.choice-page--unified .unified-choice-list .choice-card--analysis > em,
.choice-page--unified .unified-choice-list .choice-card--recording > em,
.choice-page--unified .unified-choice-list .choice-card--digital > em {
  border-color: var(--app-blue);
  background: var(--app-blue);
  color: #ffffff;
}

.choice-page--unified .unified-choice-list .choice-card--acoustic > em,
.choice-page--unified .unified-choice-list .choice-card--observation > em {
  border-color: #e8b72d;
  background: #fff8dc;
  color: #a56b00;
}

.family-bottom-nav {
  display: none;
}

@media (max-width: 700px) {
  .app-hub-body--unified {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background-size: 38px 38px;
  }

  .app-hub-body--unified .app-topbar--unified {
    min-height: 64px;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  }

  .app-hub-body--unified .app-topbar--unified nav {
    flex-direction: row;
    gap: 6px;
  }

  .app-hub-body--unified .app-topbar--unified nav a,
  .app-hub-body--unified .app-topbar--unified .pwa-install-button {
    min-width: 38px;
    min-height: 36px;
    padding: 0 9px;
  }

  .app-hub-body--unified .app-topbar--unified nav a:last-child {
    display: none;
  }

  .choice-page--unified {
    min-height: auto;
    padding: 30px 16px 40px;
  }

  .choice-page--unified .unified-page-heading h1,
  .choice-page--unified .choice-page-head .unified-page-heading h1 {
    margin-bottom: 25px;
    font-size: 31px;
  }

  .choice-page--unified .choice-page-head {
    gap: 12px;
  }

  .choice-page--unified .choice-page-head > a {
    width: 40px;
    height: 40px;
  }

  .choice-page--unified .unified-choice-list {
    gap: 12px;
  }

  .choice-page--unified .unified-choice-list .choice-card {
    gap: 14px;
    min-height: 122px;
    padding: 20px 16px 20px 22px;
    border-top-width: 1px;
    border-left-width: 1px;
  }

  .choice-page--unified .unified-choice-list .choice-copy strong {
    font-size: 23px;
  }

  .choice-page--unified .unified-choice-list .choice-card > em {
    min-width: 64px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .family-bottom-nav {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px env(safe-area-inset-bottom);
    border-top: 1px solid #b8d8e5;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(15, 58, 101, 0.08);
  }

  .family-bottom-nav a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 8px 2px;
    color: #62768a;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
  }

  .family-bottom-nav a.is-active {
    color: #087f95;
  }

  .family-bottom-nav a.is-active::after {
    position: absolute;
    right: 24%;
    bottom: 3px;
    left: 24%;
    height: 3px;
    border-radius: 3px;
    background: var(--app-cyan-bright);
    content: "";
  }
}

@media (max-width: 380px) {
  .app-hub-body--unified .brand > strong > small,
  .app-hub-body--unified .pwa-install-button {
    display: none;
  }
}
