:root {
  --navy-950: #0a1f33;
  --navy-900: #102a43;
  --navy-800: #173f5f;
  --navy-700: #245577;
  --ink: #162331;
  --muted: #5d6b79;
  --muted-2: #7b8793;
  --line: #d9e2ec;
  --line-strong: #bdc9d5;
  --surface: #ffffff;
  --canvas: #f3f7fa;
  --canvas-2: #eaf1f5;
  --teal: #147d7c;
  --teal-dark: #0c6665;
  --teal-soft: #dff4f2;
  --coral: #b84d3c;
  --coral-soft: #fce9e4;
  --amber: #a96800;
  --amber-soft: #fff2d7;
  --success: #24785a;
  --danger: #b23a3a;
  --shadow: 0 14px 36px rgba(16, 42, 67, 0.08);
  --radius: 18px;
  --body-size: 1rem;
  --body-line: 1.6;
  --letter-space: 0;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 42, 67, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.028) 1px, transparent 1px),
    var(--canvas);
  background-size: 28px 28px;
  font-family: var(--font-main);
  font-size: var(--body-size);
  line-height: var(--body-line);
  letter-spacing: var(--letter-space);
  text-rendering: optimizeLegibility;
}

body.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(69, 213, 204, 0.22), transparent 31rem),
    radial-gradient(circle at 88% 82%, rgba(255, 191, 71, 0.14), transparent 28rem),
    var(--navy-950);
}

.auth-card {
  width: min(100%, 980px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3, 16, 29, 0.35);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  color: #fff;
  background: var(--navy-900);
}

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

.auth-brand small {
  margin-top: 2px;
  color: #bad0df;
  font-size: 0.78rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.auth-intro {
  padding: 48px 44px;
  background:
    linear-gradient(145deg, rgba(223, 244, 242, 0.92), rgba(243, 247, 250, 0.7)),
    #f3f7fa;
}

.auth-intro h1 {
  max-width: 13ch;
  margin: 8px 0 16px;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 57ch;
  margin: 0;
  color: #405568;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy-900);
  font-weight: 720;
}

.auth-benefits span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 38px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}

.auth-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.auth-mode-switch button.is-selected {
  color: var(--navy-950);
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
}

#student-auth-form {
  display: grid;
  gap: 15px;
}

#student-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 760;
}

#student-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}

#student-auth-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 125, 124, 0.11);
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  font-weight: 820;
}

.auth-submit:hover {
  background: var(--teal-dark);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-reset-request {
  width: max-content;
  margin: -4px 0 0 auto;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--teal-dark);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 780;
}

.auth-reset-request:hover {
  text-decoration: underline;
}

.auth-message {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #f0c7bc;
  border-radius: 10px;
  color: #7d2e22;
  background: var(--coral-soft);
  font-size: 0.84rem;
}

.auth-message.is-success {
  border-color: #a8d9c6;
  color: #155d45;
  background: #e5f6ef;
}

.auth-privacy {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.profile-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.profile-account-card span,
.profile-account-card strong,
.profile-account-card small {
  display: block;
}

.profile-account-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-account-card strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.profile-account-card small {
  margin-top: 4px;
  color: var(--success);
  font-weight: 700;
}

.profile-account-card button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  color: var(--navy-900);
  background: #fff;
  font-weight: 740;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-900);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #f7fbff;
  background: var(--navy-950);
}

.sidebar::after {
  position: absolute;
  right: 18px;
  bottom: 128px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--navy-950);
  background: #45d5cc;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #9bb6c9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.nav-item,
.mobile-nav-item {
  border: 0;
  cursor: pointer;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 11px;
  color: #b9cbd9;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 680;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  font-size: 0.78rem;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
  color: #fff;
  background: #173f5f;
}

.nav-item.is-active span {
  border-color: #45d5cc;
  color: var(--navy-950);
  background: #45d5cc;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-access-button {
  width: 100%;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.sidebar-access-button:hover {
  border-color: rgba(69, 213, 204, 0.48);
  background: rgba(69, 213, 204, 0.09);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 6px;
  border: 2px solid #b8fff9;
  border-radius: 50%;
  background: #30c5b9;
  box-shadow: 0 0 0 4px rgba(48, 197, 185, 0.12);
}

.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note strong {
  font-size: 0.84rem;
}

.sidebar-note small {
  margin-top: 3px;
  color: #9bb6c9;
  font-size: 0.73rem;
  line-height: 1.45;
}

.main-content {
  min-height: 100vh;
  margin-left: 258px;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 12px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(16, 42, 67, 0.09);
  background: rgba(243, 247, 250, 0.92);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  display: none;
}

.topbar-copy p,
.topbar-copy strong {
  display: block;
  margin: 0;
}

.topbar-copy p {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-copy strong {
  margin-top: 1px;
  color: var(--navy-900);
  font-size: 0.96rem;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.profile-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy-900);
  background: #fff;
  text-align: left;
}

.profile-button:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.profile-avatar,
.profile-big-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), var(--navy-800));
  font-weight: 900;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.profile-button strong,
.profile-button small {
  display: block;
}

.profile-button strong {
  font-size: 0.82rem;
}

.profile-button small {
  color: var(--muted);
  font-size: 0.7rem;
}

.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 720;
}

.icon-button:hover,
.icon-button[aria-pressed="true"] {
  border-color: var(--navy-700);
  background: #fff;
}

.icon-button span:first-child {
  font-weight: 850;
}

.view {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.view[hidden] {
  display: none;
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.compact-heading {
  align-items: center;
}

.view-heading h1 {
  max-width: 820px;
  margin: 4px 0 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.view-heading > div > p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rhythm-pill {
  display: flex;
  min-width: 132px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.rhythm-pill span {
  color: var(--teal-dark);
  font-size: 1.55rem;
  font-weight: 850;
}

.rhythm-pill small {
  max-width: 58px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.18;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 20px;
}

.journey-card {
  grid-column: 1 / -1;
  padding: clamp(22px, 3vw, 32px);
  border-color: rgba(20, 125, 124, 0.24);
  background:
    radial-gradient(circle at 95% 4%, rgba(242, 155, 120, 0.16), transparent 25%),
    linear-gradient(145deg, #fff, #f7fbfb);
}

.journey-heading,
.journey-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.journey-heading > div:first-child,
.journey-action > div {
  min-width: 0;
}

.journey-heading h2 {
  margin-bottom: 8px;
}

.journey-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.journey-countdown {
  display: grid;
  min-width: 104px;
  padding: 13px 16px;
  border: 1px solid rgba(20, 125, 124, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.journey-countdown strong {
  color: var(--teal-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.journey-countdown span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.journey-progress {
  height: 9px;
  margin: 24px 0 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeceb;
}

.journey-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #52cfc4);
  transition: width 0.35s ease;
}

.journey-phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.journey-phase {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(230, 240, 239, 0.58);
}

.journey-phase strong,
.journey-phase span {
  display: block;
}

.journey-phase strong {
  color: inherit;
  font-size: 0.74rem;
}

.journey-phase span {
  margin-top: 3px;
  font-size: 0.64rem;
}

.journey-phase.is-complete {
  color: #2b6b58;
  background: #e7f4ed;
}

.journey-phase.is-current {
  border-color: rgba(20, 125, 124, 0.35);
  color: var(--navy-950);
  background: var(--teal-soft);
  box-shadow: 0 7px 18px rgba(20, 125, 124, 0.1);
}

.journey-action {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.journey-action strong,
.journey-action span {
  display: block;
}

.journey-action strong {
  color: var(--navy-950);
  font-size: 0.89rem;
}

.journey-action span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.daily-path-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border-color: rgba(20, 125, 124, 0.28);
  background:
    radial-gradient(circle at 92% 12%, rgba(69, 213, 204, 0.2), transparent 26%),
    linear-gradient(135deg, #fff, #ecf9f7);
}

.daily-path-card::after {
  position: absolute;
  top: -38px;
  right: 18%;
  width: 100px;
  height: 100px;
  border: 18px solid rgba(20, 125, 124, 0.055);
  border-radius: 50%;
  content: "";
}

.daily-path-card.is-complete {
  border-color: rgba(36, 120, 90, 0.5);
  background: linear-gradient(135deg, #fff, #e6f6ee);
}

.daily-goal-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 96px;
  height: 96px;
  place-content: center;
  border: 8px solid #cce9e5;
  border-radius: 50%;
  color: var(--navy-900);
  background: #fff;
  text-align: center;
  box-shadow: 0 9px 24px rgba(16, 42, 67, 0.11);
}

.daily-goal-orb span,
.daily-goal-orb strong,
.daily-goal-orb small {
  display: block;
  line-height: 1;
}

.daily-goal-orb span {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.8rem;
}

.daily-goal-orb strong {
  font-size: 1.18rem;
}

.daily-goal-orb small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.daily-path-copy {
  position: relative;
  z-index: 1;
}

.daily-path-copy h2 {
  margin: 4px 0 0;
  color: var(--navy-950);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.15;
}

.daily-path-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.week-path {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.week-day {
  display: grid;
  width: 34px;
  justify-items: center;
  gap: 4px;
}

.week-day i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.week-day.is-done i {
  border-color: var(--teal);
  background: var(--teal);
}

.week-day.is-today i {
  outline: 3px solid rgba(20, 125, 124, 0.15);
}

.week-day small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.daily-start-button {
  position: relative;
  z-index: 1;
  min-height: 50px;
  padding: 10px 17px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(20, 125, 124, 0.2);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.daily-start-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.planner-card {
  padding: clamp(22px, 3vw, 34px);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading > div {
  min-width: 0;
}

.card h2,
.method-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.step-number {
  display: inline-grid;
  width: 31px;
  height: 25px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 7px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.69rem;
  font-weight: 850;
}

.step-number.inverted {
  color: var(--navy-950);
  background: #68e0d7;
}

.quiet-badge,
.count-badge,
.test-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 780;
  white-space: nowrap;
}

.quiet-badge {
  color: var(--muted);
  background: var(--canvas);
}

.choice-group,
.setting-fieldset {
  min-width: 0;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.choice-group legend,
.setting-fieldset legend,
.select-label > span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.segment {
  min-height: 39px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 730;
}

.segment:hover {
  color: var(--navy-900);
}

.segment.is-selected {
  color: var(--navy-950);
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.08);
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-help {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.45;
}

.time-chip {
  display: flex;
  min-height: 66px;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  color: var(--navy-800);
  background: #fff;
}

.time-chip strong {
  font-size: 1.3rem;
}

.time-chip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.time-chip:hover,
.time-chip.is-selected {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.energy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.energy-chip {
  min-height: 39px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 720;
}

.energy-chip:hover,
.energy-chip.is-selected {
  border-color: var(--navy-700);
  color: #fff;
  background: var(--navy-800);
}

.primary-button,
.secondary-button,
.light-button,
.light-accent-button,
.text-button {
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 780;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid var(--navy-900);
  color: #fff;
  background: var(--navy-900);
}

.primary-button:hover {
  background: var(--navy-800);
}

.secondary-button {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  color: var(--navy-900);
  background: #fff;
}

.secondary-button:hover {
  border-color: var(--navy-700);
}

.full-button {
  width: 100%;
}

.planner-card > .primary-button {
  margin-top: 29px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  color: #e7f3fa;
  border-color: var(--navy-900);
  background: var(--navy-900);
  box-shadow: 0 18px 42px rgba(10, 31, 51, 0.22);
}

.focus-card::after {
  position: absolute;
  top: -74px;
  right: -60px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(104, 224, 215, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(104, 224, 215, 0.035),
    0 0 0 68px rgba(104, 224, 215, 0.025);
  content: "";
  pointer-events: none;
}

.focus-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9fc5d8;
  font-size: 0.78rem;
  font-weight: 760;
}

.focus-kicker {
  position: relative;
  z-index: 1;
  margin: 25px 0 5px;
  color: #68e0d7;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-card h2 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.focus-card > p:not(.focus-kicker) {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 13px 0 0;
  color: #c2d6e3;
  font-size: 0.93rem;
}

.focus-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.focus-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  color: #deebf2;
  font-size: 0.86rem;
}

.focus-steps li span {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  color: #8ceee6;
  background: rgba(69, 213, 204, 0.1);
  font-size: 0.69rem;
  font-weight: 800;
  text-align: center;
}

.light-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  border: 1px solid #fff;
  color: var(--navy-950);
  background: #fff;
}

.light-button:hover {
  background: #e9ffff;
}

.focus-card > small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #96afbf;
  font-size: 0.7rem;
  text-align: center;
}

.next-card {
  padding: 24px;
}

.count-badge {
  justify-content: center;
  min-width: 30px;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.review-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.review-item,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.review-item:first-child,
.empty-state:first-child {
  border-top: 0;
}

.review-item strong,
.review-item span {
  display: block;
}

.review-item strong {
  font-size: 0.87rem;
}

.review-item span,
.empty-state {
  color: var(--muted);
  font-size: 0.77rem;
}

.review-item button {
  border: 0;
  cursor: pointer;
  color: var(--teal-dark);
  background: transparent;
  font-size: 0.77rem;
  font-weight: 800;
  white-space: nowrap;
}

.overview-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 8px;
}

.metric {
  padding: 4px 18px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--navy-900);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.source-link {
  flex: 0 0 auto;
  font-size: 0.83rem;
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  z-index: 10;
  top: 88px;
  display: grid;
  grid-template-columns: 300px 155px auto 90px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  box-shadow: 0 9px 25px rgba(16, 42, 67, 0.07);
}

.test-subject-filter {
  grid-template-columns: repeat(3, 1fr);
}

.select-label {
  display: grid;
}

.select-label > span {
  margin: 0 0 5px;
}

.select-label select {
  min-height: 41px;
  padding: 6px 32px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.check-label {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.check-label input {
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}

.archive-count {
  display: flex;
  min-height: 41px;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
}

.archive-count strong {
  color: var(--navy-900);
  font-size: 1.3rem;
}

.archive-count span {
  font-size: 0.72rem;
}

.test-list {
  display: grid;
  gap: 10px;
}

.test-card {
  display: grid;
  grid-template-columns: minmax(205px, 0.72fr) minmax(270px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.test-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 25px rgba(16, 42, 67, 0.06);
}

.test-card.is-locked {
  border-style: dashed;
  background: linear-gradient(110deg, #fff, #f6f8fa);
}

.test-card.is-locked .test-resources {
  opacity: 0.58;
}

.test-card.is-locked .open-study-button {
  color: #fff;
  background: var(--navy-800);
}

.trial-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 17px 20px;
  border-color: rgba(169, 104, 0, 0.25);
  background: linear-gradient(110deg, #fff, var(--amber-soft));
  box-shadow: none;
}

.trial-banner strong,
.trial-banner small,
.trial-kicker {
  display: block;
}

.trial-kicker {
  margin-bottom: 2px;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trial-banner strong {
  color: var(--navy-950);
  font-size: 0.95rem;
}

.trial-banner small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.trial-banner > button {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  color: var(--navy-900);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.trial-dots {
  display: flex;
  gap: 6px;
}

.trial-dots > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.trial-dots > span.is-used {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.trial-dots > span.is-owner {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.test-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.subject-badge {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--navy-800);
  font-size: 0.8rem;
  font-weight: 850;
}

.subject-badge.aj {
  background: var(--coral);
}

.test-identity strong,
.test-identity small {
  display: block;
}

.test-identity strong {
  color: var(--navy-950);
  font-size: 1rem;
}

.test-identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.test-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resource-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-800);
  background: var(--canvas);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}

.resource-link:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.test-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.small-action {
  min-height: 38px;
  padding: 6px 11px;
  border: 1px solid var(--navy-900);
  border-radius: 9px;
  cursor: pointer;
  color: #fff;
  background: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 780;
  white-space: nowrap;
}

.small-action.secondary {
  border-color: var(--line);
  color: var(--navy-800);
  background: #fff;
}

.test-status {
  color: var(--success);
  background: #e5f5ed;
}

.score-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.archive-note {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-summary::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.resource-summary strong {
  color: var(--navy-800);
}

.open-study-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.open-study-button span {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.open-study-button:hover span {
  transform: translateX(3px);
}

.study-view {
  width: min(1440px, calc(100% - 40px));
  padding-top: 25px;
}

.study-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 18px;
}

.back-button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 0;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 760;
}

.back-button:hover {
  color: var(--teal-dark);
}

.study-title-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.study-title-wrap h1 {
  margin: 2px 0 0;
  color: var(--navy-950);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.study-score-button {
  white-space: nowrap;
}

.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}

.document-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.document-toolbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.document-tabs {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.document-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.answer-sheet-jump {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #addbd7;
  border-radius: 9px;
  cursor: pointer;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.answer-sheet-jump:hover {
  border-color: var(--teal);
  background: #ccece9;
}

.audio-jump {
  border-color: #efc4ba;
  color: #8c3e33;
  background: var(--coral-soft);
}

.audio-jump:hover {
  border-color: var(--coral);
  color: #713128;
  background: #ffe5df;
}

.document-tab {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 780;
  white-space: nowrap;
}

.document-tab:hover {
  color: var(--navy-900);
  background: var(--canvas);
}

.document-tab.is-selected {
  border-color: #b6e5e1;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.document-tab.is-answer:not(.is-selected) {
  color: var(--amber);
}

.open-document-link {
  flex: 0 0 auto;
  color: var(--navy-700);
  font-size: 0.76rem;
  font-weight: 760;
  text-decoration: none;
}

.document-frame-wrap {
  position: relative;
  height: calc(100vh - 220px);
  min-height: 650px;
  max-height: 980px;
  background: #e9eef2;
}

.document-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.document-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: var(--navy-800);
  background: var(--canvas);
  text-align: center;
}

.document-loading[hidden] {
  display: none;
}

.loading-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--navy-900);
  font-size: 1.15rem;
  font-weight: 850;
  animation: gentle-pulse 1.5s ease-in-out infinite;
}

@keyframes gentle-pulse {
  50% {
    transform: scale(1.04);
    opacity: 0.82;
  }
}

.document-source-note {
  margin: 0;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
}

.study-coach {
  display: grid;
  gap: 12px;
}

.coach-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.055);
}

.answer-sheet-card {
  overflow: hidden;
  border-color: #addbd7;
  border-top: 4px solid var(--teal);
  background: linear-gradient(180deg, #f7fffe 0, #fff 120px);
}

.answer-sheet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.answer-sheet-stats span {
  display: grid;
  min-width: 0;
  padding: 9px 5px;
  color: var(--muted);
  background: #fff;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
}

.answer-sheet-stats strong {
  overflow: hidden;
  color: var(--navy-950);
  font-size: 1rem;
  text-overflow: ellipsis;
}

.answer-task-nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: end;
  margin-top: 14px;
}

.answer-task-nav > button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  color: var(--navy-800);
  background: #fff;
  font-size: 1rem;
  font-weight: 820;
}

.answer-task-nav > button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.answer-task-nav label,
.answer-text-label,
.answer-points-label {
  display: grid;
  gap: 5px;
}

.answer-task-nav label > span,
.answer-text-label > span,
.answer-points-label > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 730;
}

.answer-task-nav input,
.answer-text-label input,
.answer-points-label input {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--navy-950);
  background: #fff;
  font-size: 0.9rem;
}

.answer-task-nav input {
  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}

.answer-task-nav input:focus,
.answer-text-label input:focus,
.answer-points-label input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.answer-number-help {
  margin: 6px 0 0 49px;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.4;
}

.answer-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.answer-group-heading > div {
  display: grid;
  gap: 3px;
}

.answer-group-heading strong {
  color: var(--navy-950);
  font-size: 0.86rem;
}

.answer-group-heading small {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.4;
}

.answer-group-heading > button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.answer-response-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.answer-response-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.answer-response-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.answer-response-label {
  display: inline-grid;
  min-width: 43px;
  min-height: 28px;
  place-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--navy-950);
  background: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.answer-response-remove {
  border: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 730;
}

.answer-response-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 5px;
}

.answer-response-choices button {
  min-width: 0;
  min-height: 38px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--navy-800);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.answer-response-choices button:hover,
.answer-response-choices button.is-selected {
  border-color: var(--teal-dark);
  color: #fff;
  background: var(--teal-dark);
}

.answer-response-text {
  display: grid;
  gap: 5px;
}

.answer-response-text span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 730;
}

.answer-response-text input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--navy-950);
  background: #fff;
  font-size: 0.86rem;
}

.answer-response-text input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.answer-choice-field {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.answer-choice-field legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 730;
}

.answer-choice-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
}

.answer-choice-grid button {
  min-width: 0;
  min-height: 38px;
  padding: 4px 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--navy-800);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.answer-choice-grid button:hover,
.answer-choice-grid button.is-selected {
  border-color: var(--teal-dark);
  color: #fff;
  background: var(--teal-dark);
}

.answer-text-label {
  margin-top: 13px;
}

.answer-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.answer-flag-toggle {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy-800);
  background: var(--amber-soft);
  font-size: 0.78rem;
  font-weight: 730;
}

.answer-flag-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--amber);
}

.answer-points-label input {
  text-align: center;
}

.answer-sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 12px;
}

.answer-next-button,
.answer-clear-button,
.open-key-button {
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 790;
}

.answer-next-button {
  border: 1px solid var(--teal-dark);
  color: #fff;
  background: var(--teal-dark);
}

.answer-next-button:hover {
  background: var(--navy-800);
}

.answer-clear-button {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.answer-clear-button:hover {
  color: var(--danger);
  background: #fff0f0;
}

.answer-overview-wrap {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.answer-overview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.answer-overview-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.82rem;
}

.answer-overview-heading small {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.answer-overview {
  display: flex;
  max-height: 150px;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.answer-overview-empty {
  width: 100%;
  margin: 0;
  padding: 12px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.answer-overview-item {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 6px;
  min-width: 61px;
  min-height: 45px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  color: var(--navy-900);
  background: #fff;
  text-align: left;
}

.answer-overview-item strong {
  font-size: 0.75rem;
}

.answer-overview-item span {
  max-width: 66px;
  overflow: hidden;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-overview-item small {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.answer-overview-item:hover,
.answer-overview-item.is-current {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.answer-overview-item.is-flagged {
  border-color: #e0ae51;
  box-shadow: inset 0 0 0 1px var(--amber-soft);
}

.open-key-button {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #e0ae51;
  color: #744900;
  background: var(--amber-soft);
}

.open-key-button:hover {
  border-color: var(--amber);
  background: #ffe8b5;
}

.coach-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coach-heading h2 {
  margin: 3px 0 0;
  color: var(--navy-950);
  font-size: 1.08rem;
  line-height: 1.2;
}

.study-duration-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 15px;
  padding: 4px;
  border-radius: 11px;
  background: var(--canvas);
}

.study-duration-choice button {
  min-height: 39px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 790;
}

.study-duration-choice button.is-selected {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.09);
}

.timing-note {
  margin: 10px 2px 0;
  padding: 9px 10px;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  background: var(--amber-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.timing-note strong {
  color: var(--navy-900);
}

.custom-time-details {
  margin-top: 8px;
}

.custom-time-details summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.custom-time-details > div {
  display: grid;
  grid-template-columns: 1fr 76px auto;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  padding: 9px;
  border-radius: 9px;
  background: var(--canvas);
}

.custom-time-details label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.custom-time-details input {
  width: 76px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy-900);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 760;
}

.custom-time-details button {
  min-height: 36px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  background: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 780;
}

.study-timer-row {
  display: grid;
  grid-template-columns: 1fr auto 38px;
  gap: 8px;
  align-items: center;
  margin-top: 13px;
}

.study-timer-row > div strong,
.study-timer-row > div span {
  display: block;
}

.study-timer-row > div strong {
  color: var(--navy-950);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.study-timer-row > div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.timer-play-button,
.timer-reset-icon {
  min-height: 39px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 780;
}

.timer-play-button {
  padding: 7px 11px;
  color: #fff;
  background: var(--navy-900);
  font-size: 0.78rem;
}

.timer-reset-icon {
  width: 38px;
  color: var(--navy-800);
  background: var(--canvas-2);
  font-size: 1rem;
}

.study-flow {
  display: grid;
  gap: 0;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.study-flow li {
  display: grid;
  grid-template-columns: 53px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.study-flow li:first-child {
  border-top: 1px solid var(--line);
}

.study-flow span {
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 820;
}

.study-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.privacy-chip {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--success);
  background: #e5f5ed;
  font-size: 0.75rem;
  font-weight: 800;
}

.audio-card {
  order: -1;
  scroll-margin-top: 16px;
  border-color: #f0c8be;
  background: linear-gradient(150deg, #fff 50%, #fff8f6 100%);
}

.listening-practice-card {
  border-color: rgba(20, 125, 124, 0.22);
  background: linear-gradient(150deg, #fff 55%, var(--teal-soft) 100%);
}

.audio-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.audio-practice-button {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  padding: 9px 12px;
  border: 1px solid var(--teal-dark);
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 820;
}

.audio-practice-button:hover {
  background: var(--navy-800);
}

.official-audio-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.official-audio-details > summary {
  padding: 11px 12px;
  cursor: pointer;
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 790;
}

.official-audio-details > div {
  padding: 0 11px 11px;
  border-top: 1px solid var(--line);
}

.official-audio-details > div > p {
  margin: 10px 1px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.audio-download-button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  padding: 8px 11px;
  border-radius: 10px;
  color: #fff;
  background: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.audio-download-button:hover {
  color: #fff;
  background: #963c2f;
}

.audio-dropzone {
  display: grid;
  min-height: 132px;
  margin-top: 9px;
  place-content: center;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.audio-dropzone:hover,
.audio-dropzone.is-dragging {
  border-color: var(--coral);
  background: var(--coral-soft);
  transform: translateY(-1px);
}

.audio-dropzone.is-loading {
  cursor: wait;
  opacity: 0.65;
}

.audio-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.audio-drop-icon {
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 1.45rem;
}

.audio-dropzone strong,
.audio-dropzone small {
  display: block;
}

.audio-dropzone strong {
  font-size: 0.8rem;
}

.audio-dropzone small {
  max-width: 245px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.audio-error {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--danger);
  background: #fff0f0;
  font-size: 0.75rem;
}

.audio-cache-status {
  margin: 9px 2px 0;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.45;
}

.audio-player-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.study-audio-dock {
  position: sticky;
  z-index: 4;
  top: 8px;
  padding: 12px 14px;
  background: rgba(255, 250, 248, 0.97);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.1);
  backdrop-filter: blur(10px);
}

.study-audio-dock[hidden] {
  display: none;
}

.audio-dock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-local-badge {
  flex: 0 0 auto;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 760;
}

.audio-local-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.audio-local-actions button {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  font-size: 0.67rem;
  font-weight: 730;
}

.audio-local-actions button:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.audio-now-playing span,
.audio-now-playing strong {
  display: block;
}

.audio-now-playing span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.audio-now-playing strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--navy-900);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-player-panel audio {
  width: 100%;
  height: 42px;
  margin-top: 8px;
}

.audio-playlist {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.audio-track {
  display: inline-grid;
  grid-template-columns: 24px auto;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 35px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-access-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.owner-access-details > summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.owner-access-details .owner-access-section {
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
}

.audio-track span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--coral-soft);
}

.audio-track.is-selected {
  border-color: var(--coral);
  color: var(--navy-900);
  background: var(--coral-soft);
}

.study-tips {
  display: grid;
  gap: 0;
  margin-top: 9px;
}

.study-tip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.study-tip:first-child {
  border-top: 0;
}

.study-tip > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.75rem;
  font-weight: 820;
}

.study-tip small,
.study-tip strong {
  display: block;
}

.study-tip small {
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.study-tip strong {
  margin-top: 1px;
  color: var(--navy-900);
  font-size: 0.77rem;
  line-height: 1.3;
}

.study-tip p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.notes-card label strong,
.notes-card label small {
  display: block;
}

.notes-card label strong {
  color: var(--navy-900);
  font-size: 0.83rem;
}

.notes-card label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.notes-card textarea {
  width: 100%;
  min-height: 82px;
  margin-top: 10px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: var(--canvas);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.5;
}

.notes-card textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.save-indicator {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.75rem;
  text-align: right;
}

.practice-layout {
  max-width: 980px;
}

.practice-launcher {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 42px);
}

.practice-launcher::after {
  position: absolute;
  right: -78px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 42px solid var(--teal-soft);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.practice-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 850;
}

.practice-orbit strong,
.practice-orbit small {
  display: block;
  line-height: 1;
  text-align: center;
}

.practice-orbit strong {
  align-self: end;
  font-size: 1.25rem;
}

.practice-orbit small {
  align-self: start;
  margin-top: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.practice-launcher h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.practice-launcher > p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.practice-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 29px;
}

.practice-section-heading.compact {
  margin-top: 24px;
}

.practice-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 850;
}

.practice-section-heading strong,
.practice-section-heading small {
  display: block;
}

.practice-section-heading strong {
  color: var(--navy-950);
  font-size: 0.86rem;
}

.practice-section-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.practice-subjects {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 230px));
  gap: 12px;
  margin: 13px 0 0;
}

.subject-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 0 11px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  text-align: left;
}

.subject-card > span {
  display: grid;
  width: 45px;
  height: 45px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 850;
}

.subject-card.aj > span {
  background: var(--coral);
}

.subject-card.mix > span {
  color: var(--navy-950);
  background: var(--amber-soft);
}

.subject-card strong {
  align-self: end;
  color: var(--navy-950);
  font-size: 0.9rem;
}

.subject-card small {
  align-self: start;
  color: var(--muted);
  font-size: 0.7rem;
}

.subject-card:hover,
.subject-card.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.subject-card.aj:hover,
.subject-card.aj.is-selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.subject-card.mix:hover,
.subject-card.mix.is-selected {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.practice-mode-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.practice-mode-card {
  display: grid;
  min-height: 136px;
  align-content: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy-900);
  background: #fff;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.practice-mode-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.practice-mode-card.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(21, 145, 138, 0.18);
}

.practice-mode-card .mode-icon {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-800);
  font-size: 0.88rem;
  font-style: normal;
}

.practice-mode-card:nth-child(2) .mode-icon {
  color: var(--navy-950);
  background: var(--amber);
}

.practice-mode-card:nth-child(3) .mode-icon {
  background: var(--teal-dark);
}

.practice-mode-card:nth-child(4) .mode-icon {
  background: #426b8a;
}

.practice-mode-card:nth-child(5) .mode-icon {
  background: var(--coral);
}

.practice-mode-card strong,
.practice-mode-card small,
.practice-mode-card em {
  display: block;
}

.practice-mode-card strong {
  font-size: 0.8rem;
}

.practice-mode-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.practice-mode-card em {
  align-self: end;
  margin-top: 9px;
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.practice-difficulty {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin-top: 12px;
}

.practice-preview {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 22px 0 12px;
  padding: 12px 14px;
  border: 1px solid #b9ded9;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-soft), #fff);
}

.practice-preview > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--teal-dark);
}

.practice-preview strong,
.practice-preview small {
  display: block;
}

.practice-preview strong {
  color: var(--navy-900);
  font-size: 0.82rem;
}

.practice-preview small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.practice-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.listening-only-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #efb7aa;
  color: #9f4434;
  background: var(--coral-soft);
}

.quiz-card {
  padding: clamp(25px, 4vw, 42px);
}

.quiz-progress-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 15px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.mini-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--canvas-2);
}

.mini-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 220ms ease;
}

.text-button {
  min-height: 34px;
  padding: 4px 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
}

.text-button:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.topic-label {
  display: inline-flex;
  margin-top: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.7rem;
  font-weight: 820;
}

.quiz-card h2 {
  max-width: 720px;
  margin-top: 13px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.quiz-passage {
  max-width: 760px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--navy-700);
  border-radius: 0 12px 12px 0;
  color: var(--navy-900);
  background: var(--canvas);
  font-size: 0.93rem;
  line-height: 1.7;
}

.quiz-passage[hidden],
.quiz-instruction[hidden] {
  display: none;
}

.quiz-instruction {
  margin: 18px 0 -12px;
  color: var(--navy-800);
  font-size: 0.84rem;
  font-weight: 800;
}

.question-audio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #efb7aa;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--coral-soft), #fff 72%);
}

.question-audio[hidden] {
  display: none;
}

.question-audio > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.question-audio-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--coral);
  font-size: 1.1rem;
}

.question-audio p,
.question-audio strong,
.question-audio small {
  display: block;
  margin: 0;
}

.question-audio strong {
  color: var(--navy-900);
  font-size: 0.82rem;
}

.question-audio small,
#question-audio-status {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.question-audio > button {
  min-height: 41px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #fff;
  background: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
}

.question-audio > #question-audio-status {
  grid-column: 1 / -1;
  margin: -5px 0 0 48px;
}

.quiz-help-row {
  margin-top: 15px;
}

.hint-button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  color: var(--navy-800);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 760;
}

.hint-button:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.hint-button:disabled {
  cursor: default;
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.quiz-hint {
  max-width: 690px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy-800);
  background: var(--amber-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  gap: 9px;
  margin: 25px 0;
}

.quiz-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 54px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
  text-align: left;
}

.quiz-option > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 0.75rem;
  font-weight: 850;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.quiz-option.is-selected:not(:disabled) {
  border-color: var(--navy-700);
  background: #eef4f8;
  box-shadow: inset 0 0 0 1px var(--navy-700);
}

.quiz-option.is-selected:not(:disabled) > span:first-child {
  color: #fff;
  background: var(--navy-800);
}

.quiz-option.is-correct {
  border-color: var(--success);
  background: #e7f6ef;
}

.quiz-option.is-wrong {
  border-color: var(--danger);
  background: #fdecec;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-multi-submit {
  min-height: 45px;
  margin-top: 4px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  background: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.quiz-multi-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.quiz-text-answer {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.quiz-text-answer label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.quiz-text-answer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.quiz-text-answer input {
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--navy-950);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.quiz-text-answer input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.quiz-text-answer input.is-correct {
  border-color: var(--success);
  background: #e7f6ef;
}

.quiz-text-answer input.is-wrong {
  border-color: var(--danger);
  background: #fdecec;
}

.quiz-text-answer small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 0.68rem;
}

.correct-text-answer {
  margin: 9px 0 0;
  color: var(--navy-900);
  font-size: 0.83rem;
}

.quiz-feedback {
  margin: 0 0 18px;
  padding: 15px;
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  background: var(--canvas);
}

.quiz-feedback > strong,
.quiz-feedback > span {
  display: block;
}

.quiz-feedback > span,
.feedback-explanation {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.feedback-explanation {
  margin-bottom: 0;
}

.memory-hook {
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #b9ded9;
  border-radius: 10px;
  background: var(--teal-soft);
}

.memory-hook span {
  color: var(--teal-dark);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memory-hook p {
  margin: 3px 0 0;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 700;
}

.listening-transcript {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.76rem;
}

.listening-transcript summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  font-weight: 720;
}

.listening-transcript p {
  margin: 7px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--navy-800);
  background: #fff;
  line-height: 1.5;
}

.quiz-result {
  padding: 20px 0 4px;
  text-align: center;
}

.quiz-result-number {
  display: grid;
  width: 114px;
  height: 114px;
  margin: 0 auto 20px;
  place-items: center;
  border: 11px solid var(--teal-soft);
  border-radius: 50%;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 880;
}

.quiz-result p {
  max-width: 540px;
  margin: 10px auto 22px;
  color: var(--muted);
}

.progress-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.progress-summary,
.subject-progress,
.weak-topics,
.mistake-notebook,
.history-card {
  padding: 25px;
}

.big-stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 12px 0 25px;
}

.big-stat strong {
  color: var(--navy-950);
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.big-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.activity-chart {
  display: grid;
  height: 130px;
  grid-template-columns: repeat(14, 1fr);
  gap: 7px;
  align-items: end;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
}

.activity-day {
  position: relative;
  display: flex;
  height: 100%;
  align-items: flex-end;
}

.activity-day span {
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.activity-day small {
  position: absolute;
  right: 50%;
  bottom: -22px;
  color: var(--muted-2);
  font-size: 0.61rem;
  transform: translateX(50%);
}

.subject-progress h2,
.history-card h2 {
  margin-bottom: 24px;
}

.subject-meter + .subject-meter {
  margin-top: 24px;
}

.subject-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  font-size: 0.83rem;
}

.subject-meter span {
  color: var(--muted);
}

.progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--canvas-2);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.progress-track.coral > span {
  background: var(--coral);
}

.weak-topic-list,
#weak-topic-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.weak-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.weak-topic-item:first-child {
  border-top: 0;
}

.weak-topic-item strong {
  font-size: 0.85rem;
}

.weak-topic-item span {
  color: var(--muted);
  font-size: 0.73rem;
}

.mistake-intro {
  margin: 13px 0 17px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.mistake-notebook-list {
  display: grid;
  gap: 8px;
}

.mistake-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdfd;
}

.mistake-item strong,
.mistake-item span {
  display: block;
}

.mistake-item strong {
  font-size: 0.82rem;
}

.mistake-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.mistake-item button {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid rgba(20, 125, 124, 0.28);
  border-radius: 9px;
  cursor: pointer;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.mistake-item button:hover {
  border-color: var(--teal);
  background: #d9f2ef;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.history-item:first-child {
  border-top: 0;
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.history-item strong,
.history-item small {
  display: block;
}

.history-item strong {
  font-size: 0.82rem;
}

.history-item small,
.history-item > time {
  color: var(--muted);
  font-size: 0.69rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.method-card {
  min-height: 280px;
  padding: clamp(23px, 3vw, 34px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.method-index {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
}

.method-card h2 {
  margin-top: 24px;
  font-size: 1.3rem;
}

.method-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.method-card a {
  font-size: 0.78rem;
  font-weight: 800;
}

.evidence-note {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 27px;
  border-color: #e4c985;
  background: var(--amber-soft);
  box-shadow: none;
}

.evidence-note p:not(.eyebrow) {
  margin: 0;
  color: #5f5037;
  font-size: 0.87rem;
}

.evidence-note > a {
  font-size: 0.77rem;
  font-weight: 820;
  white-space: nowrap;
}

.sources-section {
  max-width: 900px;
  margin-top: 50px;
}

.sources-section h2 {
  color: var(--navy-950);
  font-size: 1.4rem;
}

.sources-section ol {
  padding-left: 22px;
}

.sources-section li,
.sources-section > p {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.79rem;
}

.mobile-nav {
  display: none;
}

.modal {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 90px rgba(10, 31, 51, 0.34);
}

.modal::backdrop {
  background: rgba(10, 31, 51, 0.65);
  backdrop-filter: blur(3px);
}

.modal-shell {
  padding: clamp(22px, 4vw, 34px);
}

.password-reset-shell {
  display: grid;
  gap: 15px;
}

.password-reset-shell .modal-heading {
  margin-bottom: 0;
}

.password-reset-intro {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.password-reset-shell label {
  display: grid;
  gap: 7px;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 760;
}

.password-reset-shell input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
}

.password-reset-shell input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 125, 124, 0.11);
}

.password-reset-shell .form-error {
  margin: -3px 0 0;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-heading h2 {
  margin: 4px 0 0;
  color: var(--navy-950);
  font-size: 1.7rem;
  line-height: 1.15;
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy-800);
  background: var(--canvas);
  font-size: 1.6rem;
  line-height: 1;
}

.range-setting {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.range-setting > span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.range-setting output {
  color: var(--muted);
  font-size: 0.78rem;
}

.range-setting input {
  width: 100%;
  accent-color: var(--teal);
}

.setting-fieldset {
  margin: 20px 0;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 0.88rem;
}

.switch-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.switch-row input {
  width: 45px;
  height: 24px;
  accent-color: var(--teal);
}

.read-aloud-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 24px;
  padding: 14px;
  border-radius: 11px;
  background: var(--teal-soft);
}

.read-aloud-box strong,
.read-aloud-box small {
  display: block;
}

.read-aloud-box strong {
  font-size: 0.86rem;
}

.read-aloud-box small {
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-modal {
  width: min(680px, calc(100% - 28px));
}

.profile-shell {
  display: grid;
  gap: 16px;
}

.profile-shell .modal-heading {
  margin-bottom: 2px;
}

.profile-access-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.profile-big-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.profile-access-summary strong,
.profile-access-summary span {
  display: block;
}

.profile-access-summary > div > strong {
  color: var(--navy-950);
  font-size: 1rem;
}

.profile-access-summary > div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-access-badge {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 0.75rem;
  font-weight: 850;
}

.profile-trial-section,
.owner-access-section,
.subscription-preview-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.profile-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.profile-section-heading h3,
.owner-access-heading h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 0.96rem;
}

.profile-section-heading p,
.owner-access-heading p,
#owner-signin-state p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.profile-section-heading > strong {
  align-self: start;
  color: var(--teal-dark);
  font-size: 0.82rem;
  white-space: nowrap;
}

.profile-trial-dots {
  margin-top: 13px;
}

.profile-free-note {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--navy-800);
  background: var(--teal-soft);
  font-size: 0.76rem;
}

.owner-access-section {
  border-color: rgba(16, 42, 67, 0.22);
  background: linear-gradient(135deg, #fff, #f0f5f8);
}

.owner-access-heading {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.owner-access-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-900);
  font-weight: 900;
}

#owner-signin-state,
#owner-pin-form,
.owner-unlocked-state {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.owner-signin-button,
#owner-pin-form button,
.owner-unlocked-state button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #fff;
  background: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 820;
  text-decoration: none;
}

#owner-pin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

#owner-pin-form[hidden],
.owner-unlocked-state[hidden],
#owner-signin-state[hidden] {
  display: none;
}

#owner-pin-form label {
  grid-column: 1 / -1;
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 800;
}

#owner-pin-input {
  width: 100%;
  min-height: 48px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--navy-950);
  background: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-align: center;
}

#owner-pin-form button {
  min-height: 48px;
  margin: 0;
}

#owner-pin-form .form-error {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.owner-unlocked-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.owner-unlocked-state > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.owner-unlocked-state > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-weight: 900;
}

.owner-unlocked-state strong,
.owner-unlocked-state small {
  display: block;
}

.owner-unlocked-state strong {
  color: var(--navy-950);
  font-size: 0.86rem;
}

.owner-unlocked-state small {
  color: var(--muted);
  font-size: 0.72rem;
}

.owner-unlocked-state button {
  margin: 0;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line);
}

.subscription-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  border-color: rgba(169, 104, 0, 0.28);
  background: var(--amber-soft);
}

.subscription-preview-card > span,
.subscription-preview-card > p {
  grid-column: 1;
}

.subscription-preview-card > span {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-preview-card > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--navy-950);
  font-size: 1.35rem;
}

.subscription-preview-card > strong small {
  color: var(--muted);
  font-size: 0.7rem;
}

.subscription-preview-card > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.subscription-preview-card > button {
  grid-column: 1 / -1;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid rgba(169, 104, 0, 0.32);
  border-radius: 9px;
  cursor: pointer;
  color: #77500e;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 820;
}

.paywall-modal {
  width: min(560px, calc(100% - 28px));
}

.paywall-shell {
  position: relative;
  text-align: center;
}

.paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.paywall-lock {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 2px auto 18px;
  place-items: center;
  border: 7px solid #ffe3a7;
  border-radius: 50%;
  color: #fff;
  background: var(--amber);
  font-size: 1.08rem;
  font-weight: 900;
}

.paywall-shell h2 {
  max-width: 430px;
  margin: 5px auto 10px;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.12;
}

.paywall-shell > p:not(.eyebrow) {
  max-width: 455px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.paywall-price {
  display: grid;
  justify-items: center;
  margin: 20px 0 16px;
  padding: 15px;
  border-radius: 13px;
  background: var(--amber-soft);
}

.paywall-price strong {
  color: var(--navy-950);
  font-size: 2rem;
  line-height: 1;
}

.paywall-price span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.paywall-benefits {
  display: grid;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.paywall-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--navy-800);
  font-size: 0.82rem;
}

.paywall-benefits span {
  color: var(--success);
  font-weight: 900;
}

.paywall-keep-practicing {
  display: block;
  margin: 11px auto 0;
}

.paywall-pilot-note {
  display: block;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.session-shell {
  padding: clamp(22px, 4vw, 34px);
}

.timer-wrap {
  display: grid;
  justify-items: center;
}

.timer-ring {
  --timer-progress: 0deg;
  position: relative;
  display: grid;
  width: 194px;
  height: 194px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--timer-progress), var(--canvas-2) 0);
}

.timer-ring::before {
  position: absolute;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.timer-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timer-ring strong,
.timer-ring span {
  display: block;
}

.timer-ring strong {
  color: var(--navy-950);
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.timer-ring span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.timer-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.session-task {
  margin-top: 29px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}

.session-task > span {
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-task h3 {
  margin: 7px 0 5px;
  color: var(--navy-950);
  font-size: 1.18rem;
}

.session-task p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.session-task a {
  display: inline-block;
  margin-top: 13px;
  font-size: 0.78rem;
  font-weight: 820;
}

.light-accent-button {
  width: 100%;
  margin-top: 17px;
  padding: 8px 14px;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.finish-session-button {
  display: block;
  margin: 13px auto 0;
}

.score-input-label {
  display: grid;
  gap: 7px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.score-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.score-input-wrap input {
  width: 125px;
  min-height: 52px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--navy-950);
  font-size: 1.25rem;
  font-weight: 800;
}

.score-input-wrap strong {
  color: var(--muted);
}

.form-error {
  margin: -8px 0 16px;
  color: var(--danger);
  font-size: 0.78rem;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 340px;
  padding: 12px 15px;
  border: 1px solid #4d6d83;
  border-radius: 10px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 12px 30px rgba(10, 31, 51, 0.23);
  font-size: 0.8rem;
  font-weight: 680;
  animation: toast-in 180ms ease-out;
}

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

body.calm-mode {
  background: var(--canvas);
}

body.calm-mode .focus-card::after,
body.calm-mode .practice-launcher::after,
body.calm-mode .sidebar::after {
  display: none;
}

body.high-contrast {
  --ink: #05090c;
  --muted: #34414c;
  --line: #95a4b2;
  --line-strong: #687986;
  --canvas: #fff;
  --canvas-2: #e8edf1;
  --shadow: none;
}

body.high-contrast .card,
body.high-contrast .test-card,
body.high-contrast .coach-card,
body.high-contrast .document-workspace {
  border-width: 2px;
}

body.font-clear {
  --font-main: Verdana, Geneva, Tahoma, sans-serif;
}

body.spacing-wide {
  --letter-space: 0.035em;
}

body.line-airy {
  --body-line: 1.82;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (max-width: 1050px) {
  .auth-layout {
    grid-template-columns: 1fr 390px;
  }

  .auth-intro {
    padding: 40px 34px;
  }

  .sidebar {
    width: 222px;
    padding-inline: 15px;
  }

  .main-content {
    margin-left: 222px;
  }

  .button-label {
    display: none;
  }

  .profile-button > span:last-child {
    display: none;
  }

  .profile-button {
    width: 46px;
    justify-content: center;
    padding: 5px;
  }

  .daily-path-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .daily-start-button {
    grid-column: 2;
    justify-self: start;
  }

  .trial-banner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .trial-banner > button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .icon-button {
    width: 43px;
    justify-content: center;
    padding-inline: 0;
  }

  .dashboard-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    grid-column: 1;
  }

  .test-card {
    grid-template-columns: 190px 1fr;
  }

  .test-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .score-note {
    text-align: left;
  }

  .filter-bar {
    grid-template-columns: 1fr 140px;
  }

  .check-label,
  .archive-count {
    align-self: center;
  }

  .evidence-note {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-note > a {
    grid-column: 2;
  }

  .study-layout {
    grid-template-columns: 1fr;
  }

  .study-coach {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answer-sheet-card,
  .audio-card,
  .listening-practice-card,
  .notes-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-gate {
    display: block;
    padding: 0;
    background: #fff;
  }

  .auth-card {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-brand {
    padding: 18px 20px;
  }

  .auth-layout {
    display: block;
  }

  .auth-intro {
    padding: 30px 22px 26px;
  }

  .auth-intro h1 {
    max-width: 15ch;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .auth-benefits {
    margin-top: 22px;
  }

  .auth-form-panel {
    padding: 28px 22px 36px;
  }

  .profile-account-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-account-card button {
    width: 100%;
  }

  body {
    padding-bottom: 70px;
    background-size: 24px 24px;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    min-height: 65px;
    padding: 9px 16px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .mobile-brand strong {
    color: var(--navy-950);
    font-size: 0.88rem;
  }

  .topbar-copy {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .calm-toggle {
    display: none;
  }

  .view {
    width: min(100% - 28px, 680px);
    padding: 28px 0 40px;
  }

  .view-heading {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
  }

  .view-heading h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .rhythm-pill {
    justify-self: start;
  }

  .dashboard-grid {
    gap: 13px;
  }

  .journey-heading,
  .journey-action {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .journey-countdown {
    width: 100%;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: baseline;
    gap: 7px;
  }

  .journey-countdown span {
    margin: 0;
  }

  .journey-phases {
    grid-template-columns: 1fr 1fr;
  }

  .journey-action .primary-button {
    width: 100%;
  }

  .daily-path-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
    padding: 17px;
  }

  .daily-goal-orb {
    width: 76px;
    height: 76px;
    border-width: 6px;
  }

  .daily-goal-orb strong {
    font-size: 0.98rem;
  }

  .daily-path-copy > p:not(.eyebrow) {
    font-size: 0.8rem;
  }

  .week-path {
    gap: 3px;
  }

  .week-day {
    width: 29px;
  }

  .week-day i {
    width: 24px;
    height: 24px;
  }

  .daily-start-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .focus-card {
    order: -1;
  }

  .overview-card {
    grid-template-columns: 1fr;
    padding: 4px 20px;
  }

  .metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .metric span {
    max-width: 130px;
    text-align: right;
  }

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .trial-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trial-banner > button {
    width: 100%;
  }

  .check-label {
    min-height: 34px;
  }

  .archive-count {
    justify-content: flex-start;
  }

  .test-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .test-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .test-actions .small-action {
    flex: 1 1 130px;
  }

  .profile-section-heading,
  .owner-unlocked-state {
    display: grid;
  }

  #owner-pin-form {
    grid-template-columns: 1fr;
  }

  #owner-pin-form button {
    width: 100%;
  }

  .study-view {
    width: min(100% - 20px, 720px);
    padding-top: 18px;
  }

  .study-heading {
    grid-template-columns: 1fr;
  }

  .study-score-button {
    width: 100%;
  }

  .document-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .document-toolbar-actions {
    justify-content: space-between;
  }

  .audio-dock-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .audio-local-actions {
    width: 100%;
    justify-content: space-between;
  }

  .open-document-link {
    padding: 2px 4px;
  }

  .document-frame-wrap {
    height: 70vh;
    min-height: 520px;
  }

  .study-coach {
    grid-template-columns: 1fr;
  }

  .audio-card,
  .listening-practice-card,
  .answer-sheet-card,
  .notes-card {
    grid-column: auto;
  }

  .practice-subjects {
    grid-template-columns: 1fr;
  }

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

  .practice-mode-card {
    min-height: 124px;
  }

  .practice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .practice-actions > button {
    width: 100%;
  }

  .quiz-text-answer > div {
    grid-template-columns: 1fr;
  }

  .quiz-text-answer .quiz-multi-submit {
    width: 100%;
  }

  .question-audio {
    grid-template-columns: 1fr;
  }

  .question-audio > button {
    width: 100%;
  }

  .question-audio > #question-audio-status {
    grid-column: auto;
    margin: 0;
  }

  .quiz-progress-row {
    grid-template-columns: auto 1fr;
  }

  .quiz-progress-row .text-button {
    grid-column: 2;
    justify-self: end;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .evidence-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .evidence-note > a {
    grid-column: auto;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-nav-item {
    display: grid;
    min-height: 51px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font-size: 0.65rem;
    font-weight: 750;
  }

  .mobile-nav-item span {
    font-size: 1rem;
  }

  .mobile-nav-item.is-active {
    color: var(--teal-dark);
    background: var(--teal-soft);
  }

  .read-aloud-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .read-aloud-box .secondary-button {
    width: 100%;
  }

  .timer-ring {
    width: 174px;
    height: 174px;
  }

  .timer-ring::before {
    width: 146px;
    height: 146px;
  }

  .toast-region {
    right: 14px;
    bottom: 84px;
    left: 14px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .journey-phases {
    grid-template-columns: 1fr;
  }

  .mistake-item {
    grid-template-columns: 1fr;
  }

  .mistake-item button {
    width: 100%;
  }

  .practice-mode-grid {
    grid-template-columns: 1fr;
  }

  .practice-mode-card {
    min-height: auto;
  }

  .practice-difficulty {
    display: grid;
    grid-template-columns: 1fr;
  }

  .answer-group-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .answer-group-heading > button {
    width: 100%;
  }

  .answer-choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .answer-meta-grid,
  .answer-sheet-actions {
    grid-template-columns: 1fr;
  }

  .answer-number-help {
    margin-left: 0;
  }

  .time-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .time-chip {
    min-height: 58px;
  }

  .energy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .energy-chip {
    padding-inline: 7px;
  }

  .focus-steps li {
    grid-template-columns: 48px 1fr;
  }

  .study-duration-choice {
    grid-template-columns: repeat(3, 1fr);
  }

  .document-frame-wrap {
    min-height: 470px;
  }

  .test-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-summary {
    grid-column: 1 / -1;
  }

  .resource-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
