/* =========================================================
   AI Kids Academy — learning engine styles
   Uses the tokens from styles.css (--ink, --muted, --line,
   --grad, --r, accent vars --a1/--a2 set per academy).
   ========================================================= */

.lx-ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.lx-ic .icon { width: 1.15em; height: 1.15em; }
.lx-muted { color: var(--muted); font-size: 14.5px; }
.lx-illo { line-height: 0; }
.lx-illo svg { width: 100%; height: auto; display: block; }
.lx-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.lx-stretch:focus-visible { outline: none; }
.lx-stretch:focus-visible::after { outline: 3px solid var(--cyan); outline-offset: 3px; }

.lx-btn {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--a1, var(--cyan)), var(--a2, var(--blue)));
  box-shadow: 0 8px 18px -8px var(--a2, var(--blue)); transition: transform .2s var(--ease), box-shadow .2s; white-space: nowrap;
}
.lx-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); }
.lx-btn:disabled { opacity: .55; cursor: default; }
.lx-btn--soft { background: #E3F8EF; color: #0E8A5F; box-shadow: none; }
.lx-btn--danger { background: #FF5F6D; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.lx-status--new { background: #EEF1FA; color: var(--muted); }

/* ---------------- Hero ---------------- */
.lx-hero__title { font-size: clamp(34px, 5vw, 58px); margin-top: 6px; }
.lx-hero--compact { padding-bottom: 44px; }
.lx-hero--compact .lx-hero__title { font-size: clamp(30px, 4vw, 46px); }
.lx-hero__art { position: relative; display: grid; justify-items: center; }
.lx-hero-illo { width: min(340px, 100%); border-radius: 24px; box-shadow: 0 24px 50px -20px rgba(5, 8, 40, .55); overflow: hidden; transform: rotate(2deg); transition: transform .4s var(--ease); }
.lx-hero-illo:hover { transform: rotate(0) scale(1.02); }
.lx-home-art { display: grid; justify-items: center; }
.lx-home-aibo { width: min(250px, 100%); filter: drop-shadow(0 24px 30px rgba(5, 8, 40, .45)); }
.lx-home-card { grid-template-columns: auto 1fr; gap: 14px; width: min(300px, 100%); }
.lx-home-card__big { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.lx-quiz-aibo { width: 180px; filter: drop-shadow(0 24px 30px rgba(5, 8, 40, .45)); }
.lx-progress-art { padding: 18px; border-radius: 50%; background: rgba(255,255,255,.12); }

.lx-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lx-hero-stats li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.lx-hero-stats__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--a2); font-size: 18px; }
.lx-hero-stats strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lx-hero-stats small { display: block; font-size: 12.5px; font-weight: 700; opacity: .85; }

.lx-ring { --p: 0; --s: 120px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--a2, var(--blue)) calc(var(--p) * 1%), #E8ECFA 0); transition: background .6s; }
.lx-ring::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: #fff; }
.lx-ring span { position: relative; text-align: center; line-height: 1.1; }
.lx-ring b { display: block; font-family: var(--font-display); font-size: calc(var(--s) * .24); color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-ring small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }

/* ---------------- Academy home ---------------- */
.lx-section { padding-top: 48px; padding-bottom: 80px; }
.lx-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.lx-section__note { color: var(--muted); max-width: 34em; font-size: 15px; }

.lx-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lx-course { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.lx-course:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--a2) 55%, transparent); border-color: color-mix(in srgb, var(--a1) 40%, white); }
.lx-course.is-complete { border-color: #BDEBD7; }
.lx-course__art { position: relative; padding: 14px 14px 0; }
.lx-course__art .lx-illo { border-radius: 18px; overflow: hidden; transition: transform .45s var(--ease); }
.lx-course:hover .lx-course__art .lx-illo { transform: scale(1.03); }
.lx-course__pill { position: absolute; top: 24px; left: 24px; }
.lx-course__pill .status { box-shadow: 0 4px 10px rgba(14,20,64,.12); background-color: #fff; }
.lx-course__pill .status--done { background: #E3F8EF; }
.lx-course__pill .status--wip { background: #FFF3DC; }
.lx-course__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.lx-course__num { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); }
.lx-course__title { font-size: 21px; line-height: 1.2; }
.lx-course__title a:hover { color: var(--a2); }
.lx-course__text { color: var(--muted); font-size: 14.5px; flex: 1; }
.lx-course__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lx-course__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lx-course__meta .lx-ic { color: var(--a1); }
.lx-course__progress { display: flex; align-items: center; gap: 10px; }
.lx-course__progress .bar { flex: 1; }
.lx-course__progress b { font-size: 13px; color: var(--a2); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.lx-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lx-course__status { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.lx-method { display: flex; align-items: center; gap: 24px; margin-top: 36px; padding: 24px 32px; border-radius: 28px; background: var(--grad-soft); border: 1px solid #E3E6FB; }
.lx-method__aibo { width: 100px; flex: none; }
.lx-method h3 { font-size: 22px; margin-bottom: 14px; }
.lx-method__steps { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-method__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.lx-method__steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }

/* ---------------- Course page ---------------- */
.lx-body { padding-bottom: 80px; }
.lessons .lesson { position: relative; }
.lesson__title { color: inherit; }
a.lesson__title:hover { color: var(--a2); }
.lesson .lesson__btn { position: relative; z-index: 2; pointer-events: none; }
.lesson:hover .lesson__btn { transform: scale(1.05); }
.lx-quizrow { border-style: dashed; }
.lx-quizrow.is-locked { opacity: .7; }
.lx-quizrow.is-locked .lesson__num { background: #EEF1FA; }
.lx-quizrow.is-locked:hover { transform: none; }
.lx-ideas { display: grid; gap: 10px; }
.lx-ideas li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.5; }
.lx-ideas .lx-ic { color: #E08A00; margin-top: 2px; font-size: 18px; }
.lx-award--locked { background: #F5F6FC; border-color: var(--line); }
.lx-award--locked .ac-award__medal { background: #DADFF2; box-shadow: 0 0 0 4px #EEF1FA; }
.lx-award--locked small { color: var(--muted); }

/* ---------------- Lesson page ---------------- */
.lx-lesson-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lx-lesson-meta > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 700; }
.lx-lesson-meta .lx-done-chip { background: #fff; color: #0E8A5F; border-color: #fff; }
.lx-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lx-jump button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13.5px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s; }
.lx-jump button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.lx-jump button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 12px; font-weight: 800; }

.lx-lesson-main { display: grid; gap: 22px; min-width: 0; }
.lx-lesson-main > section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.lx-step-title { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 16px; }
.lx-step-title span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 16px; }
.lx-learn__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.lx-learn__text { display: grid; gap: 14px; font-size: 17.5px; line-height: 1.7; }
.lx-learn__text b { color: var(--a2); }
.lx-learn__illo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.lx-key { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: #FFF8E8; border: 1px solid #FFE7B0; }
.lx-key__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 22px; background: linear-gradient(135deg, #FFC84A, #FF8A1A); }
.lx-key small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #A86400; }
.lx-key b { display: block; font-size: 16.5px; line-height: 1.5; }

.lx-tipbox { display: flex; align-items: flex-end; gap: 18px; }
.lx-tipbox__aibo { width: 130px; flex: none; }
.lx-tipbox__bubble { position: relative; flex: 1; padding: 22px 26px; border-radius: 26px 26px 26px 8px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3A2CB0 0%, #1A2170 50%, #0C1140 100%); box-shadow: var(--shadow-lg); margin-bottom: 34px; }
.lx-tipbox__bubble .lx-step-title { font-size: 20px; margin-bottom: 8px; }
.lx-tipbox__bubble p { font-size: 17px; line-height: 1.6; color: #E1E6FF; }

.lx-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lx-example { padding: 18px; border-radius: 20px; background: #FBFCFF; border: 1.5px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.lx-example:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 45%, white); }
.lx-example__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; margin-bottom: 12px; color: #fff; font-size: 22px; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.lx-example:nth-child(2) .lx-example__icon { background: linear-gradient(135deg, #FF8FC0, #FF5F8F); }
.lx-example:nth-child(3) .lx-example__icon { background: linear-gradient(135deg, #3EE0A6, #14B87F); }
.lx-example h3 { font-size: 18px; margin-bottom: 6px; }
.lx-example p { font-size: 14.5px; color: var(--muted); }

/* ---------------- Activities ---------------- */
.lx-activity__prompt { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.lx-banner { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: #E3F8EF; color: #0E8A5F; font-weight: 800; animation: pop .4s var(--ease); }
.lx-why { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: #0E8A5F; }
.lx-why--try { color: #C2410C; animation: pop .3s var(--ease); }

.lx-sort__count { display: inline-flex; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: #EEF2FF; color: var(--blue); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lx-sort { display: grid; gap: 10px; }
.lx-sort__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #FBFCFF; transition: border-color .25s, background .25s; }
.lx-sort__item.is-ok { background: #F2FBF7; border-color: #C9EEDD; }
.lx-sort__item.is-wrong { border-color: #FFC9A8; background: #FFF8F3; animation: shake .4s; }
.lx-sort__text { flex: 1; font-weight: 700; font-size: 15px; }
.lx-sort__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lx-bucket { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 13.5px; border: 2px solid; transition: transform .2s var(--ease), background .2s, color .2s; }
.lx-bucket--0 { border-color: color-mix(in srgb, var(--a2) 35%, white); color: var(--a2); background: #fff; }
.lx-bucket--0:hover { background: var(--a2); color: #fff; transform: translateY(-2px); }
.lx-bucket--1 { border-color: #FFD3A8; color: #C2410C; background: #fff; }
.lx-bucket--1:hover { background: #FF8A1A; border-color: #FF8A1A; color: #fff; transform: translateY(-2px); }
.lx-chosen { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--good); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }

.lx-order__placed { display: grid; gap: 8px; margin-bottom: 16px; }
.lx-order__placed li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 2px dashed #D5DCF5; color: #9AA1C4; font-weight: 700; font-size: 14.5px; }
.lx-order__placed li.is-filled { border-style: solid; border-color: #C9EEDD; background: #F2FBF7; color: var(--ink); animation: pop .35s var(--ease); }
.lx-order__n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EEF1FA; color: var(--muted); font-weight: 800; font-size: 14px; }
.is-filled .lx-order__n { background: var(--good); color: #fff; }
.lx-order__pool { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-order__step { padding: 12px 16px; border-radius: 14px; background: #fff; border: 2px solid color-mix(in srgb, var(--a1) 40%, white); font-weight: 700; font-size: 14.5px; text-align: left; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s; }
.lx-order__step:hover { transform: translateY(-2px); border-color: var(--a2); }
.lx-order__step.is-wrong { border-color: #FF8A5B; animation: shake .4s; }
.lx-reset { margin-top: 12px; font-size: 14px; }

.lx-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-spot__opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; font-weight: 700; font-size: 15px; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.lx-spot__opt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a1) 50%, white); }
.lx-spot__opt.is-on { border-color: var(--a2); background: color-mix(in srgb, var(--a1) 8%, white); }
.lx-spot__opt.is-ok { border-color: var(--good); background: #F2FBF7; }
.lx-spot__opt.is-wrong { border-color: #FF8A5B; background: #FFF8F3; }
.lx-spot__opt.is-wrong .lx-why { color: #C2410C; }
.lx-spot__box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #C5CCEA; color: #fff; font-size: 14px; margin-top: 1px; }
.is-on .lx-spot__box { background: var(--a2); border-color: var(--a2); }
.is-ok .lx-spot__box { background: var(--good); border-color: var(--good); }
.lx-spot__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------------- Questions ---------------- */
.lx-checks { display: grid; gap: 16px; margin-top: 14px; }
.lx-q { padding: 20px; border-radius: 20px; background: #FBFCFF; border: 1.5px solid var(--line); }
.lx-q--big { padding: 0; border: 0; background: none; }
.lx-q__label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); margin-bottom: 6px; }
.lx-q__text { font-size: 19px; line-height: 1.35; margin-bottom: 14px; }
.lx-q--big .lx-q__text { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 20px; }
.lx-q__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; font-weight: 700; font-size: 15px; transition: border-color .2s, background .2s, transform .2s var(--ease), opacity .2s; }
.lx-q--big .lx-opt { min-height: 66px; font-size: 16.5px; }
.lx-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a1) 55%, white); box-shadow: var(--shadow-sm); }
.lx-opt:disabled { cursor: default; }
.lx-opt__letter { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #EEF1FA; color: var(--muted); font-weight: 800; font-size: 14px; }
.lx-opt__text { flex: 1; }
.lx-opt__mark { color: var(--good); font-size: 22px; }
.lx-opt.is-correct { border-color: var(--good); background: #F2FBF7; animation: pop .35s var(--ease); }
.lx-opt.is-correct .lx-opt__letter { background: var(--good); color: #fff; }
.lx-opt.is-wrong { border-color: #FF5F6D; background: #FFF4F5; animation: shake .4s; }
.lx-opt.is-wrong .lx-opt__letter { background: #FF5F6D; color: #fff; }
.lx-opt.is-dim { opacity: .55; }
.lx-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; animation: pop .3s var(--ease); }
.lx-feedback.is-ok { background: #E3F8EF; color: #0B5E41; }
.lx-feedback.is-no { background: #FFF1E6; color: #8A3410; }

/* ---------------- Finish + navigation ---------------- */
.lx-finish { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid #E3E6FB; }
.lx-finish.is-done { background: #E9FAF2; border-color: #C9EEDD; }
.lx-finish__msg { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.lx-finish__msg b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.lx-finish__msg small { display: block; color: var(--muted); font-size: 14px; }
.lx-finish__medal { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 24px; background: var(--good); box-shadow: 0 0 0 5px #fff; }
.lx-finish__medal--todo { background: conic-gradient(from 200deg, #FFC84A, #FF8A1A, #FFC84A, #FFE58A, #FFC84A); }
.lx-pager { margin: 0; }
.lx-pager .ac-pager__link > span { font-size: 18px; }

.lx-outline-wrap { position: sticky; top: calc(var(--nav-h) + 16px); }
.lx-outline .bar { margin: -6px 0 14px; }
.lx-outline__list { display: grid; gap: 4px; }
.lx-outline__list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); transition: background .2s; }
.lx-outline__list a:hover { background: var(--bg); }
.lx-outline__list a.is-current { background: color-mix(in srgb, var(--a1) 12%, white); color: var(--ink); font-weight: 800; }
.lx-outline__dot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: #EEF1FA; color: var(--muted); font-size: 13px; font-weight: 800; }
.is-current .lx-outline__dot { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.is-done .lx-outline__dot { background: var(--good); color: #fff; }
.lx-outline__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 800; color: var(--a2); }

/* ---------------- Quiz ---------------- */
.lx-quiz-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; margin-top: 32px; padding-bottom: 80px; }
.lx-quiz-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.lx-quiz { padding: 30px; }
.lx-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lx-quiz__count { font-weight: 800; color: var(--a2); font-size: 15px; }
.lx-quiz__score { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #FFF4DB; color: #A86400; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lx-quiz__dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 26px; }
.lx-quiz__dots span { height: 8px; border-radius: 999px; background: #E8ECFA; transition: background .3s; }
.lx-quiz__dots .is-now { background: linear-gradient(90deg, var(--a1), var(--a2)); }
.lx-quiz__dots .is-ok { background: var(--good); }
.lx-quiz__dots .is-no { background: #FF8A5B; }
.lx-quiz__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }

.lx-locked { display: grid; justify-items: center; gap: 12px; padding: 48px 30px; text-align: center; }
.lx-locked__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: #EEF1FA; color: var(--muted); font-size: 32px; }
.lx-locked h2 { font-size: 26px; }
.lx-locked p { max-width: 30em; }

.lx-result { padding: 30px; }
.lx-result__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lx-result__top > div:last-child { flex: 1; min-width: 240px; }
.lx-result.is-pass .lx-ring { background: conic-gradient(var(--good) calc(var(--p) * 1%), #E8ECFA 0); }
.lx-stars { display: flex; gap: 4px; font-size: 28px; color: #D5DAEE; }
.lx-stars .on { color: #FFB020; animation: pop .4s var(--ease) backwards; }
.lx-stars .on:nth-child(2) { animation-delay: .08s; } .lx-stars .on:nth-child(3) { animation-delay: .16s; } .lx-stars .on:nth-child(4) { animation-delay: .24s; } .lx-stars .on:nth-child(5) { animation-delay: .32s; }
.lx-stars .on .icon { fill: #FFC84A; }
.lx-result__title { font-size: 34px; margin: 8px 0 6px; }
.lx-result__reward { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px; border-radius: 14px; background: #FFF8E8; color: #8A5200; font-weight: 700; font-size: 15px; }
.lx-review { display: grid; gap: 8px; margin: 26px 0; }
.lx-review li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.lx-review b { display: block; font-size: 14.5px; }
.lx-review small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.lx-review__mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 14px; }
.is-ok .lx-review__mark { background: var(--good); }
.is-no .lx-review__mark { background: #FF8A5B; }
.lx-result__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Progress ---------------- */
.lx-stats { margin-top: 0; }
.stat__value small { font-size: 18px; color: var(--muted); font-weight: 600; }
.lx-stats .stat__hint .bar { margin-top: 2px; }
.lx-progress-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.lx-plist { display: grid; gap: 10px; }
.lx-prow { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1.5px solid var(--line); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.lx-prow:hover { border-color: color-mix(in srgb, var(--a1) 45%, white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lx-prow__illo { width: 92px; flex: none; border-radius: 12px; overflow: hidden; }
.lx-prow__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lx-prow__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lx-prow__head b { font-size: 15.5px; }
.lx-prow__dots { display: flex; gap: 6px; align-items: center; }
.lx-prow__dots span { width: 28px; height: 8px; border-radius: 999px; background: #E8ECFA; }
.lx-prow__dots span.on { background: linear-gradient(90deg, var(--a1), var(--a2)); }
.lx-prow__dots .q { width: auto; height: auto; background: none; color: #D5DAEE; font-size: 16px; }
.lx-prow__dots .q.on { background: none; color: #FFB020; }
.lx-prow__meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lx-prow__pct { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--a2); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.lx-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
.lx-badges__text { font-size: 11px; color: var(--muted); line-height: 1.35; font-weight: 600; }
.lx-reset-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lx-reset-confirm { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: 14.5px; }

/* dashboard next card illustration */
.next-card__visual--illo { display: block; padding: 0; border: 0; background: none; line-height: 0; }
.next-card__visual--illo .illo { width: 100%; height: auto; border-radius: 16px; }

@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .lx-course-grid { grid-template-columns: repeat(2, 1fr); }
  .lx-quiz-wrap { grid-template-columns: 1fr; }
  .lx-quiz-side, .lx-outline-wrap { position: static; }
  .lx-progress-grid { grid-template-columns: 1fr; }
  .lx-badges { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 960px) {
  .lx-hero__art { justify-items: start; }
  .lx-hero-illo { width: min(300px, 100%); transform: none; }
  .lx-home-art { grid-template-columns: auto 1fr; align-items: center; gap: 16px; justify-items: start; }
  .lx-home-aibo { width: 120px; }
  .lx-quiz-aibo { display: none; }
  .lx-progress-art { display: none; }
  .lx-learn__grid { grid-template-columns: 1fr; }
  .lx-learn__illo { order: -1; max-width: 420px; }
  .lx-examples { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .lx-course-grid { grid-template-columns: 1fr; }
  .lx-examples { grid-template-columns: 1fr; }
  .lx-spot, .lx-q__opts { grid-template-columns: 1fr; }
  .lx-sort__item { flex-direction: column; align-items: stretch; }
  .lx-sort__btns { justify-content: stretch; }
  .lx-bucket { flex: 1; }
  .lx-tipbox__aibo { width: 90px; }
  .lx-badges { grid-template-columns: repeat(3, 1fr); }
  .lx-method { flex-direction: column; align-items: flex-start; padding: 22px; }
  .lx-method__aibo { width: 80px; }
  .lx-hero-illo { display: none; }
  .lx-quiz, .lx-result { padding: 22px; }
  .lx-quiz__foot .btn { width: 100%; }
  .lx-learn__text { font-size: 16.5px; }
}
@media (max-width: 480px) {
  .lx-home-aibo { display: none; }
  .lx-home-art { grid-template-columns: 1fr; }
  .lx-hero-stats li { flex: 1 1 100%; }
  .lx-prow__illo { width: 64px; }
  .lx-finish .btn { width: 100%; }
  .lx-tipbox { flex-direction: column; align-items: flex-start; }
  .lx-tipbox__bubble { margin-bottom: 0; border-radius: 8px 26px 26px 26px; }
  .lx-tipbox__aibo { width: 80px; }
}

/* =========================================================
   Course 1 additions: level chip, lesson progress bar,
   course track, scenario + judge activities, celebration
   ========================================================= */
.lx-level { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #E3F8EF; color: #0E8A5F; font-size: 11px; letter-spacing: .04em; vertical-align: 1px; }

/* sticky lesson progress */
.lx-lessonbar { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 20; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lx-lessonbar__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.lx-lessonbar__head b { color: var(--ink); }
.lx-lessonbar__pct { font-family: var(--font-display); font-size: 20px; color: var(--a2) !important; font-variant-numeric: tabular-nums; }
.lx-lessonbar .bar__fill { transition: width .6s var(--ease); }
.lx-lessonbar__steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lx-lessonbar__steps button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, transform .2s var(--ease); }
.lx-lessonbar__steps button:hover { transform: translateY(-1px); color: var(--ink); }
.lx-lessonbar__steps button > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); font-size: 11.5px; font-weight: 800; }
.lx-lessonbar__steps .is-done { background: #E3F8EF; color: #0E8A5F; }
.lx-lessonbar__steps .is-done > span { background: var(--good); border-color: var(--good); color: #fff; }
.lx-lesson-main > section { scroll-margin-top: calc(var(--nav-h) + 150px); }

/* segmented course track in heroes */
.lx-track { margin-top: 22px; max-width: 460px; }
.lx-track__label { display: block; font-size: 13px; font-weight: 800; opacity: .9; margin-bottom: 8px; }
.lx-track__segs { display: flex; gap: 6px; }
.lx-track__seg { flex: 1; display: grid; place-items: center; height: 30px; border-radius: 10px; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.28); color: #fff; font-size: 13px; font-weight: 800; transition: background .2s, transform .2s var(--ease); }
.lx-track__seg:hover { transform: translateY(-2px); background: rgba(255,255,255,.26); }
.lx-track__seg.is-done { background: #fff; color: var(--good); border-color: #fff; }
.lx-track__seg.is-current { box-shadow: 0 0 0 3px #FFD25A; }
.lx-track__seg--quiz { flex: .8; }

/* compact questions + retry */
.lx-q--compact { padding: 0; border: 0; background: none; }
.lx-q--compact .lx-q__text { font-size: 16.5px; font-family: var(--font-body); font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.lx-q--compact .lx-opt { min-height: 48px; font-size: 14.5px; }
.lx-q__opts--3 { grid-template-columns: repeat(3, 1fr); }
.lx-feedback--retry { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lx-feedback--retry .lx-btn { height: 36px; background: #FF8A1A; box-shadow: none; }

/* scenarios */
.lx-scenarios { display: grid; gap: 12px; }
.lx-scenario { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #FBFCFF; transition: border-color .3s, background .3s; }
.lx-scenario.is-ok { border-color: #C9EEDD; background: #F2FBF7; }
.lx-scenario > .lx-q { flex: 1; min-width: 0; }
.lx-scenario__n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-weight: 800; font-size: 15px; }
.lx-scenario.is-ok .lx-scenario__n { background: var(--good); }

/* judge: chat mock */
.lx-chat { border-radius: 20px; overflow: hidden; border: 1.5px solid var(--line); background: #F7F9FF; margin-bottom: 18px; }
.lx-chat__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.lx-chat__bar b { margin-left: 8px; }
.lx-chat__bar small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 12px; }
.lx-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: #D7DCF3; }
.lx-msg { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; }
.lx-msg p { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.lx-msg__who { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.lx-msg--kid { flex-direction: row-reverse; }
.lx-msg--kid p { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.lx-msg--kid .lx-msg__who { background: #FFE1EC; color: #C2185B; }
.lx-msg--ai p { background: #fff; border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.lx-msg--ai .lx-msg__who { background: #13195A; color: #7FF5FF; font-size: 17px; }
.lx-judge { display: grid; gap: 14px; }
.lx-judge .lx-q { padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; animation: pop .35s var(--ease); }

/* course-complete celebration */
.lx-celebrate { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; }
.lx-celebrate__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 40, .6); backdrop-filter: blur(6px); animation: fade .3s ease; }
.lx-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lx-confetti i { position: absolute; top: -20px; animation-name: fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-iteration-count: 2; animation-fill-mode: both; }
.lx-celebrate__card { position: relative; width: 100%; max-width: 480px; max-height: calc(100% - 20px); overflow: auto; padding: 28px 30px 30px; border-radius: 32px; background: #fff; text-align: center; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); animation: cel-in .6s var(--ease); outline: none; }
.lx-celebrate__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); font-size: 18px; }
.lx-celebrate__aibo { width: 130px; margin: -6px auto 4px; }
.lx-celebrate__kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--a2); }
.lx-celebrate h2 { font-size: 40px; font-weight: 700; margin: 4px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-celebrate__text { color: var(--muted); }
.lx-celebrate__text b { color: var(--ink); }
.lx-celebrate__badge { display: inline-flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 12px 18px 12px 12px; border-radius: 20px; background: #FFF8E8; border: 1px solid #FFE7B0; text-align: left; animation: pop .6s .3s var(--ease) backwards; }
.lx-celebrate__badge .ac-award__medal { animation: medal 1.8s .4s ease-in-out infinite; }
.lx-celebrate__badge small { display: block; font-size: 12px; font-weight: 800; color: #A86400; }
.lx-celebrate__badge b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.lx-celebrate__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
.lx-celebrate__stats span { padding: 10px 6px; border-radius: 14px; background: var(--bg); }
.lx-celebrate__stats b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-celebrate__stats small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lx-celebrate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@keyframes fall { 0% { transform: translateY(-20px) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(var(--r)); opacity: .9; } }
@keyframes cel-in { 0% { transform: scale(.7) translateY(30px); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
@keyframes medal { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-10deg) scale(1.1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .lx-q__opts--3 { grid-template-columns: 1fr; }
  .lx-lessonbar { top: calc(var(--nav-h) + 6px); padding: 10px 12px; }
  .lx-lessonbar__steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lx-lessonbar__steps button { flex: none; }
  .lx-scenario { flex-direction: column; }
  .lx-msg p { max-width: 100%; }
  .lx-celebrate h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-confetti { display: none; }
}

/* keep wide content (like the scrolling step chips) inside the column */
.lx-body { grid-template-columns: minmax(0, 1fr) 360px; }
.lx-body > * { min-width: 0; }
@media (max-width: 1100px) { .lx-body { grid-template-columns: minmax(0, 1fr); } }
.lx-lesson-main { grid-template-columns: minmax(0, 1fr); }

/* =========================================================
   Courses 2–6 additions: pictures, more buckets, model
   training, pixel painting, certificate, academy goal
   ========================================================= */
.lx-pic { flex: none; width: 52px; height: 52px; line-height: 0; }
.lx-pic svg { width: 100%; height: 100%; }
.lx-sort__item .lx-pic { margin-right: -2px; }
.lx-spot__opt .lx-pic { width: 44px; height: 44px; margin-top: -4px; }
.lx-activity__illo { max-width: 420px; margin: 0 0 16px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lx-bucket--2 { border-color: #BDEBD7; color: #0E8A5F; background: #fff; }
.lx-bucket--2:hover { background: var(--good); border-color: var(--good); color: #fff; transform: translateY(-2px); }
.lx-bucket--3 { border-color: #FFC9DD; color: #C2185B; background: #fff; }
.lx-bucket--3:hover { background: #FF5F8F; border-color: #FF5F8F; color: #fff; transform: translateY(-2px); }

/* train a model */
.lx-train { display: grid; gap: 16px; }
.lx-train__step { padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #FBFCFF; }
.lx-train__step.is-locked { opacity: .6; }
.lx-train__step h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.lx-train__step h4 > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 14px; }
.lx-train__step h4 small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 700; }
.lx-train__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx-train__tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.lx-tcard { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); transition: border-color .25s, background .25s; }
.lx-tcard.is-wrong { border-color: #FF5F6D; background: #FFF4F5; animation: shake .4s; }
.lx-tcard.is-ok { border-color: var(--good); background: #F2FBF7; }
.lx-tcard__f { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.lx-tcard__f b { color: var(--ink); }
.lx-tcard__btns, .lx-tcard__pred { grid-column: 1 / -1; }
.lx-tcard__btns { display: flex; gap: 6px; }
.lx-tcard__pred { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lx-tcard__pred b { color: var(--ink); }
.lx-tag { flex: 1; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.lx-tag:hover { border-color: var(--a2); color: var(--a2); }
.lx-tag.is-on { color: #fff; }
.lx-tag--0.is-on { background: #FF5F6D; border-color: #FF5F6D; }
.lx-tag--1.is-on { background: #E0A800; border-color: #E0A800; }
.lx-train__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lx-chart { width: 100%; max-width: 460px; height: auto; display: block; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.lx-chart__axis { font-family: var(--font-body); font-size: 12px; font-weight: 800; fill: var(--muted); }
.lx-chart__lbl { font-family: var(--font-body); font-size: 10px; font-weight: 800; }
.lx-chart__q { font-family: var(--font-body); font-size: 10px; font-weight: 800; fill: #fff; }

/* pixel painting */
.lx-pixels__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lx-pixels__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lx-pixels__legend i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); }
.lx-pixels__legend b { color: var(--ink); font-family: ui-monospace, monospace; }
.lx-pixels__wrap { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.lx-pixels__grid { display: grid; gap: 3px; width: min(320px, 100%); padding: 8px; border-radius: 16px; background: #EEF1FA; }
.lx-px { aspect-ratio: 1; border-radius: 5px; background: #fff; font-family: ui-monospace, monospace; font-weight: 800; font-size: 14px; color: var(--muted); transition: background .25s, transform .15s; }
.lx-px:hover:not(.is-on) { transform: scale(1.08); background: #E3E9FF; }
.lx-px.is-on { cursor: default; animation: pop .3s var(--ease); }
.lx-pixels__side { display: grid; gap: 12px; align-content: start; flex: 1; min-width: 200px; }
.lx-pixels__reveal { padding: 14px 16px; border-radius: 16px; background: #E3F8EF; color: #0B5E41; font-weight: 700; font-size: 15px; line-height: 1.5; animation: pop .4s var(--ease); }

/* academy goal banner */
.lx-goal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding: 16px 20px; border-radius: 22px; background: #FFF8E8; border: 1px solid #FFE7B0; }
.lx-goal b { display: block; font-size: 15.5px; }
.lx-goal small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.lx-goal > span:nth-child(2) { flex: 1; min-width: 220px; }
.lx-goal__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 22px; background: conic-gradient(from 200deg, #FFC84A, #FF8A1A, #FFC84A, #FFE58A, #FFC84A); }
.lx-goal__bar { width: 200px; }
.lx-goal.is-done { background: #E9FAF2; border-color: #C9EEDD; transition: transform .25s var(--ease); }
.lx-goal.is-done:hover { transform: translateY(-2px); }

/* certificate */
.lx-cert-wrap { margin-bottom: 26px; }
.lx-cert { padding: 10px; border-radius: 26px; background: conic-gradient(from 120deg, #2FE3F5, #4F7BFF, #8B5CFF, #FFB020, #2FE3F5); box-shadow: var(--shadow-lg); }
.lx-cert__inner { position: relative; padding: 28px 32px; border-radius: 18px; background: #FFFDF7; text-align: center; overflow: hidden; }
.lx-cert__inner::before { content: ""; position: absolute; inset: 10px; border: 2px dashed #E8DCC0; border-radius: 12px; pointer-events: none; }
.lx-cert__top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.lx-cert__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.lx-cert__logo .logo-mark { width: 30px; height: 30px; }
.lx-cert__seal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-size: 26px; background: conic-gradient(from 200deg, #FFC84A, #FF8A1A, #FFC84A, #FFE58A, #FFC84A); box-shadow: 0 0 0 5px #FFF4DB; }
.lx-cert__kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #A86400; margin-top: 4px; }
.lx-cert__small { font-size: 14.5px; color: var(--muted); max-width: 30em; margin: 8px auto 0; }
.lx-cert__name { font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); font-weight: 700; margin: 6px 0 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-cert__title { display: inline-block; margin-top: 10px; padding: 6px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.lx-cert__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.lx-cert__stats b { color: var(--ink); font-size: 16px; }
.lx-cert__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-top: 14px; position: relative; }
.lx-cert__foot > span { display: grid; gap: 2px; font-size: 13px; }
.lx-cert__foot small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.lx-cert__sign { font-family: "Fredoka", cursive; font-size: 24px; color: var(--a2, var(--blue)); border-bottom: 2px solid #E8DCC0; line-height: 1.1; }
.lx-cert__aibo { width: 70px; }
.lx-celebrate__card--wide { max-width: 640px; }
.lx-celebrate__card--wide .lx-cert { margin: 16px 0 20px; text-align: center; }

@media (max-width: 720px) {
  .lx-train__cards, .lx-train__tests { grid-template-columns: 1fr 1fr; }
  .lx-goal__bar { width: 100%; }
  .lx-cert__inner { padding: 22px 18px; }
  .lx-cert__foot { grid-template-columns: 1fr 1fr; }
  .lx-cert__aibo { display: none; }
}
@media (max-width: 480px) {
  .lx-train__cards, .lx-train__tests { grid-template-columns: 1fr; }
  .lx-sort__item .lx-pic { width: 44px; height: 44px; }
}
.lx-progress-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.lx-progress-grid > * { min-width: 0; }
@media (max-width: 1100px) { .lx-progress-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .lx-prow { gap: 10px; padding: 8px 10px 8px 8px; } .lx-prow__dots span { width: 18px; } .lx-prow__pct { min-width: 0; font-size: 17px; } }

/* =========================================================
   Master AI Tools: projects, playground, studios, dashboard
   ========================================================= */
/* playground call-to-action (academy home + AI Lab) */
.lx-playcta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding: 20px 24px; border-radius: 24px; background: var(--grad-soft); border: 1px solid #E3E6FB; transition: transform .25s var(--ease), box-shadow .25s; }
.lx-playcta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lx-playcta > span:nth-child(2) { flex: 1; min-width: 240px; }
.lx-playcta b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.lx-playcta small { display: block; color: var(--muted); font-size: 14px; }
.lx-playcta__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 18px; background: var(--grad); color: #fff; font-size: 26px; }
#view-lab .lx-playcta { margin: 0; }

/* project card on course page */
.lx-projcard { display: grid; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, #3A2CB0 0%, #1A2170 50%, #0C1140 100%); color: #fff; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease); }
.lx-projcard:hover { transform: translateY(-3px); }
.lx-projcard__top { display: flex; align-items: center; gap: 10px; }
.lx-projcard__top small { flex: 1; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8FE9F5; }
.lx-projcard__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.16); font-size: 20px; }
.lx-projcard b { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.lx-projcard__goal { font-size: 14px; color: #C7CFF5; }
.lx-projcard__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #7FF0FF; }

/* project page */
.lx-project { padding-top: 28px; padding-bottom: 80px; display: grid; gap: 22px; }
.lx-project__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.lx-sim-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: #FFF8E8; border: 1px solid #FFE7B0; font-size: 14.5px; color: #6B4A00; }
.lx-sim-note > .lx-ic { font-size: 20px; color: #E08A00; margin-top: 1px; }
.lx-brief { position: sticky; top: calc(var(--nav-h) + 16px); }
.lx-brief .panel__title { margin-bottom: 12px; }
.lx-brief__steps { display: grid; gap: 10px; }
.lx-brief__steps li { display: flex; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.lx-brief__steps span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 12px; font-weight: 800; }
.lx-brief__h { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.lx-brief__checks { display: grid; gap: 8px; }
.lx-brief__checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.lx-brief__checks li > span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); color: #fff; font-size: 12px; }
.lx-brief__checks li.is-ok { color: var(--ink); }
.lx-brief__checks li.is-ok > span { background: var(--good); border-color: var(--good); }
.lx-studio-wrap { min-width: 0; }
.lx-savebar__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* playground hub */
.lx-play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lx-play { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.lx-play:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lx-play__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 24px; }
.lx-play__kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--a2); }
.lx-play b { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.lx-play__text { color: var(--muted); font-size: 14px; flex: 1; }
.lx-play__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- studio building blocks ---------- */
.st { display: grid; gap: 18px; }
.st-step { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.st-step.is-done { border-color: #C9EEDD; }
.st-step__title { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.st-step__title > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 15px; }
.st-step.is-done .st-step__title > span { background: var(--good); }
.st-field { display: grid; gap: 6px; min-width: 0; }
.st-field label { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.st-field label small { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.st input[type="text"], .st textarea, .st select { width: 100%; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #FBFCFF; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.st select { width: auto; padding: 6px 10px; }
.st textarea { resize: vertical; }
.st input[type="text"]:focus, .st textarea:focus, .st select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,108,255,.14); }
.st-hint { font-size: 13.5px; color: var(--muted); }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: left; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.st-chip:hover:not(:disabled) { border-color: var(--a2, var(--blue)); transform: translateY(-1px); }
.st-chip:disabled { opacity: .45; cursor: default; }
.st-chip.is-on { background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; color: #fff; }
.st-chip .lx-pic { width: 26px; height: 26px; }
.st-chip--big { min-height: 52px; padding: 8px 18px; font-size: 15px; }
.st-chip--icon { padding: 6px 10px; font-size: 18px; }
.st-example { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #FFE9A8; color: #6B4A00; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.st-exbox { padding: 14px 16px; border-radius: 18px; border: 2px dashed #FFD978; background: #FFFCF2; display: grid; gap: 10px; min-width: 0; }
.st-exbox__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-exbox__head small { font-size: 12.5px; color: #8A6A1A; font-weight: 600; }
.st-preview { padding: 16px; border-radius: 18px; background: #0C1140; color: #fff; display: grid; gap: 10px; min-width: 0; }
.st-preview__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-preview__head b { flex: 1; font-size: 14px; }
.st-preview .st-hint { color: #A9B3E6; }
.st-prompt { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; line-height: 1.6; color: #BFF8FF; }
.st-copy { height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 12.5px; font-weight: 800; }
.st-copy:hover { background: rgba(255,255,255,.26); }
.st-score { font-weight: 800; color: #FFD25A; font-variant-numeric: tabular-nums; }
.st-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.st-count.is-ok { color: #0E8A5F; }
.st-count.is-bad { color: #C2410C; }
.st-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.st-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 14px; flex: none; }
.st-x:hover { background: #FFE8EA; color: #D63447; }

/* prompt studio */
.st-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-bubble { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1.5px solid var(--line); font-size: 15px; line-height: 1.55; display: grid; gap: 8px; }
.st-bubble ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.st-bubble--plain { color: var(--muted); }

/* story studio */
.st-scene { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 16px; }
.st-scene__ground { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 50%; border-radius: 50%; background: rgba(255,255,255,.35); }
.st-scene__hero { position: absolute; left: 50%; bottom: 10%; width: 38%; transform: translateX(-50%); animation: float 4s ease-in-out infinite; }
.st-scene__helper { position: absolute; right: 8%; bottom: 8%; width: 22%; }
.st-scene .lx-pic, .st-scene .lx-pic svg { width: 100%; height: auto; }
.st-scene .pic rect:first-child { fill: transparent; }
.st-deco { position: absolute; display: block; }
.st-deco--star { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.st-deco--bubble { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.st-deco--tree { width: 18px; height: 26px; border-radius: 50% 50% 4px 4px; background: rgba(20,140,90,.45); }
.st-deco--book { width: 16px; height: 12px; border-radius: 2px; background: rgba(255,138,26,.45); }
.st-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-page { display: grid; gap: 10px; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); background: #FBFCFF; }
.st-page__body { display: grid; gap: 6px; }
.st-page__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-book { display: grid; gap: 12px; justify-items: center; }
.st-book__page { width: min(460px, 100%); padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; }
.st-book__page p { font-family: var(--font-display); font-size: 19px; line-height: 1.5; text-align: center; }
.st-book__cover { text-align: center; background: linear-gradient(160deg, #fff, #F1ECFF); }
.st-book__cover h4 { font-size: 26px; }
.st-book__cover p { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.st-book__nav { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--muted); }

/* image studio */
.st-sketch-wrap { line-height: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.st-sketch-wrap svg { width: 100%; height: auto; }
.st-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-shot { position: relative; margin: 0; display: grid; gap: 6px; }
.st-shot figcaption { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.st-shot .st-x { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); }

/* video studio */
.st-timeline { position: relative; display: flex; gap: 3px; align-items: center; height: 38px; padding: 4px; border-radius: 12px; background: var(--bg); }
.st-timeline__seg { display: grid; place-items: center; height: 100%; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 800; min-width: 18px; transition: width .3s var(--ease); }
.st-timeline__seg--0 { background: #4F7BFF; } .st-timeline__seg--1 { background: #8B5CFF; } .st-timeline__seg--2 { background: #16C7E0; } .st-timeline__seg--3 { background: #FF8FB0; }
.st-timeline b { margin-left: auto; padding: 0 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-timeline b.is-over { color: #D63447; }
.st-scenes { display: grid; gap: 12px; }
.st-scenecard { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: #FBFCFF; }
.st-scenecard__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-scenecard__head > b { font-family: var(--font-display); font-size: 17px; }
.st-scenecard__head input[type="range"] { accent-color: var(--blue); width: 110px; }
.st-scenecard__tools { margin-left: auto; display: flex; gap: 4px; }
.st-scenecard__tools button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.st-scenecard__tools button:disabled { opacity: .4; }
.st-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.st-panel { display: grid; gap: 6px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.st-panel.is-playing { border-color: var(--a2, var(--blue)); box-shadow: 0 0 0 3px rgba(59,108,255,.2); }
.st-panel__frame { position: relative; aspect-ratio: 16 / 9; padding: 26px 10px 10px; border-radius: 10px; background: linear-gradient(160deg, #EEF2FF, #F6EEFF); display: grid; place-items: center; text-align: center; }
.st-panel__frame p { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.st-panel__shot { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: #13195A; color: #7FF5FF; font-size: 10.5px; font-weight: 800; }
.st-panel__cap { font-size: 12.5px; color: var(--muted); font-style: italic; }
.st-panel small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.st-player { display: grid; gap: 12px; }
.st-player__screen { position: relative; aspect-ratio: 16 / 9; max-width: 560px; padding: 36px 24px 24px; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, #3A2CB0 0%, #1A2170 50%, #0C1140 100%); color: #fff; display: grid; align-content: center; gap: 14px; text-align: center; }
.st-player__visual { font-family: var(--font-display); font-size: 20px; }
.st-player__cap { font-size: 15px; color: #C7CFF5; background: rgba(0,0,0,.25); padding: 8px 12px; border-radius: 10px; }
.st-player__time { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 800; color: #FFD25A; font-variant-numeric: tabular-nums; }

/* research studio */
.st-sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.st-source { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #FBFCFF; }
.st-source p { font-size: 13.5px; color: var(--muted); }
.st-source.is-ok { border-color: #C9EEDD; background: #F2FBF7; }
.st-source.is-bad { border-color: #FFC9A8; background: #FFF8F3; }
.st-facts { display: grid; gap: 8px; }
.st-fact { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: left; font-weight: 700; font-size: 14.5px; transition: border-color .2s, background .2s; }
.st-fact small { font-size: 12px; font-weight: 600; color: var(--muted); }
.st-fact:hover { border-color: var(--a2, var(--blue)); }
.st-fact.is-on { border-color: var(--good); background: #F2FBF7; }
.st-fact.is-bad { border-color: #FF5F6D; background: #FFF4F5; }
.st-fact.is-bad small { color: #D63447; font-weight: 800; }
.st-report { padding: 22px 26px; border-radius: 18px; background: #FFFDF7; border: 1px solid #F0E6CC; display: grid; gap: 10px; }
.st-report h4 { font-size: 22px; }
.st-report h5 { font-size: 14px; margin: 6px 0 0; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font-body); }
.st-report ul { padding-left: 18px; list-style: disc; font-size: 14px; }

/* presentation studio */
.st-deck { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-deck__list { display: grid; gap: 6px; }
.st-deck__list button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); text-align: left; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.st-deck__list button span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 800; }
.st-deck__list button.is-on { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.st-deck__list button.is-on span { color: var(--a2); }
.st-deck__edit { display: grid; gap: 12px; min-width: 0; }
.st-bullet { display: flex; align-items: center; gap: 8px; }
.st-bullet input { flex: 1; }
.st-slide { position: relative; aspect-ratio: 16 / 9; padding: 18px 22px; border-radius: 16px; background: linear-gradient(160deg, #fff 0%, #F3F0FF 100%); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 10px; overflow: hidden; }
.st-slide__head { display: flex; align-items: center; gap: 10px; }
.st-slide h4 { font-size: 20px; line-height: 1.2; }
.st-slide ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.st-slide__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--a1, var(--cyan)), var(--a2, var(--violet))); color: #fff; font-size: 18px; }
.st-slide--cover { align-content: center; justify-items: center; text-align: center; background: radial-gradient(120% 140% at 100% 0%, #3A2CB0 0%, #1A2170 50%, #0C1140 100%); color: #fff; }
.st-slide--cover h4 { font-size: 22px; }
.st-slide--cover p { color: #C7CFF5; font-size: 14px; }
.st-slide__ex { position: absolute; right: 10px; bottom: 10px; }
.st-slide--big { width: min(900px, 92vw); padding: 36px 44px; }
.st-slide--big h4 { font-size: clamp(24px, 3.4vw, 40px); }
.st-slide--big ul { font-size: clamp(16px, 2vw, 24px); gap: 10px; }
.st-slide--big .st-slide__icon { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.st-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.st-strip__item { flex: none; width: 200px; }
.st-strip__item .st-slide { padding: 10px 12px; gap: 6px; }
.st-strip__item .st-slide h4 { font-size: 12.5px; }
.st-strip__item .st-slide ul { font-size: 10.5px; gap: 1px; padding-left: 14px; }
.st-strip__item .st-slide__icon { width: 22px; height: 22px; font-size: 12px; border-radius: 7px; }
.st-strip__item .st-slide__ex { display: none; }
.st-present { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; align-content: center; gap: 16px; padding: 20px; background: rgba(8, 11, 40, .92); }
.st-present__notes { max-width: 900px; color: #C7CFF5; font-size: 15px; text-align: center; }
.st-present__nav { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }

/* dashboard: my academies */
.live-list { display: grid; gap: 14px; }
.live { display: grid; gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px solid var(--line); background: #FBFCFF; }
.live__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 21px; background: linear-gradient(135deg, var(--a1), var(--a2)); flex: none; }
.live__title { flex: 1; min-width: 160px; }
.live__title b { display: block; font-size: 16px; }
.live__title small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.live__pct { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--a2); font-variant-numeric: tabular-nums; }
.live .bar__fill { background: linear-gradient(90deg, var(--a1), var(--a2)); }
.live__courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live__courses a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; transition: border-color .2s, transform .2s var(--ease); min-width: 0; }
.live__courses a:hover { border-color: var(--a2); transform: translateY(-2px); }
.live__n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: #EEF1FA; color: var(--muted); font-size: 12px; font-weight: 800; }
.live__courses a.is-wip .live__n { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.live__courses a.is-done .live__n { background: var(--good); color: #fff; }
.live__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live__p { color: var(--muted); font-variant-numeric: tabular-nums; }
.live__badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live__blabel { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.live__badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F0F2FA; color: #AEB5D3; font-size: 15px; border: 1.5px dashed #D9DDF0; }
.live__badge.is-earned { color: #fff; border: 0; background: conic-gradient(from 200deg, #FFC84A, #FF8A1A, #FFC84A, #FFE58A, #FFC84A); box-shadow: 0 0 0 3px #FFF4DB; }

@media (max-width: 1100px) {
  .lx-project__grid { grid-template-columns: minmax(0, 1fr); }
  .lx-brief { position: static; }
  .lx-play-grid { grid-template-columns: repeat(2, 1fr); }
  .live__courses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .st-row, .st-grid2, .st-compare, .st-pages, .st-sources, .st-deck { grid-template-columns: minmax(0, 1fr); }
  .st-gallery { grid-template-columns: repeat(2, 1fr); }
  .lx-play-grid { grid-template-columns: 1fr; }
  .st-step { padding: 16px; }
  .st-deck__list { display: flex; overflow-x: auto; gap: 6px; }
  .st-deck__list li { flex: none; }
  .live__courses { grid-template-columns: minmax(0, 1fr); }
  .lx-savebar__btns .btn { flex: 1; }
}
/* keep new panels inside their columns */
.dash__grid { grid-template-columns: minmax(0, 1fr) 360px; }
.dash__main > *, .dash__side > * { min-width: 0; }
@media (max-width: 1100px) { .dash__grid { grid-template-columns: minmax(0, 1fr); } }
.live__courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live__courses li { min-width: 0; }
@media (max-width: 1100px) { .live__courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .live__courses { grid-template-columns: minmax(0, 1fr); } }
.st-board { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.st-panel, .st-panel__frame { min-width: 0; }
.st-panel__frame { overflow: hidden; }
.st-panel__frame p, .st-panel__cap { overflow-wrap: anywhere; }

/* =========================================================
   AI Agent Builder (Build AI Agents academy)
   ========================================================= */
.lx-playcta--lab { background: radial-gradient(120% 160% at 100% 0%, #EDE6FF 0%, #F6F2FF 60%, #FBF9FF 100%); border-color: #E2D8FF; }
.lx-playcta--lab .lx-playcta__icon { background: linear-gradient(135deg, #8E7BFF, #C04BFF); }
#view-lab .lx-playcta + .lx-playcta { margin-top: 0; }
#view-lab .area-body > .lx-playcta { margin-top: 0; }

.ag-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-tpl { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.ag-tpl:hover { transform: translateY(-2px); border-color: var(--a2); box-shadow: var(--shadow-sm); }
.ag-tpl.is-on { border-color: var(--a2); background: color-mix(in srgb, var(--a1) 8%, white); }
.ag-tpl .lx-pic { width: 44px; height: 44px; }
.ag-tpl b { display: block; font-size: 14.5px; }
.ag-tpl small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.ag-bug { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: #FFF1E6; border: 1px solid #FFD3B0; color: #7A3410; font-size: 14.5px; }
.ag-bug > .lx-ic { font-size: 22px; color: #E06A00; }
.ag-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.ag-side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 10px; }
.ag-side__label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-card { display: grid; gap: 12px; padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #6A3CE0 0%, #2A2C9C 50%, #0C1140 100%); box-shadow: var(--shadow-lg); }
.ag-card__pic { width: 72px; height: 72px; line-height: 0; }
.ag-card__pic .lx-pic, .ag-card__pic svg { width: 100%; height: 100%; }
.ag-card__body b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ag-card__body small { display: block; font-size: 13px; color: #B9C2F0; font-weight: 700; }
.ag-card__body p { margin-top: 8px; font-size: 14px; color: #E1E6FF; line-height: 1.5; }
.ag-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ag-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; }
.ag-tag--safe { background: rgba(20,195,142,.25); color: #B8FFE4; }
.ag-warn { display: flex; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #FFE8EA; color: #A3122A; font-size: 13.5px; font-weight: 600; line-height: 1.45; }

.ag-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ag-tool { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.ag-tool:hover { transform: translateY(-2px); border-color: var(--a2); }
.ag-tool.is-on { border-color: var(--good); background: #F2FBF7; }
.ag-tool__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 20px; }
.ag-tool b { font-size: 15.5px; }
.ag-tool small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ag-tool__sw { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #EEF1FA; color: var(--muted); }
.ag-tool.is-on .ag-tool__sw { background: var(--good); color: #fff; }

.ag-flow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.ag-palette { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--bg); }
.ag-pblock { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; text-align: left; transition: transform .2s var(--ease), border-color .2s; }
.ag-pblock:hover:not(:disabled) { transform: translateX(3px); border-color: var(--a2); }
.ag-pblock:disabled { opacity: .45; cursor: default; }
.ag-pblock small { font-weight: 600; color: var(--muted); }
.ag-chain { display: grid; gap: 0; counter-reset: none; }
.ag-node { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 18px; border-radius: 14px; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 14px; animation: pop .3s var(--ease); }
.ag-node:not(:last-child)::after { content: ""; position: absolute; left: 26px; bottom: -18px; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(var(--a1), var(--a2)); }
.ag-node:not(:last-child)::before { content: ""; position: absolute; left: 21px; bottom: -20px; border: 6.5px solid transparent; border-top-color: var(--a2); border-bottom: 0; }
.ag-node.is-bad { border-color: #FF8A5B; background: #FFF8F3; }
.ag-node__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; font-size: 12px; font-weight: 800; }
.ag-node > .lx-ic { color: var(--a2); font-size: 18px; }
.ag-node__t { flex: 1; min-width: 0; }
.ag-node__t small { display: block; font-size: 12px; font-weight: 700; color: #C2410C; }
.ag-node__tools { display: flex; gap: 4px; }
.ag-node__tools button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg); font-size: 11px; color: var(--muted); }
.ag-node__tools button:disabled { opacity: .35; }
.ag-b--read .lx-ic, .ag-b--reply .lx-ic { color: #14B87F; }
.ag-b--permission .lx-ic { color: #E06A00; }

.ag-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ag-run__label { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ag-trace { padding: 14px; border-radius: 18px; background: var(--bg); }
.ag-trace ol { display: grid; gap: 8px; }
.ag-trace li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ag-trace li.is-warn { color: #C2410C; }
.ag-dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--a2); font-size: 14px; }
.ag-reply { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 2px dashed #FFD978; background: #FFFCF2; align-content: start; }
.ag-reply__chat { display: grid; gap: 8px; }
.ag-msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.ag-msg--kid { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.ag-msg--bot { background: #fff; border: 1.5px solid var(--line); border-bottom-left-radius: 5px; }
.ag-verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.ag-verdict > span { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 200px; }
.ag-verdict.is-ok { background: #E3F8EF; color: #0B5E41; }
.ag-verdict.is-bad { background: #FFF1E6; color: #8A3410; }
.ag-share { display: grid; gap: 6px; }
.ag-share li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ag-share li.is-ok { color: #0E8A5F; }
.ag-pending { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: #FFF8E8; border: 1px solid #FFE7B0; font-size: 14px; color: #6B4A00; }
.ag-pending > span { flex: 1; min-width: 220px; }

/* lab: saved agents */
.lab-saved__list { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-saved__item { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.lab-saved__item:hover { transform: translateY(-2px); border-color: var(--a2); }
.lab-saved__item.is-on { border-color: var(--a2); background: color-mix(in srgb, var(--a1) 8%, white); }
.lab-saved__item .lx-pic { width: 40px; height: 40px; }
.lab-saved__item b { display: block; font-size: 14px; }
.lab-saved__item small { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .ag-top { grid-template-columns: minmax(0, 1fr); }
  .ag-side { position: static; order: -1; }
  .ag-card { grid-template-columns: auto 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .ag-templates, .ag-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-flow, .ag-run { grid-template-columns: minmax(0, 1fr); }
  .ag-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ag-templates, .ag-tools, .ag-palette { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Digital Creators: Creator Studio tools (cs-*)
   ========================================================= */
.lx-playcta--studio { background: radial-gradient(120% 160% at 100% 0%, #FFE6F1 0%, #FFF3EC 60%, #FFFAF6 100%); border-color: #FFD6E6; }
.lx-playcta--studio .lx-playcta__icon { background: linear-gradient(135deg, #FF5FA2, #FF8A5B); }
.cs-hub .lx-play__foot .status { font-size: 12px; }

.cs { gap: 18px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cs-edit { display: grid; gap: 16px; min-width: 0; }
.cs-preview { position: sticky; top: 90px; display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: #0C1140; color: #fff; min-width: 0; box-shadow: var(--shadow-sm); }
.cs-preview > .st-hint { color: #B9C2EE; margin: 0; }
.cs-preview__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-preview__head > b { flex: 1; font-size: 14px; }
.cs-preview .st-chip { min-height: 32px; padding: 4px 12px; }
.cs-item { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #F7F9FF; border: 1px solid var(--line); min-width: 0; }
.cs-item__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-item__head > b { flex: 1; font-size: 14px; }
.cs-tools { display: inline-flex; gap: 4px; }
.cs-tools button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 11px; color: var(--ink-2); }
.cs-tools button:hover:not(:disabled) { border-color: var(--a2, var(--blue)); }
.cs-tools button:disabled { opacity: .35; cursor: not-allowed; }
.cs-tools .icon { width: 14px; height: 14px; }
.cs-swatch { width: 18px; height: 18px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cs-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: #FFF6E5; border: 1px solid #FFE1A8; font-size: 14px; color: #5A3A00; }
.cs-note .icon { flex: none; color: #E08A00; margin-top: 2px; }
.cs-check { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.cs-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.cs-row3 { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* --- website preview --- */
.cs-browser { border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); transition: max-width .35s var(--ease); max-width: 100%; margin: 0 auto; width: 100%; }
.cs-browser.is-narrow { max-width: 300px; }
.cs-browser__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #E4E9FB; }
.cs-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F8F; }
.cs-browser__bar i:nth-child(2) { background: #FFB020; }
.cs-browser__bar i:nth-child(3) { background: #14B87F; }
.cs-browser__bar span { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.cs-site { background: var(--wbg); color: var(--wink); font-size: 13px; max-height: 520px; overflow: auto; }
.cs-site__nav { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.cs-site__nav b { font-family: var(--font-display); font-size: 15px; color: var(--w1); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cs-site__nav span { display: flex; gap: 10px; }
.cs-site__nav em { font-style: normal; font-size: 11.5px; font-weight: 700; opacity: .7; }
.cs-site__hero { margin: 12px; padding: 22px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--w1), var(--w2)); color: #fff; }
.cs-site__hero h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.cs-site__hero p { margin: 0 0 12px; opacity: .92; line-height: 1.5; overflow-wrap: anywhere; }
.cs-site__btn { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--w1); font-weight: 800; font-size: 12px; }
.cs-site__secs { display: grid; gap: 10px; padding: 0 12px 12px; }
.cs-site__secs--cards { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cs-site__secs--split .cs-site__sec:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.cs-site__sec { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); min-width: 0; }
.cs-site__secs--cards .cs-site__sec { flex-direction: column; }
.cs-site__secs--split .cs-site__icon { width: 54px; height: 54px; }
.cs-site__sec > div { min-width: 0; }
.cs-site__sec b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.cs-site__sec p { margin: 2px 0 0; line-height: 1.45; opacity: .85; overflow-wrap: anywhere; }
.cs-site__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--w1) 14%, white); color: var(--w1); }
.cs-site__icon .icon { width: 18px; height: 18px; }
.cs-site__foot { padding: 10px; text-align: center; font-size: 11px; background: var(--wink); color: #fff; opacity: .9; }
.cs-browser.is-narrow .cs-site__nav span { display: none; }
.cs-browser.is-narrow .cs-site__secs { grid-template-columns: 1fr; }
.cs-browser.is-narrow .cs-site__secs--split .cs-site__sec:nth-child(even) { flex-direction: row; text-align: left; }

/* --- game --- */
.cs-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-opts > small { grid-column: 1 / -1; margin: 0; }
.cs-opt { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 14px; border: 2px solid transparent; min-width: 0; }
.cs-opt.is-correct { border-color: var(--good); background: #E9FBF3; }
.cs-opt input[type="radio"] { width: 18px; height: 18px; flex: none; accent-color: var(--good); }
.cs-game { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #1A2170, #3A2CB0); min-height: 260px; align-content: start; }
.cs-game--empty { place-content: center; text-align: center; color: #C9D2FF; }
.cs-game__start { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px 8px; }
.cs-game__start .lx-pic { width: 76px; height: 76px; }
.cs-game__start h4 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.cs-game__start p { margin: 0 0 6px; color: #C9D2FF; }
.cs-game__hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 13px; }
.cs-game__hud > span { display: inline-flex; align-items: center; gap: 6px; }
.cs-game__hud .lx-pic { width: 30px; height: 30px; }
.cs-hearts i { font-style: normal; color: rgba(255,255,255,.25); font-size: 18px; }
.cs-hearts i.on { color: #FF5F8F; }
.cs-path { display: flex; gap: 6px; }
.cs-path i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.cs-path i.done { background: var(--good); }
.cs-path i.now { background: #FFD25A; }
.cs-game__q { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.cs-game__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-game__opt { padding: 12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; text-align: left; overflow-wrap: anywhere; transition: background .2s, border-color .2s; }
.cs-game__opt:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.cs-game__opt.is-ok { border-color: #3EE0A6; background: rgba(20,184,127,.35); }
.cs-game__opt.is-no { border-color: #FF8FA3; background: rgba(255,95,109,.3); }
.cs-game__guess { display: flex; gap: 8px; }
.cs-game__guess input { flex: 1; min-width: 0; }
.cs-game__fb { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.cs-game__fb.is-ok { background: rgba(20,184,127,.3); }
.cs-game__fb.is-no { background: rgba(255,95,109,.25); }
.cs-game__next { justify-self: end; }

/* --- ebook --- */
.cs-ebook { display: grid; gap: 10px; }
.cs-ecover, .cs-epage { aspect-ratio: 3 / 4; max-height: 440px; width: 100%; max-width: 330px; margin: 0 auto; border-radius: 6px 16px 16px 6px; box-shadow: inset 8px 0 0 rgba(0,0,0,.12), 0 10px 26px rgba(0,0,0,.35); overflow: hidden; }
.cs-ecover { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: #fff; }
.cs-ecover--comic { color: #3A2A0E; }
.cs-ecover h4 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cs-ecover--comic h4 { text-shadow: none; }
.cs-ecover p { margin: 0; font-weight: 700; opacity: .9; }
.cs-ecover small { font-weight: 800; letter-spacing: .02em; }
.cs-ecover__pic { display: inline-grid; padding: 10px; border-radius: 24px; background: rgba(255,255,255,.85); }
.cs-ecover__pic .lx-pic { width: 78px; height: 78px; }
.cs-epage { position: relative; display: grid; align-content: start; gap: 8px; padding: 26px 22px; background: #FFFDF7; color: #2A2440; overflow-y: auto; }
.cs-epage h5 { margin: 0; font-family: var(--font-display); font-size: 21px; overflow-wrap: anywhere; }
.cs-epage small { color: #8B6FB0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.cs-epage p { margin: 0; line-height: 1.65; font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cs-epage__n { position: absolute; bottom: 10px; right: 16px; font-size: 12px; color: #A49BC0; }
.cs-epage--back { place-content: center; justify-items: center; text-align: center; background: #F3EEFF; }
.cs-toc { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cs-toc button { width: 100%; display: flex; gap: 8px; justify-content: space-between; padding: 8px 4px; border: 0; border-bottom: 1px dashed #D8D0EA; background: none; font: inherit; font-weight: 700; color: #2A2440; text-align: left; }
.cs-toc button:hover { color: var(--blue); }
.cs-toc em { font-style: normal; color: #A49BC0; }
.cs-ebook .st-book__nav { color: #C9D2FF; }

/* --- animation --- */
.cs-scene { position: relative; height: 120px; border-radius: 14px; overflow: hidden; }
.cs-actor { position: absolute; bottom: 10px; display: grid; justify-items: center; gap: 2px; }
.cs-actor .lx-pic { width: 48px; height: 48px; }
.cs-actor .lx-pic svg rect:first-child { fill: transparent; }
.cs-actor em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink); }
.cs-mo--walk { animation: cs-walk 3s ease-in-out infinite alternate; }
.cs-mo--jump { animation: cs-jump 1s ease-in-out infinite; }
.cs-mo--fly { animation: cs-fly 3s ease-in-out infinite alternate; }
.cs-mo--spin .lx-pic { animation: cs-spin 2s linear infinite; }
.cs-mo--wave { animation: cs-wave 1.2s ease-in-out infinite; }
.cs-mo--fade { animation: cs-fade 2.5s ease-in-out infinite alternate; }
@keyframes cs-walk { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@keyframes cs-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-38px); } }
@keyframes cs-fly { from { transform: translate(-20px, 0); } to { transform: translate(50px, -50px); } }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@keyframes cs-wave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes cs-fade { from { opacity: .1; } to { opacity: 1; } }
.cs-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cs-char__pic .lx-pic { width: 36px; height: 36px; }
.cs-sceneedit { grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
.cs-sceneedit__body { display: grid; gap: 8px; min-width: 0; }
.cs-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cs-panel { display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: #fff; border: 2px solid var(--line); min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.cs-panel .cs-scene { height: 90px; }
.cs-panel .cs-actor .lx-pic { width: 36px; height: 36px; }
.cs-panel b { font-size: 13px; overflow-wrap: anywhere; }
.cs-panel small { font-size: 12px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.cs-panel.is-playing { border-color: #FF5FA2; transform: translateY(-3px); }
.cs-player { display: grid; gap: 12px; }
.cs-player__screen { position: relative; padding: 12px; border-radius: 20px; background: #0C1140; color: #fff; display: grid; gap: 8px; }
.cs-player__screen .cs-scene { height: 220px; }
.cs-player__screen .cs-actor .lx-pic { width: 72px; height: 72px; }
.cs-player__cap { margin: 0; text-align: center; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.cs-player__n { position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 999px; background: rgba(12,17,64,.7); font-size: 12px; font-weight: 800; }

/* --- graphic design --- */
.cs-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #EEF1FD; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.cs-tabs button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; font-weight: 800; font-size: 14px; color: var(--muted); }
.cs-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.cs-pal { display: flex; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cs-pal span { flex: 1; height: 54px; display: flex; align-items: flex-end; padding: 4px 6px; }
.cs-pal small { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 6px; background: rgba(255,255,255,.85); color: var(--ink); }
.cs-colbtn { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.cs-colbtn.is-on { box-shadow: 0 0 0 3px var(--ink); }
.cs-brandcard { display: grid; place-items: center; padding: 22px; border-radius: 18px; min-height: 140px; }
.cs-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cs-logo--side { flex-direction: row; text-align: left; }
.cs-logo__mark { position: relative; display: inline-grid; place-items: center; }
.cs-logo__icon { position: absolute; inset: 0; display: grid; place-items: center; }
.cs-logo__icon .icon { width: 40%; height: 40%; stroke-width: 2.4; }
.cs-logo__text b { display: block; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.cs-logo--big .cs-logo__text b { font-size: 26px; }
.cs-logo__text small { display: block; font-size: 12.5px; opacity: .8; margin-top: 3px; }
.cs-poster { width: 100%; max-width: 330px; margin: 0 auto; display: block; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.35); touch-action: none; user-select: none; }

/* --- product --- */
.cs-planstep { display: flex; align-items: center; gap: 8px; }
.cs-planstep input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--good); }
.cs-planstep input[type="text"] { flex: 1; min-width: 0; }
.cs-planstep__n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #EEF1FD; font-weight: 800; font-size: 12.5px; }
.cs-product { display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); }
.cs-product__top { display: flex; align-items: center; gap: 12px; }
.cs-product__top small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.cs-product__top b { display: block; font-family: var(--font-display); font-size: 20px; overflow-wrap: anywhere; }
.cs-product__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #FF5FA2, #FF8A5B); color: #fff; }
.cs-product__pitch { margin: 0; line-height: 1.55; font-size: 14px; overflow-wrap: anywhere; }
.cs-product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cs-product li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cs-product li .icon { flex: none; color: var(--good); width: 18px; height: 18px; margin-top: 1px; }
.cs-product__bar { display: grid; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.cs-product__note { color: var(--muted); font-size: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }

@media (max-width: 960px) {
  .cs-split { grid-template-columns: minmax(0, 1fr); }
  .cs-preview { position: static; }
}
@media (max-width: 560px) {
  .cs-opts, .cs-game__opts { grid-template-columns: minmax(0, 1fr); }
  .cs-sceneedit { grid-template-columns: minmax(0, 1fr); }
  .cs-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-chars { grid-template-columns: minmax(0, 1fr); }
  .cs-player__screen .cs-scene { height: 170px; }
}

/* =========================================================
   My Portfolio
   ========================================================= */
.pf { padding-top: 34px; padding-bottom: 70px; }
.pf__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.pf__filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.pf__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 13.5px; color: var(--ink-2); transition: border-color .2s, background .2s; }
.pf__chip .icon { width: 16px; height: 16px; }
.pf__chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #EEF1FD; font-size: 12px; text-align: center; }
.pf__chip:hover { border-color: #C8D2FA; }
.pf__chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pf__chip.is-on span { background: rgba(255,255,255,.18); }
.pf__count { margin: 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.pf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pf-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s; }
.pf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,20,64,.1); }
.pf-card__thumb { display: block; }
.pf-card__thumb .thumb { border-radius: 0; }
.pf-card__body { display: grid; gap: 6px; padding: 16px 18px 6px; flex: 1; align-content: start; }
.pf-card__kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pf-card__kind .icon { width: 15px; height: 15px; }
.pf-card__title { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.pf-card__title a:hover { color: var(--blue); }
.pf-card__meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.pf-card__review { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 999px; background: #FFF6E5; color: #8A5A00; font-size: 12px; font-weight: 800; }
.pf-card__review .icon { width: 14px; height: 14px; }
.pf-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px 18px; }
.pf-card__confirm { flex-basis: 100%; font-weight: 800; font-size: 14px; color: #C2253A; }
.pf-card__del { background: #FF5F6D; color: #fff; }
.pf__empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 44px 20px; text-align: center; border-radius: var(--r-lg); background: #fff; border: 2px dashed var(--line); }
.pf__empty h2 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.pf__empty p { margin: 0 0 8px; max-width: 520px; color: var(--muted); }
.pf__empty-aibo { width: 120px; }
.pf__note { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.pf__note .icon { color: var(--good); flex: none; }
.area-hero--portfolio { background: radial-gradient(120% 120% at 85% 0%, #FF5FA2 0%, #8B3CC8 40%, #1A1450 100%); }
@media (max-width: 560px) {
  .pf__grid { grid-template-columns: minmax(0, 1fr); }
  .pf-card__actions .btn { flex: 1; }
}
.pf-card__actions { display: grid; grid-template-columns: 1fr auto; }
.pf-card__actions .btn { justify-content: center; white-space: nowrap; }
.pf-card__confirm { grid-column: 1 / -1; }
.pf-card__actions:has(.pf-card__confirm) { grid-template-columns: 1fr 1fr; }
.cs .lx-pic { display: inline-block; vertical-align: middle; }
.cs-char__pic { display: inline-flex; }
@media (max-width: 720px) {
  .pf__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .pf__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .pf__chip { flex: none; }
  .pf-card__thumb .thumb { max-height: 150px; }
}

/* =========================================================
   Young Entrepreneurs: business studios + simulator (bz-*)
   ========================================================= */
.lx-play--featured { grid-column: 1 / -1; background: radial-gradient(120% 160% at 100% 0%, #FFF0D6 0%, #FFF8EC 60%, #FFFDF8 100%); border-color: #FFE1A8; }
.lx-play--featured b { font-size: 24px; }
.hub-pf { margin-top: 28px; }
.st input[type="number"] { width: 100%; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #FBFCFF; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st input[type="number"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,108,255,.14); }
.bz-num__in { display: flex; align-items: center; gap: 6px; }
.bz-num__in em { font-style: normal; font-weight: 800; font-size: 13px; color: #B07A00; }
.bz-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bz-money-note { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 14px; border-radius: 16px; background: #FFF8E6; border: 1px solid #FFE1A8; font-size: 13.5px; color: #5A3A00; }
.bz-coin { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #FFD25A, #FF8A1A); color: #fff; font-weight: 900; font-size: 12px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.is-up { color: #0E9468; }
.is-down { color: #D8334A; }
.bz-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #FFF3D6; color: #8A5A00; font-weight: 900; font-size: 13px; white-space: nowrap; }
.bz-tag--big { font-size: 16px; padding: 6px 14px; }
.bz-empty { padding: 26px; border-radius: 18px; background: #F7F9FF; border: 2px dashed var(--line); text-align: center; color: var(--muted); font-weight: 700; margin: 0; }

/* sign + product cards */
.bz-sign { display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); border-top: 8px solid var(--b1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.bz-sign__top { display: flex; align-items: center; gap: 12px; }
.bz-sign__top small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.bz-sign__top b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--b1); overflow-wrap: anywhere; }
.bz-sign__mascot { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--b1, #FFB020), var(--b2, #FF7A1A)); color: #fff; }
.bz-sign__mascot .lx-pic { width: 52px; height: 52px; display: inline-block; }
.bz-sign__mascot .lx-pic svg rect:first-child { fill: rgba(255,255,255,.85); }
.bz-sign p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.bz-sign ul, .bz-prod ul, .bz-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bz-sign li, .bz-prod li, .bz-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; overflow-wrap: anywhere; }
.bz-sign li .icon, .bz-prod li .icon, .bz-plan li .icon { flex: none; width: 18px; height: 18px; color: var(--good); margin-top: 1px; }
.bz-sign__foot { display: flex; gap: 8px; flex-wrap: wrap; }
.bz-sign__foot span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #F3F5FD; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.bz-sign__foot .icon { width: 14px; height: 14px; }
.bz-prod { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: #fff; color: var(--ink); min-width: 0; }
.bz-prod--compact { padding: 14px; box-shadow: none; }
.bz-prod__top { display: flex; align-items: center; gap: 10px; }
.bz-prod__top > span:nth-child(2) { flex: 1; min-width: 0; }
.bz-prod__top small { display: block; color: var(--muted); font-weight: 800; font-size: 11.5px; }
.bz-prod__top b { display: block; font-family: var(--font-display); font-size: 18px; overflow-wrap: anywhere; }
.bz-prod__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #FFB020, #FF7A1A); color: #fff; }
.bz-prod p { margin: 0; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.bz-prod__nums { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line); }
.bz-prod__nums b { color: var(--ink); }
.bz-prod__nums .is-up b { color: #0E9468; }
.bz-prod__nums .is-down b { color: #D8334A; }
.bz-perunit { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; background: #F7F9FF; }
.bz-perunit.is-up { background: #E9FBF3; }
.bz-perunit.is-down { background: #FFF0F2; }

/* problem -> solution */
.bz-prob.is-picked { border-color: var(--good); background: #F2FCF7; }
.bz-ps { display: grid; gap: 10px; justify-items: stretch; }
.bz-ps__box { padding: 16px; border-radius: 18px; background: #fff; color: var(--ink); display: grid; gap: 6px; }
.bz-ps__box small { font-weight: 900; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #0E9468; }
.bz-ps__box--prob small { color: #D8334A; }
.bz-ps__box b { font-family: var(--font-display); font-size: 18px; overflow-wrap: anywhere; }
.bz-ps__box p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bz-ps__why { display: flex; gap: 6px; color: #8A5A00; font-weight: 700; }
.bz-ps__why .icon { flex: none; width: 16px; height: 16px; }
.bz-ps__arrow { justify-self: center; transform: rotate(90deg); color: #FFD25A; }

/* calculator */
.bz-calc { display: grid; gap: 14px; }
.bz-calc__inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bz-formulas { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #0C1140; color: #fff; font-variant-numeric: tabular-nums; }
.bz-formulas p { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bz-formulas span { display: inline-block; min-width: 86px; color: #B9C2EE; font-weight: 800; }
.bz-formulas b { font-size: 16px; }
.bz-rev { color: #8FB0FF; } .bz-cost { color: #FFB86B; } .bz-profit { color: #5EF0B8; } .bz-loss { color: #FF8FA3; }
.bz-bars { display: grid; gap: 8px; }
.bz-bar { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; font-weight: 800; }
.bz-bar__track { height: 14px; border-radius: 7px; background: #EEF1FD; overflow: hidden; }
.bz-bar__fill { display: block; height: 100%; border-radius: 7px; transition: width .35s var(--ease); }
.bz-bar--rev .bz-bar__fill { background: #4F7BFF; } .bz-bar--cost .bz-bar__fill { background: #FF8A1A; } .bz-bar--profit .bz-bar__fill { background: #14B87F; } .bz-bar--loss .bz-bar__fill { background: #FF5F6D; }
.bz-bar b { font-variant-numeric: tabular-nums; }
.bz-verdict { margin: 0; padding: 10px 14px; border-radius: 12px; background: #F7F9FF; font-weight: 800; }
.bz-verdict.is-up { background: #E9FBF3; } .bz-verdict.is-down { background: #FFF0F2; }
.bz-explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bz-explain > div { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bz-explain b { font-family: var(--font-display); font-size: 17px; margin-left: 6px; }
.bz-explain p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.bz-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.bz-dot--rev { background: #4F7BFF; } .bz-dot--cost { background: #FF8A1A; } .bz-dot--profit { background: #14B87F; }
.bz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; }
.bz-table th { text-align: left; padding: 8px 10px; background: #F3F5FD; font-size: 12px; font-weight: 900; color: var(--muted); }
.bz-table td { padding: 8px 10px; border-top: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.bz-table tr.is-now td { background: #FFF6DE; }
.bz-table tr.is-total td { font-weight: 900; background: #F7F9FF; }
.bz-mini { font-size: 12px; font-weight: 900; }

/* marketing */
.bz-warns { display: grid; gap: 6px; }
.bz-warns p { display: flex; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: #FFF4E5; color: #8A4A00; font-size: 13.5px; font-weight: 700; }
.bz-warns .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.bz-ad { position: relative; display: grid; justify-items: center; gap: 10px; padding: 24px 20px; border-radius: 20px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--b1), var(--b2)); overflow: hidden; min-width: 0; }
.bz-ad--flyer { background: #fff; color: var(--ink); border: 6px solid var(--b1); }
.bz-ad--sign { border-radius: 8px; border: 6px solid #8A5A2B; }
.bz-ad--social { justify-items: stretch; text-align: left; background: #fff; color: var(--ink); }
.bz-ad__social { display: flex; align-items: center; gap: 8px; }
.bz-ad__social small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.bz-ad__avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--b1); display: grid; place-items: center; }
.bz-ad__avatar .lx-pic { width: 30px; height: 30px; display: inline-block; }
.bz-ad__art { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: rgba(255,255,255,.9); color: var(--b1); }
.bz-ad--social .bz-ad__art { width: 100%; height: 120px; border-radius: 14px; background: linear-gradient(135deg, var(--b1), var(--b2)); }
.bz-ad__art .lx-pic { width: 76px; height: 76px; display: inline-block; }
.bz-ad__art .icon { width: 48px; height: 48px; }
.bz-ad h4 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.bz-ad p { margin: 0; line-height: 1.5; font-size: 14.5px; overflow-wrap: anywhere; }
.bz-ad__cta { padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--b1); font-weight: 900; font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.bz-ad--flyer .bz-ad__cta, .bz-ad--social .bz-ad__cta { background: var(--b1); color: #fff; justify-self: start; }
.bz-ad--flyer .bz-ad__cta { justify-self: center; }
.bz-ad__brand { display: grid; gap: 2px; padding-top: 10px; border-top: 1px dashed currentColor; width: 100%; opacity: .95; }
.bz-ad__brand b { font-family: var(--font-display); font-size: 16px; }
.bz-ad__brand em { font-size: 13px; }

/* customers */
.bz-cust { display: grid; gap: 12px; min-width: 0; }
.bz-cust__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bz-chat { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #F3F6FF; }
.bz-chat--light { background: #fff; }
.bz-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.bz-msg > span:last-child { padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.bz-msg small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.bz-msg--you { justify-self: end; }
.bz-msg--you > span:last-child { background: linear-gradient(135deg, #FFB020, #FF7A1A); color: #fff; }
.bz-msg--you small { color: rgba(255,255,255,.85); }
.bz-chat--light .bz-msg--them > span:last-child { background: #F3F6FF; }
.bz-msg__who .lx-pic { width: 36px; height: 36px; display: inline-block; }
.bz-cust__q { margin: 0; font-weight: 800; }
.bz-cust__opts { display: grid; gap: 8px; }
.bz-opt { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; transition: border-color .2s; }
.bz-opt:hover { border-color: #FFD08A; }
.bz-opt.is-ok { border-color: var(--good); background: #E9FBF3; }
.bz-opt.is-no { border-color: #FF8FA3; background: #FFF0F2; }
.bz-fb { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.bz-fb .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.bz-fb.is-ok { background: #E9FBF3; color: #0B6B4B; }
.bz-fb.is-no { background: #FFF0F2; color: #A3263A; }
.bz-own { display: flex; gap: 8px; align-items: flex-end; }
.bz-own textarea { flex: 1; min-width: 0; }
.bz-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bz-checks li { display: flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 700; color: #A3263A; }
.bz-checks li.is-ok { color: #0B6B4B; }
.bz-checks .icon { width: 16px; height: 16px; }
.bz-cust__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; color: var(--muted); font-size: 14px; }
.bz-stage { display: grid; gap: 10px; justify-items: center; padding: 18px; border-radius: 18px; background: radial-gradient(120% 120% at 50% 0%, #3A2CB0, #0C1140); text-align: center; min-height: 150px; align-content: center; }
.bz-stage__line { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.bz-stage__line small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 800; color: #FFD25A; margin-bottom: 4px; }
.bz-stage__hint { margin: 0; color: #C9D2FF; font-size: 14px; }
.bz-stage__dots { display: flex; gap: 6px; }
.bz-stage__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.bz-stage__dots i.on { background: #FFD25A; }

/* plan */
.bz-startup { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; align-items: end; }
.bz-plan { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: #FFFDF7; color: var(--ink); min-width: 0; }
.bz-plan h4 { margin: 0; font-family: var(--font-display); font-size: 24px; overflow-wrap: anywhere; }
.bz-plan em { color: #B07A00; font-weight: 700; }
.bz-plan p { margin: 0; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.bz-plan__sum { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 800; font-size: 14px; }
.bz-plan__h { margin: 4px 0 0 !important; font-weight: 900; font-size: 13px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* challenges */
.bz-chs { margin-top: 28px; display: grid; gap: 16px; }
.bz-chs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bz-chs__head .panel__title { margin: 0; }
.bz-chs__head .panel__sub { margin: 4px 0 0; }
.bz-chs__count { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #FFF3D6; color: #8A5A00; font-weight: 900; }
.bz-chs__count .icon { width: 18px; height: 18px; }
.bz-chs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bz-ch { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.bz-ch.is-open { grid-column: 1 / -1; }
.bz-ch.is-done { border-color: #BDEBD6; }
.bz-ch__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); }
.bz-ch__head > span:nth-child(2) { flex: 1; min-width: 0; }
.bz-ch__head b { display: block; font-family: var(--font-display); font-size: 17px; }
.bz-ch__head small { color: #B07A00; font-weight: 800; }
.bz-ch.is-done .bz-ch__head small { color: #0E9468; }
.bz-ch__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #FFB020, #FF7A1A); color: #fff; }
.bz-ch.is-done .bz-ch__icon { background: var(--good); }
.bz-ch__chev { color: var(--muted); font-size: 12px; }
.bz-ch__text { margin: 0 16px 12px; line-height: 1.5; }
.bz-ch__body { display: grid; gap: 12px; padding: 0 16px 16px; }
.bz-ch__foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bz-ch-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0; }
.bz-ch-sum small { color: var(--muted); font-weight: 700; }
.bz-ch-sum b { font-size: 20px; }
div.bz-ch-sum { display: grid; padding: 10px 12px; border-radius: 14px; background: #F7F9FF; }
.bz-order { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-weight: 700; }
.bz-quiz { display: grid; gap: 10px; }

/* simulator */
.bz-simbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 16px; border-radius: 18px; background: #0C1140; color: #C9D2FF; font-size: 13.5px; font-weight: 700; }
.bz-simbar b { color: #fff; font-variant-numeric: tabular-nums; }
.bz-simbar .is-up b { color: #5EF0B8; } .bz-simbar .is-down b { color: #FF8FA3; }
.bz-simbar__name { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 200px; font-size: 16px; }
.bz-simbar__name .lx-pic { width: 32px; height: 32px; display: inline-block; }
.bz-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.bz-tabs .icon { width: 16px; height: 16px; }
.bz-prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bz-prodslot { display: grid; gap: 8px; padding: 8px; border-radius: 20px; background: #fff; border: 2px solid var(--line); min-width: 0; }
.bz-prodslot.is-on { border-color: #FFB020; }
.bz-prodslot__tools { display: flex; gap: 6px; padding: 0 6px 6px; }
.bz-prodslot--add { place-content: center; justify-items: center; min-height: 150px; border-style: dashed; color: var(--muted); font: inherit; cursor: pointer; }
.bz-prodslot--add .icon { width: 28px; height: 28px; color: #FF7A1A; }
.bz-dash { display: grid; gap: 16px; }
.bz-dash__head { display: flex; align-items: center; gap: 14px; }
.bz-dash__head small { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.bz-dash__head h4 { margin: 0; font-family: var(--font-display); font-size: 26px; overflow-wrap: anywhere; }
.bz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bz-stats > div { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.bz-stats small { color: var(--muted); font-weight: 800; font-size: 12.5px; }
.bz-stats b { font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bz-stat--rev b { color: #3B5BDB; } .bz-stat--cost b { color: #E06A00; } .bz-stat--profit b { color: #0E9468; } .bz-stat--loss b { color: #D8334A; }
.bz-days__bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bz-days__bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bz-days__bars i { display: block; width: 100%; max-width: 36px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4F7BFF, #8B5CFF); }
.bz-days__bars em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }

@media (max-width: 960px) {
  .bz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bz-calc__inputs, .bz-row3, .bz-explain { grid-template-columns: minmax(0, 1fr); }
  .bz-chs__grid { grid-template-columns: minmax(0, 1fr); }
  .bz-startup { grid-template-columns: minmax(0, 1fr) 110px auto; }
  .bz-own { flex-direction: column; align-items: stretch; }
  .bz-formulas span { min-width: 0; margin-right: 4px; }
  .bz-tabs { width: 100%; }
  .bz-tabs button { padding: 7px 12px; font-size: 13px; }
  .bz-bar { grid-template-columns: 70px minmax(0, 1fr) auto; }
}
@media (max-width: 720px) {
  .pf__bar { flex-wrap: nowrap; }
  .pf__filters { max-width: 100%; }
}

/* =========================================================
   Money & Wealth: Money Learning Lab (mw-*)
   ========================================================= */
.mw-split3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.mw-adult, .mw-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; }
.mw-adult { background: #EEF6FF; border: 1px solid #CFE2FF; color: #1A3A6E; }
.mw-warn { background: #FFF4E5; border: 1px solid #FFD9A8; color: #6A3A00; }
.mw-adult .icon, .mw-warn .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.mw-left { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; display: flex; gap: 8px; align-items: center; }
.mw-left.is-up { background: #E9FBF3; color: #0B6B4B; } .mw-left.is-down { background: #FFF0F2; color: #A3263A; }
.mw-left .icon { width: 18px; height: 18px; }
.mw-score { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 16px; border-radius: 18px; background: #0C1140; color: #C9D2FF; font-weight: 700; }
.mw-score b { color: #5EF0B8; font-size: 20px; }

/* journey */
.mw-journey { display: grid; gap: 8px; justify-items: center; }
.mw-journey__split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.mw-journey__arrow { color: #FFD25A; font-size: 18px; }
.mw-stage { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: #fff; color: var(--ink); text-align: center; min-width: 0; width: 100%; }
.mw-stage b { font-family: var(--font-display); font-size: 17px; }
.mw-stage p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.mw-stage__amt { font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.mw-stage__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; }
.mw-stage--earn { max-width: 260px; } .mw-stage--earn .mw-stage__icon { background: linear-gradient(135deg, #FFD25A, #FF8A1A); }
.mw-stage--spend .mw-stage__icon { background: linear-gradient(135deg, #FF8FC0, #FF5F8F); }
.mw-stage--save .mw-stage__icon { background: linear-gradient(135deg, #3EE0A6, #14B87F); }
.mw-stage--share .mw-stage__icon { background: linear-gradient(135deg, #8EA6FF, #7B5CFF); }

/* savings jar */
.mw-goal { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.mw-jar { position: relative; height: 160px; border-radius: 18px 18px 30px 30px; background: rgba(255,255,255,.12); border: 3px solid rgba(255,255,255,.5); overflow: hidden; display: grid; place-items: center; }
.mw-jar__fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #5EF0B8, #14B87F); transition: height .5s var(--ease); }
.mw-jar__pic { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #14B87F; }
.mw-jar__pic .lx-pic { width: 48px; height: 48px; display: inline-block; }
.mw-jar b { position: absolute; bottom: 8px; color: #fff; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mw-goal__info { display: grid; gap: 4px; }
.mw-goal__info > b { font-family: var(--font-display); font-size: 20px; color: #fff; overflow-wrap: anywhere; }
.mw-goal__info > span { color: #C9D2FF; font-weight: 700; }
.mw-big { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: #fff; }
.mw-big b { color: #5EF0B8; font-size: 24px; }
.mw-big small { color: #C9D2FF; }
.mw-big.is-up { color: #5EF0B8; }
.mw-miles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mw-miles span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,.08); }
.mw-miles span.is-done { background: rgba(20,184,127,.35); }
.mw-miles b { color: #fff; } .mw-miles small { color: #C9D2FF; font-size: 11.5px; font-weight: 700; }

/* budget */
.mw-budget { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); }
.mw-donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.mw-donut span { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.mw-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.mw-legend li { display: flex; align-items: center; gap: 8px; }
.mw-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.mw-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mw-legend small { width: 38px; text-align: right; color: var(--muted); }

/* needs vs wants */
.mw-nw { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mw-nw__item { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; border: 2px solid var(--line); min-width: 0; }
.mw-nw__item.is-ok { border-color: #9DE5C4; background: #F2FCF7; }
.mw-nw__item.is-no { border-color: #FFB3C0; background: #FFF6F8; }
.mw-nw__item b { font-size: 15px; }
.mw-nw__item small { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.mw-nw__btns { display: flex; gap: 6px; }

/* shopping */
.mw-shop { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.mw-shop__q { margin: 0; font-family: var(--font-display); font-size: 19px; }
.mw-shop__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mw-prod { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #FBFCFF; text-align: left; font: inherit; color: var(--ink); min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.mw-prod:hover { transform: translateY(-2px); border-color: #9DE5C4; }
.mw-prod b { font-size: 15px; } .mw-prod small { color: var(--muted); font-weight: 700; }
.mw-prod em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #3B5BDB; }
.mw-prod.is-on { border-color: var(--ink); }
.mw-prod.is-ok { border-color: var(--good); background: #E9FBF3; } .mw-prod.is-no { border-color: #FF8FA3; background: #FFF0F2; }
.mw-prod.is-best:not(.is-ok) { border-style: dashed; border-color: var(--good); }

/* bank */
.mw-card { display: grid; gap: 2px; padding: 20px 22px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3EE0A6 0%, #0FA3B1 45%, #13195A 100%); box-shadow: 0 14px 30px rgba(15,163,177,.25); }
.mw-card small { font-size: 11px; font-weight: 900; letter-spacing: .08em; opacity: .85; }
.mw-card b { font-family: var(--font-display); font-size: 20px; }
.mw-card span { margin-top: 8px; font-size: 12.5px; opacity: .85; }
.mw-card strong { font-family: var(--font-display); font-size: 34px; font-variant-numeric: tabular-nums; }
.mw-card em { font-style: normal; font-size: 12px; opacity: .75; letter-spacing: .1em; }
.mw-bankrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.mw-tx td:nth-child(3), .mw-tx td:nth-child(4) { white-space: nowrap; }
.mw-never { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; border-radius: 14px; background: #FFF0F2; }
.mw-never b { display: inline-flex; align-items: center; gap: 6px; color: #A3263A; width: 100%; }
.mw-never b .icon { width: 16px; height: 16px; }
.mw-never span { padding: 3px 10px; border-radius: 999px; background: #fff; color: #A3263A; font-weight: 800; font-size: 12.5px; }

/* growth */
.mw-range { display: grid; gap: 6px; font-weight: 700; }
.mw-range input { width: 100%; accent-color: var(--good); }
.mw-grow-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mw-grow-sum span { display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.08); color: #C9D2FF; font-size: 12px; font-weight: 700; }
.mw-grow-sum b { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mw-grow-sum b.is-up { color: #5EF0B8; }
.mw-grow { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 10px; border-radius: 16px; background: #fff; }
.mw-grow span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.mw-grow i { display: block; }
.mw-grow__p { background: #4F7BFF; border-radius: 0 0 3px 3px; }
.mw-grow__g { background: #14B87F; border-radius: 4px 4px 0 0; }
.mw-grow em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); text-align: center; margin-top: 3px; }
.mw-legend2 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #C9D2FF; font-size: 12.5px; font-weight: 700; }
.mw-legend2 i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* future plan */
.mw-goalrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: end; }
.mw-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mw-timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: #fff; color: var(--ink); border-left: 5px solid #FF8FA3; }
.mw-timeline li.is-ok { border-left-color: var(--good); }
.mw-timeline__y { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #14C38E, #0FA3B1); color: #fff; font-weight: 900; }
.mw-timeline b { display: block; overflow-wrap: anywhere; }
.mw-timeline small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.mw-missions .lx-playcta { margin-top: 4px; }

@media (max-width: 640px) {
  .mw-split3, .mw-shop__items, .mw-journey__split, .mw-grow-sum { grid-template-columns: minmax(0, 1fr); }
  .mw-goal, .mw-budget { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mw-goal { justify-items: stretch; }
  .mw-jar { width: 120px; justify-self: center; }
  .mw-legend { width: 100%; }
  .mw-miles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-goalrow { grid-template-columns: minmax(0, 1fr) 120px; }
}

/* =========================================================
   Dynamic quizzes: review + history
   ========================================================= */
.lx-quiz--loading { min-height: 220px; display: grid; place-items: center; }
.lx-quiz__src { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.lx-attempt-no { font-size: 13px; margin: 6px 0 0; }
.lx-review__h { margin: 24px 0 0; font-family: var(--font-display); font-size: 20px; }
.lx-review--full { margin-top: 12px; }
.lx-review--full li > span:last-child { display: grid; gap: 3px; min-width: 0; }
.lx-review--full b { overflow-wrap: anywhere; }
.lx-review__wrong { color: #C2253A !important; }
.lx-review__right { display: inline !important; color: #0B6B4B; font-size: 13px !important; }
.lx-review__why { color: var(--ink-2) !important; font-weight: 500 !important; line-height: 1.45; }
.lx-review__lesson { display: inline-flex !important; align-items: center; gap: 4px; font-size: 12px !important; }
.lx-review__lesson .icon { width: 13px; height: 13px; }
.lx-status--fail { background: #FFF0F2; color: #A3263A; }
.lx-hist { display: grid; gap: 12px; }
.lx-hist__item { padding: 0; overflow: hidden; }
.lx-hist__item .lx-review { margin: 0; padding: 0 18px 18px; }
.lx-hist__head { width: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; }
.lx-hist__n { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--a1, #4F7BFF) 16%, white); color: var(--a1, #4F7BFF); font-weight: 900; }
.lx-hist__item.is-pass .lx-hist__n { background: #E9FBF3; color: #0E9468; }
.lx-hist__meta { flex: 1; min-width: 140px; }
.lx-hist__meta b { display: block; font-family: var(--font-display); font-size: 17px; }
.lx-hist__meta small { color: var(--muted); font-weight: 700; }
.lx-hist__score { font-family: var(--font-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lx-hist__chev { color: var(--muted); font-size: 12px; }
.lx-result__top > div { min-width: 0; }
.lx-stars { flex-wrap: wrap; }
@media (max-width: 480px) { .lx-stars span .icon { width: 20px; height: 20px; } }

/* ---- Audit fixes: readable labels and easier tapping on small screens ---- */
.cs-check input { flex: none; width: 22px; height: 22px; }
.mw-check input, .lx-brief .cs-check input { flex: none; }
input[type="range"] { min-height: 28px; }
.link-btn { min-height: 32px; }
.cs-pal small { font-size: 11.5px; }
.mw-grow em { font-size: 11px; }
@media (max-width: 960px) {
  .st-x, .cs-tools button, .ag button[aria-label^="Remove"], .ag button[aria-label^="Move"] { min-width: 34px; min-height: 34px; }
}
@media (max-width: 960px) { .ag-node__tools button { width: 34px; height: 34px; } }
