/* Approved variant A. Presentation only; preserve application DOM and behavior. */
@font-face{font-family:Onest;src:url('/assets/fonts/Onest-variable.ttf') format('truetype');font-weight:100 900;font-display:swap}
body.ui-course{--ink:#183c34;--muted:#52665f;--accent:#08674e;--surface:#fff;--canvas:#f5f8f6;--line:#d9e4df;font-family:Onest,sans-serif;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased;position:relative;padding-bottom:88px}
body.ui-course::before,body.ui-course::after{display:none}
body.ui-course button,body.ui-course input,body.ui-course select,body.ui-course textarea{font-family:inherit}
body.ui-course ::selection{background:#c7e8db;color:#153d30}
body.ui-course :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
body.ui-course a{ text-underline-offset:4px }
body.ui-home .container{width:min(1200px,calc(100% - 80px))}
body.ui-home .home-page{min-height:0}
body.ui-home .home-hero{min-height:0;padding:0 0 70px;background:none}
body.ui-home .home-shell{display:block}
body.ui-home .home-topbar{min-height:94px;position:relative;margin:0;padding:20px 0;gap:20px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;backdrop-filter:none}
body.ui-home .home-brand{min-height:44px;padding:0 0 0 39px;font-size:17px;letter-spacing:-.025em;font-weight:750;color:var(--ink);border:0;box-shadow:none;background:none;border-radius:0;white-space:nowrap}
body.ui-home .home-brand::before{left:0;width:28px;height:31px;border-radius:5px;background:var(--accent);box-shadow:none}
body.ui-home .home-brand::after{left:13px;width:2px;height:20px;border-radius:0;background:#fff;transform:rotate(0deg)}
body.ui-home .topbar-control{height:44px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:none;color:var(--ink);font-size:13px;font-weight:600}
body.ui-home .home-hero-grid{grid-template-columns:1.12fr 1fr;gap:70px;padding:55px 0 48px;align-items:center}
body.ui-home .home-eyebrow{display:none}
body.ui-home .home-copy h1{font-family:Onest,sans-serif;font-size:clamp(36px,4.2vw,60px);font-weight:650;line-height:1.09;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
body.ui-home .home-copy h1 .home-title-accent{color:inherit;background:none;-webkit-text-fill-color:currentColor}
body.ui-home .home-subtitle{max-width:47ch;margin:22px 0 0;font-size:16px;line-height:1.7;color:var(--muted)}
body.ui-home .home-learning{padding:26px;background:#e8f1eb;border:0;border-radius:14px;box-shadow:none}
body.ui-home .home-learning-heading{margin:0 0 18px;gap:9px}
body.ui-home .home-learning-heading h2{font-size:17px;font-weight:650;color:var(--ink);letter-spacing:-.02em}
body.ui-home .home-learning-indicator{background:var(--accent)}
body.ui-home .home-learning-list{gap:0;grid-template-columns:1fr}
body.ui-home .home-lesson,body.ui-home .home-lesson-vocabulary{gap:14px;padding:16px 0;background:none;border:0;border-top:1px solid #cbded2;border-radius:0;box-shadow:none;color:var(--ink)}
body.ui-home .home-lesson:hover,body.ui-home .home-lesson-vocabulary:hover{background:#ddebe2;border-color:#b1cdbb;transform:none}
body.ui-home .home-lesson-icon,body.ui-home .home-lesson-vocabulary .home-lesson-icon{flex:0 0 36px;height:40px;border-radius:8px;background:var(--surface);color:var(--accent)}
body.ui-home .home-lesson-copy{gap:6px}
body.ui-home .home-lesson-meta,body.ui-home .home-lesson-vocabulary .home-lesson-meta{font-size:12px;font-weight:600;color:var(--accent)}
body.ui-home .home-lesson-status{font-size:12px;color:var(--muted)}
body.ui-home .home-lesson-copy strong{font-size:16px;line-height:1.4;font-weight:600;color:var(--ink)}
body.ui-home .home-lesson-action,body.ui-home .home-lesson-vocabulary .home-lesson-action{font-size:13px;font-weight:650;color:var(--accent)}
body.ui-home .home-learning-note{font-size:12px;line-height:1.5;margin:10px 0 0;color:var(--muted)}
body.ui-home .home-topic-board{padding:0}
body.ui-home .home-section-heading h2{font-size:30px;line-height:1.2;font-weight:650;letter-spacing:-.03em;color:var(--ink)}
body.ui-home .home-section-heading p,body.ui-home .home-section-heading .subtitle{max-width:70ch;margin:10px 0 0;font-size:14px;line-height:1.7;color:var(--muted)}
body.ui-home .topic-group{margin-top:28px}
body.ui-home .career-topic-group{margin-top:38px}
body.ui-home .topic-group-heading{gap:14px;margin-bottom:14px}
body.ui-home .topic-group-heading>span{display:none}
body.ui-home .topic-group-heading h3{font-size:14px;line-height:1.4;letter-spacing:0;font-weight:600;color:var(--muted)}
body.ui-home .topic-group-heading i{background:var(--line)}
body.ui-home .home-topic-grid{gap:16px}
body.ui-home .english-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.ui-home .career-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.ui-home .home-topic-card,body.ui-home .home-topic-card.accent-violet,body.ui-home .home-topic-card.accent-mint,body.ui-home .home-topic-card.accent-amber{min-height:156px;padding:24px;gap:0;justify-content:flex-start;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none;color:var(--ink);transition:background .18s ease,border-color .18s ease;overflow:visible}
body.ui-home .home-topic-card::after{display:none}
body.ui-home .home-topic-card strong{max-width:100%;display:block;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:21px;line-height:1.25;letter-spacing:-.025em;font-weight:650;color:var(--ink);text-align:left;overflow-wrap:normal}
body.ui-home .home-topic-card>span:last-child{margin-top:13px;font-size:14px;line-height:1.6;color:var(--muted)}
body.ui-home .home-topic-grid .home-topic-card:is(:hover,:focus-visible){transform:none;box-shadow:none;border-color:var(--accent);background:#eef5f0}
body.ui-home .qa-card-meta{position:static;order:3;align-self:flex-start;margin-top:12px;padding:0;border:0;border-radius:0;background:none;font-size:11px;color:var(--muted);font-weight:500}
body.ui-home .speaking-entry{padding:22px 26px;gap:20px;margin-top:20px;box-shadow:none;border:0;border-radius:12px;background:var(--ink);color:#fff;transform:none}
body.ui-home .speaking-entry:hover{background:#1d4b3e;transform:none;box-shadow:none}
body.ui-home .speaking-entry-icon{display:none}
body.ui-home .speaking-entry-meta{font-size:11px;letter-spacing:0;color:#c1e4d4}
body.ui-home .speaking-entry-beta{background:#d3ebba;color:#244024;font-weight:600}
body.ui-home .speaking-entry-copy strong{font-size:22px;line-height:1.3;letter-spacing:-.025em;color:#fff}
body.ui-home .speaking-entry-copy>span:last-child{font-size:13px;line-height:1.6;color:#d1e5db}
body.ui-home .speaking-entry-cta{padding:12px 16px;min-height:44px;border-radius:8px;font-size:13px;color:var(--ink);background:#fff;white-space:nowrap}
body.ui-home .home-beta-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
body.ui-home .home-beta-modes .speaking-entry{display:flex;flex-direction:column;align-items:stretch;gap:22px;margin:0;padding:24px;min-width:0}
body.ui-home .home-beta-modes .speaking-entry-copy{display:flex;flex-direction:column;flex:1 1 auto;flex-basis:auto;gap:11px;min-width:0}
body.ui-home .home-beta-modes .speaking-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
body.ui-home .home-beta-modes .speaking-entry-copy strong{font-size:23px;line-height:1.35;overflow-wrap:anywhere}
body.ui-home .home-beta-modes .speaking-entry-copy>span:last-child{font-size:13px;line-height:1.75}
body.ui-home .home-beta-modes .speaking-entry-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;margin:0}
@media(max-width:700px){body.ui-home .home-beta-modes{grid-template-columns:1fr;gap:14px}body.ui-home .home-beta-modes .speaking-entry{padding:22px;gap:18px}body.ui-home .home-beta-modes .speaking-entry-copy strong{font-size:22px}}
body.ui-home .home-app-card{width:100%;margin:32px 0 0;min-height:76px;padding:17px 0;gap:16px;background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;backdrop-filter:none}
body.ui-home .home-app-icon{width:38px;height:42px;border-radius:8px;background:var(--ink);color:#fff;font-size:15px;box-shadow:none}
body.ui-home .home-app-copy strong{font-size:14px;font-weight:600;color:var(--ink)}
body.ui-home .home-app-copy small{font-size:12px;line-height:1.5;color:var(--muted)}
body.ui-home .home-app-cta{padding:11px 14px;min-height:44px;border-radius:8px;background:var(--ink);color:#fff;font-size:12px;font-weight:600;box-shadow:none}
body.ui-course .site-footer{background:var(--surface);border-top:1px solid var(--line);box-shadow:none;color:var(--muted)}
body.ui-course .site-footer-brand{font-weight:650;color:var(--ink)}
body.ui-course .site-footer-links a{font-weight:500;color:var(--muted)}
body.ui-course .site-footer-copy{color:var(--muted)}
body.ui-course .page-shell{padding-top:28px;background:none}
body.ui-course .page-shell>.container{width:min(1120px,calc(100% - 64px))}
body.ui-course .topbar{position:relative;padding:22px 0 26px;margin-bottom:28px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
body.ui-course .topbar::before,body.ui-course .topbar::after{display:none}
body.ui-course .topbar .brand{font-size:34px;line-height:1.2;letter-spacing:-.03em;font-weight:650;color:var(--ink);background:none;-webkit-text-fill-color:currentColor}
body.ui-course .topbar .home-brand{background:none;box-shadow:none;border:0;padding-left:0;color:var(--accent);font-size:14px}
body.ui-course .topbar .home-brand::before,body.ui-course .topbar .home-brand::after{display:none}
body.ui-course .card,body.ui-course .info-card{background:var(--surface);box-shadow:none;border:1px solid var(--line);border-radius:12px}
body.ui-course .button,body.ui-course button.primary,body.ui-course button.ghost{border-radius:8px;box-shadow:none;min-height:44px;font-weight:600}
body.ui-course .button.primary,body.ui-course button.primary{color:#fff;background:var(--accent);border-color:var(--accent)}
body.ui-course .lesson-card{padding:22px;box-shadow:none;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
body.ui-course .lesson-card strong{font-size:17px;line-height:1.5;font-weight:600}
body.ui-course .lesson-meta{font-size:12px;color:var(--muted)}
body.ui-course .lesson-list{gap:0}
body.ui-lesson .page-shell>.container{max-width:1020px}
body.ui-lesson .lesson-layout{padding:34px 42px;border:0;background:var(--surface)}
body.ui-lesson .lesson-layout>.info-card{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body.ui-lesson #theory-content{max-width:73ch;margin:0 auto;font-size:17px;line-height:1.75;color:var(--ink)}
body.ui-lesson #theory-content h3{margin-top:28px;font-size:22px;line-height:1.4}
body.ui-lesson #theory-content p,body.ui-lesson #theory-content li{line-height:1.75}
body.ui-lesson .info-card>h2{max-width:51.7ch;margin:0 auto 22px;font-size:24px;font-weight:650}
body.ui-lesson .lesson-author{font-size:12px;color:var(--muted)}
body.ui-trainer .trainer-stat-card{background:#e8f1eb;border:0;border-radius:10px;box-shadow:none}
body.ui-course .button.primary,body.ui-course button.primary,body.ui-course a.button.primary{color:#fff;background:var(--accent);border-color:var(--accent);box-shadow:none;border-radius:8px}
body.ui-course .button.primary:hover,body.ui-course button.primary:hover,body.ui-course a.button.primary:hover{background:var(--ink);box-shadow:none;transform:none}
body.ui-course .topbar-control,body.ui-course .button.ghost,body.ui-course a.button.ghost,body.ui-course .button.secondary,body.ui-course button.secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line);box-shadow:none;border-radius:8px}
body.ui-trainer .trainer-section-title,body.ui-trainer .trainer-question{color:var(--ink);background:none;-webkit-text-fill-color:currentColor}
body.ui-trainer .trainer-stat-value,body.ui-trainer .trainer-result-value,body.ui-trainer .trainer-inline-count{color:var(--accent)}
body.ui-trainer .trainer-section-header,body.ui-trainer .trainer-menu-header,body.ui-trainer .trainer-session-header{padding:0 0 22px;background:none;box-shadow:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
body.ui-trainer .trainer-empty-state{background:#f5f8f6;color:var(--muted);box-shadow:none;border:1px dashed var(--line);border-radius:10px}
body.ui-trainer #trainer-guest-banner>*{color:var(--ink);background:#e8f1eb;border:0;border-radius:10px;box-shadow:none;margin-bottom:20px}
body.ui-trainer #trainer-guest-banner strong{color:var(--ink)}
body.ui-trainer .trainer-stat-label{text-transform:none;letter-spacing:0;font-size:13px;color:var(--muted)}
@media(max-width:1050px){
  body.ui-home .home-hero-grid{gap:32px}
  body.ui-home .home-copy h1{font-size:46px}
  body.ui-home .english-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  body.ui-home .container{width:calc(100% - 36px)}
  body.ui-home .home-topbar{min-height:84px;flex-wrap:wrap;gap:8px;padding:16px 0}
  body.ui-home .home-brand{font-size:14px;padding-left:34px}
  body.ui-home .home-brand::before{width:25px;height:28px}
  body.ui-home .home-brand::after{left:11px;height:18px}
  body.ui-home .topbar-actions{gap:6px}
  body.ui-home .topbar-control{padding:0 11px;font-size:12px}
  body.ui-home .home-hero-grid{grid-template-columns:1fr;gap:28px;padding:32px 0 36px}
  body.ui-home .home-copy h1{font-size:40px}
  body.ui-home .home-subtitle{font-size:15px;line-height:1.65;margin-top:17px}
  body.ui-home .home-learning{padding:20px}
  body.ui-home .home-learning-list{grid-template-columns:1fr}
  body.ui-home .home-section-heading h2{font-size:27px}
  body.ui-home .home-section-heading p{font-size:13px}
  body.ui-home .home-topic-grid{gap:10px}
  body.ui-home .english-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ui-home .career-topic-grid{grid-template-columns:1fr}
  body.ui-home .home-topic-card,body.ui-home .home-topic-card.accent-violet,body.ui-home .home-topic-card.accent-mint,body.ui-home .home-topic-card.accent-amber{min-height:145px;padding:17px}
  body.ui-home .home-topic-card strong{font-size:18px;line-height:1.3}
  body.ui-home .home-topic-card>span:last-child{font-size:13px;line-height:1.55;margin-top:10px}
  body.ui-home .career-topic-grid .home-topic-card{min-height:0;padding:20px}
  body.ui-home .speaking-entry{padding:22px;gap:15px;flex-direction:column;align-items:flex-start;flex-wrap:nowrap}
  body.ui-home .speaking-entry-copy{flex-basis:auto}
  body.ui-home .speaking-entry-copy strong{font-size:22px}
  body.ui-home .speaking-entry-cta{margin-left:0}
  body.ui-home .home-app-card{grid-template-columns:auto 1fr;gap:12px}
  body.ui-home .home-app-cta{grid-column:2;justify-self:start}
  body.ui-home .home-app-copy small{font-size:12px}
  body.ui-course .page-shell>.container{width:calc(100% - 32px)}
  body.ui-course .topbar{padding:12px 0 20px}
  body.ui-course .topbar .brand{font-size:28px;overflow-wrap:anywhere}
  body.ui-lesson .lesson-layout{padding:24px 20px}
  body.ui-lesson #theory-content{font-size:16px}
}
@media(prefers-reduced-motion:reduce){body.ui-course *,body.ui-course *::before,body.ui-course *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Direction A: a focused learning platform. Same source DOM and behavior. */
body.ui-home{--ink:#143b32;--muted:#526b61;--accent:#08674e;--canvas:#f6f9f7;--line:#d8e4dd}
@media(min-width:701px){body.ui-home .career-topic-grid .home-topic-card{min-height:148px}}
body.ui-home .home-learning{background:#e7f0e8}

/* Shared tokens for the approved course A system. */
body.ui-course {
  --page-accent: #08674e; --page-accent-2: #08674e; --page-accent-3: #3c8062;
  --page-warm: #8a650d; --primary: #08674e; --primary-hover: #064f3c;
  --primary-soft: #e7f0e8; --secondary: #2c6655; --secondary-soft: #eef5f0;
  --ui-ink: #143b32; --ui-ink-soft: #294e42; --ui-muted: #526b61;
  --ui-bg: #f6f9f7; --ui-surface: #fff; --ui-surface-strong: #fff;
  --ui-border: #d8e4dd; --ui-ring: #08674e; --ui-shadow-sm: none;
  --ui-shadow: none; --ui-shadow-lg: 0 12px 36px #143b3226;
  --ui-radius-sm: 8px; --ui-radius: 12px; --ui-radius-lg: 16px;
  --text: #143b32; --border: #d8e4dd; --radius: 12px; --shadow: none;
  --bg: #f6f9f7; --bg-soft: #eef5f0; --card: #fff;
}
body.ui-course :is(h1,h2,h3,.brand){letter-spacing:-.03em}
body.ui-course :is(.card,.info-card,.course-card,.lesson-card,.practice-card,.profession-topic-card,.profession-term-card,.profession-phrase-card,.placement-question,.placement-metric,.placement-score-block,.placement-recommendations,.placement-review-card,.trainer-stat-card,.trainer-word-card,.trainer-mode-card,.trainer-session-card,.trainer-result-card,.trainer-flashcard){backdrop-filter:none}
body.ui-course :is(.course-card,.profession-topic-card,.profession-term-card,.profession-phrase-card,.practice-card,.placement-question,.placement-metric,.placement-score-block,.placement-recommendations,.placement-review-card,.trainer-word-card,.trainer-mode-card,.trainer-session-card,.trainer-result-card,.trainer-flashcard){border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none}
body.ui-course :is(.course-card,.trainer-word-card,.trainer-mode-card):hover{transform:none;box-shadow:none;border-color:var(--accent)}
body.ui-course .course-card::after{display:none}
body.ui-course :is(.badge,.task-badge,.trainer-chip,.trainer-session-progress,.translation-chip){background:#e7f0e8;color:#24563f;box-shadow:none;border:0;border-radius:6px;letter-spacing:0;font-weight:600}
body.ui-course :is(input,select,textarea,.practice-input,.trainer-search-input,.trainer-select,.trainer-build-answer){color:var(--ink);background:#fff;border-color:var(--line);border-radius:8px;box-shadow:none}
body.ui-course :is(input,textarea)::placeholder{color:#66786f;opacity:1}
body.ui-course :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
body.ui-course :is(.option-item,.placement-option){background:#fff;border-color:var(--line);border-radius:8px;box-shadow:none}
body.ui-course :is(.option-item,.placement-option):has(input:checked){background:#e7f0e8;border-color:var(--accent);box-shadow:none}
body.ui-course :is(.button.ghost,.button.secondary,button.ghost,button.secondary):hover{background:#eef5f0;transform:none;box-shadow:none}
body.ui-course :is(.topbar-menu,.trainer-modal,.feedback-modal,.support-widget-panel){border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 36px #143b3226;backdrop-filter:none}
body.ui-course .topbar-menu{padding:6px}
body.ui-course .topbar-menu-item{border-radius:6px}
body.ui-course .topbar-menu-item:hover{background:#eef5f0}
body.ui-course .support-widget-kicker{padding:0;border:0;background:none;box-shadow:none;color:var(--muted);text-transform:none;letter-spacing:0}
body.ui-course .language-switcher{border:0;background:none;box-shadow:none;padding:0}
body.ui-course .subtitle{color:var(--muted)}

/* Account pages: same form controls and sign-in providers. */
body.ui-auth .auth-page{padding:0 0 48px;min-height:calc(100dvh - 88px)}
body.ui-auth .container{width:min(1200px,calc(100% - 64px))}
body.ui-auth .home-topbar{position:relative;top:auto;display:flex;align-items:center;justify-content:space-between;padding:23px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;backdrop-filter:none}
body.ui-auth .home-topbar::before{display:none}
body.ui-auth .home-brand{background:none;border:0;box-shadow:none;padding-left:0;font-size:16px;font-weight:650}
body.ui-auth .home-brand::before{background:var(--accent);box-shadow:none;border-radius:5px}
body.ui-auth .card.auth-card{max-width:480px;margin:48px auto 0;padding:32px;border:1px solid var(--line);background:#fff;border-radius:14px;box-shadow:none}
body.ui-auth .home-brand::before{flex:0 0 26px}
body.ui-auth .auth-card h1{font-size:32px;line-height:1.2;font-weight:650;color:var(--ink);background:none;-webkit-text-fill-color:currentColor;margin-bottom:14px}
body.ui-auth .form-grid{gap:18px}
body.ui-auth .auth-card .subtitle{font-size:14px;line-height:1.65}
body.ui-auth label{font-size:14px;font-weight:600}
body.ui-auth .account-google-trigger{border-radius:8px}

/* Legal and informational pages retain every paragraph and link. */
html:has(.legal-page){scrollbar-gutter:stable both-edges}
body.ui-course .legal-topbar{padding:22px 0;background:none;box-shadow:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
body.ui-course .legal-topbar .home-brand{padding-left:0;border:0;background:none;box-shadow:none;font-weight:650}
body.ui-course .legal-topbar .home-brand::before{background:var(--accent);border-radius:5px;box-shadow:none}
body.ui-course .legal-article{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none;max-width:850px;margin:36px auto;padding:38px 42px}
body.ui-course .legal-article h1{font-size:clamp(28px,3.2vw,40px);line-height:1.2;font-weight:650;background:none;color:var(--ink);-webkit-text-fill-color:currentColor}
body.ui-course .legal-article :is(p,li){line-height:1.75;max-width:75ch}
body.ui-course .legal-lead{color:var(--muted);font-size:17px}
body.ui-course :is(.legal-kicker,.profession-kicker){font-size:13px;text-transform:none;letter-spacing:0;background:none;color:var(--muted);border:0;padding:0;box-shadow:none}
body.ui-course .author-card{background:#eef5f0;border:0;border-radius:10px;box-shadow:none}
body.ui-course .legal-language-links a[aria-current]{color:#fff;background:var(--accent)}

/* Lessons, professions and every state of the vocabulary trainer. */
body.ui-course :is(.profession-heading,.lesson-progress-card){background:#e7f0e8;border:0;border-radius:10px;box-shadow:none}
body.ui-course .profession-title{color:var(--ink);background:none;-webkit-text-fill-color:currentColor}
body.ui-course .profession-description{color:var(--muted)}
body.ui-course .profession-section{gap:20px}
body.ui-course .profession-topic-card{padding:24px}
body.ui-course .practice-card{padding:22px}
body.ui-course .practice-list{gap:16px}
body.ui-course :is(.examples,.practice-list){max-width:850px;margin-inline:auto}
body.ui-course .example-line{border-color:var(--line);border-radius:8px;background:#f6f9f7;box-shadow:none}
body.ui-course .trainer-mode-card{padding:24px}
body.ui-course .trainer-mode-card:is(:hover,:focus-visible){border-color:var(--accent);background:#eef5f0}
body.ui-course :is(.trainer-mode-icon,.trainer-word-category,.trainer-progress-track,.trainer-menu-count){background:#e7f0e8;color:var(--accent);box-shadow:none}
body.ui-course :is(.trainer-flashcard-back,.trainer-result-value,.trainer-session-progress,.trainer-progress-label){color:var(--accent)}
body.ui-course .trainer-flashcard{background:#fff;box-shadow:none}
body.ui-course .trainer-option-button,body.ui-course .trainer-letter-button{background:#fff;border-color:var(--line);border-radius:8px;box-shadow:none}
body.ui-course .trainer-option-button.is-selected{background:#e7f0e8;border-color:var(--accent);box-shadow:none}
body.ui-course .trainer-section-title{font-weight:650}
body.ui-course .trainer-stat-value{font-weight:650}

/* Placement test: preserve sticky progress and all question/result states. */
body.ui-placement .placement-test-heading h1{font-size:clamp(28px,3vw,38px);font-weight:650;line-height:1.2;background:none;color:var(--ink);-webkit-text-fill-color:currentColor}
body.ui-placement .placement-test-heading .badge{display:inline-flex;width:auto;background:#e7f0e8;color:var(--accent)}
body.ui-placement .placement-form-toolbar{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 4px 14px #143b320d;backdrop-filter:none}
body.ui-placement .placement-question{padding:24px;background:#fff;box-shadow:none;border-radius:12px}
body.ui-placement :is(.placement-result-hero,.placement-test-notice){background:#e7f0e8;border:0;border-radius:12px;box-shadow:none}
body.ui-placement .placement-result-score{background:var(--accent);box-shadow:none;color:#fff}
body.ui-placement .placement-progress-track div{background:var(--accent)}
body.ui-placement .placement-option{min-height:48px}

/* Application promotion retains its automatic store redirect. */
body.ui-promo{--promo-ink:#143b32;--promo-muted:#526b61;--promo-accent:#08674e;font-family:Onest,sans-serif;background:#f6f9f7;color:#143b32}
body.ui-promo::before,body.ui-promo::after{display:none}
body.ui-promo .promo-shell{width:min(1120px,calc(100% - 48px));gap:64px}
body.ui-promo .promo-copy h1{color:#143b32;background:none;-webkit-text-fill-color:currentColor;font-weight:650;letter-spacing:-.03em;line-height:1.12}
body.ui-promo :is(.promo-kicker,.redirect-panel,.noscript-panel){background:#e7f0e8;color:#24563f;border:0;box-shadow:none;border-radius:10px;letter-spacing:0;text-transform:none}
body.ui-promo .promo-cta{background:#08674e;color:#fff;box-shadow:none;border-radius:10px}
body.ui-promo :is(.benefit-icon,.benefit-icon.accent-mint,.benefit-icon.accent-blue,.benefit-icon.accent-warm){background:#e7f0e8;color:#08674e;box-shadow:none}

/* Speaking and license pages use their own layout, with A's tokens. */
body.sp-page{--sp-ink:#143b32;--sp-muted:#526b61;--sp-violet:#08674e;--sp-border:#d8e4dd;--sp-green:#08674e;font-family:Onest,sans-serif;background:#f6f9f7;color:#143b32}
body.sp-page :focus-visible{outline-color:#08674e}
body.sp-page .sp-topbar{margin-top:0;padding:22px 0;border:0;border-bottom:1px solid var(--sp-border);border-radius:0;background:none;box-shadow:none}
body.sp-page .sp-brand-mark{background:#08674e;border-radius:5px}
body.sp-page .sp-topbar nav a[aria-current]{background:#e7f0e8;color:#08674e}
body.sp-page :is(h1,h2){font-weight:650;letter-spacing:-.03em}
body.sp-page :is(.sp-setup,.sp-topic-card,.sp-topic-detail,.sp-loading,.sp-result-content,.sp-legal,.sp-license-card,.sp-free-setup,.sp-free-card,.sp-stats,.sp-conversation){background:#fff;border-color:var(--sp-border);border-radius:12px;box-shadow:none}
body.sp-page :is(.sp-model-option,.sp-model-option:has(input:checked),.sp-start-panel,.sp-resume,.sp-filter.active,.sp-avatar,.sp-topic-icon,.sp-model-symbol){background:#e7f0e8;border-color:#c9dfd1;color:#24563f;box-shadow:none}
body.sp-page .sp-model-option{border-radius:10px;background:#fff}
body.sp-page .sp-model-option:has(input:checked){border-color:#08674e;background:#eef5f0}
body.sp-page .sp-topic-card:hover{background:#eef5f0;border-color:#08674e;transform:none;box-shadow:none}
body.sp-page .button{border-radius:8px}
body.sp-page .button.primary,body.sp-page .button.primary:hover{background:#08674e;border-color:#08674e;box-shadow:none}
body.sp-page .button:hover{background:#eef5f0;border-color:#08674e}
body.sp-page .sp-stats strong{color:#08674e}
body.sp-page .sp-dialog{border-radius:12px}
body.sp-page .sp-message>div{background:#f6f9f7;border-color:var(--sp-border)}
body.sp-page .sp-message.sp-user>div{background:#e7f0e8;border-color:#c9dfd1}
body.sp-page .sp-free-card{background:#e7f0e8;border-color:#c9dfd1}
body.sp-page .sp-filter{border-color:var(--sp-border);background:#fff}
body.sp-page .sp-composer textarea{background:#f6f9f7;border-color:var(--sp-border)}

/* QA Practicum has a separate bundle; keep navigation and trainer layout. */
body.course-a-qa{--bg:#f6f9f7;--bg-2:#eef5f0;--surface-soft:#eef5f0;--surface-strong:#dbece1;--ink:#143b32;--muted:#526b61;--muted-strong:#2c4e41;--line:#d8e4dd;--line-strong:#a9cdb8;--accent:#08674e;--accent-strong:#064f3c;--accent-2:#2c8063;--accent-soft:#e7f0e8;--shadow:none;--shadow-soft:none;--focus:0 0 0 3px #a9cdb8;font-family:Onest,sans-serif;background:#f6f9f7;color:#143b32}
body.course-a-qa::before,body.course-a-qa::after{display:none}
body.course-a-qa :is(button,input,textarea,select){font-family:inherit}
body.course-a-qa .sidebar{background:#fff;border-right:1px solid var(--line);box-shadow:none}
body.course-a-qa .sidebar h1{color:var(--ink);background:none;-webkit-text-fill-color:currentColor;letter-spacing:-.03em;font-weight:650}
body.course-a-qa .app-kicker{letter-spacing:0;text-transform:none;color:var(--muted)}
body.course-a-qa .topbar{background:#fff;backdrop-filter:none;border-bottom:1px solid var(--line);box-shadow:none}
body.course-a-qa :is(.topic-hero,.trainer-hero){background:#e7f0e8;color:var(--ink);border:0;border-radius:12px;box-shadow:none;padding:28px}
body.course-a-qa :is(.topic-hero h1,.trainer-hero h1){color:var(--ink);font-size:clamp(28px,2.6vw,38px);line-height:1.2;letter-spacing:-.03em;font-weight:650}
body.course-a-qa :is(.topic-hero p,.trainer-hero p,.topic-hero span,.trainer-hero span){color:#426353}
body.course-a-qa :is(.panel-card,.content-section,.source-card,.progress-card,.trainer-panel,.trainer-task-card,.trainer-module-list,.trainer-task-meta,.trainer-tool,.trainer-scenario,.trainer-progress-card){background:#fff;border-color:var(--line);border-radius:12px;box-shadow:none;backdrop-filter:none}
body.course-a-qa .reader{min-width:0}
body.course-a-qa .trainer-app{background:#f6f9f7}
body.course-a-qa .trainer-topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:none}
body.course-a-qa .trainer-topbar :is(p,.app-kicker){color:var(--muted);text-transform:none;letter-spacing:0}
body.course-a-qa .trainer-hero h2{color:var(--ink);font-size:38px;line-height:1.15;letter-spacing:-.03em;font-weight:650}
body.course-a-qa .trainer-hero-stats strong{color:var(--ink)}
body.course-a-qa .trainer-scenario{background:#eef5f0;color:#143b32;border:0;box-shadow:none}
body.course-a-qa .trainer-scenario :is(h3,h4,strong){color:#24563f}
body.course-a-qa .trainer-scenario :is(p,span,small){color:#426353}
body.course-a-qa .trainer-module-list button.is-active,body.course-a-qa .trainer-exercise-list button.is-active{background:#e7f0e8;border-color:#a9cdb8;box-shadow:none}
body.course-a-qa .text-block{font-size:16px;line-height:1.75;max-width:78ch}
body.course-a-qa .text-block :is(p,li){line-height:1.75}
body.course-a-qa :is(.topic-nav,.chapter-strip,.study-visual){background:#eef5f0;border-color:var(--line);border-radius:10px;box-shadow:none}
body.course-a-qa .topic-hero::before,body.course-a-qa .topic-hero::after,body.course-a-qa .trainer-hero::before,body.course-a-qa .trainer-hero::after{display:none}
body.course-a-qa .topic-nav button{color:#143b32;background:#fff;border:1px solid #c9dfd1;box-shadow:none;border-radius:8px}
body.course-a-qa .topic-nav button:disabled{color:#66786f;background:#eef5f0;opacity:.65}
body.course-a-qa :is(.topic-row.is-active,.toc details[open]){background:#e7f0e8}
body.course-a-qa .topic-link{color:#244b3d}
body.course-a-qa :is(.suite-home-cta,.trainer-cta,.trainer-primary){background:#08674e;color:#fff;border-color:#08674e;border-radius:8px;box-shadow:none}
body.course-a-qa .suite-home-cta svg{color:currentColor}
body.course-a-qa .suite-home-cta svg{width:20px;height:20px;flex:0 0 20px}
body.course-a-qa .trainer-top-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body.course-a-qa .trainer-top-actions .language-switcher{width:auto;min-width:74px;max-width:100px}
body.course-a-qa .trainer-top-actions .language-switcher select{min-height:44px}
body.course-a-qa :is(.trainer-secondary,.copy-button,.topbar-tool,.support-cta,.contact-cta,.icon-button){background:#fff;color:var(--ink);border-color:var(--line);border-radius:8px;box-shadow:none}
body.course-a-qa :is(.trainer-module-badge,.topic-status,.trainer-hero-stats>div){background:#e7f0e8;color:#24563f;border-color:var(--line);box-shadow:none}
body.course-a-qa .trainer-module-badge{border-radius:6px}
body.course-a-qa :is(.support-popover,.contact-widget .support-popover){background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #143b3226;backdrop-filter:none}
body.course-a-qa :is(.support-fab,.contact-widget .support-fab){background:#08674e;color:#fff;border:0;box-shadow:none}
/* The same support action is always available in QA's persistent topbar.
   Remove its duplicate floating presentation, keeping the shared popup. */
body.course-a-qa .support-widget .support-fab{display:none}
body.course-a-qa :is(.progress-track>div,.trainer-dot){background:#08674e}
body.course-a-qa .code-block,body.course-a-qa .trainer-codebox,body.course-a-qa .trainer-terminal{border-radius:10px}

/* Resume editor chrome only. Resume documents and all 36 templates keep
   their original CSS, colors, typography, dimensions and PDF behavior. */
body.resume-builder-page{--resume-pro-accent:#08674e;--resume-pro-accent-2:#08674e;background:#f6f9f7!important}
body.resume-builder-page :is(.topbar,.sidebar,.preview-head,.preview-tools){font-family:Onest,sans-serif}
body.resume-builder-page .topbar{margin:0 24px;padding:18px 0;border:0;border-bottom:1px solid #d8e4dd;border-radius:0;background:#f6f9f7;box-shadow:none}
body.resume-builder-page .topbar::before{display:none}
body.resume-builder-page .topbar-brand{color:#143b32}
body.resume-builder-page .brand-icon{background:#08674e!important;border-radius:5px;box-shadow:none}
body.resume-builder-page :is(.topbar,.sidebar,.preview-tools) .primary{background:#08674e!important;border-color:#08674e;color:#fff;box-shadow:none;border-radius:8px}
body.resume-builder-page .sidebar{margin:24px 0 24px 24px;background:#fff!important;border:1px solid #d8e4dd;border-radius:12px;box-shadow:none;color:#143b32}
body.resume-builder-page .sidebar :is(h2,h3,.select-label,.section-title-editor,.field-head,.template-count){color:#143b32}
body.resume-builder-page .sidebar :is(p,small,.template-count,.field label){color:#526b61}
body.resume-builder-page .sidebar :is(input:not([type=color]):not([type=range]):not([type=checkbox]),select,textarea){color:#143b32;background:#fff;border:1px solid #b9cfc1;border-radius:7px}
body.resume-builder-page .sidebar :is(.control-block,.block-editor,.mini-card){background:#f6f9f7;border:1px solid #d8e4dd;border-radius:10px;box-shadow:none}
body.resume-builder-page .sidebar :is(.seg,.filter-tab,.small-action,.section-chip,.toggle-pill){color:#385a4b;background:#fff;border-color:#d8e4dd;border-radius:7px}
body.resume-builder-page .sidebar :is(.seg.active,.filter-tab.active,.toggle-pill.active){color:#fff;background:#08674e;border-color:#08674e}
body.resume-builder-page .sidebar .template-card{color:#143b32;background:#fff;border-color:#d8e4dd;border-radius:9px;box-shadow:none}
body.resume-builder-page .sidebar .template-card.active{outline-color:#08674e;border-color:#08674e}
body.resume-builder-page .sidebar .template-card .new-badge{background:#e7f0e8;color:#24563f}
body.resume-builder-page .sidebar :is(.form,.section-edit){color:#143b32}
body.resume-builder-page .preview{background:#eef3ef!important}
body.resume-builder-page .preview-head{background:#fff;border:1px solid #d8e4dd;border-radius:10px;box-shadow:none;backdrop-filter:none}
body.resume-builder-page .top-back-link{color:#08674e;background:#fff;border-color:#d8e4dd;box-shadow:none;border-radius:8px}
body.resume-builder-page .status-pill{background:#e7f0e8;color:#24563f;box-shadow:none}
body.resume-builder-page :is(.top-actions,.preview-tools) .ghost{color:#143b32;background:#fff;border:1px solid #d8e4dd;border-radius:8px}
body.resume-builder-page .preview-head .small-action{color:#143b32;background:#fff;border:1px solid #d8e4dd;box-shadow:none;border-radius:8px}
body.resume-builder-page .preview-head .primary{background:#08674e!important;color:#fff;border-color:#08674e;box-shadow:none}
body.resume-builder-page :is(.brand-version,.brand-dot){color:#526b61;letter-spacing:0;text-transform:none}
body.resume-builder-page .sidebar .template-count{background:#e7f0e8;color:#24563f}

/* Telegram shells: preserve WebApp events, iframe and safe-area sizing. */
body.telegram-surface{--tg-pro-accent:#08674e;--tg-pro-accent-2:#08674e;--tg-bg:#f6f9f7;--tg-text:#143b32;--tg-hint:#526b61;--tg-link:#08674e;--tg-button:#08674e;--tg-button-text:#fff;--panel:#fff;--panel-strong:#fff;--stroke:#d8e4dd;--shadow:none;background:#f6f9f7;font-family:Onest,sans-serif;color:#143b32;position:relative;box-sizing:border-box;padding-bottom:72px;min-height:100dvh}
body.telegram-surface::before{display:none}
body.telegram-surface .tg-app{background:#f6f9f7;height:calc(100dvh - 72px);min-height:calc(100dvh - 72px)}
body.telegram-surface .support-widget-panel{background:#fff;border:1px solid #d8e4dd;box-shadow:0 12px 36px #143b3226;border-radius:12px;backdrop-filter:none}
body.telegram-surface .support-widget-kicker{padding:0;background:none;color:#526b61;border:0;box-shadow:none;font-size:12px;letter-spacing:0;text-transform:none;font-weight:500}
body.telegram-surface .support-widget-panel h2{color:#143b32;font-size:24px;font-weight:650;letter-spacing:-.025em}
body.telegram-surface .support-widget-panel p{color:#526b61;font-size:14px;line-height:1.65}
body.telegram-surface .support-widget-close{color:#526b61;background:#fff;border:1px solid #d8e4dd;border-radius:7px}
body.telegram-surface .support-widget-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;color:#143b32;background:#f6f9f7;border:1px solid #d8e4dd;border-radius:8px;box-shadow:none;text-decoration:none;font:inherit;text-align:left}
body.telegram-surface .support-widget-link:hover{background:#e7f0e8;border-color:#a9cdb8}
body.telegram-surface .support-widget-link-title{color:#143b32;font-size:14px;font-weight:600}
body.telegram-surface .support-widget-link small{color:#526b61;font-size:12px}
body.telegram-surface .support-widget-card-inline{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center}
body.telegram-surface .support-widget-card-number{color:#143b32;font-size:13px;font-variant-numeric:tabular-nums}
body.telegram-surface .support-widget-copy-icon{display:grid;place-items:center;flex:0 0 30px;height:30px;color:#08674e;background:#e7f0e8;border-radius:6px}
body.telegram-surface .support-widget-copy-icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7}
body.telegram-surface .language-switch{background:#e7f0e8;box-shadow:none;border:0;border-radius:8px}
body.telegram-surface :is(.tg-header,.hero-panel,.module-card,.frame-toolbar){background:#fff;border:1px solid #d8e4dd;border-radius:12px;box-shadow:none;backdrop-filter:none}
body.telegram-surface .tg-header{border-radius:0;border-width:0 0 1px}
body.telegram-surface .hero-panel{background:#e7f0e8;border:0}
body.telegram-surface .hero-panel h1{color:#143b32;background:none;-webkit-text-fill-color:currentColor;font-weight:650;letter-spacing:-.03em}
body.telegram-surface :is(.primary-action,.lang-button.active){color:#fff;background:#08674e;border-radius:8px;box-shadow:none}
body.telegram-surface :is(.module-card,.toolbar-button,.icon-button,.lang-button){color:#143b32;border-radius:8px;box-shadow:none}
body.telegram-surface .module-icon{background:#e7f0e8;border-radius:10px;box-shadow:none}
body.telegram-surface .eyebrow{color:#526b61;text-transform:none;letter-spacing:0}

/* Administrator presentation; PHP actions and access checks are unchanged. */
body.course-a-admin{font-family:Onest,sans-serif;background:#f6f9f7;color:#143b32}
body.course-a-admin :is(button,input,select,textarea){font-family:inherit}
body.course-a-admin .admin-wrap{max-width:1200px}
body.course-a-admin :is(.admin-header,.stat-card,table){background:#fff;border-color:#d8e4dd;border-radius:10px;box-shadow:none}
body.course-a-admin .admin-nav a.active,body.course-a-admin .filter-bar a.active,body.course-a-admin .btn-primary{background:#08674e;color:#fff}
body.course-a-admin .stat-card .num{color:#08674e}
body.course-a-admin .admin-nav a,body.course-a-admin .filter-bar a{background:#e7f0e8;color:#24563f}
body.course-a-admin :is(select,input){min-height:40px;border:1px solid #b9cfc1;border-radius:7px;background:#fff;color:#143b32}
body.course-a-admin .btn-sm{min-height:40px;border-radius:7px}
/* A hidden application state must remain hidden despite component display rules. */
body:is(.ui-course,.ui-promo,.sp-page,.telegram-surface,.course-a-qa,.resume-builder-page) [hidden]{display:none!important}

@media(max-width:900px){
  body.course-a-qa :is(.topic-hero,.trainer-hero){padding:24px}
  body.resume-builder-page .topbar{margin-inline:16px}
  body.resume-builder-page .sidebar{margin:16px}
}
@media(max-width:700px){
  body.ui-auth .container{width:calc(100% - 32px)}
  body.ui-auth .card.auth-card{padding:24px 20px;margin-top:28px}
  body.ui-course .legal-article{padding:26px 22px;margin-top:24px}
  body.ui-course .legal-topbar{gap:12px;flex-wrap:wrap}
  body.ui-course .topbar-actions{flex-wrap:wrap;width:auto;gap:8px}
  body.ui-course .language-switcher{width:auto;display:block}
  body.ui-course .legal-article h1{font-size:28px}
  body.ui-course :is(.placement-question,.practice-card,.profession-topic-card,.trainer-mode-card){padding:20px}
  body.sp-page .sp-topic-grid{gap:12px}
  body.sp-page .sp-topic-card{padding:18px}
  body.course-a-qa :is(.topic-hero h1,.trainer-hero h1){font-size:27px}
  body.course-a-qa :is(.topic-hero,.trainer-hero){padding:22px}
  body.course-a-admin .admin-wrap{padding:16px;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){
  body.sp-page *,body.course-a-qa *,body.resume-builder-page :is(.sidebar,.topbar) *,body.telegram-surface *{animation:none!important;transition:none!important}
}

/* Keep native completion inputs and their existing change handlers. */
body.ui-course .progress-toggle{min-height:44px;padding:8px 12px;gap:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:14px;line-height:1.4;cursor:pointer}
body.ui-course .progress-toggle:has(input:checked){background:#e7f0e8;border-color:#9abeab}
body.ui-course .progress-toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:0;border:1.5px solid #8ba598;border-radius:5px;background:#fff;box-shadow:none;cursor:pointer;accent-color:#08674e}
body.ui-course .progress-toggle input[type=checkbox]:checked{border-color:#08674e;background-color:#08674e;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10 3.5 3.5 7.5-7.5' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:20px 20px}
body.ui-course .progress-toggle input[type=checkbox]:focus-visible{outline:3px solid #08674e;outline-offset:3px}
body.ui-course .progress-toggle:has(input:disabled){opacity:.6;cursor:wait}
body.ui-course .progress-toggle input[type=checkbox]:disabled{cursor:wait}
@media(forced-colors:active){body.ui-course .progress-toggle input[type=checkbox]{appearance:auto;-webkit-appearance:auto;accent-color:Highlight}body.ui-course .progress-toggle input[type=checkbox]:checked{background-image:none}}

/* A shared fixed row; keep both widgets in their original DOM locations. */
body:is(.ui-course,.ui-promo,.telegram-surface){--dock-left:calc(20px + env(safe-area-inset-left,0px));--dock-right:calc(20px + env(safe-area-inset-right,0px));--dock-bottom:calc(20px + env(safe-area-inset-bottom,0px));--dock-width:180px;--dock-gap:8px}
body:is(.ui-course,.ui-promo):has(>.support-widget,>.feedback-fab){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body:is(.ui-course,.ui-promo,.telegram-surface) .support-widget{position:fixed;left:auto;right:var(--dock-right);bottom:var(--dock-bottom);width:var(--dock-width);z-index:70}
body:is(.ui-course,.ui-promo,.telegram-surface) :is(.support-widget-fab,.feedback-fab){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:48px;min-height:48px;padding:0 12px;gap:0;border:1px solid #b2ccbd;border-radius:9px;background:#fff;color:#08674e;font-family:Onest,sans-serif;font-size:14px;font-weight:600;line-height:1.25;letter-spacing:0;text-align:center;white-space:nowrap;box-shadow:0 3px 14px #143b3212;backdrop-filter:none;cursor:pointer;transition:background .18s ease,border-color .18s ease}
body:is(.ui-course,.ui-promo,.telegram-surface) .support-widget-fab{width:100%;max-width:none}
body:is(.ui-course,.ui-promo,.telegram-surface) .feedback-fab{position:fixed;left:auto;right:var(--dock-right);bottom:var(--dock-bottom);width:var(--dock-width);max-width:none;z-index:70}
body:is(.ui-course,.ui-promo,.telegram-surface):has(>.support-widget) .feedback-fab{right:calc(var(--dock-right) + var(--dock-width) + var(--dock-gap))}
body:is(.ui-course,.ui-promo,.telegram-surface) :is(.support-widget-fab,.feedback-fab):hover{background:#eef5f0;border-color:#08674e;transform:none;box-shadow:0 3px 14px #143b3212}
body:is(.ui-course,.ui-promo,.telegram-surface) :is(.support-widget-fab,.feedback-fab):focus-visible{outline:3px solid #08674e;outline-offset:3px}
body:is(.ui-course,.ui-promo,.telegram-surface) .support-widget-icon{display:none}
body:is(.ui-course,.ui-promo,.telegram-surface) .support-widget-panel{left:auto;right:0;bottom:60px;width:min(360px,calc(100vw - var(--dock-left) - var(--dock-right)));max-height:calc(100dvh - var(--dock-bottom) - 80px);overflow:auto;overscroll-behavior:contain}
/* QA already exposes both actions in its persistent toolbar. */
body.course-a-qa .topbar-tool:is(.support-cta,.contact-cta){min-height:44px;border:1px solid #b2ccbd;border-radius:8px;background:#fff;color:#08674e;box-shadow:none;font-weight:600}
body.course-a-qa .topbar-tool:is(.support-cta,.contact-cta):hover{background:#eef5f0;border-color:#08674e;color:#08674e;box-shadow:none}
body.course-a-qa .topbar-tool:is(.support-cta,.contact-cta) svg{color:currentColor}
@media(max-width:700px){
  body:is(.ui-course,.ui-promo,.telegram-surface){--dock-left:calc(16px + env(safe-area-inset-left,0px));--dock-right:calc(16px + env(safe-area-inset-right,0px));--dock-bottom:calc(12px + env(safe-area-inset-bottom,0px));--dock-width:calc((100vw - var(--dock-left) - var(--dock-right) - var(--dock-gap))/2)}
  body:is(.ui-course,.ui-promo,.telegram-surface) :is(.support-widget-fab,.feedback-fab){font-size:13px;padding:0 8px}
}
