/* =============================================================================
   Nusadaya AI Skill Engine — component styles for the skill-engine pages
   (Home/Program/Journey/Profile inside the app shell, plus the full-screen
   Skill Discovery and Activity runners).

   Palette: the SAME white + blue design system as the rest of Nusadaya
   (css/base.css). The legacy coffee-palette token names below are kept as
   ALIASES so older inline styles keep working, but every value now resolves
   to the blue/ink system — there is one visual language in the product.
   ============================================================================= */

:root {
  /* aliases → blue/white system */
  --coffee-950: var(--navy-900);
  --coffee-900: var(--navy-800);
  --coffee-800: var(--navy-700);
  --coffee-700: var(--navy-600);
  --coffee-600: var(--blue-700);
  --espresso-500: var(--blue-600);
  --crema-400: var(--blue-600);
  --crema-300: var(--blue-500);
  --cream-50: var(--ink-50);
  --cream-100: var(--blue-50);
  --b-ink-900: var(--ink-900);
  --b-ink-600: var(--ink-700);
  --b-ink-400: var(--ink-500);
  --b-border: var(--border-default);
  --b-good: var(--green-600);
  --b-warn: var(--gold-600);
  --b-bad: var(--red-600);
  --b-shadow-card: var(--shadow-card);
  --b-shadow-pop: var(--shadow-pop);
}

.b-app { background: var(--bg-app); color: var(--ink-900); min-height: 100vh; }
.b-page { max-width: 1180px; margin: 0 auto; padding: 0 0 40px; }

/* ---------- Language toggle (shared: login, shell, runners) ---------- */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--ink-100); border: 1px solid var(--border-default); }
.lang-toggle__btn { border: none; background: transparent; color: var(--ink-500); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 10px; border-radius: var(--radius-pill); cursor: pointer; transition: all var(--dur-fast) var(--ease); }
.lang-toggle__btn.is-active { background: #fff; color: var(--blue-600); box-shadow: 0 1px 2px rgba(15,18,22,0.08); }
.lang-toggle__btn:hover:not(.is-active) { color: var(--ink-900); }

/* ---------- Buttons ---------- */
.b-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; font-family: var(--font-sans);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.b-btn:active { transform: scale(0.97); }
.b-btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(10,106,203,0.28); }
.b-btn-primary:hover { background: var(--blue-700); }
.b-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.b-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.b-btn-dark { background: var(--navy-800); color: #fff; }
.b-btn-dark:hover { background: var(--navy-700); }
.b-btn-outline { background: #fff; color: var(--ink-900); border: 1.5px solid var(--ink-200); }
.b-btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); }
.b-btn-block { width: 100%; justify-content: center; }
.b-btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------- Hero (Home) ---------- */
.b-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 300px;
  display: flex; align-items: flex-end; padding: 36px; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  box-shadow: var(--shadow-card);
}
.b-hero__bg { position: absolute; inset: 0; z-index: 0; }
.b-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.b-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,41,0.96) 0%, rgba(15,27,41,0.75) 50%, rgba(15,27,41,0.35) 100%); }
.b-hero__content { position: relative; z-index: 1; max-width: 620px; }
.b-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-400); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.b-hero__title { font-size: 34px; line-height: 1.12; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -0.01em; }
.b-hero__subtitle { font-size: 15px; color: #C9D6E6; line-height: 1.6; margin-bottom: 22px; max-width: 500px; }
.b-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section shell ---------- */
.b-section { margin-bottom: 26px; }
.b-section__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.b-section__header h2 { font-size: 17px; font-weight: 700; color: var(--ink-900); }
.b-section__header a { font-size: 14px; font-weight: 700; color: var(--blue-600); text-decoration: none; }
.b-section__header a:hover { text-decoration: underline; }

/* ---------- Continue Learning card ---------- */
.b-continue {
  display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 16px; box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.b-continue:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.b-continue__thumb { position: relative; width: 180px; flex-shrink: 0; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; }
.b-continue__thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-continue__play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.94); display: flex; align-items: center; justify-content: center; color: var(--blue-600); }
.b-continue__body { flex: 1; min-width: 0; }
.b-continue__eyebrow { font-size: 14px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.b-continue__title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.b-continue__meta { font-size: 14px; color: var(--ink-500); margin-bottom: 12px; }
.b-continue__track { height: 6px; border-radius: 3px; background: var(--ink-100); overflow: hidden; margin-bottom: 14px; max-width: 320px; }
.b-continue__fill { height: 100%; background: var(--blue-500); border-radius: 3px; }

/* ---------- Skill Journey strip (home) ---------- */
.b-journey-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.b-journey-node {
  flex: 0 0 auto; width: 118px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px;
  border-radius: var(--radius-lg); text-decoration: none; color: var(--ink-900); background: #fff; border: 1px solid var(--border-default);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.b-journey-node:hover { box-shadow: var(--shadow-card); }
.b-journey-node__icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.b-journey-node__icon.b-jn-active { background: var(--blue-50); color: var(--blue-600); }
.b-journey-node__icon.b-jn-locked { background: var(--ink-100); color: var(--ink-400); }
.b-journey-node__icon.b-jn-mastered { background: var(--green-100); color: var(--green-600); }
.b-journey-node__label { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.25; }
.b-journey-arrow { align-self: center; color: var(--ink-400); flex-shrink: 0; }

/* ---------- AI Recommends card ---------- */
.b-ai-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; box-shadow: var(--shadow-card);
}
.b-ai-card__icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(118,184,255,0.18); color: var(--blue-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-ai-card__eyebrow { font-size: 14px; font-weight: 700; color: var(--blue-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.b-ai-card__body { flex: 1; min-width: 0; }
.b-ai-card__text { font-size: 14.5px; line-height: 1.55; color: #D6E2F0; margin-bottom: 14px; }
.b-ai-card__text strong { color: #fff; }
.b-ai-card .b-btn-primary { box-shadow: none; }

/* ---------- Recent Performance chips ---------- */
.b-perf-row { display: flex; gap: 14px; }
.b-perf-chip { flex: 1; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-card); }
.b-perf-chip__label { font-size: 14px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.b-perf-chip__value { font-size: 24px; font-weight: 700; color: var(--ink-900); }
.b-perf-chip__value.is-up { color: var(--green-600); }
.b-perf-chip__sub { font-size: 14px; color: var(--ink-700); margin-top: 2px; }

/* ---------- Status badges ---------- */
.b-status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; flex-shrink: 0; }
.b-status--locked, .b-status--coming_soon { background: var(--ink-100); color: var(--ink-500); }
.b-status--available { background: var(--blue-50); color: var(--blue-700); }
.b-status--in_progress { background: var(--gold-100); color: var(--gold-600); }
.b-status--practicing { background: var(--gold-100); color: var(--gold-600); }
.b-status--needs_remediation { background: var(--red-100); color: var(--red-600); }
.b-status--competent { background: var(--green-100); color: var(--green-600); }
.b-status--mastered { background: var(--green-600); color: #fff; }

/* ---------- Journey page ---------- */
.b-journey-header { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 24px 26px; box-shadow: var(--shadow-card); margin-bottom: 24px; }
.b-journey-header__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.b-journey-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.b-journey-header__sub { font-size: 14.5px; color: var(--ink-700); margin-bottom: 16px; }
.b-journey-header__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.b-journey-header__meta-item { font-size: 14px; color: var(--ink-700); }
.b-journey-header__meta-item strong { color: var(--ink-900); font-weight: 700; }
.b-journey-header__track { height: 8px; border-radius: 4px; background: var(--ink-100); overflow: hidden; max-width: 420px; }
.b-journey-header__fill { height: 100%; border-radius: 4px; background: var(--blue-500); }
.b-journey-header__pct { font-size: 14px; font-weight: 700; color: var(--ink-700); margin-top: 8px; }

.b-skill-section { margin-bottom: 22px; }
.b-skill-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.b-skill-section__icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--blue-50) !important; color: var(--blue-600) !important; }
.b-skill-section__title { font-size: 15.5px; font-weight: 700; flex: 1; }
.b-skill-section__code { font-size: 14px; font-weight: 700; color: var(--ink-500); }

.b-episode-list { display: flex; flex-direction: column; gap: 10px; }
.b-episode-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border-default); text-decoration: none; color: inherit; box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.b-episode-card:not(.is-locked):hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.b-episode-card.is-locked { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.b-episode-card__num { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--blue-700); flex-shrink: 0; }
.b-episode-card__num.is-done { background: var(--green-600); color: #fff; }
.b-episode-card__body { flex: 1; min-width: 0; }
.b-episode-card__title { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.b-episode-card__meta { display: flex; gap: 10px; font-size: 14px; color: var(--ink-500); flex-wrap: wrap; }
.b-episode-card__meta span { display: flex; align-items: center; gap: 4px; }

/* ---------- Flow guide (the "where am I" strip shown on Home / Program) ---------- */
.b-flow { display: flex; align-items: stretch; gap: 8px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 14px 16px; box-shadow: var(--shadow-card); margin-bottom: 24px; overflow-x: auto; }
.b-flow__step { flex: 1 0 128px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink-700); }
.b-flow__step.is-done { color: var(--green-600); }
.b-flow__step.is-active { background: var(--blue-50); color: var(--blue-700); }
.b-flow__num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--ink-100); color: var(--ink-500); flex-shrink: 0; }
.b-flow__step.is-done .b-flow__num { background: var(--green-100); color: var(--green-600); }
.b-flow__step.is-active .b-flow__num { background: var(--blue-600); color: #fff; }
.b-flow__label { font-size: 14px; font-weight: 700; line-height: 1.2; }
.b-flow__sub { display: block; font-size: 14px; font-weight: 500; color: var(--ink-500); margin-top: 1px; }
.b-flow__arrow { align-self: center; color: var(--ink-200); flex-shrink: 0; }

/* ---------- ACTIVE LEARNING MODE — full-screen runner ---------- */
.b-runner { min-height: 100vh; background: var(--bg-app); color: var(--ink-900); display: flex; flex-direction: column; }
.b-runner__topbar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: 20; }
.b-runner__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-default); background: #fff; color: var(--ink-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.b-runner__close:hover { background: var(--ink-100); color: var(--ink-900); }
.b-runner__progress { flex: 1; display: flex; gap: 5px; }
.b-runner__progress-seg { flex: 1; height: 5px; border-radius: 3px; background: var(--ink-100); overflow: hidden; }
.b-runner__progress-seg > span { display: block; height: 100%; width: 0%; background: var(--blue-500); transition: width var(--dur-base) var(--ease); }
.b-runner__label { font-size: 14px; font-weight: 700; color: var(--ink-500); white-space: nowrap; }

.b-runner__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 20px 20px; }
.b-runner__stage-inner { width: 100%; max-width: 760px; }
.b-runner__eyebrow { display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; text-align: center; }
.b-runner__title { font-size: 25px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--ink-900); }
.b-runner__instruction { font-size: 14.5px; line-height: 1.6; text-align: center; color: var(--ink-700); margin-bottom: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }

.b-runner__ctabar { padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--border-default); position: sticky; bottom: 0; z-index: 20; }
.b-runner__ctabar .b-btn { min-width: 220px; justify-content: center; }

/* ---------- Video ---------- */
.b-video-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow-pop); }
.b-video-wrap iframe, .b-video-wrap img, .b-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; border: none; }
.b-video-wrap__poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.b-video-wrap__poster img { position: absolute; inset: 0; }
.b-video-wrap__poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.b-video-wrap__play { position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,0.94); display: flex; align-items: center; justify-content: center; color: var(--blue-600); }

/* ---------- Quiz-select ---------- */
.b-quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-quiz-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius-lg);
  background: #fff; border: 1.5px solid var(--border-default); cursor: pointer; box-shadow: var(--shadow-card);
  transition: all var(--dur-fast) var(--ease); text-align: center; color: var(--ink-900);
}
.b-quiz-chip:hover { border-color: var(--blue-400); }
.b-quiz-chip__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; color: var(--blue-600); }
.b-quiz-chip__label { font-size: 14px; font-weight: 600; line-height: 1.25; }
.b-quiz-chip.is-selected { border-color: var(--blue-600); background: var(--blue-50); }
.b-quiz-chip.is-selected .b-quiz-chip__icon { background: var(--blue-600); color: #fff; }
.b-quiz-chip.is-correct { border-color: var(--green-600); background: var(--green-100); }
.b-quiz-chip.is-correct .b-quiz-chip__icon { background: var(--green-600); color: #fff; }
.b-quiz-chip.is-wrong { border-color: var(--red-600); background: var(--red-100); }
.b-quiz-chip.is-wrong .b-quiz-chip__icon { background: var(--red-600); color: #fff; }
.b-quiz-feedback { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-700); }

/* ---------- Microlearning ---------- */
.b-micro-steps { display: flex; flex-direction: column; gap: 10px; }
.b-micro-step { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-card); }
.b-micro-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-micro-step__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-micro-step__body strong { display: block; font-size: 14px; margin-bottom: 2px; }
.b-micro-step__body p { font-size: 14px; color: var(--ink-700); line-height: 1.4; }

/* ---------- 360 Inspection ---------- */
.b-inspect { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-pop); background: #000; }
.b-inspect__viewer { position: absolute; inset: 0; }
.b-inspect__counter { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(15,27,41,0.72); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); }
.b-inspect-hotspot { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.94); border: 2px solid var(--blue-500); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.4); animation: b-pulse 2s ease-in-out infinite; }
.b-inspect-hotspot.is-answered { background: var(--green-600); border-color: var(--green-600); animation: none; }
.b-inspect-hotspot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); }
.b-inspect-hotspot.is-answered .b-inspect-hotspot__dot { background: #fff; }
@keyframes b-pulse { 0%,100% { box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 0 rgba(12,133,254,0.55); } 50% { box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 9px rgba(12,133,254,0); } }
.b-inspect-count { font-size: 14px; font-weight: 700; color: var(--ink-500); background: var(--ink-50); padding: 4px 10px; border-radius: var(--radius-pill); }
.b-inspect-list { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.b-inspect-row { border: 1.5px solid var(--border-default); border-radius: var(--radius-md); background: #fff; transition: border-color var(--dur-fast) var(--ease); }
.b-inspect-row.is-expanded { border-color: var(--blue-400); }
.b-inspect-row.is-correct { border-color: var(--green-100); background: var(--green-100); }
.b-inspect-row.is-wrong { border-color: var(--red-100); background: var(--red-100); }
.b-inspect-row__head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.b-inspect-row__num { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-inspect-row.is-correct .b-inspect-row__num { background: var(--green-600); color: #fff; }
.b-inspect-row.is-wrong .b-inspect-row__num { background: var(--red-600); color: #fff; }
.b-inspect-row__label { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.b-inspect-row__actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.b-inspect-row__actions button { flex: 1; padding: 9px; border-radius: var(--radius-md); border: 1.5px solid var(--ink-200); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); }
.b-inspect-row__actions button.b-flag-issue { border-color: var(--red-600); color: var(--red-600); }
.b-inspect-row__actions button.b-flag-ok { border-color: var(--green-600); color: var(--green-600); }
.b-inspect-row__result { font-size: 14px; line-height: 1.5; padding: 0 12px 11px; margin-top: -2px; }
.b-inspect-row.is-correct .b-inspect-row__result { color: var(--green-600); }
.b-inspect-row.is-wrong .b-inspect-row__result { color: var(--red-600); }

/* ---------- 3D Simulation ---------- */
.b-sim3d { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.b-sim3d__canvas { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-pop); background: #14100d; }
.b-sim3d__hint { position: absolute; top: 12px; left: 12px; z-index: 4; background: rgba(15,27,41,0.72); color: #fff; font-size: 14px; padding: 6px 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 5px; }
.b-sim3d__progress { position: absolute; top: 12px; right: 12px; z-index: 4; background: rgba(15,27,41,0.72); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); }
.b-sim3d__tray { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.b-sim3d-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 86px; padding: 10px 6px;
  border-radius: var(--radius-lg); background: #fff; border: 1.5px solid var(--border-default); cursor: grab; box-shadow: var(--shadow-card); color: var(--ink-900);
}
.b-sim3d-chip:hover { border-color: var(--blue-400); }
.b-sim3d-chip.is-placed { opacity: 0.4; cursor: default; pointer-events: none; }
.b-sim3d-chip.is-selected { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100), var(--shadow-card); }
.b-sim3d-chip__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; }
.b-sim3d-chip__label { font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.b-sim3d__toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 30; background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); transition: all var(--dur-base) var(--ease); }
.b-sim3d__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.b-sim3d__toast.is-wrong { background: var(--red-600); }

.b-sim3d-intro { text-align: center; padding: 10px 0 4px; }
.b-sim3d-intro__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-600); background: var(--gold-100); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.b-sim3d-intro__ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); color: #fff; box-shadow: var(--shadow-pop); animation: b-pulse 2.2s ease-in-out infinite; }
.b-sim3d-intro__meta { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink-700); }
.b-sim3d-intro__meta span { display: inline-flex; align-items: center; gap: 6px; }

.b-runner__group-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: var(--radius-pill); margin-right: 8px; vertical-align: middle; }
.b-runner__group-pill.is-materi { background: var(--gold-100); color: var(--gold-600); }
.b-runner__group-pill.is-praktik { background: var(--blue-50); color: var(--blue-600); }
.b-runner__progress-seg.is-materi > span { background: var(--gold-500); }
.b-runner__progress-seg.is-praktik > span { background: var(--blue-500); }

.b-runner__transition-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.b-runner__transition-ico.materi { background: var(--gold-100); color: var(--gold-600); }
.b-runner__transition-ico.praktik { background: var(--blue-50); color: var(--blue-600); }

/* ---------- Evaluation ---------- */
.b-eval-verdict { text-align: center; margin-bottom: 20px; }
.b-eval-verdict__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.b-eval-verdict__badge.v-ready { background: var(--green-100); color: var(--green-600); }
.b-eval-verdict__badge.v-almost { background: var(--gold-100); color: var(--gold-600); }
.b-eval-verdict__badge.v-practice { background: var(--red-100); color: var(--red-600); }
.b-eval-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.b-eval-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border-default); box-shadow: var(--shadow-card); }
.b-eval-row__icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.b-eval-row__icon.is-good { background: var(--green-100); color: var(--green-600); }
.b-eval-row__icon.is-warn { background: var(--gold-100); color: var(--gold-600); }
.b-eval-row__label { flex: 1; font-size: 14px; font-weight: 600; }
.b-eval-row__status { font-size: 14px; font-weight: 700; color: var(--ink-500); }
.b-eval-feedback { background: var(--blue-50); border-radius: var(--radius-lg); padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-900); margin-bottom: 4px; }

/* ---------- AI recommendation card (in-runner) ---------- */
.b-recommend-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--blue-100); border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 18px; box-shadow: var(--shadow-card); }
.b-recommend-card__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-recommend-card__eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); margin-bottom: 4px; }
.b-recommend-card__title { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }

/* ---------- Mastery ---------- */
.b-mastery-grid { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.b-mastery-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border-default); box-shadow: var(--shadow-card); }
.b-mastery-row__label { font-size: 14px; font-weight: 600; }

/* =============================================================================
   AI Skill Discovery — full-screen, light
   ============================================================================= */
.b-disc { min-height: 100vh; background: var(--bg-app); color: var(--ink-900); display: flex; flex-direction: column; }
.b-disc__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: 20; }
.b-disc__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.b-disc__brand img { height: 26px; }
.b-disc__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.b-disc__brand-text strong { font-size: 14px; color: var(--ink-900); }
.b-disc__brand-text span { font-size: 13px; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.06em; }

.b-disc-stepper { display: flex; align-items: center; gap: 6px; }
.b-disc-stepper__node { display: flex; align-items: center; gap: 6px; }
.b-disc-stepper__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-100); border: 1.5px solid var(--ink-200); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink-500); }
.b-disc-stepper__label { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.b-disc-stepper__node.is-active .b-disc-stepper__dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.b-disc-stepper__node.is-active .b-disc-stepper__label { color: var(--ink-900); }
.b-disc-stepper__node.is-done .b-disc-stepper__dot { background: var(--green-100); border-color: var(--green-600); color: var(--green-600); }
.b-disc-stepper__line { width: 26px; height: 1px; background: var(--ink-200); }

.b-disc__stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.b-disc__stage-inner { width: 100%; max-width: 680px; }
.b-disc__qcount { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-500); letter-spacing: 0.04em; margin-bottom: 10px; }
.b-disc__eyebrow { text-align: center; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.b-disc__title { text-align: center; font-size: 25px; font-weight: 700; margin-bottom: 8px; line-height: 1.25; color: var(--ink-900); }
.b-disc__instruction { text-align: center; font-size: 14px; color: var(--ink-700); margin-bottom: 24px; }
.b-disc__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px)); max-width: 680px; margin: 0 auto; width: 100%; }

.b-disc-intro { text-align: center; }
.b-disc-intro__meta { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; margin: 22px auto; }
.b-disc-intro__meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); }
.b-disc-intro__meta-item .b-disc-ico, .b-disc-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; color: var(--blue-600); flex-shrink: 0; }

.b-disc-options { display: flex; flex-direction: column; gap: 10px; }
.b-disc-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px;
  border-radius: var(--radius-lg); background: #fff; border: 1.5px solid var(--border-default); box-shadow: var(--shadow-card);
  cursor: pointer; font-size: 14.5px; font-weight: 600; text-align: left; color: var(--ink-900); font-family: var(--font-sans);
}
.b-disc-option:hover { border-color: var(--blue-400); }
.b-disc-option.is-selected { border-color: var(--blue-600); background: var(--blue-50); }
.b-disc-option.is-correct { border-color: var(--green-600); background: var(--green-100); }
.b-disc-option.is-wrong { border-color: var(--red-600); background: var(--red-100); }
.b-disc-option__check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-200); flex-shrink: 0; }
.b-disc-option.is-correct .b-disc-option__check, .b-disc-option.is-selected .b-disc-option__check { background: var(--blue-600); border-color: var(--blue-600); }
.b-disc-option.is-correct .b-disc-option__check { background: var(--green-600); border-color: var(--green-600); }

.b-disc-mcq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.b-disc-mcq-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--radius-lg);
  background: #fff; border: 1.5px solid var(--border-default); cursor: pointer; text-align: left; box-shadow: var(--shadow-card); color: var(--ink-900); font-family: var(--font-sans);
}
.b-disc-mcq-card:hover { border-color: var(--blue-400); }
.b-disc-mcq-card__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.b-disc-mcq-card__label { font-size: 14px; font-weight: 700; }
.b-disc-mcq-card__sub { font-size: 14px; color: var(--ink-500); line-height: 1.3; }
.b-disc-mcq-card.is-correct { border-color: var(--green-600); background: var(--green-100); }
.b-disc-mcq-card.is-wrong { border-color: var(--red-600); background: var(--red-100); }
.b-disc-mcq-card.is-dim { opacity: 0.5; }

.b-disc-scenario { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.b-disc-scenario__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.b-disc-scenario__bubble { background: var(--blue-50); border-radius: 14px 14px 14px 3px; padding: 12px 14px; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--ink-900); }

.b-disc-2d { position: relative; width: 100%; aspect-ratio: 16/9.2; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-pop); background-size: cover; background-position: center; margin-bottom: 14px; }
.b-disc-2d__zone { position: absolute; border: 2px dashed rgba(255,255,255,0.6); border-radius: 10px; background: rgba(12,133,254,0.12); cursor: pointer; }
.b-disc-2d__zone.is-hover { background: rgba(12,133,254,0.35); border-color: #fff; }
.b-disc-2d__zone.is-filled { border-style: solid; border-color: var(--green-500); background: rgba(34,197,94,0.22); }
.b-disc-tray { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }

.b-disc-result__head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.b-disc-donut { position: relative; width: 128px; height: 128px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.b-disc-donut::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.b-disc-donut__label { position: relative; z-index: 1; text-align: center; max-width: 72%; }
.b-disc-donut__pct { font-size: 24px; font-weight: 700; display: block; color: var(--ink-900); }
.b-disc-donut__tier { font-size: 14px; line-height: 1.25; color: var(--ink-700); text-transform: uppercase; letter-spacing: 0.02em; display: block; margin-top: 3px; overflow-wrap: break-word; }
.b-disc-result__title { font-size: 14px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }

.b-disc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 20px; }
.b-disc-list { display: flex; flex-direction: column; gap: 9px; }
.b-disc-list__item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-900); }
.b-disc-list__item svg { flex-shrink: 0; }
.b-disc-list__item.is-good { color: var(--green-600); }
.b-disc-list__item.is-warn { color: var(--gold-600); }

.b-disc-coach { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow-card); }
.b-disc-coach__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-disc-coach__eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-400); margin-bottom: 5px; }
.b-disc-coach__text { font-size: 14px; line-height: 1.55; color: #D6E2F0; }
.b-disc-coach__text strong { color: #fff; }

/* ---------- Program (course) pages ---------- */
.b-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.b-role-card {
  display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-xl); overflow: hidden;
  background: #fff; border: 1px solid var(--border-default); box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.b-role-card.is-available:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.b-role-card.is-current { border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.b-role-card.is-disabled { opacity: 0.75; }
.b-role-card__thumb { position: relative; aspect-ratio: 16/9; background: var(--navy-800); }
.b-role-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-role-card__thumb .b-role-card__badge { position: absolute; top: 12px; left: 12px; }
.b-role-card__body { display: flex; flex-direction: column; gap: 8px; padding: 4px 18px 18px; flex: 1; }
.b-role-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-role-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: -30px; border: 3px solid #fff; box-shadow: var(--shadow-card); background: #fff; }
.b-role-card__badge { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: var(--radius-pill); }
.b-role-card__badge--available { background: var(--green-100); color: var(--green-600); }
.b-role-card__badge--coming { background: var(--ink-100); color: var(--ink-500); }
.b-role-card__badge--current { background: var(--blue-600); color: #fff; }
.b-role-card__title { font-size: 18px; font-weight: 700; }
.b-role-card__tagline { font-size: 14px; color: var(--ink-700); line-height: 1.45; }
.b-role-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-500); }
.b-role-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.b-role-chip { background: var(--blue-50); color: var(--blue-700); padding: 2px 9px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; }
.b-role-card__skills { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.b-role-card__skills li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-700); }
.b-role-card__skills li svg { flex-shrink: 0; color: var(--blue-500); }
.b-role-card.is-disabled .b-role-card__skills li svg { color: var(--ink-400); }
.b-role-card__cta { margin-top: 10px; }
.b-role-card__progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-700); }
.b-role-card__progress .b-continue__track { flex: 1; margin: 0; }

/* Program detail */
.b-program-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 28px; color: #fff; background: var(--navy-800); box-shadow: var(--shadow-card); margin-bottom: 20px; }
.b-program-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.b-program-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,27,41,0.95) 0%, rgba(15,27,41,0.4) 60%, rgba(15,27,41,0.1) 100%); }
.b-program-hero__content { position: relative; z-index: 1; max-width: 640px; }
.b-program-hero__content h1 { font-size: 30px; font-weight: 700; color: #fff; margin: 8px 0 8px; }
.b-program-hero__content p { color: #C9D6E6; font-size: 14.5px; line-height: 1.6; }
.b-program-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.b-program-side { position: sticky; top: calc(var(--header-height) + 16px); }
.b-step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.b-step-list li { display: flex; gap: 12px; align-items: flex-start; }
.b-step-list__num { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-step-list strong { display: block; font-size: 14px; }
.b-step-list span { font-size: 14px; color: var(--ink-700); line-height: 1.45; }

/* ---------- Profile ---------- */
.b-profile-head { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 22px 24px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.b-profile-head__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.b-profile-head__body { flex: 1; min-width: 0; }
.b-profile-head__name { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.b-profile-head__email { font-size: 14px; color: var(--ink-500); margin-bottom: 10px; }
.b-profile-head__role { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-900); background: var(--blue-50); padding: 6px 12px 6px 6px; border-radius: var(--radius-pill); }
.b-profile-head__role a { font-weight: 700; color: var(--blue-600); text-decoration: none; margin-left: 4px; }
.b-profile-head__role a:hover { text-decoration: underline; }
.b-nav__role-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.b-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.b-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px 22px; box-shadow: var(--shadow-card); }
.b-card__title { font-size: 14px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.b-card__subtitle { font-size: 14px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.b-card__empty { font-size: 14px; line-height: 1.55; color: var(--ink-700); margin-bottom: 12px; }
.b-card--danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #F3D4D4; }
.b-card--danger .b-card__empty { margin-bottom: 0; }
.b-btn-danger { background: var(--red-100); color: var(--red-600); flex-shrink: 0; }
.b-btn-danger:hover { background: #F8D2D2; }

.b-profile-readiness { display: flex; align-items: center; gap: 20px; }
.b-profile-readiness__text { font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.b-disc-donut--light::before { background: #fff; }
.b-disc-cols--light .b-disc-list__item { color: var(--ink-900); }
.b-disc-cols--light .b-disc-list__item.is-good { color: var(--green-600); }
.b-disc-cols--light .b-disc-list__item.is-warn { color: var(--gold-600); }

.b-skill-list { display: flex; flex-direction: column; gap: 6px; }
.b-skill-list__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: background var(--dur-fast) var(--ease); }
.b-skill-list__item:hover { background: var(--ink-50); }
.b-skill-list__icon { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-skill-list__label { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; }

.b-attempt-list { display: flex; flex-direction: column; gap: 8px; }
.b-attempt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.b-attempt__score { width: 48px; font-size: 16px; font-weight: 700; color: var(--ink-900); flex-shrink: 0; }
.b-attempt__body { flex: 1; min-width: 0; }
.b-attempt__title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-attempt__meta { font-size: 14px; color: var(--ink-500); }
.b-eval-verdict__badge--sm { font-size: 14px; padding: 4px 10px; margin-bottom: 0; }

/* ---------- Motion ---------- */
.b-fade-in { animation: b-fade-in 320ms var(--ease) both; }
@keyframes b-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .b-page { padding: 0 0 24px; }
  .b-hero { padding: 24px 20px; min-height: 260px; }
  .b-hero__title { font-size: 26px; }
  .b-continue { flex-direction: column; align-items: stretch; }
  .b-continue__thumb { width: 100%; }
  .b-perf-row { flex-direction: column; }
  .b-quiz-grid { grid-template-columns: repeat(2, 1fr); }
  .b-runner__title { font-size: 21px; }
  .b-eval-row__status { display: none; }
  .b-disc__header { padding: 12px 16px; }
  .b-disc-stepper__label { display: none; }
  .b-disc__title { font-size: 20px; }
  .b-disc-mcq-grid { grid-template-columns: 1fr; }
  .b-disc-cols { grid-template-columns: 1fr; gap: 14px; }
  .b-disc-result__head { justify-content: center; text-align: center; }
  .b-role-grid { grid-template-columns: 1fr; }
  .b-program-grid { grid-template-columns: 1fr; }
  .b-program-side { position: static; }
  .b-profile-grid { grid-template-columns: 1fr; }
  .b-profile-head { flex-direction: column; align-items: flex-start; }
  .b-profile-readiness { flex-direction: column; align-items: flex-start; }
  .b-card--danger { flex-direction: column; align-items: flex-start; }
  .b-flow { padding: 10px 12px; }
  .b-flow__step { flex-basis: 112px; }
  .b-flow__sub { display: none; }
}

/* ---------- Shell additions (sidebar current-program block, topbar lang) ---------- */
.sidebar__program { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-lg); background: #fff; color: var(--ink-900); text-decoration: none; margin-top: 2px; box-shadow: var(--shadow-card); }
.sidebar__program:hover { box-shadow: 0 0 0 1px var(--blue-100), 0 4px 18px -8px rgba(0,68,192,0.35); }
.sidebar__program-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar__program-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidebar__program-body strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__program-body span { font-size: 14px; color: var(--ink-500); }
.topbar__lang { margin-right: 4px; }
@media (max-width: 860px) { .topbar__lang { display: none; } }

/* =============================================================================
   v3 — guided-flow components (Home, Programs, Journey). White surface, blue
   accent, one dominant action per screen, vertical timeline for the flow.
   ============================================================================= */
.g-page { max-width: 1120px; margin: 0 auto; }
.g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.g-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.g-head p { font-size: 14px; color: var(--ink-500); margin-top: 4px; }
.g-head__pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border-default); font-size: 14px; font-weight: 700; color: var(--ink-900); box-shadow: var(--shadow-card); text-decoration: none; }
.g-head__pill .b-nav__role-icon { width: 26px; height: 26px; }
.g-head__pill small { font-weight: 600; color: var(--ink-500); }

.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.g-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.g-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-card); }
.g-card__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; }
.g-card__title a { font-size: 14px; font-weight: 700; color: var(--blue-600); text-decoration: none; }
.g-card__title a:hover { text-decoration: underline; }
.g-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); }

/* Next step (the one dominant action) */
.ne { position: relative; overflow: hidden; background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%); border: 1px solid var(--blue-100); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; }
.ne::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(12,133,254,0.14), rgba(12,133,254,0)); pointer-events: none; }
.ne__body { position: relative; min-width: 0; }
.ne__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); margin: 10px 0 6px; line-height: 1.2; }
.ne__desc { font-size: 14px; color: var(--ink-700); line-height: 1.55; max-width: 560px; }
.ne__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.ne__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border-default); font-size: 14px; font-weight: 600; color: var(--ink-700); }
.ne__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ne__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 0; padding-bottom: 75%; background: var(--navy-800); box-shadow: var(--shadow-card); }
.ne__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ne__visual-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(15,27,41,0.78); color: #fff; font-size: 14px; font-weight: 700; }
.ne__steps { display: flex; gap: 5px; margin-top: 8px; }
.ne__steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--ink-100); }
.ne__steps span.is-done { background: var(--green-500); }
.ne__steps span.is-now { background: var(--blue-500); }

/* Vertical flow timeline */
.tl { display: flex; flex-direction: column; }
.tl__item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--ink-100); }
.tl__item:last-child::before { display: none; }
.tl__item.is-done::before { background: var(--green-100); }
.tl__num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--ink-100); color: var(--ink-500); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink-200); position: relative; z-index: 1; }
.tl__item.is-done .tl__num { background: var(--green-600); color: #fff; box-shadow: 0 0 0 1px var(--green-600); }
.tl__item.is-active .tl__num { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.tl__title { font-size: 14.5px; font-weight: 700; color: var(--ink-900); line-height: 34px; }
.tl__item.is-upcoming .tl__title { color: var(--ink-500); }
.tl__desc { font-size: 14px; color: var(--ink-500); line-height: 1.5; margin-top: -8px; }
.tl__item.is-active .tl__desc { color: var(--ink-700); }
.tl__action { align-self: center; }
.tl__tag { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--blue-50); color: var(--blue-700); margin-left: 8px; vertical-align: middle; }
.tl__item.is-done .tl__tag { background: var(--green-100); color: var(--green-600); }
.b-btn-sm { padding: 8px 14px; font-size: 14px; }

/* Readiness card */
.rd { text-align: center; }
.rd__ring { display: flex; justify-content: center; margin: 4px 0 10px; }
.rd .ring-progress__value { font-size: 24px; font-weight: 700; color: var(--ink-900); }
.rd__tier { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.rd__label { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.rd__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; text-align: left; }
.rd__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--ink-50); font-size: 14px; color: var(--ink-700); }
.rd__row strong { color: var(--ink-900); font-weight: 700; }
.rd__row span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* AI coach (light) */
.coach { background: linear-gradient(135deg, #EFF6FF, #FFFFFF); border: 1px solid var(--blue-100); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-card); }
.coach__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.coach__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coach__name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.coach__name small { display: block; font-weight: 600; color: var(--ink-500); font-size: 14px; }
.coach__text { font-size: 14px; line-height: 1.6; color: var(--ink-700); margin-bottom: 14px; }
.coach__text strong { color: var(--ink-900); }

/* Skill areas grid */
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-default); text-decoration: none; color: inherit; transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.sk:hover { box-shadow: var(--shadow-card); border-color: var(--blue-100); }
.sk.is-locked, .sk.is-coming { opacity: 0.65; }
.sk__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk.is-mastered .sk__icon { background: var(--green-100); color: var(--green-600); }
.sk.is-locked .sk__icon { background: var(--ink-100); color: var(--ink-400); }
.sk__body { flex: 1; min-width: 0; }
.sk__title { display: block; font-size: 14px; font-weight: 700; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk__meta { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.sk__bar { height: 4px; border-radius: 2px; background: var(--ink-100); margin-top: 7px; overflow: hidden; }
.sk__bar span { display: block; height: 100%; background: var(--blue-500); }
.sk.is-mastered .sk__bar span { background: var(--green-500); }

/* Program cards v3 */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.pc.is-current { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.pc__thumb { position: relative; height: 0; padding-bottom: 56.25%; background: var(--navy-800); overflow: hidden; }
.pc__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc.is-soon .pc__thumb img { filter: saturate(0.6); opacity: 0.8; }
.pc__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255,255,255,0.94); color: var(--green-600); box-shadow: var(--shadow-card); }
.pc.is-soon .pc__badge { color: var(--ink-500); }
.pc.is-current .pc__badge { background: var(--blue-600); color: #fff; }
.pc__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc__title { font-size: 18px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 10px; }
.pc__title .sk__icon { width: 32px; height: 32px; border-radius: 9px; }
.pc__tag { font-size: 14px; color: var(--ink-700); line-height: 1.5; }
.pc__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-500); }
.pc__meta span { display: inline-flex; align-items: center; gap: 5px; }
.pc__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pc__skills span { font-size: 14px; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--ink-50); color: var(--ink-700); }
.pc__progress { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-700); }
.pc__progress .sk__bar { flex: 1; margin: 0; }
.pc__cta { margin-top: auto; padding-top: 8px; }

/* Program intro band */
.pi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 16px; box-shadow: var(--shadow-card); margin-bottom: 22px; }
.pi__step { display: flex; gap: 12px; align-items: flex-start; padding: 6px; }
.pi__step strong { display: block; font-size: 14px; color: var(--ink-900); }
.pi__step span { font-size: 14px; color: var(--ink-500); line-height: 1.45; }
.pi__step .pi__num { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Journey episodes timeline */
.ep-list { display: flex; flex-direction: column; }
.ep { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 16px; }
.ep:last-child { padding-bottom: 0; }
.ep::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--ink-100); }
.ep:last-child::before { display: none; }
.ep__num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--ink-200); color: var(--ink-500); position: relative; z-index: 1; }
.ep.is-done .ep__num { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.ep.is-now .ep__num { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.ep__card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-card); }
.ep.is-now .ep__card { border-color: var(--blue-100); background: linear-gradient(135deg, #fff, #F5F9FF); }
.ep.is-locked .ep__card { opacity: 0.7; box-shadow: none; }
.ep__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ep__title { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.ep__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--ink-500); margin-top: 4px; }
.ep__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ep__here { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-700); background: var(--blue-50); padding: 4px 9px; border-radius: var(--radius-pill); }
.ep__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ep__act { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--radius-pill); background: var(--ink-50); border: 1px solid var(--border-default); font-size: 14px; font-weight: 700; color: var(--ink-700); text-decoration: none; }
.ep__act.is-done { background: var(--green-100); border-color: var(--green-100); color: var(--green-600); }
.ep__act.is-now { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.ep__act.is-next { background: #fff; }
.ep__act.is-locked { opacity: 0.6; pointer-events: none; }
.ep__act-num { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.06); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ep__act.is-now .ep__act-num { background: rgba(255,255,255,0.25); }
.ep__cta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Program detail hero (white) */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.pd-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 8px; color: var(--ink-900); }
.pd-hero p { font-size: 14.5px; color: var(--ink-700); line-height: 1.6; }
.pd-hero__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 0; padding-bottom: 62.5%; background: var(--navy-800); }
.pd-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 960px) {
  .g-grid { grid-template-columns: 1fr; }
  .pi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-hero__img { order: -1; padding-bottom: 56.25%; }
}
@media (max-width: 640px) {
  .g-head h1 { font-size: 22px; }
  .g-card { padding: 16px; border-radius: var(--radius-lg); }
  .ne { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .ne__visual { order: -1; padding-bottom: 56.25%; }
  .ne__title { font-size: 20px; }
  .ne__actions { flex-direction: column; }
  .ne__actions .b-btn { width: 100%; justify-content: center; }
  .g-head__pill { font-size: 14px; }
  .tl__item { grid-template-columns: 30px minmax(0, 1fr); }
  .tl__item::before { left: 14px; }
  .tl__num { width: 30px; height: 30px; font-size: 14px; }
  .tl__title { line-height: 30px; font-size: 14px; }
  .tl__action { grid-column: 2; }
  .sk-grid { grid-template-columns: 1fr; }
  .pi { grid-template-columns: 1fr; padding: 12px; gap: 4px; }
  .pc-grid { grid-template-columns: 1fr; }
  .ep { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .ep::before { left: 15px; top: 32px; }
  .ep__num { width: 32px; height: 32px; font-size: 14px; }
  .ep__card { padding: 12px; }
  .pd-hero { padding: 16px; }
  .pd-hero h1 { font-size: 22px; }
}

/* ---------- quiz-mcq / sequence / scenario ---------- */
.b-mcq__question { font-size: 17px; font-weight: 700; color: var(--ink-900); line-height: 1.4; margin-bottom: 14px; text-align: center; }
.b-disc-option:disabled { cursor: default; }
.b-seq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.b-seq__pool { display: flex; flex-direction: column; gap: 8px; }
.b-seq__chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius-md); background: #fff; border: 1.5px solid var(--border-default); font-size: 14px; font-weight: 600; color: var(--ink-900); text-align: left; cursor: pointer; font-family: var(--font-sans); box-shadow: var(--shadow-card); }
.b-seq__chip:hover { border-color: var(--blue-500); }
.b-seq__chip svg { color: var(--blue-600); flex-shrink: 0; }
.b-seq__order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.b-seq__row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-md); background: var(--blue-50); border: 1.5px solid var(--blue-100); font-size: 14px; font-weight: 600; color: var(--ink-900); }
.b-seq__row svg { color: var(--blue-600); flex-shrink: 0; }
.b-seq__label { flex: 1; min-width: 0; }
.b-seq__undo { border: none; background: #fff; color: var(--ink-500); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.b-seq__undo:hover { color: var(--red-600); }
.b-seq__empty { font-size: 14px; color: var(--ink-500); padding: 12px; border: 1.5px dashed var(--ink-200); border-radius: var(--radius-md); text-align: center; }
.b-seq__count { font-weight: 700; color: var(--blue-600); margin-left: 6px; }
.b-chat { display: flex; flex-direction: column; gap: 10px; }
.b-chat__row { display: flex; gap: 10px; align-items: flex-end; }
.b-chat__row.is-me { justify-content: flex-end; }
.b-chat__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b-chat__bubble { max-width: 78%; background: #fff; border: 1px solid var(--border-default); border-radius: 16px 16px 16px 4px; padding: 11px 14px; font-size: 14px; line-height: 1.5; color: var(--ink-900); box-shadow: var(--shadow-card); }
.b-chat__bubble.is-me { background: var(--blue-600); color: #fff; border-color: var(--blue-600); border-radius: 16px 16px 4px 16px; }
.b-chat__options { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.b-runner__ctabar { gap: 10px; flex-wrap: wrap; }

/* Discovery — chatbot-style skill check (Fase 1) */
.b-disc-progress { width: 220px; height: 5px; border-radius: 3px; background: var(--ink-100); overflow: hidden; }
.b-disc-progress__fill { display: block; height: 100%; background: var(--blue-600); border-radius: 3px; transition: width 320ms var(--ease); }
.b-disc__chat-scroll { flex: 1; overflow-y: auto; padding: 22px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin: 0 auto; width: 100%; scroll-behavior: smooth; }
.b-chat__row.is-wide { max-width: 100%; }
.b-chat__bubble--quote { background: var(--blue-50); border-color: var(--blue-100); font-style: italic; margin-top: -2px; }
.b-chat__widget { max-width: 100%; width: 100%; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-card); }
.b-chat__cta-row { display: flex; justify-content: center; padding: 4px 0 2px; }
.b-chat__typing { display: flex; align-items: center; gap: 4px; padding: 14px 16px; }
.b-chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); animation: b-chat-typing 1.1s infinite ease-in-out; }
.b-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.b-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes b-chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 640px) {
  .b-seq { grid-template-columns: 1fr; }
  .b-chat__bubble { max-width: 90%; }
  .b-runner__ctabar .b-btn { min-width: 0; flex: 1; }
  .b-disc-progress { width: 96px; }
}

/* ---------- certificate ---------- */
.cert { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-radius: var(--radius-xl); padding: 8px; box-shadow: var(--shadow-pop); }
.cert__inner { border: 1.5px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 28px 30px; color: #fff; text-align: center; }
.cert__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 14px; }
.cert__brand img { height: 20px; }
.cert__title { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #C9D6E6; }
.cert__sub { font-size: 14px; color: #9FB3CC; margin-top: 14px; }
.cert__name { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 10px; }
.cert__for { font-size: 14px; color: #D6E2F0; max-width: 520px; margin: 0 auto; line-height: 1.55; }
.cert__meta { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.cert__meta div { display: flex; flex-direction: column; gap: 3px; }
.cert__meta span { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: #9FB3CC; }
.cert__meta strong { font-size: 14px; }
@media (max-width: 640px) { .cert__inner { padding: 20px 16px; } .cert__name { font-size: 24px; } }

/* ---------- Skill Passport ---------- */
.psp-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; }
.psp-hero__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.psp-hero__body { flex: 1; min-width: 220px; }
.psp-hero__body h2 { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.psp-hero__body > p { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.psp-hero__stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.psp-hero__stat { display: flex; flex-direction: column; }
.psp-hero__stat strong { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.psp-hero__stat span { font-size: 14px; color: var(--ink-500); }
.psp-hero__ring { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.psp-hero__ring .ring-progress__value { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.psp-hero__ring span { font-size: 14px; color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.psp-section { margin-bottom: 16px; }
.psp-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.psp-section__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.psp-section__title strong { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.psp-section__title span { font-size: 14px; color: var(--ink-500); margin-top: 1px; }

.psp-badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.psp-badge { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--blue-100); text-align: center; align-items: center; }
.psp-badge strong { font-size: 14px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.psp-badge span { font-size: 14px; color: var(--ink-500); }
.psp-badge .psp-badge__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; }

@media (max-width: 640px) {
  .psp-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .psp-hero__ring { align-self: center; }
  .psp-badge-grid { grid-template-columns: 1fr 1fr; }
  .psp-section__head { flex-wrap: wrap; }
}

/* ---------- Certificates page (full grid — psp-badge is too small a teaser
   tile for the dedicated Certificates page, so this is a larger card sized
   closer to .pc/.g-card, with room for issuer tag, dates, credential id and
   a View + Download action pair) ---------- */
.certg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.certg-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-card); }
.certg-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.certg-card__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.certg-card__tags { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.certg-card__tag { font-size: 14px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-500); white-space: nowrap; }
.certg-card__tag--ai { background: var(--green-100); color: var(--green-600); display: inline-flex; align-items: center; gap: 4px; }
.certg-card__title { font-size: 15px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.certg-card__meta { font-size: 14px; color: var(--ink-500); margin-top: -6px; }
.certg-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-500); padding-top: 10px; border-top: 1px solid var(--border-default); }
.certg-card__actions { display: flex; gap: 8px; margin-top: 4px; }
.certg-card__actions .b-btn { flex: 1; justify-content: center; }

@media (max-width: 960px) { .certg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .certg-grid { grid-template-columns: 1fr; } }

/* Room Designer (Penata Kamar) — furniture list active state, style swatches, rotate row */
.b-skill-list__item.is-active { background: var(--blue-50); }
.b-skill-list__item.is-active .b-skill-list__icon { background: var(--blue-600); color: #fff; }
.b-room-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.b-room-swatch {
  padding: 7px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.b-room-swatch:hover { border-color: var(--blue-400); }
.b-room-swatch.is-active { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.b-room-rotate-row { display: flex; gap: 8px; }
.b-room-rotate-row .b-btn { flex: 1; justify-content: center; }

/* =============================================================================
   Admin Dashboard — admin-dashboard.html / admin-students.html /
   admin-student-detail.html / admin-compare.html. No charting library in
   this app (every visual elsewhere is hand-rolled CSS — conic-gradient
   donuts, width/height bars); these follow the same convention.
   ============================================================================= */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-size: 24px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.adm-head p { font-size: 14px; color: var(--ink-500); }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.adm-stat-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-card); }
.adm-stat-card__icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.adm-stat-card__value { font-size: 26px; font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.adm-stat-card__label { font-size: 14px; color: var(--ink-500); font-weight: 600; margin-top: 4px; }
.adm-stat-card--blue .adm-stat-card__icon { background: var(--blue-50); color: var(--blue-600); }
.adm-stat-card--green .adm-stat-card__icon { background: var(--green-100); color: var(--green-600); }
.adm-stat-card--gold .adm-stat-card__icon { background: var(--gold-100); color: var(--gold-600); }
.adm-stat-card--red .adm-stat-card__icon { background: var(--red-100); color: var(--red-600); }

.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }

.adm-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.adm-bar-row:last-child { margin-bottom: 0; }
.adm-bar-row__label { width: 96px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--ink-700); }
.adm-bar-row__track { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--ink-100); overflow: visible; }
.adm-bar-row__track > .adm-bar-row__fill { overflow: hidden; border-radius: 5px 0 0 5px; }
.adm-bar-row__marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-900); border-radius: 1px; }
.adm-bar-row__marker::after { content: attr(data-label); position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--ink-500); white-space: nowrap; }
.adm-bar-row__fill { display: block; height: 100%; border-radius: 5px; background: var(--blue-500); }
.adm-bar-row__value { width: 42px; flex-shrink: 0; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink-500); }
.adm-bar-row__fill.is-weak { background: var(--red-500, var(--red-600)); }

.adm-histogram { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.adm-histogram__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.adm-histogram__bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--blue-400); min-height: 3px; }
.adm-histogram__count { font-size: 14px; font-weight: 700; color: var(--ink-700); }
.adm-histogram__label { font-size: 14px; color: var(--ink-500); margin-top: 2px; white-space: nowrap; }

.adm-hours { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.adm-hours__bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--gold-500); min-height: 2px; }
.adm-hours__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-400); margin-top: 4px; }

.adm-risk-list { display: flex; flex-direction: column; gap: 8px; }
.adm-risk-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-md); background: var(--red-100); text-decoration: none; }
.adm-risk-row img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.adm-risk-row__body { flex: 1; min-width: 0; }
.adm-risk-row__name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.adm-risk-row__note { font-size: 14px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-default); text-decoration: none; }
.adm-leaderboard-row:last-child { border-bottom: none; }
.adm-leaderboard-row__rank { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-leaderboard-row__rank.is-gold { background: #FFD447; color: #7A5B00; }
.adm-leaderboard-row__rank.is-silver { background: #D9DEE5; color: #4B5563; }
.adm-leaderboard-row__rank.is-bronze { background: #E8B589; color: #7A3E12; }
.adm-leaderboard-row img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.adm-leaderboard-row__body { flex: 1; min-width: 0; }
.adm-leaderboard-row__name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.adm-leaderboard-row__sub { font-size: 14px; color: var(--ink-500); }
.adm-leaderboard-row__score { font-size: 14px; font-weight: 700; color: var(--blue-600); flex-shrink: 0; }

.adm-feed-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-default); }
.adm-feed-row:last-child { border-bottom: none; }
.adm-feed-row img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.adm-feed-row__text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-feed-row__text strong { font-weight: 700; color: var(--ink-900); }
.adm-feed-row__time { font-size: 14px; color: var(--ink-400); flex-shrink: 0; white-space: nowrap; }
.adm-feed-row__score { font-size: 14px; font-weight: 700; flex-shrink: 0; width: 38px; text-align: right; }

.adm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-toolbar__search { position: relative; flex: 1; min-width: 220px; }
.adm-toolbar__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.adm-toolbar__search input { width: 100%; padding: 10px 12px 10px 36px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default); font-size: 14px; font-family: var(--font-sans); }
.adm-toolbar select { padding: 10px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default); font-size: 14px; font-family: var(--font-sans); background: #fff; color: var(--ink-700); }

.adm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.adm-table th { text-align: left; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); padding: 12px 14px; background: var(--ink-50); border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-default); font-size: 14px; color: var(--ink-900); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tbody tr { cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.adm-table tbody tr:hover { background: var(--blue-50); }
.adm-table__student { display: flex; align-items: center; gap: 10px; }
.adm-table__student img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.adm-table__student strong { display: block; font-size: 14px; color: var(--ink-900); }
.adm-table__student span { font-size: 14px; color: var(--ink-500); }
.adm-table__bar { width: 70px; height: 6px; border-radius: 3px; background: var(--ink-100); display: inline-block; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.adm-table__bar > span { display: block; height: 100%; background: var(--blue-500); border-radius: 3px; }
.adm-table__check { width: 16px; height: 16px; cursor: pointer; }

.adm-status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; flex-shrink: 0; }
.adm-status--on_track { background: var(--blue-50); color: var(--blue-700); }
.adm-status--at_risk { background: var(--red-100); color: var(--red-600); }
.adm-status--completed { background: var(--green-100); color: var(--green-600); }

.adm-detail-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-card); margin-bottom: 16px; flex-wrap: wrap; }
.adm-detail-head img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.adm-detail-head__body { flex: 1; min-width: 180px; }
.adm-detail-head__body h1, .adm-detail-head__name { display: block; font-size: 19px; font-weight: 700; color: var(--ink-900); }
.adm-detail-head__body p { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.adm-detail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.adm-detail-stat { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px; text-align: center; box-shadow: var(--shadow-card); }
.adm-detail-stat__value { font-size: 18px; font-weight: 700; color: var(--ink-900); }
.adm-detail-stat__label { font-size: 14px; color: var(--ink-500); font-weight: 600; margin-top: 3px; }
.adm-log-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-default); }
.adm-log-row:last-child { border-bottom: none; }
.adm-log-row__title { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.adm-log-row__meta { font-size: 14px; color: var(--ink-500); }
.adm-log-row__score { margin-left: auto; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.adm-notes { background: var(--gold-100); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 14px; color: var(--ink-800, var(--ink-900)); line-height: 1.55; }

.adm-compare-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-compare-picker-card { position: sticky; top: calc(var(--header-height, 0px) + 16px); }
.adm-compare-picker-search { position: relative; margin-bottom: 12px; }
.adm-compare-picker-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.adm-compare-picker-search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default); font-size: 14px; font-family: var(--font-sans); }
.adm-rank-list { display: flex; flex-direction: column; gap: 7px; max-height: 620px; overflow-y: auto; padding-right: 2px; }
.adm-rank-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default); background: #fff; cursor: pointer; text-align: left; font-family: var(--font-sans); transition: all var(--dur-fast) var(--ease); }
.adm-rank-row:hover { border-color: var(--blue-400); }
.adm-rank-row.is-selected { border-color: var(--blue-600); background: var(--blue-50); }
.adm-rank-row__num { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-rank-row__num.is-gold { background: #FFD447; color: #7A5B00; }
.adm-rank-row__num.is-silver { background: #D9DEE5; color: #4B5563; }
.adm-rank-row__num.is-bronze { background: #E8B589; color: #7A3E12; }
.adm-rank-row img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.adm-rank-row__body { flex: 1; min-width: 0; }
.adm-rank-row__body strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-rank-row__body span { font-size: 14px; color: var(--ink-500); }
.adm-rank-row__score { font-size: 14px; font-weight: 700; color: var(--blue-600); flex-shrink: 0; }
.adm-rank-row__check { color: var(--ink-300); flex-shrink: 0; display: flex; }
.adm-rank-row.is-selected .adm-rank-row__check { color: var(--blue-600); }
.adm-compare-results-empty { background: #fff; border: 1.5px dashed var(--ink-200); border-radius: var(--radius-xl); padding: 40px 24px; text-align: center; color: var(--ink-500); font-size: 14px; }
.adm-compare-cols { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 8px; }
.adm-compare-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-card); position: relative; }
.adm-compare-card__remove { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--ink-100); color: var(--ink-500); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.adm-compare-card__remove:hover { background: var(--red-100); color: var(--red-600); }
.adm-compare-card__head { text-align: center; margin-bottom: 14px; }
.adm-compare-card__head img { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; }
.adm-compare-card__head strong { display: block; font-size: 14px; color: var(--ink-900); }
.adm-compare-card__head span { font-size: 14px; color: var(--ink-500); }
.adm-compare-metric { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-default); font-size: 14px; }
.adm-compare-metric:last-of-type { border-bottom: none; }
.adm-compare-metric__label { color: var(--ink-500); font-weight: 600; }
.adm-compare-metric__value { color: var(--ink-900); font-weight: 700; }

@media (max-width: 960px) {
  .adm-grid-2 { grid-template-columns: 1fr; }
  .adm-detail-stats { grid-template-columns: repeat(3, 1fr); }
  .adm-compare-layout { grid-template-columns: 1fr; }
  .adm-compare-picker-card { position: static; }
  .adm-rank-list { max-height: 320px; }
}
@media (max-width: 640px) {
  .adm-detail-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* =============================================================================
   Library — library.html (grid of seeded PDFs) / library-viewer.html
   (full-page PDF preview). Follows the certg-card visual pattern.
   ============================================================================= */
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-view-toggle { display: flex; gap: 2px; background: var(--ink-100); border-radius: var(--radius-md); padding: 3px; flex-shrink: 0; }
.lib-view-toggle button { display: flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: none; background: none; border-radius: calc(var(--radius-md) - 2px); color: var(--ink-500); cursor: pointer; }
.lib-view-toggle button.is-active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-card); }

.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lib-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-card); }
.lib-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lib-card__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lib-card__tags { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.lib-card__tag { font-size: 14px; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-500); white-space: nowrap; flex-shrink: 0; }
.lib-card__tag--program { background: var(--blue-50); color: var(--blue-700); }
.lib-card__title { font-size: 15px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.lib-card__sub { font-size: 14px; color: var(--ink-500); line-height: 1.5; margin-top: -6px; }
.lib-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-500); padding-top: 10px; border-top: 1px solid var(--border-default); }

/* Category color coding — shared by grid-card icon and the category pill in both views */
.lib-card__icon.is-handbook, .lib-card__tag.is-handbook { background: var(--blue-100); color: var(--blue-700); }
.lib-card__icon.is-buku, .lib-card__tag.is-buku { background: var(--green-100); color: var(--green-600); }
.lib-card__icon.is-jurnal, .lib-card__tag.is-jurnal { background: var(--gold-100); color: var(--gold-600); }

.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 12px 16px; box-shadow: var(--shadow-card); }
.lib-row__icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lib-row__body { flex: 1; min-width: 0; }
.lib-row__body strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-row__body span { font-size: 14px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lib-row__pages { font-size: 14px; color: var(--ink-500); flex-shrink: 0; white-space: nowrap; }
.lib-row .lib-card__tag { flex-shrink: 0; }
.lib-row .b-btn { flex-shrink: 0; }

.lib-viewer { display: flex; flex-direction: column; height: 100vh; background: var(--ink-50); }
.lib-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--border-default); flex-shrink: 0; }
.lib-viewer__bar-title { flex: 1; min-width: 0; }
.lib-viewer__bar-title strong { display: block; font-size: 14px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-viewer__bar-title span { font-size: 14px; color: var(--ink-500); }
.lib-viewer__frame-wrap { flex: 1; min-height: 0; }
.lib-viewer__frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 640px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-row { flex-wrap: wrap; }
  .lib-row__body { flex-basis: 100%; order: -1; }
  .lib-viewer__bar-title span { display: none; }
  .lib-viewer__bar a.b-btn-outline { display: none; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================================
   Asisten AI (assistant.html) — chat over AIProvider.answerAssistantQuery().
   Reuses .b-chat/.b-chat__* from the AI Coach chat (discovery.js) verbatim;
   only the card shell + suggested-question chips + input row are new here.
   ========================================================================= */
.assist-disclosure { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--ink-500); line-height: 1.5; margin: -8px 0 16px; }
.assist-disclosure svg { flex-shrink: 0; margin-top: 1px; }
.assist-card { display: flex; flex-direction: column; gap: 14px; }
.assist-card .b-chat { max-height: 480px; overflow-y: auto; padding: 4px 6px 4px 2px; }
.assist-suggested__label { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 8px; }
.assist-suggested__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.assist-chip { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: #fff; font-size: 14px; color: var(--ink-700); cursor: pointer; transition: background 120ms ease, border-color 120ms ease, color 120ms ease; }
.assist-chip:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.assist-input-row { display: flex; gap: 10px; border-top: 1px solid var(--border-default); padding-top: 14px; }
.assist-input-row input { flex: 1; min-width: 0; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 11px 16px; font-size: 14px; font-family: inherit; color: var(--ink-900); }
.assist-input-row input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.assist-input-row .b-btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
@media (max-width: 640px) {
  .assist-card .b-chat { max-height: 62vh; }
}

/* =========================================================================
   Kursus Bahasa — hub (bahasa.html)
   ========================================================================= */
.lang-hub-stats { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.lang-stat-tile { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-card); }
.lang-stat-tile__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lang-stat-tile__icon.is-flame { background: var(--gold-100); color: var(--gold-600); }
.lang-stat-tile__icon.is-xp { background: var(--blue-50); color: var(--blue-600); }
.lang-stat-tile strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.lang-stat-tile span { display: block; font-size: 14px; color: var(--ink-500); margin-top: 2px; }

.lang-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-content: start; }
.lang-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-card); text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.lang-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.lang-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lang-card__flag { font-size: 30px; line-height: 1; }
.lang-card__badge { font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.lang-card__title { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.lang-card__tagline { font-size: 14px; color: var(--ink-500); line-height: 1.5; min-height: 34px; }
.lang-card__cta { margin-top: 4px; }

.adm-leaderboard-row.is-me { background: var(--blue-50); border-radius: var(--radius-md); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.adm-leaderboard-row.is-me .adm-leaderboard-row__name { color: var(--blue-700); }

/* =========================================================================
   Kursus Bahasa — learning path (bahasa-course.html)
   ========================================================================= */
.lang-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-500); text-decoration: none; margin-bottom: 8px; }
.lang-back-link:hover { color: var(--blue-600); }
.lang-course-progress { max-width: 420px; height: 8px; margin-bottom: 28px; }
.lang-course-progress span { border-radius: 4px; }

.lang-unit { margin-bottom: 32px; }
.lang-unit__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lang-unit__title { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.lang-unit__desc { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.lang-unit.is-stub { background: var(--ink-50); border: 1px dashed var(--border-strong, var(--ink-200)); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; }
.lang-unit.is-stub .lang-unit__head { margin-bottom: 0; }
.lang-unit__lock { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-100); color: var(--ink-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.lang-path { display: flex; flex-direction: column; gap: 22px; padding: 4px 0; }
.lang-node-row { display: flex; align-items: center; gap: 14px; }
.lang-node-row.is-left { justify-content: flex-start; }
.lang-node-row.is-center { justify-content: center; }
.lang-node-row.is-right { justify-content: flex-end; flex-direction: row-reverse; }
.lang-node-row.is-right .lang-node__label { text-align: right; }
.lang-node { width: 60px; height: 60px; border-radius: 50%; border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ink-100); color: var(--ink-400); box-shadow: 0 4px 0 var(--ink-200); cursor: not-allowed; }
.lang-node.is-available { background: var(--blue-600); color: #fff; box-shadow: 0 4px 0 var(--blue-700); cursor: pointer; animation: lang-node-pulse 2.2s ease-in-out infinite; }
.lang-node.is-available:active { transform: translateY(3px); box-shadow: none; }
.lang-node.is-done { background: var(--green-600); color: #fff; box-shadow: 0 4px 0 var(--green-700, #0F6B33); cursor: pointer; }
.lang-node.is-done:active { transform: translateY(3px); box-shadow: none; }
.lang-node__label strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink-900); }
.lang-node__score { display: block; font-size: 14px; color: var(--green-600); font-weight: 700; margin-top: 2px; }
@keyframes lang-node-pulse { 0%, 100% { box-shadow: 0 4px 0 var(--blue-700), 0 0 0 0 rgba(10,106,203,0.35); } 50% { box-shadow: 0 4px 0 var(--blue-700), 0 0 0 8px rgba(10,106,203,0); } }
@media (max-width: 640px) {
  .lang-node-row.is-left, .lang-node-row.is-center, .lang-node-row.is-right { justify-content: flex-start; flex-direction: row; }
  .lang-node-row.is-right .lang-node__label { text-align: left; }
}

/* =========================================================================
   Kursus Bahasa — lesson runner (bahasa-lesson.html, standalone chrome-free)
   ========================================================================= */
.lang-lesson { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 18px 20px 0; }
.lang-lesson__top { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; }
.lang-lesson__exit { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--ink-100); color: var(--ink-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.lang-lesson__exit:hover { background: var(--ink-200); }
.lang-lesson__progress { flex: 1; height: 12px; border-radius: var(--radius-pill); background: var(--ink-100); overflow: hidden; }
.lang-lesson__progress span { display: block; height: 100%; background: var(--green-500); border-radius: var(--radius-pill); transition: width 200ms ease; }
.lang-lesson__hearts { display: flex; gap: 3px; flex-shrink: 0; }
.lang-heart.is-full { color: var(--red-600); }
.lang-heart.is-empty { color: var(--ink-200); }

.lang-lesson__body { flex: 1; padding: 24px 0 120px; }
.lang-ex__prompt { font-size: 21px; font-weight: 700; color: var(--ink-900); margin-bottom: 22px; line-height: 1.4; }
.lang-ex__hint { font-size: 14px; color: var(--ink-500); margin: 10px 0 18px; }
.lang-ex__hint em { color: var(--ink-700); font-style: normal; font-weight: 700; }
.lang-ex__correct-answer { font-size: 14px; color: var(--red-600); font-weight: 700; margin-top: 10px; }

.lang-ex__options { display: flex; flex-direction: column; gap: 10px; }
.lang-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--radius-md); border: 2px solid var(--border-default); background: #fff; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.lang-opt.is-rtl { align-items: flex-start; text-align: right; direction: rtl; } /* under direction:rtl, flex-start is the right edge (UAT-065) */
.lang-opt:hover { border-color: var(--blue-300, var(--blue-400)); }
.lang-opt.is-selected { border-color: var(--blue-500); background: var(--blue-50); }
.lang-opt.is-correct { border-color: var(--green-600); background: var(--green-100); }
.lang-opt.is-wrong { border-color: var(--red-600); background: var(--red-100); }
.lang-opt[disabled] { cursor: default; }
.lang-opt__text { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.lang-opt__sub { font-size: 14px; color: var(--ink-500); }

.lang-audio-btn { width: 68px; height: 68px; border-radius: 50%; border: none; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(10,106,203,0.28); margin-bottom: 4px; }
.lang-audio-btn:hover { background: var(--blue-700); }
.lang-audio-btn svg { margin-left: 3px; }

.lang-type-input { width: 100%; border: 2px solid var(--border-default); border-radius: var(--radius-md); padding: 13px 16px; font-size: 16px; font-family: inherit; color: var(--ink-900); }
.lang-type-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }

.lang-wb-answer { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 10px; border-bottom: 2px solid var(--border-default); margin-bottom: 20px; }
.lang-wb-answer.is-rtl { direction: rtl; }
.lang-wb-answer__placeholder { color: transparent; }
.lang-wb-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-wb-bank.is-rtl { direction: rtl; }
.lang-wb-token { padding: 10px 16px; border-radius: var(--radius-md); border: 2px solid var(--border-default); background: #fff; font-size: 15px; font-weight: 700; color: var(--ink-900); cursor: pointer; }
.lang-wb-token:hover { border-color: var(--blue-300, var(--blue-400)); }
.lang-wb-token.is-placed { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }

.lang-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-match__col { display: flex; flex-direction: column; gap: 10px; }
.lang-match__card { padding: 13px 14px; border-radius: var(--radius-md); border: 2px solid var(--border-default); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-900); text-align: left; cursor: pointer; }
.lang-match__col.is-rtl .lang-match__card { text-align: right; direction: rtl; }
.lang-match__card:hover { border-color: var(--blue-300, var(--blue-400)); }
.lang-match__card.is-picked { border-color: var(--blue-500); background: var(--blue-50); }
.lang-match__card.is-solved { border-color: var(--green-600); background: var(--green-100); color: var(--green-600); cursor: default; }
.lang-match__card.is-shake { animation: lang-shake 380ms ease; border-color: var(--red-600); background: var(--red-100); }
.lang-match__sub { display: block; font-size: 14px; font-weight: 500; color: var(--ink-500); margin-top: 2px; }
.lang-match__card.is-solved .lang-match__sub { color: var(--green-600); }
@keyframes lang-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.lang-lesson__footer { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border-default); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(15,18,22,0.06); }
.lang-lesson__footer:empty { display: none; }
.lang-check-btn { max-width: 640px; margin: 0 auto; display: flex; }
.lang-feedback { max-width: 640px; margin: 0 auto 12px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.lang-lesson__footer.is-correct .lang-feedback { color: var(--green-600); }
.lang-lesson__footer.is-incorrect .lang-feedback { color: var(--red-600); }

.lang-result { max-width: 460px; margin: 60px auto; text-align: center; padding: 0 20px; }
.lang-result__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.lang-result__badge.is-fail { background: var(--red-100); color: var(--red-600); }
.lang-result h1 { font-size: 24px; font-weight: 700; color: var(--ink-900); margin-bottom: 18px; }
.lang-result__stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 18px; }
.lang-result__stat strong { display: block; font-size: 26px; font-weight: 700; color: var(--ink-900); }
.lang-result__stat.is-xp strong { color: var(--gold-600); }
.lang-result__stat span { font-size: 14px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.lang-result__streak { font-size: 14px; color: var(--ink-700); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.lang-result__body { font-size: 14px; color: var(--ink-500); line-height: 1.6; margin-bottom: 28px; }
.lang-result__actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .lang-lesson { padding: 14px 16px 0; }
  .lang-match { gap: 8px; }
  .lang-match__card { padding: 11px 10px; font-size: 14px; }
}

/* ---------- UAT fixes: pass mark, lock screen, sim brief (learning flow) ---------- */
.b-runner__ctabar { gap: 10px; flex-wrap: wrap; }
.b-pass-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; text-align: left; border: 1px solid transparent; }
.b-pass-banner svg { flex: 0 0 auto; margin-top: 2px; }
.b-pass-banner.is-pass { background: #e7f5ec; color: #1f7a45; border-color: #bfe3cc; }
.b-pass-banner.is-fail { background: #fff6dc; color: #8a5a00; border-color: #f2dc9b; }
.b-lock-screen { text-align: center; max-width: 560px; margin: 24px auto 0; }
.b-lock-screen .b-runner__eyebrow { display: inline-flex; }
.b-lock-screen__ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-soft, #f2f5fa); color: var(--ink-700, #3d4655); border: 1px solid var(--border-default, #dae1ed); }
span.pl-item[aria-disabled="true"] { cursor: not-allowed; }
.pl .pl-item small { font-size: 13px; }
.b-sim3d-intro__brief { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 560px; margin: 10px auto 0; font-size: 14px; line-height: 1.5; color: var(--ink-700, #3d4655); }
.b-sim3d-intro__brief svg { flex: 0 0 auto; margin-top: 3px; }
.b-readiness-note { margin: 10px auto 0; max-width: 520px; font-size: 14px; line-height: 1.5; color: var(--ink-500, #5b6780); text-align: center; }
.b-readiness-note strong { color: var(--ink-700, #3d4655); font-weight: 600; }
.pf-noprog { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 640px) {
  .b-runner__ctabar .b-btn { min-width: 0; flex: 1 1 100%; }
}
