:root {
  --font: Inter, Arial, sans-serif;
  --display: Inter, Arial, sans-serif;
  --line: #e9e9ec;
  --muted: #707079;
  --ink: #202024;
}
body {
  font-family: var(--font);
  font-size: 14px;
  background: #fafafa;
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  background: #fff;
  color: #6b6b73;
  border-right: 1px solid var(--line);
  padding: 25px 14px 16px;
}
.sidebar > .brand {
  color: #1a1a1d;
  font-family: Manrope, Arial, sans-serif;
  font-size: 20px;
  margin: 0 5px 36px;
}
.sidebar .brand-number {
  color: #ff6925;
}
.workspace-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #8b8b95;
  padding: 0 12px 15px;
}
.nav-item {
  color: #686872;
  font-size: 13px;
  min-height: 41px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 400;
  margin-bottom: 3px;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.nav-item:hover {
  background: #f5f5f7;
  color: #27272e;
}
.nav-item.active {
  background: #fff1e8;
  color: #c44c0b;
  font-weight: 500;
}
.nav-item.active:before {
  display: none;
}
.nav-item b {
  background: #eeeef1;
  color: #696975;
}
.sidebar-bottom {
  padding-top: 24px;
}
.sidebar-bottom .nav-item {
  font-size: 12px;
}
.local-status {
  color: #85858e;
  font-size: 10px;
  padding-left: 12px;
  margin-top: 12px;
}
.app-header {
  height: 56px;
  padding: 0 26px;
  backdrop-filter: none;
  background: #fff;
}
.breadcrumb {
  font-size: 13px;
  color: #555561;
  font-weight: 500;
}
.preview-label {
  font-size: 11px;
  color: #888892;
}
.avatar {
  width: 29px;
  height: 29px;
}
.workspace-main {
  padding: 28px 26px 44px;
  max-width: 1440px;
  width: 100%;
}
.page-heading,
.catalogue-heading {
  margin-bottom: 23px;
  gap: 16px;
}
.page-heading .eyebrow,
.catalogue-heading .eyebrow {
  display: none;
}
.page-heading h1,
.catalogue-heading h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
}
.page-heading p,
.catalogue-heading p {
  font-size: 13px;
  line-height: 1.7;
  color: #777782;
  margin-top: 7px;
}
.card {
  border-radius: 8px;
  padding: 20px;
  box-shadow: none;
}
.card h2,
.section-heading h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section-heading {
  margin-bottom: 17px;
  gap: 15px;
}
.section-heading p {
  font-size: 13px;
}
.btn {
  font-size: 13px;
  font-weight: 500;
  min-height: 40px;
  border-radius: 6px;
  padding: 10px 15px;
  box-shadow: none;
  gap: 10px;
}
.btn.small {
  min-height: 34px;
  padding: 8px 13px;
  font-size: 12px;
}
.btn.primary {
  background: #ff702a;
  color: #171717;
  border-color: #ff702a;
  box-shadow: none;
}
.btn.primary:hover {
  background: #f8631b;
  border-color: #f8631b;
}
.btn.outline {
  border-color: #dfdfe5;
  background: #fff;
  color: #555561;
}
.btn.outline:hover {
  background: #f5f5f7;
  border-color: #c9c9d0;
}
.text-link {
  font-size: 12px;
  font-weight: 500;
}
.daily-focus-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 16px;
}
.daily-focus-row strong {
  font-weight: 600;
  font-size: 14px;
}
.daily-focus-row p {
  font-size: 12px;
  color: #80808a;
  margin-top: 7px;
}
.daily-focus-row .text-link {
  margin-left: 8px;
  color: #bf531b;
}
.daily-meter {
  margin-left: auto;
  width: 120px;
  flex-shrink: 0;
  height: 5px;
  background: #eeeef0;
  border-radius: 5px;
  overflow: hidden;
}
.daily-meter i {
  display: block;
  height: 100%;
  background: #ff762e;
  border-radius: 5px;
}
.stats-grid {
  gap: 12px;
  margin: 0 0 29px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 17px;
  box-shadow: none;
}
.stat > span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #73737e;
}
.stat > strong {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.04em;
  margin: 9px 0 3px;
}
.stat > small {
  font-size: 11px;
  color: #8a8a94;
}
.practice-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.practice-shortcuts > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s;
}
.practice-shortcuts > a:hover {
  border-color: #ef9c72;
}
.practice-shortcuts > a > svg {
  margin-left: auto;
  flex-shrink: 0;
  color: #90909a;
}
.practice-shortcuts strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.practice-shortcuts small {
  display: block;
  font-size: 11px;
  color: #8a8a94;
  margin-top: 5px;
  line-height: 1.5;
}
.section-token {
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 7px;
  flex-shrink: 0;
  background: #f3f3f5;
  color: #696975;
}
.recent-row {
  padding: 16px 0;
  gap: 15px;
}
.recent-row > div > strong {
  font-size: 13px;
  font-weight: 500;
}
.recent-row small {
  font-size: 11px;
  color: #82828d;
}
.session-symbol {
  width: 30px;
  height: 30px;
  background: #f5f5f7;
  border-radius: 6px;
  color: #90909b;
}
.recent-score > strong {
  font-size: 16px;
}
.recent-score > strong > span {
  font-size: 11px;
}
.empty-state {
  padding: 37px 20px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.8;
}
.catalogue-tabs {
  gap: 10px;
  margin-bottom: 20px;
}
.catalogue-tabs button {
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 7px;
  background: #fff;
  border-color: #e6e6eb;
  box-shadow: none;
}
.catalogue-tabs button strong {
  font-size: 14px;
  font-weight: 600;
}
.catalogue-tabs button span {
  font-size: 11px;
  color: #7b7b85;
}
.catalogue-tabs button.active {
  border-color: #ff9e6d;
  background: #fff8f4;
}
.catalogue-tabs button.active strong {
  color: #b94709;
}
.catalogue-tabs button.active span {
  color: #a86a49;
}
.catalogue-topline {
  font-size: 12px;
  margin-bottom: 16px;
}
.catalogue-tools {
  margin-bottom: 18px;
}
.catalogue-tools .search-box {
  min-height: 38px;
  border-radius: 6px;
}
.catalogue-tools .search-box input {
  font-size: 13px;
}
.catalogue-access {
  font-size: 12px;
}
.catalogue-progress-key {
  display: none;
}
.topic-catalogue {
  grid-template-columns: 1fr;
  gap: 18px;
}
.topic-group {
  border-radius: 8px;
  border-color: var(--line);
}
.topic-group-heading {
  padding: 14px 20px;
  background: #fdfdfd;
}
.topic-group-heading h2 {
  font-size: 15px;
  letter-spacing: -0.015em;
}
.topic-entry {
  grid-template-columns: minmax(170px, 1fr) 124px 100px;
  min-height: 85px;
  padding: 16px 20px;
  gap: 24px;
}
.topic-entry-name h3 {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.topic-entry-name p {
  font-size: 11px;
  margin-top: 5px;
  color: #81818b;
}
.topic-free {
  font-size: 10px;
  color: #ab521f;
}
.topic-progress > small {
  font-size: 10px;
  margin-top: 7px;
}
.progress-segments {
  height: 5px;
}
.topic-start {
  min-width: 96px;
  min-height: 35px;
  padding: 8px 12px;
  font-size: 12px;
  gap: 10px;
}
.catalogue-bottom {
  font-size: 11px;
  margin-top: 20px;
}
.catalogue-bottom .text-link,
.catalogue-topline .text-link {
  font-size: 12px;
}
.footnote {
  font-size: 11px;
  line-height: 1.8;
}
.mock-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.mock-card {
  padding: 20px;
  min-height: 146px;
  display: block;
}
.mock-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mock-card h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.mock-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 19px;
  min-height: 0;
  color: #83838d;
}
.mock-card .btn {
  width: auto;
  margin: 0;
  background: #f6f6f7;
  border-color: #e7e7eb;
  border-radius: 20px;
  min-height: 31px;
  font-size: 11px;
  padding: 7px 13px;
}
.source-tag {
  font-size: 9px;
  background: #f4f4f6;
  color: #797985;
  border-radius: 4px;
  padding: 4px 6px;
}
.sectional-surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}
.sectional-select-label {
  display: block;
  font-size: 11px;
  color: #81818a;
  padding: 18px 20px 0;
}
.sectional-select-label select {
  display: block;
  width: 100%;
  margin-top: 9px;
  min-height: 41px;
  font-size: 13px;
  border-radius: 5px;
}
.sectional-attempt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 20px 20px;
}
.sectional-attempt-row h2 {
  font-size: 16px;
  font-weight: 500;
}
.sectional-attempt-row p {
  font-size: 12px;
  color: #81818b;
  margin-top: 8px;
}
.sectional-note {
  font-size: 11px;
  color: #85858e;
  padding: 14px 20px;
  line-height: 1.8;
  border-top: 1px solid #f0f0f2;
  background: #fdfdfd;
}
.quiet-empty {
  font-size: 13px;
  color: #85858e;
  padding: 26px 0 14px;
}
.catalogue-resume {
  padding: 15px 18px;
  border-radius: 7px;
  background: #fff9f4;
  margin-bottom: 22px;
}
.catalogue-resume > div {
  display: block;
}
.catalogue-resume strong {
  font-size: 13px;
}
.catalogue-resume small {
  font-size: 11px;
  margin-top: 5px;
}
.analysis-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px 20px;
  margin-bottom: 16px;
}
.analysis-callout .eyebrow {
  display: none;
}
.analysis-callout h2 {
  font-size: 15px;
  font-weight: 500;
}
.analysis-callout p {
  font-size: 12px;
  margin-top: 6px;
  color: #81818b;
}
.analysis-callout .text-link {
  color: #c45c23;
}
.analytics-grid {
  gap: 16px;
  margin-bottom: 18px;
}
.analytics-grid .card {
  padding: 20px;
}
.insight-card {
  background: #fff;
}
.insight-card p {
  font-size: 13px;
  line-height: 1.8;
}
.data-table {
  font-size: 12px;
}
.data-table th {
  font-size: 11px;
  font-weight: 500;
  color: #757580;
  letter-spacing: 0;
  text-transform: none;
  padding: 13px 12px;
}
.data-table td {
  padding: 15px 12px;
  font-size: 12px;
}
.data-table td strong {
  font-size: 12px;
  font-weight: 500;
}
.history-type-tabs {
  gap: 20px;
  margin-bottom: 20px;
}
.history-type-tabs a {
  font-size: 12px;
  padding: 10px 0;
}
.result-stats {
  border-radius: 8px;
  margin-bottom: 20px;
}
.result-stats > div {
  padding: 22px 19px;
}
.result-stats strong {
  font-size: 28px;
  font-weight: 600;
}
.result-stats span {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.result-stats p {
  font-size: 11px;
  line-height: 1.8;
}
.result-score {
  background: #f9f9fb;
}
.result-score strong {
  font-size: 34px;
  color: #262630;
}
.analysis-tabs {
  gap: 24px;
  margin-bottom: 22px;
}
.analysis-tabs button {
  font-size: 12px;
  padding: 12px 0;
}
.analysis-overview-grid {
  gap: 16px;
  margin-bottom: 18px;
}
.overview-summary h2,
.related-promo h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.overview-summary p,
.related-promo p {
  font-size: 13px;
  line-height: 1.8;
  color: #74747f;
}
.related-promo {
  background: #fff;
  display: block;
}
.related-promo .eyebrow,
.overview-summary .eyebrow {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8b8b96;
}
.section-performance h3 {
  font-size: 13px;
  font-weight: 500;
}
.unlock-panel {
  padding: 28px 22px;
  border-radius: 8px;
}
.unlock-panel h3 {
  font-size: 19px;
}
.unlock-panel > .mouse-icon {
  width: 36px;
  height: 36px;
}
.unlock-panel p {
  font-size: 13px;
  line-height: 1.8;
}
.membership-grid {
  gap: 18px;
}
.membership-full {
  background: #222225;
  border-radius: 8px;
  padding: 28px;
}
.membership-free {
  padding: 28px;
}
.membership-price {
  font-size: 42px;
  font-weight: 600;
}
.membership-price span {
  font-size: 12px;
}
.feature-list {
  font-size: 13px;
  gap: 18px;
}
.membership-head h2,
.membership-free h2 {
  font-size: 23px;
}
.membership-full .text-link {
  color: #d8d8de;
  font-size: 12px;
}
.question-item {
  border-radius: 7px;
  box-shadow: none;
}
#app-dialog {
  border-radius: 12px;
}
@media (max-width: 1150px) {
  .practice-shortcuts {
    grid-template-columns: 1fr;
  }
  .practice-shortcuts > a {
    padding: 15px 17px;
  }
  .practice-shortcuts strong {
    font-size: 13px;
  }
  .practice-shortcuts small {
    font-size: 11px;
  }
  .practice-shortcuts {
    gap: 8px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daily-meter {
    width: 70px;
  }
  .daily-focus-row {
    gap: 15px;
  }
  .topic-entry {
    grid-template-columns: minmax(150px, 1fr) 100px 96px;
    gap: 15px;
  }
}
@media (max-width: 950px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -250px;
    width: 220px;
    visibility: hidden;
    overflow: auto;
    transition:
      left 0.2s,
      visibility 0.2s;
  }
  .sidebar.is-open {
    left: 0;
    visibility: visible;
    box-shadow: 10px 0 40px #0004;
  }
  .sidebar .sidebar-close {
    display: inline-flex;
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 24px;
  }
  .app-header {
    padding: 0 22px;
  }
  .workspace-main {
    padding: 24px 22px 38px;
  }
  .daily-meter {
    width: 100px;
  }
  .topic-entry {
    grid-template-columns: minmax(160px, 1fr) 120px 100px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .sidebar-close {
    color: #777780;
    background: #f3f3f5;
  }
}
@media (max-width: 700px) {
  .app-header {
    height: 55px;
    padding: 0 16px;
  }
  .workspace-main {
    padding: 22px 16px 34px;
  }
  .header-left,
  .header-right {
    gap: 12px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .preview-label {
    display: none;
  }
  .page-heading h1,
  .catalogue-heading h1 {
    font-size: 24px;
  }
  .page-heading p,
  .catalogue-heading p {
    font-size: 12px;
  }
  .page-heading,
  .catalogue-heading {
    margin-bottom: 20px;
  }
  .daily-focus-row {
    flex-wrap: wrap;
    padding: 17px;
  }
  .daily-focus-row > div:first-child {
    width: 100%;
  }
  .daily-meter {
    margin: 0;
    flex: 1;
  }
  .daily-focus-row .btn {
    margin-left: 12px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat > span {
    font-size: 11px;
  }
  .stat > strong {
    font-size: 26px;
  }
  .stat > small {
    font-size: 10px;
  }
  .card {
    padding: 18px;
  }
  .section-heading h2,
  .card h2 {
    font-size: 16px;
  }
  .section-heading .text-link {
    font-size: 11px;
  }
  .practice-shortcuts {
    margin-bottom: 25px;
  }
  .recent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .recent-row > .session-symbol {
    display: none;
  }
  .recent-row > div > strong {
    font-size: 12px;
  }
  .recent-row > .text-link {
    grid-column: 1/-1;
    justify-self: start;
    font-size: 11px;
  }
  .recent-score > strong {
    font-size: 15px;
  }
  .recent-score {
    min-width: 0;
  }
  .catalogue-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .catalogue-tabs button {
    min-height: 49px;
    padding: 9px 11px;
  }
  .catalogue-tabs button strong {
    font-size: 13px;
  }
  .catalogue-tabs button span {
    display: none;
  }
  .catalogue-heading > .btn {
    font-size: 11px;
    min-height: 33px;
    padding: 7px 10px;
    max-width: none;
  }
  .catalogue-heading > .btn svg {
    display: none;
  }
  .catalogue-topline {
    font-size: 11px;
    gap: 10px;
  }
  .catalogue-topline > div {
    font-size: 11px;
  }
  .catalogue-topline .text-link {
    font-size: 11px;
  }
  .catalogue-tools {
    gap: 12px;
    flex-wrap: wrap;
  }
  .catalogue-tools .search-box {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .catalogue-access {
    font-size: 11px;
  }
  .topic-group-heading {
    padding: 13px 16px;
  }
  .topic-group-heading h2 {
    font-size: 14px;
  }
  .topic-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 83px;
    padding: 15px 16px;
    gap: 10px 14px;
  }
  .topic-entry-name {
    grid-column: 1;
  }
  .topic-entry-name h3 {
    font-size: 13px;
  }
  .topic-entry-name p {
    font-size: 10px;
    line-height: 1.8;
  }
  .topic-free {
    display: none;
  }
  .topic-progress {
    grid-column: 1;
    grid-row: 2;
    max-width: 150px;
    margin-top: 0;
  }
  .topic-progress > small {
    font-size: 9px;
    margin-top: 5px;
    text-align: left;
  }
  .topic-start {
    grid-column: 2;
    grid-row: 1/3;
    min-width: 83px;
    font-size: 11px;
    gap: 7px;
    min-height: 33px;
    padding: 7px 10px;
  }
  .topic-catalogue {
    gap: 14px;
  }
  .catalogue-bottom {
    font-size: 10px;
    display: block;
    line-height: 1.8;
  }
  .catalogue-bottom .text-link {
    font-size: 11px;
    display: inline-flex;
    margin-top: 12px;
  }
  .mock-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mock-card {
    min-height: 136px;
    padding: 19px;
  }
  .mock-card h2 {
    font-size: 14px;
  }
  .mock-card p {
    font-size: 11px;
  }
  .mock-card .btn {
    font-size: 11px;
  }
  .sectional-select-label {
    padding: 17px 17px 0;
  }
  .sectional-attempt-row {
    padding: 20px 17px;
    gap: 12px;
  }
  .sectional-attempt-row h2 {
    font-size: 14px;
  }
  .sectional-attempt-row p {
    font-size: 11px;
    line-height: 1.8;
  }
  .sectional-attempt-row .btn {
    flex-shrink: 0;
    font-size: 11px;
    min-height: 33px;
    padding: 8px 11px;
  }
  .sectional-note {
    padding: 13px 17px;
    font-size: 10px;
  }
  .sectional-history .section-heading > span {
    font-size: 11px;
  }
  .quiet-empty {
    font-size: 12px;
    line-height: 1.8;
  }
  .analysis-callout {
    padding: 17px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .analysis-callout h2 {
    font-size: 14px;
  }
  .analysis-callout p {
    font-size: 12px;
  }
  .analysis-overview-grid {
    grid-template-columns: 1fr;
  }
  .result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-stats > div {
    padding: 18px 14px;
  }
  .result-stats strong {
    font-size: 26px;
  }
  .result-stats span {
    font-size: 9px;
  }
  .result-stats p {
    font-size: 10px;
  }
  .analysis-tabs {
    gap: 19px;
    overflow: auto;
    flex-wrap: nowrap;
  }
  .analysis-tabs button {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .history-type-tabs {
    gap: 18px;
    overflow: auto;
  }
  .history-type-tabs a {
    font-size: 11px;
    white-space: nowrap;
  }
  .membership-grid {
    grid-template-columns: 1fr;
  }
  .membership-full,
  .membership-free {
    padding: 24px;
  }
  .feature-list {
    font-size: 13px;
  }
  .membership-price {
    font-size: 42px;
  }
}

/* Keep secondary information legible against the restrained white surface. */
.page-heading p,
.catalogue-heading p,
.topic-entry-name p,
.recent-row small,
.sectional-note,
.sectional-attempt-row p,
.mock-card p,
.stat > small,
.stat > span,
.quiet-empty {
  color: #70707b;
}

.result-stats > .result-score {
  background: #fff6ef;
  color: #262630;
  border: 1px solid #f0e2d8;
}
.result-stats > .result-score strong {
  color: #262630;
}
.result-stats > .result-score > span {
  color: #9a4b25;
}
.result-stats > .result-score small,
.result-stats > .result-score p {
  color: #76717a;
}

/* Professional presentation: restrained actions and readable working labels. */
.app-shell .nav-item {
  font-size: 14px;
}
.app-shell .btn.primary {
  background: #252529;
  border-color: #252529;
  color: #fff;
}
.app-shell .btn.primary:hover {
  background: #3b3b42;
  border-color: #3b3b42;
}
.page-heading p,
.catalogue-heading p {
  font-size: 14px;
}
.topic-entry-name h3 {
  font-size: 15px;
}
.topic-entry-name p,
.topic-progress > small,
.catalogue-access,
.catalogue-bottom,
.catalogue-topline,
.stat > small,
.recent-row small {
  font-size: 12px;
}
.app-shell .text-link,
.topic-start,
.history-type-tabs a,
.analysis-tabs button {
  font-size: 14px;
}
.app-shell .nav-item.active {
  color: #904c28;
  background: #f5f0eb;
}
.plan-price,
.membership-price {
  font-weight: 600;
}
@media (max-width: 700px) {
  .topic-entry {
    padding: 16px;
  }
  .topic-entry-name h3 {
    font-size: 14px;
  }
  .topic-start {
    font-size: 12px;
  }
  .app-shell .text-link {
    font-size: 12px;
  }
  .page-heading p,
  .catalogue-heading p {
    font-size: 13px;
  }
}

.catalogue-bottom {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.membership-full .btn.primary {
  background: #f5f5f7;
  border-color: #f5f5f7;
  color: #242428;
}
.membership-full .btn.primary:hover {
  background: #e4e4e9;
  border-color: #e4e4e9;
}

/* Student portal refinements: the test room keeps its own approved theme. */
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin-variable-400-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin-variable-700-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
}
.app-body { min-width: 0; }
.app-shell { background: #f7f9f8; }
.sidebar { border-right-color: #e0e7e3; }
.sidebar > .brand { margin-bottom: 30px; }
.app-shell .nav-item { min-height: 44px; border-radius: 8px; color: #505b55; }
.app-shell .nav-item.active { color: #a44416; background: #fff0e6; font-weight: 600; }
.sidebar-bottom { margin-top: auto; }
.local-status { color: #63706a; line-height: 1.6; }
.sidebar-backdrop { display: none; }
.app-header { border-bottom-color: #e1e7e4; }
.preview-label { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #64716a; }
.avatar { width: 36px; height: 36px; background: #f1f5f3; color: #164f40; border: 1px solid #dce7e1; }
.page-heading h1, .catalogue-heading h1 { font-size: clamp(25px, 2.3vw, 32px); font-weight: 650; letter-spacing: -.035em; }
.page-heading p, .catalogue-heading p { color: #5e6c64; max-width: 70ch; }
.card, .topic-group { border-color: #e1e7e3; border-radius: 12px; }
.topic-group-heading { background: #f7faf8; border-bottom-color: #e4eae6; }
.topic-group-heading h2 { font-size: 17px; }
.topic-entry-name p, .topic-progress > small, .catalogue-access, .catalogue-bottom, .catalogue-topline, .stat > small, .recent-row small { color: #626e67; line-height: 1.6; }
.topic-entry { gap: 24px; }
.topic-entry-name h3 { font-size: 15px; font-weight: 600; }
.app-shell .btn, #app-dialog .btn { border-radius: 8px; min-height: 42px; }
.app-shell .btn.primary { background: #202724; border-color: #202724; }
.app-shell .btn.primary:hover { background: #123e31; border-color: #123e31; }
.app-shell .btn.outline { color: #34483e; border-color: #d5dfd8; }
.app-shell .btn.outline:hover { background: #f0f6f2; border-color: #afc5b7; }
.app-shell .text-link { color: #17664e; }
.app-shell .text-link:hover { color: #0d4937; }
.catalogue-tools { align-items: center; }
.catalogue-tools .search-box { min-height: 44px; border-radius: 8px; }
.catalogue-tools .search-box input { min-height: 40px; }
.progress-segments i, .daily-meter i { background: #158568; }
.analytics-loading-note { align-items: flex-start; margin-bottom: 20px; }
.analytics-loading-note p { margin: 6px 0 0; line-height: 1.6; }
.access-card { max-width: 780px; }
.access-card > p { color: #5f6e65; margin-top: 12px; line-height: 1.7; }
.settings-lines { margin: 22px 0; }
.settings-lines > div { gap: 20px; }
.review-main { container-type: inline-size; padding: 0; overflow: hidden; min-width: 0; }
.review-reader-grid { display: grid; min-width: 0; }
.review-response { min-width: 0; padding: 24px; }
.review-passage { min-width: 0; padding: 24px; background: #f7faf8; border-bottom: 1px solid #e1e8e3; }
.review-passage > h3 { margin: 0 0 18px; color: #29644f; font: 650 13px/1.5 Inter, Arial, sans-serif; letter-spacing: .02em; }
.review-passage-copy { font: 400 15px/1.85 Inter, Arial, sans-serif; color: #283a30; overflow-wrap: anywhere; }
.review-passage-copy p { margin: 0 0 1.1em; }
.review-passage-copy > :last-child { margin-bottom: 0; }
.review-passage-copy .set-table { font-size: 13px; }
.review-question-header { padding: 0 0 20px; border-bottom: 1px solid #e4eae6; }
.review-question-header h2 { font-size: 18px; font-weight: 550; line-height: 1.8; letter-spacing: -.01em; color: #23362a; }
.review-question-meta { gap: 10px; display: flex; flex-wrap: wrap; align-items: center; font-size: 11px; }
.review-question-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; color: #65736b; font-size: 12px; }
.review-bookmark { font-size: 12px; white-space: nowrap; }
.review-bookmark.is-saved { background: #eaf5ee; border-color: #96bba7; color: #14563c; }
.review-bookmark.is-saved svg { fill: #d4e9dc; }
.review-solution-label { font: 650 13px/1.5 Inter, Arial, sans-serif; color: #4c6255; margin: 20px 0 16px; }
.review-response .solution-body { padding: 0; }
.review-response .explanation { line-height: 1.8; }
.review-response .solution-options > div { min-height: 52px; align-items: flex-start; }
.review-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e0e8e2; padding-top: 18px; margin-top: 24px; }
.review-pagination > span { font-size: 12px; color: #627366; }
.review-question-list { scrollbar-width: none; }
.review-question-list::-webkit-scrollbar { display: none; }
@container (min-width: 650px) {
  .review-reader-grid.has-context { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: start; }
  .review-reader-grid.has-context .review-passage { border-right: 1px solid #e1e8e3; border-bottom: 0; max-height: 75vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbcdc1 transparent; }
}
@media (min-width: 1200px) {
  .review-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
  .review-rail { padding: 16px; }
  .review-question-list button { gap: 8px; }
}
@media (max-width: 700px) {
  body.navigation-open { overflow: hidden; }
  .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 39; border: 0; border-radius: 0; background: rgb(12 29 21 / 32%); }
  .sidebar { width: min(290px, 86vw); max-height: 100dvh; padding: 28px 16px 22px; }
  .sidebar.is-open { box-shadow: 16px 0 40px rgb(18 42 29 / 15%); }
  .sidebar-close { color: #20392b; width: 40px; height: 40px; right: 8px; top: 9px; }
  .app-shell .nav-item { min-height: 46px; font-size: 14px; }
  .preview-label { max-width: 115px; }
  .workspace-main { padding: 24px 18px 40px; }
  .topic-entry { gap: 14px; }
  .topic-start { min-height: 42px; font-size: 13px; }
  .app-shell .text-link { min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; }
  .review-response, .review-passage { padding: 18px; }
  .review-passage-copy { font-size: 14px; line-height: 1.85; }
  .review-question-header h2 { font-size: 17px; }
  .review-pagination .btn { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* Reference-inspired portal shell. The approved test room renders outside it. */
.portal-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  background: #f7f7f3;
  color: #20231f;
  font-family: Inter, Arial, sans-serif;
}
.portal-shell > .sidebar {
  background: #191c19;
  color: #b9beb6;
  border-right: 1px solid #2b3029;
  padding: 30px 16px 20px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #454b40 transparent;
}
.portal-shell .sidebar > .brand {
  color: #f7f7f2;
  font: 800 19px/1.2 Manrope, Inter, Arial, sans-serif;
  letter-spacing: -.8px;
  gap: 8px;
  margin: 0 8px 38px;
  flex-shrink: 0;
}
.portal-shell .sidebar .brand-number {
  color: #ff641f;
  font: 800 32px/1 Manrope, Inter, Arial, sans-serif;
  letter-spacing: -2.3px;
}
.portal-shell .sidebar .brand-dot { color: #ff641f; }
.portal-shell .workspace-label {
  color: #999f93;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.5;
  padding: 0 12px 13px;
}
.portal-shell .sidebar nav { gap: 4px; flex-shrink: 0; }
.portal-shell .sidebar .nav-item {
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  gap: 11px;
  color: #c0c5bc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  transition: background-color .15s, color .15s;
}
.portal-shell .sidebar .nav-item svg { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; }
.portal-shell .sidebar .nav-item:hover { color: #fff; background: #272c25; }
.portal-shell .sidebar .nav-item.active {
  color: #ffb78f;
  background: #35281f;
  box-shadow: inset 2px 0 #ff641f;
  font-weight: 600;
}
.portal-shell .sidebar .nav-item.active svg { color: #ff9e66; opacity: 1; }
.portal-shell .sidebar .nav-item b {
  min-width: 21px;
  padding: 2px 5px;
  text-align: center;
  color: #d4d9cd;
  background: #343c30;
  font-size: 10px;
  font-weight: 600;
}
.portal-shell .sidebar-sections {
  margin: 29px 0 24px;
  padding-top: 22px;
  border-top: 1px solid #32372f;
  flex-shrink: 0;
}
.portal-shell .section-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 13px;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b5bcae;
  font-size: 12px;
  line-height: 1.5;
  transition: color .15s, background-color .15s;
}
.portal-shell .section-short {
  display: grid;
  place-items: center;
  min-height: 29px;
  border: 1px solid #3d4536;
  border-radius: 6px;
  color: #d4d9cd;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
}
.portal-shell .section-link > svg { opacity: .55; }
.portal-shell .section-link:hover { color: #fff; background: #272c25; }
.portal-shell .section-link[aria-current="page"] { color: #f5dfcc; background: #2b2820; }
.portal-shell .section-link[aria-current="page"] .section-short { color: #ffb68a; background: #392b20; border-color: #6b4830; }
.portal-shell .sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #32372f;
  flex-shrink: 0;
}
.portal-shell .sidebar-account {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 19px 12px 3px;
}
.portal-shell .sidebar-account > div { min-width: 0; }
.portal-shell .sidebar-account strong { display: block; color: #d3d9cc; font-size: 11px; font-weight: 500; line-height: 1.5; }
.portal-shell .account-status-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #929c87; margin-top: 5px; }
.portal-shell .is-signed-in > .account-status-dot { background: #56c99a; box-shadow: 0 0 0 3px rgb(69 181 132 / 10%); }
.portal-shell .sidebar .local-status { display: block; padding: 0; margin: 4px 0 0; color: #a7b09e; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.portal-shell .sidebar .local-status::before { display: none; }
.portal-shell .sidebar a:focus-visible,
.portal-shell .sidebar button:focus-visible { outline: 2px solid #ffa470; outline-offset: 3px; }
.portal-shell .app-header {
  height: 64px;
  padding: 0 36px;
  background: #fff;
  border-bottom: 1px solid #e5e7df;
  backdrop-filter: none;
}
.portal-shell .header-left { min-width: 0; gap: 13px; }
.portal-shell .header-right { gap: 16px; flex-shrink: 0; margin-left: 18px; }
.portal-shell .breadcrumb { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; line-height: 1.5; }
.portal-shell .breadcrumb > span { padding: 0; }
.portal-shell .breadcrumb-root { color: #7b8274; font-weight: 400; }
.portal-shell .breadcrumb-divider { color: #c6cbc0; font-weight: 400; }
.portal-shell .breadcrumb > strong { color: #3d4636; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-shell .preview-label { color: #747f6a; font-size: 11px; max-width: 180px; }
.portal-shell .preview-label.is-signed-in::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; background: #258465; border-radius: 50%; }
.portal-shell .app-header .account-action { color: #425339; font-size: 12px; font-weight: 600; min-height: 38px; padding: 7px 0; }
.portal-shell .app-header .account-action:hover { color: #176b50; }
.portal-shell .app-header .avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #f0f4ec;
  border: 1px solid #dfe7d7;
  color: #446235;
  font-size: 12px;
  font-weight: 650;
}
.portal-shell .app-header .avatar:hover { background: #e5efde; border-color: #c0d1b5; }
.portal-shell .app-header button:focus-visible { outline: 2px solid #168364; outline-offset: 3px; }
.portal-shell .workspace-main { max-width: 1450px; padding: 32px 36px 48px; }
@media (min-width: 951px) {
  .portal-shell { display: grid; }
  .portal-shell > .sidebar { position: sticky; left: auto; width: auto; visibility: visible; transform: none; }
  .portal-shell .sidebar-close, .portal-shell .mobile-menu { display: none; }
}
@media (min-width: 951px) and (max-width: 1150px) {
  .portal-shell .app-header { padding-inline: 26px; }
  .portal-shell .workspace-main { padding: 28px 26px 44px; }
}
@media (max-width: 950px) {
  body.navigation-open { overflow: hidden; }
  .portal-shell { display: block; }
  .portal-shell > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(290px, 86vw);
    max-height: 100dvh;
    padding: 32px 18px 22px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .2s, visibility .2s;
  }
  .portal-shell > .sidebar.is-open { visibility: visible; transform: translateX(0); box-shadow: 16px 0 48px rgb(14 24 12 / 24%); }
  .portal-shell .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 39; border: 0; border-radius: 0; background: rgb(15 24 13 / 38%); }
  .portal-shell .sidebar > .brand { margin-bottom: 34px; }
  .portal-shell .sidebar-close { display: inline-grid; place-items: center; position: absolute; top: 11px; right: 8px; width: 40px; height: 40px; background: transparent; border: 0; color: #c5cdbc; }
  .portal-shell .sidebar-close:hover { color: #fff; background: #2b3225; }
  .portal-shell .mobile-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; color: #46553c; border-radius: 8px; }
  .portal-shell .sidebar .nav-item { min-height: 46px; font-size: 14px; }
  .portal-shell .section-link { min-height: 46px; }
  .portal-shell .app-header { padding: 0 22px; }
  .portal-shell .workspace-main { padding: 28px 24px 42px; }
}
@media (max-width: 700px) {
  .portal-shell .app-header { height: 60px; padding-inline: 15px; }
  .portal-shell .header-left { gap: 8px; }
  .portal-shell .header-right { gap: 12px; margin-left: 12px; }
  .portal-shell .breadcrumb-root, .portal-shell .breadcrumb-divider, .portal-shell .preview-label { display: none; }
  .portal-shell .breadcrumb { font-size: 12px; }
  .portal-shell .app-header .account-action { min-height: 40px; }
  .portal-shell .app-header .avatar { width: 34px; height: 34px; }
  .portal-shell .workspace-main { padding: 26px 18px 40px; }
}
@media (max-height: 740px) and (min-width: 951px) {
  .portal-shell > .sidebar { padding-top: 24px; }
  .portal-shell .sidebar > .brand { margin-bottom: 26px; }
  .portal-shell .sidebar-sections { margin-top: 22px; margin-bottom: 20px; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-shell > .sidebar, .portal-shell .sidebar .nav-item, .portal-shell .section-link { transition: none; }
}
