:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-strong: #f8faf9;
  --ink: #142a25;
  --muted: #6d7b76;
  --muted-strong: #42554e;
  --line: #dfe7e3;
  --line-strong: #c8d4ce;
  --red: #d8495b;
  --teal: #147d64;
  --blue: #4269c8;
  --gold: #b97819;
  --green: #2f9461;
  --sidebar-width: 272px;
  --shadow: 0 18px 44px rgba(24, 58, 47, 0.07);
  --shadow-soft: 0 8px 24px rgba(24, 58, 47, 0.055);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  letter-spacing: 0;
}

button,
input,
select,
textarea,
summary {
  letter-spacing: 0;
}

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

button,
.options-summary,
a {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button-icon {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  width: 100%;
  max-width: none;
}

.brand-mark {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  object-fit: contain;
}

.tool-nav-header,
.mobile-nav-toggle,
.mobile-nav-backdrop,
.mobile-bottom-nav {
  display: none;
}

.tool-nav-scroll {
  min-width: 0;
}

.tool-nav-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-nav-heading {
  margin: 0;
  color: #82908b;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-nav-items {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.workspace > * {
  animation: workspace-enter 260ms cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.primary-btn:not(:disabled):hover,
.secondary-btn:not(:disabled):hover,
.ghost-btn:not(:disabled):hover,
.icon-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.primary-btn:not(:disabled):active,
.secondary-btn:not(:disabled):active,
.ghost-btn:not(:disabled):active,
.icon-btn:not(:disabled):active {
  transform: translateY(0);
}

.workspace-panel,
.mode-nav,
.global-options {
  box-shadow: var(--shadow-soft);
}

/* The dashboard is a workspace, not another card inside the application shell. */
body[data-tool="dashboard"] .workspace {
  overflow: hidden;
}

.dashboard-panel {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-hero {
  position: relative;
  gap: 36px;
  padding: 6px 0 30px;
}

.dashboard-hero h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 860;
}

.dashboard-date {
  margin-top: 9px;
  color: #197a63;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 820;
  text-transform: uppercase;
}

.dashboard-hero-copy > p:last-of-type {
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-hero-actions {
  gap: 10px;
  margin-top: 22px;
}

.dashboard-primary {
  min-height: 52px;
  padding-right: 17px;
  padding-left: 18px;
  box-shadow: 0 12px 24px rgba(20, 125, 100, 0.18);
}

.dashboard-edit-plan {
  min-height: 52px;
  background: transparent;
}

.dashboard-goal {
  min-width: 214px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-goal-ring {
  width: 86px;
  height: 86px;
  animation: goal-ring-enter 720ms cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.dashboard-goal-ring::before {
  inset: 7px;
  background: var(--surface);
}

.dashboard-goal-ring::after {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f3b84b;
  box-shadow: 0 0 0 4px #fff7e5;
  content: "";
  animation: goal-spark 1.8s ease-in-out 0.65s both;
}

.dashboard-goal-ring strong {
  color: var(--ink);
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  padding: 28px 0;
}

.dashboard-section-heading h3,
.dashboard-roadmap-header h3 {
  color: var(--ink);
  font-size: 19px;
}

.dashboard-section-heading p,
.dashboard-roadmap-header p {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-plan-list {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-plan-row {
  min-height: 78px;
  padding: 11px 14px;
  border-bottom-color: var(--line);
  background: var(--surface);
  animation: plan-row-enter 360ms cubic-bezier(0.22, 0.8, 0.32, 1) both;
}

.dashboard-plan-row:nth-child(2) {
  animation-delay: 55ms;
}

.dashboard-plan-row:nth-child(3) {
  animation-delay: 110ms;
}

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

.dashboard-plan-row.is-next {
  background: #f2faf7;
  box-shadow: inset 3px 0 0 #197a63;
}

.dashboard-plan-index {
  border: 0;
  background: #edf3f0;
  color: #4c6159;
}

.dashboard-plan-row[data-plan-tool="vocabulary"] .dashboard-plan-index,
.dashboard-plan-row[data-plan-tool="review"] .dashboard-plan-index {
  background: #e8f7f2;
  color: #147d64;
}

.dashboard-plan-row[data-plan-tool="grammar"] .dashboard-plan-index,
.dashboard-plan-row[data-plan-tool="exam"] .dashboard-plan-index {
  background: #eef2fd;
  color: #4269c8;
}

.dashboard-plan-row[data-plan-tool="reader"] .dashboard-plan-index {
  background: #f7edf5;
  color: #8a4c80;
}

.dashboard-plan-row[data-plan-tool="pronunciation"] .dashboard-plan-index,
.dashboard-plan-row[data-plan-tool="drill"] .dashboard-plan-index {
  background: #fff1ea;
  color: #cf684f;
}

.dashboard-plan-copy strong {
  color: var(--ink);
}

.dashboard-plan-status {
  color: #82908b;
}

.dashboard-plan-button {
  border-color: var(--line);
  background: var(--surface);
}

.dashboard-snapshot {
  padding-left: 30px;
}

.dashboard-metric-list {
  margin-top: 16px;
}

.dashboard-metric-list > div {
  padding: 11px 0;
}

.dashboard-metric-list dd {
  color: #197a63;
  font-size: 19px;
}

.dashboard-notebook-button {
  border-color: var(--line);
  background: #f8faf9;
}

.dashboard-focus {
  border-left-color: #ef8c74;
  background: #fff6f2;
}

.dashboard-focus > span {
  color: #bd5e49;
}

.dashboard-roadmap {
  padding: 30px 0;
}

.dashboard-roadmap-levels {
  border-color: var(--line);
  background: #edf2ef;
}

.dashboard-roadmap-levels button.active {
  color: #176b57;
}

.dashboard-roadmap-summary > span,
.dashboard-roadmap-next > span {
  color: #8a4c80;
}

.dashboard-roadmap-summary .progress-track > div,
.dashboard-roadmap-milestone .progress-track > div {
  background: #8860a8;
}

.dashboard-roadmap-index {
  border-color: #d6c7e2;
  background: #f7f2fa;
  color: #765492;
}

.dashboard-week-day i {
  background: #e88a6f;
}

.dashboard-week-day:nth-child(3n + 2) i {
  background: #197a63;
}

.dashboard-week-day:nth-child(3n + 3) i {
  background: #8860a8;
}

@media (min-width: 981px) {
  .app-shell {
    display: block;
    padding-left: var(--sidebar-width);
    background: var(--bg);
  }

  .topbar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    padding: 22px 15px 18px;
    border-right-color: var(--line);
    background: rgba(255, 255, 255, 0.97);
  }

  .brand-row {
    gap: 18px;
  }

  .brand {
    align-items: center;
    gap: 10px;
    padding: 0 5px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand h1 {
    font-size: 19px;
  }

  .brand p {
    max-width: 17ch;
    margin-top: 3px;
    font-size: 10px;
  }

  .brand-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 7px;
  }

  .global-search-trigger {
    min-width: 0;
  }

  .global-search-trigger-shortcut {
    display: none;
  }

  .account-trigger {
    justify-content: center;
    width: 42px;
    padding: 0;
  }

  .account-trigger-label,
  .account-trigger-badge {
    display: none !important;
  }

  .tool-nav {
    min-height: 0;
    overflow: hidden;
  }

  .tool-nav-scroll {
    display: grid;
    align-content: start;
    gap: 17px;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1px 0 14px;
    scrollbar-width: thin;
  }

  .tool-nav-heading {
    padding: 0 12px;
  }

  .tool-tab {
    position: relative;
    justify-content: flex-start;
    min-height: 40px;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    color: #4b5e57;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
  }

  .tool-tab .tool-tab-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 7px;
    background: #f0f4f2;
    color: #63746e;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  }

  .tool-tab:hover {
    border: 0;
    background: #f4f7f5;
    color: var(--ink);
  }

  .tool-tab:hover .tool-tab-icon {
    transform: translateX(1px);
  }

  .tool-tab.active {
    border: 0;
    background: #eaf6f1;
    color: #176b57;
    box-shadow: inset 3px 0 0 #197a63;
  }

  .tool-tab.active .tool-tab-icon {
    background: #d8eee6;
    color: #176b57;
  }

  .tool-controls {
    width: 100%;
    padding: 26px 34px 0;
  }

  .tool-controls::before {
    font-size: 28px;
    color: var(--ink);
  }

  .workspace {
    width: 100%;
    padding: 18px 34px 36px;
  }

  body[data-tool="dashboard"] .workspace,
  body[data-tool="history"] .workspace {
    padding-top: 30px;
  }

  body[data-tool="map"] .workspace {
    padding-top: 20px;
  }
}

@media (min-width: 1181px) {
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  :root {
    --sidebar-width: 244px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .dashboard-hero h2 {
    font-size: 34px;
  }

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

  .dashboard-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
    gap: 0 24px;
    padding-top: 24px;
    padding-left: 0;
  }

  .dashboard-snapshot .dashboard-section-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 78px;
  }

  body[data-screen="session"] .mobile-bottom-nav {
    display: none;
  }

  body[data-screen="session"] .app-shell {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 0 calc(76px + env(safe-area-inset-bottom));
    z-index: auto;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: block;
    min-height: 64px;
    padding: 9px 14px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 6px 18px rgba(23, 54, 45, 0.055);
  }

  .brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand h1 {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand p {
    display: none;
  }

  .brand-actions {
    display: flex;
    gap: 6px;
  }

  .global-search-trigger,
  .account-trigger {
    display: inline-grid;
    width: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted-strong);
  }

  .global-search-trigger-label,
  .global-search-trigger-shortcut,
  .account-trigger-label,
  .account-trigger-badge {
    display: none !important;
  }

  .mobile-nav-toggle .button-icon {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .tool-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: min(348px, calc(100vw - 26px));
    padding: 0;
    overflow: hidden;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: -20px 0 48px rgba(18, 45, 37, 0.16);
    transform: translateX(105%);
    transition: transform 220ms cubic-bezier(0.22, 0.8, 0.32, 1);
  }

  body.mobile-nav-open .tool-nav {
    transform: translateX(0);
  }

  .tool-nav-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 15px 12px 20px;
    border-bottom: 1px solid var(--line);
  }

  .tool-nav-header > div {
    display: grid;
    gap: 3px;
  }

  .tool-nav-header strong {
    color: var(--ink);
    font-size: 17px;
  }

  .tool-nav-header span {
    color: var(--muted);
    font-size: 11px;
  }

  .mobile-nav-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted-strong);
  }

  .mobile-nav-close .button-icon {
    width: 18px;
    height: 18px;
  }

  .tool-nav-scroll {
    display: grid;
    align-content: start;
    gap: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  }

  .tool-nav-heading {
    padding: 0 10px;
  }

  .tool-nav-items {
    gap: 4px;
  }

  .tool-nav .tool-tab {
    justify-content: flex-start;
    min-height: 46px;
    gap: 11px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #4b5e57;
    box-shadow: none;
    font-size: 13px;
  }

  .tool-nav .tool-tab-icon {
    width: 29px;
    height: 29px;
    padding: 6px;
    border-radius: 7px;
    background: #f0f4f2;
  }

  .tool-nav .tool-tab.active {
    background: #eaf6f1;
    color: #176b57;
    box-shadow: inset 3px 0 0 #197a63;
  }

  .tool-nav .tool-tab.active .tool-tab-icon {
    background: #d8eee6;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    border: 0;
    background: rgba(11, 27, 23, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(25, 53, 45, 0.08);
  }

  .mobile-bottom-nav button {
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #71807b;
    box-shadow: none;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 760;
  }

  .mobile-bottom-nav .tool-tab[data-tool="dashboard"] {
    grid-column: auto;
  }

  .mobile-bottom-nav button .button-icon {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-nav button.active,
  .mobile-bottom-nav button[aria-current="page"],
  .mobile-bottom-nav #mobileMoreButton.active {
    background: #eef8f4;
    color: #176b57;
  }

  .tool-controls {
    margin: 12px 14px 0;
  }

  .workspace {
    padding: 14px 14px 24px;
  }

  body[data-tool="map"] .workspace {
    padding: 12px 0 16px;
  }

  body[data-tool="dashboard"] .workspace,
  body[data-tool="history"] .workspace {
    padding-top: 20px;
  }

  .dashboard-panel {
    padding: 0;
  }

  .dashboard-hero {
    align-items: start;
    gap: 20px;
  }

  .dashboard-hero h2 {
    font-size: 34px;
  }

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

  .dashboard-plan {
    padding-right: 0;
    padding-bottom: 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-snapshot {
    padding-top: 26px;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 60px;
    padding: 8px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .global-search-trigger,
  .account-trigger {
    width: 40px;
    min-height: 40px;
    flex-basis: 40px;
  }

  .tool-controls {
    margin: 10px 10px 0;
  }

  .workspace {
    padding: 14px 12px 22px;
  }

  body[data-tool="dashboard"] .workspace {
    padding-top: 15px;
  }

  .dashboard-hero {
    display: block;
    min-height: 0;
    padding: 4px 0 24px;
  }

  .dashboard-hero-copy {
    padding-right: 91px;
  }

  .dashboard-hero h2 {
    max-width: 11ch;
    font-size: 30px;
  }

  .dashboard-date {
    margin-top: 7px;
    font-size: 10px;
  }

  .dashboard-hero-copy > p:last-of-type {
    width: calc(100vw - 24px);
    max-width: none;
    margin-top: 20px;
    padding-right: 0;
    font-size: 13px;
  }

  .dashboard-hero-actions {
    width: calc(100vw - 24px);
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .dashboard-primary {
    width: 100%;
    min-width: 0;
  }

  .dashboard-edit-plan {
    min-height: 42px;
  }

  .dashboard-goal {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-goal-ring {
    width: 76px;
    height: 76px;
  }

  .dashboard-goal-ring strong {
    font-size: 17px;
  }

  .dashboard-goal > div:last-child {
    display: none;
  }

  .dashboard-main-grid {
    padding: 24px 0;
  }

  .dashboard-section-heading h3,
  .dashboard-roadmap-header h3 {
    font-size: 18px;
  }

  .dashboard-section-heading p,
  .dashboard-roadmap-header p {
    max-width: 31ch;
  }

  .dashboard-plan-list {
    margin-top: 14px;
  }

  .dashboard-plan-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 78px;
    padding: 10px;
  }

  .dashboard-plan-index {
    width: 30px;
    height: 30px;
  }

  .dashboard-plan-copy span {
    white-space: normal;
  }

  .dashboard-plan-status {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-plan-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 58px;
    padding: 0 10px;
  }

  .dashboard-snapshot {
    padding-top: 24px;
  }

  .dashboard-metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .dashboard-metric-list > div {
    display: grid;
    gap: 4px;
    padding: 11px 0;
  }

  .dashboard-metric-list dt {
    font-size: 10px;
  }

  .dashboard-metric-list dd {
    font-size: 20px;
  }

  .dashboard-roadmap {
    padding: 25px 0;
  }

  .dashboard-roadmap-header {
    gap: 16px;
  }

  .dashboard-roadmap-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-roadmap-levels {
    width: 100%;
  }

  .dashboard-roadmap-layout {
    gap: 22px;
  }

  .dashboard-roadmap-summary {
    padding-right: 0;
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-week-chart {
    gap: 5px;
    min-height: 128px;
  }

  .dashboard-week-day > div {
    min-height: 70px;
  }
}

@media (max-width: 430px) {
  .brand-actions {
    gap: 4px;
  }

  .global-search-trigger,
  .account-trigger {
    width: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }

  .dashboard-roadmap-header {
    display: grid;
  }

  .dashboard-roadmap-controls {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand h1 {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reference-led product shell and Today dashboard. */
.sidebar-profile,
.sidebar-footer,
.global-utility-bar {
  display: none;
}

.dashboard-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 820;
}

.dashboard-card-heading button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  box-shadow: none;
  font-size: 10px;
  font-weight: 760;
}

.dashboard-card-heading button:hover {
  color: var(--teal);
  transform: none;
}

.dashboard-card-heading button .button-icon {
  width: 13px;
  height: 13px;
}

.dashboard-plan-section {
  margin-top: 22px;
}

.dashboard-plan-heading {
  margin-bottom: 13px;
}

.dashboard-plan-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-plan-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.dashboard-plan-step + .dashboard-plan-step::before {
  position: absolute;
  top: 50%;
  left: -15px;
  width: 30px;
  border-top: 1px dashed #c8d5cf;
  content: "";
}

.dashboard-plan-step:hover,
.dashboard-plan-step.is-next {
  background: #f2faf6;
  transform: none;
}

.dashboard-plan-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #177c5d;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.dashboard-plan-step:not(:first-child) .dashboard-plan-number {
  margin-left: -25px;
}

.dashboard-plan-step.is-complete .dashboard-plan-number {
  background: #dff2e9;
  color: #177c5d;
}

.dashboard-plan-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #d3e7de;
  border-radius: 50%;
  background: #f5fbf8;
  color: #176b57;
}

.dashboard-plan-icon .button-icon {
  width: 23px;
  height: 23px;
}

.dashboard-plan-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-plan-copy strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-plan-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-plan-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c7c76;
  font-size: 9px;
}

.dashboard-plan-copy > span .button-icon {
  width: 11px;
  height: 11px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.17fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-top: 26px;
}

.dashboard-overview-card,
.dashboard-resume-card,
.dashboard-tip-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(24, 58, 47, 0.035);
}

.dashboard-overview-card {
  min-height: 280px;
  padding: 18px;
}

.dashboard-snapshot-list {
  display: grid;
  gap: 2px;
  margin: 13px 0 0;
}

.dashboard-snapshot-list > div {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-snapshot-list dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #324740;
  font-size: 10px;
  font-weight: 680;
}

.dashboard-snapshot-list dt .button-icon {
  width: 18px;
  height: 18px;
  color: #176b57;
}

.dashboard-snapshot-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.dashboard-journey-callout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #cbe3d8;
  border-radius: 7px;
  background: #f4fbf7;
  color: #1e493d;
  text-align: left;
  box-shadow: none;
}

.dashboard-journey-callout:hover {
  border-color: #9fcdbb;
  background: #edf8f2;
  transform: none;
}

.dashboard-journey-callout > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #177c5d;
}

.dashboard-journey-callout .button-icon {
  width: 20px;
  height: 20px;
}

.dashboard-journey-callout > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.dashboard-journey-callout strong {
  font-size: 11px;
}

.dashboard-journey-callout small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-mastery-levels {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 12px;
  padding: 2px;
  border-radius: 6px;
  background: #edf3ef;
}

.dashboard-mastery-levels button {
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 9px;
  font-weight: 780;
}

.dashboard-mastery-levels button.active {
  background: #fff;
  color: #176b57;
  box-shadow: 0 2px 6px rgba(25, 72, 57, 0.08);
}

.dashboard-mastery-eyebrow {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
}

.dashboard-milestone-callout {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #cfe4d9;
  border-radius: 7px;
  background: #f4faf6;
}

.dashboard-milestone-callout > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #176b57;
  background: #e8f5ef;
}

.dashboard-milestone-callout .button-icon {
  width: 20px;
  height: 20px;
}

.dashboard-milestone-callout > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-milestone-callout strong {
  color: var(--ink);
  font-size: 11px;
}

.dashboard-milestone-callout small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-milestone-callout > strong {
  color: var(--muted-strong);
  font-size: 9px;
}

.dashboard-milestone-callout .dashboard-progress-track {
  grid-column: 2 / -1;
}

.dashboard-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5ece8;
}

.dashboard-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #177c5d;
}

.dashboard-overall-progress {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.dashboard-overall-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 9px;
}

.dashboard-overall-progress b {
  color: var(--ink);
}

.dashboard-mastery-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.dashboard-mastery-categories > span {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 2px 5px;
  color: #177c5d;
}

.dashboard-mastery-categories i {
  width: 7px;
  height: 7px;
  margin-top: 2px;
  border-radius: 2px;
  background: currentColor;
}

.dashboard-mastery-categories strong,
.dashboard-mastery-categories small {
  overflow: hidden;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-mastery-categories small {
  grid-column: 2;
  color: var(--muted);
}

.dashboard-mastery-categories [data-category="retention"] {
  color: #7658cb;
}

.dashboard-mastery-categories [data-category="grammar"] {
  color: #dd6a55;
}

.dashboard-mastery-categories [data-category="benchmarks"] {
  color: #d49624;
}

.dashboard-mastery-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.dashboard-mastery-footer button {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  box-shadow: none;
  font-size: 9px;
  font-weight: 760;
}

.dashboard-mastery-footer button:last-child {
  color: #176b57;
}

.dashboard-mastery-footer .button-icon {
  width: 12px;
  height: 12px;
}

.dashboard-activity-card .dashboard-card-heading > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-week-dots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 15px;
}

.dashboard-week-dots > span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.dashboard-week-dots small {
  color: var(--muted-strong);
  font-size: 8px;
}

.dashboard-week-dots i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #9aa7a2;
  background: #fafcfb;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-week-dots .is-active i {
  border-color: #9ecdbb;
  color: #fff;
  background: #177c5d;
}

.dashboard-activity-state {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 14px;
  text-align: center;
}

.dashboard-activity-state img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.dashboard-activity-state strong {
  color: var(--ink);
  font-size: 11px;
}

.dashboard-activity-state span {
  color: var(--muted);
  font-size: 9px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
  padding-bottom: 24px;
}

.dashboard-resume-card,
.dashboard-tip-card {
  padding: 16px 18px;
}

.dashboard-resume-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px dashed #cbd7d1;
  border-radius: 7px;
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.dashboard-resume-action:hover {
  border-color: #99c6b5;
  background: #f4faf7;
  transform: none;
}

.dashboard-resume-action > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #176b57;
  background: #edf7f2;
}

.dashboard-resume-action > span:first-child .button-icon {
  width: 20px;
  height: 20px;
}

.dashboard-resume-action > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-resume-action strong {
  font-size: 11px;
}

.dashboard-resume-action small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-resume-action b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #176b57;
  font-size: 9px;
  white-space: nowrap;
}

.dashboard-resume-action b .button-icon {
  width: 12px;
  height: 12px;
}

.dashboard-tip-card > div:last-child {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #d8cdf8;
  border-radius: 7px;
  background: #fbfaff;
  color: #7456d0;
}

.dashboard-tip-card .button-icon {
  width: 23px;
  height: 23px;
}

.dashboard-tip-card p {
  margin: 0;
  color: #3e3855;
  font-size: 10px;
  line-height: 1.5;
}

@media (min-width: 981px) {
  :root {
    --sidebar-width: 292px;
  }

  .topbar {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 15px;
    overflow: hidden;
    padding: 24px 20px 0;
  }

  .brand-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand {
    align-items: center;
    gap: 11px;
    padding: 0 4px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    transform: none;
  }

  .brand h1 {
    display: grid;
    gap: 0;
    color: #102a23;
    font-size: 25px;
    line-height: 1.02;
    font-weight: 860;
  }

  .brand h1 span {
    display: block;
  }

  .brand p {
    max-width: 18ch;
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.4;
  }

  .brand-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .global-search-trigger {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    border-color: var(--line);
    background: #fff;
  }

  .global-search-trigger-shortcut {
    display: inline-flex;
    margin-left: auto;
  }

  .account-trigger {
    position: fixed;
    z-index: 95;
    top: 18px;
    right: 24px;
    display: grid;
    width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
  }

  .tool-nav {
    min-height: 0;
    height: 100%;
    align-self: stretch;
    isolation: isolate;
  }

  .tool-nav-scroll {
    min-height: 0;
    height: auto;
    max-height: 100%;
    gap: 16px;
    padding-bottom: 5px;
  }

  .tool-nav-items {
    gap: 1px;
  }

  .tool-tab {
    min-height: 40px;
    padding: 0 9px;
  }

  .tool-tab .tool-tab-icon {
    width: 25px;
    height: 25px;
    padding: 5px;
  }

  .sidebar-profile {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    margin: 0 -20px;
    padding: 8px 20px;
    border-width: 1px 0 0;
    border-color: var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    text-align: left;
    box-shadow: none;
  }

  .sidebar-profile:hover {
    background: #f7faf8;
    transform: none;
  }

  .sidebar-profile img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #d6e7df;
    border-radius: 50%;
    background: #f4faf7;
  }

  .sidebar-profile > span {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .sidebar-profile strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-profile small {
    color: #177c5d;
    font-size: 9px;
    font-weight: 700;
  }

  .sidebar-profile > .button-icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
  }

  .sidebar-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
    min-height: 56px;
    align-items: center;
    margin: 0 -20px;
    padding: 6px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .sidebar-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4c6058;
    font-size: 10px;
  }

  .sidebar-footer > span:first-child .button-icon {
    color: #e85f49;
  }

  .sidebar-footer > span:nth-child(2) .button-icon {
    color: #dda117;
  }

  .sidebar-footer .button-icon {
    width: 17px;
    height: 17px;
  }

  .sidebar-footer button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
  }

  .sidebar-footer button:hover {
    background: #f1f5f3;
  }

  .global-utility-bar {
    position: fixed;
    z-index: 90;
    top: 18px;
    right: 76px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .utility-menu {
    position: relative;
  }

  .utility-menu > summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .utility-menu > summary::-webkit-details-marker {
    display: none;
  }

  .utility-menu > summary:hover,
  .utility-menu[open] > summary {
    background: rgba(255, 255, 255, 0.92);
  }

  .utility-menu > summary .button-icon {
    width: 18px;
    height: 18px;
  }

  .utility-menu > summary span {
    font-size: 11px;
    font-weight: 760;
  }

  .utility-menu > summary .utility-chevron {
    width: 12px;
    height: 12px;
  }

  .utility-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    width: 190px;
    gap: 6px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .utility-popover strong {
    color: var(--ink);
    font-size: 11px;
  }

  .utility-popover span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .utility-notification-popover {
    width: 230px;
  }

  .utility-notification-popover button {
    min-height: 34px;
    margin-top: 3px;
    border: 0;
    border-radius: 6px;
    background: #177c5d;
    color: #fff;
    font-size: 10px;
    font-weight: 760;
  }

  body[data-tool="dashboard"] .workspace {
    padding: 76px 42px 28px;
  }

  .dashboard-panel {
    max-width: 1240px;
  }

  .dashboard-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
    align-items: center;
    gap: 44px;
    min-height: 154px;
    padding: 0 0 18px;
    border-bottom: 0;
  }

  .dashboard-hero-v2 .dashboard-hero-copy > p:last-of-type {
    margin-top: 19px;
  }

  .dashboard-goal-cluster {
    display: grid;
    grid-template-columns: 142px minmax(190px, 1fr);
    align-items: center;
    gap: 20px;
  }

  .dashboard-hero-v2 .dashboard-goal {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-hero-v2 .dashboard-goal-ring {
    width: 112px;
    height: 112px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring::before {
    inset: 8px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring strong {
    display: inline-flex;
    align-items: baseline;
    color: #177c5d;
    font-size: 31px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring strong small {
    color: var(--muted-strong);
    font-size: 13px;
  }

  .dashboard-hero-v2 .dashboard-goal > span {
    margin-top: -32px;
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 760;
  }

  .dashboard-hero-v2 .dashboard-goal > small {
    color: var(--muted);
    font-size: 9px;
  }

  .dashboard-goal-checklist {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .dashboard-goal-checklist li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: #33483f;
  }

  .dashboard-goal-checklist li > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #8ea098;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
  }

  .dashboard-goal-checklist li.is-complete > span {
    border-color: #177c5d;
    background: #177c5d;
  }

  .dashboard-goal-checklist strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1240px) and (min-width: 981px) {
  :root {
    --sidebar-width: 254px;
  }

  .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sidebar-profile,
  .sidebar-footer {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand h1 {
    font-size: 22px;
  }

  body[data-tool="dashboard"] .workspace {
    padding-right: 28px;
    padding-left: 28px;
  }

  .dashboard-hero-v2 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 26px;
  }

  .dashboard-goal-cluster {
    grid-template-columns: 124px minmax(165px, 1fr);
    gap: 12px;
  }

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

  .dashboard-activity-card {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .dashboard-activity-state {
    grid-template-columns: 68px minmax(0, 1fr);
    justify-items: start;
    max-width: 430px;
    margin: 15px auto 0;
    text-align: left;
  }

  .dashboard-activity-state img {
    grid-row: 1 / span 2;
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 980px) {
  .brand-mark {
    transform: none;
  }

  .brand h1 {
    display: block;
  }

  .brand h1 span {
    display: inline;
  }

  .brand h1 span + span::before {
    content: " ";
  }

  .sidebar-profile,
  .sidebar-footer,
  .global-utility-bar {
    display: none;
  }

  .dashboard-hero-v2 {
    display: grid;
    gap: 22px;
    padding-bottom: 4px;
  }

  .dashboard-hero-v2 .dashboard-hero-copy {
    padding-right: 0;
  }

  .dashboard-hero-v2 .dashboard-hero-copy > p:last-of-type,
  .dashboard-hero-v2 .dashboard-hero-actions {
    width: auto;
  }

  .dashboard-goal-cluster {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    max-width: 430px;
  }

  .dashboard-hero-v2 .dashboard-goal {
    position: static;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .dashboard-hero-v2 .dashboard-goal-ring {
    width: 88px;
    height: 88px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring strong {
    display: inline-flex;
    align-items: baseline;
    color: #177c5d;
    font-size: 23px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring strong small {
    color: var(--muted);
    font-size: 10px;
  }

  .dashboard-hero-v2 .dashboard-goal > span {
    margin-top: -26px;
    color: var(--muted-strong);
    font-size: 10px;
    font-weight: 760;
  }

  .dashboard-hero-v2 .dashboard-goal > small {
    color: var(--muted);
    font-size: 8px;
  }

  .dashboard-goal-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .dashboard-goal-checklist li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .dashboard-goal-checklist li > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #8ea098;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
  }

  .dashboard-goal-checklist li.is-complete > span {
    border-color: #177c5d;
    background: #177c5d;
  }

  .dashboard-goal-checklist strong {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-plan-section {
    margin-top: 28px;
  }

  .dashboard-plan-track {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .dashboard-plan-step {
    grid-template-columns: 28px 48px minmax(0, 1fr);
    min-height: 92px;
    padding: 12px 14px;
  }

  .dashboard-plan-step + .dashboard-plan-step {
    border-top: 1px solid var(--line);
  }

  .dashboard-plan-step + .dashboard-plan-step::before {
    display: none;
  }

  .dashboard-plan-step:not(:first-child) .dashboard-plan-number {
    margin-left: 0;
  }

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

  .dashboard-overview-card {
    min-height: 0;
  }

  .dashboard-activity-card {
    grid-column: auto;
  }

  .dashboard-lower-grid {
    padding-bottom: 6px;
  }
}

@media (max-width: 560px) {
  .dashboard-hero-v2 h2 {
    max-width: none;
    font-size: 29px;
  }

  .dashboard-hero-v2 .dashboard-primary {
    min-height: 48px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dashboard-primary-icon .button-icon {
    width: 20px;
    height: 20px;
  }

  .dashboard-goal-cluster {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .dashboard-hero-v2 .dashboard-goal-ring {
    width: 80px;
    height: 80px;
  }

  .dashboard-card-heading {
    align-items: flex-start;
  }

  .dashboard-card-heading h3 {
    font-size: 14px;
  }

  .dashboard-plan-copy small {
    white-space: normal;
  }

  .dashboard-overview-card,
  .dashboard-resume-card,
  .dashboard-tip-card {
    padding: 15px;
  }

  .dashboard-mastery-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dashboard-week-dots {
    gap: 3px;
  }

  .dashboard-week-dots i {
    width: 25px;
    height: 25px;
  }

  .dashboard-week-dots small {
    font-size: 7px;
  }

  .dashboard-resume-action {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .dashboard-resume-action b {
    grid-column: 2;
  }
}

@keyframes workspace-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

@keyframes plan-row-enter {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }

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

@keyframes goal-ring-enter {
  from {
    opacity: 0;
    transform: rotate(-14deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes goal-spark {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.2);
  }
}

/* Integrated learning flow shared by every tool. */
body[data-tool="vocabulary"],
body[data-tool="review"],
body[data-tool="grammar"],
body[data-tool="reader"],
body[data-tool="exam"],
body[data-tool="pronunciation"],
body[data-tool="map"],
body[data-tool="drill"] {
  --theme: #147d64;
  --theme-hover: #0f684f;
  --theme-soft: #eef8f4;
  --theme-border: #b9dcd0;
  --theme-focus: rgba(20, 125, 100, 0.18);
  --theme-wash: rgba(20, 125, 100, 0.08);
  --theme-rule: rgba(20, 125, 100, 0.12);
}

body[data-tool="vocabulary"],
body[data-tool="review"] {
  --experience-accent: #147d64;
}

body[data-tool="grammar"] {
  --experience-accent: #4269c8;
}

body[data-tool="reader"] {
  --experience-accent: #8a4c80;
}

body[data-tool="exam"] {
  --experience-accent: #16705d;
}

body[data-tool="pronunciation"] {
  --experience-accent: #0e7490;
}

body[data-tool="map"] {
  --experience-accent: #0d9488;
}

body[data-tool="drill"] {
  --experience-accent: #cf684f;
}

.tool-controls::before {
  display: none;
}

.mode-nav,
.global-options {
  box-shadow: none;
}

body[data-screen="session"] .tool-controls,
body[data-screen="result"] .tool-controls {
  display: none !important;
}

.tool-plan-context {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  margin: -2px 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.tool-plan-context-icon,
.session-plan-next-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--experience-accent, var(--theme));
}

.tool-plan-context-icon .button-icon,
.session-plan-next-icon .button-icon {
  width: 20px;
  height: 20px;
}

.tool-plan-context.is-complete .tool-plan-context-icon,
.session-plan-next.is-complete .session-plan-next-icon {
  background: #e5f5ed;
  color: #187956;
}

.tool-plan-context-copy,
.session-plan-next-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tool-plan-context-copy small,
.session-plan-next-copy small {
  color: var(--experience-accent, var(--theme));
  font-size: 9px;
  line-height: 1.25;
  font-weight: 840;
  text-transform: uppercase;
}

.tool-plan-context-copy strong,
.session-plan-next-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-plan-context-copy > span,
.session-plan-next-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-plan-context-meta {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.tool-plan-context-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #176b57;
  box-shadow: none;
  font-size: 11px;
  font-weight: 820;
}

.tool-plan-context-action:hover {
  color: #0f5545;
}

.tool-plan-context-action .button-icon {
  width: 15px;
  height: 15px;
}

.session-plan-next {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 14px;
  border: 1px solid #cfe3db;
  border-radius: 8px;
  background: #f4faf7;
}

.session-plan-next-icon {
  background: #e4f3ed;
  color: #176b57;
  font-size: 18px;
  font-weight: 850;
}

.session-plan-next-action {
  min-height: 40px;
  gap: 7px;
  padding: 0 14px;
  white-space: nowrap;
}

.session-plan-next-action .button-icon {
  width: 16px;
  height: 16px;
}

.session-plan-today {
  padding: 0 5px;
}

.practice-readiness {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.practice-readiness.is-unavailable {
  border-color: #efd5d9;
  background: #fff8f8;
}

.practice-readiness-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #e9f5f0;
  color: #147d64;
  font-size: 25px;
  line-height: 1;
  font-weight: 850;
}

.practice-readiness-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.practice-readiness-copy small {
  color: var(--experience-accent, var(--theme));
  font-size: 9px;
  line-height: 1.3;
  font-weight: 840;
  text-transform: uppercase;
}

.practice-readiness-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.practice-readiness-copy > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.study-plan-mobile-action {
  display: none;
}

@media (min-width: 981px) {
  body[data-screen="result"][data-tool] .workspace {
    padding-top: 76px;
  }

  body[data-tool="map"] .workspace {
    padding-top: 72px;
  }

  body[data-tool="map"] .map-quiz-workspace {
    height: min(800px, calc(100vh - 116px));
  }

  body[data-tool="map"][data-screen="session"] .map-zoom-controls {
    top: 56px;
  }

  .speaking-session {
    min-height: min(560px, calc(100vh - 112px));
  }

  .speaking-session .pronunciation-card {
    min-height: 260px;
    align-content: center;
    padding: 30px 32px;
  }

  .speaking-session .sentence-card-header {
    align-self: start;
  }

  .speaking-session .pronunciation-hanzi-line {
    font-size: 42px;
  }

  .speaking-session .pronunciation-pinyin-line {
    font-size: 17px;
  }
}

.vocabulary-preview-disclosure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.vocabulary-preview-disclosure > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.vocabulary-preview-disclosure > summary::-webkit-details-marker {
  display: none;
}

.vocabulary-preview-disclosure > summary > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vocabulary-preview-disclosure > summary strong {
  color: var(--ink);
  font-size: 12px;
}

.vocabulary-preview-disclosure > summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vocabulary-preview-disclosure > summary b {
  color: #176b57;
  font-size: 10px;
}

.vocabulary-preview-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}

.vocabulary-preview-disclosure[open] > summary b::before {
  content: "Hide";
}

.vocabulary-preview-disclosure[open] > summary b {
  font-size: 0;
}

.vocabulary-preview-disclosure[open] > summary b::before {
  font-size: 10px;
}

.vocabulary-preview-disclosure .preview-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vocabulary-preview-disclosure .table-note {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}

.review-baseline-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review-baseline-summary > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e7f4ee;
  color: #147d64;
  font-weight: 850;
}

.review-baseline-summary > div {
  display: grid;
  gap: 2px;
}

.review-baseline-summary small {
  color: #147d64;
  font-size: 9px;
  font-weight: 840;
  text-transform: uppercase;
}

.review-baseline-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.review-baseline-summary p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (min-width: 981px) {
  .tool-controls {
    grid-template-rows: auto;
    row-gap: 0;
    padding-top: 18px;
  }

  body[data-screen="session"] .workspace,
  body[data-screen="result"] .workspace {
    padding-top: 28px;
  }
}

@media (max-width: 980px) {
  body[data-tool="vocabulary"] .tool-controls,
  body[data-tool="drill"] .tool-controls {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .mode-nav,
  .global-options {
    padding: 3px;
  }

  .mode-nav {
    gap: 3px;
  }

  .mode-tab,
  .options-summary {
    min-width: 0;
    min-height: 38px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .options-summary {
    font-size: 10px;
  }

  .tool-plan-context {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 13px;
  }

  .tool-plan-context-icon,
  .session-plan-next-icon {
    width: 36px;
    height: 36px;
  }

  .tool-plan-context-meta {
    display: none;
  }

  .tool-plan-context-copy > span {
    display: none;
  }

  .tool-plan-context-copy strong {
    font-size: 12px;
  }

  .tool-plan-context-action {
    min-height: 34px;
  }

  .session-plan-next {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    margin: 14px 0 18px;
    padding: 12px;
  }

  .session-plan-next-copy strong,
  .session-plan-next-copy > span {
    white-space: normal;
  }

  .session-plan-next-action,
  .session-plan-today {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .session-plan-today {
    min-height: 32px;
  }

  .practice-readiness {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    margin: 14px 0 16px;
    padding: 12px;
  }

  .practice-readiness-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .vocabulary-preview-disclosure > summary {
    min-height: 50px;
    padding: 9px 11px;
  }

  .vocabulary-home .quiz-start-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 12px 0 14px;
  }

  .vocabulary-home .quiz-start-strip .primary-btn {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 46px;
    margin-bottom: 8px;
  }

  .vocabulary-home .quiz-start-metric {
    grid-row: 2;
    min-height: 48px;
    padding: 7px 8px;
    border-top: 0;
  }

  .vocabulary-home .quiz-start-metric + .quiz-start-metric {
    padding: 7px 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .vocabulary-home .quiz-start-metric strong {
    font-size: 19px;
  }

  .vocabulary-home .quiz-start-metric span {
    margin-top: 3px;
    font-size: 8px;
  }
}

@media (max-width: 520px) {
  .vocabulary-home .quiz-set-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .vocabulary-home .quiz-set-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px;
    min-height: 62px;
    padding: 6px;
  }

  .vocabulary-home .quiz-set-icon {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
  }

  .vocabulary-home .quiz-set-icon-level {
    grid-row: auto;
    font-size: 23px;
  }

  .vocabulary-home .quiz-set-icon-part {
    align-self: center;
    font-size: 9px;
  }

  .vocabulary-home .quiz-set-part-marks {
    display: none;
  }

  .vocabulary-home .quiz-set-card-text {
    gap: 2px;
  }

  .vocabulary-home .quiz-set-card-text strong {
    font-size: 12px;
  }

  .vocabulary-home .quiz-set-card-text span {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .vocabulary-home .quiz-set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Guided empty, recommendation, and progress states. */
.history-empty-overview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.history-empty-overview-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5ef;
  color: #147d64;
}

.history-empty-overview-icon .button-icon {
  width: 24px;
  height: 24px;
}

.history-empty-overview > div {
  display: grid;
  gap: 5px;
}

.history-empty-overview > div > span {
  color: #147d64;
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.history-empty-overview h3 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

.history-empty-overview p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.history-empty-overview .primary-btn {
  gap: 8px;
  padding: 0 16px;
  border-color: #147d64;
  background: #147d64;
  color: #fff;
}

.history-empty-overview .primary-btn:hover {
  border-color: #0f684f;
  background: #0f684f;
}

.history-empty-overview .primary-btn .button-icon {
  width: 16px;
  height: 16px;
}

.history-empty-plan {
  padding-top: 26px;
}

.history-empty-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.history-empty-plan-step {
  display: grid;
  grid-template-columns: 26px 34px minmax(0, 1fr);
  min-height: 70px;
  align-items: center;
  gap: 8px;
  padding: 11px;
  background: var(--surface);
}

.history-empty-plan-step.is-next {
  background: #f1faf6;
}

.history-empty-plan-step > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ef;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 820;
}

.history-empty-plan-step > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #147d64;
}

.history-empty-plan-step .button-icon {
  width: 18px;
  height: 18px;
}

.history-empty-plan-step > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.history-empty-plan-step strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-empty-plan-step small {
  color: var(--muted);
  font-size: 9px;
}

.history-type-filters {
  display: flex;
  gap: 5px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.history-type-filters button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 780;
}

.history-type-filters button.active {
  border-color: #b9dcd0;
  background: #edf8f3;
  color: #176b57;
}

.history-storage-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.history-storage-note strong {
  color: var(--muted-strong);
  font-weight: 820;
}

.global-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
}

.global-search-suggestions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 780;
}

.global-search-suggestions button:hover,
.global-search-suggestions button:focus-visible {
  border-color: #a9d1c2;
  background: #eef8f4;
  color: #176b57;
}

.grammar-home > .tool-plan-context {
  margin: 0 30px;
  padding-top: 18px;
}

.grammar-recommendation {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  width: calc(100% - 60px);
  min-height: 66px;
  align-items: center;
  gap: 12px;
  margin: 0 30px;
  padding: 11px 13px;
  border: 1px solid #c8dfd6;
  border-radius: 8px;
  background: #f3faf7;
  color: var(--ink);
  text-align: left;
}

.grammar-recommendation:hover {
  border-color: #83bba8;
  background: #eef8f4;
}

.grammar-recommendation-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #dff0e9;
  color: #147d64;
}

.grammar-recommendation-icon .button-icon {
  width: 19px;
  height: 19px;
}

.grammar-recommendation > span:nth-child(2) {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
}

.grammar-recommendation small {
  grid-column: 1 / -1;
  color: #147d64;
  font-size: 9px;
  font-weight: 840;
  text-transform: uppercase;
}

.grammar-recommendation strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grammar-recommendation .chinese-text {
  color: var(--muted-strong);
  font-size: 13px;
}

.grammar-recommendation > b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #176b57;
  font-size: 10px;
  white-space: nowrap;
}

.grammar-recommendation > b .button-icon {
  width: 15px;
  height: 15px;
}

.reader-level-progress {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(180px, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reader-level-progress > div:first-child {
  display: grid;
  gap: 2px;
}

.reader-level-progress > div:first-child span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  text-transform: uppercase;
}

.reader-level-progress > div:first-child strong {
  color: var(--ink);
  font-size: 12px;
}

.reader-level-progress .progress-track {
  height: 7px;
}

.reader-level-progress .progress-track > div {
  height: 100%;
  border-radius: inherit;
  background: #147d64;
}

.reader-level-progress > button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #176b57;
  font-size: 10px;
  font-weight: 820;
  white-space: nowrap;
}

.reader-level-progress > button .button-icon {
  width: 14px;
  height: 14px;
}

.hsk-exam-level-card.is-target {
  border-color: #a8d2c3;
  box-shadow: inset 0 3px 0 #147d64;
}

.hsk-exam-target-badge {
  margin-left: 5px;
  color: #147d64;
  font-size: 9px;
  font-weight: 840;
  vertical-align: middle;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  body:has(.study-plan-setup) .mobile-bottom-nav {
    display: none;
  }

  body:has(.study-plan-setup) .app-shell {
    padding-bottom: 78px;
  }

  body:has(.study-plan-setup) .study-plan-setup {
    animation: none;
    transform: none;
  }

  .study-plan-mobile-action {
    position: fixed;
    z-index: 95;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    width: auto;
    min-height: 52px;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(15, 92, 72, 0.24);
  }

  .hsk-exam-ready {
    padding: 14px;
  }

  .grammar-result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .grammar-result-stats .stat {
    min-height: 88px;
    padding: 12px 9px;
  }

  .grammar-result-stats .stat strong {
    font-size: 24px;
  }

  .hsk-exam-ready > .hsk-exam-back {
    margin-bottom: 8px;
  }

  .hsk-exam-ready-layout {
    gap: 14px;
  }

  .hsk-exam-ready-main > p {
    margin-top: 6px;
    line-height: 1.45;
  }

  .hsk-exam-blueprint {
    margin-top: 16px;
  }

  .hsk-exam-blueprint-row {
    min-height: 52px;
  }

  .hsk-exam-start-panel {
    padding-top: 14px;
  }

  .hsk-exam-start-time {
    padding-bottom: 12px;
  }

  .hsk-exam-start-time strong {
    font-size: 38px;
  }

  .hsk-exam-start-panel ul {
    gap: 6px;
    margin: 13px 0;
    font-size: 12px;
  }

  .hsk-exam-start-panel > p {
    margin-top: 5px;
  }

  .history-storage-note {
    text-align: left;
  }

  .map-quiz-session .map-question-panel {
    gap: 7px;
    padding: 9px 12px 10px;
  }

  .map-quiz-session .map-score-card {
    padding: 9px 11px;
  }

  .map-quiz-session .map-score-card span,
  .map-quiz-session .map-score-card small {
    font-size: 9px;
  }

  .map-quiz-session .map-score-card strong {
    margin-top: 2px;
    font-size: 18px;
  }

  .map-quiz-session .map-score-card small {
    margin-top: 3px;
  }

  .map-quiz-session .map-progress-line {
    height: 5px;
    margin-top: 7px;
  }

  .map-quiz-session .map-question-meta {
    min-height: 26px;
  }

  .map-quiz-session .map-prompt-card {
    gap: 4px;
    padding: 9px 11px;
  }

  .map-quiz-session .map-prompt {
    font-size: 25px;
    line-height: 1.12;
  }

  .map-quiz-session .map-prompt-card p,
  .map-quiz-session .map-hint-note {
    font-size: 10px;
  }

  .map-quiz-session .map-hint-btn,
  .map-quiz-session .map-panel-actions button {
    min-height: 40px;
  }

  .map-quiz-session .map-stage-panel,
  .map-quiz-session .china-map-wrap,
  .map-quiz-session .china-map-canvas {
    height: clamp(340px, 51vh, 410px);
  }

  .history-empty-overview {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .history-empty-overview-icon {
    width: 44px;
    height: 44px;
  }

  .history-empty-overview h3 {
    font-size: 19px;
  }

  .history-empty-overview .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .history-empty-plan {
    padding-top: 20px;
  }

  .history-empty-plan-list {
    grid-template-columns: 1fr;
  }

  .history-empty-plan-step {
    min-height: 58px;
  }

  .grammar-home > .tool-plan-context {
    margin: 0 18px;
    padding-top: 14px;
  }

  .grammar-recommendation {
    grid-template-columns: 36px minmax(0, 1fr);
    width: calc(100% - 36px);
    margin: 0 18px;
    padding: 10px;
  }

  .grammar-recommendation-icon {
    width: 36px;
    height: 36px;
  }

  .grammar-recommendation > span:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .grammar-recommendation > b {
    grid-column: 2;
  }

  .reader-level-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding: 10px 2px;
  }

  .reader-level-progress .progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reader-level-progress > button {
    grid-column: 2;
    grid-row: 1;
  }

  .hsk-exam-level-grid {
    gap: 10px;
    margin-top: 16px;
  }

  .hsk-exam-level-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .hsk-exam-level-mark {
    width: 44px;
    height: 44px;
  }

  .hsk-exam-level-copy h3 {
    font-size: 18px;
  }

  .hsk-exam-level-copy p {
    font-size: 11px;
  }

  .hsk-exam-level-meta > div {
    padding: 9px 5px 9px 0;
  }

  .hsk-exam-level-meta > div + div {
    padding-left: 8px;
  }

  .hsk-exam-level-history {
    min-height: 24px;
  }

  .hsk-exam-level-history > small {
    display: none;
  }

  .hsk-exam-level-action {
    min-height: 38px;
  }
}
