/**
 * KI-Lernbegleiter Widget v2 (Plattform-Page).
 *
 * Self-contained component mit Namespace `.kb`. Vier Tabs, jeder Tab hat ein
 * eigenes Mockup-Panel mit eigener Animation. Quelle: design/brainfood_ki_lernbegleiter_v2.html.
 * Wird nur auf der Plattform-Seite geladen (siehe inc/enqueue.php).
 */

.kb, .kb * { box-sizing: border-box; }
.kb { font-family: 'Open Sans', system-ui, sans-serif; color: #263237; padding: 1rem 0; background: #F5F4F0; border-radius: 18px; }
.kb__inner { padding: 1rem; }

/* Stellt sicher, dass die direkten KI-Section-Kinder (Eyebrow, h2, Lead, Widget)
 * an den 1240px-Content-Bereich gebunden sind und nicht an den vollen Section-Rand
 * (32px-Padding) anschlagen. Linksbündig dank text-align inherit, aber zentriert
 * positioniert über margin auto. !important schlägt etwaige Konflikte.
 * .bf-eyebrow ist site-weit inline-block — hier forciert block, sonst zieht
 * margin:auto nicht. */
.bf-ki-section > .bf-eyebrow,
.bf-ki-section > h2,
.bf-ki-section > p,
.bf-ki-section > .kb {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.bf-ki-section > .bf-eyebrow { display: block !important; }

/* ----- Tabs ----- */
.kb-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kb-tab { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; border: 1.5px solid #E4E2DC; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: inherit; transition: all .22s ease; width: 100%; }
.kb-tab__sub { display: none; }
.kb-tab:hover { border-color: #00A5B6; transform: translateY(-2px); }
.kb-tab[aria-current="true"] { border-color: #00A5B6; background: #fff; box-shadow: 0 8px 24px rgba(0,165,182,.14); }
.kb-tab[aria-current="true"] .kb-tab__title { color: #0B696E; }
.kb-tab__icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(155deg, #00C3D6 0%, #0B696E 100%); color: #fff; display: flex; align-items: center; justify-content: center; }
.kb-tab__icon i { font-size: 17px; }
.kb-tab__body { min-width: 0; }
.kb-tab__title { font-size: 12.5px; font-weight: 700; color: #263237; line-height: 1.25; margin-bottom: 2px; }
.kb-tab__sub { font-size: 10.5px; color: #7D8487; line-height: 1.35; }

/* ----- Explain-Box ----- */
.kb-explain { background: #fff; border: 1px solid #E4E2DC; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 14px; }
.kb-explain__num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(155deg, #CCF3F7, #99E7EF); color: #0B696E; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; }
.kb-explain__body { flex: 1; min-width: 0; }
.kb-explain__badge { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #DD1F5A; text-transform: uppercase; margin-bottom: 4px; }
.kb-explain__title { font-family: 'DM Serif Display', Georgia, serif; font-size: 18px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; }
.kb-explain__text { font-size: 12.5px; line-height: 1.5; color: #515B5F; }

/* ----- Stage + Panels ----- */
.kb-stage { position: relative; }
.kb-panel { display: none; }
.kb-panel[data-active="true"] { display: block; }
.kb-mockup { background: #fff; border-radius: 14px; border: 1px solid #D4D6D7; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; box-shadow: 0 8px 28px rgba(38,50,55,.08); height: 540px; position: relative; }

/* ----- Sidebar ----- */
.kb-side { background: #F4F5F7; border-right: 1px solid #E5E7EA; padding: 14px 12px; display: flex; flex-direction: column; font-size: 11.5px; overflow: hidden; }
.kb-side__head { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #7D8487; text-transform: uppercase; margin-bottom: 10px; }
.kb-side__item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; cursor: pointer; color: #263237; font-weight: 500; margin-bottom: 3px; }
.kb-side__item i { font-size: 15px; color: #7D8487; }
.kb-side__item--active { background: #CCF3F7; color: #00A5B6; font-weight: 700; padding: 11px 12px; }
.kb-side__item--active i { color: #00A5B6; }
.kb-side__divider { height: 1px; background: #E5E7EA; margin: 10px -12px; }
.kb-side__history { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.kb-side__row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-weight: 600; color: #263237; }
.kb-side__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kb-side__rowtxt { flex: 1; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-side__rowcnt { font-size: 10.5px; color: #7D8487; font-weight: 500; margin-right: 2px; }
.kb-side__chev { color: #A8ADAF; font-size: 10px; }
.kb-side__row--exp { background: #EAEDF0; }
.kb-side__sub { padding-left: 18px; margin-top: 2px; display: flex; flex-direction: column; gap: 2px; }
.kb-side__subrow { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; font-size: 10.5px; color: #515B5F; }
.kb-side__subrow i { font-size: 11px; }
.kb-side__subrow--active { background: #CCF3F7; color: #00A5B6; font-weight: 600; }
.kb-side__subrow--active i { color: #00A5B6; }
.kb-side__subtime { margin-left: auto; font-size: 9.5px; color: #A8ADAF; }
.kb-side__bottom { margin-top: 10px; padding-top: 10px; border-top: 1px solid #E5E7EA; display: flex; flex-direction: column; gap: 8px; }
.kb-side__btn { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; border: 1px solid #D4D6D7; border-radius: 8px; font-size: 10.5px; font-weight: 600; background: #fff; color: #263237; }
.kb-side__tokens { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #7D8487; }
.kb-side__tokens i { font-size: 11px; color: #00A5B6; }

/* ----- Main pane ----- */
.kb-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
.kb-main__header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #E5E7EA; flex-shrink: 0; background: #fff; z-index: 2; }
.kb-main__sidetog, .kb-main__head-spacer i { color: #7D8487; font-size: 14px; }
.kb-main__sparkle { width: 22px; height: 22px; border-radius: 6px; background: #CCF3F7; color: #00A5B6; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.kb-main__title { font-size: 12.5px; font-weight: 700; color: #263237; }
.kb-main__sub { font-size: 11.5px; color: #7D8487; }
.kb-main__head-spacer { margin-left: auto; display: flex; gap: 8px; }
.kb-main__body { flex: 1; overflow: hidden; position: relative; }
.kb-main__scroll { height: 100%; overflow-y: auto; padding: 18px; scroll-behavior: smooth; }

/* ----- Steps in Panel 1 (a/b/c sub-animations) ----- */
.kb-step { position: absolute; inset: 0; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
[data-step="a"] .kb-step--a,
[data-step="b"] .kb-step--b,
[data-step="c"] .kb-step--c { opacity: 1; visibility: visible; }
.kb-step--a { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }

.kb-bigsparkle { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(155deg, #CCF3F7, #99E7EF); color: #00A5B6; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; animation: kbSparklePulse 2.8s ease-in-out infinite; }
.kb-bigsparkle i { font-size: 30px; }
@keyframes kbSparklePulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,195,214,.4); } 50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(0,195,214,0); } }
.kb-p1__hello { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px; }
.kb-p1__sub { font-size: 12px; color: #515B5F; text-align: center; line-height: 1.5; margin-bottom: 8px; max-width: 340px; }
.kb-p1__sec { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #7D8487; text-transform: uppercase; margin: 18px 0 10px; text-align: center; width: 100%; }
.kb-p1__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 380px; }
.kb-p1__opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #D4D6D7; border-radius: 11px; background: #fff; transition: all .3s ease; }
.kb-p1__opt--hl { border-color: #00A5B6; background: #F0F9FA; animation: kbHlPulse 2s ease-in-out infinite; }
@keyframes kbHlPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,165,182,.3); } 50% { box-shadow: 0 0 0 8px rgba(0,165,182,0); } }
.kb-p1__opticon { width: 28px; height: 28px; border-radius: 7px; background: #CCF3F7; color: #00A5B6; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.kb-p1__optttl { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.kb-p1__optsub { font-size: 10px; color: #7D8487; margin-top: 1px; }

.kb-p1b__head { font-size: 12.5px; color: #263237; font-weight: 600; margin-bottom: 14px; }
.kb-themes { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.kb-thm { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid #D4D6D7; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: #fff; transition: all .3s ease; }
.kb-thm__dot { width: 8px; height: 8px; border-radius: 50%; }
.kb-thm--hl { border-color: #00A5B6; background: #F0F9FA; animation: kbHlPulse 2s ease-in-out infinite; }

/* ----- Chat (Panel 1c) ----- */
.kb-chat { display: flex; flex-direction: column; gap: 10px; }
.kb-msg { display: flex; gap: 8px; max-width: 90%; }
.kb-msg__icon { width: 22px; height: 22px; border-radius: 6px; background: #CCF3F7; color: #00A5B6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; margin-top: 3px; }
.kb-msg__bub { background: #F0F9FA; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; color: #263237; }
.kb-msg--user { margin-left: auto; flex-direction: row-reverse; }
.kb-msg--user .kb-msg__bub { background: #00A5B6; color: #fff; }
.kb-msg--anim { animation: kbMsgIn .5s cubic-bezier(.22,.61,.36,1) backwards; }
.kb-msg--anim:nth-child(1) { animation-delay: .15s; }
.kb-msg--anim:nth-child(2) { animation-delay: 1s; }
.kb-msg--anim:nth-child(3) { animation-delay: 1.8s; }
@keyframes kbMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Panel 2 (Result + Radar + Bars + Recos) ----- */
.kb-p2__result { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kb-p2__check { width: 22px; height: 22px; border-radius: 50%; background: #00BF9A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.kb-p2__rtxt { font-size: 13px; font-weight: 700; color: #263237; }
.kb-p2__desc { font-size: 11.5px; color: #515B5F; line-height: 1.55; margin-bottom: 14px; }
.kb-radar { display: flex; justify-content: center; margin-bottom: 18px; }
.kb-radar svg { max-width: 260px; width: 100%; height: auto; }
[data-active="true"] .rdr-shape { opacity: 0; animation: kbRdrFade .9s ease-out .3s forwards; }
[data-active="true"] .rdr-dot { opacity: 0; animation: kbRdrFade .5s ease-out forwards; }
[data-active="true"] .rdr-dot.d1 { animation-delay: .5s; }
[data-active="true"] .rdr-dot.d2 { animation-delay: .7s; }
[data-active="true"] .rdr-dot.d3 { animation-delay: .9s; }
[data-active="true"] .rdr-dot.d4 { animation-delay: 1.1s; }
@keyframes kbRdrFade { from { opacity: 0; } to { opacity: 1; } }
.kb-p2__sechead { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #7D8487; text-transform: uppercase; margin-bottom: 10px; }
.kb-bars { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.kb-bar { display: flex; align-items: center; gap: 10px; }
.kb-bar__name { flex: 1; font-size: 11.5px; color: #263237; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-bar__track { flex: 0 0 110px; height: 6px; background: #E5E7EA; border-radius: 3px; overflow: hidden; }
.kb-bar__fill { height: 100%; border-radius: 3px; width: 0; transition: width 1.1s cubic-bezier(.22,.61,.36,1) .4s; }
.kb-panel[data-active="true"] .kb-bar__fill { width: var(--w, 30%); }
.kb-bar__tag { font-size: 9.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.kb-tag-aufbau { background: #FFF4D9; color: #9F7700; }
.kb-tag-solide { background: #E4F1FE; color: #0E5DAF; }
.kb-recos { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.kb-reco { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid #E5E7EA; border-radius: 9px; }
.kb-reco__n { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; background: #CCF3F7; color: #0B696E; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.kb-reco__title { font-size: 11.5px; font-weight: 600; color: #263237; margin-bottom: 2px; }
.kb-reco__sub { font-size: 10.5px; color: #7D8487; line-height: 1.4; }
.kb-p2__cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 11px; background: #00A5B6; color: #fff; font-size: 11.5px; font-weight: 600; border: 0; cursor: pointer; }

/* ----- Panel 3 (Quiz + Modal Overlay) ----- */
.kb-quiz { padding: 14px 16px; }
.kb-quiz__intro { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 11px; color: #7D8487; }
.kb-quiz__intro i { color: #00A5B6; font-size: 14px; }
.kb-quiz__q { background: #F0F9FA; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.kb-quiz__qbubble { display: flex; gap: 9px; align-items: flex-start; }
.kb-quiz__qicon { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(155deg, #00C3D6, #00A5B6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.kb-quiz__qtext { font-size: 12px; line-height: 1.5; color: #263237; font-weight: 600; }
.kb-quiz__opts { display: flex; flex-direction: column; gap: 6px; }
.kb-quiz__opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #E5E7EA; border-radius: 10px; background: #fff; font-size: 11.5px; color: #263237; cursor: pointer; transition: all .25s ease; }
.kb-quiz__opt:hover { border-color: #00A5B6; }
.kb-quiz__opt--sel { border-color: #00A5B6; background: #F0F9FA; animation: kbHlPulse 2.5s ease-in-out infinite; }
.kb-quiz__optnum { width: 22px; height: 22px; border-radius: 6px; background: #F0EFEC; color: #515B5F; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kb-quiz__opt--sel .kb-quiz__optnum { background: #CCF3F7; color: #0B696E; }
.kb-quiz__input { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border: 1px solid #E5E7EA; border-radius: 999px; background: #fff; color: #A8ADAF; font-size: 11px; }
.kb-quiz__input i { margin-left: auto; color: #00A5B6; font-size: 13px; }

.kb-p3-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(38,50,55,.55); padding: 18px; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); z-index: 5; }
[data-step="modal"] .kb-p3-overlay { opacity: 1; pointer-events: auto; }
[data-step="quiz"] .kb-p3-overlay { opacity: 0; pointer-events: none; transform: scale(.85); }
.kb-modal { position: relative; background: #fff; border-radius: 16px; overflow: hidden; width: 100%; max-width: 340px; box-shadow: 0 18px 48px rgba(0,0,0,.18); animation: kbModalPop .5s cubic-bezier(.22,1.2,.36,1) backwards; }
@keyframes kbModalPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.kb-modal__head { background: linear-gradient(155deg, #00C3D6, #00A5B6); color: #fff; padding: 18px 16px 14px; text-align: center; position: relative; }
.kb-modal__x { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.kb-modal__check { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px; }
.kb-modal__ttl { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.kb-modal__subt { font-size: 11px; opacity: .9; margin-top: 3px; padding: 0 14px; line-height: 1.4; }
.kb-modal__body { padding: 14px 16px; }
.kb-modal__eye { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #7D8487; text-transform: uppercase; margin-bottom: 6px; }
.kb-modal__done { font-size: 11.5px; color: #515B5F; margin-bottom: 12px; }
.kb-modal__card { background: #F0F9FA; border: 1px solid #CCF3F7; border-radius: 11px; padding: 10px 11px; }
.kb-modal__intro { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.kb-modal__introicon { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(155deg, #00C3D6, #00A5B6); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.kb-modal__introtxt { font-size: 11px; line-height: 1.45; color: #263237; }
.kb-modal__opts { display: flex; flex-direction: column; gap: 5px; }
.kb-modal__opt { display: flex; align-items: center; gap: 9px; padding: 9px 10px; background: #fff; border: 1px solid #E5E7EA; border-radius: 9px; transition: all .25s ease; }
.kb-modal__opt--quiz { border-color: #00A5B6; animation: kbOptPulse 1.8s ease-in-out infinite; animation-delay: 1.8s; }
@keyframes kbOptPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,165,182,.3); } 50% { box-shadow: 0 0 0 8px rgba(0,165,182,0); } }
.kb-modal__opticon { width: 24px; height: 24px; border-radius: 6px; background: #CCF3F7; color: #00A5B6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; }
.kb-modal__optbody { flex: 1; min-width: 0; }
.kb-modal__optttl { font-size: 11px; font-weight: 700; color: #263237; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-modal__pill { display: inline-block; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; background: #CCF3F7; color: #0B696E; border-radius: 999px; text-transform: uppercase; }
.kb-modal__optsub { font-size: 10px; color: #7D8487; margin-top: 2px; line-height: 1.35; }
.kb-modal__optarrow { color: #7D8487; font-size: 13px; }

/* ----- Panel 4 (Skill-Profil mit Toggle) ----- */
.kb-p4__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 14px; }
.kb-p4__stat { background: #F4F5F7; border-radius: 10px; padding: 10px 6px; text-align: center; }
.kb-p4__statn { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; font-weight: 400; color: #00A5B6; line-height: 1; transition: all .55s ease; }
.kb-p4__statl { font-size: 9.5px; color: #7D8487; margin-top: 4px; line-height: 1.25; }
.kb-p4__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kb-p4__sec { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #7D8487; text-transform: uppercase; }
.kb-toggle { display: inline-flex; background: #EAEDF0; border-radius: 999px; padding: 3px; font-size: 10.5px; font-weight: 600; position: relative; }
.kb-toggle__opt { padding: 5px 14px; border-radius: 999px; color: #7D8487; transition: color .35s ease; position: relative; z-index: 2; cursor: pointer; }
.kb-toggle__opt--active { color: #fff; }
.kb-toggle__slide { position: absolute; top: 3px; bottom: 3px; width: calc(50% - 3px); background: #00A5B6; border-radius: 999px; transition: left .45s cubic-bezier(.22,.61,.36,1); z-index: 1; }
.kb-toggle--start .kb-toggle__slide { left: 3px; }
.kb-toggle--heute .kb-toggle__slide { left: 50%; }
.kb-info { background: #F0F9FA; border: 1px solid #CCF3F7; border-radius: 10px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.kb-info i { color: #00A5B6; font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.kb-info__t { font-size: 11px; line-height: 1.45; color: #263237; }
.kb-themes-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.kb-theme { display: flex; align-items: center; gap: 11px; padding: 11px 12px; background: #fff; border: 1px solid #E5E7EA; border-radius: 10px; }
.kb-theme__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.kb-theme__name { flex: 1; min-width: 0; }
.kb-theme__title { font-size: 11.5px; font-weight: 700; color: #263237; line-height: 1.2; }
.kb-theme__count { font-size: 10px; color: #7D8487; margin-top: 1px; }
.kb-theme__progress { flex: 0 0 90px; height: 4px; background: #E5E7EA; border-radius: 2px; overflow: hidden; }
.kb-theme__fill { height: 100%; border-radius: 2px; transition: width .65s cubic-bezier(.22,.61,.36,1); }
.kb-theme__chev { color: #A8ADAF; font-size: 13px; }
.kb-p4__cta { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 11px; border-radius: 11px; background: #00A5B6; color: #fff; font-weight: 600; font-size: 12px; border: 0; cursor: pointer; }

/* ----- Mobile ----- */
@media (max-width: 640px) {
  .kb-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kb-mockup { grid-template-columns: 1fr; height: auto; min-height: 540px; }
  .kb-side { display: none; }
}

/* ----- Reduced motion: still toggle panels, but kill loops/keyframes ----- */
@media (prefers-reduced-motion: reduce) {
  .kb-bigsparkle,
  .kb-p1__opt--hl,
  .kb-thm--hl,
  .kb-quiz__opt--sel,
  .kb-modal__opt--quiz { animation: none; }
  .kb-msg--anim { animation-duration: .01s; }
  .kb-bar__fill,
  .kb-theme__fill,
  .kb-p4__statn { transition: none; }
}
