.mastery-portal{color:#10243e;width:100%;max-width:1240px;margin:0 auto;padding:0}.mastery-portal__hero{border-bottom:1px solid #d9d1c4;padding:clamp(1rem,3vw,2.75rem) 0}.mastery-portal__hero>span,.mastery-portal__form span{font-size:.7rem;letter-spacing:.18em;font-weight:700}.mastery-portal h1{font-family:Arial,sans-serif;font-size:clamp(2.35rem,4.6vw,4.8rem);line-height:.98;font-weight:400;max-width:930px;margin:.75rem 0 1rem}.mastery-portal__hero>p{font-size:clamp(1rem,1.6vw,1.25rem);line-height:1.55;max-width:780px}.mastery-portal__actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}.mastery-portal__actions a{background:#10243e;color:#fff;padding:.85rem 1.15rem;text-decoration:none}.mastery-portal__actions a+a{background:transparent;border:1px solid #10243e;color:#10243e}.mastery-portal__grid,.mastery-portal__kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2rem}.mastery-portal__grid article,.mastery-portal__kpis article{background:#fff;border:1px solid #d9d1c4;padding:clamp(1rem,2vw,1.5rem)}.mastery-portal__grid h2,.mastery-portal__form h2{font-family:Arial,sans-serif;font-size:1.5rem;font-weight:400;margin:.35rem 0}.mastery-portal__grid p{line-height:1.55}.mastery-portal__kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.mastery-portal__kpis strong{display:block;font-family:Arial,sans-serif;font-size:clamp(1.5rem,3vw,2.25rem);overflow-wrap:anywhere}.mastery-portal__kpis span{display:block;color:#607080;margin-top:.35rem}.mastery-portal__notice,.mastery-portal__empty{background:#fff;border-left:4px solid #72e1c0;margin-top:2rem;padding:1.25rem 1.5rem;line-height:1.5}.mastery-portal__table-wrap{overflow-x:auto;margin-top:2rem;max-width:100%}.mastery-portal__table{background:#fff;border-collapse:collapse;width:100%;min-width:680px}.mastery-portal__table th,.mastery-portal__table td{border-bottom:1px solid #e2dcd2;padding:.8rem;text-align:left;vertical-align:top}.mastery-portal__table th{background:#10243e;color:#fff;font-size:.78rem;letter-spacing:.04em}.mastery-portal__empty p{margin-bottom:0}.mastery-portal__form{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr);gap:2rem;align-items:end;background:#fff;border:1px solid #d9d1c4;padding:clamp(1.25rem,3vw,2rem);margin-top:2rem}.mastery-portal__form p{margin:.4rem 0 0;line-height:1.45;color:#607080}.mastery-portal__form form{display:grid;grid-template-columns:1fr 1fr auto;gap:.75rem;align-items:end}.mastery-portal__form label{display:grid;gap:.35rem;font-size:.78rem;font-weight:700}.mastery-portal__form input{min-width:0;border:1px solid #cfc7bb;background:#fff;padding:.8rem;color:#10243e}.mastery-portal__form button{border:0;background:#10243e;color:#fff;padding:.86rem 1rem;white-space:nowrap;cursor:pointer}@media(max-width:1050px){.mastery-portal__kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mastery-portal__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mastery-portal__form{grid-template-columns:1fr}.mastery-portal__form form{grid-template-columns:1fr 1fr}}@media(max-width:760px){.mastery-portal__grid,.mastery-portal__kpis{grid-template-columns:1fr}.mastery-portal{padding:0}.mastery-portal h1{font-size:clamp(2.15rem,12vw,3.6rem)}.mastery-portal__hero{padding:1.25rem 0 2rem}.mastery-portal__actions,.mastery-portal__form form{display:grid;grid-template-columns:1fr}.mastery-portal__actions a{text-align:center}.mastery-portal__table{min-width:600px}.mastery-portal__form button{white-space:normal}}
.mastery-protected-notice{margin:1rem 0;padding:1rem 1.15rem;border:1px solid rgba(16,36,62,.16);border-left:4px solid #d7a742;border-radius:12px;background:#f7fbfa}.mastery-protected-notice p{margin:.35rem 0 0}.mastery-rich-editor{border:1px solid #cbd5df;border-radius:10px;background:#fff;overflow:hidden}.mastery-editor-toolbar{display:flex;gap:.35rem;flex-wrap:wrap;padding:.55rem;border-bottom:1px solid #e1e7ec;background:#f7f9fb}.mastery-editor-toolbar button{width:auto!important;min-width:42px;padding:.45rem .7rem!important}.mastery-editor-toolbar button.is-active{outline:2px solid #d7a742}.mastery-editor-visual{min-height:280px;padding:1rem;line-height:1.65;outline:0}.mastery-editor-html{width:100%;min-height:280px;border:0!important;border-radius:0!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}.mastery-rich-editor>small{display:block;padding:.5rem .75rem;border-top:1px solid #e1e7ec;color:#667085}

/* Public catalog — 1.14.3 */
.mastery-catalog-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;margin-top:28px}.mastery-catalog-card{background:rgba(255,255,255,.92);border:1px solid rgba(10,45,70,.14);border-radius:20px;padding:26px;box-shadow:0 12px 34px rgba(13,42,62,.06);transition:transform .2s ease,box-shadow .2s ease}.mastery-catalog-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(13,42,62,.10)}.mastery-catalog-card__top,.mastery-catalog-card__foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.mastery-catalog-badge{font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.mastery-catalog-dot{width:11px;height:11px;border-radius:50%;background:#75dfc4;box-shadow:0 0 0 7px rgba(117,223,196,.14)}.mastery-catalog-card h2{font-size:1.55rem;margin:24px 0 10px}.mastery-catalog-card p{line-height:1.65;min-height:4.8em}.mastery-catalog-card__foot{border-top:1px solid rgba(10,45,70,.10);padding-top:18px;margin-top:22px}.mastery-catalog-card__foot span{opacity:.65}.mastery-public-choice small{display:block;margin-top:7px;line-height:1.45}@media(max-width:700px){.mastery-catalog-cards{grid-template-columns:1fr;gap:14px}.mastery-catalog-card{padding:20px;border-radius:16px}.mastery-catalog-card p{min-height:0}}

/* Guide 1.19.3: explicit response mode selector */
.mastery-guide-mode-choice{display:flex;gap:6px;flex-wrap:wrap}.mastery-guide-mode{border:1px solid #c9d1d9;background:#fff;color:#102946}.mastery-guide-mode.is-active{background:#102946;color:#fff;border-color:#102946}.mastery-guide-mode[aria-pressed="true"]{font-weight:700}
/* Mastery Guide 1.19.5 — conversation UX */
.mastery-guide-toolbar{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin:0 0 1rem}.mastery-guide-toolbar form{margin:0}.mastery-guide-toolbar button,.mastery-guide-history summary{border:1px solid #d7d9dc;background:#fff;color:#102a43;border-radius:9px;padding:.58rem .8rem;font:inherit;cursor:pointer}.mastery-guide-history{position:relative}.mastery-guide-history>div{position:absolute;z-index:20;right:0;top:calc(100% + .4rem);width:min(420px,85vw);max-height:360px;overflow:auto;background:#fff;border:1px solid #ddd;border-radius:12px;padding:.45rem;box-shadow:0 12px 30px rgba(0,0,0,.12)}.mastery-guide-history form button{width:100%;text-align:left;border:0}.mastery-guide-history form button.is-current{font-weight:700;background:#eef6f2}.mastery-guide-message>small{display:inline-flex;padding:.22rem .5rem;border-radius:999px;background:#eef1f4;margin-bottom:.45rem;font-weight:700}.mastery-guide-message--assistant .mastery-guide-sources{margin-top:.65rem;border-top:1px solid #e2e5e8;padding-top:.5rem}.mastery-guide-sources p{margin:.45rem 0;font-size:.92rem}.mastery-guide-sources span{display:none}@media(max-width:700px){.mastery-guide-toolbar{align-items:stretch}.mastery-guide-toolbar>*{flex:1 1 auto}.mastery-guide-toolbar button,.mastery-guide-history summary{width:100%}}
/* SaaS / billing UX — 1.20.1 */
.mastery-pricing__hero{max-width:none}.mastery-pricing__trust{display:flex;gap:1.2rem;flex-wrap:wrap;margin-top:1.5rem;font-size:.9rem;font-weight:700}.mastery-pricing__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.1rem;margin:2rem 0}.mastery-pricing__card{position:relative;display:flex;flex-direction:column;min-width:0;background:rgba(255,255,255,.9);border:1px solid #d9d1c4;border-radius:18px;padding:1.5rem;box-shadow:0 12px 30px rgba(16,36,62,.05)}.mastery-pricing__card.is-featured{border:2px solid #10243e;transform:translateY(-6px)}.mastery-pricing__popular{position:absolute;top:-13px;left:1.3rem;background:#10243e;color:#fff;padding:.38rem .7rem;border-radius:999px;font-size:.65rem;letter-spacing:.1em;font-weight:800}.mastery-pricing__name>span,.mastery-eyebrow,.mastery-billing__metric>span{font-size:.68rem;letter-spacing:.15em;font-weight:800}.mastery-pricing__name h2{font-family:Arial,sans-serif;font-size:2rem;margin:.45rem 0}.mastery-pricing__name p{min-height:3.2rem;color:#5d6978;line-height:1.5}.mastery-pricing__price{display:flex;align-items:flex-end;gap:.45rem;margin:1.2rem 0}.mastery-pricing__price>strong{font-family:Arial,sans-serif;font-size:3.5rem;line-height:.85}.mastery-pricing__price div{display:grid}.mastery-pricing__price span{font-size:.82rem;color:#687483}.mastery-pricing__capacity{padding:1rem 0;border-top:1px solid #e4ded5;border-bottom:1px solid #e4ded5}.mastery-pricing__card ul{list-style:none;padding:0;margin:1.2rem 0 1.5rem;display:grid;gap:.7rem;font-size:.9rem}.mastery-pricing__cta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;background:#10243e;color:#fff!important;text-decoration:none;padding:.9rem 1rem;border-radius:10px;font-weight:800}.mastery-pricing__footnote{text-align:center;color:#687483;margin:1rem auto 2rem;max-width:760px}.mastery-billing__summary{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:1rem;margin:2rem 0}.mastery-billing__summary>article,.mastery-billing__panel{background:rgba(255,255,255,.92);border:1px solid #d9d1c4;border-radius:18px;padding:1.5rem;box-shadow:0 10px 28px rgba(16,36,62,.04)}.mastery-billing__plan{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.mastery-billing__plan h2{font-family:Arial,sans-serif;font-size:2rem;margin:.35rem 0}.mastery-billing__price{margin:0}.mastery-billing__price strong{font-size:2rem}.mastery-billing__price span{color:#687483}.mastery-status{display:inline-flex;border-radius:999px;padding:.45rem .7rem;background:#eef2f5;font-size:.75rem;font-weight:800;white-space:nowrap}.mastery-status--active{background:#e7f6ef;color:#176044}.mastery-status--past_due{background:#fff0d9;color:#8a4d00}.mastery-status--cancelled{background:#f3e7e7;color:#7c2e2e}.mastery-status--test{background:#eaf1f7;color:#294d68}.mastery-billing__metric strong{display:block;font-family:Arial,sans-serif;font-size:1.75rem;margin:.55rem 0 .2rem}.mastery-billing__metric small{color:#687483}.mastery-usage{height:7px;background:#e8e4dc;border-radius:99px;overflow:hidden;margin-top:1rem}.mastery-usage i{display:block;height:100%;background:#267453}.mastery-billing__alert{border-left:4px solid #c47b18;background:#fff8ea;padding:1rem 1.2rem;margin:0 0 1rem;border-radius:10px}.mastery-billing__alert p{margin:.3rem 0 0}.mastery-billing__panel{margin:1rem 0}.mastery-billing__panel-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-bottom:1px solid #e4ded5;padding-bottom:1rem;margin-bottom:1rem}.mastery-billing__panel h2{font-family:Arial,sans-serif;font-size:1.7rem;margin:.25rem 0}.mastery-billing__panel-head p{margin:0;color:#687483}.mastery-plan-change{display:grid;grid-template-columns:1fr auto;gap:.8rem;align-items:end}.mastery-plan-change label{display:grid;gap:.45rem;font-weight:800}.mastery-plan-change select{width:100%;padding:.8rem;border:1px solid #cfc7bb;border-radius:9px;background:#fff}.mastery-btn{border:0;border-radius:9px;background:#10243e;color:#fff;padding:.82rem 1rem;font-weight:800;cursor:pointer}.mastery-btn--secondary{background:#fff;color:#10243e;border:1px solid #10243e}.mastery-btn--danger{background:#fff;color:#7b2929;border:1px solid #b77979}.mastery-billing__danger{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid #e4ded5}.mastery-billing__danger p{margin:.3rem 0;color:#687483}.mastery-table{overflow-x:auto}.mastery-table table{width:100%;border-collapse:collapse;min-width:650px}.mastery-table th,.mastery-table td{text-align:left;padding:.85rem;border-bottom:1px solid #e7e2da}.mastery-table th{font-size:.68rem;letter-spacing:.1em;color:#687483}.mastery-table a{color:#10243e;font-weight:800}.mastery-billing__empty{padding:1rem;background:#f8f6f1;border-radius:10px;color:#687483}@media(max-width:1050px){.mastery-pricing__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mastery-billing__summary{grid-template-columns:1fr 1fr}.mastery-billing__plan{grid-column:1/-1}}@media(max-width:700px){.mastery-pricing__grid,.mastery-billing__summary{grid-template-columns:1fr}.mastery-pricing__card.is-featured{transform:none}.mastery-billing__plan{grid-column:auto;display:grid}.mastery-billing__panel-head,.mastery-billing__danger{align-items:stretch;display:grid}.mastery-plan-change{grid-template-columns:1fr}.mastery-btn{width:100%}}
/* Priorité 16 — finances pédagogiques */
.mastery-fin16{display:grid;gap:22px;margin-top:24px}.mastery-fin16-warning{padding:18px 20px;border:1px solid rgba(13,50,64,.16);border-left:4px solid #0d7c69;border-radius:14px;background:#f7fbf8}.mastery-fin16-warning p{margin:6px 0 0}.mastery-fin16-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mastery-fin16-grid article{padding:18px;border-radius:16px;background:#fff;border:1px solid rgba(13,50,64,.12)}.mastery-fin16-grid small,.mastery-fin16-grid strong{display:block}.mastery-fin16-grid strong{font-size:1.35rem;margin-top:6px}.mastery-fin16 details,.mastery-fin16 section{padding:20px;border-radius:18px;background:#fff;border:1px solid rgba(13,50,64,.12)}.mastery-fin16 details summary{font-weight:800;cursor:pointer}.mastery-fin16-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.mastery-fin16-form label{display:grid;gap:6px;font-weight:700}.mastery-fin16-form input,.mastery-fin16-form select{width:100%;padding:11px;border:1px solid #c9d4d6;border-radius:10px;background:#fff}.mastery-fin16-form button,.mastery-fin16-row button{align-self:end;padding:11px 16px;border:0;border-radius:10px;background:#123b4a;color:#fff;font-weight:800}.mastery-fin16-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mastery-fin16-columns .mastery-fin16-form{grid-template-columns:1fr}.mastery-fin16-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #e4eaeb}.mastery-fin16-row small{display:block;margin-top:4px}.mastery-fin16-row form{margin:0}.mastery-fin16-history{display:grid;gap:8px}.mastery-fin16-history article{display:flex;gap:18px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e4eaeb}@media(max-width:900px){.mastery-fin16-grid,.mastery-fin16-columns,.mastery-fin16-form{grid-template-columns:1fr 1fr}}@media(max-width:620px){.mastery-fin16-grid,.mastery-fin16-columns,.mastery-fin16-form{grid-template-columns:1fr}.mastery-fin16-row,.mastery-fin16-history article{align-items:flex-start;flex-direction:column}}
.mastery-backtest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mastery-backtest-result{border:1px solid #d9dfda;border-radius:16px;padding:18px;margin:14px 0;background:#fff}.mastery-backtest-result header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.mastery-backtest-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.mastery-backtest-kpis div{background:#f5f3ec;border-radius:12px;padding:12px}.mastery-backtest-kpis strong,.mastery-backtest-kpis span{display:block}.mastery-backtest-conclusion{border-left:3px solid currentColor;padding-left:14px;margin-top:12px}.mastery-backtest-csv{min-height:180px;font-family:monospace}@media(max-width:800px){.mastery-backtest-grid,.mastery-backtest-kpis{grid-template-columns:1fr}.mastery-backtest-result header{display:block}}

/* Priorité 16 — finition UX simulations 1.24.1 */
.mastery-simulations-page{--sim-ink:#163444;--sim-muted:#66757b;--sim-warm:#f7f2e8;--sim-soft:#f4f8f4;--sim-line:rgba(22,52,68,.12)}
.mastery-simulations-page p,.mastery-simulations-page small,.mastery-simulations-page label{color:var(--sim-muted)}
.mastery-simulations-page .mastery-fin16-warning{color:var(--sim-ink)}
.mastery-simulations-page .mastery-simulations-note{padding:16px 20px;background:linear-gradient(135deg,#fbf8f1,#f4f8f4);border-left-color:#19836f}
.mastery-simulations-page .mastery-simulations-note strong{color:var(--sim-ink)}
.mastery-simulations-page .mastery-sim-picker{padding:22px;background:#fff}
.mastery-sim-picker-intro{margin-bottom:18px}.mastery-sim-picker-intro small{font-weight:800;letter-spacing:.16em;color:#8a6a4b}.mastery-sim-picker-intro h2{margin:5px 0 4px;color:var(--sim-ink)}.mastery-sim-picker-intro p{margin:0}
.mastery-sim-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mastery-simulations-page .mastery-sim-choice-grid>details{padding:0;border:1px solid var(--sim-line);border-radius:15px;background:linear-gradient(145deg,#fff,#fbfaf6);overflow:hidden}
.mastery-simulations-page .mastery-sim-choice-grid>details>summary{min-height:78px;padding:18px 20px;display:flex;align-items:center;color:var(--sim-ink);line-height:1.35}
.mastery-simulations-page .mastery-sim-choice-grid>details[open]>summary{background:var(--sim-warm);border-bottom:1px solid var(--sim-line)}
.mastery-simulations-page .mastery-sim-choice-grid .mastery-fin16-form{padding:0 18px 18px;grid-template-columns:1fr 1fr}
.mastery-simulations-page .mastery-backtest-feature{padding:0;overflow:hidden;border-color:rgba(25,131,111,.24);background:linear-gradient(145deg,#fbf8f1,#f2f8f4)}
.mastery-simulations-page .mastery-backtest-feature>summary{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--sim-ink)}
.mastery-simulations-page .mastery-backtest-feature>summary span:first-child{display:grid;gap:3px}.mastery-simulations-page .mastery-backtest-feature>summary small{font-size:.7rem;letter-spacing:.14em;font-weight:800;color:#19836f}.mastery-simulations-page .mastery-backtest-feature>summary strong{font-size:1.12rem}.mastery-backtest-question{font-weight:600;color:#536970}
.mastery-simulations-page .mastery-backtest-feature>.mastery-backtest-lead,.mastery-simulations-page .mastery-backtest-feature>.mastery-fin16-form,.mastery-simulations-page .mastery-backtest-feature>.mastery-fin16-help,.mastery-simulations-page .mastery-backtest-feature>details{margin-left:20px;margin-right:20px}.mastery-simulations-page .mastery-backtest-feature>.mastery-backtest-lead{margin-top:0}
.mastery-simulations-page>section>h2{color:var(--sim-ink);font-size:1.45rem}.mastery-simulations-page .mastery-backtest-result{box-shadow:0 8px 24px rgba(22,52,68,.035);border-color:var(--sim-line)}
.mastery-simulations-page .mastery-backtest-result header strong{color:var(--sim-ink);font-size:1.05rem}.mastery-simulations-page .mastery-backtest-result header small{margin-top:4px;display:block}
.mastery-simulations-page .mastery-backtest-kpis div{background:var(--sim-warm);border:1px solid rgba(138,106,75,.06)}.mastery-simulations-page .mastery-backtest-kpis span{color:var(--sim-muted);font-size:.82rem}.mastery-simulations-page .mastery-backtest-kpis strong{color:var(--sim-ink);font-size:1.12rem;margin-top:4px}
.mastery-simulations-page .mastery-backtest-reading-choice{margin-top:16px;padding:15px 16px;border-radius:13px;background:var(--sim-soft);border:1px solid rgba(25,131,111,.14)}.mastery-simulations-page .mastery-backtest-reading-choice>strong{color:var(--sim-ink)}.mastery-simulations-page .mastery-backtest-reading-choice p{margin:5px 0 12px}.mastery-backtest-reading-actions{display:flex;gap:9px;flex-wrap:wrap}.mastery-backtest-reading-actions form{margin:0}.mastery-backtest-reading-actions button{padding:9px 13px;border-radius:9px;border:1px solid rgba(22,52,68,.16);background:#fff;color:var(--sim-ink);font-weight:750}.mastery-backtest-reading-actions form:last-of-type button{background:#173f4d;color:#fff;border-color:#173f4d}
.mastery-simulations-page button{transition:transform .15s ease,box-shadow .15s ease}.mastery-simulations-page button:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(22,52,68,.08)}
@media(max-width:900px){.mastery-sim-choice-grid{grid-template-columns:1fr}.mastery-simulations-page .mastery-sim-choice-grid .mastery-fin16-form{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.mastery-simulations-page .mastery-sim-choice-grid .mastery-fin16-form{grid-template-columns:1fr}.mastery-simulations-page .mastery-backtest-feature>summary{align-items:flex-start;flex-direction:column}.mastery-backtest-reading-actions{flex-direction:column}.mastery-backtest-reading-actions form,.mastery-backtest-reading-actions button{width:100%}}

/* Checkout payment UX — 1.25.28 */
.mastery-checkout{max-width:1120px;padding:clamp(1rem,2vw,1.5rem) 0 3rem}.mastery-checkout__hero{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;padding:clamp(1rem,3vw,2.25rem) 0 1.5rem;border-bottom:1px solid #d9d1c4}.mastery-checkout__hero h1{font-size:clamp(2.2rem,5vw,4rem);margin:.45rem 0 .65rem}.mastery-checkout__hero p{margin:0}.mastery-checkout__secure{max-width:270px;padding:.9rem 1rem;border:1px solid #d9d1c4;border-radius:14px;background:rgba(255,255,255,.72)}.mastery-checkout__secure strong,.mastery-checkout__secure span{display:block}.mastery-checkout__secure span{margin-top:.25rem;color:#607080;font-size:.82rem;line-height:1.4}.mastery-checkout__layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:1.25rem;align-items:start;margin-top:1.25rem}.mastery-checkout__payment,.mastery-checkout__summary{background:rgba(255,255,255,.94);border:1px solid #d9d1c4;border-radius:20px;box-shadow:0 12px 32px rgba(16,36,62,.06)}.mastery-checkout__payment{padding:clamp(1rem,3vw,1.75rem)}.mastery-checkout__heading{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1.25rem}.mastery-checkout__heading h2,.mastery-checkout__summary h2{font-family:Arial,sans-serif;font-weight:400;margin:0;font-size:1.55rem}.mastery-checkout__heading p{margin:.35rem 0 0;color:#607080;line-height:1.5;font-size:.9rem}.mastery-checkout__step{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#10243e;color:#fff;font-weight:800}.mastery-checkout__paypal-wrap{max-width:620px;margin:0 auto}.mastery-checkout__error{padding:.9rem 1rem;border-left:4px solid #b42318;background:#fff1f0;color:#7a271a;line-height:1.45}.mastery-checkout__stripe button{width:100%;min-height:48px;border:0;border-radius:8px;background:#10243e;color:#fff;font-weight:800;cursor:pointer}.mastery-checkout__summary{padding:1.5rem;position:sticky;top:1rem}.mastery-checkout__summary h2{font-size:2rem;margin:.4rem 0 1rem}.mastery-checkout__price{display:flex;align-items:flex-end;gap:.55rem;padding:1rem 0;border-top:1px solid #e4ded5;border-bottom:1px solid #e4ded5}.mastery-checkout__price strong{font-family:Arial,sans-serif;font-size:2.5rem;line-height:1}.mastery-checkout__price span{font-size:.8rem;color:#607080}.mastery-checkout__summary dl{margin:1rem 0}.mastery-checkout__summary dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid #eee9e1}.mastery-checkout__summary dt{color:#607080}.mastery-checkout__summary dd{margin:0;text-align:right;font-weight:700}.mastery-checkout__fineprint{font-size:.78rem;line-height:1.5;color:#607080;margin:1rem 0 0}@media(max-width:860px){.mastery-checkout__layout{grid-template-columns:1fr}.mastery-checkout__summary{position:static;order:-1}.mastery-checkout__hero{align-items:flex-start}.mastery-checkout__secure{max-width:240px}}@media(max-width:620px){.mastery-checkout{padding:0 0 2rem}.mastery-checkout__hero{display:block;padding:1rem 0}.mastery-checkout__secure{max-width:none;margin-top:1rem}.mastery-checkout__layout{gap:.8rem;margin-top:.8rem}.mastery-checkout__payment,.mastery-checkout__summary{border-radius:14px}.mastery-checkout__payment,.mastery-checkout__summary{padding:1rem}.mastery-checkout__heading{gap:.65rem}.mastery-checkout__heading h2{font-size:1.3rem}.mastery-checkout__paypal-wrap{max-width:100%}.mastery-checkout__summary dl>div{font-size:.9rem}}

/* Checkout PayPal same-page redirect — 1.25.29 */
.mastery-checkout__paypal-start{max-width:620px;margin:0 auto}.mastery-checkout__paypal-button{width:100%;min-height:58px;border:0;border-radius:10px;background:#ffc439;color:#111820;display:flex;align-items:center;justify-content:center;gap:.65rem;padding:.8rem 1rem;cursor:pointer;font:inherit;box-shadow:0 2px 0 rgba(0,0,0,.08);transition:transform .15s ease,box-shadow .15s ease}.mastery-checkout__paypal-button:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(16,36,62,.12)}.mastery-checkout__paypal-button:focus-visible{outline:3px solid #10243e;outline-offset:3px}.mastery-checkout__paypal-button strong{font-size:1.25rem;font-style:italic}.mastery-checkout__paypal-button span{font-size:.92rem;font-weight:700}.mastery-checkout__provider-note{text-align:center;color:#607080;font-size:.78rem;line-height:1.45;margin:.75rem auto 0;max-width:520px}@media(max-width:620px){.mastery-checkout__paypal-button{min-height:54px;flex-direction:column;gap:.1rem}.mastery-checkout__paypal-button strong{font-size:1.15rem}.mastery-checkout__paypal-button span{font-size:.82rem}}

[data-ory-catalog] [hidden] { display: none; }
[data-ory-catalog-search] label { display: grid; gap: .5rem; font-weight: 650; }
[data-ory-catalog-search] input { width: min(100%, 32rem); }
