@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #212120;
  --surface: #282827;
  --line: #444440;
  --text: #f3f1e9;
  --muted: #b7b6af;
  --accent: #ff503c;
  --primary: #ff503c;
  --ink: #221410;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--canvas);
  color: var(--text);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
#app { display: flex; flex-direction: column; flex: 1; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #ff8c76; outline-offset: 4px; }
main:focus, #catalog:focus { outline: none; }
::selection { color: #201918; background: #ff8978; }
.wrap { width: min(1240px, 88.8%); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 20px; background: var(--text); color: var(--canvas); }
.skip:focus { top: 10px; }
#site-header { background: #20201f; border-bottom: 1px solid #383835; position: relative; z-index: 2; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: clamp(35px, 5.2vw, 80px); }
.brand { display: inline-flex; gap: 10px; align-items: center; width: fit-content; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-type { display: flex; flex-direction: column; align-items: flex-start; }
.brand-type strong { font-size: 1.31rem; letter-spacing: -.065em; line-height: .96; font-weight: 850; }
.brand-type > span { padding-left: 1px; margin-top: 5px; font: 600 .60rem/1 var(--mono); letter-spacing: .34em; color: #c1c0b9; }
.main-nav { display: flex; align-self: stretch; gap: 29px; }
.main-nav a { position: relative; display: flex; align-items: center; font-size: .88rem; font-weight: 530; color: var(--muted); }
.main-nav [aria-current] { color: var(--text); }
.main-nav [aria-current]::after { content: ""; position: absolute; bottom: -1px; width: 24px; height: 2px; left: 50%; transform: translateX(-50%); background: var(--accent); }
.main-nav a:hover, .footer-inner a:hover, .breadcrumb a:hover { color: var(--accent); }
.learning-link { margin-left: auto; display: inline-flex; gap: 9px; align-items: center; padding: 9px 15px; border: 1px solid #575751; border-radius: 6px; font-weight: 580; font-size: .86rem; }
.learning-link:hover, .learning-link[aria-current] { background: #32322f; border-color: #88867f; }
.eyebrow, .card-kicker, .mock-label { display: flex; align-items: center; gap: 11px; font: 500 .73rem/1.3 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: #e2dfd5; }
.section-mark { display: inline-block; flex-shrink: 0; width: 20px; height: 12px; background: repeating-linear-gradient(110deg, transparent 0 3px, var(--accent) 3px 5.5px, transparent 5.5px 8px); transform: skewX(-5deg); }
.btn { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 5px; padding: 11px 18px; font-weight: 690; font-size: .9rem; transition: background .16s, border-color .16s; }
.btn.primary { color: var(--ink); background: var(--primary); }
.btn.primary:hover { background: #ff725e; }
.btn.secondary { background: transparent; border-color: #55554e; }
.btn.secondary:hover { border-color: #aaa99f; background: #30302d; }
.heading-lockup { display: flex; align-items: center; gap: 13px; }
.heading-lockup .section-mark { height: 24px; width: 4px; background: var(--accent); transform: none; border-radius: 1px; }
h2 { font-size: clamp(1.7rem, 2.45vw, 2.3rem); line-height: 1.15; font-weight: 620; letter-spacing: -.05em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.course-card { display: flex; flex-direction: column; min-width: 0; position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; overflow: hidden; transition: border-color .18s, transform .18s; }
.course-card:hover, .course-card:focus-within { border-color: #77746b; }
.course-card:hover { transform: translateY(-2px); }
.card-media { background: #232321; border-bottom: 1px solid #41413c; height: clamp(140px, 12.35vw, 179px); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 94%; object-fit: contain; mix-blend-mode: lighten; }
.save-icon, .close-btn { display: grid; place-items: center; border: 1px solid #4b4b46; background: #282825; border-radius: 5px; width: 32px; height: 32px; }
.save-icon { position: absolute; right: 11px; top: 11px; z-index: 1; color: #cccabf; }
.save-icon:hover, .close-btn:hover { background: #3e3e38; color: white; }
[data-save][aria-pressed="true"] svg { fill: currentColor; color: var(--accent); }
.card-content { flex: 1; padding: 20px 21px 17px; }
.card-kicker { color: #c8c6ba; font-size: .75rem; letter-spacing: .09em; gap: 8px; }
.red-dash { width: 13px; height: 2px; background: var(--accent); }
h3 { margin: 8px 0 7px; font-size: clamp(1.25rem, 1.85vw, 1.62rem); font-weight: 605; letter-spacing: -.045em; line-height: 1.18; }
.course-card h3 a::after { position: absolute; content: ""; inset: 0; }
.course-card h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 8px; }
.card-content p { font-size: 1rem; line-height: 1.48; color: var(--muted); }
.card-bottom { border-top: 1px solid #41413c; margin: 0 21px; padding: 12px 0 14px; color: #c9c7bc; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; }
.card-bottom span, .detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.card-units { color: #adada2; }
#site-footer { border-top: 1px solid #393936; color: #aaa99f; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 81px; font-size: .8rem; }
.footer-inner .brand { transform: scale(.8); transform-origin: left center; margin-right: -21px; color: var(--text); }
.footer-inner > span { margin-right: auto; border-left: 1px solid #464640; padding-left: 20px; }
.detail-page { padding-block: 30px 60px; }
.breadcrumb { font-size: .85rem; display: flex; gap: 10px; align-items: center; color: #c6c4ba; margin-bottom: 38px; }
.breadcrumb a { color: #a7a69c; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 7%; align-items: center; padding-block: 10px 44px; }
.detail-intro h1, .workspace h1 { margin: 15px 0 13px; font-size: clamp(2.7rem, 4.5vw, 4.5rem); font-weight: 620; letter-spacing: -.065em; line-height: 1.04; }
.lead { color: var(--muted); line-height: 1.55; font-size: 1.08rem; max-width: 51ch; }
.detail-meta { display: flex; gap: 22px; color: #d3d1c7; margin-block: 23px; font-size: .88rem; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-note { font-size: .82rem; color: #b8b5a9; margin-top: 12px; }
.detail-art { border: 1px solid var(--line); border-radius: 8px; padding: 36px 12px; background: #242422; }
.detail-art img { width: 100%; height: auto; mix-blend-mode: lighten; }
.outline { border-top: 1px solid var(--line); padding-top: 32px; }
.outline > p { margin: 11px 0 20px; color: var(--muted); }
.outline ol { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.outline li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface); }
.outline li + li { border-top: 1px solid var(--line); }
.unit-icon { display: grid; place-items: center; color: #d7d2c3; }
.outline li small { margin-left: auto; color: var(--muted); font: .75rem var(--mono); }
.workspace { padding-block: 60px 75px; }
.workspace .lead { margin-bottom: 27px; }
.empty-state { text-align: center; padding: 53px 20px; border: 1px dashed #56564f; border-radius: 8px; background: #252523; }
.empty-state > svg { color: var(--accent); margin-bottom: 16px; }
.empty-state h2 { font-size: 1.55rem; }
.empty-state p { margin: 12px 0 22px; color: var(--muted); }
dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 26px; border: 1px solid #53534b; border-radius: 12px; color: var(--text); background: #282826; box-shadow: 0 18px 90px #10100ec0; }
dialog::backdrop { background: #151513bb; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mock-label { color: #ff9a86; border: 1px solid #794a3e; background: #3f2a25; border-radius: 4px; padding: 4px 8px; font-size: .67rem; }
dialog h2 { font-size: 2rem; margin-top: 8px; }
.dialog-desc { color: var(--muted); margin: 12px 0 22px; line-height: 1.5; }
.order-summary { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 22px; }
.order-summary img { width: 76px; height: 51px; object-fit: contain; border-radius: 4px; background: #21211f; }
.order-summary small, .order-summary strong { display: block; }
.order-summary small { color: var(--muted); margin-bottom: 4px; }
.payment-label { font-size: .83rem; color: var(--muted); margin-bottom: 8px; }
.demo-card, .total { display: flex; align-items: center; gap: 10px; }
.demo-card { padding: 13px; border: 1px solid var(--line); border-radius: 5px; font-size: .89rem; }
.demo-card svg:last-child { margin-left: auto; color: var(--accent); }
.total { justify-content: space-between; margin: 23px 0; }
.total strong { font-size: 1.45rem; }
.full { width: 100%; }
.text-btn { display: block; margin: 14px auto 0; padding: 5px 9px; border: 0; color: var(--muted); background: transparent; font-size: .88rem; }
.text-btn:hover { color: var(--text); }
.success-icon { display: grid; place-items: center; margin: 4px 0 18px; color: var(--accent); background: #3f2a25; border-radius: 100%; width: 49px; height: 49px; }
#notice:not(:empty) { position: fixed; z-index: 5; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; background: #ece9dd; color: #25251f; border-radius: 6px; font-size: .88rem; box-shadow: 0 3px 16px #12120f55; }
@media (max-width: 980px) {
  .wrap { width: 91.5%; }
  .cards { gap: 14px; }
  .card-content { padding: 15px 16px; }
  .card-bottom { margin-inline: 16px; }
  .card-media { height: 125px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; gap: 15px; flex-wrap: wrap; padding-top: 12px; }
  .brand img { width: 32px; height: 32px; }
  .brand-type strong { font-size: 1.14rem; }
  .brand-type > span { font-size: .52rem; }
  .main-nav { order: 3; width: 100%; gap: 25px; }
  .main-nav a { padding: 0 0 10px; }
  .main-nav [aria-current]::after { left: 0; transform: none; width: 20px; }
  .learning-link { padding: 7px 12px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card-media { height: auto; aspect-ratio: 2.6; }
  .card-content { padding: 18px; }
  .card-content h3 { font-size: 1.5rem; }
  .card-bottom { margin-inline: 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 27px; }
  .detail-art { padding: 12px; }
  .detail-art img { max-height: 200px; object-fit: contain; }
  .breadcrumb { margin-bottom: 20px; }
  .workspace { padding-block: 36px 45px; }
  .footer-inner { min-height: 74px; gap: 14px; }
  .footer-inner .brand { margin-right: auto; }
  .footer-inner > span { display: none; }
}
@media (max-width: 400px) {
  .detail-meta { gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

[hidden] { display: none !important; }
.account-nav { margin-left: auto; }
.account-nav button { background: transparent; }
.account-page { padding-block: clamp(32px, 6vw, 80px); }
.account-panel { width: min(100%, 460px); margin-inline: auto; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }
.account-panel h1 { font-size: clamp(2.15rem, 3.4vw, 3rem); letter-spacing: -.055em; line-height: 1.05; margin: 18px 0 12px; }
.account-panel .lead { font-size: 1rem; margin-bottom: 24px; }
.account-email { overflow-wrap: anywhere; }
.auth-form, .field { display: grid; gap: 8px; }
.auth-form { gap: 18px; }
.field input { min-width: 0; width: 100%; padding: 12px; color: var(--text); background: var(--canvas); border: 1px solid #67675f; border-radius: 4px; font: inherit; }
.field small, .form-switch { color: var(--muted); }
.form-switch { margin-top: 20px; font-size: .9rem; }
.form-switch a, .outline li a:hover { color: var(--accent); text-decoration: underline; }
.form-error, .errorlist { color: #ff9a86; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.account-panel .text-btn { text-align: center; }
.account-panel .detail-note, .account-panel .form-error { margin-bottom: 16px; }
.outline li small { display: inline-flex; gap: 5px; align-items: center; }
.module-grid { display: grid; grid-template-columns: minmax(185px, .34fr) 1fr; gap: clamp(20px, 4vw, 56px); }
.module-nav { display: flex; flex-direction: column; gap: 4px; align-self: start; border: 1px solid var(--line); padding: 14px; border-radius: 7px; }
.module-nav h2 { font-size: 1.15rem; margin: 4px 8px 12px; }
.module-nav a { padding: 10px 8px; color: var(--muted); border-radius: 4px; }
.module-nav [aria-current] { color: var(--text); background: #353530; }
.module-sheet h1 { font-size: clamp(2rem,4vw,3.8rem); }
.module-placeholder { border-top: 1px solid var(--line); padding: 25px 0; margin-top: 27px; color: var(--muted); }
.module-placeholder h2 { font-size: 1.25rem; color: var(--text); margin: 12px 0 8px; }
@media (max-width: 720px) { .module-grid { grid-template-columns: 1fr; } .module-nav { order: 2; } }

.wallet-nav, .header-balance, .quote-row, .plan-summary { display: flex; align-items: center; }
.wallet-nav { gap: 14px; }
.header-balance { gap: 8px; width: max-content; color: var(--text); font-weight: 650; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pp-coin { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; color: var(--accent); font: italic 800 .85rem "DM Sans", sans-serif; }
.module-price { margin-left: auto; flex-shrink: 0; border: 1px solid var(--line); padding: 6px 11px; border-radius: 5px; font-size: .87rem; }
.module-price:hover { color: var(--accent); }
.quote-row, .plan-summary { justify-content: space-between; gap: 20px; }

.pricing-page { padding: clamp(44px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.pricing-wrap { max-width: 1056px; }
.pricing-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.pricing-intro h1 { font-size: clamp(2.8rem, 4.7vw, 4.3rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 570; }
.pricing-intro p { margin-top: 12px; color: var(--muted); line-height: 1.55; font-size: 1rem; }
.billing-switch { display: inline-flex; flex: none; padding: 3px; border: 1px solid #494943; border-radius: 22px; background: #232321; }
.billing-switch a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 17px; border-radius: 18px; font-size: .86rem; font-weight: 570; }
.billing-multiplier { padding: 2px 5px; border-radius: 4px; background: #482e28; color: #ffad9a; font: 600 .73rem/1.1 var(--mono); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.price-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.price-card.formation-match { border-color: #9c5849; background: linear-gradient(160deg, #342c28, #2c2926 75%); }
.price-card h2 { font-size: 1.27rem; font-weight: 580; letter-spacing: -.025em; }
.tier-price { display: flex; align-items: baseline; gap: 9px; margin-top: 18px; }
.tier-price strong { font-size: clamp(2.8rem, 4.1vw, 3.8rem); line-height: 1; letter-spacing: -.065em; font-weight: 550; font-variant-numeric: lining-nums; }
.tier-price span { color: var(--muted); font-size: .9rem; }
.tier-credit { margin: 30px 0; color: var(--muted); font-size: .9rem; }
.tier-credit strong { font-weight: 620; font-size: 1.05rem; color: var(--text); }
.tier-bonus { display: block; margin-top: 6px; font-size: .83rem; font-weight: 500; color: #ff9a86; }
.tier-breakdown { display: grid; }
.tier-breakdown > div { grid-area: 1 / 1; min-width: 0; }
.pack-coverage { display: block; font-size: .83rem; }
.pack-track { height: 3px; margin: 18px 0 7px; border-radius: 2px; overflow: hidden; background: var(--line); }
.pack-track span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--pack-coverage)); }
.tier-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; width: fit-content; max-width: 100%; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.tier-total span { font: .73rem var(--mono); letter-spacing: .07em; }
.tier-total small { font-size: .8rem; white-space: nowrap; }
.tier-action { display: flex; align-items: center; min-height: 44px; margin-top: auto; }
.current-tier { font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.billing-note { margin-top: 14px; text-align: right; color: var(--muted); font-size: .79rem; line-height: 1.5; }
.plan-summary { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.plan-summary h2 { font-size: 1.14rem; }
.plan-summary p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.pricing-faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px; border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 68px); padding-top: 26px; }
.plan-summary + .pricing-faq { margin-top: 0; }
.pricing-faq > h2 { font-size: 1.45rem; font-weight: 560; }
.pricing-faq details { border-bottom: 1px solid #393935; }
.pricing-faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 500; }
.pricing-faq details:first-child summary { padding-top: 3px; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin-right: 3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.pricing-faq details[open] summary::after { border-color: var(--accent); transform: rotate(225deg); }
.pricing-faq details p { padding-bottom: 16px; color: var(--muted); line-height: 1.55; }
.pricing-faq details a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.wallet-history ul { list-style: none; padding: 0; margin: 0 0 12px; }
.wallet-history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.wallet-history small { display: block; color: var(--muted); } .wallet-history strong { white-space: nowrap; }
@media (max-width: 720px) {
  .wallet-nav { gap: 8px; } .wallet-nav .learning-link { padding: 7px; }
  .pricing-intro, .plan-summary { align-items: start; flex-direction: column; }
  .pricing-grid, .pricing-faq { grid-template-columns: 1fr; }
  .pricing-grid { grid-auto-rows: 1fr; }
  .price-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 22px; }
  .price-card h2 { grid-column: 1; }
  .tier-price { grid-column: 2; grid-row: 1; margin: 0; gap: 5px; }
  .tier-price strong { font-size: 2.4rem; }
  .tier-credit { grid-column: 1 / -1; margin: 12px 0 0; }
  .tier-action { grid-column: 1 / -1; margin-top: 18px; }
  .pricing-faq { gap: 16px; }
}

.module-card { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .18s, transform .18s; }
.module-card:hover, .module-card:focus-within { border-color: #787468; }
.module-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.module-card .card-kicker { padding-top: 2px; }
.module-card h3 { margin: 18px 0 7px; font-size: 1.33rem; }
.module-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.module-card p { color: var(--muted); line-height: 1.48; margin-bottom: 20px; font-size: 1rem; }
.module-card-foot { display: flex; gap: 7px; align-items: center; margin-top: auto; font-size: .84rem; color: #d6d3c8; }
.module-stars { display: inline-flex; gap: 3px; flex: none; }
.module-stars svg { width: 16px; height: 16px; fill: none; stroke: #b7ad9e; stroke-width: 1.5; stroke-linejoin: round; }
.module-stars .filled { fill: #ff492c; stroke: #ff492c; }
.learning-section { margin: 32px 0 0; }
.learning-section > h2 { font-size: 1.5rem; margin-bottom: 16px; }
.module-intro { max-width: 800px; border: 1px solid var(--line); border-radius: 9px; padding: clamp(22px, 4vw, 42px); background: var(--surface); }
.module-intro .lead { margin-bottom: 14px; }
.module-access { color: var(--muted); margin: 0 0 20px; }
.outline-module .module-stars { align-self: flex-start; margin-top: 4px; }
@media (max-width: 720px) {
  .outline .outline-module { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .outline-module > svg { display: none; }
  .outline-module .module-stars { grid-area: 1 / 2; }
  .outline-module .module-price, .outline-module small { grid-column: 1; justify-self: start; margin: 0; }
}

:root:has(.academy-content) { scroll-behavior: auto; scroll-padding-top: 88px; }
.academy-content #site-header { position: sticky; top: 0; z-index: 5; }
.academy-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.academy-content[aria-busy="true"]::before {
  content: ""; position: fixed; top: 0; inset-inline: 0; z-index: 20; height: 2px;
  background: var(--accent); pointer-events: none; animation: navigation-progress .7s both;
}
@keyframes navigation-progress { from { opacity: 0; transform: scaleX(.1); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .academy-content[aria-busy="true"]::before { animation: none; } }
.desktop-gate { display: none; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .academy-content { display: none; }
  .desktop-gate {
    min-height: 100svh; width: 100%; padding: 20px; display: grid; place-items: center;
    background: radial-gradient(ellipse at 50% 30%, #32322e, var(--canvas) 75%);
  }
  .desktop-notice {
    width: min(100%, 410px); padding: clamp(24px, 6vw, 36px);
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    box-shadow: 0 16px 54px #0004; outline: none;
  }
  .desktop-notice h1 { margin: 20px 0 8px; font-size: clamp(1.7rem, 5vw, 2.25rem); }
  .desktop-notice p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
  .desktop-notice input { width: 100%; margin-top: 12px; }
}
.study-card-action { position: relative; z-index: 1; }

.lesson-navigation { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.lesson-navigation > a { display: inline-block; color: var(--muted); font-size: .9rem; }
.lesson-navigation > a:hover { color: var(--accent); text-decoration: underline; }
.lesson-neighbors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.lesson-neighbors a { display: grid; align-content: center; gap: 3px; justify-items: start; text-align: left; }
.lesson-neighbors small { font-size: .74rem; font-weight: 500; }

.release-status {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3em;
  color: #e6ca94; font-size: .82rem; font-weight: 600; line-height: 1.4;
}
.release-status time { white-space: nowrap; }
.card-content > .release-status, .module-card > .release-status { margin-bottom: .6rem; }
.module-nav a > .release-status { display: flex; margin-top: .2rem; }
.lesson-neighbors .primary .release-status { color: inherit; }
.formation-new {
  display: inline-flex; align-items: center; padding: .18rem .48rem;
  border: 1px solid #946351; border-radius: .35rem; background: #422f29; color: #ffcebd;
  font: 600 .73rem/1.3 "DM Sans", sans-serif; text-transform: none; letter-spacing: 0;
}

/* These screens respond to the space left by the Academy navigation rail. */
.learner-shell :is(.workspace, .detail-page, .pricing-wrap) {
  container: learner-page / inline-size;
}
.learner-shell .workspace { padding-block: clamp(28px, 3.2vw, 48px) 60px; }
.learner-shell .detail-page { padding-block: 28px 60px; }
.learner-shell .pricing-page { padding-block: clamp(28px, 3.2vw, 48px) 60px; }
.learner-shell .workspace h1,
.learner-shell .detail-intro h1,
.learner-shell .pricing-intro h1 {
  font-size: clamp(2.25rem, 4.8cqi, 3.75rem);
  overflow-wrap: anywhere;
}
.learner-shell .cards,
.learner-shell .pricing-grid { gap: clamp(14px, 1.8cqi, 22px); }
.learner-shell .card-bottom,
.learner-shell .detail-meta { flex-wrap: wrap; }
.learner-shell :is(.module-card, .course-card, .detail-intro, .module-nav, .module-sheet, .outline-module) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.learner-shell .module-grid {
  grid-template-columns: minmax(0, 1fr) clamp(180px, 23cqi, 260px);
  align-items: start;
  gap: clamp(22px, 3.5cqi, 48px);
}
.learner-shell .module-nav {
  position: sticky;
  top: 76px;
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
}
.learner-shell .lesson-body { min-width: 0; }
.learner-shell .lesson-body pre { max-width: 100%; overflow-x: auto; }
.learner-shell .lesson-body table { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; }
.learner-shell .lesson-neighbors > a { min-width: 0; max-width: 100%; }

@container learner-page (max-width: 805px) {
  .learner-shell .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container learner-page (max-width: 530px) {
  .learner-shell .cards { grid-template-columns: minmax(0, 1fr); }
}
@container learner-page (max-width: 720px) {
  .learner-shell .module-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .learner-shell .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
  .learner-shell .detail-art { padding: 14px; }
  .learner-shell .detail-art img { max-height: 170px; object-fit: contain; }
  .learner-shell .module-nav { position: static; max-height: none; }
  .learner-shell .pricing-intro { flex-wrap: wrap; align-items: start; gap: 16px; }
  .learner-shell .pricing-grid,
  .learner-shell .pricing-faq { grid-template-columns: minmax(0, 1fr); }
  .learner-shell .price-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px 18px;
    padding: 20px;
  }
  .learner-shell .tier-price { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .learner-shell .tier-credit { grid-column: 1; grid-row: 2; margin: 0; }
  .learner-shell .tier-action { grid-column: 2; grid-row: 2; align-self: end; }
  .learner-shell .price-card > .topup-outcome { grid-column: 1 / -1; grid-row: 3; margin: 4px 0 0; }
  .learner-shell .pricing-faq { gap: 16px; }
}

.dashboard-page > h1 { margin: 0 0 28px; }
.dashboard-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; overflow: hidden;
}
.dashboard-feature-copy { display: grid; align-content: center; justify-items: start; padding: clamp(24px, 3vw, 46px); }
.dashboard-kicker { display: flex; align-items: center; gap: .6rem; color: #d3cec2; font: 600 .73rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dashboard-feature h3 { margin: 1rem 0 .45rem; font-size: clamp(1.7rem, 3vw, 3.2rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.dashboard-feature-copy > p { max-width: 46ch; color: var(--muted); line-height: 1.5; }
.dashboard-feature-art { display: grid; align-items: center; background: #232321; border-inline-start: 1px solid var(--line); }
.dashboard-feature-art img { width: 100%; max-height: 340px; object-fit: contain; mix-blend-mode: lighten; }
.dashboard-meta, .dashboard-actions, .dashboard-meta span, .dashboard-section-heading, .dashboard-section-heading a {
  display: flex; align-items: center; gap: .5rem;
}
.dashboard-meta { margin: 1.25rem 0; gap: 1.1rem; color: #d5d0c3; font-size: .88rem; }
.dashboard-actions { flex-wrap: wrap; gap: 1rem; }
.dashboard-outline, .dashboard-section-heading a { color: #d5d0c3; font-size: .88rem; font-weight: 580; }
.dashboard-outline:hover, .dashboard-section-heading a:hover { color: var(--accent); }
.dashboard-section { margin-top: 32px; }
.dashboard-section-heading { justify-content: space-between; margin-bottom: 14px; }
.dashboard-section-heading h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.dashboard-saved, .dashboard-releases { list-style: none; margin: 0; padding: 0; }
.dashboard-saved { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.dashboard-saved li, .dashboard-releases { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.dashboard-releases li + li { border-top: 1px solid var(--line); }
.dashboard-saved a, .dashboard-releases a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; }
.dashboard-saved small, .dashboard-releases small { display: block; color: var(--muted); font-size: .77rem; }
.dashboard-saved strong, .dashboard-releases strong { font-weight: 600; overflow-wrap: anywhere; }
.dashboard-saved a:hover strong, .dashboard-releases a:hover strong { color: var(--accent); }
.dashboard-saved svg, .dashboard-releases svg { flex: none; color: var(--muted); }
.dashboard-price, .dashboard-release-date { margin-inline-start: auto; color: var(--muted); white-space: nowrap; font-size: .82rem; font-variant-numeric: tabular-nums; }
@container learner-page (max-width: 650px) {
  .dashboard-feature { grid-template-columns: 1fr; }
  .dashboard-feature-art { grid-row: 1; border: 0; border-bottom: 1px solid var(--line); }
  .dashboard-feature-art img { max-height: 140px; }
}
