@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  font-family: 'DM Sans', sans-serif;
  color: #152c3a;
  background: #f3f6f8;
  font-size: 16px;
  --ink: #152c3a;
  --blue: #164bbd;
  --line: #ccd8df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ef8e21;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.75;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 40px;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.brand span {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 8px;
}
button {
  border: 0;
}
.quiet {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px;
  font-size: 0.9rem;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding: 46px 0 32px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: #475f6d;
}
h1,
h2 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: clamp(2.3rem, 4.7vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 16px 0 20px;
}
p {
  line-height: 1.6;
}
.intro p:last-child {
  margin-bottom: 0;
  max-width: 450px;
  color: #475f6d;
}
.trip-note {
  border-left: 3px solid #ee882a;
  padding: 12px 0 12px 20px;
  display: grid;
  gap: 9px;
  max-width: 240px;
}
.trip-note span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475f6d;
}
.course-bar {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #e3ebf1;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 12px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
select {
  background: #fff;
  color: var(--ink);
  padding: 10px 34px 10px 12px;
  border: 1px solid #b3c4d0;
  border-radius: 7px;
  max-width: 100%;
  font-size: 1rem;
}
.course-bar p {
  margin: 0 0 5px;
}
.course-bar span {
  font-size: 0.875rem;
  color: #475f6d;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.activity {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 28px;
  min-height: 237px;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.activity:hover {
  transform: translateY(-3px);
  border-color: #164bbd;
}
.activity.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.activity-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  align-items: center;
}
.activity-top span {
  border: 1px solid currentColor;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  white-space: nowrap;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin: 25px 0 0;
}
.activity p {
  margin: 10px 0 24px;
  max-width: 340px;
}
.begin {
  font-weight: 700;
  margin-top: auto;
  font-size: 0.9rem;
}
.tip {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.tip span {
  color: #475f6d;
}
.roadmap {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  font-weight: 600;
}
#roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.week-item {
  border-left: 2px solid #9caeba;
  padding-left: 12px;
}
.week-item p {
  font-size: 0.875rem;
  margin: 7px 0;
}
.week-item strong {
  font-size: 0.9rem;
}
.storage-note {
  font-size: 0.8rem;
  color: #526876;
  max-width: 760px;
}
footer {
  padding: 28px 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #526876;
}
.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
}
.clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.clock > span {
  font-size: 1.25rem;
  font-weight: 700;
}
.session-heading {
  max-width: 760px;
  margin: 30px auto 24px;
}
.session-heading h1 {
  font-size: 2.5rem;
}
.session-heading p:last-child {
  color: #475f6d;
}
.exercise {
  max-width: 760px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 16px;
}
.context {
  background: #eaf0f5;
  border-radius: 6px;
  padding: 13px 16px;
  margin: 0 0 25px;
  font-size: 0.95rem;
}
.play {
  display: block;
  background: var(--blue);
  color: white;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 34px;
  margin: 0 auto;
}
.play-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}
#audio-status {
  font-size: 0.875rem;
  color: #a43526;
  text-align: center;
}
.transcript {
  padding: 15px;
  border-left: 3px solid var(--blue);
  background: #edf3fa;
  margin: 20px 0;
  line-height: 1.6;
}
.transcript strong,
.answer strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.choices {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.choice {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
}
.choice:hover:not(:disabled) {
  background: #eef4fa;
}
.choice.correct {
  background: #e2f2ed;
  border-color: #24775b;
}
.choice.incorrect {
  background: #fff0e7;
  border-color: #b15826;
}
.answer {
  padding: 20px;
  background: #e2f2ed;
  margin-top: 20px;
  border-radius: 8px;
  line-height: 1.6;
}
.answer p {
  margin: 8px 0;
}
.answer .quiet {
  padding-left: 0;
}
#feedback {
  line-height: 1.6;
  margin-top: 16px;
}
.solid {
  background: var(--ink);
  color: white;
  padding: 14px 23px;
  border-radius: 8px;
  font-weight: 600;
}
.exercise-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.session-footer {
  max-width: 760px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 15px auto;
  font-size: 0.875rem;
}
.rescue {
  max-width: 760px;
  margin: 25px auto;
}
.rescue p {
  font-size: 0.95rem;
}
#summary {
  max-width: 760px;
  margin: 55px auto;
}
#summary h1 {
  font-size: 3rem;
}
#review-list {
  margin: 25px 0;
}
.review-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  line-height: 1.6;
}
.review-item strong {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: min(520px, 92vw);
  color: var(--ink);
}
dialog::backdrop {
  background: #10233199;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.dialog-top h2 {
  margin: 0;
  font-size: 1.4rem;
}
dialog p {
  font-size: 0.9rem;
}
dialog label {
  margin-top: 20px;
}
@media (max-width: 680px) {
  .shell {
    padding: 0 20px;
  }
  header {
    height: 78px;
    gap: 10px;
  }
  .brand {
    font-size: 0.9rem;
  }
  .brand span {
    display: block;
    font-size: 0.65rem;
    margin: 5px 0 0;
  }
  .compact-intro {
    padding: 18px 0 14px;
    align-items: flex-start;
  }
  .compact-intro > div:first-child strong {
    font-size: 1.05rem;
  }
  .compact-intro > div:first-child span {
    font-size: 0.82rem;
  }
  .trip-note {
    margin: 0;
    max-width: 175px;
  }
  .trip-note span {
    display: none;
  }
  .course-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .activity {
    min-height: 220px;
    padding: 24px;
  }
  .tip {
    flex-direction: column;
    gap: 5px;
  }
  #roadmap {
    grid-template-columns: 1fr;
  }
  .exercise {
    padding: 20px;
  }
  .session-heading h1 {
    font-size: 2rem;
  }
  .session-footer {
    align-items: flex-start;
  }
  .session-heading {
    margin-top: 20px;
  }
  #summary h1 {
    font-size: 2.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.compact-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 0 20px;
}
.compact-intro > div:first-child {
  display: grid;
  gap: 4px;
}
.compact-intro > div:first-child strong {
  font:
    700 1.25rem Manrope,
    sans-serif;
  letter-spacing: -0.02em;
}
.compact-intro > div:first-child span {
  color: #475f6d;
  font-size: 0.9rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--ink);
  z-index: 20;
  padding: 10px 14px;
  border-radius: 7px;
  box-shadow: 0 2px 10px #10233133;
}
.skip-link:focus {
  left: 8px;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-nav button {
  background: transparent;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.app-nav button:hover,
.app-nav button[aria-current='page'] {
  background: #dfe9f3;
  color: #103d8f;
}
.app-nav #sound-settings {
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-nav #sound-settings::before {
  content: '◉';
  font-size: 0.7rem;
  color: #24775b;
}
.app-nav #sound-settings:has(#voice-badge[data-ready='false'])::before {
  color: #b25d1d;
}
.app-nav #voice-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475f6d;
  background: #fff;
  padding: 3px 6px;
  border-radius: 20px;
}
.voice-help {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin: 20px 0;
}
.voice-help p {
  color: #475f6d;
}
.tool-strip {
  border: 1px solid #c6d5e1;
  background: #f8fbfd;
  border-radius: 12px;
  padding: 10px;
}
.tool-strip button {
  flex: 0 1 auto;
}
.tool-strip button:nth-last-child(-n + 3) {
  background: #fff;
  border: 1px solid #c6d5e1;
  color: #31516a;
}
@media (min-width: 1001px) {
  .shell {
    max-width: 1280px;
  }
  .daily-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tool-strip button {
    width: 100%;
    font-size: 0.8rem;
  }
  .course-bar {
    margin-bottom: 14px;
  }
  .daily-row {
    min-height: 155px;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 78px;
    padding: 14px 0;
    align-items: flex-start;
  }
  .app-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
  }
  .app-nav button {
    font-size: 0.78rem;
    padding: 8px;
  }
  .app-nav #voice-badge {
    display: none;
  }
  .tool-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tool-strip button {
    width: 100%;
    font-size: 0.8rem;
  }
  .tool-strip button:nth-last-child(-n + 3) {
    border: 0;
    background: #e2ebf9;
  }
  .voice-help {
    font-size: 0.9rem;
  }
}
@media (max-width: 430px) {
  header {
    gap: 8px;
  }
  .brand {
    font-size: 0.78rem;
  }
  .brand span {
    display: none;
  }
  .app-nav {
    flex: 1;
    justify-content: flex-end;
  }
  .app-nav button {
    padding: 7px;
    font-size: 0.74rem;
  }
  .tool-strip {
    grid-template-columns: 1fr;
  }
  .tool-strip button {
    font-size: 0.85rem;
  }
}
.dashboard-hero {
  padding: 52px 0 28px;
  max-width: 760px;
}
.dashboard-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
}
.dashboard-hero > p:not(.eyebrow) {
  max-width: 620px;
  color: #475f6d;
  font-size: 1.08rem;
}
.dashboard-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dashboard-card h2 {
  font-size: 1.25rem;
  margin: 5px 0 8px;
}
.dashboard-card p {
  margin: 0 0 16px;
  color: #475f6d;
}
.dashboard-card progress {
  margin: 0 0 12px;
}
.dashboard-card .quiet {
  margin-top: auto;
  padding-left: 0;
}
.current-day {
  border-color: #164bbd;
  box-shadow: inset 4px 0 #164bbd;
}
.dashboard-tip {
  margin: 22px 0;
}
.bottom-nav {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(620px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px;
  background: #152c3af5;
  border: 1px solid #31516a;
  border-radius: 16px;
  box-shadow: 0 10px 30px #1023314d;
}
.bottom-nav button {
  min-height: 54px;
  border-radius: 10px;
  background: transparent;
  color: #dce9f3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
}
.bottom-nav button > span {
  font-size: 1.25rem;
  line-height: 1;
}
.bottom-nav button small {
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
}
.bottom-nav button:hover,
.bottom-nav button[aria-current='page'] {
  background: #e8f1fa;
  color: #13385c;
}
.bottom-nav #nav-audio:has(#voice-badge[data-ready='false']) {
  color: #ffd4ae;
}
body {
  padding-bottom: 90px;
}
@media (min-width: 761px) {
  .bottom-nav {
    bottom: 20px;
    width: min(680px, calc(100% - 40px));
  }
  .bottom-nav button {
    min-height: 58px;
    font-size: 0.78rem;
  }
  .bottom-nav button > span {
    font-size: 1.35rem;
  }
}
@media (max-width: 680px) {
  .dashboard-hero {
    padding: 28px 0 20px;
  }
  .dashboard-hero h1 {
    font-size: 2.25rem;
  }
  .dashboard-hero > p:not(.eyebrow) {
    font-size: 1rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    min-height: 0;
    padding: 20px;
  }
  .dashboard-card p {
    margin-bottom: 10px;
  }
  .dashboard-tip {
    padding-bottom: 10px;
  }
  body {
    padding-bottom: 94px;
  }
}
.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  width: min(720px, calc(100% - 24px));
}
.nav-drawer {
  position: fixed;
  z-index: 14;
  left: 50%;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 78px);
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  padding: 14px;
  background: #fff;
  border: 1px solid #b8c9d6;
  border-radius: 16px;
  box-shadow: 0 8px 28px #10233140;
}
.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.nav-drawer-head .quiet {
  min-height: auto;
  padding: 6px;
}
.nav-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nav-drawer-grid button {
  min-height: 80px;
  padding: 10px;
  background: #e3edfa;
  color: #164bbd;
  border-radius: 9px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
}
.nav-drawer-grid button:hover {
  background: #d2e2f4;
}
.nav-drawer-grid strong {
  font-size: 0.84rem;
  line-height: 1.25;
}
.nav-drawer-grid span {
  font-size: 0.7rem;
  line-height: 1.25;
  color: #475f6d;
}
@media (min-width: 761px) {
  .bottom-nav {
    width: min(760px, calc(100% - 40px));
  }
  .nav-drawer {
    bottom: 98px;
    width: min(760px, calc(100% - 40px));
  }
}
@media (max-width: 500px) {
  .bottom-nav {
    width: calc(100% - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 5px;
    gap: 2px;
  }
  .bottom-nav button {
    min-height: 50px;
    font-size: 0.65rem;
  }
  .bottom-nav button > span {
    font-size: 1.12rem;
  }
  .nav-drawer {
    width: calc(100% - 16px);
    bottom: 70px;
    padding: 12px;
  }
  .nav-drawer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-drawer-grid button {
    min-height: 76px;
  }
  .nav-drawer-grid strong {
    font-size: 0.78rem;
  }
  .nav-drawer-grid span {
    font-size: 0.68rem;
  }
}
