:root {
  --ladder-bg: #f5f1e8;
  --ladder-panel: #ffffff;
  --ladder-line: #ded4c5;
  --ladder-soft: #f0e8dc;
  --ladder-ink: #18283a;
  --ladder-muted: #62717f;
  --ladder-good: #735f9e;
  --ladder-focus: #c9a05a;
}


body {
  background: #ffffff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.ladder-select,
.ladder-input {
  border-radius: 7px;
}

button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--gold-light);
  cursor: pointer;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--ladder-line);
}

.ladder-nav {
  max-width: 1500px;
}

.ladder-top-actions {
  align-items: center !important;
  display: flex !important;
  gap: 0.5rem;
}

.theme-toggle {
  align-items: center;
  border: 1px solid rgba(201, 160, 90, 0.42);
  border-radius: 7px;
  background: transparent;
  color: #62717f;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(201, 160, 90, 0.08);
  color: #8f681c;
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(219, 184, 122, 0.42);
  color: #b7c0c8;
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(219, 184, 122, 0.12);
  color: #dbb87a;
}

.ladder-select,
.ladder-input,
.learner-actions input,
.chat-form input,
.assessment-form textarea {
  border: 1px solid var(--ladder-line);
  background: var(--white);
  color: var(--ladder-ink);
  min-height: 40px;
  padding: 0.45rem 0.65rem;
}

.ladder-select {
  min-height: 42px !important;
  padding: 0.55rem 0.65rem !important;
}

.language-custom {
  min-width: 150px;
}

.ladder-select.wide {
  min-width: min(420px, 100%);
}

.ladder-app {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 1800px);
  max-width: none;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.ladder-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(720px, 1.38fr);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0 1rem;
}

.ladder-hero-copy {
  background:
    radial-gradient(circle at 92% 8%, rgba(219, 184, 122, 0.18), transparent 32%),
    linear-gradient(145deg, #07111d 0%, #102235 58%, #07111d 100%);
  background-color: #07111d;
  border: 1px solid rgba(219, 184, 122, 0.36);
  box-shadow: 0 22px 48px rgba(10, 24, 38, 0.18);
  color: #f7fbff;
  overflow: hidden;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  position: relative;
}

.ladder-hero-copy::before,
.ladder-hero-copy::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.ladder-hero-copy::before {
  border: 1px solid rgba(219, 184, 122, 0.18);
  height: 78%;
  left: 1rem;
  top: 11%;
  width: 38%;
}

.ladder-hero-copy::after {
  background:
    linear-gradient(90deg, rgba(219, 184, 122, 0), rgba(219, 184, 122, 0.58), rgba(219, 184, 122, 0)),
    linear-gradient(90deg, rgba(219, 184, 122, 0), rgba(219, 184, 122, 0.42), rgba(219, 184, 122, 0));
  height: 3px;
  left: 1.4rem;
  right: 1.4rem;
  top: 58%;
  transform: rotate(-2deg);
}

.hero-panels {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ladder-hero h1 {
  color: #ffe7a8;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: 0.95;
  margin: 0.35rem 0 0.8rem;
  position: relative;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 24px rgba(219, 184, 122, 0.44),
    0 0 52px rgba(219, 184, 122, 0.12);
  z-index: 1;
}

.ladder-hero h1::after {
  background: linear-gradient(90deg, #bda7ff, #dbb87a, rgba(219, 184, 122, 0));
  content: "";
  display: block;
  height: 6px;
  margin-top: 0.38rem;
  max-width: 260px;
}

.eyebrow,
.panel-label {
  color: var(--gold);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ladder-hero .eyebrow {
  background: #103246;
  border: 1px solid rgba(219, 184, 122, 0.48);
  color: #fff5cf;
  display: inline-flex;
  letter-spacing: 0.18em;
  padding: 0.52rem 0.7rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  background: #102235;
  border: 1px solid rgba(219, 184, 122, 0.42);
  color: #e8f1f7;
  font-size: clamp(0.96rem, 1.6vw, 1.12rem);
  line-height: 1.5;
  max-width: 760px;
  padding: 0.75rem 0.9rem;
  position: relative;
  z-index: 1;
}

.learner-panel,
.ladder-toolbar,
.topic-panel,
.conversation-panel,
.transcript-panel {
  background: var(--ladder-panel);
  border: 1px solid var(--ladder-line);
  box-shadow: var(--shadow-sm);
}

.learner-panel {
  padding: 0.75rem;
}

.hero-panels .learner-panel {
  min-height: 0;
}

.learner-panel strong {
  color: var(--navy);
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0.2rem 0 0.55rem;
}

.learner-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.topic-search-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.topic-search-panel strong {
  color: var(--navy);
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0.2rem 0 0.55rem;
}

.topic-search-input {
  border: 1px solid var(--ladder-line);
  background: var(--white);
  color: var(--ladder-ink);
  font-size: 0.84rem;
  min-height: 34px;
  padding: 0.34rem 0.5rem;
  width: 100%;
}

.topic-search-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
  max-height: 86px;
  overflow: auto;
}

.topic-search-result {
  border: 1px solid var(--ladder-line);
  background: var(--ladder-soft);
  color: var(--ladder-ink);
  display: grid;
  gap: 0.22rem;
  padding: 0.55rem;
  text-align: left;
  transform: none;
  width: 100%;
}

.topic-search-result:hover {
  background: #fff9ea;
  box-shadow: none;
  color: var(--ladder-ink);
  transform: none;
}

.topic-search-result strong {
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
  margin: 0;
}

.topic-search-result small {
  color: var(--ladder-muted);
  display: block;
  line-height: 1.25;
}

.topic-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.topic-search-actions button {
  font-size: 0.76rem;
  padding: 0.35rem 0.5rem;
}

.topic-search-empty {
  color: var(--ladder-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.evaluation-panel {
  display: flex;
  flex-direction: column;
}

.evaluation-panel p {
  color: #34495d;
  font-size: 0.78rem;
  line-height: 1.25;
  margin: -0.15rem 0 0.65rem;
  max-height: 2.5em;
  overflow: hidden;
}

.evaluation-cooldown {
  border-top: 1px solid var(--ladder-line);
  color: var(--ladder-muted) !important;
  font-size: 0.76rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-top: 0.55rem;
}

.evaluation-controls {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}

.evaluation-field {
  display: grid;
  gap: 0.25rem;
}

.evaluation-field span {
  color: var(--ladder-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evaluation-select {
  border: 1px solid var(--ladder-line);
  background: var(--white);
  color: var(--ladder-ink);
  font-size: 0.82rem;
  min-height: 32px;
  padding: 0.32rem 0.45rem;
  width: 100%;
}

.identity-attestation {
  align-items: start;
  color: var(--ladder-muted);
  display: grid;
  font-size: 0.78rem;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  line-height: 1.35;
}

.identity-attestation input {
  accent-color: var(--gold);
  margin-top: 0.15rem;
  min-height: auto;
  min-width: 0;
  width: auto;
}

.account-gate {
  border-top: 1px solid rgba(219, 184, 122, 0.28);
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.account-gate-head {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.account-gate-head span {
  color: #ffe7a8;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.account-gate p {
  color: #d8e5ef;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
}

.account-form {
  display: grid;
  gap: 0.48rem;
}

.account-actions {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-actions button,
#accountConfirmAdultBtn {
  min-height: 36px;
  padding: 0.42rem 0.55rem;
}

.account-attestation {
  color: #d8e5ef;
}

.evaluation-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.evaluation-actions button {
  padding: 0.42rem 0.65rem;
}

.architecture-link {
  flex: 0 0 auto;
  font-size: 0.86rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  width: auto;
}

.evaluation-actions button:disabled,
.certification-workspace-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.evaluation-actions a {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.evaluation-actions a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.certification-workspace-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.architecture-dialog-content {
  color: var(--ladder-ink);
}

.certification-guide {
  display: grid;
  gap: 1rem;
  line-height: 1.45;
}

.certification-guide-lead {
  color: var(--ladder-ink);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
}

.certification-guide-callout,
.certification-guide-note {
  background: var(--ladder-soft);
  border: 1px solid var(--ladder-line);
  border-radius: 7px;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.certification-guide-callout span {
  color: var(--ladder-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certification-guide-callout strong {
  color: var(--navy);
  font-size: 1rem;
}

.certification-guide-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-guide-grid section {
  border: 1px solid var(--ladder-line);
  border-radius: 7px;
  padding: 0.9rem;
}

.certification-guide h4 {
  color: var(--navy);
  font-size: 1rem;
  margin: 0 0 0.55rem;
}

.certification-guide ol,
.certification-guide ul {
  margin: 0;
  padding-left: 1.1rem;
}

.certification-guide li + li {
  margin-top: 0.35rem;
}

.certification-guide-note {
  grid-template-columns: auto minmax(0, 1fr);
}

.certification-guide-note strong {
  color: var(--navy);
}

.hero-panels .evaluation-actions .architecture-link {
  justify-self: start;
  width: auto !important;
}

.ladder-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px) minmax(220px, 320px);
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
}

.placement-toolbar {
  align-items: stretch;
  gap: 1.15rem;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.55fr);
  padding: 1rem;
}

.placement-toolbar.is-collapsed {
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-height: 76px;
  padding: 0.75rem 1rem;
}

.placement-summary {
  align-self: start;
}

.placement-toolbar.is-collapsed .placement-summary {
  align-items: center;
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.placement-toolbar.is-collapsed .placement-summary .panel-label {
  grid-column: 1;
}

.placement-toolbar.is-collapsed .placement-summary h2 {
  grid-column: 1;
  margin: 0;
}

.placement-toolbar.is-collapsed .placement-summary p {
  grid-column: 1;
  margin: 0;
}

.placement-toolbar.is-collapsed .placement-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-content: flex-end;
  margin: 0;
}

.placement-toolbar.is-collapsed .placement-chat,
.placement-toolbar.is-collapsed .placement-progress {
  display: none;
}

.placement-progress {
  align-self: end;
}

.placement-chat {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 480px;
  min-width: 0;
}

.placement-summary h2 {
  color: var(--navy);
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0.25rem 0 0.35rem;
}

.placement-summary p {
  color: var(--ink-light);
}

.placement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.placement-profile-prompt {
  align-items: center;
  background: #fff9ea;
  border: 1px solid rgba(201, 160, 90, 0.55);
  border-radius: 8px;
  color: var(--ladder-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  grid-column: 1 / -1;
  margin-top: 0.7rem;
  padding: 0.65rem;
}

.placement-profile-prompt strong {
  color: var(--navy);
}

.placement-profile-prompt span {
  color: var(--ladder-muted);
  flex: 1 1 260px;
  font-size: 0.82rem;
  line-height: 1.3;
}

.placement-profile-prompt div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.placement-toolbar.is-collapsed .placement-profile-prompt {
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
}

.assessment-chat-head {
  align-items: center;
  border-bottom: 1px solid var(--ladder-line);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
}

.assessment-chat-head strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  margin-top: 0.18rem;
}

.assessment-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.assessment-nav button {
  padding: 0.45rem 0.65rem;
}

.assessment-log {
  background: #fbfaf6;
  border: 1px solid var(--ladder-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  max-height: min(58vh, 540px);
  min-height: 360px;
  overflow: auto;
  padding: 0.9rem;
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--ladder-soft);
}

.assessment-log:focus-visible {
  outline: 3px solid rgba(94, 124, 64, 0.28);
  outline-offset: 2px;
}

.assessment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

.assessment-form textarea {
  border-radius: 8px;
  line-height: 1.45;
  min-height: 96px;
  padding: 0.75rem;
  resize: vertical;
}

.assessment-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(94, 124, 64, 0.16);
  outline: none;
}

.assessment-form button {
  min-width: 94px;
}

.placement-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.placement-metrics span,
.placement-metrics small {
  background: var(--ladder-soft);
  border: 1px solid var(--ladder-line);
  color: var(--ladder-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.3rem 0.4rem;
}

.placement-metrics small {
  flex-basis: 100%;
  font-weight: 500;
}

.assigned-rungs-panel {
  background: #fff;
  border: 1px solid var(--ladder-line);
  border-radius: 8px;
  flex-basis: 100%;
  margin-top: 0.25rem;
  max-height: 360px;
  overflow: auto;
}

.assigned-rungs-panel summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
}

.assigned-rungs-panel > ul {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0 0.75rem 0.75rem;
}

.assigned-rungs-panel > ul > li {
  border-top: 1px solid var(--ladder-line);
  padding-top: 0.65rem;
}

.assigned-rungs-panel strong,
.assigned-rungs-panel span {
  display: block;
}

.assigned-rungs-panel span {
  color: var(--ladder-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.assigned-rungs-panel ol {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.assigned-rung-link {
  background: #f7f2e8;
  border: 1px solid var(--ladder-line);
  color: var(--ladder-ink);
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
  padding: 0.45rem 0.5rem;
  text-align: left;
  width: 100%;
}

.assigned-rung-link:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: none;
}

.progress-meter {
  background: var(--ladder-soft);
  border: 1px solid var(--ladder-line);
  height: 12px;
  margin: 0.4rem 0 0.2rem;
  overflow: hidden;
}

.progress-meter span {
  background: linear-gradient(90deg, var(--gold), var(--gold));
  display: block;
  height: 100%;
  width: 0%;
}

.workspace {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(201, 160, 90, 0.18);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem;
}

.workspace > *,
.tier-meta,
.topic-column {
  min-width: 0;
}

.tier-rail {
  background: var(--ladder-panel);
  border: 1px solid var(--ladder-line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0;
}

.rail-head {
  align-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(219, 184, 122, 0.34), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(219, 184, 122, 0.22), transparent 24%),
    linear-gradient(160deg, #081421 0%, #10243a 48%, #07111d 100%);
  background-color: #07111d;
  border-bottom: 1px solid rgba(219, 184, 122, 0.45);
  box-sizing: border-box;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
  padding: 1.15rem 1rem;
  position: relative;
  text-align: center;
}

.rail-head::before,
.rail-head::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.rail-head::before {
  border: 1px solid rgba(219, 184, 122, 0.22);
  border-radius: 50%;
  height: 190px;
  top: -82px;
  width: 190px;
}

.rail-head::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  height: 2px;
  left: 18%;
  top: 63%;
  transform: rotate(-8deg);
  width: 64%;
}

.rail-product-label {
  color: #f8dd9a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  position: relative;
  text-shadow: 0 0 18px rgba(219, 184, 122, 0.45);
  text-transform: uppercase;
  z-index: 1;
}

.rail-product-title {
  color: #ffe7a8;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.8vw, 3.35rem);
  font-weight: 900;
  line-height: 0.95;
  position: relative;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(219, 184, 122, 0.9),
    0 0 42px rgba(115, 95, 158, 0.34);
  z-index: 1;
}

.rail-tier-status {
  background: #102235;
  border: 1px solid rgba(219, 184, 122, 0.62);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.15;
  padding: 0.45rem 0.7rem;
  position: relative;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
  z-index: 1;
}

.tier-list {
  background: var(--ladder-panel);
  border: 1px solid var(--ladder-line);
  border-top: none;
  display: grid;
  gap: 0.7rem;
  grid-auto-rows: 136px;
  max-height: none;
  overflow: visible;
  padding: 0.75rem;
}

.tier-item {
  border-bottom: 0;
  min-height: 0;
}

.tier-button {
  align-items: start;
  background: transparent;
  border: 1px solid var(--ladder-line);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--ladder-ink);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "number meta"
    "number progress";
  gap: 0.2rem 0.55rem;
  height: 100%;
  justify-items: stretch;
  min-height: 0;
  padding: 0.68rem;
  text-align: left;
  transform: none;
  width: 100%;
}

.tier-button:hover,
.tier-button.active {
  background: var(--ladder-soft);
  box-shadow: none;
  transform: none;
}

.tier-button.placed-out {
  background: rgba(115, 95, 158, 0.18);
  border: 1px solid rgba(115, 95, 158, 0.42);
  color: var(--ladder-ink);
}

.tier-button.placed-out .tier-number {
  background: var(--ladder-good);
}

.tier-button.placed-out .tier-progress {
  color: #5b477e;
}

.tier-button.has-assigned {
  background: #fff9ea;
}

.tier-button.has-assigned .tier-progress {
  color: #8f681c;
}

.tier-number {
  align-items: center;
  background: var(--tier-accent);
  color: var(--white);
  display: inline-flex;
  font-size: 19.2px;
  font-weight: 900;
  grid-area: number;
  height: 30px;
  justify-content: center;
  line-height: 1;
  margin-top: 0.05rem;
  width: 30px;
}

.tier-meta {
  display: block;
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
}

.tier-meta strong {
  display: block;
  font-size: 19.2px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.tier-meta strong,
.topic-head h2,
.panel-heading h3 {
  color: var(--navy);
}

.tier-meta small {
  color: var(--ladder-muted);
  display: block;
  display: -webkit-box;
  font-size: 14.4px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.08;
  margin-top: 0.18rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tier-progress {
  color: var(--ladder-muted);
  align-self: end;
  font-size: 13.2px;
  font-weight: 900;
  grid-area: progress;
  line-height: 1;
  justify-self: start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  overflow: visible;
  padding: 0.55rem 0.75rem;
  background: #142437;
  border: 1px solid #26384a;
  border-top: 0;
}

.topic-strip button {
  align-items: center;
  background: #1a2d43;
  border-color: rgba(219, 184, 122, 0.6);
  box-sizing: border-box;
  color: var(--gold-light);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 0.95rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  min-width: 42px;
  padding: 0;
  transform: none;
  width: 42px;
}

.topic-strip button:hover {
  background: #213952;
  box-shadow: none;
  transform: none;
}

.topic-strip button.assigned {
  border-color: var(--gold);
  color: var(--gold-light);
}

.topic-strip button.placed {
  background: rgba(115, 95, 158, 0.22);
  border-color: rgba(115, 95, 158, 0.6);
  color: #fff8e8;
}

.topic-strip button.active {
  background: var(--navy-mid);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.topic-head {
  align-items: start;
  background: var(--navy);
  color: var(--white);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.topic-head h2 {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.1;
  margin-top: 0.2rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.topic-panel,
.conversation-panel,
.transcript-panel {
  padding: 1rem;
}

.conversation-panel {
  margin-bottom: 1rem;
}

.resource-panel {
  margin-bottom: 1rem;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--ladder-line);
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
}

.panel-heading p {
  color: var(--ladder-muted);
  font-size: 0.84rem;
  margin-top: 0.1rem;
}

.vocab-list,
.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topic-panel {
  background: var(--ladder-soft);
}

.vocab-definition-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--ladder-soft);
}

.vocab-definition-box {
  background: #fbfaf6;
  border: 1px solid var(--ladder-line);
  flex: 1;
  min-height: 132px;
  overflow: auto;
  padding: 0.75rem;
}

.vocab-definition-box strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.vocab-definition-box p {
  color: var(--ladder-ink);
  line-height: 1.45;
}

.vocab-definition-box small {
  color: var(--ladder-muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
  margin-top: 0.65rem;
}

.vocab-prompt-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.vocab-prompt-form input {
  border: 1px solid var(--ladder-line);
  min-height: 34px;
  padding: 0.35rem 0.5rem;
}

.vocab-prompt-form button {
  min-height: 34px;
  padding: 0.35rem 0.6rem;
}

.vocab-pill,
.resource-chip {
  background: #fffdf8;
  border: 1px solid #b9aa92;
  color: #102235;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.35rem 0.5rem;
}

.vocab-pill.done {
  background: #f2edff;
  border-color: #735f9e;
  color: #23183d;
}

.vocab-pill:hover,
.vocab-pill:focus-visible,
.vocab-pill.active {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: #fff;
  transform: none;
}

.resource-chip {
  background: #f6efe2;
  border-color: #c8b58f;
  color: #17283a;
  text-decoration: underline;
  text-decoration-color: rgba(23, 40, 58, 0.35);
  text-underline-offset: 3px;
}

.chat-log {
  background: #fbfaf6;
  border: 1px solid var(--ladder-line);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 510px;
  max-height: 720px;
  overflow: auto;
  padding: 0.8rem;
}

.message {
  border: 1px solid var(--ladder-line);
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  color: #102235;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message p {
  margin: 0.25rem 0;
}

.message ol,
.message ul {
  margin: 0.25rem 0;
  padding-left: 1.5rem;
}

.message li {
  margin: 0.15rem 0;
}

.assessment-log .message {
  line-height: 1.48;
  max-width: min(96%, 780px);
  padding: 0.8rem 0.9rem;
}

.message.assistant {
  align-self: flex-start;
  background: var(--white);
}

/* Certification exam messages - visual distinction */
.message.exam {
  background: #f8f4e6;
  border: 2px solid #c9a05a;
  border-left: 5px solid #c9a05a;
  box-shadow: 0 2px 8px rgba(201, 160, 90, 0.15);
}

.message.user {
  align-self: flex-end;
  background: #f2edff;
  border-color: rgba(115, 95, 158, 0.35);
}

.message strong {
  color: var(--navy);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.message h2,
.message h3,
.message h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
  line-height: 1.3;
}

.message h2 {
  font-size: 0.95rem;
}

.message h3 {
  font-size: 0.9rem;
}

.message h4 {
  font-size: 0.85rem;
}

.standards-review-offer {
  align-self: flex-start;
  background: #fff8ea;
  border: 1px solid rgba(201, 160, 90, 0.55);
  color: #102235;
  max-width: min(92%, 720px);
  padding: 0.8rem 0.9rem;
}

.standards-review-offer strong {
  color: var(--navy);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.standards-review-offer p {
  color: #34495d;
  line-height: 1.52;
  margin: 0;
}

.standards-review-error {
  color: #8a1f1f !important;
  font-weight: 700;
  margin-top: 0.45rem !important;
}

.standards-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.standards-review-actions button,
.standards-review-actions a {
  align-items: center;
  border: 1px solid var(--navy);
  display: inline-flex;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.standards-review-actions button {
  background: var(--navy);
  color: #ffe7a8;
  cursor: pointer;
}

.standards-review-actions button.secondary,
.standards-review-actions a {
  background: transparent;
  color: var(--navy);
}

.standards-review-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.standards-review-event {
  border-color: rgba(91, 71, 126, 0.45);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.transcript-list {
  display: grid;
  gap: 0.55rem;
}

.transcript-event {
  border: 1px solid rgba(201, 160, 90, 0.42);
  background: #fbfaf6;
  padding: 0.55rem 0.7rem;
}

.transcript-event strong {
  color: var(--navy);
  display: block;
}

.transcript-event small,
#progressText {
  color: var(--ladder-muted);
}

.placement-toolbar #progressText {
  color: #d8e5ef;
}

.learner-panel {
  background: #eef8f5;
  border-color: rgba(115, 95, 158, 0.38);
}

.topic-search-panel {
  background: #fff5df;
  border-color: rgba(201, 160, 90, 0.5);
}

.evaluation-panel {
  background: #f2edff;
  border-color: rgba(111, 61, 130, 0.28);
}

.placement-toolbar {
  background: #102235;
  border-color: rgba(115, 95, 158, 0.52);
  color: #f7fbff;
}

.placement-toolbar .panel-label,
.placement-toolbar .assessment-chat-head span {
  color: #f8dd9a;
}

.placement-toolbar h2,
.placement-toolbar strong {
  color: #ffffff;
}

.placement-toolbar p,
.placement-toolbar small {
  color: #d8e5ef;
}

.placement-toolbar button {
  background: #dbb87a;
  border-color: #dbb87a;
  color: #102235;
}

.placement-toolbar button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.conversation-panel {
  background: #1a2a3a;
  border-color: rgba(115, 95, 158, 0.8);
  border: none;
  border-bottom: 3px solid #735f9e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.conversation-panel .panel-heading {
  background: #0f1923;
  border-bottom: 2px solid #735f9e;
}

.conversation-panel .panel-heading h3 {
  color: #ffffff;
}

:root .conversation-panel .panel-heading p {
  color: #ffffff !important;
}


.conversation-panel .panel-label {
  color: #dbb87a;
}

.chat-log {
  background: #243142;
  border-color: rgba(115, 95, 158, 0.5);
  color: #e8e3db;
}

.resource-panel {
  background: #eef7ff;
  border-color: rgba(72, 121, 166, 0.38);
}

.transcript-panel {
  background: #152538;
  border-color: rgba(219, 184, 122, 0.42);
  color: #f7fbff;
}

.transcript-panel .panel-heading {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.transcript-panel .panel-heading h3,
.transcript-panel .panel-heading span {
  color: #ffffff;
}

.transcript-event {
  background: #203246;
  border-left-color: #dbb87a;
}

.transcript-event strong {
  color: #ffffff;
}

.transcript-event small {
  color: #c9d7e3;
}





































































.ladder-nav .nav-brand-group {
  flex-shrink: 0 !important;
  min-width: auto !important;
  max-width: none !important;
}

.ladder-nav .nav-brand-primary {
  color: #8f681c !important;
}

.ladder-nav .nav-brand-primary:hover {
  color: #8f681c !important;
}

.ladder-nav {
  max-width: 100% !important;
  padding: 0 10px !important;
  margin: 0 !important;
}

.nav-pathway-divider {
  display: inline-block !important;
  height: 24px !important;
  background: rgba(201, 160, 90, 0.2) !important;
  margin: 0 0.75rem !important;
}

.nav-pathway-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-pathway-link {
  color: #62717f;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pathway-link:hover {
  background: rgba(201, 160, 90, 0.1);
  color: #8f681c;
}

.nav-pathway-link.active {
  color: #8f681c;
  background: rgba(201, 160, 90, 0.08);
}

[data-theme="dark"] .nav-pathway-divider {
  background: rgba(219, 184, 122, 0.2) !important;
}

[data-theme="dark"] .nav-pathway-link {
  color: #b7c0c8;
}

[data-theme="dark"] .nav-pathway-link:hover {
  background: rgba(219, 184, 122, 0.15);
  color: #dbb87a;
}

[data-theme="dark"] .nav-pathway-link.active {
  color: #dbb87a;
  background: rgba(219, 184, 122, 0.12);
}

.ladder-nav .nav-brand-secondary {
  color: #8f681c;
  font-size: 0.7rem !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.nav-cert-count {
  background: rgba(219, 184, 122, 0.28) !important;
  border-radius: 10px !important;
  color: #102235 !important;
  display: inline-flex !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  margin-left: 0.3rem !important;
  min-width: 18px !important;
  align-items: center !important;
  justify-content: center !important;
  height: 18px !important;
  padding: 0 0.3rem !important;
  flex-shrink: 0 !important;
}


.nav-version {
  color: #8f681c !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  margin-left: 0.5rem !important;
  padding: 0.25rem 0.4rem !important;
  background: rgba(219, 184, 122, 0.15) !important;
  border-radius: 4px !important;
}

.authentication-required {
  background: #f2edff !important;
  border: 1px solid rgba(115, 95, 158, 0.35) !important;
  border-radius: 7px !important;
  color: #102235 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  margin-bottom: 0.65rem !important;
  margin-top: 0.5rem !important;
  width: 100% !important;
}

.auth-link {
  color: #102235 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}

.auth-link:hover {
  color: #102235 !important;
  text-decoration: underline !important;
}

.evaluation-actions button,
.evaluation-actions a {
  color: #102235 !important;
}

.evaluation-actions button:hover,
.evaluation-actions a:hover {
  color: #102235 !important;
}

.architecture-link {
  color: #102235 !important;
}

.credential-demo-link {
  color: #102235 !important;
}

.learner-panel .panel-label,
.topic-search-panel .panel-label,
.evaluation-panel .panel-label,
.evaluation-actions a {
  color: #5b477e;
}

.placement-profile-prompt strong,
.assessment-log .message strong {
  color: #102235;
}

.placement-profile-prompt span,
.assessment-log .message,
.conversation-panel .panel-heading p,
.topic-search-empty,
.vocab-definition-box small {
  color: #34495d;
}

.placement-toolbar button.secondary,
.assessment-nav button.secondary,
.placement-profile-prompt button.secondary {
  background: #2b3745;
  border-color: #2b3745;
  color: #ffffff;
}

.tier-number {
  background: #102235 !important;
  border: 1px solid rgba(219, 184, 122, 0.52);
  color: #ffffff;
}

.tier-button.active,
.tier-button:hover {
  color: #102235;
}

.tier-button.active .tier-meta strong,
.tier-button:hover .tier-meta strong {
  color: #102235;
}

.tier-button.active .tier-meta small,
.tier-button.active .tier-progress,
.tier-button:hover .tier-meta small,
.tier-button:hover .tier-progress {
  color: #34495d;
}



.dark-mode-toggle__thumb {
  background: #8f681c !important;
}

.assessment-log {
  background: #fbfaf6 !important;
  color: #102235 !important;
}

.topic-strip {
  background: #142437 !important;
  color: #f8dd9a !important;
}

.certification-workspace-panel .panel-label {
  color: #5b477e !important;
}











@media (max-width: 1180px) {
  .workspace,
  .ladder-hero,
  .ladder-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .placement-chat,
  .placement-progress {
    grid-column: auto;
    grid-row: auto;
  }

  .placement-chat {
    min-height: 0;
  }

  .tier-rail {
    position: static;
  }

  .tier-list {
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .hero-panels {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) {
  .rail-head,
  .topic-head {
    min-height: 222px;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    height: auto;
    padding: 0.8rem;
    flex-wrap: wrap;
  }

  .ladder-top-actions {
    margin-left: 0;
    width: 100%;
  }

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

  .ladder-app {
    width: min(calc(100% - 1rem), 1800px);
    padding: 0.5rem 0 2rem;
  }

  .topic-grid,
  .learner-actions,
  .vocab-prompt-form,
  .chat-form,
  .assessment-form {
    grid-template-columns: 1fr;
  }

  .assessment-chat-head {
    align-items: stretch;
    flex-direction: column;
  }

  .assessment-nav {
    justify-content: stretch;
  }

  .assessment-nav button {
    flex: 1;
  }

  .assessment-log {
    max-height: 55vh;
    min-height: 310px;
  }

  .placement-toolbar.is-collapsed .placement-summary {
    grid-template-columns: 1fr;
  }

  .placement-toolbar.is-collapsed .placement-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
  }

  .placement-toolbar.is-collapsed .placement-actions button {
    flex: 1;
  }

  .placement-profile-prompt,
  .placement-profile-prompt div {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-strip {
    margin-inline: 0;
    overscroll-behavior-x: contain;
  }

  .tier-rail {
    overflow: visible;
    padding: 0;
  }

  .rail-head {
    padding: 1rem;
  }

  .tier-list {
    display: grid;
    gap: 0.65rem;
    grid-auto-rows: 136px;
    padding: 0.75rem;
  }

  .tier-item {
    border-bottom: 0;
  }

  .tier-button {
    align-items: start;
    border: 1px solid var(--ladder-line);
    border-radius: 8px;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "number meta"
      "number progress";
    gap: 0.2rem 0.6rem;
    min-height: 0;
    padding: 0.75rem;
  }

  .tier-number {
    grid-area: number;
    height: 32px;
    width: 32px;
  }

  .tier-meta {
    grid-area: meta;
  }

  .tier-meta strong {
    font-size: 19.2px;
    line-height: 1.06;
  }

  .tier-meta small {
    font-size: 14.4px;
    line-height: 1.08;
  }

  .tier-progress {
    align-self: end;
    grid-area: progress;
    font-size: 13.2px;
    line-height: 1;
    justify-self: start;
  }

  .topic-head,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final product-surface pass: keep the page white, make the work panels feel unified. */
.ladder-hero {
  align-items: start !important;
  gap: 1.25rem !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.hero-panels {
  align-self: start !important;
  display: contents !important;
  gap: 1rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.hero-panels .learner-panel,
.hero-panels .topic-search-panel,
.hero-panels .evaluation-panel {
  min-height: 360px !important;
}

.ladder-hero-copy {
  align-self: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #102235 !important;
  grid-column: span 2 !important;
  min-height: 360px !important;
  overflow: visible !important;
  padding: 0.65rem 0.45rem !important;
}

.ladder-hero-copy::before,
.ladder-hero-copy::after {
  display: none !important;
}

.hero-kicker-row {
  align-items: flex-start !important;
  display: flex !important;
  gap: 1rem !important;
  justify-content: space-between !important;
}

.hero-kicker-row .eyebrow {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.hero-kicker-row .education-focus-control {
  flex: 0 0 min(240px, 38%) !important;
}

.hero-certifications-row {
  align-items: center !important;
  display: flex !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
}

.hero-cert-label {
  color: var(--ladder-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.hero-cert-count {
  background: rgba(201, 160, 90, 0.15) !important;
  border-radius: 10px !important;
  color: var(--ladder-focus) !important;
  display: inline-flex !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  min-width: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  height: 24px !important;
  padding: 0 0.4rem !important;
}

.ladder-hero .eyebrow {
  background: transparent !important;
  border: 0 !important;
  color: #5b477e !important;
  display: block !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.16em !important;
  line-height: 1.45 !important;
  max-width: 46ch !important;
  padding: 0 !important;
}

.ladder-hero h1 {
  color: #102235 !important;
  font-size: clamp(3.45rem, 5.6vw, 5.55rem) !important;
  line-height: 0.9 !important;
  margin: 1.15rem 0 0.65rem !important;
  text-shadow: 0 8px 24px rgba(16, 34, 53, 0.12) !important;
}

.ladder-hero h1::after {
  background: linear-gradient(90deg, #5b477e, #dbb87a, rgba(219, 184, 122, 0)) !important;
  height: 5px !important;
  max-width: 215px !important;
}

.hero-text {
  background: transparent !important;
  border: 0 !important;
  color: #34495d !important;
  display: -webkit-box !important;
  font-size: 1.08rem !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.45 !important;
  max-width: 55ch !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.ladder-hero-stats {
  display: grid !important;
  gap: 0.55rem !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-top: 1.15rem !important;
  max-width: 100% !important;
}

.ladder-hero-stat {
  align-items: center !important;
  background: linear-gradient(180deg, rgba(16, 34, 53, 0.045), rgba(219, 184, 122, 0.05)) !important;
  border-top: 2px solid rgba(219, 184, 122, 0.72) !important;
  color: #102235 !important;
  display: grid !important;
  justify-items: center !important;
  min-width: 0 !important;
  padding: 0.58rem 0.62rem 0.54rem !important;
  text-align: center !important;
}

.ladder-hero-stat strong {
  color: #102235 !important;
  display: block !important;
  font-family: var(--font-ui) !important;
  font-size: clamp(1rem, 1.35vw, 1.24rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.ladder-hero-stat span {
  color: #5b477e !important;
  display: block !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  margin-top: 0.32rem !important;
  text-transform: uppercase !important;
}

.ladder-hero-stat--primary {
  border-top-color: #5b477e !important;
}

.hero-ribbon-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin-top: 1.15rem !important;
}

.hero-ribbon-label {
  color: #5b477e !important;
  display: block !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.hero-ribbon-track {
  display: grid !important;
  gap: 0.42rem !important;
  grid-template-columns: repeat(15, minmax(0, 1fr)) !important;
  width: 100% !important;
}

.hero-ribbon-slot {
  align-items: center !important;
  background: linear-gradient(180deg, rgba(16, 34, 53, 0.035), rgba(16, 34, 53, 0.01)) !important;
  border: 1px dashed rgba(91, 71, 126, 0.24) !important;
  color: rgba(16, 34, 53, 0.48) !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  justify-items: center !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0.38rem 0.2rem 0.45rem !important;
  position: relative !important;
  text-align: center !important;
}

.hero-ribbon-slot.has-ribbon {
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(16, 34, 53, 0.12) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.hero-ribbon-slot.has-ribbon::after {
  background: rgba(255, 255, 255, 0.72) !important;
  bottom: -10px !important;
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%) !important;
  content: "" !important;
  height: 20px !important;
  left: 0 !important;
  opacity: 0.7 !important;
  position: absolute !important;
  right: 0 !important;
}

.hero-ribbon-number {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  height: 20px !important;
  justify-content: center !important;
  line-height: 1 !important;
  width: 20px !important;
}

.hero-ribbon-medal {
  font-size: clamp(0.58rem, 0.72vw, 0.76rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  margin-top: 0.2rem !important;
  text-transform: uppercase !important;
}

.hero-ribbon-tier {
  display: none !important;
  font-size: 0.5rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.05 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 0.05rem !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.hero-ribbon-slot.is-empty .hero-ribbon-medal::before {
  color: rgba(91, 71, 126, 0.35) !important;
  content: "-" !important;
  font-size: 1.1rem !important;
}

.ribbon-certification {
  background: linear-gradient(180deg, #d9bd78 0%, #b88435 100%) !important;
}

.ribbon-expert-challenge {
  background: linear-gradient(180deg, #7e67b3 0%, #4d3f7f 100%) !important;
}

.ribbon-mastery-challenge {
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 231, 168, 0.32), transparent 34%),
    linear-gradient(180deg, #102235 0%, #07111d 100%) !important;
  outline: 1px solid rgba(219, 184, 122, 0.55) !important;
  outline-offset: -1px !important;
}

.ribbon-mastery-challenge .hero-ribbon-medal {
  color: #ffe7a8 !important;
}

.hero-panels .learner-panel,
.hero-panels .topic-search-panel,
.hero-panels .evaluation-panel {
  align-self: stretch !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 184, 122, 0.11), transparent 28%),
    linear-gradient(145deg, #111d2a 0%, #17293b 100%) !important;
  border: 1px solid rgba(219, 184, 122, 0.34) !important;
  box-shadow: 0 18px 36px rgba(8, 18, 31, 0.18) !important;
  color: #e8e3db !important;
  height: 100% !important;
  min-height: 360px !important;
}

.hero-panels .panel-label,
.hero-panels .learner-panel strong,
.hero-panels .topic-search-panel strong,
.hero-panels .evaluation-panel strong {
  color: #ffe7a8 !important;
}

.hero-panels .topic-search-panel p,
.hero-panels .evaluation-panel p,
.hero-panels .topic-search-empty,
.hero-panels .topic-search-results {
  color: #d8e5ef !important;
}

.hero-panels input,
.hero-panels select {
  background: #07111d !important;
  border-color: rgba(219, 184, 122, 0.28) !important;
  color: #f7fbff !important;
  min-width: 0 !important;
}

.hero-panels input::placeholder {
  color: #9aa7b4 !important;
}

.hero-panels button {
  background: #07111d !important;
  border-color: rgba(219, 184, 122, 0.42) !important;
  color: #dbb87a !important;
}

.hero-panels button:hover {
  background: #102235 !important;
  color: #ffe7a8 !important;
}

.hero-panels .evaluation-actions a {
  color: #ffe7a8 !important;
}

.hero-panels .learner-actions {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.hero-panels .learner-actions button {
  white-space: nowrap !important;
}

.hero-panels .evaluation-controls {
  margin-top: 1rem !important;
}

.hero-panels .evaluation-actions {
  align-items: stretch !important;
  display: grid !important;
  gap: 0.7rem !important;
  grid-template-columns: 1fr !important;
  justify-content: stretch !important;
}

.hero-panels .evaluation-actions button {
  width: 100% !important;
}

.hero-panels .topic-search-results {
  max-height: 280px !important;
  overflow: auto !important;
}

.hero-panels .learner-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 184, 122, 0.12), transparent 30%),
    linear-gradient(145deg, #101b28 0%, #152638 100%) !important;
}

.hero-panels .topic-search-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 184, 122, 0.14), transparent 30%),
    linear-gradient(145deg, #151f2c 0%, #1b2f43 100%) !important;
}

.hero-panels .evaluation-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(115, 95, 158, 0.28), transparent 32%),
    linear-gradient(145deg, #15172a 0%, #23183d 100%) !important;
}

@media (max-width: 1180px) {
  .ladder-hero {
    grid-template-columns: 1fr !important;
  }

  .hero-panels {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ladder-hero-copy {
    grid-column: auto !important;
    min-height: 0 !important;
  }

  .ladder-hero-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .hero-ribbon-track {
    grid-template-columns: repeat(15, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .hero-kicker-row {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .hero-kicker-row .education-focus-control {
    flex-basis: auto !important;
    max-width: 360px !important;
  }

  .ladder-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-ribbon-track {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .hero-panels {
    grid-auto-rows: 1fr !important;
    grid-template-columns: 1fr !important;
  }

  .hero-panels .learner-panel,
  .hero-panels .topic-search-panel,
  .hero-panels .evaluation-panel {
    min-height: 0 !important;
  }
}

/* Ladder dark mode */
[data-theme="dark"] {
  --ladder-bg: #07111d;
  --ladder-panel: #111d2a;
  --ladder-line: #304252;
  --ladder-soft: #172638;
  --ladder-ink: #e8e3db;
  --ladder-muted: #b7c0c8;
  --ladder-good: #bda7ff;
  --ladder-focus: #dbb87a;
}

[data-theme="dark"] body {
  background: #07111d !important;
}

[data-theme="dark"] .ladder-app {
  background: #07111d !important;
}

[data-theme="dark"] .workspace {
  background: #0b1622 !important;
  border-color: #304252 !important;
}

[data-theme="dark"] .ladder-hero-copy,
[data-theme="dark"] .placement-toolbar,
[data-theme="dark"] .placement-chat,
[data-theme="dark"] .placement-progress,
[data-theme="dark"] .topic-head,
[data-theme="dark"] .topic-panel,
[data-theme="dark"] .conversation-panel,
[data-theme="dark"] .resource-panel,
[data-theme="dark"] .transcript-panel,
[data-theme="dark"] .certification-workspace-panel,
[data-theme="dark"] .tier-rail,
[data-theme="dark"] .rail-head,
[data-theme="dark"] .tier-list,
[data-theme="dark"] .assigned-rungs-panel,
[data-theme="dark"] .chat-log,
[data-theme="dark"] .assessment-log,
[data-theme="dark"] .vocab-definition-box,
[data-theme="dark"] .transcript-list {
  background: #111d2a !important;
  border-color: #304252 !important;
  color: #e8e3db !important;
}

[data-theme="dark"] .ladder-hero-copy,
[data-theme="dark"] .placement-toolbar,
[data-theme="dark"] .topic-head,
[data-theme="dark"] .conversation-panel,
[data-theme="dark"] .transcript-panel {
  background:
    radial-gradient(circle at 92% 8%, rgba(219, 184, 122, 0.14), transparent 34%),
    linear-gradient(145deg, #07111d 0%, #102235 58%, #07111d 100%) !important;
}

[data-theme="dark"] .topic-panel,
[data-theme="dark"] .resource-panel,
[data-theme="dark"] .certification-workspace-panel,
[data-theme="dark"] .placement-chat,
[data-theme="dark"] .placement-progress,
[data-theme="dark"] .assigned-rungs-panel,
[data-theme="dark"] .vocab-definition-box,
[data-theme="dark"] .chat-log,
[data-theme="dark"] .assessment-log {
  background: #142233 !important;
}

[data-theme="dark"] .panel-heading,
[data-theme="dark"] .conversation-panel .panel-heading,
[data-theme="dark"] .transcript-panel .panel-heading,
[data-theme="dark"] .assessment-chat-head {
  background: #0d1723 !important;
  border-color: #304252 !important;
  color: #e8e3db !important;
}

[data-theme="dark"] .ladder-hero h1,
[data-theme="dark"] .placement-summary h2,
[data-theme="dark"] .assessment-chat-head strong,
[data-theme="dark"] .topic-head h2,
[data-theme="dark"] .panel-heading h3,
[data-theme="dark"] .panel-heading strong,
[data-theme="dark"] .topic-panel strong,
[data-theme="dark"] .conversation-panel strong,
[data-theme="dark"] .resource-panel strong,
[data-theme="dark"] .transcript-panel strong,
[data-theme="dark"] .rail-product-title,
[data-theme="dark"] .tier-meta strong,
[data-theme="dark"] .vocab-definition-box strong,
[data-theme="dark"] .message strong {
  color: #fff7df !important;
}

[data-theme="dark"] .hero-text,
[data-theme="dark"] .placement-summary p,
[data-theme="dark"] .placement-toolbar p,
[data-theme="dark"] .placement-toolbar small,
[data-theme="dark"] .topic-head,
[data-theme="dark"] .panel-heading p,
[data-theme="dark"] .topic-panel p,
[data-theme="dark"] .conversation-panel p,
[data-theme="dark"] .resource-panel p,
[data-theme="dark"] .transcript-panel p,
[data-theme="dark"] .vocab-definition-box p,
[data-theme="dark"] .message,
[data-theme="dark"] .transcript-event small,
[data-theme="dark"] .tier-meta small,
[data-theme="dark"] .tier-progress,
[data-theme="dark"] .topic-search-empty,
[data-theme="dark"] .vocab-definition-box small {
  color: #d8e5ef !important;
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .panel-label,
[data-theme="dark"] .rail-product-label,
[data-theme="dark"] .transcript-panel .panel-heading span,
[data-theme="dark"] .topic-head .panel-label,
[data-theme="dark"] .placement-toolbar .panel-label {
  color: #ffe7a8 !important;
}

[data-theme="dark"] .tier-button,
[data-theme="dark"] .assigned-rung-link,
[data-theme="dark"] .topic-search-result,
[data-theme="dark"] .vocab-pill,
[data-theme="dark"] .resource-chip,
[data-theme="dark"] .message.assistant,
[data-theme="dark"] .message.user,
[data-theme="dark"] .standards-review-offer,
[data-theme="dark"] .vocab-card,
[data-theme="dark"] .rung-card,
[data-theme="dark"] .transcript-event,
[data-theme="dark"] .placement-metrics span,
[data-theme="dark"] .placement-metrics small,
[data-theme="dark"] .progress-meter {
  background: #172638 !important;
  border-color: #304252 !important;
  color: #e8e3db !important;
}

[data-theme="dark"] .standards-review-offer p {
  color: #d8e5ef !important;
}

[data-theme="dark"] .standards-review-actions button.secondary,
[data-theme="dark"] .standards-review-actions a {
  border-color: #dbb87a !important;
  color: #ffe7a8 !important;
}

[data-theme="dark"] .standards-review-actions button:not(.secondary) {
  background: #dbb87a !important;
  border-color: #dbb87a !important;
  color: #07111d !important;
}

[data-theme="dark"] .topic-search-result strong,
[data-theme="dark"] .assigned-rung-link strong,
[data-theme="dark"] .vocab-card strong,
[data-theme="dark"] .rung-card strong,
[data-theme="dark"] .standards-review-offer strong,
[data-theme="dark"] .transcript-event strong {
  color: #fff7df !important;
}

[data-theme="dark"] .topic-search-result small,
[data-theme="dark"] .resource-chip,
[data-theme="dark"] .assigned-rung-link span,
[data-theme="dark"] .assigned-rung-link small {
  color: #d8e5ef !important;
}

[data-theme="dark"] .tier-button:hover,
[data-theme="dark"] .tier-button.active,
[data-theme="dark"] .vocab-pill.active,
[data-theme="dark"] .vocab-pill:focus-visible,
[data-theme="dark"] .vocab-pill:hover,
[data-theme="dark"] .resource-chip:hover,
[data-theme="dark"] .topic-search-result:hover,
[data-theme="dark"] .assigned-rung-link:hover {
  background: #26384d !important;
  border-color: #dbb87a !important;
  color: #fff7df !important;
}

[data-theme="dark"] .tier-button:hover *,
[data-theme="dark"] .tier-button.active *,
[data-theme="dark"] .vocab-pill.active *,
[data-theme="dark"] .vocab-pill:focus-visible *,
[data-theme="dark"] .vocab-pill:hover *,
[data-theme="dark"] .resource-chip:hover *,
[data-theme="dark"] .topic-search-result:hover *,
[data-theme="dark"] .assigned-rung-link:hover * {
  color: #fff7df !important;
}

[data-theme="dark"] .ladder-select,
[data-theme="dark"] .ladder-input,
[data-theme="dark"] .learner-actions input,
[data-theme="dark"] .topic-search-input,
[data-theme="dark"] .evaluation-select,
[data-theme="dark"] .chat-form input,
[data-theme="dark"] .assessment-form textarea,
[data-theme="dark"] .vocab-prompt-form input {
  background: #07111d !important;
  border-color: #304252 !important;
  color: #f7fbff !important;
}

[data-theme="dark"] .ladder-select::placeholder,
[data-theme="dark"] .ladder-input::placeholder,
[data-theme="dark"] .learner-actions input::placeholder,
[data-theme="dark"] .topic-search-input::placeholder,
[data-theme="dark"] .chat-form input::placeholder,
[data-theme="dark"] .assessment-form textarea::placeholder,
[data-theme="dark"] .vocab-prompt-form input::placeholder {
  color: #9aa7b4 !important;
}

[data-theme="dark"] button.secondary,
[data-theme="dark"] .assessment-nav button.secondary,
[data-theme="dark"] .placement-profile-prompt button.secondary {
  background: #172638 !important;
  border-color: #304252 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .ladder-nav {
  background: #07111d !important;
  border-color: rgba(219, 184, 122, 0.32) !important;
}

[data-theme="dark"] .ladder-nav .nav-brand-primary,
[data-theme="dark"] .ladder-nav .nav-brand-secondary,
[data-theme="dark"] .dark-mode-toggle,
[data-theme="dark"] .dark-mode-toggle__icon,
[data-theme="dark"] .nav-btn {
  color: #ffe7a8 !important;
}

[data-theme="dark"] .dark-mode-toggle {
  background: #111d2a !important;
  border-color: #304252 !important;
}

[data-theme="dark"] .nav-cert-count {
  background: #dbb87a !important;
  color: #07111d !important;
}

[data-theme="dark"] .hero-ribbon-label {
  color: #ffe7a8 !important;
}

[data-theme="dark"] .ladder-hero-stat,
[data-theme="dark"] .hero-ribbon-slot {
  background: #111d2a !important;
  border-color: rgba(219, 184, 122, 0.36) !important;
  color: #d8e5ef !important;
}

[data-theme="dark"] .ladder-hero-stat strong,
[data-theme="dark"] .ladder-hero-stat span,
[data-theme="dark"] .hero-ribbon-number,
[data-theme="dark"] .hero-ribbon-tier,
[data-theme="dark"] .hero-ribbon-medal {
  color: #f7fbff !important;
}

[data-theme="dark"] .hero-ribbon-slot.is-empty .hero-ribbon-medal::before {
  color: #9aa7b4 !important;
}

.conversation-panel #conversationTitle,
[data-theme="dark"] .conversation-panel #conversationTitle {
  color: #ffffff !important;
}

#architectureDialog,
#architectureDialog * {
  color: #000000 !important;
}

#architectureDialog .topic-panel,
#architectureDialog .panel-heading,
#architectureDialog .certification-guide-callout,
#architectureDialog .certification-guide-note,
#architectureDialog .certification-guide-grid section {
  background: #ffffff !important;
  border-color: #2b3745 !important;
}

#architectureDialog .certification-guide-callout,
#architectureDialog .certification-guide-note {
  background: #f7f7f7 !important;
}

#architectureDialog button {
  background: #ffffff !important;
  border-color: #2b3745 !important;
}

.ladder-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem 1rem 2rem;
  color: var(--ladder-muted);
  font-size: 0.78rem;
  text-align: center;
}

.certification-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.ladder-legal span:last-child {
  color: var(--ladder-focus);
  font-weight: 700;
}
