body {
  background: #f3f6f7;
}

main {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

main > section[hidden] {
  display: none !important;
}

.module-nav {
  gap: 20px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group-title {
  padding: 0 8px 5px;
  color: #86a0aa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

aside nav a[data-hub-page] {
  position: relative;
  min-height: 38px;
  padding: 8px 10px 8px 18px;
  border-color: transparent;
  font-size: 14px;
  font-weight: 600;
}

aside nav a[data-hub-page][aria-current="page"] {
  color: #fff;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
}

aside nav a[data-hub-page][aria-current="page"]::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 3px;
  border-radius: 2px;
  background: #71c7cb;
  content: '';
}

.side-note {
  display: grid;
  gap: 5px;
}

.side-note strong {
  color: #fff;
}

.hub-page-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 54px;
  margin: -26px -26px 18px;
  padding: 9px 26px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(243,246,247,.96);
}

.hub-page-bar > div:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.hub-page-bar span,
.hub-page-bar small {
  color: var(--muted);
  font-size: 12px;
}

.hub-page-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.hub-page-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 6px;
  font-size: 18px;
}

.hub-page-controls button:disabled {
  opacity: .35;
}

body.route-focused #academia-pratica > .depth-tabs,
body.route-focused #central-carreira > .career-tabs {
  display: none;
}

.adaptive-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  margin: 0 0 18px;
  padding: 16px 18px;
  align-items: center;
  border: 1px solid #bfd8dc;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #edf6f7;
}

.adaptive-support[hidden] {
  display: none;
}

.adaptive-support.is-gate {
  padding: 22px;
  border-color: #d7c38e;
  border-left-color: var(--warn);
  background: #fff9e9;
}

.adaptive-support h2,
.adaptive-support h3 {
  margin: 3px 0 5px;
  letter-spacing: 0;
}

.adaptive-support p {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
}

.adaptive-support .adaptive-glossary {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.adaptive-support .adaptive-glossary span {
  padding: 4px 7px;
  border: 1px solid rgba(13,107,117,.2);
  border-radius: 4px;
  background: rgba(255,255,255,.7);
  font-size: 12px;
}

.adaptive-support-actions {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 7px;
}

body.adaptive-content-locked main > section:not(#nivel) {
  display: none !important;
}

.level-header {
  display: flex;
  gap: 30px;
  padding: 10px 0 22px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.level-header h2 {
  margin: 4px 0 6px;
  font-size: 30px;
  letter-spacing: 0;
}

.level-header p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
}

.adaptive-setting {
  display: flex;
  max-width: 270px;
  padding: 10px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.level-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.level-summary > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.level-summary > div:last-child {
  border-right: 0;
}

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

.level-summary strong {
  margin-top: 3px;
  font-size: 22px;
}

.level-summary span {
  color: var(--muted);
  font-size: 12px;
}

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

.level-domain-card {
  display: grid;
  min-height: 170px;
  padding: 15px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.level-domain-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.level-domain-card h3,
.level-domain-card p {
  margin: 0;
}

.level-domain-card h3 {
  font-size: 16px;
}

.level-domain-card p {
  color: var(--muted);
  font-size: 13px;
}

.level-badge {
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: var(--primary-2);
  font-size: 11px;
  font-weight: 800;
}

.level-domain-card progress {
  width: 100%;
  height: 7px;
}

.level-evidence {
  margin-top: auto;
  font-size: 11px;
}

.balanced-study,
.diagnostic-section,
.mastery-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

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

.balanced-card {
  padding: 16px;
  border-left: 3px solid var(--primary);
  background: #fff;
}

.balanced-card span,
.balanced-card strong,
.balanced-card p {
  display: block;
}

.balanced-card span {
  color: var(--primary-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.balanced-card strong {
  margin: 4px 0;
}

.balanced-card p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.diagnostic-section {
  max-width: 900px;
}

.diagnostic-intro h3,
.diagnostic-intro p {
  margin-top: 5px;
}

.diagnostic-intro p {
  max-width: 72ch;
  color: var(--muted);
}

.diagnostic-runner {
  display: grid;
  gap: 16px;
}

.diagnostic-runner[hidden] {
  display: none;
}

.diagnostic-progress,
.diagnostic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.diagnostic-runner progress {
  width: 100%;
}

.diagnostic-options {
  display: grid;
  gap: 7px;
}

.diagnostic-options label {
  display: flex;
  padding: 11px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.diagnostic-result {
  margin-top: 16px;
  color: var(--ok);
  font-weight: 700;
}

.mastery-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr) auto;
  gap: 14px;
  padding: 16px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mastery-toolbar[hidden],
.mastery-runner[hidden] {
  display: none;
}

.mastery-toolbar label,
.mastery-status {
  display: grid;
  gap: 4px;
}

.mastery-toolbar label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mastery-status strong,
.mastery-status span,
.mastery-status small,
.mastery-status a {
  display: block;
}

.mastery-status span,
.mastery-status small {
  color: var(--muted);
  font-size: 12px;
}

.mastery-status a {
  width: fit-content;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
}

.mastery-runner {
  display: grid;
  max-width: 900px;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mastery-runner progress {
  width: 100%;
}

.mastery-result {
  margin-top: 14px;
}

.mastery-score {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--warn);
  background: #fff7e3;
}

.mastery-score.pass {
  border-left-color: var(--ok);
  background: #edf8f2;
}

.mastery-score strong,
.mastery-score span {
  display: block;
}

.mastery-score span {
  color: var(--muted);
  font-size: 13px;
}

.mastery-corrections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mastery-corrections article {
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 4px;
  background: #fff;
}

.mastery-corrections article.wrong {
  border-left-color: var(--warn);
}

.mastery-corrections p,
.mastery-corrections span,
.mastery-corrections small {
  display: block;
  margin: 4px 0 0;
}

.mastery-corrections p {
  color: var(--ink);
}

.mastery-corrections span {
  font-weight: 700;
}

.mastery-corrections small {
  color: var(--muted);
  line-height: 1.45;
}

.mastery-history {
  margin-top: 14px;
}

.mastery-history h4 {
  margin: 0 0 7px;
}

.mastery-history > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mastery-history > div span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}

/* Narrative learning flow: overview -> competency -> assessment -> result. */
.hub-page-bar {
  background: #f3f6f7;
}

#nivel {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  color: #17242a;
}

#nivel [data-level-view][hidden] {
  display: none !important;
}

.level-header {
  padding: 28px 0 30px;
  align-items: center;
}

.level-header > div {
  max-width: 680px;
}

.level-header h2,
.focus-header h2,
.level-domain-detail > header h2,
.diagnostic-intro h2 {
  margin: 5px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.level-header p,
.focus-header p,
.level-domain-detail > header p,
.diagnostic-intro p {
  margin: 0;
  color: #5d6c73;
  font-size: 15px;
  line-height: 1.65;
}

.level-summary {
  margin: 20px 0 0;
  border-color: #cad6da;
  background: transparent;
}

.level-summary > div {
  padding: 14px 18px;
}

.level-summary strong {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 650;
}

.balanced-study,
.competency-overview,
.mastery-section,
.diagnostic-section {
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
}

#nivel .section-head {
  margin-bottom: 14px;
}

#nivel .section-head h3 {
  margin: 3px 0 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

#nivel .section-head p {
  margin: 0;
  color: #66777e;
  font-size: 14px;
}

.balanced-recommendations {
  display: block;
}

.next-study-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 22px 24px;
  align-items: center;
  border-top: 1px solid #b9cdd2;
  border-bottom: 1px solid #b9cdd2;
  background: #edf5f6;
}

.next-study-focus span {
  color: var(--primary-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.next-study-focus h4 {
  margin: 5px 0 3px;
  font-size: 22px;
  font-weight: 700;
}

.next-study-focus p {
  margin: 0;
  color: #53656c;
  font-size: 14px;
}

.balanced-queue {
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

.balanced-queue summary,
.level-preferences summary,
.domain-evidence-detail summary,
.mastery-history summary {
  padding: 10px 2px;
  color: #53656c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.balanced-queue > button {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 10px 6px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  background: transparent;
}

.balanced-queue > button span,
.balanced-queue > button small {
  color: #6a7a81;
}

.level-domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #cad6da;
}

.competency-row {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: minmax(190px, 1fr) 92px 42px minmax(150px, .8fr) 24px;
  padding: 11px 8px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #cad6da;
  border-radius: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.competency-row:hover,
.competency-row:focus-visible {
  background: #eaf1f3;
}

.competency-name strong,
.competency-name small {
  display: block;
}

.competency-name strong {
  font-size: 15px;
  font-weight: 650;
}

.competency-name small,
.competency-next {
  color: #65767d;
  font-size: 12px;
}

.competency-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.competency-track i {
  height: 5px;
  border-radius: 1px;
  background: #d7e0e3;
}

.competency-track i.filled {
  background: var(--primary);
}

.competency-row .level-badge {
  justify-self: center;
}

.competency-arrow {
  color: var(--primary-2);
  font-size: 17px;
}

.level-utility-row {
  display: flex;
  margin-top: 28px;
  padding-top: 18px;
  align-items: start;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.level-preferences {
  min-width: 240px;
}

.level-preferences .adaptive-setting {
  margin-top: 5px;
}

.level-back {
  margin: 4px 0 30px;
  padding: 7px 0;
  border: 0;
  color: var(--primary-2);
  background: transparent;
  font-weight: 650;
}

.level-domain-view,
.mastery-section,
.diagnostic-section {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.level-domain-detail > header {
  max-width: 720px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.domain-current-level {
  display: grid;
  grid-template-columns: 120px 90px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.domain-current-level > span {
  color: #65767d;
  font-size: 12px;
}

.domain-current-level > strong {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
}

.domain-current-level b {
  font-size: 17px;
  font-weight: 650;
}

.domain-current-level p {
  margin: 3px 0 0;
  color: #5d6d74;
}

.domain-level-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.domain-level-path li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding-right: 12px;
  align-items: center;
}

.domain-level-path li::after {
  position: absolute;
  z-index: -1;
  top: 16px;
  right: 0;
  left: 34px;
  height: 1px;
  background: #c9d5d9;
  content: '';
}

.domain-level-path li:last-child::after {
  display: none;
}

.domain-level-path li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b8c7cc;
  border-radius: 50%;
  background: #f3f6f7;
  font-size: 12px;
  font-weight: 700;
}

.domain-level-path li.complete > span,
.domain-level-path li.current > span {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.domain-level-path li.current > span {
  outline: 3px solid #cfe5e7;
}

.domain-level-path strong,
.domain-level-path small {
  display: block;
}

.domain-level-path strong {
  font-size: 12px;
  font-weight: 650;
}

.domain-level-path small {
  color: #718087;
  font-size: 10px;
}

.domain-level-path .future {
  color: #839097;
}

.domain-next-gate {
  max-width: 680px;
  padding: 24px 0;
}

.domain-next-gate h3 {
  margin: 5px 0;
  font-size: 22px;
  font-weight: 700;
}

.domain-next-gate p {
  margin: 0 0 18px;
  color: #586970;
}

.domain-evidence-detail {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.domain-evidence-detail p {
  margin: 8px 0;
  color: #5d6d74;
  font-size: 13px;
}

body.level-focus-mode .app {
  grid-template-columns: 1fr;
}

body.level-focus-mode .app > aside {
  display: none;
}

body.level-focus-mode main {
  max-width: 1120px;
}

.focus-header {
  max-width: 700px;
  margin-bottom: 28px;
}

.mastery-toolbar {
  grid-template-columns: minmax(180px, .6fr) minmax(300px, 1.4fr) auto;
  padding: 18px 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}

.mastery-runner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.mastery-runner #masteryQuestion,
.diagnostic-runner #diagnosticQuestion {
  max-width: 31ch;
  margin: 20px 0 10px;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
}

.diagnostic-options label {
  padding: 13px 14px;
  border-color: #cbd7db;
  background: transparent;
  font-size: 14px;
}

.diagnostic-options label:has(input:checked) {
  border-color: var(--primary);
  background: #eaf5f6;
}

.result-hero {
  display: grid;
  grid-template-columns: 120px 120px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  align-items: center;
  border-top: 3px solid var(--warn);
  border-bottom: 1px solid var(--line);
}

.result-hero.pass {
  border-top-color: var(--ok);
}

.result-hero > span {
  color: #68787f;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.result-hero > strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.result-hero h2,
.result-hero p {
  margin: 0;
}

.result-hero h2 {
  font-size: 24px;
  font-weight: 700;
}

.result-hero p,
.result-next-action p,
.result-corrections-head p {
  color: #617178;
}

.result-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.result-next-action h3,
.result-corrections-head h3 {
  margin: 4px 0;
  font-size: 20px;
  font-weight: 700;
}

.result-next-action p,
.result-corrections-head p {
  max-width: 64ch;
  margin: 0;
  font-size: 14px;
}

.result-corrections-head {
  margin: 32px 0 12px;
}

.mastery-corrections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid #cad6da;
}

.mastery-corrections details {
  border-bottom: 1px solid #cad6da;
}

.mastery-corrections summary {
  display: grid;
  grid-template-columns: 30px 130px minmax(0, 1fr);
  padding: 13px 6px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

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

.mastery-corrections summary > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ok);
  font-size: 11px;
  font-weight: 700;
}

.mastery-corrections .wrong summary > span {
  background: var(--warn);
}

.mastery-corrections summary > strong {
  font-size: 13px;
  font-weight: 650;
}

.mastery-corrections summary > small {
  overflow: hidden;
  color: #5f7077;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mastery-corrections details > div {
  padding: 0 46px 18px 176px;
}

.mastery-corrections details > div p {
  margin: 5px 0;
  color: #4f6067;
}

.mastery-history {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.mastery-history > details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 12px;
}

.diagnostic-section {
  padding-top: 0;
}

.diagnostic-intro,
.diagnostic-runner {
  max-width: 760px;
  margin: 0 auto;
}

.diagnostic-result {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--ink);
  font-weight: 400;
}

.diagnostic-result strong {
  font-size: 20px;
}

.diagnostic-result p {
  color: #5d6d74;
}

#inicio,
#plano-estudos {
  margin-top: 0;
}

.guided-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
}

.guided-header h2,
.guided-plan-head h2 {
  margin: 5px 0 6px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.guided-header p,
.guided-plan-head p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.guided-eyebrow,
.context-label {
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.guided-selectors {
  display: grid;
  grid-template-columns: 220px 190px;
  gap: 10px;
  flex: 0 0 auto;
}

.guided-selectors label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.guided-selectors select {
  width: 100%;
  min-width: 0;
}

.today-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 36px;
  align-items: start;
  padding-top: 26px;
}

.today-mission {
  min-width: 0;
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.mission-status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.today-mission h3 {
  max-width: 28ch;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.today-objective {
  max-width: 72ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.today-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guided-step;
}

.today-steps li {
  position: relative;
  min-height: 58px;
  padding: 0 0 0 44px;
  border-top: 1px solid var(--line);
  counter-increment: guided-step;
}

.today-steps li::before {
  position: absolute;
  top: 13px;
  left: 4px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary-2);
  background: #fff;
  content: counter(guided-step);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.today-steps button {
  display: grid;
  width: 100%;
  min-height: 62px;
  gap: 3px;
  padding: 12px 38px 12px 4px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.today-steps button::after {
  position: absolute;
  top: 21px;
  right: 10px;
  color: var(--muted);
  content: '\2192';
}

.today-steps button:hover,
.today-steps button:focus-visible {
  background: #f4f8f9;
}

.today-steps button[aria-current="step"] {
  color: var(--primary-2);
  background: #edf5f6;
}

.today-steps button[aria-current="step"]::after {
  color: var(--primary-2);
}

.today-steps button span {
  font-weight: 750;
}

.today-steps button small {
  color: var(--muted);
  font-size: 12px;
}

.today-step-workspace {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #fff;
}

.step-workspace-heading h4 {
  margin: 4px 0 8px;
  font-size: 19px;
}

.today-step-workspace > p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--muted);
}

.step-command-block {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f6f8f9;
}

.step-command-block > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.step-command-block span {
  color: var(--muted);
  font-size: 12px;
}

.step-command-block pre {
  margin: 0 0 10px;
  padding: 12px;
  color: #ecf4f5;
  background: #18343b;
  overflow: auto;
}

.step-checks {
  margin: 14px 0 16px;
  padding: 0;
  border: 0;
}

.step-checks legend {
  margin-bottom: 8px;
  font-weight: 750;
}

.step-checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0;
  color: var(--muted);
}

.step-checks input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.step-validation,
.step-validation > label {
  display: grid;
  gap: 8px;
}

.today-step-workspace [hidden] {
  display: none !important;
}

.step-validation textarea,
.today-output textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.step-validation-actions,
.today-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.linked-activity-status,
.step-validation-feedback {
  margin: 12px 0;
  padding: 11px 13px;
  border-left: 3px solid var(--line);
  background: #f6f8f9;
}

.linked-activity-status p {
  margin: 4px 0 0;
}

.linked-activity-status.pass,
.step-validation-feedback.done {
  border-left-color: var(--ok);
  color: #24563e;
  background: #edf8f1;
}

.linked-activity-status.fail,
.step-validation-feedback.error,
#todayEvidenceStatus.error {
  color: #7b321f;
}

.linked-activity-status.fail,
.step-validation-feedback.error {
  border-left-color: var(--accent);
  background: #fff3ef;
}

.today-steps .step-done::before,
.today-steps .step-verified::before {
  border-color: var(--ok);
  color: var(--ok);
}

.today-steps .step-blocked::before {
  border-color: var(--warn);
  color: var(--warn);
}

.step-action-note {
  margin: 9px 0 0 !important;
  font-size: 12px;
}

.today-output {
  margin: 22px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: #edf5f6;
}

.today-output p {
  margin: 4px 0 0;
  color: #35484f;
}

.today-output label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.today-evidence-actions {
  margin-top: 8px;
}

#todayEvidenceStatus.done {
  color: #24563e;
  font-weight: 700;
}

.today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-actions .primary {
  min-width: 180px;
}

.guided-feedback {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
}

.guided-feedback.done,
.guided-feedback.blocked {
  padding: 11px 13px;
  border-left: 3px solid var(--ok);
  color: #24563e;
  background: #edf8f1;
}

.guided-feedback.blocked {
  border-left-color: var(--warn);
  color: #6c4b0d;
  background: #fff8e9;
}

main .week-context {
  position: static;
  display: grid;
  height: auto;
  gap: 22px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.week-context h3 {
  margin: 5px 0 7px;
  font-size: 19px;
}

.week-context p {
  margin: 0;
  color: var(--muted);
}

.week-progress-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.week-progress-block > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.week-progress-block progress {
  width: 100%;
  height: 10px;
  accent-color: var(--primary);
}

#nextMission:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.guided-plan-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.phase-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.phase-rail button {
  min-height: 68px;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: #fff;
}

.phase-rail button[aria-pressed="true"] {
  color: #fff;
  background: var(--primary);
}

.phase-rail button span {
  display: block;
  color: inherit;
  opacity: .75;
  font-size: 11px;
}

.guided-plan-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.week-roadmap {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.week-roadmap button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border-color: transparent;
  text-align: left;
  justify-content: stretch;
}

.week-roadmap button[aria-current="step"] {
  border-color: var(--primary);
  background: #edf5f6;
}

.week-roadmap .week-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary-2);
  font-weight: 800;
}

.week-roadmap .week-name {
  min-width: 0;
  font-weight: 700;
}

.week-roadmap .week-state {
  color: var(--muted);
  font-size: 11px;
}

.week-syllabus {
  min-width: 0;
}

.week-syllabus > header {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.week-syllabus h3 {
  margin: 4px 0 6px;
  font-size: 25px;
}

.week-syllabus header p {
  max-width: 75ch;
  margin: 0;
  color: var(--muted);
}

.syllabus-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.syllabus-meta div {
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.syllabus-meta strong {
  display: block;
  margin-bottom: 4px;
}

.syllabus-meta span {
  color: var(--muted);
  font-size: 13px;
}

.syllabus-days {
  border-top: 1px solid var(--line);
}

.syllabus-day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.syllabus-day .day-label {
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.syllabus-day h4 {
  margin: 0 0 3px;
}

.syllabus-day p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.syllabus-day button {
  min-width: 105px;
}

.curriculum-sources {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.curriculum-sources strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.legacy-journey[hidden] {
  display: none !important;
}
