/* System font fallbacks also work under the strict, same-origin CSP. */
:root{font-family:"DM Sans",system-ui,sans-serif;color:#152337;background:#fff;scroll-behavior:smooth}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}p{line-height:1.65}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}.shell{width:min(1150px,calc(100% - 42px));margin:auto}.skip-link{position:absolute;top:-100px;left:10px;background:#fff;padding:12px;z-index:99}.skip-link:focus{top:12px}.bar{background:#fff;border-bottom:1px solid #eaf0ef;position:sticky;top:0;z-index:20}.nav-shell{width:min(1190px,calc(100% - 42px));min-height:76px;margin:auto;display:flex;align-items:center;gap:40px}.brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.brand-symbol{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#e5f6ee;color:#078954;font-family:"IBM Plex Sans Arabic",sans-serif;font-size:24px}.brand-word{font-size:20px;font-weight:800;letter-spacing:.03em}.brand-ar{font-size:14px;color:#668275;font-family:"IBM Plex Sans Arabic",sans-serif;border-inline-start:1px solid #dce9e2;padding-inline-start:9px}.site-links{display:flex;gap:27px;margin-inline:auto}.site-links a{font-weight:650;font-size:13px;color:#5d6d68}.nav-actions{display:flex;align-items:center;gap:13px}.language{display:flex;background:#f3f7f5;border-radius:999px;padding:3px}.language button{border:0;background:transparent;border-radius:999px;padding:7px 10px;font-weight:750;font-size:12px;color:#61776c}.language button.selected{background:white;box-shadow:0 1px 5px #17382819;color:#00794b}.nav-login{border:1px solid #dce8e1;border-radius:999px;padding:10px 19px;background:#fff;font-size:13px;font-weight:750}#userMail{font-size:12px;color:#62746b;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero{padding:92px 0 105px;background:radial-gradient(ellipse at 80% 20%,#e8f9ef,transparent 43%),linear-gradient(180deg,#fff,#fafdfb)}.hero-layout{display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:80px}.eyebrow{color:#078856;font-size:11px;font-weight:800;letter-spacing:.12em}.eyebrow-dot{display:inline-block;background:#05aa71;width:7px;height:7px;border-radius:50%;margin-inline-end:8px}.hero h1{font-size:clamp(48px,5.2vw,76px);line-height:1.09;font-weight:800;margin:22px 0}.hero h1 span{display:block}.accent-text{color:#078856}.hero-description{color:#64766e;font-size:17px;max-width:520px;line-height:1.85;margin-bottom:28px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.action-primary,.action-secondary{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:50px;padding:12px 23px;border-radius:999px;font-size:13px;font-weight:800}.action-primary{background:#088554;color:white;box-shadow:0 8px 21px #008d552c}.action-secondary{border:1px solid #d4e2d9;background:white;color:#214234}.hero-notes{display:flex;gap:20px;flex-wrap:wrap;margin-top:27px;color:#73867a;font-size:12px}.tick{color:#049f63}.hero-panel{background:#fff;border:1px solid #e4eee8;border-radius:22px;box-shadow:0 24px 65px #234d3515;padding:30px;scroll-margin-top:100px;min-width:0}.panel-header{display:flex;justify-content:space-between;gap:20px}.panel-header h2{font-size:27px;margin:6px 0 8px}.panel-header p:last-child{color:#74857b;font-size:13px;margin-bottom:24px}.panel-kicker{color:#0b9460;font-size:10px;letter-spacing:.13em;font-weight:800}.panel-mark{font-size:23px;color:#12a36e}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f3f8f5;border-radius:12px;padding:5px;gap:5px;margin-bottom:24px}.tabs button{padding:12px;border:0;background:transparent;border-radius:9px;color:#667a70;font-size:13px;font-weight:800}.tabs .selected{background:#fff;color:#04784b;box-shadow:0 2px 9px #1a473516}.auth form{display:grid;gap:17px}.auth label,#resetPanel label{display:grid;gap:7px;font-size:13px;color:#385848;font-weight:700}.auth input{width:100%;height:48px;background:#fcfefc;border:1px solid #d9e5dd;border-radius:10px;padding:11px 12px;min-width:0}.auth input:focus{outline:2px solid #74cda4}.primary,.ghost{border-radius:10px;padding:12px 15px;font-weight:800;font-size:13px}.primary{background:#068552;border:1px solid #068552;color:white}.primary:disabled{background:#e3ebe6;border-color:#e3ebe6;color:#7c9186;cursor:not-allowed}.ghost{background:#fff;border:1px solid #d8e7df;color:#315445}.link{background:none;border:0;color:#068552;padding:13px 0;font-weight:750;font-size:13px}.muted{color:#75887e;font-size:12px;margin:13px 0 0}.steps-section{padding:90px 0 100px;background:#fff;scroll-margin-top:90px}.section-lead{text-align:center;margin-bottom:43px}.section-lead h2{font-size:clamp(29px,3.7vw,43px)}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.step{border:1px solid #e7eee9;border-radius:17px;padding:28px;background:#fff}.step-number{color:#09a36a;font-size:12px;font-weight:800}.step h3{font-size:20px;margin:22px 0 9px}.step p{font-size:13px;color:#75867d;margin:0}.message{background:#eaf8ef;border:1px solid #a2d7b9;color:#235c3b;border-radius:11px;padding:13px;margin-bottom:16px;font-size:13px}.message.error{background:#fff1ee;border-color:#f2beb2;color:#983d32}.dashboard-header h3{font-size:21px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.card{background:#fff;border:1px solid #e4eee8;border-radius:14px;padding:18px}.stats .card{display:grid;gap:6px}.stats small{font-size:11px;color:#71887b}.stats strong{font-size:22px}.stats span{font-size:11px;color:#748479}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.card h2{font-size:17px;margin:0 0 9px}.card p{font-size:12px;color:#748479}.course{border-top:1px solid #e7eee9;padding:12px 0;display:flex;gap:8px;justify-content:space-between}.course strong{font-size:12px}.course small{display:block;color:#7e9185;font-size:11px}.course button{background:#fff;border:1px solid #d8e6db;border-radius:8px;padding:7px 10px}.pair{background:#edf9f0;padding:13px;border-radius:9px;margin-top:10px;font-weight:800;letter-spacing:2px;overflow-wrap:anywhere}.billing{display:flex;justify-content:space-between;gap:15px;margin-top:12px}.billing-action{display:grid;gap:7px;min-width:160px}footer{border-top:1px solid #eaf0ed;padding:30px 0;color:#7a8880;font-size:11px}.footer-inner{display:flex;justify-content:space-between;gap:28px;align-items:center}.footer-inner>span:nth-child(2){max-width:510px}.footer-brand{color:#152c21;font-size:14px;font-weight:800;white-space:nowrap}.footer-brand span{font-weight:500;color:#638575;margin-inline-start:10px}
[dir="rtl"]{font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif}[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3{letter-spacing:0;line-height:1.4}[dir="rtl"] .eyebrow,[dir="rtl"] .panel-kicker{letter-spacing:0}[dir="rtl"] .brand-word{font-family:"DM Sans",sans-serif;letter-spacing:.03em}[dir="rtl"] .brand-ar{border-inline-start:1px solid #dce9e2}[dir="rtl"] .hero-panel{scroll-margin-top:100px}
@media(max-width:980px){.hero-layout{gap:30px}.nav-shell{gap:20px}.site-links{gap:15px}.hero{padding:65px 0}}
@media(max-width:760px){.site-links{display:none}.nav-actions{margin-inline-start:auto}.hero-layout{grid-template-columns:1fr;gap:35px}.hero-panel{max-width:600px;width:100%;margin:auto}.hero{padding:55px 0 75px}.hero h1{font-size:clamp(45px,9vw,66px)}.steps-grid{grid-template-columns:1fr}.steps-section{padding:70px 0}.footer-inner{flex-wrap:wrap}}
@media(max-width:490px){.shell,.nav-shell{width:calc(100% - 30px)}.nav-shell{min-height:69px;gap:8px}.brand-symbol{width:30px;height:30px}.brand-word{font-size:16px}.brand-ar{font-size:11px}.nav-login{display:none}.nav-actions{gap:5px}.language button{padding:6px 8px;font-size:10px}#userMail{display:none}.hero h1{font-size:clamp(42px,11vw,55px)}.hero-description{font-size:15px}.hero-panel{padding:20px}.two,.stats{grid-template-columns:1fr}.billing{display:block}.billing-action{margin-top:13px}.footer-inner{display:block}.footer-inner>span{display:block;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}

/* Compatibility selectors for existing bilingual accessibility checks */
[hidden]{display:none!important}
[dir="rtl"] .auth label{text-align:start}


/* Commercial prelaunch section: informational only, never a payment trigger. */
.launch-section{padding:72px 0;background:#f7faf8;border-block:1px solid #e4ebe6;scroll-margin-top:90px}
.launch-section .section-lead{max-width:780px;margin-bottom:27px}
.launch-section .section-lead p:last-child{color:#59665e;line-height:1.6}
.launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.launch-card{border:1px solid #dce6de;background:#fff;padding:28px;border-radius:20px;box-shadow:0 8px 28px rgba(13,44,29,.04)}
.launch-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.launch-card h3{font-size:24px;margin:0}
.launch-price{font-size:14px;font-weight:700;color:#286344}
.launch-card p,.launch-card li,.launch-trial p{color:#53635a;line-height:1.65}
.launch-card ul{padding-inline-start:21px}
.launch-card li{margin-block:8px}
.launch-trial{margin-top:18px;padding:24px 28px;border-radius:18px;background:#e9f3ec;display:flex;align-items:center;justify-content:space-between;gap:20px}
.launch-trial h3{margin:0 0 6px}
.launch-trial p{margin:0;max-width:650px}
.launch-trial a{flex-shrink:0}
.launch-disclaimer{font-size:12px;color:#69776d;line-height:1.6;margin-top:16px}
@media(max-width:760px){.launch-grid{grid-template-columns:1fr}.launch-trial{flex-direction:column;align-items:flex-start}.launch-section{padding:48px 0}}


/* Private course draft workspace — no generation or publishing side effects. */
.studio-create{margin-block:18px 22px}
.studio-section-head{margin-bottom:18px}
.studio-section-head h2{margin:0 0 8px}
.studio-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.studio-form-panel{min-width:0;padding:20px;border:1px solid #dce6de;border-radius:16px;background:#fff}
.studio-form-panel h3{font-size:17px;margin:0 0 14px}
.studio-form-panel form{display:grid;gap:13px}
.studio-form-panel label{display:grid;gap:6px;font-size:14px;font-weight:600;color:#33463b}
.studio-form-panel :is(input,select){max-width:100%;min-width:0;width:100%;padding:11px;border:1px solid #cad6cf;border-radius:9px;background:#fff;color:#21352a;font:inherit}
.studio-form-panel input[type=file]{font-size:12px}
.studio-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.studio-form-panel .primary{justify-self:start}
.studio-live-status{margin-top:15px;padding:12px;border-radius:9px;background:#eef7f1;color:#205c39}
.studio-live-status.error{background:#fff1f1;color:#8d2727}
@media(max-width:850px){.studio-form-grid{grid-template-columns:1fr}}
@media(max-width:430px){.studio-field-pair{grid-template-columns:1fr}.studio-form-panel{padding:15px}}


/* Compact selectable plan cards and clear checkout summary. */
.launch-section{padding-block:42px}
.launch-section .section-lead{margin-bottom:16px}
.launch-card{padding:22px;display:flex;flex-direction:column;gap:7px}
.launch-card p{margin:0}
.launch-card ul{margin:4px 0 12px}
.launch-card li{margin-block:5px}
.launch-card.is-selected{border-color:#09865a;box-shadow:0 0 0 2px #09865a1d}
.plan-choose{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:11px;background:#087c52;color:white;font-weight:750;font-size:14px;margin-top:auto;padding:10px 14px}
.plan-choose:hover,.plan-choose:focus-visible{background:#086743}
.plan-choose:focus-visible{outline:3px solid #6eb89b;outline-offset:3px}
.launch-trial{padding:18px 22px}
.chosen-subscription{display:grid;gap:3px;padding:12px;border:1px solid #cbded1;border-radius:11px;background:#f8fbf9}
.chosen-subscription span{font-size:12px;color:#53675b}
.chosen-subscription strong{font-size:16px}
.chosen-subscription a{font-size:12px;text-decoration:underline;color:#126543}
.billing-action{min-width:200px}
@media(max-width:760px){.launch-section{padding-block:32px}.launch-card{padding:20px}}


/* Minimal, focused professor experience. Marketing remains distinct from signed-in work. */
body.studio-signed-in .hero{padding:30px 0 50px;background:#f8faf9}
body.studio-signed-in .hero-layout{display:block;max-width:1150px;margin:auto}
body.studio-signed-in .hero-copy{display:none}
body.studio-signed-in .hero-panel{max-width:none;width:100%;margin:0;padding:0;background:transparent;box-shadow:none;border:0}
body.studio-signed-in .panel-header{display:none}
body.studio-signed-in #how{display:none}
body.studio-signed-in #plans{padding-block:36px}
body.studio-signed-in .hero-panel #access{scroll-margin-top:90px}
.modern-studio{background:#fff;border:1px solid #e6ebe8;border-radius:24px;padding:34px;box-shadow:0 14px 42px rgba(22,46,32,.045)}
.studio-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.studio-welcome h2{font-size:clamp(25px,3vw,34px);letter-spacing:-.04em;margin:6px 0}
.studio-welcome .muted{margin:0;font-size:14px}
.studio-tabbar{display:flex;align-items:center;gap:5px;border-bottom:1px solid #e6ebe8;margin-bottom:24px;overflow:auto}
.studio-tabbar button,.studio-step-switch button{background:none;border:0;border-radius:0;padding:14px 18px;color:#68766e;font-size:14px;font-weight:700;white-space:nowrap}
.studio-tabbar button.selected,.studio-tabbar button[aria-current=page]{color:#087b52;box-shadow:inset 0 -2px #087b52}
.studio-page[hidden],.studio-form-panel[hidden]{display:none!important}
.studio-page .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:24px}
.studio-page .stats>.card{box-shadow:none;border:1px solid #e6ebe8;border-radius:15px}
.studio-page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.studio-page-title h3{margin:0 0 4px}
.studio-page-title .muted{margin:0;font-size:13px}
.studio-course-list>.card{box-shadow:none;border:1px solid #e6ebe8;border-radius:16px}
.studio-course-list .course{display:flex;align-items:center;gap:12px;padding:14px 0}
.studio-course-list .course>div:first-child{flex:1;min-width:150px}
.studio-course-list .course strong{font-size:15px}
.studio-course-list .course :is(button,a){white-space:nowrap}
.studio-page .studio-create{max-width:830px;margin:0;border:0;box-shadow:none;padding:0}
.studio-create .studio-section-head{margin-bottom:18px}
.studio-step-switch{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid #e6ebe8}
.studio-step-switch button.selected,.studio-step-switch button[aria-selected=true]{color:#087b52;box-shadow:inset 0 -2px #087b52}
.studio-form-grid{display:block}
.studio-form-panel{border:0;padding:0;max-width:700px}
.studio-form-panel form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.studio-form-panel form>label:has(input[type=file]),.studio-form-panel form>.studio-field-pair,.studio-form-panel form>p{grid-column:1/-1}
.studio-form-panel .primary{grid-column:1/-1;justify-self:start}
.studio-account-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,.8fr);gap:18px}
.studio-account-grid>.card{margin:0;box-shadow:none;border:1px solid #e6ebe8;border-radius:16px;padding:24px}
.studio-account-grid .billing{display:flex;flex-wrap:wrap}
.studio-account-grid .billing-action{width:240px}
body.studio-signed-in #plans .launch-card{box-shadow:none}
@media(max-width:850px){.modern-studio{padding:22px}.studio-account-grid{grid-template-columns:1fr}.studio-form-panel form{grid-template-columns:1fr}}
@media(max-width:650px){body.studio-signed-in .hero{padding:12px 0 24px}.modern-studio{padding:16px;border-radius:17px}.studio-welcome{align-items:flex-start}.studio-quick-create{min-height:42px;padding:8px 12px}.studio-page .stats{grid-template-columns:1fr}.studio-page-title{align-items:flex-start}.studio-course-list .course{flex-wrap:wrap}.studio-tabbar button{padding:12px 13px}.studio-account-grid>.card{padding:16px}}

/* Avoid showing marketing subscriptions below the signed-in account workspace. */
body.studio-signed-in #plans{display:none}


/* Align account settings with the clean professor studio design. */
.studio-account-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:920px}
.studio-account-grid .studio-subscription,.studio-account-grid .studio-extension-settings{display:block;margin:0;padding:24px;border:1px solid #e2e9e4;border-radius:17px;background:#fff;box-shadow:none}
.studio-subscription-heading h3,.studio-extension-settings h3{font-size:19px;letter-spacing:-.025em;margin:0 0 5px}
.studio-subscription-heading p{margin:0 0 20px;max-width:680px}
.studio-account-grid .billing-action{display:block;width:100%;min-width:0;margin:0}
.studio-plan-chooser{width:100%}
.studio-tier-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.studio-tier-option{width:100%;display:flex;flex-direction:column;align-items:stretch;text-align:start;gap:8px;border:1px solid #dbe5de;background:#fff;border-radius:14px;padding:18px;min-height:132px;color:#182f26;transition:border-color .16s,background-color .16s,box-shadow .16s}
.studio-tier-option:hover{border-color:#8dbca6;background:#f9fcfa}
.studio-tier-option[aria-pressed=true]{border-color:#078657;background:#f1f9f4;box-shadow:0 0 0 1px #078657}
.studio-tier-option:focus-visible{outline:3px solid #78c6a5;outline-offset:3px}
.studio-tier-top{display:flex;align-items:center;justify-content:space-between;font-size:17px}
.studio-tier-check{display:none;color:#087e53}
.studio-tier-option[aria-pressed=true] .studio-tier-check{display:block}
.studio-tier-price{font-weight:750;font-size:15px}
.studio-tier-description{font-size:13px;color:#62776b}
.studio-subscription-choice{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 0;font-size:13px;color:#66786e}
.studio-subscription-choice strong{font-weight:750;color:#1c3b2a}
.studio-payment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.studio-payment-actions :is(button){min-height:45px;padding:10px 20px;border-radius:11px;width:auto}
.studio-payment-actions button:disabled{opacity:.57;cursor:not-allowed}
.studio-paylink-contact{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.studio-extension-settings{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:20px;row-gap:7px}
.studio-extension-settings .muted{font-size:13px;margin:0;line-height:1.55}
.studio-extension-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.studio-extension-actions button{min-height:42px;padding:9px 16px;border-radius:10px}
.studio-extension-warning{grid-column:1/-1;color:#849087}
@media(max-width:660px){.studio-account-grid .studio-subscription,.studio-account-grid .studio-extension-settings{padding:18px}.studio-tier-picker,.studio-paylink-contact{grid-template-columns:1fr}.studio-extension-settings{grid-template-columns:1fr}.studio-payment-actions button{width:100%}}


/* Unified action language for professor course management. */
.studio-page-title [data-open-studio="create"],.studio-course-list .studio-action,.studio-course-list #refresh{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;
  padding:10px 17px;border:1px solid #d6e5db;border-radius:11px;
  background:#fff;color:#265440;font:700 13px/1.3 "DM Sans",system-ui,sans-serif;
  text-decoration:none;box-shadow:none;cursor:pointer;white-space:nowrap;
  transition:background-color .15s,border-color .15s,color .15s;
}
.studio-page-title [data-open-studio="create"]:hover,.studio-course-list .studio-action:hover,.studio-course-list #refresh:hover{background:#edf7f0;border-color:#a6cbb5;color:#076e48}
.studio-page-title [data-open-studio="create"]:focus-visible,.studio-course-list .studio-action:focus-visible,.studio-course-list #refresh:focus-visible{outline:3px solid #79c5a4;outline-offset:2px}
.studio-course-list .course button.studio-action{background:#fff;border:1px solid #d6e5db;border-radius:11px;padding:10px 17px;font:700 13px/1.3 "DM Sans",system-ui,sans-serif;color:#265440}
.studio-course-list .course{justify-content:flex-start}
.studio-course-list .course>div:first-child{margin-inline-end:auto}
.studio-course-list .course .studio-action{flex-shrink:0}
.studio-appearance{width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:22px;border:1px solid #d6e5db;border-radius:16px;background:#fff;color:#172522;box-shadow:0 16px 48px #122c2130}
.studio-appearance::backdrop{background:#13291f70}
.studio-appearance h3{margin:0}
.studio-appearance form{display:grid;gap:12px}
.studio-appearance form p{margin:0}
.studio-appearance-actions{display:flex;flex-wrap:wrap;gap:12px}
.studio-appearance-actions button{width:auto;min-height:42px}
@media(max-width:650px){.studio-course-list .course .studio-action{flex:1}.studio-page-title [data-open-studio="create"]{min-width:120px}}


/* TAFAULAK green action system; navigation tabs and selectable tiers retain their own semantics. */
:root{--studio-action-green:#068552;--studio-action-hover:#067347;--studio-action-focus:#79c5a4}
body .studio-cta,
body .studio-page-title button.studio-cta,
body .studio-course-list .course button.studio-cta,
body .studio-course-list .course a.studio-cta,
body .studio-course-list #refresh.studio-cta,
body .studio-payment-actions button.studio-cta,
body .studio-extension-actions button.studio-cta{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:42px;padding:10px 17px;border:1px solid var(--studio-action-green);
 border-radius:11px;background:var(--studio-action-green);color:#fff;
 font:700 13px/1.3 "DM Sans",system-ui,sans-serif;
 text-decoration:none;box-shadow:none;cursor:pointer;
 transition:background-color .15s,border-color .15s,box-shadow .15s;
}
body .studio-cta:hover:not(:disabled),
body .studio-page-title button.studio-cta:hover:not(:disabled),
body .studio-course-list .course :is(button,a).studio-cta:hover,
body .studio-course-list #refresh.studio-cta:hover,
body .studio-payment-actions button.studio-cta:hover:not(:disabled),
body .studio-extension-actions button.studio-cta:hover:not(:disabled){
 background:var(--studio-action-hover);border-color:var(--studio-action-hover);color:#fff;
}
body .studio-cta:focus-visible{outline:3px solid var(--studio-action-focus);outline-offset:3px}
body .studio-cta:disabled{background:#e3ebe6;border-color:#e3ebe6;color:#62766a;cursor:not-allowed;box-shadow:none}
@media(prefers-reduced-motion:reduce){body .studio-cta{transition:none}}


/* Third plan uses existing calm, responsive TAFAULAK cards. */
.launch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-tier-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
.studio-credit-packs{margin-top:16px;border-top:1px solid #e2e9e4;padding-top:15px}
.studio-credit-packs p{font-size:13px;margin:0 0 10px}
.studio-credit-options{display:flex;gap:10px;flex-wrap:wrap}
.studio-credit-options button{border:1px solid #068552;background:#068552;color:#fff;padding:10px 16px;border-radius:10px;font-weight:700;min-height:44px;cursor:pointer;transition:background-color .15s,border-color .15s}
.studio-credit-options button:hover:not(:disabled){background:#067347;border-color:#067347}
.studio-credit-options button:focus-visible{outline:3px solid #78c6a5;outline-offset:3px}
.studio-credit-options button:disabled{border-color:#d9e5dd;background:#eef3ef;color:#61776b;cursor:not-allowed;opacity:.75}
#flexCreditPendingLinks{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
#flexCreditPendingLinks[hidden]{display:none}
#flexCreditPendingLinks .studio-credit-resume{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:10px;background:#068552;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
#flexCreditPendingLinks .studio-credit-resume:hover{background:#067347}
#flexCreditPendingLinks .studio-credit-resume:focus-visible{outline:3px solid #78c6a5;outline-offset:3px}
@media(max-width:900px){.launch-grid{grid-template-columns:1fr}.studio-tier-picker{grid-template-columns:1fr}}

/* Professor-owned lesson generation: stage-based indeterminate progress. */
.studio-course-list .course{flex-wrap:wrap}
.studio-generation-panel{flex-basis:100%;min-width:0;margin:4px 0 10px;padding:18px 20px;border:1px solid #dbe8df;border-radius:15px;background:linear-gradient(135deg,#f9fcfa,#fff)}
.studio-generation-panel .generation-status-label{display:block;font-size:14px;font-weight:750;color:#173d2d;letter-spacing:-.015em}
.studio-generation-panel .generation-status-details{display:block;margin-top:11px;color:#668073;font-size:12px;line-height:1.6}
.studio-generation-panel .generation-progress-bar{position:relative;overflow:hidden;height:6px;margin-top:14px;background:#e4efe8;border-radius:999px}
.generation-progress-bar span{display:block;position:absolute;inset-block:0;left:-36%;width:36%;background:linear-gradient(90deg,transparent,#168b63,#65bd92,transparent);border-radius:999px;animation:tafaulak-stage-sweep 2s ease-in-out infinite}
[dir=rtl] .generation-progress-bar span{animation-direction:reverse}
@keyframes tafaulak-stage-sweep{from{left:-36%}to{left:100%}}
.studio-generation-panel.is-failed{border-color:#ebd9d9;background:#fffafa}
.studio-generation-panel.is-failed .generation-status-label{color:#a54141}
.studio-generation-panel.is-complete{border-color:#cbe6d6;background:#f7fcf9}
@media(prefers-reduced-motion:reduce){.generation-progress-bar span{animation:none;left:0;width:100%;background:#168b63;opacity:.55}}

/* Lightweight, keyboard-accessible professor language selection. */
.studio-language-choices{flex-basis:100%;min-width:0;margin:8px 0 4px;padding:13px 16px 12px;border:1px solid #dfe7e1;border-radius:13px;background:#fbfdfb}
.studio-language-choices legend{padding:0 6px;color:#284b3a;font-weight:750;font-size:13px}
.studio-language-choice-list{display:flex;flex-wrap:wrap;gap:8px}
.studio-language-choice{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;background:#fff;border:1px solid #d5e3da;border-radius:10px;cursor:pointer;font-size:14px;color:#193f2e;font-weight:650}
.studio-language-choice:has(input:checked){border-color:#31876c;background:#edf8f0}
.studio-language-choice:focus-within{outline:3px solid #89cbb0;outline-offset:2px}
.studio-language-choice input{width:18px;height:18px;margin:0;accent-color:#16865e}
.studio-language-help{display:block;margin-top:8px;color:#647969;font-size:12px;line-height:1.5}

/* Seven-skill course progress uses the same TAFAULAK Studio action/panel system.
   Completion is derived from saved, language-complete lessons only, never a
   fabricated clock-based percentage. The moving shimmer marks active work. */
.studio-course-build-panel{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.studio-course-build-panel .course-build-current,.studio-course-build-panel .course-build-count{display:block;color:#536e5d;font-size:13px;line-height:1.5}
.course-build-track{position:relative;overflow:hidden;height:10px;margin:9px 0 5px;background:#e3eee7;border-radius:999px}
.course-build-fill{display:block;height:100%;max-width:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,#11885a,#5cbd85);transition:width .35s ease}
.course-build-track.is-active::after{content:'';position:absolute;inset-block:0;inset-inline-start:-28%;width:28%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:tafaulak-stage-sweep 2s ease-in-out infinite;pointer-events:none}
.course-skill-details{border-top:1px solid #dbe8df;margin-top:7px;padding-top:11px}
.course-skill-details summary{cursor:pointer;color:#245840;font-size:13px;font-weight:700}
.course-skill-list{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:8px 0 0;margin:0}
.course-skill-list li{font-size:12px;padding:6px 9px;background:#f3f8f4;color:#426653;border:1px solid #dfebe3;border-radius:8px;line-height:1.5}
.course-skill-list li.is-active{background:#e1f6e9;color:#106442;border-color:#65bb87;font-weight:750}
/* Clean product routes reuse the canonical Studio, without marketing around forms. */
body[data-product-view="auth"] :is(.hero-copy,#plans,#how),
body[data-product-view="studio"] :is(.hero-copy,#plans,#how,.panel-header),
body[data-product-view="pricing"] :is(.hero,#how),
body[data-product-view="help"] :is(.hero,#plans,#how){display:none}
body[data-product-view="auth"] .hero{padding:48px 0 72px;background:#f7faf8;min-height:70vh}
body[data-product-view="auth"] .hero-layout{display:block;max-width:480px}
body[data-product-view="auth"] .hero-panel{width:100%;border-radius:12px;box-shadow:none}
body[data-product-view="auth"] .panel-mark{display:none}
body[data-product-view="studio"] .hero{padding:30px 0 48px;background:#f7faf8;min-height:75vh}
body[data-product-view="studio"] .hero-layout{display:block}
body[data-product-view="studio"] .hero-panel{width:100%;max-width:none;box-shadow:none;border:0;padding:0;background:transparent}
body[data-product-view="studio"] .studio-tabbar{margin-bottom:24px}
body[data-product-view="studio"] .studio-welcome{padding-top:8px}
body[data-product-view="studio"] .studio-welcome h2{font-size:26px}
body[data-product-view="studio"] #message{margin-bottom:20px}
#pageLoading{padding:12px 0}#retryLoad{margin-bottom:16px}
.product-help{padding-block:44px 64px;min-height:70vh}
.product-help h1{font-size:30px}.help-steps{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px}
.help-steps article{border-top:1px solid #dce6df;padding-top:20px;min-width:0}.help-steps h2{font-size:18px}.help-steps p{color:#53635b;max-width:62ch}
.course-empty{padding:20px 0}.course-empty p{margin-bottom:16px}
:is(a,button,input,select,textarea):focus-visible{outline:3px solid #79c5a4;outline-offset:3px}
.auth :is(input,button){min-height:44px}.auth input{width:100%;min-width:0}
.auth button:disabled{opacity:.6;cursor:wait}.auth .link{display:inline-block;padding-block:8px}
body[data-product-view] footer{overflow-wrap:anywhere}
@media(max-width:640px){
 .help-steps{grid-template-columns:1fr;gap:20px}
 body[data-product-view="studio"] .hero{padding-top:20px}
 body[data-product-view="auth"] .hero{padding-top:24px}
 body[data-product-view] .nav-login{display:inline-flex;padding:9px 12px;min-height:44px;border-radius:8px}
 body[data-product-view] .brand-ar{display:none}
 body[data-product-view] .studio-tabbar{overflow-x:auto;flex-wrap:nowrap}
 body[data-product-view] .studio-tabbar button{flex-shrink:0}
}
@media(prefers-reduced-motion:reduce){.course-build-fill{transition:none}.course-build-track.is-active::after{animation:none;display:none}}

