@font-face {
  font-family: Public Sans;
  src: url('/static/public-sans.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --navy: #1c244b;
  --blue: #324a6d;
  --gold: #f2b73f;
  --ink: #262626;
  --muted: #727581;
  --paper: #f4f5fa;
  --line: #e4e6ef;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f9fc;
  color: var(--ink);
  font:
    14px 'Public Sans',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
/* Waiting on the network: a spinner inside the button and in waiting status lines. */
button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.85;
}
button[aria-busy='true']::after,
.is-waiting:not(:empty)::before {
  content: '';
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: ea-spin 0.8s linear infinite;
}
button[aria-busy='true']::after {
  margin-left: 8px;
}
.is-waiting:not(:empty)::before {
  margin-right: 8px;
}
@keyframes ea-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  button[aria-busy='true']::after,
  .is-waiting:not(:empty)::before {
    animation-duration: 2.4s;
  }
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
.sidebar {
  width: 248px;
  background: var(--navy);
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 37px 23px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand img {
  width: 185px;
  height: auto;
}
.brand-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #b5bbd3;
  margin: 21px 0 35px;
  padding-left: 9px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 12px;
  border: 0;
  border-radius: 7px;
  color: #c5c9da;
  background: transparent;
  font-size: 12px;
}
.nav span {
  font-size: 20px;
  width: 20px;
  text-align: center;
}
.nav:hover {
  background: #ffffff0a;
  color: white;
}
.nav.active {
  background: #ffffff13;
  color: var(--gold);
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #8992b6;
  margin: 24px 12px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 45px 12px 0;
}
.sidebar-bottom p {
  font-size: 13px;
  line-height: 1.7;
  color: #bfc6de;
}
.sidebar-bottom strong {
  color: white;
  font-weight: 500;
}
.sidebar-bottom small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: #8f9bbb;
}
.nav-label-wide {
  /* Long tagline: tighter tracking keeps it on one line in the sidebar. */
  white-space: nowrap;
  letter-spacing: 0.7px;
}
.small-flag {
  display: flex;
  width: 30px;
  height: 4px;
}
.small-flag i {
  flex: 1;
  background: #0c122c;
}
.small-flag i:nth-child(2) {
  background: #d95748;
}
.small-flag i:nth-child(3) {
  background: var(--gold);
}
.workspace {
  margin-left: 248px;
}
.topbar {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  font-size: 11px;
  color: var(--blue);
}
.breadcrumb {
  color: #8b8e9e;
}
.slash {
  margin: 0 14px;
  color: #c5c9d7;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 11px;
}
.account > span:first-child {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #edeef5;
  font-size: 11px;
  font-weight: 700;
}
.account > span:last-child {
  font-size: 17px;
  margin-left: 12px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 20px 44px 8px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px !important;
  letter-spacing: 1.65px;
  font-weight: 600;
  color: var(--blue) !important;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  color: var(--navy);
  margin: 12px 0 11px;
  font-weight: 600;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
}
.pill {
  border: 1px solid var(--line);
  background: white;
  border-radius: 25px;
  font-size: 10px;
  padding: 9px 13px;
  white-space: nowrap;
  color: var(--blue);
}
.flag-dot {
  display: inline-block;
  width: 13px;
  height: 9px;
  background: linear-gradient(#17171d 33%, #cc4e3a 33%, #cc4e3a 66%, #eab23e 66%);
  margin: 0 5px;
}
.hero {
  background: var(--navy);
  border-radius: 14px;
  min-height: 224px;
  overflow: hidden;
  display: flex;
  position: relative;
  color: white;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 38px 28px;
  width: 62%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.hero-kicker {
  color: #c6cee7;
  letter-spacing: 1.8px;
  font-size: 8px;
}
.hero h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 14px 0 18px;
}
.hero h2 em {
  color: var(--gold);
  font-style: normal;
}
.hero p {
  color: #c8cede;
  font-size: 12px;
  line-height: 1.9;
  max-width: 370px;
}
.gold-button {
  border: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
}
.gold-button:hover {
  background: #ffcc61;
}
/* Upgrade calls stand out in green, the color of an active subscription. */
.gold-button.upgrade-button {
  background: #2f8a5f;
  color: var(--white);
}
.gold-button.upgrade-button:hover {
  background: #26734d;
}
.hero .gold-button {
  margin-top: 11px;
}
.hero-note {
  display: inline-block;
  font-size: 9px;
  color: #b8c1d9;
  margin: 14px;
}
.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 6px;
}
.hero-art {
  width: 40%;
  position: relative;
  align-self: stretch;
  color: #c7a367;
}
.orb {
  position: absolute;
  width: 365px;
  height: 365px;
  border: 1px solid #e1c08520;
  border-radius: 50%;
  top: 24px;
  left: -3px;
  box-shadow:
    0 0 0 35px #e1c08506,
    0 0 0 70px #e1c08504;
}
.gate {
  /* Size by height so the gate stays whole in the shorter hero. */
  height: calc(100% - 30px);
  max-width: 120%;
  position: absolute;
  bottom: 24px;
  left: -25px;
  opacity: 0.65;
}
.word-tag {
  position: absolute;
  z-index: 1;
  background: #344363;
  border: 1px solid #7084a033;
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  transform: rotate(-8deg);
  box-shadow: 0 12px 25px #0002;
  font-size: 19px;
}
.tag-one {
  top: 24px;
  left: -40px;
}
.tag-one span {
  color: var(--gold);
  margin-left: 15px;
}
.tag-two {
  right: 17px;
  top: 108px;
  font-size: 13px;
  transform: rotate(8deg);
  background: #f2b73f;
  color: #1c244b;
}
/* Bronze android bust: head and shoulders rise from the bottom edge of the hero. */
.hero-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 112%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 28px #0b102866);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.hero-art .art-caption {
  display: none;
}
.art-caption {
  position: absolute;
  bottom: 28px;
  left: 60px;
  font-size: 8px;
  letter-spacing: 3px;
  color: #bbc2d7;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.section-heading h2 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 3px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mode-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-content: start;
  padding: 14px 18px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #1c244b0a;
  border-color: #c9cedf;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 25px;
  grid-row: 1 / span 3;
  align-self: start;
}
.yellow {
  background: #fff4d8;
  color: #9f7019;
}
.blue {
  background: #e8edf8;
  color: #46689b;
}
.pink {
  background: #fcebee;
  color: #b56571;
}
.green {
  background: #e7f3ee;
  color: #4f947a;
}
.lilac {
  background: #efecfa;
  color: #8673b7;
}
.card-meta {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #8a91a4;
}
.card-meta span {
  color: #acb1c1;
}
.mode-card h3 {
  grid-column: 2;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 4px 0 0;
}
.mode-card p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  grid-column: 2;
  margin: 4px 0 0;
}
.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
  border-top: 1px solid #f0f1f6;
  padding-top: 9px;
  margin-top: 10px;
  font-size: 9px;
  color: var(--blue);
  font-weight: 600;
}
.card-link b {
  font-size: 17px;
  font-weight: 400;
}
.encouragement {
  /* Kept compact so the quote does not make its row taller than the mode cards. */
  padding: 8px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.encouragement > span {
  font-size: 50px;
  line-height: 0.6;
  color: #d6a546;
  font-family: Georgia, serif;
}
.encouragement p {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.45;
  margin: 10px 0;
  letter-spacing: -0.5px;
}
.encouragement strong {
  font-weight: 600;
}
.encouragement small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8c92a2;
}
.library-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 12px;
  background: #f0f2f8;
}
.book-mark {
  color: var(--blue);
  font-size: 28px;
}
.library-banner h3 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 600;
}
.library-banner p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.text-button {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--blue);
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #9398aa;
  font-size: 9px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.footer-dot {
  margin: 0 8px;
}
.mini-stripes {
  color: var(--gold);
  margin-left: 5px;
}
.notice {
  padding: 15px 20px;
  border: 1px solid #e6c77f;
  background: #fff6df;
  color: #655326;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 20px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 20px;
}
.chat-panel,
.practice-settings {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.chat-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.tutor-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}
.chat-toolbar strong {
  font-size: 12px;
  color: var(--navy);
}
.chat-toolbar small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.chat-toolbar .pill {
  margin-left: auto;
}
.messages {
  height: 440px;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-welcome {
  margin: auto;
  text-align: center;
  max-width: 310px;
}
.chat-welcome > span {
  font-size: 36px;
  color: #d6a546;
}
.chat-welcome h2 {
  font-size: 20px;
  color: var(--navy);
}
.chat-welcome p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.message {
  max-width: 92%;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  align-self: flex-end;
  background: var(--navy);
  color: white;
}
.message small {
  display: block;
  font-size: 10px;
  color: var(--blue);
  border-top: 1px solid #d6daea;
  margin-top: 14px;
  padding-top: 9px;
}
#chat-form {
  padding: 18px;
  border-top: 1px solid var(--line);
}
textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 15px;
  min-height: 80px;
  max-height: 220px;
  color: var(--navy);
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}
.composer-bottom > span {
  font-size: 9px;
  color: var(--muted);
}
.practice-settings {
  padding: 22px;
  align-self: start;
}
.practice-settings h3 {
  color: var(--navy);
  font-size: 16px;
  margin: 15px 0 25px;
}
label {
  display: block;
  font-size: 11px;
  margin: 19px 0 8px;
  color: var(--blue);
}
select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: white;
  color: var(--navy);
  font-size: 12px;
}
.practice-settings hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.practice-settings h4 {
  font-size: 12px;
  color: var(--navy);
}
.practice-settings p,
.practice-settings small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.practice-settings small {
  display: block;
  margin-top: 15px;
  font-size: 9px;
}
.outline-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
  border-radius: 6px;
  padding: 11px;
  font-size: 11px;
}
.list-content {
  display: grid;
  gap: 12px;
}
.empty-state {
  padding: 70px 25px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.list-row {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  color: var(--navy);
}
.list-row small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.list-row strong {
  font-size: 14px;
}
.history-group {
  display: grid;
  gap: 8px;
}
.history-older summary {
  width: fit-content;
  padding: 2px 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.history-older[open] {
  display: grid;
  gap: 8px;
}
.history-older .list-row {
  margin-left: 16px;
  padding: 14px 18px;
  background: #fbfbfd;
}
.history-older .list-row strong {
  font-size: 13px;
}
dialog {
  width: 420px;
  max-width: calc(100vw - 30px);
  padding: 36px;
  border: 0;
  border-radius: 16px;
  color: var(--navy);
  box-shadow: 0 30px 80px #1c244b40;
}
dialog::backdrop {
  background: #151c3c99;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
dialog .gold-button {
  width: 100%;
  margin: 10px 0;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 25px;
}
/* The two help buttons share the row in equal halves, lined up with the fields above. */
.login-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 10px !important;
}
.login-help .outline-button {
  width: 100%;
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
/* Sign-in buttons read a size larger than the app's compact buttons. */
#login-dialog .gold-button,
#login-dialog .outline-button {
  font-size: 13px;
}
/* Small phones: the help pair keeps its size and one line, with the original text size. */
@media (max-width: 360px) {
  #login-dialog .login-help .outline-button {
    padding: 0 4px;
    font-size: 11px;
    white-space: nowrap;
  }
}
#login-error {
  color: #a02b38;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 20px;
  top: 10px;
  z-index: 99;
  background: white;
  padding: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1550px) {
  main {
    padding-top: 45px;
  }
  .hero {
    min-height: 270px;
  }
  .hero h2 {
    font-size: 40px;
  }
  .hero-art {
    max-width: 430px;
  }
  .hero-content {
    width: 65%;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 218px;
    padding: 30px 15px;
  }
  .brand img {
    width: 170px;
  }
  .workspace {
    margin-left: 218px;
  }
  main {
    padding: 22px 25px 16px;
  }
  .topbar {
    padding: 0 25px;
  }
  .hero-content {
    padding: 28px;
    width: 65%;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero-note {
    display: block;
    margin: 14px 0 0;
  }
  .mode-card {
    padding: 19px;
  }
  .hero-art {
    width: 35%;
  }
  .tag-two {
    right: 5px;
  }
  .chat-layout {
    grid-template-columns: 1fr 200px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 80px;
    padding: 25px 12px;
  }
  .brand img {
    width: 55px;
  }
  .brand-label,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    font-size: 0;
    justify-content: center;
    padding: 12px;
    gap: 0;
  }
  .nav span {
    font-size: 22px;
  }
  .sidebar nav {
    margin-top: 32px;
  }
  .workspace {
    margin-left: 80px;
  }
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero-art {
    opacity: 0.6;
  }
  .hero-content {
    width: 75%;
  }
  .hero-art {
    width: 25%;
  }
  .tag-one {
    left: -30px;
  }
  .tag-two {
    display: none;
  }
  .hero-kicker {
    font-size: 7px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .practice-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
  }
  .practice-settings h3,
  .practice-settings hr,
  .practice-settings h4,
  .practice-settings p,
  .practice-settings small,
  .practice-settings button {
    display: none;
  }
  .practice-settings label {
    margin: 5px 0;
  }
  .practice-settings select {
    grid-row: 2;
  }
  .library-banner {
    flex-wrap: wrap;
  }
  .text-button {
    margin: 0 0 0 45px;
  }
  .topbar {
    height: 70px;
  }
  .account #account-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .section-heading > span {
    display: none;
  }
}
@media (max-width: 550px) {
  .sidebar {
    width: 62px;
    padding: 22px 7px;
  }
  .brand img {
    width: 48px;
  }
  .workspace {
    margin-left: 62px;
  }
  main {
    padding: 23px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .breadcrumb,
  .slash,
  .account > span:last-child {
    display: none;
  }
  .account {
    gap: 7px;
  }
  #account-name {
    font-size: 9px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  .page-heading .pill {
    display: none;
  }
  .eyebrow {
    font-size: 7px !important;
  }
  .hero {
    min-height: 350px;
  }
  .hero-content {
    width: 100%;
    padding: 27px 22px;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    font-size: 11px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .mode-card {
    padding: 18px;
  }
  .mode-card p {
    max-width: 100%;
  }
  .encouragement {
    padding: 30px 20px;
  }
  .library-banner {
    padding: 19px;
    gap: 13px;
  }
  .library-banner > div {
    flex: 1;
  }
  .library-banner p {
    line-height: 1.8;
  }
  footer {
    line-height: 1.8;
    gap: 20px;
  }
  footer > span:last-child {
    display: none;
  }
  .messages {
    height: 370px;
    padding: 15px;
  }
  .composer-bottom > span {
    display: none;
  }
  .composer-bottom {
    justify-content: flex-end;
  }
  .chat-toolbar {
    padding: 15px;
  }
  .page-heading .outline-button {
    font-size: 9px;
  }
  .list-row {
    padding: 17px;
    flex-wrap: wrap;
  }
  .message {
    max-width: 96%;
  }
}

/* Real-life role-play picker, inside the conversation area. */
.situation-welcome {
  margin: 0;
  max-width: none;
  text-align: left;
  width: 100%;
  flex-shrink: 0;
}
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}
.situation-option {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  row-gap: 3px;
  align-content: start;
  min-height: 82px;
  text-align: left;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  color: var(--navy);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.situation-option:hover {
  border-color: #c9cedf;
  background: #f7f8fc;
}
.situation-option:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.situation-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eef1f8;
  color: var(--blue);
}
.situation-option strong {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.situation-option > span:not(.situation-icon) {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.situation-hint {
  font-size: 11px !important;
}
@media (max-width: 550px) {
  .situation-grid {
    grid-template-columns: 1fr;
  }
  .situation-option {
    padding: 13px;
  }
}

/* Account details and password editing are separate views. */
#account-dialog,
#password-dialog {
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow-y: auto;
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 24px 0 18px;
}
.profile-wide {
  grid-column: 1 / -1;
}
.profile-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.profile-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.profile-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.profile-actions button,
#back-to-profile,
#verify-email-button {
  min-height: 44px;
  width: 100%;
}
.profile-actions .gold-button {
  margin: 0;
}
#account-status:empty,
#password-status:empty {
  display: none;
}
@media (max-width: 550px) {
  #account-dialog,
  #password-dialog {
    padding: 24px;
  }
  .profile-details {
    gap: 12px;
    margin-top: 18px;
  }
}
/* The bronze bust replaces the faded gate on tablets and fills the empty lower half of the hero on phones. */
@media (max-width: 850px) {
  .hero-art {
    opacity: 1;
    width: 40%;
  }
  .hero-content {
    width: 60%;
  }
}
/* Phones: a compact hero with the button on the left and the bust on the right; the headline stays for screen readers only. */
@media (max-width: 550px) {
  .hero {
    min-height: 0;
    height: 200px;
  }
  .hero h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    width: auto;
    padding: 0;
  }
  .hero .gold-button {
    margin-top: 0;
  }
  .hero-art {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-figure {
    left: auto;
    right: -26px;
    height: 100%;
    transform: none;
  }
  .orb {
    width: 230px;
    height: 230px;
    top: 10px;
    left: auto;
    right: -30px;
  }
}
/* Speech balloon: the AI greets the student, first "typing", then the sentence. */
.speech {
  position: absolute;
  z-index: 2;
  top: 30%;
  right: calc(50% + 96px);
  width: max-content;
  max-width: none;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: #fffaf0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 12px 28px #0b102859;
}
.speech::after {
  content: '';
  position: absolute;
  right: -11px;
  bottom: 8px;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent #fffaf0;
}
#course-hello {
  color: #a8731a;
}
.speech-text {
  animation: speech-in 0.35s ease-out 1.4s both;
}
.speech-typing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: speech-out 0.2s ease-in 1.3s both;
}
.speech-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d86a3;
  animation: speech-dot 0.9s ease-in-out infinite;
}
.speech-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.speech-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes speech-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes speech-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes speech-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.speech.cycled .speech-text {
  animation: none;
  transition: opacity 0.2s;
}
.speech.cycled .speech-typing {
  display: none;
}
.speech.fading .speech-text {
  opacity: 0;
}
/* blinking caret while a line is being typed */
.speech.writing .speech-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: speech-caret 0.8s steps(1) infinite;
}
@keyframes speech-caret {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .speech-typing {
    display: none;
  }
  .speech-text {
    animation: none;
  }
}
@media (max-width: 850px) {
  .speech {
    top: 30px;
    right: calc(50% + 46px);
    left: auto;
    max-width: 190px;
    padding: 10px 13px;
    font-size: 14px;
    white-space: normal;
  }
}
@media (max-width: 550px) {
  .speech {
    top: 20px;
    left: 20px;
    max-width: 52%;
  }
}
/* Smaller screens: mode cards keep the title and the action line only. */
@media (max-width: 850px) {
  .mode-card p {
    display: none;
  }
  .mode-card .card-link {
    margin-top: 12px;
  }
}
/* Phones: the balloon sits right beside the bust's face. */
@media (max-width: 550px) {
  .speech {
    top: 52px;
    left: auto;
    right: 150px;
    max-width: calc(100% - 166px);
    font-size: 13.5px;
  }
}
/* Account lives at the bottom of the sidebar instead of the top bar. */
.sidebar-account {
  margin-top: auto;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c5c9da;
  font-size: 12px;
  text-align: left;
}
.sidebar-account:hover {
  background: #ffffff0a;
  color: white;
}
.sidebar-account > span:first-child {
  flex: 0 0 34px;
  background: #ffffff1c;
  color: white;
}
.sidebar-account #account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-account > span:last-child {
  display: none;
}
.sidebar-account + .sidebar-bottom {
  margin-top: 0;
  padding-top: 14px;
}
/* Phones: a little more air between the balloon and the face. */
@media (max-width: 550px) {
  .speech {
    right: 170px;
    max-width: calc(100% - 186px);
  }
}
/* Narrow laptops: the longer headline needs the balloon to sit lower, beside "É Método." */
@media (min-width: 851px) and (max-width: 1150px) {
  .speech {
    top: 50%;
  }
}
/* Tablets: the longer headline takes the top, so the balloon sits low, level with the button. */
@media (min-width: 551px) and (max-width: 850px) {
  .hero h2 {
    font-size: 26px;
  }
  .speech {
    top: auto;
    bottom: 28px;
  }
}
/* Windows up to 800px tall hide the sidebar footer; the account then sits at the bottom on its own. */
@media (max-height: 800px) {
  .sidebar-account {
    margin-top: auto;
  }
}
/* Cards in a row share their height; the action line always sits at the bottom so rows line up. */
.mode-card {
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
}
.mode-card .card-link {
  grid-row: 4;
  align-self: end;
}
/* Login gate: signed-out visitors see only the login (or an emailed account link). */
.signed-out-brand {
  display: none;
}
body.signed-out {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 183, 63, 0.16), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(124, 145, 191, 0.25), transparent 50%), var(--navy);
}
body.signed-out > .skip,
body.signed-out > .sidebar,
body.signed-out > .menu-toggle,
body.signed-out > #mobile-menu,
body.signed-out > .workspace {
  display: none !important;
}
body.signed-out .signed-out-brand {
  display: flex;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 0;
}
.signed-out-brand img {
  width: min(220px, 55vw);
  height: auto;
}
body.signed-out dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.signed-out #close-login {
  display: none;
}
/* The sign-in screen stands still on phones: no page scroll or rubber-band bounce behind the card. */
html:has(body.signed-out),
body.signed-out {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
/* Only a card taller than a short screen scrolls, inside itself. Its height comes from the rules that
   already leave room for the on-screen keyboard. */
body.signed-out dialog {
  overflow-y: auto;
  overscroll-behavior: contain;
}
