:root {
  --bg: #f7f8f4;
  --panel: #ffffff;
  --panel-2: #f0f3ee;
  --line: #dce2da;
  --text: #18201c;
  --muted: #5b655f;
  --blue: #4668ff;
  --blue-dark: #2f4ce0;
  --ruby: #e3485f;
  --red: #c1121f;
  --gold: #d99a10;
  --shadow: 0 18px 45px rgba(24, 32, 28, 0.09);
  --soft-shadow: 0 10px 28px rgba(24, 32, 28, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 9%, rgba(70, 104, 255, 0.055), transparent 28%),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(24, 32, 28, 0.1);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(24, 32, 28, 0.05);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  color: white;
}

.nav-links {
  gap: clamp(10px, 2vw, 22px);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 17px;
}

.dashboard {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 64px;
}

.minimal-dashboard {
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 8vw, 5.5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.minimal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.62fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.93);
  padding: clamp(22px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.minimal-copy {
  display: grid;
  align-content: center;
  min-height: 330px;
}

.minimal-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  min-width: 172px;
  border: 0;
  background: var(--blue);
  color: white;
  box-shadow: inset 0 -4px 0 var(--blue-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.resume-card,
.streak-card,
.xp-activity-card,
.core-card,
.minimal-task {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--soft-shadow);
}

.resume-card {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(20px, 4vw, 30px);
}

.resume-question-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 178px);
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--text);
  font-size: clamp(4.8rem, 11vw, 7rem);
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 -6px 0 rgba(24, 32, 28, 0.06);
}

.resume-status-dot {
  position: absolute;
  right: -9px;
  top: -9px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.resume-status-dot.not-started {
  background: var(--blue);
  clip-path: polygon(50% 4%, 61% 34%, 94% 34%, 67% 53%, 78% 88%, 50% 67%, 22% 88%, 33% 53%, 6% 34%, 39% 34%);
}

.resume-status-dot.in-progress {
  width: 28px;
  height: 28px;
  border: 5px solid #d46a00;
  border-radius: 999px;
  background: transparent;
}

.resume-status-dot.correct {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 27px solid #2f8a32;
  background: transparent;
}

.resume-status-dot.correct::after,
.resume-status-dot.wrong::before,
.resume-status-dot.wrong::after {
  content: none;
}

.resume-status-dot.wrong {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #d84d38;
}

.resume-content {
  display: grid;
  gap: 8px;
}

.level-pill {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.resume-content p {
  margin: 0;
}

.minimal-stats {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
}

.streak-card,
.xp-activity-card {
  padding: clamp(18px, 3vw, 24px);
}

.stat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stat-head span,
.xp-activity-head span,
.core-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stat-head strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(3.8rem, 10vw, 5.8rem);
  font-weight: 650;
  line-height: 0.86;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.streak-today-message {
  margin: 18px 0 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.streak-goal-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-2);
}

.streak-goal-progress span {
  display: block;
  width: var(--streak-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease;
}

.day-dot {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-weight: 900;
}

.day-dot i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted);
  font-style: normal;
  box-shadow: inset 0 -3px 0 rgba(24, 32, 28, 0.09);
}

.day-dot svg {
  width: 23px;
  height: 23px;
}

.day-dot.saved i {
  background: rgba(70, 104, 255, 0.12);
  color: var(--blue);
  box-shadow: inset 0 -3px 0 rgba(70, 104, 255, 0.12), 0 0 18px rgba(70, 104, 255, 0.22);
}

.day-dot.frozen i {
  background: #f0f1ef;
  color: #aeb5af;
}

.day-dot.lost i {
  background: rgba(216, 77, 56, 0.1);
  color: #d84d38;
  box-shadow: inset 0 -3px 0 rgba(216, 77, 56, 0.08), 0 0 16px rgba(216, 77, 56, 0.2);
}

.day-dot.pending i {
  background: var(--panel-2);
  color: var(--muted);
}

.day-dot.today i {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.day-progress-count {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
}

.xp-activity-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.xp-activity-head strong {
  color: var(--text);
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 500;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.xp-activity-head strong.reward-metric {
  display: grid !important;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 7px;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem) !important;
  font-weight: 500 !important;
}

.xp-activity-head .reward-art {
  width: 0.58em;
  height: 0.58em;
}

.xp-activity-layout {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 20px auto;
  gap: 7px 9px;
  align-items: start;
}

.xp-month-spacer {
  grid-column: 1;
  grid-row: 1;
}

.xp-months {
  display: grid;
  grid-template-columns: repeat(12, 13px);
  column-gap: 3px;
  justify-content: start;
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.xp-months span {
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
}

.xp-day-labels {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  grid-column: 1;
  grid-row: 2;
  gap: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.xp-day-labels span:nth-child(1) {
  grid-row: 1;
}

.xp-day-labels span:nth-child(2) {
  grid-row: 3;
}

.xp-day-labels span:nth-child(3) {
  grid-row: 5;
}

.xp-heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 13px);
  grid-auto-columns: 13px;
  gap: 3px;
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
}

.xp-cell,
.xp-activity-legend i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(24, 32, 28, 0.06);
  border-radius: 2px;
  background: #e6e9e3;
}

.xp-cell.future {
  opacity: 0.38;
}

.xp-level-0 {
  background: #e6e9e3;
}

.xp-level-1 {
  background: #cfdcf8;
}

.xp-level-2 {
  background: #9fb8f1;
}

.xp-level-3 {
  background: #5f83dc;
}

.xp-level-4 {
  background: #244d9a;
}

.xp-activity-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.minimal-task {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 24px);
}

.minimal-task p {
  margin-bottom: 0;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.core-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.core-card:hover {
  border-color: rgba(70, 104, 255, 0.45);
  box-shadow: 0 20px 48px rgba(70, 104, 255, 0.12);
  transform: translateY(-2px);
}

.core-card strong {
  font-size: 1.22rem;
}

@media (max-width: 920px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .minimal-hero,
  .minimal-stats,
  .minimal-task,
  .core-grid {
    grid-template-columns: 1fr;
  }

  .minimal-copy {
    min-height: auto;
  }

  .resume-question-badge {
    width: 150px;
  }
}

@media (max-width: 560px) {
  .dashboard {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .minimal-hero {
    padding: 20px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .week-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .day-dot i {
    width: 36px;
    height: 36px;
  }

  .xp-activity-layout {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .xp-heatmap {
    grid-auto-columns: 11px;
    grid-template-rows: repeat(7, 11px);
    gap: 3px;
  }

  .xp-cell,
  .xp-activity-legend i {
    width: 11px;
    height: 11px;
  }

  .xp-day-labels {
    grid-template-rows: repeat(7, 11px);
    gap: 3px;
    font-size: 0.68rem;
  }
}

/* Homepage card polish. Scoped so shared application routes keep their own layout. */
.ps-dashboard-route .dashboard {
  width: min(1160px, calc(100% - 40px));
  padding: clamp(30px, 5vw, 64px) 0 72px;
}

.ps-dashboard-route .minimal-dashboard {
  gap: 28px;
}

.ps-dashboard-route .minimal-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 6vw, 76px);
  min-height: 430px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 30px 0 34px;
  box-shadow: none;
}

.ps-dashboard-route .minimal-copy {
  min-height: 0;
  padding-left: clamp(0px, 2vw, 24px);
}

.ps-dashboard-route .minimal-copy h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 6vw, 5rem);
  letter-spacing: 0;
  line-height: 0.96;
}

.ps-dashboard-route .minimal-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #53605a;
  line-height: 1.65;
}

.ps-dashboard-route .primary-action,
.ps-dashboard-route .secondary-action {
  min-height: 46px;
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ps-dashboard-route .primary-action:hover,
.ps-dashboard-route .secondary-action:hover {
  transform: translateY(-1px);
}

.ps-dashboard-route .primary-action:active,
.ps-dashboard-route .secondary-action:active,
.ps-dashboard-route .core-card:active {
  transform: translateY(0);
}

.ps-dashboard-route .primary-action:focus-visible,
.ps-dashboard-route .secondary-action:focus-visible,
.ps-dashboard-route .resume-card-action:focus-visible,
.ps-dashboard-route .core-card:focus-visible {
  outline: 3px solid rgba(103, 80, 232, 0.3);
  outline-offset: 3px;
}

.ps-dashboard-route .resume-card,
.ps-dashboard-route .streak-card,
.ps-dashboard-route .xp-activity-card,
.ps-dashboard-route .core-card {
  border-color: #e2e4eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 27, 37, 0.055);
}

.ps-dashboard-route .resume-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  gap: 20px;
  align-content: initial;
  overflow: hidden;
  padding: 26px;
}

.ps-dashboard-route .resume-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #6750e8;
}

.ps-dashboard-route .resume-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ps-dashboard-route .resume-question-badge {
  width: 68px;
  flex: 0 0 68px;
  border: 1px solid rgba(103, 80, 232, 0.24);
  border-radius: 8px;
  background: #f0edff;
  color: #4f3ac9;
  font-size: 2.25rem;
  box-shadow: none;
}

.ps-dashboard-route .resume-status-dot {
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
}

.ps-dashboard-route .resume-status-dot.in-progress {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.ps-dashboard-route .resume-status-dot.correct {
  width: 0;
  height: 0;
  border-right-width: 10px;
  border-bottom-width: 18px;
  border-left-width: 10px;
}

.ps-dashboard-route .resume-status-dot.wrong {
  width: 17px;
  height: 17px;
  border-radius: 3px;
}

.ps-dashboard-route .resume-labels {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-dashboard-route .level-pill,
.ps-dashboard-route .resume-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.ps-dashboard-route .level-pill {
  background: #f0edff;
  color: #5642c4;
}

.ps-dashboard-route .resume-status-label {
  border: 1px solid #e2e4eb;
  background: #fafafa;
  color: #59616d;
}

.ps-dashboard-route .resume-content {
  gap: 10px;
}

.ps-dashboard-route .resume-content h2 {
  margin: 0;
  color: #6750e8;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.ps-dashboard-route .resume-content h3 {
  color: #1b1b25;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.ps-dashboard-route .resume-content p {
  color: #667085;
  line-height: 1.55;
}

.ps-dashboard-route .resume-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: auto;
  border-top: 1px solid #ececf1;
  padding-top: 16px;
  color: #4f3ac9;
  font-weight: 850;
  text-decoration: none;
}

.ps-dashboard-route .resume-card-action svg,
.ps-dashboard-route .core-card-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 150ms ease;
}

.ps-dashboard-route .resume-card-action:hover svg,
.ps-dashboard-route .core-card:hover .core-card-arrow {
  transform: translateX(3px);
}

.ps-dashboard-route .minimal-stats {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.ps-dashboard-route .streak-card,
.ps-dashboard-route .xp-activity-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: 8px;
  padding: 26px;
}

.ps-dashboard-route .streak-card::before,
.ps-dashboard-route .xp-activity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 4px;
}

.ps-dashboard-route .streak-card::before {
  background: #c77800;
}

.ps-dashboard-route .xp-activity-card::before {
  background: #6750e8;
}

.ps-dashboard-route .stat-head,
.ps-dashboard-route .xp-activity-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.ps-dashboard-route .dashboard-card-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.ps-dashboard-route .dashboard-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 7px;
  background: #fff4df;
  color: #a96100;
}

.ps-dashboard-route .dashboard-card-icon-xp {
  background: #f0edff;
  color: #5b45d0;
}

.ps-dashboard-route .dashboard-card-icon svg,
.ps-dashboard-route .core-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ps-dashboard-route .dashboard-card-copy {
  display: grid;
  gap: 3px;
}

.ps-dashboard-route .dashboard-card-copy > span {
  color: #1b1b25;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.ps-dashboard-route .dashboard-card-copy small {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 650;
}

.ps-dashboard-route .streak-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: #667085;
}

.ps-dashboard-route .streak-total strong {
  margin: 0;
  color: #1b1b25;
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .streak-total span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: lowercase;
}

.ps-dashboard-route .streak-today {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  border-block: 1px solid #eceef2;
  padding: 17px 0 15px;
}

.ps-dashboard-route .streak-progress-label,
.ps-dashboard-route .week-history-heading,
.ps-dashboard-route .xp-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ps-dashboard-route .streak-progress-label > span,
.ps-dashboard-route .week-history-heading > span,
.ps-dashboard-route .xp-chart-heading > span,
.ps-dashboard-route .xp-total-copy > span,
.ps-dashboard-route .xp-quick-stats span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ps-dashboard-route .streak-progress-label strong {
  color: #1b1b25;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .streak-today-message {
  margin: 0;
  color: #53605a;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ps-dashboard-route .streak-goal-progress {
  height: 7px;
  background: #eef0f3;
}

.ps-dashboard-route .streak-goal-progress span {
  background: #6750e8;
}

.ps-dashboard-route .week-row {
  gap: 8px;
  margin-top: 12px;
}

.ps-dashboard-route .week-history-heading {
  margin-top: 18px;
}

.ps-dashboard-route .week-history-heading small,
.ps-dashboard-route .xp-chart-heading small {
  color: #7c8390;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: right;
}

.ps-dashboard-route .day-dot {
  gap: 7px;
  font-size: 0.78rem;
}

.ps-dashboard-route .day-dot i {
  width: 42px;
  height: 42px;
  box-shadow: none;
}

.ps-dashboard-route .xp-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 22px;
  padding-bottom: 20px;
}

.ps-dashboard-route .xp-total-copy {
  display: grid;
  gap: 5px;
}

.ps-dashboard-route .xp-total-copy strong,
.ps-dashboard-route .xp-total-copy strong.reward-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #1b1b25;
  font-size: clamp(2.45rem, 5vw, 3.6rem) !important;
  font-weight: 650 !important;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .xp-total-copy .xp-unit {
  color: #6750e8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ps-dashboard-route .xp-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  border-left: 1px solid #e7e8ed;
}

.ps-dashboard-route .xp-quick-stats > div {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.ps-dashboard-route .xp-quick-stats > div + div {
  margin-left: 18px;
  border-left: 1px solid #e7e8ed;
}

.ps-dashboard-route .xp-quick-stats strong {
  color: #292638;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .xp-chart-frame {
  display: grid;
  align-content: center;
  min-height: 0;
  border: 0;
  border-top: 1px solid #eceef2;
  border-radius: 0;
  background: transparent;
  padding: 17px 0 0;
}

.ps-dashboard-route .xp-chart-heading {
  margin-bottom: 13px;
}

.ps-dashboard-route .xp-activity-layout {
  width: max-content;
  grid-template-columns: 34px minmax(0, 1fr);
  margin-inline: auto;
}

.ps-dashboard-route .xp-months {
  grid-template-columns: repeat(12, 16px);
  column-gap: 4px;
}

.ps-dashboard-route .xp-day-labels {
  grid-template-rows: repeat(7, 16px);
  gap: 4px;
}

.ps-dashboard-route .xp-heatmap {
  grid-template-rows: repeat(7, 16px);
  grid-auto-columns: 16px;
  gap: 4px;
}

.ps-dashboard-route .xp-cell,
.ps-dashboard-route .xp-activity-legend i {
  width: 16px;
  height: 16px;
}

.ps-dashboard-route .xp-activity-legend {
  justify-content: center;
  margin-top: 12px;
}

.ps-dashboard-route .minimal-task {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1.3fr);
  gap: 28px;
  align-items: end;
  border: 0;
  border-top: 1px solid #dfe2e8;
  border-radius: 0;
  background: transparent;
  padding: 32px 0 0;
  box-shadow: none;
}

.ps-dashboard-route .minimal-task-heading p {
  max-width: 520px;
}

.ps-dashboard-route .core-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ps-dashboard-route .core-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 13px;
  min-height: 96px;
  align-content: initial;
  align-items: center;
  padding: 16px;
  box-shadow: none;
}

.ps-dashboard-route .core-card:hover {
  border-color: rgba(103, 80, 232, 0.42);
  box-shadow: 0 10px 24px rgba(55, 45, 120, 0.08);
  transform: translateY(-2px);
}

.ps-dashboard-route .core-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}

.ps-dashboard-route .core-card-practice .core-card-icon {
  background: #f0edff;
  color: #5b45d0;
}

.ps-dashboard-route .core-card-syllabus .core-card-icon {
  background: #e7f6f2;
  color: #147761;
}

.ps-dashboard-route .core-card-progress .core-card-icon {
  background: #fff3dc;
  color: #a96100;
}

.ps-dashboard-route .core-card-copy {
  display: grid;
  gap: 4px;
  color: #1b1b25;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.ps-dashboard-route .core-card-copy small {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.ps-dashboard-route .core-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.ps-dashboard-route .core-card-arrow {
  color: #8a91a0;
}

@media (max-width: 920px) {
  .ps-dashboard-route .minimal-hero,
  .ps-dashboard-route .minimal-stats,
  .ps-dashboard-route .minimal-task {
    grid-template-columns: 1fr;
  }

  .ps-dashboard-route .minimal-hero {
    min-height: 0;
    gap: 28px;
  }

  .ps-dashboard-route .minimal-copy {
    padding-left: 0;
  }

  .ps-dashboard-route .resume-card {
    min-height: 0;
  }

  .ps-dashboard-route .core-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ps-dashboard-route .dashboard {
    width: min(100% - 24px, 1160px);
    padding-top: 22px;
  }

  .ps-dashboard-route .minimal-dashboard {
    gap: 22px;
  }

  .ps-dashboard-route .minimal-hero {
    padding: 14px 0 24px;
  }

  .ps-dashboard-route .minimal-copy h1 {
    font-size: clamp(2.65rem, 14vw, 3.7rem);
  }

  .ps-dashboard-route .resume-card,
  .ps-dashboard-route .streak-card,
  .ps-dashboard-route .xp-activity-card {
    padding: 20px;
  }

  .ps-dashboard-route .resume-card-topline,
  .ps-dashboard-route .stat-head,
  .ps-dashboard-route .xp-activity-head {
    align-items: flex-start;
  }

  .ps-dashboard-route .streak-total {
    align-items: flex-end;
    flex-direction: column;
    gap: 1px;
  }

  .ps-dashboard-route .xp-total-row {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .ps-dashboard-route .xp-quick-stats {
    width: 100%;
    border-top: 1px solid #e7e8ed;
    border-left: 0;
    padding-top: 15px;
  }

  .ps-dashboard-route .xp-quick-stats > div {
    padding-left: 0;
  }

  .ps-dashboard-route .xp-quick-stats > div + div {
    margin-left: 14px;
    padding-left: 14px;
  }

  .ps-dashboard-route .week-history-heading,
  .ps-dashboard-route .xp-chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ps-dashboard-route .week-history-heading small,
  .ps-dashboard-route .xp-chart-heading small {
    text-align: left;
  }

  .ps-dashboard-route .resume-labels {
    align-items: flex-end;
    flex-direction: column;
  }

  .ps-dashboard-route .week-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .ps-dashboard-route .day-dot i {
    width: 34px;
    height: 34px;
  }

  .ps-dashboard-route .xp-chart-frame {
    min-height: 0;
    padding: 15px 0 0;
  }

  .ps-dashboard-route .xp-activity-layout {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px;
  }

  .ps-dashboard-route .xp-months {
    grid-template-columns: repeat(12, 14px);
    column-gap: 3px;
  }

  .ps-dashboard-route .xp-day-labels {
    grid-template-rows: repeat(7, 14px);
    gap: 3px;
  }

  .ps-dashboard-route .xp-heatmap {
    grid-template-rows: repeat(7, 14px);
    grid-auto-columns: 14px;
    gap: 3px;
  }

  .ps-dashboard-route .xp-cell,
  .ps-dashboard-route .xp-activity-legend i {
    width: 14px;
    height: 14px;
  }

  .ps-dashboard-route .core-grid {
    grid-template-columns: 1fr;
  }

  .ps-dashboard-route .core-card {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-dashboard-route .primary-action,
  .ps-dashboard-route .secondary-action,
  .ps-dashboard-route .resume-card-action svg,
  .ps-dashboard-route .core-card,
  .ps-dashboard-route .core-card-arrow,
  .ps-dashboard-route .streak-goal-progress span {
    transition: none;
  }
}

/* Split-panel learning summary */
.ps-dashboard-route .minimal-stats {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

.ps-dashboard-route .streak-board,
.ps-dashboard-route .xp-ledger {
  display: grid;
  align-content: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dedfe5;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  box-shadow: 0 12px 30px rgba(32, 29, 55, 0.06);
}

.ps-dashboard-route .streak-board::before,
.ps-dashboard-route .xp-ledger::before {
  display: none;
}

.ps-dashboard-route .streak-board {
  grid-template-columns: 142px minmax(0, 1fr);
}

.ps-dashboard-route .streak-score-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-right: 1px solid #efd9ad;
  background: #fff3d9;
  padding: 24px 20px;
  color: #533800;
}

.ps-dashboard-route .streak-score-icon,
.ps-dashboard-route .xp-score-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}

.ps-dashboard-route .streak-score-icon {
  background: #fff;
  color: #a45f00;
}

.ps-dashboard-route .streak-score-icon svg,
.ps-dashboard-route .xp-score-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ps-dashboard-route .streak-score-copy,
.ps-dashboard-route .xp-score-copy {
  display: grid;
  gap: 7px;
}

.ps-dashboard-route .streak-score-copy > span,
.ps-dashboard-route .xp-score-copy > span,
.ps-dashboard-route .streak-board-heading span,
.ps-dashboard-route .xp-ledger-heading > div > span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ps-dashboard-route .streak-score-copy p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #533800;
}

.ps-dashboard-route .streak-score-copy strong {
  font-size: clamp(2.7rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .streak-score-copy small {
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ps-dashboard-route .streak-score-copy em {
  color: #816326;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.4;
}

.ps-dashboard-route .streak-board-body,
.ps-dashboard-route .xp-ledger-body {
  min-width: 0;
  padding: 24px;
}

.ps-dashboard-route .streak-board-heading,
.ps-dashboard-route .xp-ledger-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ps-dashboard-route .streak-board-heading > div,
.ps-dashboard-route .xp-ledger-heading > div {
  display: grid;
  gap: 4px;
}

.ps-dashboard-route .streak-board-heading strong {
  color: #1b1b25;
  font-size: 1.45rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .streak-board-heading small,
.ps-dashboard-route .xp-ledger-heading small {
  color: #747b87;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.ps-dashboard-route .streak-progress-label {
  margin-top: 19px;
}

.ps-dashboard-route .streak-goal-progress {
  height: 10px;
  margin-top: 7px;
  background: #f0eee8;
}

.ps-dashboard-route .streak-goal-progress span {
  background: #c77800;
}

.ps-dashboard-route .streak-today-message {
  min-height: 38px;
  margin-top: 10px;
}

.ps-dashboard-route .streak-board .week-history-heading {
  margin-top: 17px;
  border-top: 1px solid #ececf0;
  padding-top: 16px;
}

.ps-dashboard-route .streak-board .week-row {
  gap: 5px;
  margin-top: 11px;
}

.ps-dashboard-route .streak-board .day-dot {
  gap: 5px;
  font-size: 0.7rem;
}

.ps-dashboard-route .streak-board .day-dot i {
  width: 34px;
  height: 34px;
}

.ps-dashboard-route .streak-board .day-dot svg {
  width: 18px;
  height: 18px;
}

.ps-dashboard-route .xp-ledger {
  grid-template-columns: 226px minmax(0, 1fr);
}

.ps-dashboard-route .xp-score-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  background: #2f2751;
  padding: 24px 22px;
  color: #fff;
}

.ps-dashboard-route .xp-score-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #d8d0ff;
}

.ps-dashboard-route .xp-score-copy > span,
.ps-dashboard-route .xp-score-copy small {
  color: #cfc8eb;
}

.ps-dashboard-route .xp-score-copy strong,
.ps-dashboard-route .xp-score-copy strong.reward-metric {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 2.65rem) !important;
  font-weight: 650 !important;
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
}

.ps-dashboard-route .xp-score-copy .reward-value {
  color: #fff !important;
}

.ps-dashboard-route .xp-score-copy .xp-unit {
  color: #b9abff;
  font-size: 0.72rem;
  font-weight: 900;
}

.ps-dashboard-route .xp-score-copy small {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
}

.ps-dashboard-route .xp-ledger-heading > div > span {
  color: #252231;
}

.ps-dashboard-route .xp-ledger-heading small {
  text-align: left;
}

.ps-dashboard-route .xp-ledger-period {
  color: #6750e8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ps-dashboard-route .xp-ledger .xp-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-block: 1px solid #e8e8ee;
  border-left: 0;
  padding: 13px 0;
}

.ps-dashboard-route .xp-ledger .xp-quick-stats > div {
  gap: 5px;
  padding: 0;
}

.ps-dashboard-route .xp-ledger .xp-quick-stats > div + div {
  margin-left: 16px;
  border-left: 1px solid #e8e8ee;
  padding-left: 16px;
}

.ps-dashboard-route .xp-ledger .xp-chart-frame {
  border: 0;
  padding: 16px 0 0;
}

.ps-dashboard-route .xp-ledger .xp-activity-layout {
  grid-template-columns: 30px minmax(0, 1fr);
}

.ps-dashboard-route .xp-ledger .xp-months {
  grid-template-columns: repeat(12, 14px);
  column-gap: 3px;
}

.ps-dashboard-route .xp-ledger .xp-day-labels {
  grid-template-rows: repeat(7, 14px);
  gap: 3px;
}

.ps-dashboard-route .xp-ledger .xp-heatmap {
  grid-template-rows: repeat(7, 14px);
  grid-auto-columns: 14px;
  gap: 3px;
}

.ps-dashboard-route .xp-ledger .xp-cell,
.ps-dashboard-route .xp-ledger .xp-activity-legend i {
  width: 14px;
  height: 14px;
}

.ps-dashboard-route .xp-ledger .xp-activity-legend {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .ps-dashboard-route .minimal-stats {
    grid-template-columns: 1fr;
  }

  .ps-dashboard-route .streak-board {
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  }

  .ps-dashboard-route .xp-ledger {
    grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .ps-dashboard-route .streak-board,
  .ps-dashboard-route .xp-ledger {
    grid-template-columns: 1fr;
  }

  .ps-dashboard-route .streak-score-panel,
  .ps-dashboard-route .xp-score-panel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(112, 91, 36, 0.2);
    padding: 20px;
  }

  .ps-dashboard-route .streak-score-copy,
  .ps-dashboard-route .xp-score-copy {
    gap: 5px;
  }

  .ps-dashboard-route .streak-score-copy p {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .ps-dashboard-route .streak-score-copy strong {
    font-size: 2.45rem;
  }

  .ps-dashboard-route .streak-score-copy em {
    display: none;
  }

  .ps-dashboard-route .xp-score-copy strong,
  .ps-dashboard-route .xp-score-copy strong.reward-metric {
    font-size: 2.35rem !important;
  }

  .ps-dashboard-route .streak-board-body,
  .ps-dashboard-route .xp-ledger-body {
    padding: 20px;
  }

  .ps-dashboard-route .streak-board-heading small {
    max-width: 120px;
  }

  .ps-dashboard-route .xp-ledger .xp-quick-stats {
    border-top: 1px solid #e8e8ee;
  }

  .ps-dashboard-route .xp-ledger .xp-chart-frame {
    padding-top: 15px;
  }
}
