:root {
  --bg: #f4f5f1;
  --canvas: #fbfcf8;
  --surface: #ffffff;
  --surface-subtle: #f1f4ef;
  --ink: #171b18;
  --muted: #66716a;
  --line: #dce2dc;
  --line-strong: #c8d1c9;
  --shadow: 0 18px 55px rgb(28 38 31 / 10%);
  --product-accent: #315f72;
  --product-accent-soft: #d7e7ed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8f9f5 0%, var(--bg) 48%),
    var(--bg);
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #19211c;
  border-right: 1px solid #2b362f;
  color: #f4f8f1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 16px;
}

.brand-lockup {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 12px;
  min-height: 52px;
  padding: 0 6px;
  text-decoration: none;
}

.brand-lockup strong,
.topbar strong,
.section-heading strong,
.action-row strong,
.timeline strong,
.sidebar-note strong {
  display: block;
}

.brand-lockup small,
.topbar span,
.section-heading span,
.metric span,
.profile-picker span,
.insight-panel span,
.readiness-card span,
.sidebar-note span {
  color: inherit;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0;
  opacity: 0.68;
}

.brand-mark {
  align-items: center;
  background: var(--product-accent-soft);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  color: #17201b;
  display: inline-flex;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.profile-picker {
  display: grid;
  gap: 8px;
  padding: 0 6px;
}

.profile-picker select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #dce6df 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #dce6df 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    #243027;
  border: 1px solid #3e4b43;
  border-radius: 8px;
  color: #f7faf5;
  min-height: 42px;
  padding: 0 34px 0 12px;
  width: 100%;
}

nav {
  display: grid;
  gap: 4px;
}

nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d9e2dc;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  text-align: left;
}

nav button span {
  align-items: center;
  background: rgb(255 255 255 / 8%);
  border-radius: 6px;
  color: #f7faf5;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

nav button.active,
nav button:hover {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.sidebar-note {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  margin-top: auto;
  padding: 14px;
}

.hidden {
  display: none;
}

main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.topbar strong {
  font-size: 1.35rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.primary-command,
.secondary-command {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
}

.primary-command {
  background: var(--product-accent);
  border: 1px solid color-mix(in srgb, var(--product-accent) 82%, #000);
  color: #ffffff;
}

.secondary-command {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #253028;
}

.hero,
.metric-grid,
.split,
.workbench,
.timeline,
.priority-plan,
.progress-charts,
.api-banner,
.app-state,
.onboarding-shell,
.account-grid,
.progress-layout {
  margin: 0 auto 18px;
  max-width: 1180px;
}

.api-banner {
  background: #fff8df;
  border: 1px solid #eadba1;
  border-radius: 8px;
  color: #685514;
  padding: 12px 14px;
}

.api-banner.error {
  background: #fff1ee;
  border-color: #e3b8ae;
  color: #8b3124;
}

.api-banner small {
  display: block;
  margin-top: 4px;
}

.app-state {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.app-state strong {
  display: block;
}

.app-state p {
  color: var(--muted);
  margin: 6px 0 0;
}

.active-session-card {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
}

.active-session-card p {
  flex: 1 1 420px;
}

.onboarding-shell {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  min-height: 380px;
  padding: 28px;
}

.onboarding-copy {
  align-self: center;
  max-width: 720px;
}

.onboarding-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  margin: 8px 0 12px;
}

.onboarding-copy p {
  color: #405047;
  font-size: 1.06rem;
  margin: 0;
}

.onboarding-copy small {
  color: var(--muted);
  display: block;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.guided-path {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-reset: path-step;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px;
}

.guided-path li {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 54px;
  padding: 10px;
}

.guided-path li::before {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 6px;
  color: var(--muted);
  content: counter(path-step);
  counter-increment: path-step;
  display: inline-flex;
  font-weight: 820;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.guided-path li.current::before,
.guided-path li.done::before {
  background: var(--product-accent);
  color: #ffffff;
}

.guided-path li span {
  color: var(--muted);
  font-size: 0.84rem;
  grid-column: 2;
}

.hero {
  align-items: stretch;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, #fff) 0%, #ffffff 56%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 250px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.hero::before {
  background: var(--accent);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0.92;
  position: absolute;
  top: 0;
  width: 6px;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 820;
  line-height: 1.02;
  margin: 8px 0 12px;
}

.hero p {
  color: #405047;
  font-size: 1.06rem;
  margin: 0;
  max-width: 680px;
}

.eyebrow {
  color: var(--product-accent);
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  max-width: 420px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.auth-form input {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.auth-form input:focus {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--product-accent) 18%, transparent);
  outline: none;
}

.hero-actions .soludeck-checkout {
  flex: 1 1 100%;
}

.soludeck-checkout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  margin-top: 4px;
  max-width: 920px;
  width: 100%;
}

.checkout-main,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-main {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-accent-soft) 64%, #ffffff), #ffffff 58%),
    #ffffff;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.checkout-badge {
  align-self: start;
  background: color-mix(in srgb, var(--product-accent) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--product-accent) 24%, #ffffff);
  border-radius: 6px;
  color: var(--product-accent);
  font-size: 0.8rem;
  font-weight: 820;
  padding: 5px 8px;
  width: fit-content;
}

.checkout-main h2 {
  font-size: 1.85rem;
  line-height: 1.08;
  margin: 0;
}

.checkout-main p,
.checkout-note span,
.checkout-summary dd,
.checkout-summary small {
  color: var(--muted);
}

.checkout-includes {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-includes li {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  position: relative;
}

.checkout-includes li::before {
  align-items: center;
  background: var(--product-accent);
  border-radius: 6px;
  color: #ffffff;
  content: "";
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.checkout-includes li::after {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 6px;
}

.checkout-note {
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.checkout-summary {
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.checkout-summary > span,
.checkout-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.checkout-summary > strong {
  color: var(--product-accent);
  font-size: 2.7rem;
  line-height: 0.95;
}

.checkout-summary dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
  padding-top: 12px;
}

.checkout-summary div {
  display: grid;
  gap: 2px;
}

.checkout-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.checkout-promo-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) max-content;
  padding-top: 12px;
}

.checkout-promo-form label {
  display: grid;
  gap: 6px;
}

.checkout-promo-form span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.checkout-promo-form input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 0 10px;
  text-transform: uppercase;
}

.checkout-promo-form button {
  align-self: end;
}

.payment-element-shell {
  background: var(--surface-subtle);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 86px;
  padding: 12px;
}

.payment-element-shell.is-ready {
  background: #ffffff;
  border-style: solid;
}

.payment-element-shell p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.checkout-continue {
  min-height: 46px;
}

.form-error {
  background: #fff1ee;
  border: 1px solid #e3b8ae;
  border-radius: 8px;
  color: #8b3124;
  padding: 10px 12px;
}

.hero-panel,
.metric,
.split > div,
.question-shell,
.insight-panel,
.timeline article,
.readiness-card,
.progress-layout > .domain-list {
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel {
  align-items: center;
  align-self: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 18px;
}

.hero-panel.readiness-panel {
  grid-template-columns: 1fr;
}

.hero-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.progress-readiness-panel small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 8px;
}

.readiness-goal-group {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.readiness-ring {
  align-items: center;
  background:
    radial-gradient(circle, #fff 58%, transparent 60%),
    conic-gradient(var(--product-accent) calc(var(--value) * 1%), #e4e9e4 0);
  border-radius: 50%;
  display: inline-flex;
  height: 104px;
  justify-content: center;
  flex: 0 0 104px;
  width: 104px;
}

.readiness-ring strong {
  color: var(--product-accent);
  line-height: 1;
  max-width: 76px;
  text-align: center;
}

.readiness-score {
  align-items: baseline;
  display: inline-flex;
  font-size: 1.55rem;
  gap: 1px;
  justify-content: center;
}

.readiness-score span {
  font-size: 0.9rem;
  opacity: 0.82;
}

.readiness-goal-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: min(170px, 100%);
}

.readiness-goal-text strong {
  color: #23362c;
  font-size: 1rem;
  line-height: 1.16;
}

.readiness-goal-text span,
.readiness-goal-text small {
  color: #56645d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.readiness-goal-text span {
  color: var(--product-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.readiness-goal-text small {
  display: block;
  overflow-wrap: anywhere;
}

.readiness-ring.loading {
  background:
    radial-gradient(circle, #fff 58%, transparent 60%),
    conic-gradient(#d7ddd7 100%, #d7ddd7 0);
}

.readiness-ring.loading strong {
  color: #66736c;
}

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

.metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.metric-wide {
  grid-column: span 3;
}

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

.metric-inline div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.metric strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.metric small,
.action-row small,
.timeline p,
.insight-panel p,
.readiness-card p,
.guidance-panel p,
.block-summary p,
.block-summary small {
  color: var(--muted);
}

.guidance-panel,
.block-summary {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  margin: 0 auto 18px;
  max-width: 1180px;
  padding: 18px;
}

.guidance-panel > div > span,
.block-summary > div > span {
  color: var(--product-accent);
  display: block;
  font-size: 0.82rem;
  font-weight: 780;
}

.guidance-panel strong,
.block-summary strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-top: 4px;
}

.block-summary {
  background: #f9fbf7;
  margin-bottom: 16px;
}

.block-summary-actions {
  align-content: center;
  display: grid;
  gap: 10px;
}

.block-summary-actions small {
  display: block;
}

.split,
.progress-layout,
.account-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.workbench {
  display: block;
}

.split > div,
.question-shell,
.insight-panel,
.readiness-card,
.account-overview,
.account-card,
.progress-layout > .domain-list {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading strong {
  font-size: 1.1rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 6px;
  max-width: 620px;
}

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

.action-row,
.answer-grid button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.action-row {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.action-rank {
  align-items: center;
  background: var(--product-accent-soft);
  border-radius: 999px;
  color: var(--product-accent);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.action-row small {
  grid-column: 2;
}

.action-row:hover,
.answer-grid button:hover {
  border-color: color-mix(in srgb, var(--product-accent) 56%, var(--line));
  box-shadow: 0 10px 24px rgb(28 38 31 / 8%);
  transform: translateY(-1px);
}

.answer-grid button.selected {
  background: color-mix(in srgb, var(--product-accent-soft) 58%, #ffffff);
  border-color: var(--product-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--product-accent) 16%, transparent);
}

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

.dashboard-category-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-category-section .section-heading {
  margin-bottom: 0;
}

.domain-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.4fr) 54px;
  min-height: 52px;
  padding: 0 12px;
}

.domain-row.band-row {
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(98px, auto);
  padding-bottom: 10px;
  padding-top: 10px;
}

.domain-row.band-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.domain-row.band-row strong {
  text-align: right;
}

meter {
  height: 8px;
  width: 100%;
}

meter::-webkit-meter-bar {
  background: #e8ede8;
  border: 0;
  border-radius: 999px;
}

meter::-webkit-meter-optimum-value,
meter::-webkit-meter-suboptimum-value,
meter::-webkit-meter-even-less-good-value {
  background: var(--product-accent);
  border-radius: 999px;
}

.above-target {
  color: #275b9f;
}

.at-target,
.strong {
  color: #23633d;
}

.near-target,
.steady {
  color: #806411;
}

.below-target,
.needs-work {
  color: #98423d;
}

.question-stem {
  color: #26322b;
  font-size: 1.08rem;
  margin: 0 0 18px;
}

.question-media {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.question-media figure {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.question-media img {
  border-radius: 6px;
  display: block;
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.question-media figcaption,
.question-media small {
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.practice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.session-status,
.local-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.review-shell,
.review-list,
.review-card {
  display: grid;
  gap: 16px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.review-filter-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.review-filter-panel summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 14px 16px;
}

.review-filter-panel summary::-webkit-details-marker {
  display: none;
}

.review-filter-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.review-filter-bar {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.review-filter-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.review-filter-group summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  padding: 10px 12px;
  text-transform: uppercase;
}

.review-filter-group summary::-webkit-details-marker {
  display: none;
}

.review-filter-group[open] summary {
  border-bottom: 1px solid var(--line);
}

.review-checkbox-list {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
  padding: 8px;
}

.review-checkbox-list label {
  align-items: start;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr);
}

.review-checkbox-list input {
  margin-top: 3px;
}

.review-checkbox-list span {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.25;
}

.review-filter-actions {
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.review-date-group {
  display: grid;
  gap: 10px;
}

.review-date-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 2px 2px 0;
}

.review-date-heading strong {
  font-size: 0.95rem;
}

.review-date-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-summary {
  align-items: center;
  cursor: pointer;
  display: block;
  list-style: none;
  padding: 14px 16px;
}

.review-summary::-webkit-details-marker {
  display: none;
}

.review-summary strong,
.review-summary small {
  display: block;
}

.review-summary strong {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.review-summary small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.review-card[open] .review-summary {
  border-bottom: 1px solid var(--line);
}

.review-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.review-answer-grid {
  margin-top: 12px;
}

.diagnostic-progress {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.diagnostic-progress span {
  color: var(--muted);
  font-size: 0.88rem;
}

.question-history {
  align-items: center;
  background: #eef8f3;
  border: 1px solid #bfdfcf;
  border-radius: 8px;
  color: #1d5b3d;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.question-history.review {
  background: #fff8df;
  border-color: #eadba1;
  color: #685514;
}

.question-history span {
  font-size: 0.86rem;
}

.diagnostic-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.diagnostic-results p {
  color: var(--muted);
  margin: 0;
}

.diagnostic-band-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

.diagnostic-score-list {
  display: grid;
  gap: 12px;
}

.score-band-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(140px, 1.1fr) minmax(150px, 1fr) minmax(0, 0.65fr);
  min-width: 0;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.score-band-row > * {
  min-width: 0;
}

button.score-band-row {
  cursor: pointer;
  font: inherit;
}

button.score-band-row.interactive:hover,
button.score-band-row.interactive:focus-visible {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--product-accent) 14%, transparent);
  outline: none;
}

.score-band-row span,
.score-band-label strong {
  display: block;
}

.score-band-row small,
.score-band-label small {
  color: var(--muted);
  font-size: 0.82rem;
}

.score-band {
  height: 26px;
  position: relative;
}

.score-band-empty {
  opacity: 0.72;
}

.score-band-track,
.score-band-range {
  border-radius: 999px;
  left: 0;
  position: absolute;
  right: 0;
  top: 10px;
}

.score-band-track {
  background: linear-gradient(
    to right,
    #c95c54 0%,
    #c95c54 65%,
    #e0bf3e 65%,
    #e0bf3e 75%,
    #4f9b67 75%,
    #4f9b67 88%,
    #4e8ed1 88%,
    #4e8ed1 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  height: 8px;
}

.score-band-range {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(23, 32, 27, 0.38);
  box-shadow: 0 1px 4px rgba(23, 32, 27, 0.12);
  height: 12px;
  left: calc(var(--lower) * 1%);
  right: calc((100 - var(--upper)) * 1%);
  top: 7px;
}

.score-band-marker {
  background: var(--product-accent);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--product-accent) 60%, var(--line));
  height: 18px;
  left: calc(var(--score) * 1%);
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  width: 18px;
}

.score-band-row.below-target .score-band-marker {
  background: #98423d;
}

.score-band-row.near-target .score-band-marker {
  background: #b18812;
}

.score-band-row.at-target .score-band-marker {
  background: #2f7d4f;
}

.score-band-row.above-target .score-band-marker {
  background: #2f6fb8;
}

.score-band-row.needs-baseline {
  border-style: dashed;
}

.baseline-needed {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.baseline-needed strong {
  font-size: 0.95rem;
}

.score-band-label {
  overflow-wrap: anywhere;
  text-align: right;
}

.session-status span {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #405047;
  font-size: 0.85rem;
  padding: 6px 9px;
}

.local-controls {
  margin-top: 8px;
}

.local-controls button {
  min-height: 34px;
}

.answer-grid span {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 780;
  height: 26px;
  justify-content: center;
  margin-right: 10px;
  width: 26px;
}

.answer-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
}

.answer-result.correct {
  background: #eef8ef;
  border-color: #b8d8bc;
}

.answer-result.incorrect {
  background: #fff3ef;
  border-color: #e4beb2;
}

.answer-result p {
  color: var(--muted);
  margin: 8px 0 0;
}

.source-reference {
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.source-reference > strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.answer-review-choice {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.answer-review-choice.correct-choice {
  background: #eef8ef;
  border-color: #b8d8bc;
}

.answer-review-choice.selected-incorrect {
  background: #fff3ef;
  border-color: #e4beb2;
}

.choice-line {
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.choice-line span {
  align-items: center;
  background: var(--surface-subtle);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 780;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.choice-source {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.answer-review-choice p,
.source-reference p {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

.answer-result small,
.readiness-card small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.insight-panel {
  align-content: start;
  display: grid;
  gap: 16px;
}

.insight-panel p {
  margin: 6px 0 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
}

.priority-plan {
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.plan-intro,
.plan-strategy-panel p {
  color: var(--muted);
  margin: -6px 0 18px;
  max-width: 760px;
}

.plan-strategy-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.plan-strategy-panel p {
  margin: 0;
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-tabs button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34443b;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  min-height: 40px;
  padding: 8px 12px;
}

.strategy-tabs button.active {
  background: var(--product-accent);
  border-color: var(--product-accent);
  color: #ffffff;
}

.custom-plan-controls {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 12px;
}

.custom-plan-controls label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 116px minmax(120px, 1fr) 48px;
}

.custom-plan-controls span,
.custom-plan-controls strong {
  font-size: 0.88rem;
}

.custom-plan-controls input {
  accent-color: var(--product-accent);
  width: 100%;
}

.priority-list {
  display: grid;
  gap: 12px;
}

.priority-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr) 112px;
  padding: 16px;
}

.priority-rank {
  align-items: center;
  background: var(--product-accent-soft);
  border-radius: 8px;
  color: #17201b;
  display: inline-flex;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.priority-main {
  display: grid;
  gap: 8px;
}

.priority-main span,
.priority-main small,
.priority-meta,
.priority-score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.priority-main span {
  color: var(--product-accent);
  font-weight: 760;
}

.priority-main strong {
  display: block;
  font-size: 1.05rem;
}

.priority-main p {
  margin: 0;
}

.priority-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.priority-score {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 2px;
  justify-items: end;
  padding-left: 16px;
  text-align: right;
}

.priority-score strong {
  color: var(--product-accent);
  font-size: 2rem;
  line-height: 1;
}

.timeline span {
  color: var(--product-accent);
  font-weight: 760;
}

.timeline p,
.readiness-card p {
  margin: 0;
}

.progress-map {
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
}

.progress-map > p {
  color: var(--muted);
  margin: -8px 0 0;
  max-width: 820px;
}

.progress-lens-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-lens {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.progress-lens-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.progress-lens-heading span {
  color: var(--product-accent);
  font-weight: 780;
}

.progress-lens-heading strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-lens-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.progress-focus-row {
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-left: 5px solid var(--product-accent);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) max-content;
  padding: 10px 12px;
  text-align: left;
}

.progress-focus-row:hover,
.progress-focus-row:focus-visible {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--product-accent) 14%, transparent);
  outline: none;
}

.progress-focus-row.below-target {
  border-left-color: #98423d;
}

.progress-focus-row.near-target {
  border-left-color: #b18812;
}

.progress-focus-row.at-target {
  border-left-color: #2f7d4f;
}

.progress-focus-row.above-target {
  border-left-color: #2f6fb8;
}

.progress-focus-row.needs-baseline {
  border-left-color: #8a948d;
}

.progress-focus-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.progress-focus-row strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.progress-focus-row small {
  color: var(--muted);
}

.progress-focus-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.progress-charts {
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.estimate-bars {
  display: grid;
  gap: 10px;
}

.estimate-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) 42px 72px;
}

.estimate-bar-row span,
.subject-trend-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.estimate-bar-row strong {
  text-align: right;
}

.estimate-bar-row.needs-baseline strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.estimate-bar-row small {
  color: var(--muted);
}

.estimate-bar {
  background: #e8ede8;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.estimate-bar i {
  background: var(--product-accent);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: calc(var(--value) * 1%);
}

.estimate-bar-row.below-target .estimate-bar i,
.subject-trend-card.below-target .trend-line polyline {
  background: #98423d;
  stroke: #98423d;
}

.subject-trend-card.below-target .trend-line circle {
  fill: #98423d;
}

.estimate-bar-row.near-target .estimate-bar i,
.subject-trend-card.near-target .trend-line polyline {
  background: #b18812;
  stroke: #b18812;
}

.subject-trend-card.near-target .trend-line circle {
  fill: #b18812;
}

.estimate-bar-row.at-target .estimate-bar i,
.subject-trend-card.at-target .trend-line polyline {
  background: #2f7d4f;
  stroke: #2f7d4f;
}

.subject-trend-card.at-target .trend-line circle {
  fill: #2f7d4f;
}

.estimate-bar-row.above-target .estimate-bar i,
.subject-trend-card.above-target .trend-line polyline {
  background: #2f6fb8;
  stroke: #2f6fb8;
}

.subject-trend-card.above-target .trend-line circle {
  fill: #2f6fb8;
}

.estimate-bar-row.needs-baseline .estimate-bar {
  background: repeating-linear-gradient(90deg, #e3e8e4 0 8px, #f5f7f4 8px 16px);
}

.estimate-bar-row.needs-baseline strong,
.subject-trend-card.needs-baseline strong {
  color: #7a857d;
}

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

.subject-trend-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.subject-trend-card > div {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.subject-trend-card strong {
  font-size: 1.4rem;
}

.subject-trend-card small {
  color: var(--muted);
}

.subject-trend-card p {
  align-items: center;
  background: var(--surface-subtle);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  min-height: 72px;
  margin: 0;
  padding: 12px;
}

.trend-line {
  height: 72px;
  width: 100%;
}

.trend-line line {
  stroke: #d7ded8;
  stroke-dasharray: 4 4;
}

.trend-line polyline {
  fill: none;
  stroke: var(--product-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.trend-line circle {
  fill: var(--product-accent);
  stroke: #ffffff;
  stroke-width: 2;
}

.account-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.account-overview,
.account-card {
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-overview {
  display: grid;
  gap: 16px;
  grid-row: span 4;
}

.account-overview p,
.account-card p {
  color: var(--muted);
  margin: 0;
}

.account-overview .section-heading {
  margin-bottom: 0;
}

.account-overview .section-heading strong {
  overflow-wrap: anywhere;
}

.account-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-detail-list div {
  align-items: baseline;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding-top: 10px;
}

.account-detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.account-detail-list dd {
  font-weight: 760;
  margin: 0;
}

.account-card {
  display: grid;
  gap: 12px;
}

.account-card > span {
  color: var(--product-accent);
  font-size: 0.86rem;
  font-weight: 780;
}

.account-card > strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.readiness-card {
  display: grid;
  gap: 12px;
}

.readiness-card strong {
  color: var(--product-accent);
  font-size: 3rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .app-shell,
  .hero,
  .split,
  .workbench,
  .guidance-panel,
  .block-summary,
  .onboarding-shell,
  .soludeck-checkout,
  .account-grid,
  .progress-layout {
    grid-template-columns: 1fr;
  }

  .account-overview {
    grid-row: auto;
  }

  .sidebar {
    position: static;
  }

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

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

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

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

@media (max-width: 620px) {
  main,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    gap: 14px;
  }

  .brand-lockup {
    min-height: 44px;
    padding: 0;
  }

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

  .profile-picker {
    padding: 0;
  }

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

  nav button {
    min-height: 38px;
  }

  .sidebar-note {
    display: none;
  }

  .topbar,
  .topbar-actions,
  .domain-row,
  .hero-panel,
  .priority-card,
  .progress-focus-row,
  .estimate-bar-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .subject-trend-grid {
    grid-template-columns: 1fr;
  }

  .priority-score {
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-items: start;
    padding-left: 0;
    padding-top: 12px;
    text-align: left;
  }

  .topbar,
  .topbar-actions {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding: 22px;
  }

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

  .checkout-promo-form {
    grid-template-columns: 1fr;
  }
}
