/* V118 local UX review: intentionally scoped to the requested surfaces. */
html{scroll-padding-top:calc(var(--header-height,10rem) + 1rem)}
.app-page,.privacy-tools,.bob-privacy-dialog{scroll-margin-top:calc(var(--header-height,10rem) + 1rem)}

/* Subscription hierarchy. */
#subscriptions .subscriptions-start{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.15rem 1.25rem;margin:0 0 1.25rem;border:1px solid var(--c-line,var(--line));border-radius:1rem;background:var(--c-soft,var(--surface))}
#subscriptions .subscriptions-start strong{display:block;font-size:1.2em;line-height:1.3;color:var(--c-ink,var(--ink))}
#subscriptions .subscriptions-start p{margin:.35rem 0 0;max-width:62ch;color:var(--c-muted,var(--muted))}
#subscriptions .subscriptions-start>a{flex:none;text-align:center}
#subscriptions .pricing-grid-v85 .price-card{padding:clamp(1.1rem,2.2vw,1.65rem)}
#subscriptions .price-card.featured{border-width:2px}
#subscriptions .plan-title{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem}
#subscriptions .plan-price-row{width:100%;padding:.8rem 0;border-bottom:1px solid var(--c-line,var(--line))}
#subscriptions .plan-benefits{width:100%;margin-bottom:1rem!important}
#subscriptions .plan-action{width:100%;margin-top:auto}
#subscriptions #billingActions{padding-top:.2rem}
#subscriptions #billingActions .hero-actions{width:100%}
#subscriptions #billingActions :is(a,button){flex:1 1 13rem;justify-content:center;text-align:center}
#subscriptions .plan-availability{background:var(--c-soft,var(--surface));font-weight:650}

/* Academy catalogue only; individual courses and their own overviews stay unchanged. */
#academyHome .course-card{display:flex!important;flex-direction:column!important;gap:.2rem}
#academyHome .course-card>p{line-height:1.65!important;margin:.55rem 0 1rem!important;min-height:5.3em;color:var(--c-muted,var(--muted))!important}
#academyHome .course-card>.course-access{display:inline-flex!important;align-self:flex-start!important;margin:.15rem 0 .35rem!important;padding:.42rem .72rem!important;border-radius:999px!important;font-size:.78rem!important;letter-spacing:.02em!important}
#academyHome .course-card>.course-access.free{background:#dff8ed!important;color:#075c42!important}
#academyHome .course-card>.course-access.paid{background:#e4f0ff!important;color:#0b4f92!important}
#academyHome .course-actions{margin-top:auto!important;align-items:stretch!important}
#academyHome .course-actions :is(button,a){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;text-align:center!important}
#academyHome .theme-beginner2 .course-bob-badge{background:linear-gradient(135deg,#0a4a72,#0c2e52)!important}
#academyHome .theme-beginner2 .course-art{width:54%!important}
#academyHome .theme-beginner2 .course-art img{object-position:center!important}

/* Beginner Deel 2: approved Beginner Deel 1 visual language, scoped to this renderer. */
.b2-page{max-width:1000px}
.b2-page[data-b2-view="lesson"]{max-width:1280px}
.b2-page[data-b2-view="lesson"] .b2-header h2{font-size:clamp(1.65rem,3vw,2.25rem)}
.b2-page[data-b2-view="lesson"] .b2-header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:.75rem;padding:.5rem 0 .65rem;margin-bottom:.65rem}
.b2-page[data-b2-view="lesson"] .b2-header>.b2-account-link{margin-inline-start:0;justify-self:start}
.b2-page[data-b2-view="lesson"] .b2-header>.b2-breadcrumb,.b2-page[data-b2-view="lesson"] .b2-header>.b2-badges,.b2-page[data-b2-view="lesson"] .b2-header>h2,.b2-page[data-b2-view="lesson"] .b2-header>p.muted{grid-column:1/-1}
.b2-page[data-b2-view="lesson"] .b2-header>.b2-breadcrumb{margin:.3rem 0}.b2-page[data-b2-view="lesson"] .b2-header>.b2-badges{margin-top:.25rem}.b2-page[data-b2-view="lesson"] .b2-header>h2{margin:.35rem 0}.b2-page[data-b2-view="lesson"] .b2-header>p.muted{margin:.15rem 0}
@media(min-width:681px){.b2-page[data-b2-view="lesson"] .b2-header>.b2-breadcrumb{grid-column:1;grid-row:2}.b2-page[data-b2-view="lesson"] .b2-header>.b2-badges{grid-column:2;grid-row:2;justify-self:start;margin:0}.b2-page[data-b2-view="lesson"] .b2-header>h2{grid-row:3}.b2-page[data-b2-view="lesson"] .b2-header>p.muted{grid-row:4}}
.b2-lesson-hero{position:relative;margin:1rem 0 1.45rem;border:1px solid var(--line,#7b879552);border-radius:18px;overflow:hidden;background:#082d4f}
.b2-lesson-hero img{display:block;width:100%;height:auto;aspect-ratio:1416/750;object-fit:cover}
.b2-lesson-hero figcaption{position:absolute;left:1rem;bottom:1rem;max-width:28rem;padding:.6rem .85rem;border-radius:.75rem;background:rgba(6,29,51,.9);color:#fff;font-weight:800}
.b2-lesson-utility{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:.75rem;row-gap:.35rem;margin:0 0 .75rem}
.b2-lesson-utility>.b2-account-link{grid-column:2;grid-row:1;justify-self:start}.b2-lesson-utility>.b2-breadcrumb{grid-column:1;grid-row:2;margin:.15rem 0}.b2-lesson-utility>.b2-badges{grid-column:2;grid-row:2;justify-self:start;margin:0}
.b2-lesson-intro{display:grid;grid-template-columns:minmax(0,1.33fr) minmax(30rem,1fr);gap:1rem;align-items:end;margin:0 0 .9rem}
.b2-lesson-intro-copy{display:flex;min-width:0;flex-direction:column}
.b2-lesson-intro-copy .b2-header{margin:0}
.b2-course-intro{flex:1;margin:.8rem 0 0;padding:1rem 1.1rem;border:1px solid var(--line,#7b879552);border-left:5px solid #2997ff;border-radius:14px;background:var(--c-card,var(--surface))}
.b2-course-intro h3{margin:0 0 .35rem}.b2-course-intro p{margin:0;color:var(--c-muted,var(--muted))}
.b2-lesson-intro .b2-lesson-hero{width:100%;height:auto;max-width:none;margin:0;padding:0;align-self:end}
.b2-lesson-intro .b2-lesson-hero img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center}
.b2-page[data-b2-view="lesson"]>.b2-objectives{margin-top:.9rem}
.b2-overview-hero{display:flex;flex-direction:column;width:min(100%,54rem);gap:1rem;align-items:flex-start;margin:1rem 0 1.35rem}
.b2-overview-hero .b2-lesson-hero{width:min(100%,40rem,640px);margin:0;height:auto}
.b2-overview-hero .b2-overview-intro{width:100%;margin:0;height:auto}
.b2-overview-hero .b2-lesson-hero img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center}
.b2-section,.b2-exercise,.b2-tip,.b2-caution,.b2-quiz,.b2-module,.b2-completion,.b2-exam-result{border-width:1px;border-left-width:5px;background:var(--c-card,var(--surface))}
.b2-section>h3::before,.b2-exercise>h3::before,.b2-tip>h3::before,.b2-caution>h3::before,.b2-quiz>h3::before,.b2-recap>h3::before{display:inline-grid;place-items:center;width:1.75rem;height:1.75rem;margin-right:.55rem;border-radius:.55rem;background:#e4f0ff;color:#075ca8;font-size:.95rem;vertical-align:-.2rem}
.b2-objectives{border-left-color:#2b8df4;background:color-mix(in srgb,var(--c-card,var(--surface)) 88%,#2b8df4 12%)}.b2-objectives>h3::before{content:'✓'}
.b2-section-plain{border-left-color:#2997ff}.b2-section-plain>h3::before{content:'i'}
.b2-section-deep{border-left-color:#795ee8}.b2-section-deep>h3::before{content:'+'}
.b2-section-example{border-left-color:#e39b25}.b2-section-example>h3::before{content:'★'}
.b2-exercise{border-left-color:#16865f}.b2-exercise>h3::before{content:'✎'}
.b2-recap{border-left-color:#16865f}.b2-recap>h3::before{content:'↻'}
.b2-tip{border-left-color:#1fb4c5}.b2-tip>h3::before{content:'B'}
.b2-tip-row{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:1rem;align-items:center}.b2-tip-row img{width:4.5rem;height:4.5rem;border-radius:50%;object-fit:cover;border:3px solid #2997ff}.b2-tip-row p{margin:0}
.b2-caution{border-left-color:#c98416}.b2-caution>h3::before{content:'!'}.b2-caution h3::before{font-weight:900}
.b2-quiz{border-left-color:#2b8df4}.b2-quiz>h3::before{content:'?'}
.b2-module{border-left-color:#2997ff;padding:1rem 1.05rem 1.15rem}.b2-module:nth-child(2n){border-left-color:#795ee8}
.b2-lesson-link{min-height:8.2rem;display:flex;flex-direction:column;justify-content:space-between;background:var(--c-card,var(--surface));box-shadow:0 8px 22px rgba(6,29,51,.07)}
.b2-lesson-link:hover,.b2-lesson-link:focus-visible{transform:translateY(-2px);border-color:#2997ff}

/* Beginner Deel 2 overview: compact Beginner Deel 1 card rhythm without changing access logic. */
#beginner2View[data-b2-view="overview"] #b2-title-search{min-height:2.75rem;padding:.65rem .8rem;border:1px solid var(--line,#7b879552);border-radius:.65rem;background:var(--c-card,var(--surface));color:var(--c-ink,var(--ink));box-shadow:none}
#beginner2View[data-b2-view="overview"] #b2-title-search::placeholder{color:var(--c-muted,var(--muted));opacity:.9}
#beginner2View[data-b2-view="overview"] .b2-module{margin:1.1rem 0 1.35rem;padding:0;border:0;border-left:0;background:transparent;box-shadow:none}
#beginner2View[data-b2-view="overview"] .b2-module>h3{margin:0 0 .7rem;padding:0 0 .55rem;border-bottom:1px solid var(--line,#7b879552);font-size:1rem;color:var(--c-ink,var(--ink))}
#beginner2View[data-b2-view="overview"] .b2-lesson-grid{gap:.75rem}
#beginner2View[data-b2-view="overview"] .b2-lesson-link{display:grid;grid-template-columns:3.2rem minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:.8rem;row-gap:.15rem;align-content:center;align-items:center;min-height:6rem;padding:.75rem .8rem;border:1px solid var(--line,#7b879552);border-radius:.8rem;background:var(--c-card,var(--surface));box-shadow:none}
#beginner2View[data-b2-view="overview"] .b2-lesson-avatar{grid-column:1;grid-row:1/4;width:3.2rem;height:3.2rem;border:2px solid #2997ff;border-radius:50%;object-fit:cover;object-position:center}
#beginner2View[data-b2-view="overview"] .b2-lesson-title{grid-column:2;grid-row:1;font-weight:800;line-height:1.25;color:var(--c-ink,var(--ink));overflow-wrap:anywhere}
#beginner2View[data-b2-view="overview"] .b2-lesson-action{grid-column:2;grid-row:2;color:var(--c-accent,#0788b5);font-weight:750;font-size:.92rem}
#beginner2View[data-b2-view="overview"] .b2-lesson-status{grid-column:2;grid-row:3;color:var(--c-muted,var(--muted));font-size:.78rem;line-height:1.25}

/* Responsive header: switch deliberately to one compact row before links wrap. */
@media(min-width:1021px){.site-header .top-nav{flex-wrap:nowrap!important;justify-content:center!important}}
@media(max-width:1180px){
 .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;padding:8px 12px!important;column-gap:7px!important;row-gap:0!important}
 .site-header .brand-link{grid-column:1!important;grid-row:1!important;width:clamp(122px,28vw,180px)!important}
 .site-header .header-actions{grid-column:2!important;grid-row:1!important;gap:3px!important}
 .site-header .top-nav{display:none!important}
 .site-header[data-layout="compact"] .hamburger{display:flex!important}
 .site-header .search-btn{display:none!important}
 .site-header .font-mobile.header-font-tools{display:block}
 .site-header .font-mobile.header-font-tools summary,.site-header .theme-toggle,.site-header .hamburger{min-width:40px!important;width:40px!important;height:42px!important;min-height:42px!important;padding:7px!important}
 .site-header .header-account{height:42px!important;min-height:42px!important;padding:7px 10px!important;font-size:.86rem!important}
 .site-header .font-popup{position:fixed!important;top:var(--header-height)!important;right:12px!important;width:min(260px,calc(100vw - 24px))!important;min-width:0!important}
}

/* Heatmap: controls never alter the data model; canvas, heat and candles share one viewport. */
#markt .heatmap-pan-controls{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin:.75rem 0 .45rem}
#markt .heatmap-pan-controls button{min-height:44px;padding:.55rem .8rem;border:1px solid var(--c-line,var(--line));border-radius:.65rem;background:var(--c-card,var(--surface));color:var(--c-ink,var(--ink));font:inherit;font-weight:750;cursor:pointer}
#markt .heatmap-pan-controls [data-heatmap-reset]{background:#146ef5;color:#fff;border-color:#146ef5}
#markt .heatmap-pan-controls span{flex:1 1 18rem;color:var(--c-muted,var(--muted));font-size:.9rem;line-height:1.45}
#markt #bobHeatmapCanvas{cursor:grab;touch-action:pan-y!important}
#markt #bobHeatmapCanvas.is-panning{cursor:grabbing}

/* Keep the approved daily-tip visual complete: its yellow words are part of the source image. */
#workspace .workspace-hero-art{position:relative!important;justify-content:center!important}
#workspace .workspace-hero-art img[data-ux-normal-bob="true"]{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:14px!important}
#workspace .workspace-hero-message{display:none!important}

/* Exact exception requested for Compound Interest lesson 36 only. */
#courseView[data-ux-compound36="true"] .source-course-body{display:block;max-width:54rem}
.compound36-layout{display:grid;gap:1rem}
.compound36-lead{font-size:1.15em!important;font-weight:750;color:var(--c-ink,var(--ink))!important;margin:0!important}
.compound36-section{padding:1.1rem 1.2rem;border:1px solid var(--c-line,var(--line));border-left:5px solid #2997ff;border-radius:14px;background:var(--c-card,var(--surface))}
.compound36-section h3{margin:0 0 .65rem}.compound36-section p{margin:.55rem 0;max-width:68ch}
.compound36-challenge{border-left-color:#795ee8}.compound36-transparent{border-left-color:#16865f}.compound36-mission{border-left-color:#e39b25}.compound36-decision{border-left-color:#1fb4c5}

@media(max-width:1100px){#beginner2View[data-b2-view="overview"] .b2-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.b2-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.b2-overview-hero{grid-template-columns:1fr}.b2-overview-hero .b2-lesson-hero img{height:auto}}
@media(max-width:680px){
 #subscriptions .subscriptions-start{align-items:stretch;flex-direction:column}#subscriptions .subscriptions-start>a{width:100%}
 .b2-lesson-grid,#beginner2View[data-b2-view="overview"] .b2-lesson-grid{grid-template-columns:1fr}.b2-lesson-link{min-height:0}.b2-lesson-hero figcaption{position:static;max-width:none;border-radius:0}
 .b2-lesson-utility{grid-template-columns:minmax(0,1fr)}.b2-lesson-utility>*{grid-column:1!important;grid-row:auto!important;justify-self:start!important}.b2-lesson-utility>.b2-badges{margin-top:.2rem}
  #workspace .workspace-hero-art img[data-ux-normal-bob="true"]{width:100%!important}
}

@media(max-width:900px){
 .b2-lesson-intro{grid-template-columns:minmax(0,1fr)}
 .b2-lesson-intro .b2-lesson-hero{height:auto}
 .b2-lesson-intro .b2-lesson-hero img{height:auto}
}

/* Uniform course closing screen; status comes only from existing progress data. */
.ux-course-ending{max-width:1080px;margin:0 auto;border:1px solid #17648a;border-radius:18px;overflow:hidden;background:#041f39;color:#fff;box-shadow:0 18px 48px #00182b4d}
.ux-ending-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);min-height:430px;background:radial-gradient(circle at 85% 24%,#1a6985 0,transparent 38%),linear-gradient(118deg,#031c35,#073a5c 72%,#062944);position:relative;overflow:hidden}
.ux-ending-copy{padding:clamp(30px,5vw,64px);align-self:center;position:relative;z-index:2}
.ux-ending-kicker{display:inline-flex;padding:7px 13px;border:1px solid #6ac9ee;border-radius:999px;color:#c7f2ff;font-weight:800;letter-spacing:.04em}
.ux-ending-copy h1{margin:20px 0 9px;color:#fff;font-size:clamp(2rem,4.6vw,3.8rem);line-height:1.05;letter-spacing:-.035em}
.ux-ending-copy h2{margin:0;color:#64d7ff;font-size:clamp(1.35rem,2.8vw,2.2rem);line-height:1.2}
.ux-ending-copy p{max-width:650px;margin:28px 0 0;color:#f2f8fc!important;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.7}
.ux-ending-art{position:relative;display:flex;align-items:end;justify-content:center;min-width:0;padding:36px 18px 0}
.ux-ending-art img{display:block;max-width:100%;width:auto;height:340px;object-fit:contain;object-position:bottom center;border-radius:16px 16px 0 0}
.ux-ending-art strong{position:absolute;right:8%;top:11%;background:#fff;color:#092b52;border-radius:55% 50% 60% 45%;padding:14px 18px;font-size:clamp(1rem,1.8vw,1.45rem);font-style:italic;transform:rotate(-7deg);box-shadow:0 10px 24px #00172aa8}
.ux-confetti{position:absolute;width:10px;height:27px;border-radius:2px;background:#ffd02c;transform:rotate(28deg)}
.ux-confetti.c1{top:18%;left:8%}.ux-confetti.c2{top:38%;right:7%;background:#18d3ff;transform:rotate(-35deg)}.ux-confetti.c3{bottom:18%;left:14%;background:#ff5f72;transform:rotate(48deg)}
.ux-ending-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:20px;background:#021a30;border-top:1px solid #175777}
.ux-ending-actions button{min-width:190px}
html[data-theme="light"] .ux-course-ending{border-color:#7fb4d0;box-shadow:0 16px 42px #2357762b}
html[data-theme="light"] .ux-ending-actions{background:#e5f3fb;border-top-color:#a8cfe4}
@media(max-width:760px){.ux-ending-hero{grid-template-columns:1fr;min-height:0}.ux-ending-copy{padding:28px 22px 0}.ux-ending-copy p{margin-top:18px}.ux-ending-art{max-height:280px}.ux-ending-art img{height:270px}.ux-ending-art strong{right:12%;top:8%}.ux-ending-actions{display:grid}.ux-ending-actions button{min-width:0;width:100%}}
