:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1d2329;
  --muted: #6b7280;
  --border: #e3e6ea;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff4ff;
  --danger: #dc2626;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sidebar-w: 248px;
  --topbar-h: 60px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101827;
  --surface: #182235;
  --text: #e7eef9;
  --muted: #a6b4c8;
  --border: #34445d;
  --primary: #8eafff;
  --primary-hover: #b1c7ff;
  --primary-soft: #27395d;
  --danger: #ff8f8f;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* ================= Academic learning model ================= */
.academic-model {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #d9e4f5;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff 0%, #f2f7ff 100%);
}

.academic-model-heading,
.academic-area-heading,
.academic-skill-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.academic-model-heading h4,
.academic-area-heading h4 {
  margin: 0;
  color: var(--text);
}

.academic-area-kicker {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.academic-model-status,
.academic-area-count,
.academic-accuracy {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e5f4ee;
  color: #116149;
  font-size: 11px;
  font-weight: 700;
}

.academic-model-intro,
.academic-next-step {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.academic-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.academic-area,
.academic-common {
  padding: 13px;
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: var(--surface);
}

.academic-area-count {
  background: #eef3ff;
  color: var(--primary);
}

.academic-skill-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.academic-skill-card {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.academic-skill-heading strong,
.academic-skill-heading small {
  display: block;
}

.academic-skill-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.academic-skill-card > p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.academic-accuracy {
  background: #f3f5f9;
  color: var(--muted);
  font-size: 10px;
}

.academic-stage-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.academic-stage-list li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--text);
  font-size: 11px;
}

.academic-stage-list li > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.academic-stage-list li small {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.academic-stage-list .academic-step-completed > span:first-child {
  background: #1a8f5d;
}

.academic-stage-list .academic-step-active > span:first-child {
  background: var(--primary);
  box-shadow: 0 0 0 3px #dce8ff;
}

.academic-stage-list .academic-step-locked > span:first-child {
  background: #d99a25;
}

.academic-stage-list .academic-step-unavailable {
  color: var(--muted);
}

.academic-common {
  margin-top: 12px;
  background: #fffdf7;
  border-color: #eadfbf;
}

.academic-common-stage-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

@media (max-width: 700px) {
  .academic-area-grid,
  .academic-common-stage-list {
    grid-template-columns: 1fr;
  }

  .academic-model-heading,
  .academic-area-heading {
    flex-direction: column;
  }

  .academic-model-status,
  .academic-area-count {
    align-self: flex-start;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* ================= Entitlement / plan summary ================= */
.entitlement-card {
  margin-top: 16px;
  padding: 16px;
}
.entitlement-card-head,
.entitlement-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.entitlement-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.entitlement-card[data-ux-state="FREE_LIMIT_WARNING"] .entitlement-usage-row {
  background: #fff7ed;
}
.entitlement-card[data-ux-state="FREE_LIMIT_REACHED"] .entitlement-usage-row {
  background: #fef2f2;
}
.entitlement-card[data-ux-state="PREMIUM_ACTIVE"] .entitlement-premium {
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 14px;
  border-top: 0;
}
.entitlement-card h3 {
  margin: 2px 0 0;
}
.entitlement-card .eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.entitlement-scope,
.entitlement-premium p {
  margin: 2px 0 0;
  font-size: 13px;
}
.entitlement-usage {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.entitlement-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 13px;
}
.entitlement-premium {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.premium-account-card,
.premium-dialog-head,
.premium-dialog-actions,
.premium-info-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.premium-account-card {
  margin-bottom: 16px;
  padding: 16px;
}
.premium-account-card h3,
.premium-info-card h3,
.premium-info-note h3 {
  margin: 4px 0 6px;
}
.premium-info-page {
  padding-bottom: 24px;
}
.premium-info-heading {
  margin-bottom: 20px;
}
.premium-info-heading h2 {
  margin: 4px 0;
}
.premium-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.premium-info-card,
.premium-info-note {
  padding: 20px;
}
.premium-info-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.premium-info-card li + li {
  margin-top: 8px;
}
.premium-info-highlight {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%);
}
.premium-info-icon {
  font-size: 28px;
}
.premium-info-note {
  margin-top: 16px;
  border-left: 4px solid var(--primary);
}
.premium-info-note p {
  margin: 8px 0 0;
}
.premium-dialog {
  width: min(100% - 32px, 520px);
  margin: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
}
.premium-dialog::backdrop {
  background: rgba(16, 24, 40, 0.48);
}
.premium-dialog-head h2 {
  margin: 4px 0 0;
}
.premium-dialog > p {
  margin: 16px 0 0;
}
.premium-paywall-details {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
}
.premium-paywall-details p {
  margin: 0;
}
.premium-paywall-details p + p {
  margin-top: 6px;
}
.premium-paywall-benefit {
  font-weight: 600;
}
.premium-dialog-actions {
  justify-content: flex-start;
  margin-top: 20px;
}
.premium-dialog .btn,
.premium-account-card .btn,
.premium-info-page .btn,
.entitlement-card .btn {
  min-height: 48px;
}

.billing-sandbox-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.billing-sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-checkout-form {
  min-height: 4px;
}
.billing-account-page {
  padding-bottom: 24px;
}
.billing-account-heading,
.billing-account-scope,
.billing-account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.billing-account-heading {
  margin-bottom: 20px;
}
.billing-account-heading h2,
.billing-account-card h3,
.billing-account-benefits h3,
.billing-account-invoice h3 {
  margin: 4px 0 6px;
}
.billing-account-scope,
.billing-account-card,
.billing-account-benefits,
.billing-account-history,
.billing-account-invoice {
  padding: 20px;
}
.billing-account-scope {
  margin-bottom: 16px;
}
.billing-account-scope h3 {
  margin: 4px 0 0;
}
.billing-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.billing-account-card {
  min-height: 250px;
}
.billing-account-state {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: #164e63;
  background: #ecfeff;
  font-weight: 700;
}
.billing-account-state[data-state="PREMIUM_ACTIVE"] {
  color: #166534;
  background: #f0fdf4;
}
.billing-account-state[data-state="PREMIUM_CANCELED"],
.billing-account-state[data-state="PREMIUM_EXPIRED"] {
  color: #7f1d1d;
  background: #fef2f2;
}
.billing-account-details {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}
.billing-account-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.billing-account-details dt,
.billing-account-details dd {
  margin: 0;
  font-size: 13px;
}
.billing-account-details dt {
  color: var(--muted);
}
.billing-account-details dd {
  text-align: right;
  font-weight: 600;
}
.billing-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.billing-account-page .btn {
  min-height: 48px;
}
.billing-account-benefits,
.billing-account-history,
.billing-account-invoice {
  margin-top: 16px;
}
.billing-account-benefits ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.billing-account-benefits li + li {
  margin-top: 6px;
}
.billing-account-history {
  overflow: hidden;
}
.billing-payment-table {
  min-width: 480px;
  margin-top: 12px;
}
.billing-payment-table th,
.billing-payment-table td {
  padding: 10px 12px;
}
.billing-cancel-dialog #billing-cancel-warning {
  font-weight: 600;
}
@media (max-width: 560px) {
  .entitlement-premium,
  .premium-account-card,
  .premium-info-heading,
  .premium-dialog-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .entitlement-badges {
    justify-content: flex-start;
  }
  .premium-info-grid {
    grid-template-columns: 1fr;
  }
  .billing-account-heading,
  .billing-account-scope,
  .billing-account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .billing-account-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= Onboarding / personal-first welcome flow ================= */
.onboarding-shell {
  width: min(100%, 620px);
  margin: 8px auto;
  padding: 16px 0 32px;
}
.onboarding-card.card {
  position: relative;
  padding: 28px clamp(20px, 5vw, 48px) 24px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}
.onboarding-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.onboarding-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.onboarding-progress {
  margin-bottom: 28px;
}
.onboarding-progress-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.onboarding-progress-count {
  float: right;
  color: var(--muted);
  font-size: 13px;
}
.onboarding-progress-dots {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.onboarding-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #dbe4f5;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}
.onboarding-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}
.onboarding-dot.complete {
  background: var(--primary);
}
.onboarding-progress-line {
  height: 2px;
  flex: 1;
  background: #e5eaf3;
}
.onboarding-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  margin: -8px 0 16px;
  background: linear-gradient(145deg, #eff6ff, #fff7df);
  border-radius: 22px;
}
.onboarding-mascot {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 38% 46% 42% 50%;
  background: #2563eb;
  box-shadow: 0 12px 0 #bcd2ff;
  font-size: 54px;
  transform: rotate(-4deg);
}
.mascot-spark {
  position: absolute;
  right: 27%;
  top: 20px;
  color: #f59e0b;
  font-size: 28px;
}
.onboarding-step-icon,
.ready-mascot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 8px 0 18px;
  border-radius: 20px;
  background: #fff7df;
  font-size: 31px;
}
.ready-mascot {
  width: 100px;
  height: 100px;
  margin: 6px auto 18px;
  border-radius: 34px;
  background: #fff7df;
  font-size: 54px;
  animation: onboarding-pop 0.2s ease-out;
}
.goal-grid {
  display: grid;
  gap: 10px;
}
.goal-card {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}
.goal-card:hover {
  border-color: #9bb8f5;
  transform: translateY(-1px);
}
.goal-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.goal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fef3c7;
  font-size: 22px;
}
.goal-check {
  color: var(--primary);
  opacity: 0;
  font-size: 20px;
}
.goal-card.active .goal-check {
  opacity: 1;
}
.consent-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.consent-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--primary);
}
.consent-row span {
  font-size: 14px;
  line-height: 1.4;
}
.consent-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.onboarding-actions .btn,
.ready-actions .btn {
  min-height: 50px;
}
.onboarding-actions #onboarding-next,
.onboarding-actions #onboarding-complete {
  margin-left: auto;
}
.ready-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.onboarding-retry,
#today-training-retry,
#learning-path-retry {
  width: 100%;
  margin-top: 10px;
}
.onboarding-card :focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
@keyframes onboarding-pop {
  from {
    opacity: 0.5;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 600px) {
  .onboarding-shell {
    margin: 0 -8px;
    padding: 0 0 24px;
  }
  .onboarding-card {
    min-height: calc(100vh - var(--topbar-h) - 24px);
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
  .onboarding-hero {
    height: 132px;
  }
  .onboarding-card h1 {
    font-size: 29px;
  }
  .onboarding-actions {
    position: sticky;
    bottom: 0;
    margin: 24px -18px -18px;
    padding: 14px 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    z-index: 2;
  }
  .onboarding-actions .btn {
    flex: 1;
  }
  .onboarding-retry,
  #today-training-retry,
  #learning-path-retry {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-dot,
  .goal-card,
  .ready-mascot {
    transition: none;
    animation: none;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.review-card {
  margin-top: 16px;
  padding: 16px;
  border-color: #c7d7fe;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-card h3 {
  margin: 0 0 4px;
}

.review-card p {
  margin: 0;
}

.review-card-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 700;
}

.review-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.review-item-copy {
  min-width: 0;
}

.review-item-copy strong {
  display: inline-block;
  overflow-wrap: anywhere;
}

.review-item-copy p {
  margin-top: 4px;
  font-size: 12px;
}

.review-priority {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.review-empty {
  padding: 8px 0 2px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .review-item {
    align-items: stretch;
    flex-direction: column;
  }

  .review-item .btn {
    min-height: 48px;
    width: 100%;
  }
}

.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

/* ================= Butonlar ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-icon {
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
}

/* Spinner (loading) */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================= Login ================= */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #eef2ff 0%, var(--bg) 45%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
}

.social-login {
  display: grid;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.social-login .muted {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
}

.brand {
  margin-bottom: 24px;
  text-align: center;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-form-intro {
  margin: -4px 0 20px;
}

.auth-form-intro h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.auth-form-intro p {
  margin: 0;
  line-height: 1.5;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.field select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.login-card .field input,
.login-card .field select,
.student-shell .field input,
.student-shell .field select {
  min-height: 48px;
  box-sizing: border-box;
}

.login-card .btn {
  min-height: 48px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin: 0 0 12px;
  text-align: center;
}

.onboarding-notice {
  color: var(--muted);
}

/* ================= Uygulama düzeni ================= */
.app {
  min-height: 100vh;
  display: flex;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-item:hover {
  background: var(--bg);
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Topbar ---------- */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-context {
  flex: 1;
  min-width: 0;
}

.tenant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.user-menu-toggle:focus-visible {
  outline: 3px solid #a7a7ff;
  outline-offset: 3px;
}

.user-menu-chevron {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  width: max-content;
  min-width: 190px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(28, 39, 75, 0.16);
}

.user-menu.hidden,
.user-menu[hidden] {
  display: none !important;
}

.user-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.user-menu button:hover,
.user-menu button:focus-visible {
  color: var(--primary);
  background: var(--primary-soft);
}

.theme-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-role {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- İçerik ---------- */
.page {
  padding: 24px;
  flex: 1;
}

.page-view {
  max-width: 1080px;
  margin: 0 auto;
}

.page-head {
  margin-bottom: 20px;
}

.student-content-view {
  margin: 8px 0 24px;
}
.measurement-overview {
  margin-bottom: 22px;
}
.measurement-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.measurement-stat-grid .insight-stat {
  margin: 0;
  min-height: 132px;
}
.insight-blue {
  background: #eef6ff;
  border-color: #cfe0f6;
  box-shadow: 0 3px 0 #dbe9f8;
}
.insight-green {
  background: #ecfdf5;
  border-color: #c9eadb;
  box-shadow: 0 3px 0 #d8f2e5;
}
.measurement-disclaimer,
.measurement-last-detail {
  margin: 12px 4px 0;
  font-size: 13px;
}
.measurement-section {
  margin: 24px 0;
}
.measurement-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.measurement-section-heading h3 {
  margin: 2px 0 0;
}
.measurement-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.measurement-skill-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
  min-width: 0;
}
.measurement-skill-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.measurement-skill-heading h4 {
  margin: 0;
  overflow-wrap: anywhere;
}
.measurement-skill-heading strong {
  color: #304fa8;
  white-space: nowrap;
}
.measurement-skill-card .insight-bar {
  margin: 14px 0 8px;
}
.measurement-skill-meta {
  font-size: 12px;
  margin: 0;
}
.measurement-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin: 0;
}
.measurement-history {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 18px;
  background: var(--surface);
}
.measurement-history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.measurement-history-item:last-child {
  border-bottom: 0;
}
.measurement-history-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f2f5fb;
  font-size: 21px;
  flex: 0 0 42px;
}
.measurement-history-copy {
  min-width: 0;
  flex: 1;
}
.measurement-history-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.measurement-history-topline time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.measurement-history-copy h4 {
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
}
.measurement-history-copy p {
  margin: 0;
}
@media (max-width: 600px) {
  .measurement-stat-grid,
  .measurement-skill-grid {
    grid-template-columns: 1fr;
  }
  .measurement-stat-grid .insight-stat {
    min-height: auto;
  }
  .measurement-history-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
.student-section-intro {
  padding: 8px 4px 16px;
}
.student-section-intro h3 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.assessment-intro {
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
}
.learning-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.learning-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  min-width: 0;
}
.learning-card-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #dbeafe;
  font-size: 26px;
}
.assessment-icon {
  background: #fef3c7;
}
.learning-card-content {
  min-width: 0;
  flex: 1;
}
.learning-card-topline,
.student-progress-label,
.learning-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.learning-card h3 {
  margin: 12px 0 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.learning-card-actions {
  justify-content: flex-start;
  margin-top: 16px;
  flex-wrap: wrap;
}
.student-progress-label {
  font-size: 12px;
  margin: 14px 0 6px;
  color: var(--muted);
}
.assessment-meta,
.assessment-result-line {
  font-size: 13px;
  margin: 10px 0 0;
}
.assessment-result-line {
  color: #166534;
  font-weight: 600;
}
.empty-learning-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: #fff;
}
.empty-learning-state .btn {
  min-height: 48px;
}
.empty-learning-state > div {
  font-size: 36px;
  margin-bottom: 10px;
}
.assessment-detail-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0 20px;
}
.assessment-detail-hero h4 {
  margin: 4px 0;
  font-size: 20px;
}

@media (max-width: 600px) {
  .learning-card-grid {
    grid-template-columns: 1fr;
  }
  .learning-card {
    padding: 16px;
    gap: 12px;
  }
  .learning-card-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .learning-card-actions .btn {
    min-height: 48px;
    flex: 1;
  }
}

.page-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.page-head p {
  margin: 0;
}

/* ---------- Dashboard stat kartları ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---------- Placeholder / yakında ---------- */
.coming-soon {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.coming-soon-icon {
  font-size: 40px;
}

.coming-soon h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.coming-soon p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.placeholder-note {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Kurumlar ---------- */
.tenant-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tenant-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-field {
  margin-bottom: 0;
}

.inline-field input,
.inline-field select {
  width: auto;
  min-width: 220px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.table-card {
  overflow-x: auto;
}

.table-wrap {
  overflow-x: auto;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.table-footer .muted {
  margin: 0 4px;
}

.error-banner {
  background: #fdecea;
  color: #c5221f;
  border: 1px solid #f5c6c4;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
}

.chip .chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.chip .chip-remove:hover {
  color: var(--danger);
}

.chip-info {
  background: #e8f0fe;
  border-color: #c6d8fb;
  color: #1a56db;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.version-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.version-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.audit-row .muted {
  margin-left: auto;
}

/* ================= İçerik üretimi workspace ================= */
.modal-authoring {
  width: min(100% - 28px, 1320px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

.modal-authoring .modal-body {
  padding: 20px;
}

.modal-authoring .eyebrow {
  margin: 0 0 2px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authoring-state {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.authoring-state[data-state="saved"],
.authoring-state[data-state="ready"] {
  color: #166534;
}

.authoring-state[data-state="dirty"] {
  color: #92400e;
  font-weight: 600;
}

.authoring-state[data-state="error"] {
  color: var(--danger);
}

.authoring-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.authoring-meta-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
}

.authoring-meta-item > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.authoring-meta-item strong,
.authoring-meta-item code {
  overflow-wrap: anywhere;
}

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

.authoring-pane,
.authoring-section {
  min-width: 0;
  padding: 16px;
}

.authoring-pane-head,
.authoring-section-head,
.authoring-lifecycle-status,
.authoring-form-actions,
.authoring-lifecycle-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.authoring-pane-head,
.authoring-section-head {
  margin-bottom: 14px;
}

.authoring-pane-head h4,
.authoring-section-head h4 {
  margin: 0;
}

.authoring-form-actions,
.authoring-lifecycle-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.authoring-question-list {
  display: grid;
  gap: 8px;
}

.authoring-question-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.authoring-question-position {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.authoring-question-main,
.authoring-question-actions {
  min-width: 0;
}

.authoring-question-main {
  display: grid;
  gap: 3px;
}

.authoring-question-main strong {
  overflow-wrap: anywhere;
}

.authoring-question-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.authoring-warning {
  margin: 4px 0 0;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
}

.authoring-section {
  margin-top: 16px;
}

.authoring-preview {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.authoring-preview-passage,
.authoring-preview-question {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.authoring-preview-passage h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.authoring-preview-question p {
  margin: 0 0 8px;
}

.authoring-readiness {
  display: grid;
  gap: 6px;
}

.readiness-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.readiness-pass {
  background: #f0fdf4;
  color: #166534;
}

.readiness-fail {
  background: #fff7ed;
  color: #9a3412;
}

.authoring-lifecycle {
  display: grid;
  gap: 10px;
}

.authoring-lifecycle-status {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 13px;
}

@media (max-width: 900px) {
  .authoring-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .modal-authoring {
    width: min(100% - 12px, 1320px);
    max-height: calc(100vh - 12px);
  }

  .modal-authoring .modal-body {
    padding: 14px;
  }

  .authoring-meta {
    grid-template-columns: 1fr;
  }

  .authoring-question-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .authoring-question-status,
  .authoring-question-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .authoring-question-actions .btn,
  .authoring-form-actions .btn,
  .authoring-lifecycle-actions .btn {
    min-height: 44px;
  }
}

#page-contents .data-table {
  min-width: 1120px;
}

#page-questions .data-table {
  min-width: 1180px;
}

.question-option-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.question-audit-list {
  display: grid;
  gap: 8px;
}

.question-audit-row {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.version-body-view {
  white-space: pre-wrap;
  line-height: 1.6;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  max-height: 40vh;
  overflow-y: auto;
  font-size: 14px;
}

.scope-badge-global {
  background: #e8f0fe;
  color: #1a56db;
}

.scope-badge-tenant {
  background: #f0f7e9;
  color: #2f6b1e;
}

.content-type-icon {
  margin-right: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 32px 14px !important;
}

.cell-muted {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.link-btn:hover {
  text-decoration: underline;
}

.text-right {
  text-align: right !important;
}

.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.badge-success {
  background: #e7f6ec;
  color: #137333;
}

.badge-warning {
  background: #fef7e0;
  color: #b06000;
}

.badge-danger {
  background: #fdecea;
  color: #c5221f;
}

.badge-neutral {
  background: #eef0f3;
  color: #475467;
}

.badge-info {
  background: #e8f0fe;
  color: #1a56db;
}

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

.gamification-stat {
  display: grid;
  gap: 6px;
  text-align: center;
}

.gamification-stat-icon {
  font-size: 28px;
}

.gamification-stat strong {
  font-size: 26px;
  color: var(--text);
}

.gamification-section {
  margin-bottom: 18px;
}

.gamification-section h3 {
  margin-top: 0;
}

.gamification-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gamification-badge {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.gamification-badge-icon {
  font-size: 30px;
}

.gamification-badge p {
  margin: 4px 0;
  color: var(--muted);
}

.gamification-badge small {
  color: var(--muted);
}

.gamification-points {
  color: #137333;
  font-weight: 700;
}

@media (max-width: 720px) {
  .gamification-summary {
    grid-template-columns: 1fr;
  }
}

.tenant-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  z-index: 30;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
  padding: 20px;
}

.modal-wide {
  max-width: 760px;
}

.fieldset-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 4px;
  margin: 0 0 14px;
}

.fieldset-group legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field-hint {
  font-size: 12px;
  margin-top: -6px;
  margin-bottom: 10px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.detail-status-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Bilgi ızgarası / detay bölümleri ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.info-item dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.info-item dd {
  margin: 0;
  font-size: 14px;
}

.detail-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.detail-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.detail-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.enrollment-add-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.enrollment-add-row .field {
  flex: 1;
  min-width: 180px;
}

.enrollment-add-row .field select {
  width: 100%;
}

.enr-status-select {
  width: auto;
  min-width: 130px;
  margin-right: 8px;
}

/* ---------- Kullanıcılar / üyelikler ---------- */
.membership-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.membership-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.membership-add-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.membership-add-row .field {
  flex: 1;
  min-width: 150px;
}

.membership-add-row .field select {
  width: 100%;
}

.membership-table td {
  vertical-align: middle;
}

.membership-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.membership-row-actions select {
  width: auto;
  min-width: 130px;
}

.mem-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mem-status-cell select {
  width: auto;
  min-width: 110px;
}

/* ---------- Mobil menü ---------- */
#sidebar-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  #sidebar-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 24px rgba(16, 24, 40, 0.14);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.4);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 16px;
  }

  .topbar {
    padding: 0 12px;
  }

  .user-meta {
    display: none;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-value {
    font-size: 22px;
  }
}

/* ================= Student Shell ================= */
.student-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 25;
}

.student-bottom-nav.hidden {
  display: none !important;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  min-width: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.bottom-nav-item:hover {
  color: var(--text);
  background: var(--bg);
}

.bottom-nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.bottom-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 11px;
}

.topbar-gamification {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.topbar-gamification.hidden {
  display: none !important;
}

.gamification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.context-switcher {
  margin-left: 10px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface);
}

.student-shell .context-switcher {
  min-height: 48px;
  box-sizing: border-box;
}

.student-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .student-shell .app-main {
    padding-bottom: 64px;
  }

  .student-shell .sidebar {
    display: none !important;
  }

  .student-shell .sidebar-backdrop {
    display: none !important;
  }

  #sidebar-toggle {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .student-shell .student-bottom-nav {
    display: none !important;
  }
}

/* ================= Learning Path ================= */
.learning-path-card {
  margin-top: 16px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border-color: #d7e2f4;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 220, 126, 0.22), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f7faff 68%, #f2fbf8 100%);
}

.learning-path-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.learning-path-primary {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.learning-path-primary .btn {
  min-width: 168px;
  min-height: 48px;
  border-radius: 14px;
}

.learning-path-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.035em;
}

.learning-path-eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.learning-path-level {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.learning-path-progress {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #d5e2fb;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.learning-path-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.learning-path-summary-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.learning-path-summary-item.is-common {
  border-color: #c7e9dc;
  background: linear-gradient(145deg, #f7fffb 0%, #eefaf5 100%);
}

.learning-path-summary-label {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-path-summary-item strong {
  color: var(--student-ink, #17315d);
  font-size: 1.15rem;
}

.learning-path-summary-progress,
.learning-path-summary-detail {
  color: #60708a;
  font-size: 12px;
  line-height: 1.45;
}

.learning-path-summary-detail {
  color: #236b51;
  font-weight: 650;
}

.learning-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 6px 0 10px;
  position: relative;
}

.learning-path::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 28px;
  width: 4px;
  background: linear-gradient(180deg, #bdd4fb 0%, #dbe5f2 58%, #e8edf5 100%);
  border-radius: 999px;
  z-index: 0;
}

.learning-path-area-title {
  position: relative;
  z-index: 1;
  margin: 12px 0 0 72px;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-node-item {
  position: relative;
  z-index: 1;
  width: 100%;
}

.path-node {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 12px 18px 12px 0;
  border: 1px solid #dce5f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 39, 75, 0.06);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.path-node-marker {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #e5ebf4;
  color: #718096;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #d6e0ef;
}

.path-node-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.path-node-unit {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path-node-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-node-label {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.path-node-meta {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.path-node-action {
  padding-left: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.path-node.completed {
  border-color: #bce4d2;
  background: linear-gradient(100deg, #f2fcf6, #ffffff 72%);
}

.path-node.completed .path-node-marker {
  background: #159a83;
  color: #ffffff;
  box-shadow: 0 0 0 2px #a9dec9;
}

.path-node.completed .path-node-status {
  color: #16735f;
}

.path-node.active {
  min-height: 96px;
  border: 2px solid #8bb4ff;
  background: linear-gradient(100deg, #eef5ff, #ffffff 74%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

.path-node.active .path-node-marker {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px #c9dcff;
}

.path-node.active .path-node-status,
.path-node.active .path-node-action {
  color: var(--primary);
}

.path-node.available {
  border-color: #d7e3f6;
}

.path-node.available .path-node-marker {
  background: #f3f7fd;
  color: var(--primary);
  box-shadow: 0 0 0 2px #d7e3f6;
}

.path-node.locked {
  border-color: #e3e8f0;
  background: #f7f8fb;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.path-node.locked .path-node-action {
  color: var(--muted);
}

.path-node:hover:not(:disabled) {
  border-color: #8bb4ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.path-node:focus-visible {
  outline: 3px solid #9abaff;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .learning-path-summary {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .learning-path::before {
    left: 24px;
    width: 3px;
  }

  .learning-path-card {
    padding: 20px 16px;
  }

  .learning-path-heading {
    gap: 14px;
  }

  .path-node {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 76px;
    padding-right: 14px;
  }

  .path-node-marker {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .path-node.active {
    min-height: 86px;
  }

  .path-node.active .path-node-marker {
    width: 56px;
    height: 56px;
  }

  .path-node-label {
    font-size: 16px;
  }

  .path-node-action {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .learning-path-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-path-primary {
    width: 100%;
    align-items: stretch;
  }

  .learning-path-primary .btn {
    width: 100%;
  }

  .learning-path-progress {
    align-self: flex-start;
  }

  .path-node {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 74px;
    padding: 12px 12px 12px 0;
  }

  .path-node-marker {
    width: 44px;
    height: 44px;
  }

  .path-node.active .path-node-marker {
    width: 52px;
    height: 52px;
  }

  .path-node-action {
    grid-column: 2;
    padding-left: 0;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path-node {
    transition: none;
  }
}

/* ================= Exercise Student ================= */
.student-exercise-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-height: 56px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease;
}

.answer-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.answer-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.answer-card.correct {
  border-color: #137333;
  background: #e7f6ec;
  color: #137333;
}

.answer-card.wrong {
  border-color: #c5221f;
  background: #fdecea;
  color: #c5221f;
}

.answer-card input {
  display: none;
}

.feedback-panel {
  padding: 16px;
  border-radius: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-panel.correct {
  background: #e7f6ec;
  border: 2px solid #137333;
  color: #137333;
}

.feedback-panel.wrong {
  background: #fdecea;
  border: 2px solid #c5221f;
  color: #c5221f;
}

.feedback-panel.pending {
  background: #fef7e0;
  border: 2px solid #b06000;
  color: #b06000;
}

.student-exercise-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  line-height: 1.6;
  max-height: 40vh;
  overflow-y: auto;
}

.student-reading-card {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 42%);
}

.reading-card-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.student-reading-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.student-reading-body p {
  margin: 0 0 14px;
}

.student-reading-body p:last-child {
  margin-bottom: 0;
}

.exercise-hint {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
}

.exercise-hint summary,
.exercise-explanation summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 4px 0;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.exercise-hint summary::-webkit-details-marker,
.exercise-explanation summary::-webkit-details-marker {
  display: none;
}

.exercise-hint summary::before,
.exercise-explanation summary::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.exercise-hint[open] summary::before,
.exercise-explanation[open] summary::before {
  transform: rotate(90deg);
}

.exercise-hint summary:focus-visible,
.exercise-explanation summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.exercise-hint p,
.exercise-explanation p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.exercise-explanation {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid currentColor;
  line-height: 1.6;
}

.completion-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-item,
  .bottom-nav-item {
    transition: none;
  }

  .path-node.active {
    animation: none;
  }

  .progress-fill,
  .answer-card {
    transition: none;
  }
}

/* 8F-3: exercise-only layout and feedback. */
.student-shell #page-exercise {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: 24px;
}
.student-shell #page-exercise > .page-head p,
.student-shell #exercise-questions-card > div:first-child {
  display: none !important;
}
#page-exercise {
  overflow-wrap: anywhere;
}
#page-exercise .field,
#page-exercise .field input,
#page-exercise .field select,
#page-exercise textarea {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}
#page-exercise textarea {
  resize: vertical;
  scroll-margin-bottom: 100px;
}
#page-exercise .btn {
  min-height: 48px;
}
#exercise-back-btn {
  min-width: 48px;
}
#exercise-submit-attempt {
  width: 100%;
  min-height: 52px;
}
.exercise-actions {
  margin-top: 16px;
}
#page-exercise :focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
#page-exercise label.answer-card::after {
  content: "○";
  margin-left: auto;
  flex-shrink: 0;
}
#page-exercise label.answer-card.selected::after {
  content: "✓";
  font-weight: 800;
}
#page-exercise label.answer-card[aria-disabled="true"] {
  cursor: default;
}
#exercise-current-question > * {
  animation: exercise-enter 180ms ease-out;
}

.exercise-method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.student-shell #page-exercise > .page-head p {
  display: block !important;
  max-width: 52ch;
}

.exercise-method-step {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.exercise-method-step.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.exercise-method-arrow {
  color: var(--border);
}

@media (max-width: 560px) {
  .exercise-method {
    gap: 5px;
    line-height: 1.3;
  }

  .exercise-method-arrow {
    display: none;
  }
}
#page-exercise .feedback-panel.correct {
  animation: exercise-correct 180ms ease-out;
}
#page-exercise .feedback-panel.wrong {
  animation: exercise-wrong 180ms ease-out;
}
#exercise-result-body {
  display: block;
}
.exercise-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.exercise-result-stats > div {
  padding: 12px;
  background: var(--surface);
  border-radius: 12px;
}
.exercise-result-stats dt {
  font-size: 14px;
}
.exercise-result-stats dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}
@keyframes exercise-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes exercise-correct {
  from {
    opacity: 0.6;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes exercise-wrong {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@media (max-width: 600px) {
  .student-shell #page-exercise {
    padding-bottom: 32px;
  }
  #page-exercise .completion-card {
    padding: 20px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #page-exercise *,
  #page-exercise *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 700px) {
  .exercise-result-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #page-exercise .completion-card {
    padding: 20px 16px;
  }
}

/* 8F-4: student progress and earned rewards */
.insight-page {
  max-width: 1080px;
  margin-inline: auto;
}
.insight-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.insight-heading h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.7px;
}
.insight-heading p {
  color: #526078;
  margin: 6px 0;
}
.insight-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #4458ad;
}
.insight-page .btn,
.insight-home .btn,
#badge-detail .btn {
  min-height: 48px;
  white-space: normal;
}
.training-home-card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid #dbe5f2;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 72%);
}
.training-home-heading,
.development-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.training-home-heading h2 {
  margin: 4px 0 8px;
  color: #172947;
}
.training-home-heading p {
  margin: 0;
}
.training-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e9f6ef;
  color: #176749;
  font-size: 12px;
  font-weight: 800;
}
.training-progress-track {
  height: 12px;
  margin: 22px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf5;
}
.training-progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #426de0, #2ba58f);
  transition: width 180ms ease-out;
}
.training-progress-meta,
.training-home-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.training-progress-meta {
  color: #526078;
  font-size: 13px;
}
.training-progress-meta strong {
  color: #243655;
  font-size: 15px;
}
.training-home-actions {
  justify-content: flex-start;
  margin-top: 18px;
}
.training-home-actions .btn {
  min-height: 48px;
  min-width: 180px;
}
.training-home-secondary {
  margin-top: 14px;
  font-size: 13px;
}
.training-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.training-focus-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e0e8f2;
  border-radius: 16px;
  background: #fff;
}
.training-focus-card > span {
  font-size: 24px;
  line-height: 1;
}
.training-focus-card strong,
.training-focus-card small {
  display: block;
}
.training-focus-card strong {
  color: #243655;
  font-size: 13px;
}
.training-focus-card small {
  margin-top: 4px;
  color: #526078;
  font-size: 11px;
  line-height: 1.4;
}
.development-achievements {
  background: linear-gradient(135deg, #fffdf5, #fff);
  border-color: #eee3b9;
}
.development-journey-summary {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #dbe5f2;
  border-left: 4px solid #5368c7;
  border-radius: 14px;
  background: #f7faff;
  color: #243655;
  font-size: 15px;
  line-height: 1.55;
}
.development-section-heading h3 {
  margin: 0;
}
.development-streak {
  color: #a4541d;
  font-size: 13px;
  font-weight: 800;
}
.development-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
  color: #526078;
}
.development-summary strong {
  color: #172947;
  font-size: 26px;
}
.development-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.development-columns h4,
.development-targets h4 {
  margin: 0 0 10px;
  color: #243655;
}
.development-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.development-award {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #ded7f4;
  border-radius: 999px;
  background: #faf8ff;
  color: #263451;
  font-size: 12px;
  font-weight: 700;
}
.development-empty {
  color: #526078;
  font-size: 13px;
}
.development-targets {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee8d2;
}
.development-target {
  margin: 8px 0;
  color: #526078;
  font-size: 13px;
}
.development-target strong {
  color: #243655;
}
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.insight-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid #dde5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 0 #e5eaf2;
  min-width: 0;
}
.insight-stat > span:first-child {
  font-size: 28px;
}
.insight-stat > span:nth-child(2) {
  font-size: 13px;
  color: #46536a;
}
.insight-stat strong {
  font-size: 30px;
  color: #172947;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.insight-gold {
  background: #fff9e7;
  border-color: #eedda6;
  box-shadow: 0 3px 0 #f0e3bd;
}
.insight-orange {
  background: #fff1e8;
  border-color: #efcdb8;
  box-shadow: 0 3px 0 #f1d9c9;
}
.insight-purple {
  background: #f3f0ff;
  border-color: #d9d0f2;
  box-shadow: 0 3px 0 #e3dcf4;
}
.insight-panel {
  border: 1px solid #dfe5ef;
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 4px 12px #23395708;
  margin-bottom: 20px;
  min-width: 0;
}
.insight-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.insight-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #eef6ff;
  border-color: #ccdef4;
}
.insight-path > div {
  flex: 1;
}
.insight-path .insight-eyebrow {
  margin-top: 0;
}
.insight-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
.insight-columns h3 {
  margin-top: 0;
}
.insight-skills {
  display: grid;
  gap: 16px;
}
.skill-progress-card {
  margin: 0;
}
.skill-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-title h4 {
  flex: 1;
  font-size: 17px;
  margin: 0;
  overflow-wrap: anywhere;
}
.skill-title > span {
  font-size: 25px;
}
.skill-accuracy {
  font-size: 22px;
  color: #304fa8;
}
.skill-period {
  font-size: 12px;
}
.insight-bar {
  height: 12px;
  border-radius: 12px;
  background: #e7edf5;
  overflow: hidden;
  margin: 16px 0;
}
.insight-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4672e5, #29a596);
  animation: insight-fill 180ms ease-out;
  transform-origin: left;
}
.insight-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.insight-facts dt {
  color: #526078;
  font-size: 12px;
}
.insight-facts dd {
  font-size: 21px;
  font-weight: 750;
  margin: 6px 0 0;
  color: #243655;
}
.skill-time {
  border-top: 1px solid #edf0f6;
  padding-top: 14px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #46536a;
}
.insight-activity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e8edf4;
  min-width: 0;
}
.insight-activity:last-child {
  border-bottom: 0;
}
.insight-activity > span {
  font-size: 25px;
  background: #f2f5fb;
  border-radius: 14px;
  padding: 9px;
}
.insight-activity > div {
  flex: 1;
  min-width: 0;
}
.insight-activity h4 {
  margin: 0 0 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.insight-activity p,
.insight-activity time {
  font-size: 12px;
  color: #526078;
  margin: 4px 0;
}
.insight-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
}
.insight-empty {
  text-align: center;
  background: #f7f9fd;
  border: 1px dashed #cbd7e9;
  border-radius: 20px;
  padding: 28px 20px;
  grid-column: 1 / -1;
}
.insight-empty > span {
  font-size: 36px;
}
.insight-empty p {
  color: #526078;
  line-height: 1.6;
}
#page-badges .gamification-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.insight-streak {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(115deg, #fff5ed, #fff);
}
.insight-streak h3 {
  margin-bottom: 8px;
}
.insight-streak p {
  margin: 6px 0;
}
.insight-flame {
  font-size: 50px;
}
#page-badges .gamification-badges {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
#page-badges .gamification-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 170px;
  border: 1px solid #ded7f4;
  border-radius: 20px;
  background: linear-gradient(#faf8ff, #fff);
  padding: 20px;
  cursor: pointer;
  color: #263451;
  font: inherit;
}
#page-badges .gamification-badge-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f0eaff;
  font-size: 34px;
}
#page-badges .gamification-badge:hover {
  border-color: #8270c4;
  background: #f4f0ff;
}
#page-badges .gamification-points {
  white-space: nowrap;
  font-size: 15px;
  color: #176749;
}
.badge-new {
  animation: insight-pop 180ms ease-out;
  box-shadow: 0 0 0 3px #d9ccff;
}
.badge-new-label {
  font-size: 11px;
  font-weight: 800;
  color: #57388f;
}
.insight-celebration {
  color: #57388f;
  font-weight: 700;
}
.insight-celebration:empty {
  display: none;
}
#badge-detail {
  border: 1px solid #d9d0f2;
  border-radius: 24px;
  width: min(440px, calc(100vw - 32px));
  max-height: 80dvh;
  overflow: auto;
  padding: 28px;
  color: #243655;
  box-sizing: border-box;
  box-shadow: 0 20px 70px #14234838;
}
#badge-detail::backdrop {
  background: #15233b80;
}
.badge-detail-content {
  text-align: center;
  overflow-wrap: anywhere;
}
#badge-detail-icon {
  font-size: 56px;
}
#badge-detail-source {
  font-size: 12px;
}
#badge-detail-close {
  width: 100%;
  margin-top: 14px;
}
.insight-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  background: #eef3ff;
  border: 1px solid #d7e1fa;
  border-radius: 18px;
  margin-top: 16px;
}
#home-insights-values {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
.guest-diagnostic-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 20px 22px;
  border-color: #cce8df;
  background: linear-gradient(115deg, #f1fbf7, #ffffff 72%);
}
.guest-diagnostic-home-card h2 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}
.guest-diagnostic-home-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.guest-diagnostic-home-level {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #dff5ec;
  color: #16735f;
  font-size: 14px;
  font-weight: 800;
}
.insight-page :is(button, [tabindex]):focus-visible,
#badge-detail button:focus-visible,
.insight-home button:focus-visible {
  outline: 3px solid #285de1;
  outline-offset: 4px;
}
.insight-page [aria-busy="true"] {
  opacity: 0.7;
}
@keyframes insight-fill {
  from {
    transform: scaleX(0);
    opacity: 0.6;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes insight-pop {
  from {
    transform: scale(0.94);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .insight-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .insight-heading > div {
    min-width: 0;
  }
  .insight-heading p {
    font-size: 13px;
  }
  .insight-heading .insight-eyebrow {
    font-size: 9px;
  }
  .insight-heading .btn {
    padding-inline: 12px;
  }
  .guest-diagnostic-home-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .guest-diagnostic-home-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .insight-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .insight-stat {
    padding: 16px;
  }
  .insight-stat strong {
    font-size: 27px;
  }
  .insight-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .training-home-card {
    padding: 18px;
  }
  .training-home-heading,
  .development-section-heading {
    flex-direction: column;
    gap: 10px;
  }
  .training-status {
    align-self: flex-start;
  }
  .training-focus-grid,
  .development-columns {
    grid-template-columns: 1fr;
  }
  .training-home-actions .btn {
    width: 100%;
  }
  .insight-panel {
    padding: 18px;
  }
  .insight-path {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .insight-home .btn {
    width: 100%;
  }
  #page-badges .gamification-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #page-badges .gamification-summary > :last-child {
    grid-column: 1 / -1;
  }
  #page-badges .gamification-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #page-badges .gamification-badge {
    padding: 14px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .insight-page *,
  .insight-home * {
    animation: none !important;
    transition: none !important;
  }
}
.insight-stat strong {
  animation: insight-pop 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .insight-stat strong {
    animation: none;
  }
}

/* 8F-7: lightweight, user-triggered reward feedback. */
.celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}
.celebration-toast {
  position: relative;
  width: min(360px, 100%);
  padding: 28px 24px 24px;
  border: 2px solid #bfdbfe;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 70px rgba(37, 99, 235, 0.22);
  text-align: center;
  pointer-events: auto;
  animation: celebration-in 180ms ease-out;
}
.celebration-layer[data-kind="wrong"] .celebration-toast {
  border-color: #fde68a;
}
.celebration-layer[data-kind="badge"] .celebration-toast {
  border-color: #d8b4fe;
}
.celebration-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.celebration-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 42px;
  font-weight: 800;
}
.celebration-major .celebration-icon {
  width: 94px;
  height: 94px;
  border-radius: 30px;
  background: #fff7df;
  font-size: 56px;
}
.celebration-eyebrow {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.celebration-layer[data-kind="wrong"] .celebration-eyebrow {
  color: #a16207;
}
.celebration-toast h2 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: -0.03em;
}
.celebration-detail {
  margin: 0;
  color: var(--muted);
}
.celebration-reward {
  min-height: 24px;
  margin-top: 14px;
  color: #166534;
  font-size: 16px;
  font-weight: 800;
}
.celebration-particles {
  position: absolute;
  inset: 50% 50%;
  pointer-events: none;
}
.celebration-particles span {
  position: absolute;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: #f59e0b;
  animation: celebration-particle 850ms ease-out var(--particle-delay) both;
}
.celebration-particles span:nth-child(3n) {
  background: #2563eb;
}
.celebration-particles span:nth-child(3n + 1) {
  background: #8b5cf6;
}
@keyframes celebration-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes celebration-particle {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--particle-x), var(--particle-y)) rotate(180deg);
  }
}
.settings-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}
.settings-card h3 {
  margin: 0 0 5px;
}
.settings-card p {
  margin: 0 0 14px;
}
.pilot-support-card {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pilot-support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 330px);
}
.pilot-support-actions .btn {
  min-height: 44px;
}
.pilot-report-dialog {
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.pilot-report-dialog .premium-dialog-body {
  display: grid;
  gap: 14px;
}
.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
}
.settings-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
@media (max-width: 600px) {
  .celebration-layer {
    padding: 16px;
  }
  .celebration-toast {
    padding: 24px 18px 20px;
  }
  .settings-card {
    padding: 18px;
  }
  .pilot-support-card {
    align-items: stretch;
    flex-direction: column;
  }
  .pilot-support-actions {
    min-width: 0;
    width: 100%;
  }
  .pilot-support-actions .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .celebration-toast,
  .celebration-particles span {
    animation: none !important;
  }
}

/* Student navigation and home refresh: preserve routes and data, reduce visual noise. */
.student-shell .sidebar-nav {
  gap: 5px;
}

.student-shell .student-nav-more {
  order: 5;
  margin: 4px 0;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.student-shell .student-nav-more > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--student-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.student-shell .student-nav-more > summary::-webkit-details-marker {
  display: none;
}

.student-shell .student-nav-more > summary::after {
  margin-left: auto;
  content: "＋";
  color: var(--student-muted);
  font-size: 18px;
}

.student-shell .student-nav-more[open] > summary::after {
  content: "−";
}

.student-shell .student-nav-more > summary:hover,
.student-shell .student-nav-more[open] > summary {
  color: var(--student-blue);
  background: #f2f6ff;
}

.student-shell .student-nav-more-list {
  display: grid;
  gap: 3px;
  padding: 4px 0 0 10px;
}

.student-shell .student-nav-more-list .nav-item {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
}

.student-shell .student-nav-more-list .nav-item[data-student-secondary] {
  display: flex !important;
}

.student-shell #page-dashboard {
  display: flex;
  flex-direction: column;
}

.student-shell #page-dashboard > .page-head {
  order: 0;
}

.student-shell #page-dashboard > #today-card {
  order: 1;
}

.student-shell #page-dashboard > #learning-path-card {
  order: 2;
}

.student-shell #page-dashboard > #home-insights,
.student-shell #page-dashboard > #guest-diagnostic-card,
.student-shell #page-dashboard > #review-card,
.student-shell #page-dashboard > #entitlement-card {
  order: 3;
}

.student-shell #today-card.supporting-task-card {
  margin-top: 8px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #cad9f0;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 72%, #f1fbf7 100%);
  box-shadow: 0 14px 30px rgba(37, 58, 100, 0.08);
}

.student-shell #today-card.supporting-task-card .training-home-heading h2 {
  color: var(--student-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.student-shell #today-card.supporting-task-card .training-home-heading p {
  max-width: 58ch;
}

.student-shell #today-card.supporting-task-card .training-status {
  align-self: flex-start;
  background: #e9f6ef;
}

.student-shell #today-card.supporting-task-card .training-progress-track {
  height: 10px;
  margin: 22px 0 10px;
}

.student-shell #today-card.supporting-task-card .training-home-actions {
  align-items: center;
  margin-top: 18px;
}

.student-shell #learning-path-card {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #d7e2f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 58, 100, 0.06);
}

.student-shell #learning-path-card .learning-path-heading h3 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.student-shell #learning-path-card .learning-path-summary-item {
  background: #f8faff;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-path-summary-item.is-common {
  background: #f3fbf7;
}

@media (max-width: 768px) {
  .student-shell .student-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .student-shell .bottom-nav-label {
    font-size: 10px;
  }

  .student-shell #today-card.supporting-task-card,
  .student-shell #learning-path-card {
    border-radius: 18px;
  }

  .student-shell #learning-path-card .learning-path-summary {
    grid-template-columns: 1fr;
  }
}

/* V1 student-first visual system. Keep the existing admin surface intact while
   giving the learner shell a calmer, more legible rhythm. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-muted: #f0f2f8;
  --text: #172033;
  --muted: #667085;
  --border: #e2e6f0;
  --primary: #5b5bd6;
  --primary-hover: #4747b8;
  --primary-soft: #eef0ff;
  --accent: #f59e0b;
  --success: #16845b;
  --danger: #c83b50;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(28, 39, 75, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--text);
  font-size: 16px;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a7a7ff;
  outline-offset: 3px;
}

.student-shell .nav-item[data-student-secondary] {
  display: none !important;
}

.student-shell .page-view {
  min-width: 0;
}

.student-shell .page-head h2,
.student-shell .insight-heading h2 {
  letter-spacing: -0.035em;
}

.student-shell .card,
.student-shell .insight-panel,
.student-shell .training-home-card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.student-shell .btn-primary {
  box-shadow: 0 8px 16px rgba(91, 91, 214, 0.2);
}

.student-shell .training-home-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 227, 157, 0.4), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f7ff 100%);
}

.student-shell .training-home-heading {
  gap: 18px;
}

.student-shell .training-home-heading h2 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.student-shell .training-focus-card {
  min-width: 0;
  border-color: #e5e7f4;
  background: rgba(255, 255, 255, 0.78);
}

.student-shell #daily-training-intro,
.student-shell #today-next-action,
.student-shell #learning-path-level {
  line-height: 1.55;
}

.student-shell #today-training-error,
.student-shell #learning-path-retry,
.student-shell #today-training-retry {
  margin-top: 12px;
}

.student-shell #exercise-current-question {
  min-width: 0;
}

.student-shell .student-reading-card {
  background: #fffdf8;
  border-color: #f2e6c9;
}

.student-shell .student-reading-body {
  max-width: 68ch;
  color: #30384a;
  font-size: 1.04rem;
  line-height: 1.8;
}

.student-shell .answer-card {
  min-height: 56px;
  border-radius: 14px;
}

.student-shell .feedback-panel {
  border-radius: 14px;
  line-height: 1.55;
}

.student-shell .settings-card,
.student-shell .pilot-support-card {
  border-radius: 18px;
}

.student-shell .pilot-support-card {
  background: linear-gradient(135deg, #ffffff, #f7f7ff);
}

@media (max-width: 768px) {
  .student-shell .app-main {
    padding-bottom: 88px;
  }

  .student-shell .page {
    padding: 20px 16px 24px;
  }

  .student-shell .student-bottom-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: 72px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(28, 39, 75, 0.08);
  }

  .student-shell .bottom-nav-item {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 4px 2px;
    overflow: hidden;
  }

  .student-shell .bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .student-shell .training-home-actions,
  .student-shell .lesson-actions,
  .student-shell .pilot-support-actions {
    align-items: stretch;
  }

  .student-shell .training-home-actions .btn,
  .student-shell .pilot-support-actions .btn {
    width: 100%;
  }

  .student-shell .insight-metrics,
  .student-shell .insight-columns,
  .student-shell .development-columns {
    grid-template-columns: 1fr;
  }

  .student-shell .lesson-layout {
    grid-template-columns: 1fr;
  }

  .student-shell .exercise-result-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .student-shell .page {
    padding-inline: 12px;
  }

  .student-shell .training-home-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-shell .training-focus-grid,
  .student-shell .form-grid,
  .student-shell .exercise-result-stats {
    grid-template-columns: 1fr;
  }

  .student-shell #exercise-questions-card,
  .student-shell #student-reading-card,
  .student-shell #today-card,
  .student-shell #learning-path-card {
    padding: 16px;
  }

  .student-shell #page-exercise .page-head {
    margin-bottom: 12px;
  }
}

@media (max-width: 380px) {
  .student-shell .bottom-nav-icon {
    font-size: 16px;
  }

  .student-shell .bottom-nav-label {
    font-size: 10px;
  }

  .student-shell .student-bottom-nav {
    padding-inline: 2px;
  }
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
}

.lesson-list {
  display: grid;
  gap: 8px;
}

.lesson-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border, #d9e1ec);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.lesson-list-item:hover,
.lesson-list-item:focus-visible,
.lesson-list-item.active {
  border-color: var(--primary, #3857d6);
  outline: none;
}

.lesson-list-item span,
.lesson-list-item small {
  color: var(--muted, #657187);
}

.lesson-detail section {
  margin-top: 18px;
}

.lesson-detail section p {
  line-height: 1.7;
  white-space: pre-line;
}

.lesson-layout.is-learning-path {
  display: block;
}

.lesson-layout.is-learning-path #lesson-detail {
  max-width: 820px;
  margin-inline: auto;
}

.learning-path-step-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.learning-path-step-context .muted {
  margin: 0;
}

.lesson-objective {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary, #3857d6) 8%, transparent);
}

.lesson-flow,
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.development-comparison-scroll {
  overflow-x: auto;
}

.development-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.development-comparison-table th,
.development-comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
  white-space: nowrap;
}

.development-comparison-table thead th {
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 600;
}

.development-comparison-table tbody th {
  font-weight: 650;
}

@media (max-width: 720px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= Student home visual language =================
   Oku+ keeps its professional blue identity while making the daily action
   easier to read, warmer to scan, and more motivating to start. */
.student-shell {
  --student-ink: #12223f;
  --student-muted: #5f6f87;
  --student-blue: #2563eb;
  --student-teal: #159a83;
  font-size: 17px;
  background: linear-gradient(135deg, #f6f8fc 0%, #f0f5ff 58%, #f5fbf8 100%);
}

.student-shell .sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-right-color: #dfe7f3;
}

.student-shell .sidebar-brand {
  padding: 22px 24px;
}

.student-shell .brand-mark {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.student-shell .sidebar-nav {
  gap: 6px;
  padding: 18px 14px;
}

.student-shell .nav-item {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--student-ink);
  font-size: 16px;
  font-weight: 600;
}

.student-shell .nav-item:hover {
  background: #f2f6ff;
  color: var(--student-blue);
}

.student-shell .nav-item.active {
  background: #e6efff;
  color: var(--student-blue);
  box-shadow: inset 3px 0 0 var(--student-blue);
}

.student-shell .nav-icon {
  width: 22px;
  font-size: 19px;
}

.student-shell .topbar {
  height: 68px;
  padding-inline: 28px;
  border-bottom-color: #dfe7f3;
}

.student-shell .gamification-badge {
  padding: 7px 11px;
  font-size: 14px;
}

.student-shell .user-name {
  font-size: 15px;
}

.student-shell .user-role {
  font-size: 13px;
}

.student-shell .page {
  padding: clamp(24px, 4vw, 44px);
}

.student-shell .page-view {
  max-width: 1180px;
}

.student-shell .page-head {
  margin-bottom: 24px;
}

.student-shell .page-head h2 {
  color: var(--student-ink);
  font-size: clamp(2rem, 3.5vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.student-shell .page-head p {
  color: var(--student-muted);
  font-size: 17px;
}

.student-shell #home-insights {
  margin-top: 0;
  padding: 18px 22px;
  border: 1px solid #d5e2fb;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf4ff, #ffffff 72%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.07);
}

.student-shell #home-insights-values {
  gap: 18px;
  color: var(--student-muted);
  font-size: 16px;
}

.student-shell #home-insights-values strong {
  color: var(--student-ink);
  font-size: 18px;
}

.student-shell #home-progress-link {
  min-height: 46px;
  font-size: 16px;
}

.student-shell #today-card.training-home-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #cfdfff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 4%, rgba(255, 218, 112, 0.58), transparent 22%),
    radial-gradient(circle at 4% 100%, rgba(77, 208, 169, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 68%, #f1fbf8 100%);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.11),
    0 3px 0 rgba(37, 99, 235, 0.08);
}

.student-shell #learning-path-card {
  margin-top: 20px;
  border: 1px solid #cfdfff;
  border-radius: 26px;
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.1),
    0 3px 0 rgba(37, 99, 235, 0.07);
}

.student-shell #learning-path-card .learning-path-heading {
  align-items: center;
  margin-bottom: 18px;
}

.student-shell #learning-path-card .learning-path-heading h3 {
  color: var(--student-ink);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.045em;
}

.student-shell #learning-path-card .learning-path-primary .btn-primary {
  min-height: 52px;
  box-shadow: 0 9px 18px rgba(37, 99, 235, 0.2);
  font-size: 16px;
}

.student-shell #today-card.supporting-task-card {
  margin-top: 14px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(37, 58, 100, 0.06);
}

.student-shell #today-card.supporting-task-card .training-home-heading h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.student-shell #today-card.supporting-task-card .training-home-heading p,
.student-shell #today-card.supporting-task-card #today-next-action {
  font-size: 15px;
}

.student-shell #today-card.supporting-task-card .training-progress-track {
  height: 10px;
  margin: 18px 0 10px;
}

.student-shell #today-card.supporting-task-card .training-focus-grid {
  display: none;
}

.student-shell #today-card.supporting-task-card .training-home-actions {
  margin-top: 16px;
}

.student-shell #today-card.supporting-task-card .training-home-actions .btn-primary {
  min-width: 168px;
  min-height: 46px;
  box-shadow: none;
  font-size: 15px;
}

.student-shell #today-card > * {
  position: relative;
  z-index: 1;
}

.student-shell .training-home-heading {
  gap: 22px;
}

.student-shell .insight-eyebrow {
  margin-bottom: 8px;
  color: #3b5fc2;
  font-size: 13px;
  letter-spacing: 0.13em;
}

.student-shell .training-home-heading h2 {
  margin: 0 0 10px;
  color: var(--student-ink);
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.student-shell .training-home-heading p {
  color: var(--student-muted);
  font-size: 18px;
}

.student-shell .training-status {
  padding: 10px 14px;
  color: #12664e;
  font-size: 14px;
  line-height: 1.2;
}

.student-shell .training-progress-track {
  height: 14px;
  margin: 28px 0 12px;
  background: #dfe8f7;
}

.student-shell .training-progress-track > span {
  background: linear-gradient(90deg, #2563eb 0%, #159a83 100%);
}

.student-shell .training-progress-meta {
  color: var(--student-muted);
  font-size: 16px;
}

.student-shell .training-progress-meta strong {
  color: var(--student-ink);
  font-size: 18px;
}

.student-shell .training-home-actions {
  gap: 14px;
  margin-top: 22px;
}

.student-shell .training-home-actions .btn-primary {
  min-width: 220px;
  min-height: 54px;
  border-radius: 14px;
  box-shadow: 0 9px 18px rgba(37, 99, 235, 0.22);
  font-size: 17px;
}

.student-shell .training-home-actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.27);
}

.student-shell #daily-training-streak {
  color: #a4541d;
  font-size: 16px;
  font-weight: 700;
}

.student-shell .training-focus-grid {
  gap: 14px;
  margin-top: 30px;
}

.student-shell .training-focus-card {
  min-height: 88px;
  padding: 18px;
  gap: 13px;
  border-color: #dce6f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 16px rgba(37, 58, 100, 0.05);
}

.student-shell .training-focus-card > span {
  font-size: 28px;
}

.student-shell .training-focus-card strong {
  color: var(--student-ink);
  font-size: 15px;
}

.student-shell .training-focus-card small {
  margin-top: 6px;
  color: var(--student-muted);
  font-size: 14px;
  line-height: 1.45;
}

.student-shell #today-next-action {
  color: var(--student-muted);
  font-size: 16px;
}

@media (max-width: 768px) {
  .student-shell {
    font-size: 16px;
  }

  .student-shell .topbar {
    padding-inline: 16px;
  }

  .student-shell .page {
    padding: 24px 16px 30px;
  }

  .student-shell .training-home-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .student-shell .training-home-heading p {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .student-shell .page-head h2 {
    font-size: 2rem;
  }

  .student-shell #today-card.training-home-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .student-shell #today-card.supporting-task-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .student-shell .training-home-actions .btn-primary {
    min-width: 0;
    width: 100%;
  }
}

/* ================= Guest-first diagnostic ================= */
.guest-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px) 16px;
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(21, 154, 131, 0.12), transparent 30%),
    linear-gradient(145deg, #f5f8ff 0%, #ffffff 56%, #f0fbf8 100%);
}

.guest-card {
  width: min(100%, 760px);
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #d8e3f4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(32, 62, 114, 0.12);
}

.guest-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guest-topbar .guest-brand-mark {
  margin-bottom: 0;
}

.guest-topbar .btn {
  min-height: 42px;
}

.guest-header {
  max-width: 620px;
  margin: 28px auto 32px;
  text-align: center;
}

.guest-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #159a83);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.guest-eyebrow {
  margin: 0 0 8px;
  color: #315bc1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.guest-header h1,
.guest-result-view h2,
.guest-question-view h2 {
  margin: 0;
  color: #12223f;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.guest-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.guest-header > p:last-child {
  max-width: 560px;
  margin: 14px auto 0;
  color: #5f6f87;
  font-size: 18px;
  line-height: 1.55;
}

.guest-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.guest-trust-row span {
  padding: 7px 11px;
  border: 1px solid #d6e3f4;
  border-radius: 999px;
  color: #315bc1;
  background: #f3f7ff;
  font-size: 13px;
  font-weight: 800;
}

.guest-state,
.guest-result-view {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid #dce6f5;
  border-radius: 22px;
  text-align: center;
  background: #fbfdff;
}

.guest-state h2 {
  margin: 14px 0 6px;
  color: #12223f;
  font-size: 1.45rem;
}

.guest-state p {
  margin: 0 0 22px;
}

.guest-intro {
  border-color: #d3e0f2;
  background: linear-gradient(145deg, #f8fbff, #ffffff);
}

.guest-intro-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #159a83);
  font-size: 28px;
  font-weight: 800;
}

.guest-intro h2 {
  margin-top: 16px;
}

.guest-start-btn {
  min-width: min(100%, 250px);
  min-height: 52px;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 800;
}

.guest-intro-note {
  margin: 14px 0 0 !important;
  color: #6a7890;
  font-size: 13px;
}

.guest-loader {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid #dbe7fb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: guest-spin 0.8s linear infinite;
}

@keyframes guest-spin {
  to {
    transform: rotate(360deg);
  }
}

.guest-state-icon,
.guest-result-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: #2563eb;
  font-size: 25px;
  font-weight: 800;
}

.guest-question-view {
  max-width: 640px;
  margin: 0 auto;
}

.guest-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #12223f;
  font-size: 15px;
  font-weight: 700;
}

.guest-progress-track {
  height: 10px;
  margin: 10px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebf8;
}

.guest-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #159a83);
  transition: width 180ms ease;
}

.guest-passage {
  margin-bottom: 26px;
  padding: 20px 22px;
  border: 1px solid #d9e4f3;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: #f7faff;
}

.guest-passage-title {
  margin: 0 0 8px;
  color: #12223f;
  font-size: 18px;
  font-weight: 800;
}

.guest-passage-body {
  color: #44546e;
  font-size: 17px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.guest-question-meta {
  margin: 0 0 10px;
  color: #315bc1;
  font-size: 14px;
  font-weight: 800;
}

.guest-question-view h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.guest-question-help {
  margin: 8px 0 0;
  color: #6a7890;
  font-size: 15px;
  line-height: 1.5;
}

.guest-question-prompt {
  margin: 14px 0 22px;
  color: #33445f;
  font-size: 19px;
  line-height: 1.55;
}

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

.guest-answer-option {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 2px solid #dbe5f2;
  border-radius: 14px;
  color: #1e3152;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.guest-answer-option:hover,
.guest-answer-option:focus-visible {
  border-color: #8fb2f5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.guest-answer-option.selected {
  border-color: #2563eb;
  background: #edf4ff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.1);
}

.guest-answer-option:disabled {
  cursor: default;
  opacity: 1;
}

.guest-answer-option[aria-disabled="true"] {
  pointer-events: none;
}

.guest-answer-feedback {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #d9e4f3;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: #f7faff;
}

.guest-answer-feedback.is-correct {
  border-color: #b8e3d2;
  border-left-color: #159a83;
  background: #f2fbf7;
}

.guest-answer-feedback.is-wrong {
  border-color: #f1d3b0;
  border-left-color: #d97706;
  background: #fff9f1;
}

.guest-feedback-title,
.guest-feedback-message,
.guest-feedback-explanation {
  margin: 0;
}

.guest-feedback-title {
  color: #12223f;
  font-size: 17px;
  font-weight: 800;
}

.guest-feedback-message {
  margin-top: 5px;
  color: #52637e;
  line-height: 1.5;
}

.guest-feedback-correct {
  margin-top: 12px;
  color: #12223f;
}

.guest-feedback-correct ul {
  margin: 7px 0 0;
  padding-left: 20px;
  color: #33445f;
}

.guest-feedback-correct li + li {
  margin-top: 4px;
}

.guest-feedback-explanation {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(82, 99, 126, 0.18);
  color: #52637e;
  line-height: 1.55;
}

#guest-answer-submit {
  min-width: 150px;
  min-height: 52px;
  margin-top: 24px;
}

.guest-result-view {
  background: linear-gradient(145deg, #f7fbff, #f4fcf9);
}

.guest-result-view .guest-eyebrow {
  margin-top: 22px;
}

.guest-result-view h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.guest-result-level {
  margin: 18px 0 8px;
  color: #2563eb;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
}

.guest-result-copy,
.guest-result-count,
.guest-result-disclaimer {
  max-width: 540px;
  margin: 0 auto;
  color: #52637e;
  font-size: 17px;
  line-height: 1.6;
}

.guest-result-count {
  margin-top: 14px;
  color: #159a83;
  font-size: 15px;
  font-weight: 800;
}

.guest-result-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #59687c;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.guest-result-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d9e6e6;
}

.guest-result-actions > p {
  margin: 0 0 14px;
  color: #12223f;
  font-weight: 700;
}

.guest-result-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.guest-result-buttons .btn {
  min-width: 140px;
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .guest-loader {
    animation: none;
  }

  .guest-progress-track > span,
  .guest-answer-option {
    transition: none;
  }
}

@media (max-width: 560px) {
  .guest-shell {
    padding: 12px;
  }

  .guest-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .guest-header {
    margin-bottom: 24px;
  }

  .guest-header h1 {
    font-size: 2rem;
  }

  .guest-header > p:last-child {
    font-size: 16px;
  }

  .guest-trust-row {
    gap: 6px;
  }

  .guest-trust-row span {
    font-size: 12px;
  }

  .guest-state,
  .guest-result-view {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .guest-question-prompt {
    font-size: 17px;
  }

  .guest-passage-body {
    font-size: 16px;
    line-height: 1.58;
  }

  #guest-answer-submit {
    width: 100%;
  }

  .guest-result-buttons {
    display: grid;
  }

  .guest-result-buttons .btn {
    width: 100%;
  }
}

/* Final student-first overrides (kept at the end so the refreshed hierarchy wins). */
.student-shell #page-dashboard {
  display: flex;
  flex-direction: column;
}

.student-shell #page-dashboard > #today-card {
  order: 1;
}

.student-shell #page-dashboard > #learning-path-card {
  order: 2;
}

.student-shell #page-dashboard > #home-insights,
.student-shell #page-dashboard > #guest-diagnostic-card,
.student-shell #page-dashboard > #review-card,
.student-shell #page-dashboard > #entitlement-card {
  order: 3;
}

.student-shell #today-card.supporting-task-card {
  margin-top: 8px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #cad9f0;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 72%, #f1fbf7 100%);
  box-shadow: 0 14px 30px rgba(37, 58, 100, 0.08);
}

.student-shell #today-card.supporting-task-card .training-home-heading h2 {
  color: var(--student-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.student-shell #today-card.supporting-task-card .training-focus-grid {
  display: none;
}

.student-shell #learning-path-card {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #d7e2f4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 58, 100, 0.06);
}

.student-shell #learning-path-card .learning-path-summary-item {
  background: #f8faff;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-path-summary-item.is-common {
  background: #f3fbf7;
}

@media (max-width: 768px) {
  .student-shell #today-card.supporting-task-card,
  .student-shell #learning-path-card {
    border-radius: 18px;
  }

  .student-shell #learning-path-card .learning-path-summary {
    grid-template-columns: 1fr;
  }
}

/* Student learning map refresh: one clear next step, with separate real paths. */
.student-shell #page-dashboard > #learning-path-card {
  order: 1;
}

.student-shell #page-dashboard > #today-card {
  order: 2;
}

.student-shell #learning-path-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d4dcff;
  background:
    radial-gradient(circle at 100% 0%, rgba(132, 91, 255, 0.18), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(48, 189, 170, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f8f9ff 56%, #f4fbfa 100%);
  box-shadow: 0 22px 52px rgba(44, 48, 115, 0.1);
}

.student-shell #learning-path-card::before,
.student-shell #learning-path-card::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(91, 91, 214, 0.13);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.student-shell #learning-path-card::before {
  top: -84px;
  right: -70px;
  width: 220px;
  height: 220px;
}

.student-shell #learning-path-card::after {
  top: -42px;
  right: -28px;
  width: 136px;
  height: 136px;
}

.student-shell #learning-path-card .learning-path-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.student-shell #learning-path-card .learning-path-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.045em;
}

.student-shell #learning-path-card .learning-path-subtitle {
  max-width: 46ch;
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.student-shell #learning-path-card .learning-path-level {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid #e0e4ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #5556a9;
  font-size: 12px;
  font-weight: 700;
}

.student-shell #learning-path-card .learning-path-primary .btn-primary {
  min-width: 154px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #655ce7 0%, #7d4be8 100%);
  box-shadow: 0 10px 22px rgba(101, 92, 231, 0.26);
}

.student-shell .learning-map-switcher {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 12px;
}

.student-shell .learning-map-tab {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #e1e5f3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #5e6678;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.student-shell .learning-map-tab:hover,
.student-shell .learning-map-tab:focus-visible {
  border-color: #bfc4ff;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(69, 73, 151, 0.1);
  transform: translateY(-1px);
}

.student-shell .learning-map-tab.is-active {
  border-color: #8177eb;
  background: linear-gradient(135deg, #f0efff 0%, #ffffff 100%);
  color: #34358e;
  box-shadow: 0 9px 22px rgba(91, 91, 214, 0.12);
}

.student-shell .learning-map-tab-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #eceaff;
  color: #6b55d8;
  font-size: 17px;
  font-weight: 800;
}

.student-shell .learning-map-tab:nth-child(2) .learning-map-tab-icon {
  background: #e5f8f2;
  color: #159477;
}

.student-shell .learning-map-tab-common .learning-map-tab-icon {
  background: #fff4d7;
  color: #ce8b00;
}

.student-shell .learning-map-tab span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-shell .learning-map-tab strong,
.student-shell .learning-map-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell .learning-map-tab strong {
  font-size: 13px;
}

.student-shell .learning-map-tab small {
  color: #8a92a3;
  font-size: 11px;
}

.student-shell .learning-map-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #dfe5f4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.student-shell .learning-map-current-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.student-shell .learning-map-current-copy > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-shell .learning-map-current-copy strong {
  color: #2c3561;
  font-size: 13px;
}

.student-shell .learning-map-current-copy small {
  overflow: hidden;
  color: #7a8293;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell .learning-map-current-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #675be8;
  box-shadow: 0 0 0 3px #dcd8ff;
}

.student-shell .learning-map-current-progress,
.student-shell .learning-map-panel-count {
  flex: 0 0 auto;
  color: #5a59b9;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.student-shell #learning-path-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.student-shell #learning-path-summary .learning-path-summary-item {
  gap: 3px;
  padding: 10px 12px;
  border-color: #e2e6f4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
}

.student-shell #learning-path-summary .learning-path-summary-label {
  font-size: 10px;
}

.student-shell #learning-path-summary .learning-path-summary-item strong {
  font-size: 1rem;
}

.student-shell #learning-path-summary .learning-path-summary-progress,
.student-shell #learning-path-summary .learning-path-summary-detail {
  font-size: 11px;
}

.student-shell .learning-map-panel {
  position: relative;
}

.student-shell .learning-map-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 4px;
}

.student-shell .learning-map-panel-heading h4 {
  margin: 0;
  color: #252b4e;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.student-shell .learning-map-kicker {
  margin: 0 0 4px;
  color: #7b6add;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.student-shell .learning-map-track {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px 0 8px;
}

.student-shell .learning-map-track::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 28px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #d8dff2 0 7px, transparent 7px 12px);
  content: "";
}

.student-shell .learning-map-step {
  position: relative;
  z-index: 1;
}

.student-shell .learning-map-node {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px 10px 5px;
  border: 1px solid #e3e7f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 14px rgba(53, 64, 114, 0.04);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.student-shell .learning-map-node:not(:disabled):hover,
.student-shell .learning-map-node:not(:disabled):focus-visible {
  border-color: #b9b5f6;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(53, 64, 114, 0.1);
  transform: translateX(2px);
}

.student-shell .learning-map-step.active .learning-map-node {
  border-color: #8278ed;
  background: linear-gradient(100deg, #f2f0ff 0%, #ffffff 72%);
  box-shadow: 0 11px 26px rgba(101, 92, 231, 0.16);
}

.student-shell .learning-map-step.completed .learning-map-node {
  border-color: #c8eadc;
  background: linear-gradient(100deg, #f5fffb 0%, #ffffff 76%);
}

.student-shell .learning-map-step.locked .learning-map-node {
  border-color: #e5e7ee;
  background: rgba(247, 248, 251, 0.78);
  opacity: 0.82;
}

.student-shell .learning-map-step.kind-checkpoint .learning-map-node,
.student-shell .learning-map-step.kind-reinforcement .learning-map-node,
.student-shell .learning-map-step.kind-measurement .learning-map-node {
  border-style: dashed;
}

.student-shell .learning-map-marker {
  align-self: center;
  width: 46px;
  height: 46px;
  border: 4px solid #ffffff;
  border-radius: 15px;
  background: #eef1f9;
  color: #81899c;
  box-shadow:
    0 0 0 1px #dbe1ef,
    0 5px 10px rgba(49, 61, 110, 0.08);
  font-size: 19px;
  font-weight: 900;
}

.student-shell .learning-map-step.completed .learning-map-marker {
  background: #d6f3e5;
  color: #118360;
  box-shadow: 0 0 0 1px #b7e5d0;
}

.student-shell .learning-map-step.active .learning-map-marker {
  background: linear-gradient(145deg, #765de9, #a05ae8);
  color: #ffffff;
  box-shadow:
    0 0 0 1px #7a70e2,
    0 7px 16px rgba(105, 86, 221, 0.28);
}

.student-shell .learning-map-step.kind-checkpoint .learning-map-marker {
  background: #fff0c7;
  color: #c98500;
  box-shadow: 0 0 0 1px #f3d889;
}

.student-shell .learning-map-step.kind-reinforcement .learning-map-marker {
  background: #dff7f0;
  color: #138b70;
  box-shadow: 0 0 0 1px #bae8db;
}

.student-shell .learning-map-step.kind-level .learning-map-marker {
  background: #e7edff;
  color: #4269c9;
  box-shadow: 0 0 0 1px #c9d6ff;
}

.student-shell .learning-map-node-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 3px;
}

.student-shell .learning-map-node-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-shell .learning-map-node-top .path-node-status {
  color: #667085;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-shell .learning-map-step.active .path-node-status {
  color: #5c52c8;
}

.student-shell .learning-map-kind {
  color: #9a6d09;
  font-size: 10px;
  font-weight: 800;
}

.student-shell
  .learning-map-step:not(.kind-checkpoint):not(.kind-reinforcement):not(.kind-measurement)
  .learning-map-kind {
  color: #7e8799;
}

.student-shell .learning-map-node .path-node-label {
  color: #253052;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.student-shell .learning-map-node-detail {
  overflow: hidden;
  color: #7a8293;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell .learning-map-node-action {
  align-self: center;
  color: #6d68bd;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.student-shell .learning-map-step.locked .learning-map-node-action {
  color: #9ba2b2;
}

.student-shell .learning-map-empty {
  padding: 28px 12px;
  text-align: center;
}

.student-shell .learning-map-empty-state {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 20px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #dfe4f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.student-shell .learning-map-empty-route {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.student-shell .learning-map-empty-node {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 13px;
  background: #edf0fa;
  color: #8992a9;
  box-shadow: 0 0 0 1px #dce2f0;
  font-size: 13px;
  font-weight: 800;
}

.student-shell .learning-map-empty-node.is-first {
  background: #e9e7ff;
  color: #6559d4;
  box-shadow: 0 0 0 1px #c7c2ff;
}

.student-shell .learning-map-empty-line {
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(to right, #cbd2e9 0 6px, transparent 6px 10px);
}

.student-shell .learning-map-empty-copy h4 {
  margin: 0;
  color: #2d355d;
  font-size: 1rem;
}

.student-shell .learning-map-empty-copy > p:not(.learning-map-kicker) {
  margin: 6px 0 12px;
  color: #747d91;
  font-size: 12px;
  line-height: 1.5;
}

.student-shell .learning-map-empty-copy .btn {
  min-height: 38px;
  border-radius: 12px;
}

.student-shell .learning-model-details {
  margin-top: 16px;
  border-top: 1px solid #e5e8f2;
}

.student-shell .learning-model-details > summary {
  padding: 14px 4px 4px;
  color: #5e61a9;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.student-shell .learning-model-details > summary::marker {
  color: #8278ed;
}

.student-shell .learning-model-details[open] > summary {
  padding-bottom: 12px;
}

@media (max-width: 700px) {
  .student-shell .learning-map-switcher {
    grid-template-columns: 1fr;
  }

  .student-shell .learning-map-tab {
    min-height: 50px;
  }

  .student-shell .learning-map-tab small {
    display: block;
  }

  .student-shell #learning-path-summary {
    grid-template-columns: 1fr;
  }

  .student-shell .learning-map-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-shell .learning-map-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-shell .learning-map-node {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .student-shell .learning-map-node-action {
    display: none;
  }

  .student-shell .learning-map-marker {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .student-shell .learning-map-empty-state {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .student-shell .learning-map-empty-route {
    min-height: 58px;
  }
}

/* Guided single-roadmap presentation. Keep this override after the legacy map rules. */
.student-shell .learning-map-switcher {
  display: none !important;
}

.student-shell #learning-path-summary {
  display: none !important;
}

.student-shell .learning-map-current {
  margin-bottom: 14px;
  border-color: #d7d5fb;
  background: linear-gradient(100deg, rgba(244, 242, 255, 0.92), rgba(255, 255, 255, 0.78));
}

.student-shell .learning-map-current-copy strong {
  color: #4d43ac;
}

.student-shell .learning-map-panel-heading {
  align-items: flex-start;
  margin-bottom: 10px;
}

.student-shell .learning-map-panel-intro {
  margin: 4px 0 0;
  color: #81889a;
  font-size: 12px;
}

.student-shell .learning-map-track {
  gap: 7px;
  padding-top: 2px;
}

.student-shell .learning-map-track::before {
  top: 47px;
  bottom: 47px;
  left: 30px;
  background: repeating-linear-gradient(to bottom, #cdd4ed 0 9px, transparent 9px 15px);
}

.student-shell .learning-map-phase {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0 1px 4px;
  color: #7078a1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.student-shell .learning-map-phase::after {
  width: 54px;
  height: 1px;
  background: #d8dcef;
  content: "";
}

.student-shell .learning-map-step {
  transition: transform 180ms ease;
}

.student-shell .learning-map-step.roadmap-left {
  margin-right: 34px;
}

.student-shell .learning-map-step.roadmap-right {
  margin-left: 34px;
}

.student-shell .learning-map-node {
  min-height: 68px;
  border-radius: 17px;
}

.student-shell .learning-map-step:not(.active) .learning-map-node-detail,
.student-shell .learning-map-step:not(.active) .learning-map-node-action {
  display: none;
}

.student-shell .learning-map-step:not(.active) .learning-map-node {
  min-height: 58px;
}

.student-shell .learning-map-step.completed .learning-map-node {
  box-shadow: none;
}

.student-shell .learning-map-step.completed .learning-map-node .path-node-label {
  color: #356a59;
}

.student-shell .learning-map-step.active {
  transform: scale(1.015);
}

.student-shell .learning-map-step.active .learning-map-node {
  min-height: 84px;
}

.student-shell .learning-map-step.active .learning-map-node::after {
  position: absolute;
  top: 9px;
  right: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ebe8ff;
  color: #5e51c3;
  content: "ŞİMDİ";
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.student-shell .learning-map-step.active .learning-map-node-copy {
  padding-right: 46px;
}

.student-shell .learning-map-step.kind-checkpoint .learning-map-node,
.student-shell .learning-map-step.kind-measurement .learning-map-node {
  background: linear-gradient(100deg, #fff9e7, #ffffff 76%);
}

.student-shell .learning-map-step.kind-reinforcement .learning-map-node {
  background: linear-gradient(100deg, #effbf7, #ffffff 76%);
}

.student-shell .learning-map-step.kind-checkpoint .learning-map-kind,
.student-shell .learning-map-step.kind-measurement .learning-map-kind {
  color: #ad7706;
}

.student-shell .learning-map-step.kind-reinforcement .learning-map-kind {
  color: #168c70;
}

@media (max-width: 700px) {
  .student-shell .learning-map-step.roadmap-left,
  .student-shell .learning-map-step.roadmap-right {
    margin-right: 0;
    margin-left: 0;
  }

  .student-shell .learning-map-step.active {
    transform: none;
  }

  .student-shell .learning-map-step.active .learning-map-node-copy {
    padding-right: 0;
  }
}

/* Focused roadmap home: the learner sees one calm, actionable journey. */
.student-shell #page-dashboard > .page-head,
.student-shell #page-dashboard > #home-insights,
.student-shell #page-dashboard > #guest-diagnostic-card,
.student-shell #page-dashboard > #today-card,
.student-shell #page-dashboard > #entitlement-card,
.student-shell #page-dashboard > #review-card {
  display: none !important;
}

.student-shell #page-dashboard {
  padding-top: clamp(12px, 2vw, 28px);
}

.student-shell #learning-path-card {
  min-height: calc(100vh - 168px);
  margin-top: 0;
  padding: clamp(20px, 4vw, 34px) clamp(16px, 4vw, 42px) 34px;
  border: 1px solid #d8def2;
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 8%, rgba(129, 116, 241, 0.14), transparent 24%),
    radial-gradient(circle at 92% 92%, rgba(45, 192, 164, 0.1), transparent 25%), #fbfcff;
  box-shadow: 0 18px 48px rgba(39, 54, 111, 0.1);
}

.student-shell #learning-path-card .learning-path-heading {
  align-items: flex-start;
  margin-bottom: 12px;
}

.student-shell #learning-path-card .learning-path-eyebrow {
  color: #776bdc;
}

.student-shell #learning-path-card .learning-path-heading h3 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.student-shell #learning-path-card .learning-path-subtitle {
  color: #707992;
}

.student-shell #learning-path-card #learning-model-details,
.student-shell #learning-path-card #learning-path-summary {
  display: none !important;
}

.student-shell #learning-path-card .learning-path-primary {
  align-items: flex-end;
}

.student-shell #learning-path-card .learning-path-progress {
  border-color: #d5d4fa;
  background: #f0efff;
  color: #5e55bc;
}

.student-shell .learning-map-current {
  margin: 0 auto 18px;
  border-color: #d8d5fa;
  background: rgba(246, 245, 255, 0.88);
  box-shadow: 0 8px 20px rgba(101, 92, 231, 0.06);
}

.student-shell .learning-map-panel {
  max-width: 760px;
  margin: 0 auto;
}

.student-shell .learning-map-panel-heading h4 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.student-shell .learning-map-window-note {
  margin: 0 0 2px;
  color: #7b83a0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.student-shell .learning-map-track {
  gap: 12px;
  padding: 18px 0 28px;
}

.student-shell .learning-map-track::before {
  top: 54px;
  bottom: 54px;
  left: 50%;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, #d9ddf3 0 12px, transparent 12px 19px);
}

.student-shell .learning-map-step {
  width: 100%;
  margin: 0 !important;
}

.student-shell .learning-map-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 12px;
  min-height: 92px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell .learning-map-node:hover,
.student-shell .learning-map-node:focus-visible,
.student-shell .learning-map-step.active .learning-map-node,
.student-shell .learning-map-step.completed .learning-map-node,
.student-shell .learning-map-step.locked .learning-map-node {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.student-shell .learning-map-marker {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 64px;
  height: 64px;
  border-width: 5px;
  border-radius: 21px;
  font-size: 25px;
  z-index: 2;
}

.student-shell .learning-map-node-copy {
  grid-row: 1;
  align-self: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-copy {
  grid-column: 1;
  text-align: right;
}

.student-shell .learning-map-step.roadmap-right .learning-map-node-copy {
  grid-column: 3;
  text-align: left;
}

.student-shell .learning-map-step.active .learning-map-node-copy {
  border-color: #d7d3fb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(69, 73, 151, 0.11);
}

.student-shell .learning-map-step.completed .learning-map-node-copy {
  color: #34745e;
}

.student-shell .learning-map-step.locked .learning-map-node-copy {
  opacity: 0.42;
}

.student-shell .learning-map-node-top {
  justify-content: inherit;
}

.student-shell .learning-map-node-detail,
.student-shell .learning-map-node-action {
  white-space: normal;
}

.student-shell .learning-map-step.kind-fast .learning-map-marker {
  background: linear-gradient(145deg, #8065eb, #a456e3);
  color: #ffffff;
  box-shadow:
    0 0 0 1px #7563d5,
    0 8px 18px rgba(105, 86, 221, 0.25);
}

.student-shell .learning-map-step.kind-comprehension .learning-map-marker {
  background: linear-gradient(145deg, #2e80e8, #5b62dc);
  color: #ffffff;
  box-shadow:
    0 0 0 1px #4269c9,
    0 8px 18px rgba(56, 100, 203, 0.22);
}

.student-shell .learning-map-step.kind-practice .learning-map-marker {
  background: #e6edff;
  color: #416cd2;
  box-shadow: 0 0 0 1px #c4d2ff;
}

.student-shell .learning-map-step.kind-lesson .learning-map-marker {
  background: #fff0bf;
  color: #d28c00;
  box-shadow: 0 0 0 1px #f0d477;
}

.student-shell .learning-map-step.kind-checkpoint .learning-map-marker,
.student-shell .learning-map-step.kind-measurement .learning-map-marker {
  background: #fff0bf;
  color: #cb8700;
}

.student-shell .learning-map-step.kind-reinforcement .learning-map-marker {
  background: #d8f6eb;
  color: #168d70;
}

@media (max-width: 700px) {
  .student-shell #learning-path-card {
    min-height: calc(100vh - 148px);
    border-radius: 24px;
  }

  .student-shell #learning-path-card .learning-path-primary {
    align-items: flex-end;
  }

  .student-shell .learning-map-node {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    gap: 8px;
    min-height: 82px;
  }

  .student-shell .learning-map-marker {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 20px;
  }

  .student-shell .learning-map-node-copy {
    padding: 8px 9px;
  }

  .student-shell .learning-map-node .path-node-label {
    font-size: 12px;
  }

  .student-shell .learning-map-node-top .path-node-status,
  .student-shell .learning-map-kind {
    font-size: 9px;
  }

  .student-shell .learning-map-step.active .learning-map-node::after {
    top: 2px;
    right: 4px;
  }
}

/* Roadmap-first home: make the route the primary student experience. */
.student-shell #learning-path-card {
  min-height: calc(100vh - 132px);
  margin: 0;
  padding: 18px clamp(12px, 3vw, 28px) 76px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f8ff 72%, #eefaf7 100%);
  box-shadow: none;
}

.student-shell #learning-path-card .learning-path-heading,
.student-shell #learning-path-card .learning-map-current {
  display: none !important;
}

.student-shell #learning-path-card .learning-map-panel {
  max-width: 620px;
}

.student-shell #learning-path-card .learning-map-panel-heading {
  display: block;
  margin: 0 auto 14px;
  padding: 8px 6px 0;
  text-align: left;
}

.student-shell #learning-path-card .learning-map-kicker {
  margin-bottom: 4px;
  color: #7167d6;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.student-shell #learning-path-card .learning-map-panel-heading h4 {
  margin: 0;
  color: #18274b;
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: -0.035em;
}

.student-shell #learning-path-card .learning-map-panel-intro {
  max-width: 31rem;
  margin: 6px 0 8px;
  color: #69758e;
  font-size: 13px;
  line-height: 1.45;
}

.student-shell .learning-map-level {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 4px;
  padding: 4px 11px;
  border: 1px solid #d9d8fa;
  border-radius: 999px;
  background: #f5f3ff;
  color: #5d55ba;
  font-size: 11px;
  font-weight: 800;
}

.student-shell #learning-path-card .learning-map-panel-count {
  display: block;
  width: fit-content;
  margin: 12px 0 0;
  padding: 7px 11px;
  border: 1px solid #d9d8fa;
  border-radius: 999px;
  background: #ffffffb8;
  color: #5c53b9;
  font-size: 12px;
  font-weight: 850;
}

.student-shell #learning-path-card .learning-map-window-note {
  max-width: 23rem;
  margin: 2px auto 3px;
  color: #8790a8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.student-shell #learning-path-card .learning-map-track {
  padding-top: 10px;
}

.student-shell #learning-path-card .learning-map-track::before {
  animation: okuplus-map-route 2.6s linear infinite;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-marker {
  animation: okuplus-map-active 1.8s ease-in-out infinite;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node-copy {
  border-color: #bdb7ff;
  background: linear-gradient(135deg, #ffffff, #f8f6ff);
  box-shadow: 0 12px 28px rgba(78, 68, 181, 0.14);
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node-action {
  color: #5a50bd;
  font-weight: 900;
}

.student-shell #learning-path-card .learning-map-step.locked .learning-map-marker {
  filter: grayscale(0.45);
}

.student-shell .learning-map-step.kind-teaching .learning-map-marker {
  background: linear-gradient(145deg, #f2a93b, #ef7d4a);
  color: #ffffff;
  box-shadow:
    0 0 0 1px #e88c36,
    0 8px 18px rgba(230, 137, 53, 0.22);
}

.student-shell .learning-map-step.kind-small-study .learning-map-marker {
  background: linear-gradient(145deg, #41c6a4, #258fc1);
  color: #ffffff;
  box-shadow:
    0 0 0 1px #42a996,
    0 8px 18px rgba(48, 163, 157, 0.22);
}

@keyframes okuplus-map-route {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 31px;
  }
}

@keyframes okuplus-map-active {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(105, 86, 221, 0.16),
      0 8px 18px rgba(105, 86, 221, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 10px rgba(105, 86, 221, 0),
      0 10px 22px rgba(105, 86, 221, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-shell #learning-path-card .learning-map-track::before,
  .student-shell #learning-path-card .learning-map-step.active .learning-map-marker {
    animation: none;
  }
}

/* Reference roadmap v3: a calm, visible route with one clear current station. */
.student-shell #learning-path-card {
  min-height: calc(100vh - 132px);
  padding: 18px clamp(12px, 3vw, 28px) 82px;
  overflow: visible;
}

.student-shell #learning-path-card .learning-map-panel {
  width: min(100%, 680px);
  max-width: 680px;
  margin: 0 auto;
}

.student-shell #learning-path-card .learning-map-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 16px;
}

.student-shell .learning-map-wordmark {
  display: block;
  color: #172d5c;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.student-shell .learning-map-overview-title h4 {
  margin: 10px 0 3px;
  color: #172d5c;
  font-size: clamp(1.7rem, 6vw, 2.45rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.student-shell .learning-map-overview-title p {
  margin: 0;
  color: #7a8eae;
  font-size: clamp(0.94rem, 3.5vw, 1.12rem);
  font-weight: 650;
}

.student-shell .learning-map-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eee8ff;
  color: #6336df;
  font-size: 1.8rem;
  font-weight: 900;
}

.student-shell #learning-path-card .learning-map-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: 10px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid #e1eaff;
  border-radius: 24px;
  background: #eff4ff;
}

.student-shell .learning-map-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.student-shell .learning-map-stat-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #6938e7;
  font-size: 1.25rem;
  font-weight: 900;
}

.student-shell .learning-map-stat strong,
.student-shell .learning-map-stat small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-shell .learning-map-stat strong {
  color: #1c376d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.student-shell .learning-map-stat small {
  margin-top: 3px;
  color: #7c91b2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.student-shell .learning-map-stat-progress {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.student-shell .learning-map-stat-progress-line {
  grid-column: 1 / -1;
  height: 9px;
  margin-bottom: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce3f2;
}

.student-shell .learning-map-stat-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f35e9, #8438e8);
}

.student-shell .learning-map-stat-progress > strong {
  color: #1d3469;
  font-size: 16px;
}

.student-shell .learning-map-stat-progress > small {
  text-align: right;
}

.student-shell #learning-path-card .learning-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 0 8px 20px;
  color: #20345e;
  font-size: 12px;
  font-weight: 800;
}

.student-shell .learning-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.student-shell .learning-map-legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dce4ef;
}

.student-shell .learning-map-legend-item.fast i {
  background: #287ce8;
}
.student-shell .learning-map-legend-item.comprehension i {
  background: #f0641d;
}
.student-shell .learning-map-legend-item.completed i {
  background: #10b86c;
}
.student-shell .learning-map-legend-item.current i {
  background: #6a37e9;
}
.student-shell .learning-map-legend-item.locked i {
  background: #dbe3ee;
}

.student-shell #learning-path-card .learning-map-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 8px 7px;
  padding: 0;
}

.student-shell #learning-path-card .learning-map-kicker {
  margin: 0 0 5px;
  color: #7061cf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.student-shell #learning-path-card .learning-map-panel-heading h4 {
  margin: 0;
  color: #172d5c;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.045em;
}

.student-shell #learning-path-card .learning-map-panel-intro {
  max-width: 34rem;
  margin: 7px 0 0;
  color: #73819d;
  font-size: 13px;
  line-height: 1.4;
}

.student-shell #learning-path-card .learning-map-panel-count {
  flex: 0 0 auto;
  margin: 0 0 2px;
  padding: 8px 11px;
  border: 1px solid #d9d7fb;
  border-radius: 999px;
  background: #f7f4ff;
  color: #5e50c1;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: var(--learning-map-route-height);
  padding: 4px 0 70px;
  overflow: visible;
}

.student-shell #learning-path-card .learning-map-track::before {
  display: none !important;
}

.student-shell .learning-map-route {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--learning-map-route-height);
  overflow: visible;
  pointer-events: none;
}

.student-shell .learning-map-route path {
  fill: none;
  stroke: #bdd7ff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 6 9;
  animation: okuplus-map-route-svg 3.2s linear infinite;
}

.student-shell .learning-map-step {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 154px;
  margin: 0 !important;
}

.student-shell .learning-map-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 154px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: inherit;
}

.student-shell .learning-map-marker-wrap {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  justify-self: center;
}

.student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
  transform: translateX(-30px);
}

.student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
  transform: translateX(30px);
}

.student-shell .learning-map-marker {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 3px solid #d8e3f1;
  border-radius: 22px;
  background: #f3f6fa;
  color: #b6c1d1;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 15px rgba(72, 103, 152, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.student-shell .learning-map-step.completed .learning-map-marker {
  border-color: #f0dda0;
  background: #fff8d9;
  color: #12b66a;
}

.student-shell .learning-map-step.active .learning-map-marker {
  border-color: #6a37e9;
  background: linear-gradient(145deg, #7845ef, #5e2dd7);
  color: #ffffff;
  box-shadow:
    0 0 0 9px rgba(106, 55, 233, 0.11),
    0 12px 24px rgba(83, 47, 190, 0.3);
  animation: okuplus-map-active 1.8s ease-in-out infinite;
}

.student-shell .learning-map-step.active .learning-map-node-copy {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell .learning-map-step.locked .learning-map-marker {
  border-color: #dbe3ee;
  background: #f4f6f9;
  color: #c3ccd8;
  box-shadow: none;
}

.student-shell .learning-map-step.completed .learning-map-marker::after {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #10b86c;
  color: #ffffff;
  content: "✓";
  font-size: 13px;
  font-weight: 950;
}

.student-shell .learning-map-node-copy {
  position: relative;
  z-index: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-copy {
  grid-column: 1;
  text-align: right;
}

.student-shell .learning-map-step.roadmap-right .learning-map-node-copy {
  grid-column: 3;
  text-align: left;
}

.student-shell .learning-map-node-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #65728b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-top {
  justify-content: flex-end;
}

.student-shell .learning-map-node .path-node-status {
  color: #68748a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-shell .learning-map-step.active .path-node-status,
.student-shell .learning-map-step.active .path-node-label {
  color: #6336df;
}

.student-shell .learning-map-step.completed .path-node-status {
  color: #18a86a;
}

.student-shell .learning-map-node .path-node-label {
  display: block;
  margin-top: 5px;
  color: #1e4d3d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.student-shell .learning-map-step.locked .path-node-label,
.student-shell .learning-map-step.locked .path-node-status,
.student-shell .learning-map-step.locked .learning-map-kind {
  color: #aeb8c8;
}

.student-shell .learning-map-node .learning-map-node-detail,
.student-shell .learning-map-node .learning-map-node-action {
  display: none;
}

.student-shell .learning-map-step.active .learning-map-node-detail,
.student-shell .learning-map-step.active .learning-map-node-action {
  display: block;
  margin-top: 5px;
  color: #75819a;
  font-size: 11px;
  line-height: 1.35;
}

.student-shell .learning-map-step.active .learning-map-node-action {
  color: #6336df;
  font-weight: 900;
}

.student-shell .learning-map-character-wrap {
  position: absolute;
  z-index: 5;
  bottom: 53px;
  left: 50%;
  width: 92px;
  height: 112px;
  transform: translateX(-50%);
  pointer-events: none;
}

.student-shell .learning-map-character {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 84px;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
}

.student-shell .learning-map-here {
  position: absolute;
  bottom: -18px;
  left: 50%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #6a37e9;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
  transform: translateX(-50%);
}

@keyframes okuplus-map-route-svg {
  to {
    stroke-dashoffset: -30;
  }
}

@media (max-width: 700px) {
  .student-shell #learning-path-card {
    padding: 15px 10px 78px;
  }

  .student-shell #learning-path-card .learning-map-stats {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 5px;
    padding: 11px 9px;
  }

  .student-shell .learning-map-stat-icon {
    width: 23px;
    height: 23px;
    font-size: 1rem;
  }

  .student-shell .learning-map-stat strong {
    font-size: 10px;
  }

  .student-shell .learning-map-stat small {
    font-size: 8px;
  }

  .student-shell #learning-path-card .learning-map-legend {
    gap: 7px 10px;
    margin-right: 2px;
    margin-left: 2px;
    font-size: 10px;
  }

  .student-shell #learning-path-card .learning-map-panel-heading {
    align-items: flex-start;
    margin-right: 2px;
    margin-left: 2px;
  }

  .student-shell #learning-path-card .learning-map-panel-count {
    display: none;
  }

  .student-shell .learning-map-node {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 5px;
  }

  .student-shell .learning-map-marker-wrap {
    width: 62px;
    height: 62px;
  }

  .student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
    transform: translateX(-20px);
  }

  .student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
    transform: translateX(20px);
  }

  .student-shell .learning-map-marker {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 21px;
  }

  .student-shell .learning-map-node .path-node-label {
    font-size: 12px;
  }

  .student-shell .learning-map-node-top,
  .student-shell .learning-map-node .path-node-status {
    font-size: 8px;
  }

  .student-shell .learning-map-character-wrap {
    bottom: 45px;
    width: 78px;
    height: 96px;
  }

  .student-shell .learning-map-character {
    width: 70px;
  }

  .student-shell .learning-map-here {
    bottom: -17px;
    padding: 4px 8px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-shell .learning-map-route path,
  .student-shell #learning-path-card .learning-map-step.active .learning-map-marker {
    animation: none;
  }
}

/* Final roadmap polish: preserve the route while giving every station a
   predictable vertical slot and a readable side label. */
.student-shell #learning-path-card {
  overflow-x: clip;
}

.student-shell #learning-path-card .learning-map-track {
  overflow-x: clip;
  overflow-y: visible;
}

.student-shell .learning-map-step,
.student-shell .learning-map-node {
  min-height: 154px;
}

.student-shell .learning-map-node {
  min-width: 0;
}

.student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
  transform: translateX(clamp(-40px, -5.7vw, -20px));
}

.student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
  transform: translateX(clamp(20px, 5.7vw, 40px));
}

.student-shell .learning-map-node-copy {
  width: 100%;
  max-width: 220px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-copy {
  justify-self: end;
}

.student-shell .learning-map-step.roadmap-right .learning-map-node-copy {
  justify-self: start;
}

.student-shell .learning-map-node-top {
  min-width: 0;
}

.student-shell .learning-map-node-top > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell .learning-map-node .path-node-unit {
  display: block;
  overflow: hidden;
  color: #7c6bcf;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell .learning-map-node .path-node-label {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.student-shell .learning-map-step.active .learning-map-node-copy {
  min-height: 76px;
  padding: 11px 13px;
  border: 1px solid #c9c3ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8f6ff);
  box-shadow: 0 10px 22px rgba(78, 68, 181, 0.12);
}

.student-shell .learning-map-step.active .learning-map-node::after {
  display: none;
}

.student-shell .learning-map-step.active .learning-map-node-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.student-shell .learning-map-step.locked .learning-map-node-copy {
  opacity: 1;
}

.student-shell .learning-map-step.locked .learning-map-node .path-node-label {
  color: #7d899d;
}

.student-shell .learning-map-step.locked .learning-map-node .path-node-status,
.student-shell .learning-map-step.locked .learning-map-node .learning-map-kind {
  color: #8995a8;
}

.student-shell .learning-map-step.locked .learning-map-marker {
  border-color: #cbd5e2;
  background: #eef2f6;
  color: #9aa7b8;
  box-shadow: 0 4px 10px rgba(72, 103, 152, 0.08);
}

.student-shell .learning-map-step.completed .learning-map-marker {
  border-color: #b7e7cf;
  background: #eafaf2;
  color: #12a867;
  box-shadow: 0 5px 12px rgba(25, 155, 103, 0.12);
}

.student-shell .learning-map-character-wrap {
  bottom: 4px;
  width: 82px;
  height: 112px;
  z-index: 1;
}

.student-shell .learning-map-character {
  width: 66px;
}

.student-shell .learning-map-marker {
  z-index: 2;
}

.student-shell .learning-map-now {
  position: absolute;
  top: -25px;
  left: 50%;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ebe8ff;
  color: #5e51c3;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.student-shell .learning-map-here {
  top: calc(100% + 4px);
  bottom: auto;
  z-index: 4;
  padding: 4px 9px;
  font-size: 9px;
  line-height: 1.1;
}

.student-shell .student-bottom-nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.student-shell .bottom-nav-item {
  box-sizing: border-box;
  overflow: hidden;
}

.student-shell .bottom-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.15;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

@media (max-width: 700px) {
  .student-shell #learning-path-card {
    padding-inline: clamp(10px, 3vw, 16px);
  }

  .student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap,
  .student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
    transform: translateX(clamp(18px, 5.7vw, 24px));
  }

  .student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
    transform: translateX(clamp(-24px, -5.7vw, -18px));
  }

  .student-shell .learning-map-node-copy {
    max-width: 100%;
    padding-inline: 6px;
  }

  .student-shell .learning-map-step.active .learning-map-node-copy {
    padding: 10px 9px;
  }

  .student-shell .learning-map-node .path-node-label {
    font-size: clamp(11px, 3.1vw, 13px);
  }

  .student-shell .learning-map-node .path-node-unit,
  .student-shell .learning-map-node-top,
  .student-shell .learning-map-node .path-node-status,
  .student-shell .learning-map-kind {
    font-size: clamp(8px, 2.2vw, 10px);
  }

  .student-shell .learning-map-character-wrap {
    width: 74px;
    height: 103px;
  }

  .student-shell .learning-map-character {
    width: 60px;
  }

  .student-shell .learning-map-here {
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .student-shell .learning-map-node {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 3px;
  }

  .student-shell .learning-map-marker-wrap {
    width: 56px;
  }

  .student-shell .learning-map-marker {
    width: 50px;
    height: 50px;
    font-size: 19px;
  }

  .student-shell .bottom-nav-label {
    font-size: 9px;
  }
}

/* Learning map v6: one lightweight route, one active station, no detail cards. */
.student-shell #learning-path-card.learning-path-card {
  box-sizing: border-box;
  overflow: visible;
  overflow-x: clip;
  padding: clamp(14px, 3vw, 24px);
  border: 0;
  border-radius: 24px;
  background: #fbfcff;
  box-shadow: 0 12px 30px rgba(44, 61, 108, 0.08);
}

.student-shell #learning-path-card > .learning-path-heading,
.student-shell #learning-path-card > #learning-path-summary,
.student-shell #learning-path-card > #learning-model-details {
  display: none;
}

.student-shell #learning-path-card > #learning-map-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin: 0 2px 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.student-shell #learning-path-card .learning-map-current-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.student-shell #learning-path-card .learning-map-current-copy > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-shell #learning-path-card .learning-map-current-copy strong {
  overflow: hidden;
  color: #4e43b8;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-current-copy small {
  overflow: hidden;
  color: #7c879e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-current-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 3px solid #7252ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #e9e4ff;
}

.student-shell #learning-path-card .learning-map-current-progress {
  flex: 0 0 auto;
  color: #6260a9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-v6 {
  width: 100%;
  min-width: 0;
  color: #182d56;
}

.student-shell #learning-path-card > #learning-path.learning-path::before {
  display: none;
  content: none;
}

.student-shell #learning-path-card .learning-map-v6-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 10px;
}

.student-shell #learning-path-card .learning-map-v6-header h4,
.student-shell #learning-path-card .learning-map-v6-heading h4 {
  margin: 0;
  color: #172e5c;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.student-shell #learning-path-card .learning-map-v6-header p:last-child,
.student-shell #learning-path-card .learning-map-v6-heading p:last-child {
  margin: 6px 0 0;
  color: #7d8ca7;
  font-size: 12px;
  line-height: 1.35;
}

.student-shell #learning-path-card .learning-map-v6-kicker {
  margin: 0 0 5px;
  color: #6554d8;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.student-shell #learning-path-card .learning-map-v6-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ede9ff;
  color: #6541e7;
  font-size: 1.25rem;
  font-weight: 900;
}

.student-shell #learning-path-card .learning-map-v6-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(62px, 0.8fr) minmax(62px, 0.8fr);
  gap: 8px 14px;
  align-items: end;
  margin: 0 2px 12px;
  padding: 9px 0 11px;
  border-top: 1px solid #e9edf6;
  border-bottom: 1px solid #e9edf6;
}

.student-shell #learning-path-card .learning-map-v6-summary > span:not(.learning-map-v6-progress) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.student-shell #learning-path-card .learning-map-v6-summary strong {
  overflow: hidden;
  color: #314779;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-v6-summary small {
  color: #8b96a9;
  font-size: 9px;
  line-height: 1.2;
}

.student-shell #learning-path-card .learning-map-v6-progress {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf7;
}

.student-shell #learning-path-card .learning-map-v6-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7048e8, #9c73ff);
  transition: width 0.35s ease;
}

.student-shell #learning-path-card .learning-map-v6-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 0 2px 14px;
  color: #6c7890;
  font-size: 10px;
  font-weight: 750;
}

.student-shell #learning-path-card .learning-map-v6-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.student-shell #learning-path-card .learning-map-v6-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a5b3c8;
}

.student-shell #learning-path-card .learning-map-v6-legend .fast i {
  background: #2179ef;
}

.student-shell #learning-path-card .learning-map-v6-legend .comprehension i {
  background: #f2671d;
}

.student-shell #learning-path-card .learning-map-v6-legend .current i {
  background: #7048e8;
}

.student-shell #learning-path-card .learning-map-v6-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 4px;
}

.student-shell #learning-path-card .learning-map-v6-heading h4 {
  font-size: 1.15rem;
}

.student-shell #learning-path-card .learning-map-v6-heading > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: #5d4acc;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.student-shell #learning-path-card .learning-map-v6-route {
  position: relative;
  display: grid;
  grid-auto-rows: 142px;
  height: var(--learning-map-route-height);
  min-height: 0;
  overflow-x: clip;
  padding: 0 0 12px;
  isolation: isolate;
}

.student-shell #learning-path-card .learning-map-v6-path {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.student-shell #learning-path-card .learning-map-v6-path path {
  fill: none;
  stroke: #c8dcff;
  stroke-linecap: round;
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.student-shell #learning-path-card .learning-map-v6-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 1;
  min-width: 0;
  min-height: 142px;
}

.student-shell #learning-path-card .learning-map-v6-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 142px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
}

.student-shell #learning-path-card .learning-map-v6-node:not(:disabled) {
  cursor: pointer;
}

.student-shell
  #learning-path-card
  .learning-map-v6-node:not(:disabled):hover
  .learning-map-v6-marker,
.student-shell
  #learning-path-card
  .learning-map-v6-node:not(:disabled):focus-visible
  .learning-map-v6-marker {
  transform: scale(1.06);
}

.student-shell #learning-path-card .learning-map-v6-node:focus-visible {
  outline: 3px solid #cfc7ff;
  outline-offset: -3px;
}

.student-shell #learning-path-card .learning-map-v6-marker-wrap {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 72px;
  height: 72px;
  place-items: center;
  justify-self: center;
}

.student-shell #learning-path-card .learning-map-v6-left .learning-map-v6-marker-wrap {
  transform: translateX(-10px);
}

.student-shell #learning-path-card .learning-map-v6-right .learning-map-v6-marker-wrap {
  transform: translateX(10px);
}

.student-shell #learning-path-card .learning-map-v6-marker {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid #bcd2f9;
  border-radius: 18px;
  background: #f8fbff;
  color: #2d79e8;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(70, 111, 187, 0.11);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.student-shell
  #learning-path-card
  .learning-map-v6-step.area-comprehension
  .learning-map-v6-marker {
  border-color: #f5c6ab;
  background: #fff9f4;
  color: #ed641b;
}

.student-shell #learning-path-card .learning-map-v6-step.kind-reinforcement .learning-map-v6-marker,
.student-shell #learning-path-card .learning-map-v6-step.kind-checkpoint .learning-map-v6-marker,
.student-shell #learning-path-card .learning-map-v6-step.kind-measurement .learning-map-v6-marker {
  border-color: #d4c4ff;
  background: #faf7ff;
  color: #7048e8;
}

.student-shell #learning-path-card .learning-map-v6-step.completed .learning-map-v6-marker {
  border-color: #b8e5cc;
  background: #effbf4;
  color: #10a86a;
  box-shadow: 0 4px 10px rgba(23, 163, 103, 0.11);
}

.student-shell #learning-path-card .learning-map-v6-step.locked .learning-map-v6-marker {
  border-color: #d9e0ea;
  background: #f2f5f8;
  color: #aab5c3;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-v6-step.is-current .learning-map-v6-marker {
  border-color: #7048e8;
  background: #7048e8;
  color: #fff;
  box-shadow:
    0 0 0 7px #eeeaff,
    0 10px 18px rgba(112, 72, 232, 0.25);
  animation: okuplus-map-v6-pulse 2.2s ease-in-out infinite;
}

.student-shell #learning-path-card .learning-map-v6-copy {
  display: flex;
  grid-row: 1;
  min-width: 0;
  max-width: 150px;
  flex-direction: column;
  gap: 4px;
  padding: 5px 4px;
}

.student-shell #learning-path-card .learning-map-v6-left .learning-map-v6-copy {
  grid-column: 1;
  align-items: flex-end;
  justify-self: end;
  text-align: right;
}

.student-shell #learning-path-card .learning-map-v6-right .learning-map-v6-copy {
  grid-column: 3;
  align-items: flex-start;
  justify-self: start;
  text-align: left;
}

.student-shell #learning-path-card .learning-map-v6-area {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #2c76dc;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1.18;
  text-transform: uppercase;
}

.student-shell #learning-path-card .learning-map-v6-step.area-comprehension .learning-map-v6-area {
  color: #d45b20;
}

.student-shell #learning-path-card .learning-map-v6-step.area-common .learning-map-v6-area {
  color: #6250ca;
}

.student-shell #learning-path-card .learning-map-v6-kind {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #213d70;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.16;
}

.student-shell #learning-path-card .learning-map-v6-step.completed .learning-map-v6-kind {
  color: #287458;
}

.student-shell #learning-path-card .learning-map-v6-step.locked .learning-map-v6-copy {
  opacity: 0.42;
}

.student-shell #learning-path-card .learning-map-v6-action {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #7048e8;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 11px rgba(112, 72, 232, 0.18);
}

.student-shell #learning-path-card .learning-map-v6-lock {
  color: #9ba8b9;
  font-size: 12px;
  line-height: 1;
}

.student-shell #learning-path-card .learning-map-v6-character {
  position: absolute;
  bottom: 38px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 82px;
  justify-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.student-shell #learning-path-card .learning-map-v6-character img {
  display: block;
  width: 58px;
  height: auto;
}

@keyframes okuplus-map-v6-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 7px #eeeaff,
      0 10px 18px rgba(112, 72, 232, 0.25);
  }

  50% {
    box-shadow:
      0 0 0 11px rgba(238, 234, 255, 0.55),
      0 11px 22px rgba(112, 72, 232, 0.3);
  }
}

@media (max-width: 700px) {
  .student-shell #learning-path-card.learning-path-card {
    padding: 14px 10px 22px;
    border-radius: 20px;
  }

  .student-shell #learning-path-card .learning-map-v6-summary {
    gap: 7px 8px;
  }

  .student-shell #learning-path-card .learning-map-v6-node {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 3px;
  }

  .student-shell #learning-path-card .learning-map-v6-marker-wrap {
    width: 62px;
    height: 62px;
  }

  .student-shell #learning-path-card .learning-map-v6-marker {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 20px;
  }

  .student-shell #learning-path-card .learning-map-v6-left .learning-map-v6-marker-wrap {
    transform: translateX(-7px);
  }

  .student-shell #learning-path-card .learning-map-v6-right .learning-map-v6-marker-wrap {
    transform: translateX(7px);
  }

  .student-shell #learning-path-card .learning-map-v6-copy {
    max-width: 132px;
  }

  .student-shell #learning-path-card .learning-map-v6-kind {
    font-size: clamp(12px, 3.3vw, 14px);
  }

  .student-shell #learning-path-card .learning-map-v6-character {
    width: 72px;
    bottom: 32px;
  }

  .student-shell #learning-path-card .learning-map-v6-character img {
    width: 50px;
  }
}

@media (max-width: 380px) {
  .student-shell #learning-path-card .learning-map-v6-route {
    grid-auto-rows: 142px;
  }

  .student-shell #learning-path-card .learning-map-v6-copy {
    max-width: 120px;
  }

  .student-shell #learning-path-card .learning-map-v6-area {
    font-size: 8px;
  }

  .student-shell #learning-path-card .learning-map-v6-kind {
    font-size: 12px;
  }

  .student-shell #learning-path-card .learning-map-v6-action {
    padding-inline: 8px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-shell #learning-path-card .learning-map-v6-step.is-current .learning-map-v6-marker,
  .student-shell #learning-path-card .learning-map-v6-progress i {
    animation: none;
    transition: none;
  }
}

/* Roadmap v5: the map is the screen. Stations stay lightweight; only the
   route, marker state, and current action carry visual emphasis. */
.student-shell #learning-path-card > .learning-path-heading {
  display: none;
}

.student-shell #learning-path-card {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-overview {
  padding: 3px 0 10px;
}

.student-shell #learning-path-card .learning-map-overview-title p {
  color: #6f7e99;
}

.student-shell #learning-path-card .learning-map-current {
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.student-shell #learning-path-card .learning-map-current-copy {
  gap: 8px;
}

.student-shell #learning-path-card .learning-map-current-copy strong {
  color: #4f45be;
  font-size: 11px;
}

.student-shell #learning-path-card .learning-map-current-copy small {
  display: none;
}

.student-shell #learning-path-card .learning-map-current-dot {
  width: 8px;
  height: 8px;
  border-width: 2px;
  box-shadow: 0 0 0 2px #ddd9ff;
}

.student-shell #learning-path-card .learning-map-current-progress {
  color: #6b62c9;
  font-size: 11px;
}

.student-shell #learning-path-card .learning-map-stats {
  margin: 0 0 13px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #e7e9f3;
  border-bottom: 1px solid #e7e9f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-stat strong {
  color: #263663;
}

.student-shell #learning-path-card .learning-map-stat small {
  color: #8490a6;
}

.student-shell #learning-path-card .learning-map-stat-progress-line {
  height: 5px;
  border-radius: 999px;
  background: #e9eafa;
}

.student-shell #learning-path-card .learning-map-stat-progress-line span {
  border-radius: inherit;
  background: #7048e8;
}

.student-shell #learning-path-card .learning-map-panel-heading {
  margin: 0 0 2px;
}

.student-shell #learning-path-card .learning-map-panel-intro,
.student-shell #learning-path-card .learning-map-panel-count {
  display: none;
}

.student-shell #learning-path-card #learning-path-summary {
  display: none;
}

.student-shell #learning-path-card .learning-map-track {
  padding-top: 2px;
}

.student-shell #learning-path-card .learning-map-node,
.student-shell #learning-path-card .learning-map-node:not(:disabled):hover,
.student-shell #learning-path-card .learning-map-node:not(:disabled):focus-visible {
  min-height: 154px;
  border: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-node:not(:disabled):hover {
  transform: none;
}

.student-shell #learning-path-card .learning-map-node:not(:disabled):focus-visible {
  outline: 3px solid #c9c3ff;
  outline-offset: -3px;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node-copy {
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid #7048e8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node-top,
.student-shell #learning-path-card .learning-map-step.active .path-node-label {
  color: #42359f;
}

.student-shell #learning-path-card .learning-map-step.active .learning-map-node-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #7048e8;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(112, 72, 232, 0.2);
}

.student-shell #learning-path-card .learning-map-step.completed .learning-map-node-copy {
  color: #27785b;
}

.student-shell #learning-path-card .learning-map-step.locked .learning-map-node-copy {
  opacity: 0.72;
}

.student-shell #learning-path-card .learning-map-node-lock {
  margin-top: 5px;
  color: #9ca8b9;
  font-size: 12px;
}

.student-shell #learning-path-card .learning-model-details {
  margin-top: 4px;
}

@media (max-width: 700px) {
  .student-shell #learning-path-card .learning-map-node {
    min-height: 142px;
  }

  .student-shell #learning-path-card .learning-map-step.active .learning-map-node {
    min-height: 142px;
  }
}

@media (max-width: 380px) {
  .student-shell #learning-path-card .learning-map-node,
  .student-shell #learning-path-card .learning-map-step.active .learning-map-node {
    min-height: 132px;
  }

  .student-shell #learning-path-card .learning-map-step.active .learning-map-node-action {
    padding-inline: 7px;
    font-size: 9px;
  }
}

/* Roadmap v4 final cascade: keep the compact station hierarchy after the
   legacy roadmap rules that intentionally remain above this block. */
.student-shell #learning-path-card {
  overflow-x: clip;
}

.student-shell #learning-path-card .learning-map-overview {
  padding: 2px 4px 11px;
}

.student-shell #learning-path-card .learning-map-overview-title h4 {
  margin-top: 7px;
  font-size: clamp(1.55rem, 5.8vw, 2.15rem);
}

.student-shell #learning-path-card .learning-map-overview-title p {
  font-size: 0.9rem;
  line-height: 1.3;
}

.student-shell .learning-map-avatar {
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
}

.student-shell #learning-path-card .learning-map-stats {
  grid-template-columns: minmax(0, 1.25fr) minmax(62px, 0.75fr) minmax(112px, 1.2fr);
  gap: 12px;
  margin: 0 4px 12px;
  padding: 10px 12px;
  border-radius: 18px;
}

.student-shell .learning-map-stat-icon {
  display: none;
}

.student-shell .learning-map-stat {
  gap: 0;
}

.student-shell .learning-map-stat strong {
  font-size: 11px;
  line-height: 1.2;
}

.student-shell .learning-map-stat small {
  margin-top: 2px;
  font-size: 9px;
}

.student-shell #learning-path-card .learning-map-legend {
  gap: 6px 12px;
  margin: 0 4px 14px;
  font-size: 10px;
}

.student-shell #learning-path-card .learning-map-legend-item.completed,
.student-shell #learning-path-card .learning-map-legend-item.locked {
  display: none;
}

.student-shell #learning-path-card .learning-map-panel-heading {
  align-items: flex-start;
  margin: 0 4px 4px;
}

.student-shell #learning-path-card .learning-map-panel-intro {
  max-width: 26rem;
  margin-top: 4px;
  font-size: 12px;
}

.student-shell #learning-path-card .learning-map-panel-count {
  margin-top: 1px;
  padding: 6px 9px;
  font-size: 10px;
}

.student-shell #learning-path-card .learning-map-track {
  gap: 0;
  padding: 4px 0 34px;
}

.student-shell .learning-map-step,
.student-shell .learning-map-node {
  min-height: 154px;
}

.student-shell .learning-map-node {
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 8px;
}

.student-shell .learning-map-marker-wrap {
  width: 72px;
  height: 72px;
}

.student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
  transform: translateX(clamp(-34px, -5vw, -18px));
}

.student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
  transform: translateX(clamp(18px, 5vw, 34px));
}

.student-shell .learning-map-node-copy {
  max-width: 182px;
  min-width: 0;
  padding: 7px 8px;
  overflow: visible;
  overflow-wrap: anywhere;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-copy {
  justify-self: end;
}

.student-shell .learning-map-step.roadmap-right .learning-map-node-copy {
  justify-self: start;
}

.student-shell .learning-map-node-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.student-shell .learning-map-step.roadmap-left .learning-map-node-top {
  align-items: flex-end;
}

.student-shell .learning-map-node-top > span {
  max-width: 100%;
  overflow: visible;
  white-space: normal;
}

.student-shell .learning-map-node .learning-map-area {
  color: #66758f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.student-shell .learning-map-node .learning-map-kind {
  color: #2f4f83;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.student-shell .learning-map-node .path-node-label {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.22;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.student-shell .learning-map-step.active .learning-map-node-copy {
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid #c9c3ff;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff, #f8f6ff);
  box-shadow: 0 9px 20px rgba(78, 68, 181, 0.12);
}

.student-shell .learning-map-step.active .learning-map-node-action {
  display: inline-flex;
  margin-top: 7px;
  color: #5e43c8;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

.student-shell .learning-map-node-lock {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1;
}

.student-shell .learning-map-step.locked .learning-map-node-copy {
  opacity: 0.86;
}

.student-shell .learning-map-step.locked .learning-map-area,
.student-shell .learning-map-step.locked .learning-map-kind,
.student-shell .learning-map-step.locked .path-node-label {
  color: #8996aa;
}

.student-shell .learning-map-step.completed .learning-map-node-copy {
  color: #34745e;
}

.student-shell .student-bottom-nav {
  min-height: 70px;
}

.student-shell .bottom-nav-item {
  min-width: 0;
  padding-inline: 2px;
}

.student-shell .bottom-nav-label {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
}

@media (max-width: 700px) {
  .student-shell #learning-path-card .learning-map-stats {
    grid-template-columns: minmax(0, 1.15fr) minmax(52px, 0.75fr) minmax(106px, 1.2fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .student-shell .learning-map-node {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 4px;
  }

  .student-shell .learning-map-marker-wrap {
    width: 60px;
    height: 60px;
  }

  .student-shell .learning-map-step.roadmap-left .learning-map-marker-wrap {
    transform: translateX(clamp(-24px, -5vw, -16px));
  }

  .student-shell .learning-map-step.roadmap-right .learning-map-marker-wrap {
    transform: translateX(clamp(16px, 5vw, 24px));
  }

  .student-shell .learning-map-node-copy {
    max-width: 100%;
    padding-inline: 5px;
  }

  .student-shell .learning-map-node .learning-map-area {
    font-size: clamp(8px, 2.25vw, 10px);
  }

  .student-shell .learning-map-node .learning-map-kind {
    font-size: clamp(10px, 2.8vw, 11px);
  }

  .student-shell .learning-map-node .path-node-label {
    font-size: clamp(11px, 3.15vw, 14px);
  }
}

@media (max-width: 380px) {
  .student-shell #learning-path-card .learning-map-stats {
    gap: 5px;
    padding-inline: 8px;
  }

  .student-shell .learning-map-stat strong {
    font-size: 10px;
  }

  .student-shell .learning-map-stat small {
    font-size: 8px;
  }

  .student-shell .learning-map-node {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  }

  .student-shell .learning-map-marker-wrap {
    width: 54px;
    height: 54px;
  }

  .student-shell .learning-map-marker {
    width: 50px;
    height: 50px;
    font-size: 19px;
  }

  .student-shell .bottom-nav-label {
    font-size: 9px;
  }
}

/* Final v6 cascade: the legacy roadmap rules above must not hide the new
   compact current-step strip. */
.student-shell #learning-path-card > #learning-map-current {
  display: none !important;
}

/* Dark theme: keep the student shell readable while preserving its visual hierarchy. */
:root[data-theme="dark"] .student-shell {
  --student-ink: #e7eef9;
  --student-muted: #a6b4c8;
  --student-blue: #9bb7ff;
  --student-teal: #70dfc1;
  background: linear-gradient(135deg, #111b2b 0%, #17253b 58%, #12272a 100%);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background-color: var(--bg);
  color: var(--text);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  border-color: var(--border);
}

:root[data-theme="dark"] .student-shell .sidebar,
:root[data-theme="dark"] .student-shell .topbar {
  background: rgba(19, 29, 45, 0.96);
  border-color: #314158;
}

:root[data-theme="dark"] .student-shell .nav-item {
  color: var(--student-ink);
}

:root[data-theme="dark"] .student-shell .nav-item:hover {
  background: #233451;
}

:root[data-theme="dark"] .student-shell .nav-item.active {
  background: #2b416d;
}

:root[data-theme="dark"] .student-shell #today-card.supporting-task-card,
:root[data-theme="dark"] .student-shell #learning-path-card.learning-path-card,
:root[data-theme="dark"] .student-shell .training-home-card,
:root[data-theme="dark"] .student-shell .insight-panel,
:root[data-theme="dark"] .student-shell .card {
  border-color: #344663;
  background: #182235;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .student-shell #learning-path-card .learning-map-v6-summary,
:root[data-theme="dark"] .student-shell #learning-path-card .learning-map-v6-summary-item,
:root[data-theme="dark"] .student-shell #learning-path-card .learning-path-summary-item {
  background: #22314a;
}

.student-shell .training-activities-list {
  margin: 10px 0 20px;
}

.student-shell .training-activities-intro h3 {
  margin: 0 0 6px;
  color: var(--student-ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.student-shell .training-activities-intro p {
  margin: 0;
}

.student-shell .training-activities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.student-shell .training-activity-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.student-shell .training-activity-card h4 {
  margin: 0;
  color: var(--student-ink);
  font-size: 1.15rem;
}

.student-shell .training-activity-card p {
  flex: 1;
  margin: 0;
  color: var(--student-muted);
  line-height: 1.5;
}

.student-shell .training-activity-meta {
  color: var(--student-muted);
  font-size: 14px;
}

.student-shell .training-activity-card .btn {
  width: 100%;
  min-height: 44px;
}

:root[data-theme="dark"] .student-shell .training-activity-card {
  border-color: #344663;
  background: #182235;
}

@media (max-width: 600px) {
  .student-shell .training-activities-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] .student-shell #learning-path-card .learning-path-summary-item.is-common {
  background: #1d3a38;
}

:root[data-theme="dark"] .student-shell .bottom-nav-item:hover,
:root[data-theme="dark"] .student-shell .bottom-nav-item.active {
  background: var(--primary-soft);
}
