body.authenticated {padding-left:76px}body.authenticated header{padding:0 26px}.sidebar{position:fixed;inset:0 auto 0 0;width:72px;background:#172033;color:white;z-index:30;overflow:auto;transition:width .18s;padding:14px 8px;box-shadow:4px 0 20px #17203316}.sidebar:hover,.sidebar:focus-within{width:236px}.sidebar a{height:46px;display:flex;align-items:center;gap:18px;color:#e6ebff;text-decoration:none;white-space:nowrap;border-radius:10px;padding:8px 14px}.sidebar a:hover,.sidebar a:focus{background:#343c58}.sidebar a>span{min-width:26px;text-align:center;font-size:22px}.sidebar b{font-size:14px;opacity:0}.sidebar:hover b,.sidebar:focus-within b{opacity:1}.menu-toggle{display:none}body textarea{width:100%;font:inherit;padding:14px;border:1px solid #ccd2df;border-radius:12px}body pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 monospace}.role{display:inline-flex;align-items:center;gap:6px;margin-right:18px}.role input{width:auto}.spam-notice{background:#eef1ff;border-left:3px solid #7374da;padding:15px;border-radius:9px;color:#39415b;font-size:14px;max-width:520px;margin:18px auto}.guest main>.spam-notice{position:relative;margin-top:-70px;margin-bottom:80px}.learning>.section-head{display:none}body main:has(.learning){padding-top:12px;padding-bottom:0}.learning #quiz .learning-card,#quiz .learning-card{height:calc(100dvh - 98px);min-height:480px;display:grid;grid-template-rows:32px minmax(100px,1fr) minmax(170px,1.5fr) 64px;gap:12px;padding:20px;margin:0;overflow:hidden}.workspace-meta{overflow:auto}.workspace-prompt{overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;padding:10px 0}.workspace-prompt h2{margin:0 0 8px!important}.workspace-prompt p{margin:0}.workspace-response{overflow:auto;min-height:0}.workspace-response .answers{margin:0;grid-template-columns:1fr 1fr;align-content:start}.workspace-response .answer{min-height:62px;overflow-wrap:anywhere}.workspace-response .explain{margin-top:8px;padding-top:4px}.controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4e8f0}.controls .btn{margin:0}.controls .hint-button{background:#edf0ff;color:#4649a5}.answer kbd{display:block;color:#788299;font-size:11px;font-weight:400;margin-bottom:4px}dialog{max-width:min(90vw,540px);border:1px solid #ddd;border-radius:16px;padding:26px}dialog::backdrop{background:#1118}.tense-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tense-grid .card{min-width:0;padding:20px}.tense-grid code{display:block;white-space:normal;overflow-wrap:anywhere;background:#f0f2ff;padding:12px;border-radius:10px}.cheat-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.cheat-tabs button[aria-selected=true]{background:#292e83}.cheat-tabs button{margin:0}.cheat-panel[hidden]{display:none}.cheat-title{font-size:20px;color:#697487}.cheat-page{max-width:1120px}.authenticated main{max-width:1180px}details summary{cursor:pointer}.guest .login-wrap{min-height:calc(100dvh - 150px)}
@media(max-width:1050px){.tense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){body.authenticated{padding-left:0}.sidebar{transform:translateX(-100%);width:250px}.sidebar b{opacity:1}.menu-open .sidebar{transform:translateX(0)}.menu-toggle{display:block;position:fixed;bottom:16px;left:16px;z-index:40;border:0;border-radius:24px;padding:12px 18px;background:#172033;color:#fff;box-shadow:0 4px 20px #0003}.tense-grid{grid-template-columns:1fr}.answer kbd{display:none}.learning #quiz .learning-card,#quiz .learning-card{height:calc(100dvh - 86px);min-height:560px;grid-template-rows:26px minmax(100px,1fr) minmax(200px,1.8fr) 62px;padding:16px;gap:8px}.workspace-response .answers{grid-template-columns:1fr;gap:8px}.workspace-response .answer{min-height:44px;padding:10px 12px}.learning .menu-toggle{display:none}.guest main>.spam-notice{margin-top:-20px}.controls .btn{font-size:13px;padding:12px}.workspace-prompt h2{font-size:22px!important}}
.sidebar-brand{height:42px;display:flex;align-items:center;justify-content:center;font-size:25px;margin-bottom:8px}.sidebar a.active{background:#4d56b8;color:#fff;box-shadow:inset 3px 0 #b8c0ff}.sidebar-separator{color:#8791b8;height:28px;line-height:28px;overflow:hidden;text-align:center;white-space:nowrap;opacity:.7}.menu-toggle span{font-size:14px;margin-left:6px}@media(min-width:721px){body.authenticated header{padding-left:26px}.sidebar:hover~header{padding-left:26px}}@media(max-width:720px){body.authenticated header{padding-left:16px}.sidebar-brand{justify-content:flex-start;padding-left:12px}.sidebar a.active{box-shadow:inset 3px 0 #b8c0ff}}
@media(max-width:720px){body.authenticated header{height:62px;padding-left:64px;padding-right:16px}.authenticated .menu-toggle{top:14px;bottom:auto;left:14px;display:block;padding:8px 11px;border-radius:10px;font-size:18px}.authenticated .menu-toggle span{display:none}.authenticated .sidebar{top:0}.mobile-score{margin-left:auto;color:#e6b83f;font-weight:800;white-space:nowrap}.sidebar-brand{font-size:26px}}

.authenticated main{width:70%;max-width:1180px}.user{flex-direction:column;align-items:flex-end;gap:1px;line-height:1.25}.account-plan{font-weight:800;color:#172033;background:#f0f2ff;border-radius:9px;padding:4px 8px}.account-plan a{margin-left:8px}.cheat-tabs{position:sticky;top:72px;z-index:12;background:#f5f7fb;padding:8px 0;margin-bottom:10px;border-bottom:1px solid #e5e8f0}.cheat-page>h1{font-size:36px;margin-bottom:6px}.cheat-page>p{margin:0 0 8px}.cheat-title{font-size:16px;margin:8px 0 5px}.cheat-panel .tense-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.cheat-panel .tense-grid .card{min-height:0;padding:10px;margin-bottom:2px}.cheat-panel .tense-grid h3{font-size:15px;margin:0 0 5px}.cheat-panel .tense-grid code{padding:7px;font-size:12px}.cheat-panel .tense-grid p{font-size:12px;line-height:1.3;margin:6px 0}.admin-summary{background:#172033;color:#fff}.admin-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px}.btn.compact{margin:0 0 0 8px;padding:8px 12px}.funnel-row{display:grid;grid-template-columns:minmax(150px,1fr) 3fr 45px;gap:12px;align-items:center;margin:9px 0}.funnel-row>div{height:18px;background:#eef0f5;border-radius:10px;overflow:hidden}.funnel-row i{display:block;height:100%;background:linear-gradient(90deg,#5b5ce2,#8a8bf0);border-radius:10px}@media(max-width:980px){.authenticated main{width:86%}.cheat-panel .tense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.authenticated main{width:100%}.cheat-tabs{top:62px}.admin-metrics{grid-template-columns:1fr}.funnel-row{grid-template-columns:120px 1fr 35px}.cheat-panel .tense-grid{grid-template-columns:1fr}.user{font-size:11px}.user .text-btn,.user a{font-size:11px}.account-plan{padding:2px 5px}}

/* v2.18.3: compact navigation and more room for complete answers. */
.sidebar a b{font-weight:500}.sidebar a.active b{font-weight:650}
body.authenticated header{height:58px;min-height:58px}.logo{font-size:16px}.logo span{font-size:10px;padding:2px 6px}.account-plan{font-size:12px;padding:2px 7px}.user{font-size:12px;gap:0}.user .text-btn{font-size:12px}
body.authenticated .admin-summary,body.authenticated .admin-summary h2,body.authenticated .admin-summary p,body.authenticated .admin-summary b{color:#fff}
.navigation-slow::after{content:"⟳";position:fixed;right:22px;top:70px;z-index:60;color:#5b5ce2;font-size:34px;line-height:1;animation:et-spin .75s linear infinite;filter:drop-shadow(0 2px 4px #fff)}@keyframes et-spin{to{transform:rotate(360deg)}}
.learning #quiz .learning-card,#quiz .learning-card{height:auto;min-height:calc(100dvh - 78px);grid-template-rows:24px minmax(58px,.45fr) minmax(260px,2fr) 54px;overflow:visible;gap:8px}.workspace-prompt{overflow:visible;padding:2px 0}.workspace-prompt h2{font-size:clamp(19px,2vw,25px)!important;line-height:1.2}.workspace-response{overflow:visible;min-height:0}.workspace-response .answers{gap:8px}.workspace-response .answer{min-height:52px;padding:9px 12px;line-height:1.3}.workspace-response .explain{font-size:14px;line-height:1.35}
.cheat-tabs{top:58px;padding:4px 0;gap:5px}.cheat-tabs .btn{padding:6px 10px;font-size:12px}.cheat-group{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;align-items:start;margin:7px 0}.cheat-group .cheat-title{margin:8px 0}.cheat-group .tense-grid{min-width:0}
.plans-page{max-width:1000px}.plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.plan-cards .card{margin:0}.upgrade-plan{margin:0 0 16px}.content-editor-frame{width:100%;height:calc(100dvh - 120px);min-height:650px;border:1px solid #dce2eb;border-radius:16px;background:#fff}body.authenticated main:has(.content-editor-frame){width:calc(100% - 48px);max-width:none}
@media(max-width:980px){.cheat-group{grid-template-columns:1fr;gap:2px}}@media(max-width:720px){body.authenticated header{height:58px;min-height:58px;padding-left:60px;padding-right:8px}.authenticated .menu-toggle{top:10px}.logo{font-size:13px}.logo span{display:none}.mobile-score{font-size:12px}.user{font-size:10px}.user .text-btn,.user a{font-size:10px}.account-plan{font-size:10px}.cheat-tabs{top:58px}.learning #quiz .learning-card,#quiz .learning-card{height:auto;min-height:calc(100dvh - 76px);grid-template-rows:22px minmax(62px,auto) minmax(280px,1fr) 54px;overflow:visible}.workspace-response .answers{grid-template-columns:1fr}.workspace-response .answer{min-height:44px;padding:8px 10px}.plan-cards{grid-template-columns:1fr}body.authenticated main:has(.content-editor-frame){width:100%}}
body.authenticated header .user{gap:0;align-items:flex-end;font-size:12px}body.authenticated header .logo{font-size:16px}@media(max-width:720px){body.authenticated header .user{font-size:10px}body.authenticated header .logo{font-size:13px}}

/* v2.18.3 viewport layout: keep the app shell inside the screen and fit common pages. */
html,body{min-height:0;height:100%;}
body.authenticated{height:100dvh;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body.authenticated header{position:relative;top:auto;flex:0 0 54px;height:54px;min-height:54px;padding-top:3px;padding-bottom:3px}
body.authenticated>main{flex:1 1 auto;width:min(70vw,1380px);max-width:none;height:calc(100dvh - 54px);min-height:0;overflow:hidden;margin:0 auto;padding:12px 16px 14px;display:flex;flex-direction:column}
body.authenticated main>h1,body.authenticated main>h2{flex:0 0 auto;margin:2px 0 8px;font-size:clamp(20px,2.4vw,30px);line-height:1.15}
body.authenticated .workspace{width:100%;max-width:none;min-height:0;height:100%;margin:0;overflow:hidden;display:flex;flex-direction:column;gap:8px}
body.authenticated .section-head{flex:0 0 auto;align-items:center;margin:0;min-height:34px}
body.authenticated .section-head h1{font-size:clamp(21px,2.5vw,30px);margin:0 0 3px}
body.authenticated .section-head p{font-size:13px;margin:2px 0;line-height:1.3}
body.authenticated .back{font-size:12px;white-space:nowrap}
body.authenticated .card{padding:14px 16px;border-radius:16px;margin:0;box-shadow:0 4px 16px rgba(28,38,64,.045)}
body.authenticated .card h2{font-size:17px;margin:0 0 6px}
body.authenticated .card p{margin:5px 0;line-height:1.35}
body.authenticated label{margin:7px 0 4px;font-size:13px}
body.authenticated input,body.authenticated select{padding:9px 11px;border-radius:9px;font-size:14px}
body.authenticated .btn{padding:9px 14px;margin-top:8px;border-radius:9px;font-size:13px}
body.authenticated .hero{flex:0 0 auto;grid-template-columns:1.35fr .65fr;gap:18px;padding:8px 0 12px;align-items:center}
body.authenticated .hero h1{font-size:clamp(25px,3vw,38px);margin:5px 0 8px;line-height:1.05}
body.authenticated .hero p{font-size:13px;line-height:1.35;margin:0}
body.authenticated .hero .stats{padding:12px 16px;border-radius:16px;gap:7px}
body.authenticated .hero .stats div{padding-bottom:5px}
body.authenticated .hero .stats b{font-size:21px}
body.authenticated .grid{flex:1 1 auto;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(48px,1fr);gap:8px;align-content:stretch}
body.authenticated .tile{min-height:0;padding:10px 12px;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-content:center;border-radius:14px}
body.authenticated .tile>span{font-size:23px;grid-row:1/3;align-self:center}
body.authenticated .tile b{font-size:14px;line-height:1.2;font-weight:600}
body.authenticated .tile small{font-size:11px;line-height:1.15}
body.authenticated .workspace:has(#setup){gap:6px}
body.authenticated .workspace:has(#setup) .section-head{min-height:30px}
body.authenticated .workspace:has(#setup) #setup{flex:0 0 auto;max-width:680px;width:100%;margin:auto;padding:16px 20px}
body.authenticated .workspace:has(#setup) #quiz{flex:1 1 auto;min-height:0}
body.authenticated .workspace:has(#setup) #quiz:empty{display:none}
body.authenticated .learning #quiz .learning-card,body.authenticated #quiz .learning-card{height:100%;min-height:0;max-height:100%;grid-template-rows:22px minmax(48px,.42fr) minmax(0,2fr) 48px;gap:6px;padding:14px 18px;overflow:hidden}
body.authenticated .workspace-meta{overflow:hidden}
body.authenticated .workspace-prompt{overflow:hidden;padding:0}
body.authenticated .workspace-prompt h2{font-size:clamp(18px,2vw,24px)!important;line-height:1.17;margin:0 0 4px!important}
body.authenticated .workspace-prompt p{font-size:13px;line-height:1.25}
body.authenticated .workspace-response{overflow:hidden;min-height:0}
body.authenticated .workspace-response .answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
body.authenticated .workspace-response .answer{min-height:0;padding:8px 11px;font-size:clamp(12px,1.15vw,15px);line-height:1.2}
body.authenticated .workspace-response .explain{font-size:12px;line-height:1.25;margin-top:5px;padding-top:4px}
body.authenticated .controls{min-height:0}
body.authenticated .controls .btn{padding:8px 12px}
body.authenticated .workspace:has(.stats.wide){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto minmax(0,1fr);gap:8px}
body.authenticated .workspace:has(.stats.wide)>.section-head,body.authenticated .workspace:has(.stats.wide)>.stats.wide{grid-column:1/-1}
body.authenticated .workspace:has(.stats.wide)>.stats.wide{margin:0;padding:8px 12px;border-radius:14px;gap:5px}
body.authenticated .workspace:has(.stats.wide)>.stats.wide b{font-size:20px}
body.authenticated .workspace:has(.stats.wide)> .card{min-height:0;overflow:auto;padding:10px 14px}
body.authenticated .progress-row{padding:5px 0;font-size:12px;line-height:1.2}
body.authenticated .plans-page{gap:7px}
body.authenticated .plans-page>.card{flex:0 0 auto;padding:10px 14px}
body.authenticated .plans-page>.card:last-of-type{flex:1 1 auto;min-height:0;overflow:auto}
body.authenticated .plans-page .plan-cards{flex:1 1 auto;min-height:0;grid-template-columns:1fr 1fr;gap:8px}
body.authenticated .plans-page .plan-cards>.card{min-height:0;padding:12px 14px;overflow:auto;font-size:13px}
body.authenticated .cheat-page{flex:1 1 auto;min-height:0;max-width:none;display:flex;flex-direction:column;overflow:hidden}
body.authenticated .cheat-page>h1{font-size:24px;margin:0 0 3px}
body.authenticated .cheat-page>p{font-size:11px;margin:0 0 4px}
body.authenticated .cheat-tabs{position:sticky;top:0;flex:0 0 auto;padding:3px 0;margin:0 0 3px;gap:4px}
body.authenticated .cheat-tabs .btn{padding:5px 9px;margin:0;font-size:11px}
body.authenticated .cheat-panel{flex:1 1 auto;min-height:0;overflow:hidden}
body.authenticated .cheat-group{grid-template-columns:112px minmax(0,1fr);gap:7px;margin:3px 0}
body.authenticated .cheat-group .cheat-title{font-size:13px;margin:5px 0}
body.authenticated .cheat-group .tense-grid{gap:5px}
body.authenticated .cheat-panel .tense-grid .card{padding:6px 8px;border-radius:10px}
body.authenticated .cheat-panel .tense-grid h3{font-size:12px;margin:0 0 3px;line-height:1.1}
body.authenticated .cheat-panel .tense-grid code{padding:4px 5px;font-size:10px;line-height:1.2}
body.authenticated .cheat-panel .tense-grid p{font-size:10px;line-height:1.18;margin:3px 0}
body.authenticated .admin-summary{flex:0 0 auto;padding:10px 14px}
body.authenticated .admin-metrics p{font-size:12px;line-height:1.35;margin:2px 0}
body.authenticated .funnel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}
body.authenticated .funnel-row{grid-template-columns:minmax(100px,1fr) 2fr 30px;gap:6px;margin:3px 0;font-size:11px}
body.authenticated .funnel-row>div{height:10px}
body.authenticated main:has(.content-editor-frame){width:calc(100% - 32px);padding:8px 10px}
body.authenticated .content-editor-frame{height:calc(100dvh - 76px);min-height:0}
body.guest{height:100dvh;min-height:0;overflow:hidden}
body.guest main{height:100dvh;max-height:100dvh;overflow:hidden;padding:12px 5vw;display:flex;flex-direction:column;justify-content:center}
body.guest .login-wrap{min-height:0;height:100%;place-items:center}
body.guest .login-brand{top:12px;left:18px;font-size:15px}
body.guest .login-card{padding:22px 26px;border-radius:18px}
body.guest .login-card h1{font-size:clamp(24px,4vw,34px);margin:5px 0 10px}
body.guest .login-card p{font-size:13px;margin:5px 0}
body.guest .spam-notice{padding:8px 10px;font-size:11px;margin:6px auto}
@media(max-width:1100px){body.authenticated main{width:86vw}.workspace:has(.stats.wide){grid-template-rows:auto auto minmax(0,1fr)}}
@media(max-height:760px){body.authenticated header{flex-basis:48px;height:48px;min-height:48px}body.authenticated>main{height:calc(100dvh - 48px);padding-top:6px;padding-bottom:7px}body.authenticated .hero{padding:2px 0 6px}body.authenticated .hero h1{font-size:26px}body.authenticated .section-head h1{font-size:22px}body.authenticated .card{padding:9px 12px}body.authenticated .learning #quiz .learning-card,body.authenticated #quiz .learning-card{grid-template-rows:18px minmax(42px,.4fr) minmax(0,2fr) 42px;padding:10px 14px}body.authenticated .cheat-tabs{padding:1px 0}}
@media(max-width:720px){body.authenticated{padding-left:0}body.authenticated header{flex-basis:54px;height:54px;min-height:54px;padding-left:60px;padding-right:8px}body.authenticated>main{width:100%;height:calc(100dvh - 54px);padding:8px 10px 10px}body.authenticated .hero{grid-template-columns:1fr .55fr;gap:7px}body.authenticated .hero h1{font-size:22px}body.authenticated .hero p{font-size:11px}body.authenticated .hero .stats{padding:7px 9px;gap:3px}body.authenticated .hero .stats b{font-size:16px}body.authenticated .grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(43px,1fr);gap:6px}body.authenticated .tile{padding:7px 8px;grid-template-columns:25px minmax(0,1fr)}body.authenticated .tile>span{font-size:19px}body.authenticated .tile b{font-size:12px}body.authenticated .tile small{font-size:9px}body.authenticated .section-head{min-height:26px}body.authenticated .section-head h1{font-size:20px}body.authenticated .section-head p{font-size:10px}body.authenticated .back{font-size:10px}body.authenticated .workspace:has(#setup) #setup{max-width:100%;padding:12px 14px}body.authenticated .workspace:has(.stats.wide){grid-template-columns:1fr 1fr;grid-template-rows:auto auto minmax(0,1fr);gap:5px}body.authenticated .workspace:has(.stats.wide)>.stats.wide{grid-template-columns:repeat(4,1fr)}body.authenticated .workspace:has(.stats.wide)>.stats.wide b{font-size:15px}body.authenticated .workspace:has(.stats.wide)>.card{padding:7px 9px;font-size:11px}body.authenticated .cheat-group{grid-template-columns:1fr;gap:1px;margin:2px 0}body.authenticated .cheat-group .cheat-title{margin:2px 0}body.authenticated .cheat-panel .tense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.authenticated .cheat-panel .tense-grid p{display:none}body.authenticated .learning #quiz .learning-card,body.authenticated #quiz .learning-card{grid-template-rows:18px minmax(44px,.5fr) minmax(0,2fr) 42px;padding:9px 10px}body.authenticated .workspace-response .answers{grid-template-columns:1fr;gap:5px}body.authenticated .workspace-response .answer{padding:6px 8px;font-size:12px}body.authenticated .funnel{grid-template-columns:1fr}body.authenticated .plans-page .plan-cards{grid-template-columns:1fr 1fr;gap:5px}body.authenticated .plans-page .plan-cards>.card{padding:8px;font-size:10px}body.authenticated main:has(.content-editor-frame){width:100%;padding:5px}body.authenticated .content-editor-frame{height:calc(100dvh - 65px)}body.guest main{padding:8px}body.guest .login-card{padding:18px}}

/* Keep long user pages inside the viewport; scroll only the dense content area. */
body.authenticated main:has(>.feedback-list){display:flex;flex-direction:column;gap:7px}
body.authenticated .feedback-list,body.authenticated .admin-user-list{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:6px;padding-right:3px}
body.authenticated #feedback-form{flex:0 0 auto;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:5px 8px;padding:8px 12px}
body.authenticated #feedback-form label{margin:0}
body.authenticated #feedback-form textarea{height:54px;min-height:54px;resize:vertical}
body.authenticated #feedback-form .hint,body.authenticated #feedback-form [role=status]{grid-column:1/-1;margin:0;font-size:11px}
body.authenticated #feedback-form button{grid-column:1/-1;justify-self:start}
body.authenticated .feedback-list .card,body.authenticated .admin-user-list .card{padding:8px 11px;margin:0}
body.authenticated .feedback-list article p,body.authenticated .admin-user-list details p{font-size:11px;line-height:1.25;margin:4px 0}
body.authenticated .feedback-list textarea{height:46px;min-height:46px}
body.authenticated main:has(>.admin-user-list){display:grid;grid-template-rows:auto auto minmax(95px,1fr) auto auto minmax(70px,1fr) auto;gap:5px;overflow:hidden}
body.authenticated main:has(>.admin-user-list)>h1{font-size:21px;margin:0}
body.authenticated main:has(>.admin-user-list)>.admin-summary{padding:6px 10px;margin:0}
body.authenticated main:has(>.admin-user-list)>.admin-summary h2{font-size:14px;margin:0 0 3px}
body.authenticated main:has(>.admin-user-list)>.admin-summary>p{font-size:10px;margin:2px 0 0}
body.authenticated main:has(>.admin-user-list)>section:has(.funnel){padding:6px 10px;margin:0;min-height:0;overflow:hidden}
body.authenticated main:has(>.admin-user-list)>section:has(.funnel) h2,body.authenticated main:has(>.admin-user-list)>section:not(.admin-summary) h2{font-size:13px;margin:0 0 3px}
body.authenticated main:has(>.admin-user-list)>.admin-user-list{grid-column:1/-1}
body.authenticated main:has(>.admin-user-list)>h2{font-size:14px;margin:0}
body.authenticated main:has(>.admin-user-list)>p{font-size:11px;margin:0}
body.authenticated .admin-user-list details summary{font-size:11px}
body.authenticated .admin-user-list details p{margin:3px 0}
body.authenticated .workspace:has(.stats.wide){grid-template-rows:auto auto repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
body.authenticated .workspace:has(.stats.wide)>.card{min-height:0;overflow:auto}
body.authenticated .workspace:has(#goal){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:7px}
body.authenticated .workspace:has(#goal)>.section-head{grid-column:1/-1}
body.authenticated .workspace:has(#goal)>.card{min-height:0;overflow:auto;padding:9px 12px}
@media(max-width:720px){
 body.authenticated main:has(>.admin-user-list){grid-template-rows:auto auto minmax(85px,1fr) auto auto minmax(70px,1fr) auto;gap:4px}
 body.authenticated main:has(>.admin-user-list)>.admin-summary .admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px}
 body.authenticated main:has(>.admin-user-list)>.admin-summary .admin-metrics p{font-size:9px}
 body.authenticated main:has(>.admin-user-list) .funnel{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 6px}
 body.authenticated main:has(>.admin-user-list) .funnel-row{grid-template-columns:minmax(76px,1fr) 1fr 20px;gap:3px;font-size:8px;margin:1px 0}
 body.authenticated main:has(>.admin-user-list)>section:not(.admin-summary){padding:4px 7px}
 body.authenticated .workspace:has(#goal){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto repeat(3,minmax(0,1fr));gap:5px;overflow:auto}
 body.authenticated .workspace:has(#goal)>.section-head{grid-column:1/-1}
 body.authenticated .workspace:has(.stats.wide){grid-template-rows:auto auto repeat(3,minmax(0,1fr))}
}

/* Progress: learning profile and translation on the left, tense results on the right. */
body.authenticated .progress-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
body.authenticated .progress-workspace>.section-head,body.authenticated .progress-workspace>.stats.wide,body.authenticated .progress-workspace>.progress-recommendation{grid-column:1/-1}
body.authenticated .progress-workspace>.stats.wide{margin:0}
body.authenticated .progress-workspace>.progress-student{grid-column:1;grid-row:3;overflow:auto}
body.authenticated .progress-workspace>.progress-tenses{grid-column:2;grid-row:3 / span 2;overflow:auto}
body.authenticated .progress-workspace>.progress-translation{grid-column:1;grid-row:4;overflow:auto}
body.authenticated .progress-workspace>.progress-recommendation{grid-row:5;overflow:auto}
body.authenticated .progress-workspace .card{margin:0;min-height:0}

/* Cheat-sheet group names belong above their cards. */
body.authenticated .cheat-group{display:block;margin:3px 0 5px}
body.authenticated .cheat-group .cheat-title{margin:0 0 3px;font-size:13px}

/* Feedback intentionally scrolls as a normal page when the conversation is long. */
body.authenticated main:has(>.feedback-list){display:block;overflow:auto}
body.authenticated main:has(>.feedback-list)>.feedback-list{display:grid;min-height:auto;overflow:visible;margin-top:8px;padding-bottom:12px}

@media(max-width:720px){
 body.authenticated .progress-workspace{grid-template-columns:1fr;grid-template-rows:auto auto minmax(105px,1fr) minmax(135px,1fr) minmax(90px,1fr) auto;gap:5px;overflow:auto}
 body.authenticated .progress-workspace>.section-head,body.authenticated .progress-workspace>.stats.wide,body.authenticated .progress-workspace>.progress-student,body.authenticated .progress-workspace>.progress-tenses,body.authenticated .progress-workspace>.progress-translation,body.authenticated .progress-workspace>.progress-recommendation{grid-column:1;grid-row:auto}
 body.authenticated .progress-workspace>.stats.wide{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.authenticated .cheat-group{margin:2px 0 4px}
 body.authenticated .cheat-group .cheat-title{margin:0 0 2px}
}


/* feature/web-redesign: first visual pass based on the approved mascot/landing direction. */
:root{
  --et-ink:#182033;
  --et-muted:#6f7890;
  --et-violet:#665eea;
  --et-violet-dark:#4f46d8;
  --et-violet-soft:#f1efff;
  --et-yellow:#ffd45a;
  --et-surface:#ffffff;
  --et-bg:#f7f8fc;
}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.guest:has(.landing-shell){height:auto;min-height:100dvh;overflow:auto;background:
  radial-gradient(circle at 88% 12%,rgba(255,212,90,.28),transparent 24rem),
  radial-gradient(circle at 15% 15%,rgba(102,94,234,.10),transparent 28rem),
  var(--et-bg)}
body.guest:has(.landing-shell) main{height:auto;max-height:none;min-height:100dvh;overflow:visible;padding:0;display:block}
.landing-shell{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:26px 0 48px}
.landing-hero{min-height:590px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);align-items:center;gap:56px;padding:34px 0 20px}
.brand-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #ebe8ff;box-shadow:0 8px 28px rgba(70,62,170,.08);color:var(--et-violet);font-size:12px;font-weight:800;letter-spacing:.09em}
.landing-copy h1{max-width:720px;margin:22px 0 20px;font-size:clamp(48px,6vw,82px);line-height:.98;letter-spacing:-.055em;color:var(--et-ink)}
.landing-copy h1 em{font-style:normal;color:var(--et-violet)}
.landing-lead{max-width:690px;margin:0;color:var(--et-muted);font-size:clamp(18px,2vw,22px);line-height:1.55}
.landing-points{display:grid;gap:10px;margin-top:28px;color:#333b52;font-size:15px}
.landing-points span{display:flex;align-items:center;gap:9px}
.landing-points span::first-letter{color:var(--et-violet)}
.landing-visual{position:relative;min-height:440px;display:grid;place-items:center}
.mascot-placeholder{position:relative;width:min(360px,80vw);aspect-ratio:1;border-radius:42% 42% 36% 36%;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#f1efff);border:1px solid #ebe8ff;box-shadow:0 30px 80px rgba(62,55,150,.14)}
.mascot-placeholder::before{content:"";position:absolute;inset:9% 10% 12%;border-radius:38px;background:linear-gradient(180deg,#8179f1 0 24%,#fff 24% 100%);box-shadow:inset 0 0 0 1px rgba(79,70,216,.08)}
.mascot-calendar{position:relative;z-index:2;font-size:116px;filter:drop-shadow(0 10px 14px rgba(45,41,104,.10))}
.mascot-flags{position:absolute;z-index:3;right:14%;bottom:15%;font-size:34px;transform:rotate(-8deg)}
.floating-card{position:absolute;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid rgba(226,223,255,.9);border-radius:18px;padding:13px 16px;box-shadow:0 16px 42px rgba(41,37,100,.13);display:grid;gap:2px;min-width:180px}
.floating-card b{font-size:14px;color:var(--et-ink)}
.floating-card small{font-size:12px;color:var(--et-muted)}
.floating-card-one{left:-1%;top:18%;transform:rotate(-4deg)}
.floating-card-two{right:-3%;bottom:17%;transform:rotate(3deg)}
.landing-auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:18px 34px;align-items:center;padding:30px 34px!important;border-radius:28px!important;border:1px solid #e8e5ff;background:rgba(255,255,255,.96);box-shadow:0 24px 80px rgba(42,37,115,.10)!important}
.landing-auth h2{font-size:clamp(24px,3vw,34px);margin:5px 0 8px;letter-spacing:-.035em}
.landing-auth p{color:var(--et-muted)}
.landing-email-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.landing-email-form input{height:52px;margin:0!important;border:1px solid #dcdff0!important;border-radius:14px!important;padding:0 16px!important;font-size:16px!important;background:#fbfbfe}
.landing-email-form input:focus{outline:3px solid rgba(102,94,234,.12);border-color:var(--et-violet)!important}
.landing-email-form .btn{height:52px;margin:0!important;border-radius:14px!important;padding:0 21px!important;background:var(--et-violet)!important;box-shadow:0 10px 24px rgba(102,94,234,.22)}
.landing-email-form .btn:hover{background:var(--et-violet-dark)!important}
.landing-auth .spam-notice{grid-column:2;margin:0;max-width:none;background:#fff8df;border-left:0;border:1px solid #f3df9f;color:#6c5b21;font-size:12px;padding:9px 11px}
.landing-login-link{grid-column:2;margin:0!important;font-size:13px}
.landing-login-link a,.landing-secondary a{color:var(--et-violet);font-weight:700;text-decoration:none}
.landing-secondary{text-align:center;margin:18px 0 0;color:var(--et-muted);font-size:13px}
body.authenticated .sidebar{background:linear-gradient(180deg,#1c2340,#161b31)}
body.authenticated .sidebar a{border:1px solid transparent}
body.authenticated .sidebar a:hover,body.authenticated .sidebar a:focus{background:#ffffff12;border-color:#ffffff12}
body.authenticated .sidebar a.active{background:linear-gradient(135deg,#7067ef,#5a52db);box-shadow:0 10px 24px rgba(75,68,190,.22)}
body.authenticated header{background:rgba(255,255,255,.92);backdrop-filter:blur(12px)}
body.authenticated .logo b{letter-spacing:-.02em}

@media(max-width:900px){
  .landing-shell{width:min(100% - 28px,760px)}
  .landing-hero{grid-template-columns:1fr;gap:16px;padding-top:26px;min-height:auto}
  .landing-copy{text-align:center}
  .brand-pill{margin:auto}
  .landing-copy h1{font-size:clamp(44px,11vw,68px);margin-inline:auto}
  .landing-lead{margin-inline:auto}
  .landing-points{width:max-content;max-width:100%;margin:24px auto 0;text-align:left}
  .landing-visual{min-height:350px}
  .mascot-placeholder{width:min(300px,72vw)}
  .mascot-calendar{font-size:96px}
  .floating-card-one{left:4%}
  .floating-card-two{right:4%}
  .landing-auth{grid-template-columns:1fr;padding:24px!important;text-align:center}
  .landing-auth .spam-notice,.landing-login-link{grid-column:1}
}
@media(max-width:580px){
  .landing-shell{width:min(100% - 20px,520px);padding-top:14px}
  .landing-copy h1{font-size:clamp(39px,13vw,56px);margin:16px 0}
  .landing-lead{font-size:16px}
  .landing-points{font-size:13px}
  .landing-visual{min-height:290px}
  .mascot-placeholder{width:240px;border-radius:34px}
  .mascot-calendar{font-size:78px}
  .mascot-flags{font-size:26px}
  .floating-card{min-width:145px;padding:10px 12px}
  .floating-card-one{left:-2%;top:15%}
  .floating-card-two{right:-2%;bottom:12%}
  .landing-auth{padding:20px 16px!important;border-radius:22px!important}
  .landing-email-form{grid-template-columns:1fr}
  .landing-email-form .btn{width:100%}
}


/* Approved English Tenses reference landing */
.et-reference-landing{--et-blue:#0663ff;--et-navy:#071942;--et-muted:#525d7e;--et-pale:#eaf5ff;color:var(--et-navy);font-family:"Trebuchet MS",Arial,sans-serif;background:#fff;min-height:100vh}
body.guest:has(.et-reference-landing){height:auto;min-height:100vh;overflow:auto;background:#fff}
body.guest:has(.et-reference-landing)>main{height:auto;max-height:none;min-height:100vh;overflow:visible;padding:0;display:block;justify-content:initial}
.et-reference-landing *{box-sizing:border-box}
.et-reference-landing button,.et-reference-landing a{-webkit-tap-highlight-color:transparent}
.et-reference-landing button{font:inherit;cursor:pointer}
.et-reference-landing a{color:inherit;text-decoration:none}
.et-reference-landing button:focus-visible,.et-reference-landing a:focus-visible{outline:3px solid #f5b537;outline-offset:5px}
.et-wrap{width:min(1420px,calc(100% - 112px));margin:auto}
.et-landing-header{height:100px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.et-brand{font-size:30px;font-weight:900;letter-spacing:-1.3px;display:flex;align-items:center;gap:12px;white-space:nowrap}
.et-brand-icon{width:46px;height:50px;overflow:hidden;display:block}
.et-brand-icon img{width:62px;max-width:none;transform:translate(-8px,0)}
.et-top-nav,.et-header-actions{display:flex;align-items:center;gap:40px}
.et-top-nav a,.et-login-link{font-size:18px;font-weight:600;white-space:nowrap}
.et-header-actions{gap:24px}
.et-button{border:0;background:var(--et-blue);color:#fff;border-radius:16px;min-height:64px;padding:18px 28px;display:inline-flex;gap:24px;align-items:center;justify-content:center;font-weight:700;font-size:19px;box-shadow:0 8px 22px #0964e41a;transition:transform .2s,background .2s}
.et-button:hover{background:#0054e4;transform:translateY(-2px)}
.et-button.et-small{min-height:52px;border-radius:13px;padding:14px 24px;font-size:18px}
.et-menu{display:none}
.et-landing-main{max-width:none!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;display:block!important}
.et-hero{display:grid;grid-template-columns:1fr 1fr;min-height:598px;position:relative;align-items:center;padding:22px 0 42px;gap:24px}
.et-hero-copy{z-index:2;align-self:center;padding-bottom:12px}
.et-eyebrow{display:inline-block;background:#e0f0ff;color:#0055e9;padding:12px 22px;border-radius:40px;font-size:18px;font-weight:700;white-space:nowrap}
.et-hero h1{font-size:clamp(38px,3.7vw,58px);font-weight:900;letter-spacing:-2px;line-height:1.18;margin:27px 0 24px;white-space:nowrap;color:var(--et-navy)}
.et-hero h1 span{color:var(--et-blue)}
.et-intro{font-size:24px;line-height:1.3;color:var(--et-muted);margin:0 0 30px}
.et-hero-buttons{display:flex;gap:18px}
.et-secondary{border:2px solid #d6eaff;color:var(--et-navy);background:#fff;font-size:17px;gap:14px;padding:16px 20px;box-shadow:none}
.et-secondary:hover{background:#f1f8ff}
.et-play{width:31px;height:31px;border-radius:50%;background:#e7f2ff;display:grid;place-items:center;color:#075dcf;font-size:16px}
.et-reassurance{margin:14px 0 30px;color:var(--et-muted);font-size:16px}
.et-chips{display:flex;gap:12px}
.et-chips>span{display:flex;align-items:center;gap:10px;background:#edf7ff;padding:12px 16px;border-radius:22px;font-size:14px;white-space:nowrap}
.et-chips b{font-size:25px;color:var(--et-blue);line-height:1}
.et-hero-visual{height:560px;position:relative;min-width:0}
.et-blob{position:absolute;inset:0 -10px 5px -50px;border-radius:48% 45% 43% 38%;background:radial-gradient(ellipse at 50% 35%,#dfefff 0%,#e7f4ff 55%,#fff 74%);transform:rotate(-15deg)}
.et-practice{width:400px;position:absolute;left:0;top:25px;background:#fff;border:7px solid #eef7ff;border-radius:32px;box-shadow:0 14px 28px #1767a520,0 0 0 2px #f3f6fa;transform:rotate(2deg);z-index:2;overflow:hidden}
.et-practice-head{display:flex;justify-content:space-between;align-items:center;background:var(--et-blue);color:#fff;padding:22px 18px;gap:14px}
.et-practice-head strong{font-size:22px}
.et-practice-head strong span{font-size:29px;vertical-align:middle}
.et-practice-head>span{font-size:14px}
.et-practice-body{padding:18px 21px 22px}
.et-demo-progress{display:flex;gap:5px}
.et-demo-progress i{height:11px;background:#eaf0f6;flex:1;border-radius:10px}
.et-demo-progress .active{background:var(--et-blue)}
.et-practice h2{font-size:22px;margin:30px 0 22px;letter-spacing:-.7px;color:var(--et-navy)}
.et-demo-answers{display:grid;gap:11px}
.et-answer{width:100%;border:1px solid #d8e1eb;border-radius:13px;padding:13px 20px;background:#fff;text-align:left;font-weight:700;font-size:18px;color:var(--et-navy);display:flex;justify-content:space-between;align-items:center;min-height:52px}
.et-answer:hover{border-color:var(--et-blue)}
.et-answer.correct{background:#e9fff2;border-color:#56cc88;color:#0d4732}
.et-answer.correct span{background:#2bc568;color:#fff;border-radius:50%;height:26px;width:26px;text-align:center;padding-top:2px}
.et-answer.wrong{background:#fff1ee;border-color:#f7a291}
.et-explanation{display:flex;align-items:center;gap:16px;background:#eff8ff;padding:15px 16px;border-radius:14px;font-size:14px;color:#0648bf;min-height:68px;margin:17px 0}
.et-explanation>span:first-child{font-size:34px;color:#ffb600}
.et-next{width:100%;min-height:53px;font-size:16px;padding:15px;border-radius:12px}
.et-mascot{position:absolute;width:430px;height:337px;right:-30px;bottom:3px;z-index:3;pointer-events:none;overflow:hidden}
.et-mascot img{width:100%;height:auto;display:block;clip-path:inset(0 0 24% 0)}
.et-timeline{position:absolute;right:-20px;top:95px;width:320px;display:flex;gap:22px;align-items:center;justify-content:space-between;transform:rotate(-7deg);z-index:1;border-bottom:5px solid #c2e0ff;padding-bottom:28px}
.et-timeline span{position:relative;background:#ebf5ff;padding:12px 20px;border-radius:30px;font-size:14px}
.et-timeline .current{background:#c6e4ff;color:#0058e9}
.et-timeline i{position:absolute;width:17px;height:17px;background:#7cb9ff;border:3px solid #eaf7ff;bottom:-40px;left:50%;border-radius:50%}
.et-timeline .current i{background:var(--et-blue);box-shadow:0 0 0 3px #abd8ff}
.et-features{position:relative;background:linear-gradient(#f0f8ff,#fff);padding:42px 0 34px;border-radius:50% 20% 0 0/30px 25px 0 0}
.et-features h2{text-align:center;font-size:40px;letter-spacing:-1px;margin:12px 0 28px;font-weight:900;color:var(--et-navy)}
.et-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.et-feature{background:#fff;border-radius:23px;box-shadow:0 10px 30px #2361ab08;display:flex;align-items:center;gap:22px;padding:25px 22px;min-height:166px}
.et-feature-icon{flex:none;background:#dff0ff;color:var(--et-blue);border-radius:50%;width:102px;height:102px;display:grid;place-items:center;font-size:70px;font-weight:bold}
.et-feature h3{font-size:20px;letter-spacing:-.4px;margin:0 0 10px;white-space:nowrap}
.et-feature p{font-size:17px;line-height:1.35;color:var(--et-muted);margin:0}
.et-bars{display:flex;flex-direction:column;justify-content:center;gap:1px}
.et-bars span{font-size:21px;color:#ffb620}
.et-bars b{font-size:42px;line-height:1}
.et-auth-dialog{border:0;border-radius:24px;max-width:520px;width:calc(100% - 32px);padding:36px;box-shadow:0 20px 90px #07194240;color:var(--et-navy)}
.et-auth-dialog::backdrop{background:#07194270;backdrop-filter:blur(4px)}
.et-auth-dialog h2{margin:10px 0 10px;font-size:30px}
.et-auth-dialog>p{color:var(--et-muted);line-height:1.55}
.et-auth-dialog form{display:grid;gap:10px}
.et-auth-dialog label{font-weight:700}
.et-auth-dialog input{width:100%;padding:15px 16px;border:1px solid #d8e1eb;border-radius:12px;font:inherit}
.et-auth-dialog .et-button{width:100%;min-height:54px;margin-top:4px}
.et-auth-dialog .spam-notice{margin:14px 0 0;max-width:none}
.et-dialog-close{position:absolute;right:12px;top:8px;background:none;border:0;font-size:30px;color:var(--et-muted)}
@media(min-width:1550px){.et-hero{min-height:650px}.et-hero-visual{height:590px}.et-practice{left:20px;top:35px}.et-mascot{width:470px;height:366px}.et-timeline{right:0}}
@media(max-width:1250px){
 .et-wrap{width:calc(100% - 64px)}
 .et-top-nav{gap:22px}.et-brand{font-size:25px}.et-header-actions{gap:16px}.et-header-actions .et-small{font-size:15px;padding:12px 17px}
 .et-hero{gap:12px}.et-intro{font-size:20px}.et-eyebrow{font-size:15px}.et-hero h1{font-size:42px}
 .et-hero-buttons{gap:12px}.et-hero-buttons .et-button{font-size:15px;padding:16px 17px;gap:13px}
 .et-practice{width:340px}.et-practice h2{font-size:18px}.et-practice-head strong{font-size:19px}.et-practice-head>span{font-size:12px}
 .et-hero-visual{height:530px}.et-mascot{width:350px;height:275px;right:-20px;bottom:2px}.et-timeline{width:250px;gap:5px;right:0}.et-timeline span{padding:10px 14px}
 .et-chips{gap:7px}.et-chips>span{font-size:12px;padding:10px 12px}.et-feature{gap:14px;padding:20px 16px}.et-feature-icon{width:76px;height:76px;font-size:53px}.et-feature h3{font-size:16px}.et-feature p{font-size:15px}.et-features h2{font-size:34px}
}
@media(max-width:980px){
 .et-landing-header{height:85px}.et-top-nav{display:none}.et-header-actions .et-login-link{display:none}
 .et-hero{grid-template-columns:1fr;padding-top:25px;gap:25px}.et-hero-copy{text-align:center}.et-hero h1{font-size:52px}.et-intro{font-size:22px}
 .et-hero-buttons,.et-chips{justify-content:center}.et-hero-buttons .et-button{font-size:18px}
 .et-hero-visual{width:650px;max-width:100%;margin:auto;height:540px}.et-practice{width:400px;left:20px;top:0}.et-practice h2{font-size:22px}.et-mascot{width:430px;height:337px;right:0}.et-timeline{right:0;top:75px}
 .et-feature-grid{grid-template-columns:1fr}.et-feature{padding:24px;gap:24px}.et-feature h3{font-size:21px}.et-feature p{font-size:18px}.et-feature p br{display:none}.et-feature-icon{width:90px;height:90px}.et-features{padding-top:28px}
 .et-menu{display:block;border:0;background:#eff6ff;border-radius:12px;color:var(--et-navy);font-size:22px;padding:10px}.et-top-nav.open{display:flex;position:absolute;left:24px;right:24px;top:82px;z-index:20;background:#fff;box-shadow:0 10px 30px #07194220;padding:25px;border-radius:18px;flex-wrap:wrap}.et-header-actions{margin-left:auto}
}
@media(max-width:600px){
 .et-wrap{width:calc(100% - 36px)}.et-landing-header{gap:10px;height:76px}.et-brand{font-size:21px;gap:6px;letter-spacing:-1px}.et-brand-icon{width:32px;height:36px}.et-brand-icon img{width:45px;transform:translate(-6px,0)}.et-header-actions{display:none}
 .et-eyebrow{font-size:12px;padding:10px 13px;white-space:normal}.et-hero h1{font-size:clamp(27px,7.5vw,43px);letter-spacing:-1px;white-space:normal;margin:23px 0 20px}.et-intro{font-size:18px;line-height:1.5}.et-desktop{display:none}
 .et-hero-buttons{flex-direction:column;gap:12px}.et-hero-buttons .et-button{width:100%;font-size:17px;min-height:57px}.et-reassurance{font-size:14px;margin:15px 0 24px}.et-chips{gap:7px;flex-wrap:wrap}.et-chips>span{font-size:12px;padding:9px 10px}.et-chips b{font-size:20px}
 .et-hero{padding-bottom:22px;gap:15px}.et-hero-visual{height:550px}.et-practice{width:calc(100% - 16px);left:0;top:10px;transform:rotate(1deg);border-width:5px;max-width:365px}.et-practice-head{padding:17px 14px}.et-practice-head strong{font-size:20px}.et-practice h2{font-size:clamp(16px,4.7vw,20px);margin:25px 0 19px}.et-practice-body{padding:16px}
 .et-answer{font-size:16px;min-height:46px;padding:10px 15px}.et-explanation{font-size:13px;padding:12px;gap:11px;margin:13px 0}.et-mascot{width:230px;height:180px;right:-4px;bottom:0}.et-timeline{top:auto;bottom:50px;left:0;right:auto;width:180px;gap:4px;border-bottom-width:3px;padding-bottom:18px}.et-timeline span{font-size:11px;padding:8px}.et-timeline i{width:13px;height:13px;bottom:-28px}
 .et-features h2{font-size:27px;margin-top:5px}.et-feature{padding:21px 18px;gap:17px;min-height:144px;border-radius:20px}.et-feature-icon{width:68px;height:68px;font-size:47px}.et-feature h3{font-size:17px;white-space:normal}.et-feature p{font-size:15px}.et-bars span{font-size:16px}.et-bars b{font-size:32px}
}
@media(prefers-reduced-motion:reduce){.et-reference-landing *{animation:none!important;transition:none!important}}


/* Compact desktop landing: the complete first page must fit into one viewport at 100% zoom. */
@media (min-width:981px){
  body.guest:has(.et-reference-landing){height:100dvh;min-height:100dvh;overflow:hidden}
  body.guest:has(.et-reference-landing)>main{height:100dvh;min-height:100dvh;max-height:100dvh;overflow:hidden}
  .et-reference-landing{height:100dvh;min-height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto 1fr}
  .et-landing-header{height:clamp(68px,8.5vh,86px);min-height:0}
  .et-header-actions .et-small{white-space:nowrap}
  .et-landing-main{height:100%;min-height:0;display:grid!important;grid-template-rows:minmax(0,1fr) auto}
  .et-hero{
    min-height:0;
    height:100%;
    padding:clamp(10px,1.4vh,18px) 0 clamp(10px,1.2vh,16px);
    align-items:center;
  }
  .et-hero-copy{padding-bottom:0}
  .et-eyebrow{padding:clamp(8px,1vh,10px) 18px;font-size:clamp(13px,1.6vh,16px)}
  .et-hero h1{
    font-size:clamp(38px,5.8vh,55px);
    line-height:1.08;
    margin:clamp(12px,1.8vh,20px) 0 clamp(11px,1.6vh,18px);
  }
  .et-intro{font-size:clamp(17px,2.2vh,21px);line-height:1.28;margin-bottom:clamp(13px,1.8vh,20px)}
  .et-button{min-height:clamp(48px,6.5vh,58px);padding:12px 24px;font-size:clamp(15px,1.9vh,18px)}
  .et-secondary{padding:11px 18px}
  .et-reassurance{margin:clamp(8px,1.2vh,12px) 0 clamp(11px,1.5vh,16px);font-size:14px}
  .et-chips>span{padding:9px 13px;font-size:13px}
  .et-chips b{font-size:20px}

  .et-hero-visual{height:100%;min-height:0;max-height:500px}
  .et-blob{inset:2% -10px 0 -40px}
  .et-practice{
    width:clamp(315px,23vw,390px);
    top:clamp(4px,1.1vh,12px);
    left:1%;
    border-width:6px;
    border-radius:27px;
  }
  .et-practice-head{padding:clamp(14px,1.9vh,18px) 16px}
  .et-practice-head strong{font-size:clamp(18px,2.4vh,21px)}
  .et-practice-head strong span{font-size:24px}
  .et-practice-body{padding:clamp(12px,1.7vh,17px) 18px clamp(13px,1.7vh,18px)}
  .et-demo-progress i{height:8px}
  .et-practice h2{font-size:clamp(17px,2.2vh,21px);margin:clamp(13px,1.9vh,20px) 0 clamp(11px,1.5vh,16px)}
  .et-demo-answers{gap:8px}
  .et-answer{min-height:clamp(42px,5.3vh,48px);padding:9px 16px;font-size:clamp(15px,1.9vh,17px)}
  .et-answer.correct span{width:23px;height:23px;padding-top:0}
  .et-explanation{min-height:clamp(52px,6.8vh,61px);padding:10px 13px;margin:10px 0;font-size:12px;gap:10px}
  .et-explanation>span:first-child{font-size:26px}
  .et-next{min-height:clamp(44px,5.5vh,49px);padding:11px;font-size:14px}

  .et-mascot{
    width:clamp(290px,21vw,350px);
    height:auto;
    right:-1%;
    bottom:-1%;
    overflow:visible;
  }
  .et-mascot img{clip-path:none}
  .et-timeline{
    width:clamp(220px,18vw,285px);
    top:12%;
    right:-1%;
    padding-bottom:22px;
  }
  .et-timeline span{padding:9px 14px;font-size:12px}
  .et-timeline i{bottom:-33px}

  .et-features{
    height:clamp(190px,27vh,235px);
    padding:clamp(14px,2vh,21px) 0 clamp(12px,1.6vh,18px);
    overflow:hidden;
    border-radius:45% 18% 0 0/22px 18px 0 0;
  }
  .et-features h2{font-size:clamp(28px,4.2vh,38px);margin:0 0 clamp(11px,1.6vh,16px)}
  .et-feature-grid{gap:15px}
  .et-feature{
    min-height:0;
    height:clamp(120px,17vh,150px);
    padding:clamp(13px,1.7vh,18px);
    gap:16px;
    border-radius:20px;
  }
  .et-feature-icon{width:clamp(66px,8.6vh,84px);height:clamp(66px,8.6vh,84px);font-size:clamp(44px,6vh,58px)}
  .et-feature h3{font-size:clamp(15px,2.1vh,18px);margin-bottom:7px}
  .et-feature p{font-size:clamp(12px,1.7vh,15px);line-height:1.28}
  .et-bars span{font-size:16px}
  .et-bars b{font-size:34px}
}

@media (min-width:981px) and (max-height:760px){
  .et-wrap{width:min(1400px,calc(100% - 80px))}
  .et-landing-header{height:64px}
  .et-brand{font-size:25px}
  .et-brand-icon{width:38px;height:42px}
  .et-brand-icon img{width:51px;transform:translate(-7px,0)}
  .et-top-nav a,.et-login-link{font-size:16px}
  .et-header-actions .et-small{min-height:44px;padding:10px 18px}
  .et-hero h1{font-size:43px}
  .et-intro{font-size:17px}
  .et-hero-visual{max-height:430px}
  .et-practice{width:330px}
  .et-mascot{width:285px}
  .et-features{height:190px}
  .et-feature{height:116px}
}


/* Web redesign phase 2: landing sections + app visual system */

/* LANDING: keep the hero as the first viewport, then let the page continue naturally. */
body.guest:has(.et-reference-landing){height:auto!important;max-height:none!important;min-height:100dvh;overflow-y:auto!important;overflow-x:hidden;background:#fff}
body.guest:has(.et-reference-landing)>main{height:auto!important;max-height:none!important;min-height:100dvh;overflow:visible!important}
.et-reference-landing{height:auto!important;min-height:100dvh!important;overflow:visible!important;display:block!important}
.et-landing-main{height:auto!important;min-height:0!important;display:block!important}
@media(min-width:981px){
  .et-hero{height:calc(100dvh - clamp(68px,8.5vh,86px));min-height:620px;max-height:760px}
}
.et-section-kicker{display:inline-block;color:#0862f3;background:#e9f4ff;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:800;letter-spacing:.08em}
.et-steps,.et-capabilities,.et-pricing-preview{scroll-margin-top:90px}
.et-steps{padding:76px 0 82px;background:linear-gradient(180deg,#f2f9ff 0,#fff 100%)}
.et-steps h2,.et-capabilities h2,.et-pricing-preview h2{font-size:clamp(32px,4vw,50px);line-height:1.08;letter-spacing:-.04em;color:#071942;margin:15px 0 32px}
.et-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.et-step{position:relative;background:#fff;border:1px solid #e5effa;border-radius:24px;padding:28px;box-shadow:0 14px 40px rgba(36,90,155,.07)}
.et-step-number{position:absolute;right:20px;top:18px;font-weight:900;color:#c7ddf8;font-size:34px}
.et-step .et-feature-icon{width:76px;height:76px;font-size:50px;margin-bottom:18px}
.et-step h3{font-size:22px;margin:0 0 10px}.et-step p{color:#596581;font-size:16px;line-height:1.55;margin:0}
.et-capabilities{padding:80px 0;background:#fff}
.et-capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.et-capability-grid article{background:#f7fbff;border:1px solid #e1efff;border-radius:22px;padding:24px;min-height:160px}
.et-capability-grid b{display:block;color:#071942;font-size:19px;margin-bottom:10px}
.et-capability-grid p{margin:0;color:#5a6681;font-size:15px;line-height:1.5}
.et-pricing-preview{padding:78px 0 92px;background:#071942;color:#fff}
.et-pricing-inner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:50px;align-items:center}
.et-pricing-preview h2{color:#fff;margin-bottom:18px}.et-pricing-preview p{color:#cad6ee;font-size:18px;line-height:1.6;max-width:760px}
.et-price-card{background:#fff;color:#071942;border-radius:26px;padding:30px;display:grid;gap:12px;box-shadow:0 24px 80px rgba(0,0,0,.18)}
.et-price-card>span{color:#0862f3;font-weight:800}.et-price-card strong{font-size:42px;line-height:1}.et-price-card small{color:#69748c}
.et-price-card .et-button{width:100%;margin-top:8px}.et-price-card>a{text-align:center;color:#0862f3;font-weight:700}

/* APP SHELL */
body.authenticated{background:#f7fbff;color:#091a43;padding-left:78px}
body.authenticated header{height:62px!important;min-height:62px!important;flex-basis:62px!important;border-bottom:1px solid #dfebf7;background:rgba(255,255,255,.95);padding:0 24px}
body.authenticated>main{height:calc(100dvh - 62px);width:calc(100% - 32px);max-width:1500px;padding:12px 18px 14px}
.app-logo{display:flex;align-items:center;gap:8px!important;font-size:17px!important;color:#071942!important}
.app-logo img{width:34px;height:34px;object-fit:cover;object-position:center;clip-path:inset(0 0 21% 0);border-radius:8px}
.app-logo b{font-weight:900}
.sidebar{width:72px;background:#fff!important;border-right:1px solid #dfebf7;color:#16315f;box-shadow:5px 0 25px rgba(31,84,145,.05);padding:8px 7px}
.sidebar:hover,.sidebar:focus-within{width:218px}
.sidebar-brand{height:50px;justify-content:flex-start;padding:0 9px;gap:10px;margin-bottom:8px;overflow:hidden}
.sidebar-brand img{width:32px;height:32px;object-fit:cover;clip-path:inset(0 0 21% 0);flex:none}
.sidebar-brand b{opacity:0;white-space:nowrap;font-size:14px}.sidebar:hover .sidebar-brand b,.sidebar:focus-within .sidebar-brand b{opacity:1}
.sidebar a{height:42px;color:#25416e;padding:7px 12px;gap:14px;border-radius:10px}
.sidebar a>span{font-size:19px;min-width:24px}.sidebar a b{font-size:12px}
.sidebar a:hover,.sidebar a:focus{background:#edf6ff!important;color:#0862f3;border-color:transparent!important}
.sidebar a.active{background:#dcefff!important;color:#0862f3!important;box-shadow:none!important}
.sidebar-separator{height:18px;line-height:18px;color:#d3dfef}
.mobile-bottom-nav{display:none}

/* APP HOME */
.app-home{height:100%;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr);grid-template-rows:minmax(150px,.85fr) auto minmax(0,1fr);gap:10px}
.app-welcome{grid-column:1/-1;position:relative;overflow:hidden;background:linear-gradient(110deg,#eef8ff,#fff);border:1px solid #d9ecff;padding:20px 28px!important}
.app-welcome-copy{max-width:55%;position:relative;z-index:2}.app-welcome h1{font-size:clamp(30px,4vw,48px)!important;margin:2px 0 3px!important;letter-spacing:-.04em}
.app-welcome p{font-size:17px!important;color:#38517a;margin:0 0 12px!important}.app-primary-cta{margin:0!important}
.app-welcome-mascot{position:absolute;width:min(360px,34vw);right:7%;top:-23%;clip-path:inset(0 0 18% 0);filter:drop-shadow(0 18px 24px rgba(18,80,150,.12))}
.app-home-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-stat{display:flex;align-items:center;gap:14px;padding:10px 16px!important}.app-stat>span{font-size:28px}.app-stat div{display:grid}
.app-stat b{font-size:22px;color:#0862f3}.app-stat small{color:#65728a}
.app-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0}
.app-action{display:flex;align-items:center;gap:15px;color:#071942;text-decoration:none;padding:14px!important;border:1px solid #e0ebf6}
.app-action:hover{border-color:#8bc2ff;box-shadow:0 10px 24px rgba(38,102,172,.09)}.app-action>span{width:48px;height:48px;border-radius:14px;background:#e5f3ff;color:#0862f3;display:grid;place-items:center;font-size:28px;flex:none}
.app-action div{display:grid;gap:2px}.app-action b{font-size:16px}.app-action small{font-size:12px;color:#64728d}
.app-home-side{display:grid;grid-template-rows:1fr 1fr;gap:10px;min-height:0}.app-home-side>.card{min-height:0;overflow:auto}
.app-goal-row{display:flex;align-items:center;gap:14px;margin-top:10px}.app-goal-ring{width:76px;height:76px;border:10px solid #d7eaff;border-top-color:#0862f3;border-right-color:#0862f3;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#0862f3}
.app-goal-row>span:last-child{display:grid}.app-goal-row strong{font-size:22px;color:#0862f3}.app-goal-row small{color:#65728a}
.app-recommend{display:flex;align-items:center;gap:12px}.app-recommend>span{font-size:38px}.app-recommend div{display:grid;gap:4px}.app-recommend strong{color:#0862f3;font-size:15px}

/* TRAINING / DIAGNOSTIC / COMPARISON visual language */
body.authenticated .workspace{background:transparent}
body.authenticated .section-head .back{display:none}
body.authenticated .workspace:has(#setup) #setup{border:1px solid #dfeaf6;box-shadow:0 12px 30px rgba(35,94,160,.07)}
body.authenticated .learning #quiz .learning-card,body.authenticated #quiz .learning-card{position:relative;border:1px solid #dceaf8;background:#fff;border-radius:18px;box-shadow:0 14px 30px rgba(32,89,153,.08);padding:18px 32% 16px 18px}
body.authenticated .learning #quiz .learning-card::after,body.authenticated #quiz .learning-card::after{content:"";position:absolute;right:3%;bottom:8%;width:25%;aspect-ratio:1;background:url('/assets/calendar-256.webp') center/contain no-repeat;pointer-events:none;filter:drop-shadow(0 16px 22px rgba(30,88,150,.11))}
body.authenticated .workspace-prompt,body.authenticated .workspace-response,body.authenticated .controls{width:100%}
body.authenticated .workspace-response .answers{grid-template-columns:1fr}
body.authenticated .workspace-response .answer{background:#fff;border:1px solid #d9e4f0;border-radius:12px;color:#142750;min-height:50px}
body.authenticated .workspace-response .answer:hover{border-color:#0862f3;background:#f3f9ff}
body.authenticated .controls{border-top:0}.controls .btn{width:100%;background:#0862f3}
body.authenticated .hint-button{width:auto!important;background:#eaf5ff!important;color:#0756cb!important}

/* PROGRESS */
.progress-workspace>.stats.wide{background:#fff!important;color:#071942!important;border:1px solid #dfeaf6}
.progress-workspace>.stats.wide span{color:#65728a!important}.progress-workspace>.stats.wide b{color:#0862f3}
.app-progress-row{display:grid!important;grid-template-columns:minmax(140px,1fr) minmax(120px,1.7fr) 44px;gap:12px;align-items:center}
.app-progress-row i{height:10px;background:#e7eef6;border-radius:999px;overflow:hidden}.app-progress-row i span{display:block;height:100%;background:linear-gradient(90deg,#0862f3,#22a4ff);border-radius:999px}.app-progress-row em{font-style:normal;text-align:right;color:#27446e}

/* LANDING + APP mobile */
@media(max-width:980px){
  .et-step-grid,.et-capability-grid{grid-template-columns:1fr 1fr}
  .et-pricing-inner{grid-template-columns:1fr}
}
@media(max-width:720px){
  body.guest:has(.et-reference-landing)>main{padding:0!important}
  .et-wrap{width:calc(100% - 28px)}
  .et-landing-header{height:68px;border-bottom:1px solid #e5edf7;position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
  .et-brand{font-size:18px}.et-menu{display:block}.et-top-nav.open{top:64px;left:14px;right:14px;display:grid;gap:8px}.et-top-nav.open a{padding:10px;border-radius:9px;background:#f3f8ff}
  .et-hero{height:auto!important;min-height:0!important;max-height:none!important;display:flex;flex-direction:column;padding:22px 0 26px;gap:18px}
  .et-hero-copy{text-align:left}.et-eyebrow{font-size:12px;line-height:1.3}.et-hero h1{font-size:clamp(34px,11vw,52px);line-height:1.03;margin:17px 0 15px}.et-intro{font-size:16px;line-height:1.45;margin-bottom:18px}.et-hero-buttons{align-items:stretch}
  .et-hero-visual{width:100%;height:500px;overflow:hidden}.et-practice{width:94%;max-width:390px;left:0;right:0;margin:auto;top:8px}.et-mascot{width:210px;right:-10px;bottom:0}.et-timeline{display:none}
  .et-chips{justify-content:flex-start}.et-chips>span{flex:1;min-width:105px;justify-content:center}
  .et-steps,.et-capabilities,.et-pricing-preview{padding:52px 0}.et-steps h2,.et-capabilities h2,.et-pricing-preview h2{font-size:30px;margin-bottom:22px}
  .et-step-grid,.et-capability-grid{grid-template-columns:1fr;gap:12px}.et-step,.et-capability-grid article{padding:20px;min-height:0}.et-step .et-feature-icon{width:62px;height:62px;font-size:42px}
  .et-price-card{padding:22px}.et-pricing-preview p{font-size:16px}
  
  body.authenticated{padding-left:0;padding-bottom:66px;overflow:auto!important;height:auto!important;min-height:100dvh!important;max-height:none!important}
  body.authenticated header{height:56px!important;min-height:56px!important;position:sticky!important;top:0!important;z-index:30;padding:0 12px!important}
  body.authenticated>main{width:100%;height:auto!important;min-height:calc(100dvh - 122px);overflow:visible!important;padding:10px 10px 18px!important}
  .app-logo img{width:30px;height:30px}.app-logo b{font-size:14px}.mobile-score{font-size:11px}.user{display:none}
  .authenticated .menu-toggle{display:none!important}.sidebar{display:none!important}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:80;left:0;right:0;bottom:0;height:66px;background:rgba(255,255,255,.97);border-top:1px solid #dce8f5;box-shadow:0 -8px 24px rgba(34,82,135,.08);padding:5px 8px max(5px,env(safe-area-inset-bottom))}
  .mobile-bottom-nav a{display:grid;place-items:center;align-content:center;gap:1px;text-decoration:none;color:#667694;font-size:10px;border-radius:10px}.mobile-bottom-nav a span{font-size:22px;line-height:1}.mobile-bottom-nav a b{font-weight:600}.mobile-bottom-nav a.active{color:#0862f3;background:#eef7ff}
  
  .app-home{height:auto;display:block}.app-home>*{margin-bottom:9px}.app-welcome{min-height:190px;padding:18px!important}.app-welcome-copy{max-width:62%}.app-welcome h1{font-size:30px!important}.app-welcome p{font-size:14px!important}.app-welcome-mascot{width:180px;right:-8px;top:5px}
  .app-home-stats{grid-template-columns:repeat(3,1fr);gap:6px}.app-stat{display:grid;justify-items:center;text-align:center;gap:2px;padding:8px 4px!important}.app-stat>span{font-size:23px}.app-stat b{font-size:16px}.app-stat small{font-size:9px}
  .app-home-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:7px}.app-action{display:grid;justify-items:start;gap:7px;padding:11px!important}.app-action>span{width:40px;height:40px;font-size:22px}.app-action b{font-size:13px}.app-action small{font-size:10px}
  .app-home-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.app-home-side>.card{padding:11px!important}.app-goal-ring{width:54px;height:54px;border-width:7px}.app-goal-row strong{font-size:17px}.app-recommend>span{font-size:27px}.app-recommend b,.app-recommend strong{font-size:11px}
  
  body.authenticated .workspace{height:auto!important;overflow:visible!important;display:block}.section-head{margin-bottom:8px!important}.section-head h1{font-size:24px!important}
  body.authenticated .learning #quiz .learning-card,body.authenticated #quiz .learning-card{min-height:calc(100dvh - 142px);height:auto!important;max-height:none!important;display:block;padding:16px 14px 170px!important;overflow:visible}
  body.authenticated .learning #quiz .learning-card::after,body.authenticated #quiz .learning-card::after{width:145px;right:8px;bottom:58px}
  body.authenticated .workspace-prompt,body.authenticated .workspace-response,body.authenticated .controls{width:100%}
  body.authenticated .workspace-prompt{min-height:74px}.workspace-prompt h2{font-size:20px!important;line-height:1.2!important}.workspace-response .answers{gap:8px!important}.workspace-response .answer{font-size:14px!important;min-height:48px!important}
  body.authenticated .controls{position:absolute;left:14px;right:14px;bottom:12px;width:auto}.controls .btn{min-height:46px}
  
  .progress-workspace{display:block!important;overflow:visible!important}.progress-workspace>*{margin-bottom:8px!important}.progress-workspace>.stats.wide{grid-template-columns:repeat(2,1fr)!important}.app-progress-row{grid-template-columns:minmax(105px,1fr) minmax(80px,1.3fr) 38px;gap:7px;font-size:11px}
  .cheat-page{overflow:visible!important}.cheat-panel{overflow:visible!important}.cheat-panel .tense-grid{grid-template-columns:1fr!important}.cheat-panel .tense-grid p{display:block!important}
}


/* Web redesign phase 3: question/result states from approved app mockups. */
.app-question-card{position:relative}
.app-quiz-meta{align-items:center;margin-bottom:8px}
.app-quiz-meta>span{font-size:13px;color:#5b6c8b}
.app-quiz-meta>b{display:inline-flex;padding:6px 12px;border-radius:999px;background:#dff0ff;color:#0862f3;font-size:12px}
.app-question-progress{display:flex;gap:5px;margin:4px 0 18px}
.app-question-progress i{height:9px;flex:1;max-width:72px;border-radius:999px;background:#e6edf5}
.app-question-progress i.active{background:#0862f3}
.app-question-copy{margin-bottom:16px}
.app-question-copy h2{font-size:clamp(24px,3vw,38px)!important;line-height:1.12;margin:6px 0 5px!important;color:#071942}
.app-question-copy .translation{font-size:16px;color:#566888}
.app-question-card .answers{display:grid;grid-template-columns:1fr;gap:9px;margin-top:8px}
.app-question-card .answer{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 16px!important;background:#fff;border:1px solid #d7e3ef!important;border-radius:12px;font-size:16px;font-weight:700;color:#10264f}
.app-question-card .answer:hover{border-color:#0862f3!important;background:#f5faff!important}
.app-question-card .answer-radio{width:20px;height:20px;border:2px solid #adc0d6;border-radius:50%;display:block}
.app-question-card .answer:hover .answer-radio{border-color:#0862f3;box-shadow:inset 0 0 0 5px #fff;background:#0862f3}
.app-question-card .answer kbd{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 7px;border-radius:7px;background:#edf5ff;color:#2b5ca0;font-size:11px;border:0;box-shadow:none}
.app-question-tip{position:absolute;right:4%;top:24%;width:24%;min-height:125px;border-radius:18px;background:#eaf7ff;padding:18px;display:flex;align-items:flex-start;gap:10px;color:#1451a1}
.app-question-tip>span{font-size:32px}.app-question-tip p{margin:0;font-size:14px;line-height:1.35}.app-question-tip b{font-size:15px;color:#0b4bc6}

.app-result-card{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(210px,.65fr);grid-template-rows:auto auto auto 1fr auto;gap:10px 14px;padding:16px!important;background:#fff!important;border-color:#dcebf8!important}
.app-result-card .workspace-meta,.app-result-card .workspace-prompt,.app-result-card .workspace-response,.app-result-card .controls{display:contents}
.app-result-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:88px;background:linear-gradient(100deg,#eefff4,#fff);border:1px solid #ccefd8;border-radius:16px;padding:12px 18px;overflow:hidden}
.app-result-top img{width:130px;align-self:flex-start;margin:-28px 12px -55px 0;clip-path:inset(0 0 20% 0)}
.app-result-badge{display:flex;align-items:center;gap:13px}.app-result-badge>span{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#20c46a;color:#fff;font-size:30px;font-weight:900}
.app-result-card.bad .app-result-badge>span{background:#ff9e2d}
.app-result-badge div{display:grid}.app-result-badge b{font-size:26px;color:#12652f;line-height:1}.app-result-card.bad .app-result-badge b{color:#99520c}.app-result-badge strong{font-size:14px;color:#1a8a43;margin-top:6px}
.app-result-answer{grid-column:1;border-radius:14px;background:#edfff3;border:1px solid #d0efda;padding:13px 16px}
.app-result-answer small,.app-result-explain b,.app-result-formula b{display:block;color:#176239;font-size:12px;font-weight:800;margin-bottom:4px}
.app-result-answer h2{font-size:20px!important;margin:0 0 3px!important;color:#12284d}.app-result-answer .translation{font-size:14px;margin:0}.wrong-answer{margin:6px 0 0;color:#a74444;font-size:13px}
.app-result-explain,.app-result-formula{grid-column:1;display:flex;gap:12px;border-radius:14px;padding:13px 16px}
.app-result-explain{background:#eef7ff}.app-result-formula{background:#f4f9ff}
.app-result-explain>span,.app-result-formula>span{font-size:28px}.app-result-explain p,.app-result-formula p{margin:2px 0 0;font-size:13px;color:#405574;line-height:1.35}
.app-result-explain b,.app-result-formula b{color:#0862f3}
.app-result-formula strong{display:inline-block;background:#d9ebff;color:#0862f3;padding:7px 12px;border-radius:9px;font-size:17px}
.app-result-next{grid-column:1;width:100%;margin-top:0!important;align-self:end}
.app-result-card::after{content:"Сегодня: ещё один шаг вперёд";grid-column:2;grid-row:2/5;display:grid;place-items:end center;padding:140px 18px 18px;text-align:center;background:url('/assets/calendar-256.webp') center 10%/170px auto no-repeat,#f4faff;border-radius:16px;color:#58708f;font-size:13px;border:1px solid #e0edf9}

@media(max-width:720px){
 .app-question-progress{margin-bottom:14px}.app-question-progress i{height:7px}
 .app-question-copy h2{font-size:23px!important}.app-question-copy .translation{font-size:14px}
 .app-question-card .answer{grid-template-columns:22px minmax(0,1fr);font-size:15px;padding:12px!important}.app-question-card .answer kbd{display:none}
 .app-question-tip{position:static;width:100%;min-height:0;margin-top:13px;padding:11px 13px;border-radius:13px}.app-question-tip>span{font-size:24px}.app-question-tip p{font-size:12px}
 body.authenticated .learning #quiz .learning-card.app-question-card,body.authenticated #quiz .learning-card.app-question-card{padding-bottom:92px!important}
 .app-result-card{display:block!important;padding:12px!important}
 .app-result-top{min-height:78px;padding:10px 12px}.app-result-top img{width:92px;margin:-22px 0 -38px}
 .app-result-badge>span{width:42px;height:42px;font-size:24px}.app-result-badge b{font-size:22px}.app-result-badge strong{font-size:12px}
 .app-result-answer,.app-result-explain,.app-result-formula{margin-top:8px;padding:11px 12px}.app-result-card::after{display:none}
 .app-result-next{display:flex!important;width:100%;margin-top:9px!important}
}


/* App fidelity pass: approved desktop + mobile mockups */
:root{--app-blue:#0866ff;--app-navy:#071942;--app-text:#152b52;--app-muted:#61718d;--app-line:#dce9f6;--app-soft:#eff8ff;--app-shadow:0 12px 32px rgba(38,93,154,.10)}

/* Desktop shell follows the approved mockup: visible navigation rail, compact top bar, content fitted to viewport. */
@media(min-width:721px){
 body.authenticated{padding-left:188px!important;background:#f5fbff!important}
 body.authenticated .sidebar{width:176px!important;overflow:hidden!important;padding:10px 10px 12px!important;background:#fff!important;border-right:1px solid #d9e7f5!important;box-shadow:6px 0 22px rgba(41,91,145,.05)!important}
 body.authenticated .sidebar:hover,body.authenticated .sidebar:focus-within{width:176px!important}
 body.authenticated .sidebar-brand{height:52px!important;padding:0 5px!important;gap:8px!important}
 body.authenticated .sidebar-brand img{width:31px!important;height:31px!important;object-fit:contain!important;clip-path:none!important}
 body.authenticated .sidebar-brand b{opacity:1!important;font-size:13px!important;font-weight:900!important;color:var(--app-navy)}
 body.authenticated .sidebar a{height:42px!important;padding:7px 9px!important;gap:9px!important;border-radius:10px!important;color:#173967!important}
 body.authenticated .sidebar a>span{font-size:18px!important;min-width:22px!important}
 body.authenticated .sidebar a b{opacity:1!important;font-size:11px!important;font-weight:600!important;white-space:normal!important;line-height:1.08}
 body.authenticated .sidebar a.active{background:#dcedff!important;color:#0866ff!important}
 body.authenticated header{height:48px!important;min-height:48px!important;flex-basis:48px!important;padding:0 18px!important}
 body.authenticated>main{height:calc(100dvh - 48px)!important;width:100%!important;max-width:1400px!important;padding:10px 14px!important;overflow:hidden!important}
 .app-logo img{width:28px!important;height:28px!important;object-fit:contain!important;clip-path:none!important}
 .app-logo b{font-size:12px!important}
}

/* Dashboard */
.app-screen{height:100%;min-height:0;color:var(--app-navy)}
.app-home-screen{display:grid;grid-template-rows:minmax(170px,.95fr) auto minmax(0,1fr);gap:10px}
.app-hero-card{position:relative;min-height:0;border:1px solid var(--app-line);border-radius:18px;background:linear-gradient(105deg,#eef8ff 0%,#f8fcff 54%,#e8f5ff 100%);box-shadow:var(--app-shadow);overflow:hidden;padding:18px 22px}
.app-hero-copy{position:relative;z-index:2;max-width:52%}.app-hero-copy h1{font-size:clamp(28px,3.2vw,44px);line-height:1;margin:0 0 4px;letter-spacing:-.04em}.app-hero-copy p{font-size:17px;line-height:1.28;margin:0 0 12px;color:#294a78}.app-big-cta{margin:0!important;min-width:250px;text-align:center;background:var(--app-blue)!important}
.app-hero-art{position:absolute;right:3%;top:-24%;width:39%;height:145%;display:grid;place-items:center}.app-hero-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(25,87,152,.12))}
.app-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.app-kpi{background:#fff;border:1px solid var(--app-line);border-radius:13px;min-height:58px;display:flex;align-items:center;gap:12px;padding:8px 16px;box-shadow:0 6px 18px rgba(41,91,145,.05)}.kpi-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:19px}.kpi-icon.good{background:#dcf7e8;color:#16b75d}.kpi-icon.fire{background:#fff0d9}.kpi-icon.star{background:#fff4c7;color:#ffad00}.app-kpi div{display:grid}.app-kpi b{font-size:19px;color:#0866ff;line-height:1}.app-kpi small{font-size:10px;color:#6c7890}
.app-home-content{min-height:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.75fr);gap:10px}
.app-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
.app-module{background:#fff;border:1px solid var(--app-line);border-radius:14px;display:grid;grid-template-columns:46px 1fr;align-items:center;gap:10px;padding:10px 12px;color:var(--app-navy);text-decoration:none;box-shadow:0 5px 18px rgba(44,94,151,.04)}.app-module:hover{border-color:#84baff;box-shadow:0 10px 24px rgba(44,94,151,.10)}.app-module>span{width:42px;height:42px;background:#e4f2ff;border-radius:12px;color:#0866ff;display:grid;place-items:center;font-size:27px;font-weight:900}.app-module div{display:grid;gap:2px}.app-module b{font-size:14px;line-height:1.1}.app-module small{font-size:10px;line-height:1.2;color:#62728e}
.app-home-aside{display:grid;grid-template-rows:1fr 1fr;gap:8px;min-height:0}.app-goal-card,.app-tip-card{background:#fff;border:1px solid var(--app-line);border-radius:14px;box-shadow:0 5px 18px rgba(44,94,151,.04);padding:10px 13px;min-height:0;overflow:hidden}.app-goal-card h3{font-size:13px;margin:0 0 5px}.app-goal-meter{display:flex;align-items:center;gap:12px}.app-goal-meter>i{width:68px;height:68px;border-radius:50%;background:conic-gradient(var(--app-blue) calc(var(--p)*1%),#e5eef7 0);display:grid;place-items:center;font-style:normal}.app-goal-meter>i:before{content:"";position:absolute;width:48px;height:48px;border-radius:50%;background:#fff}.app-goal-meter>i span{position:relative;z-index:1;font-size:10px;font-weight:800;color:#0866ff}.app-goal-meter p{display:grid;margin:0}.app-goal-meter p b{font-size:18px;color:#0866ff}.app-goal-meter p small{font-size:10px;color:#68758d}.app-tip-card{display:grid;grid-template-columns:34px 1fr 20px;align-items:center;gap:7px}.app-tip-card>span{font-size:28px}.app-tip-card div{display:grid;min-width:0}.app-tip-card small{font-size:9px;color:#68758d}.app-tip-card b{font-size:12px;color:#0866ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-tip-card p{font-size:9px;line-height:1.2;margin:2px 0;color:#62728e}.app-tip-card>a{font-size:20px;color:#0866ff;text-decoration:none}

/* Training setup + active question */
body.authenticated .workspace{max-width:none!important;width:100%!important;margin:0!important}
body.authenticated .workspace>.section-head{height:44px;min-height:44px;margin:0 0 7px!important;display:flex!important;align-items:center!important}
body.authenticated .workspace>.section-head .eyebrow{display:none}
body.authenticated .workspace>.section-head h1{font-size:22px!important;margin:0!important}
body.authenticated .workspace:has(#setup) #setup{width:min(620px,100%);margin:auto!important;border:1px solid var(--app-line)!important;border-radius:16px!important}
body.authenticated #quiz{height:calc(100% - 51px);min-height:0}
body.authenticated .app-question-card{height:100%!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:7px 14px;padding:15px!important;overflow:hidden!important;border:1px solid var(--app-line)!important;border-radius:16px!important}
body.authenticated .app-question-card::after{content:none!important}
.app-question-card .app-quiz-meta,.app-question-card .app-question-progress,.app-question-card .app-question-copy,.app-question-card .answers{grid-column:1}.app-question-card .app-question-tip{grid-column:2;grid-row:1/5;position:relative!important;right:auto!important;top:auto!important;width:100%!important;min-height:0!important;height:100%;border:1px solid #dcecfb;background:linear-gradient(#f0f9ff,#e6f5ff);border-radius:14px;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:20px 12px 10px!important;text-align:center}.app-question-tip:after{content:"";position:absolute;left:10%;right:10%;bottom:8%;height:62%;background:url('/assets/calendar-256.webp') center bottom/contain no-repeat}.app-question-tip p{position:relative;z-index:2}.app-question-card .app-quiz-meta{display:flex;align-items:center}.app-question-card .app-question-progress{display:flex!important;margin:0 0 4px}.app-question-card .app-question-copy{margin:0!important;padding:7px 2px}.app-question-copy h2{font-size:clamp(22px,2.6vw,34px)!important;margin:0 0 4px!important}.app-question-copy .translation{font-size:14px!important;margin:0}.app-question-card .answers{display:grid!important;gap:7px!important;margin:0!important;align-content:start}.app-question-card .answer{min-height:48px!important;padding:10px 13px!important}
.app-question-card:after{display:none!important}

/* Result */
body.authenticated .app-result-card{height:100%!important;max-height:none!important;overflow:hidden!important;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr)!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important}
.app-result-card .app-result-top{min-height:74px}.app-result-top img{content:url('/assets/calendar-128.webp');width:98px!important;margin:-18px 10px -35px 0!important}.app-result-badge>span{width:42px!important;height:42px!important;font-size:24px!important}.app-result-badge b{font-size:22px!important}.app-result-card::after{background-image:url('/assets/calendar-256.webp')!important;background-size:155px auto!important}

/* Progress */
.app-progress-screen{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:8px}.app-page-title h1{font-size:24px!important;margin:0!important}.app-rank-card{display:grid;grid-template-columns:76px 1fr auto;gap:13px;align-items:center;background:#fff;border:1px solid var(--app-line);border-radius:15px;padding:10px 14px}.app-medal{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff7b6 0 34%,#ffc93b 35% 70%,#ffab00 71%);color:#fff;font-size:36px;border:5px solid #ffe072;box-shadow:0 6px 15px #f1ad0033}.app-rank-main{display:grid;gap:3px}.app-rank-main>span{font-size:12px;font-weight:800}.app-rank-main>strong{font-size:22px;color:#f0a400}.app-rank-main>i{height:10px;background:#e7eef6;border-radius:999px;overflow:hidden}.app-rank-main>i b{display:block;height:100%;background:#168bff;border-radius:999px}.app-rank-main>small{font-size:9px;color:#69758b}.app-rank-level{align-self:start;background:#e6f3ff;color:#0866ff;border-radius:999px;padding:4px 9px;font-size:10px}.app-progress-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.app-progress-kpis>div{background:#fff;border:1px solid var(--app-line);border-radius:12px;padding:7px 8px;display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:6px}.app-progress-kpis span{grid-row:1/3;font-size:24px}.app-progress-kpis b{font-size:15px;color:#0866ff}.app-progress-kpis small{font-size:9px;color:#69758b}.app-progress-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.65fr);gap:8px;min-height:0}.app-progress-card,.app-progress-sidecard{background:#fff;border:1px solid var(--app-line);border-radius:14px;padding:10px 12px;min-height:0;overflow:auto}.app-progress-card h2,.app-progress-sidecard h2{font-size:14px;margin:0 0 8px}.app-skill-row{display:grid;grid-template-columns:125px minmax(100px,1fr) 38px;gap:7px;align-items:center;padding:4px 0}.app-skill-row>span{font-size:10px}.app-skill-row i{height:9px;background:#e6edf5;border-radius:999px;overflow:hidden}.app-skill-row i b{display:block;height:100%;background:linear-gradient(90deg,#0866ff,#22a8ff);border-radius:999px}.app-skill-row em{font-style:normal;font-size:10px;text-align:right}.app-week-bars{height:72px;display:flex;align-items:end;gap:9px;padding:4px 7px;border-bottom:1px solid #d9e5f1}.app-week-bars i{flex:1;height:var(--h);min-height:7px;border-radius:4px 4px 0 0;background:linear-gradient(#9ed3ff,#198dff)}.app-progress-sidecard>small{display:block;font-size:8px;word-spacing:10px;color:#718099;margin:2px 4px 8px}.app-next-goal{display:flex;gap:6px;background:#eef8ff;border-radius:10px;padding:7px}.app-next-goal>span{font-size:24px}.app-next-goal p{margin:0;font-size:9px;line-height:1.25}.app-progress-sidecard>.btn{width:100%;margin:7px 0 0!important;padding:8px!important;font-size:11px!important}

/* Login/OTP optimized logo */
.login-brand{display:flex;align-items:center;gap:8px}.login-brand img{width:38px;height:38px;object-fit:contain}

/* Mobile: closer to the approved phone mockups, with clear vertical hierarchy and fixed bottom navigation. */
@media(max-width:720px){
 body.authenticated>main{padding:9px 10px 12px!important}
 .app-home-screen{display:block!important}.app-home-screen>*{margin-bottom:8px}
 .app-hero-card{min-height:190px;padding:15px!important}.app-hero-copy{max-width:62%}.app-hero-copy h1{font-size:27px!important;margin-top:10px}.app-hero-copy p{font-size:14px!important;line-height:1.25}.app-big-cta{min-width:0;width:100%;font-size:12px!important;padding:10px!important}.app-hero-art{width:49%;height:115%;right:-5%;top:-7%}
 .app-kpi-grid{gap:5px}.app-kpi{display:grid;justify-items:center;text-align:center;gap:2px;padding:7px 2px;min-height:70px}.kpi-icon{width:28px;height:28px;font-size:16px}.app-kpi b{font-size:15px}.app-kpi small{font-size:8px}
 .app-home-content{display:block}.app-module-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:6px}.app-module{display:block;padding:10px!important}.app-module>span{width:39px;height:39px;font-size:24px;margin-bottom:5px}.app-module b{font-size:12px}.app-module small{font-size:9px}
 .app-home-aside{grid-template-columns:1fr 1fr;grid-template-rows:auto;margin-top:6px}.app-goal-card,.app-tip-card{padding:9px!important}.app-goal-card h3{font-size:11px}.app-goal-meter>i{width:50px;height:50px}.app-goal-meter>i:before{width:35px;height:35px}.app-goal-meter p b{font-size:14px}.app-tip-card{grid-template-columns:24px 1fr}.app-tip-card>a{display:none}.app-tip-card>span{font-size:22px}.app-tip-card b{font-size:10px}.app-tip-card p{display:none}
 body.authenticated #quiz{height:auto!important}.app-question-card{display:block!important;height:auto!important;min-height:calc(100dvh - 132px)!important;padding:12px 12px 110px!important}.app-question-card .app-question-tip{position:absolute!important;left:12px;right:12px;bottom:58px;height:75px!important;width:auto!important;padding:10px!important;text-align:left!important;justify-content:flex-start!important}.app-question-tip:after{width:82px;left:auto;right:4px;bottom:0;height:90%;background-size:contain}.app-question-tip p{font-size:11px!important}.app-question-copy{min-height:72px}.app-question-copy h2{font-size:21px!important}.app-question-card .answer{min-height:47px!important}
 .app-result-card{display:block!important;height:auto!important;min-height:calc(100dvh - 132px)!important;overflow:visible!important}.app-result-card::after{display:none!important}.app-result-answer,.app-result-explain,.app-result-formula{margin-top:7px}.app-result-next{margin-top:7px!important}
 .app-progress-screen{display:block}.app-progress-screen>*{margin-bottom:7px}.app-rank-card{grid-template-columns:60px 1fr auto;padding:9px}.app-medal{width:55px;height:55px;font-size:29px}.app-rank-main>strong{font-size:18px}.app-progress-kpis{grid-template-columns:repeat(4,1fr);gap:4px}.app-progress-kpis>div{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;text-align:center;justify-items:center;padding:5px 2px}.app-progress-kpis span{grid-row:auto;font-size:20px}.app-progress-kpis b{font-size:12px}.app-progress-kpis small{font-size:7px}.app-progress-columns{display:block}.app-progress-card,.app-progress-sidecard{margin-bottom:7px;overflow:visible}.app-skill-row{grid-template-columns:105px 1fr 34px}
}

/* Landing image sizes: use WebP, never the old 1.1 MB PNG. */
.et-brand-icon img{content:url('/assets/calendar-128.webp')!important}
.et-mascot img{content:url('/assets/calendar-512.webp')!important}


/* App fidelity pass 2: match supplied current-vs-mock screenshots */
@media(min-width:721px){
  body.authenticated{padding-left:166px!important}
  body.authenticated .sidebar{width:154px!important;padding:8px!important}
  body.authenticated .sidebar:hover,body.authenticated .sidebar:focus-within{width:154px!important}
  body.authenticated .sidebar-brand{height:44px!important;margin-bottom:8px!important}
  body.authenticated .sidebar-brand img{width:28px!important;height:28px!important}
  body.authenticated .sidebar-brand b{font-size:12px!important}
  body.authenticated .sidebar-main{display:grid;gap:2px}
  body.authenticated .sidebar a{height:38px!important;padding:6px 8px!important}
  body.authenticated .sidebar a b{font-size:10.5px!important}
  .sidebar-bottom{margin-top:auto;border-top:1px solid #dce8f4;padding-top:8px}
  .sidebar-tools summary{list-style:none;display:flex;align-items:center;gap:8px;height:38px;padding:6px 8px;border-radius:10px;cursor:pointer;color:#173967}
  .sidebar-tools summary::-webkit-details-marker{display:none}.sidebar-tools summary span{font-size:17px}.sidebar-tools summary b{font-size:10.5px}
  .sidebar-tools[open] summary{background:#eef7ff;color:#0866ff}.sidebar-tools>div{display:grid;gap:2px;padding:5px 5px 0 31px}.sidebar-tools>div a{height:auto!important;min-height:26px;padding:4px 5px!important;font-size:9.5px!important}
  body.authenticated header.app-topbar{height:48px!important;padding:0 14px 0 18px!important}
  body.authenticated>main{height:calc(100dvh - 48px)!important;max-width:1280px!important;padding:10px 12px 12px!important;margin:0 auto!important}
}
.app-topbar{position:sticky;top:0;z-index:25}
.app-header-metrics{display:flex;align-items:center;gap:18px;margin-left:auto;margin-right:14px;color:#23456f;font-size:11px}.app-header-metrics span{white-space:nowrap}.app-header-metrics b{font-weight:700}
.app-account{position:relative}.app-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#1680ff;color:#fff;font-weight:800;font-size:12px;cursor:default}.app-account-popover{position:absolute;right:0;top:36px;width:210px;background:#fff;border:1px solid #dce8f4;border-radius:12px;box-shadow:0 16px 40px rgba(34,77,126,.16);padding:10px;display:none;z-index:80}.app-account:hover .app-account-popover,.app-account:focus-within .app-account-popover{display:grid;gap:5px}.app-account-popover small{color:#63718b;overflow:hidden;text-overflow:ellipsis}.app-account-popover span{font-size:11px}.app-account-popover .text-btn{text-align:left;padding:0;color:#0866ff}
.app-logo{margin-right:auto}

/* Dashboard proportions from the supplied desktop mockup. */
@media(min-width:721px){
 .app-home-screen{height:auto!important;display:grid!important;grid-template-rows:178px 58px 238px!important;gap:8px!important;align-content:start}
 .app-hero-card{height:178px!important;padding:15px 20px!important;border-radius:15px!important}
 .app-hero-copy{max-width:54%!important;padding-top:7px}.app-hero-copy h1{font-size:34px!important;margin:0 0 2px!important}.app-hero-copy p{font-size:15px!important;line-height:1.22!important;margin-bottom:10px!important}
 .app-big-cta{min-width:220px!important;min-height:42px!important;padding:9px 16px!important;font-size:12px!important;border-radius:10px!important}
 .app-hero-art{width:285px!important;height:210px!important;right:4%!important;top:-18px!important}.app-hero-art img{object-fit:contain!important}
 .app-kpi{height:58px!important;min-height:58px!important;padding:6px 12px!important}.kpi-icon{width:30px!important;height:30px!important;font-size:17px!important}.app-kpi b{font-size:17px!important}.app-kpi small{font-size:9px!important}
 .app-home-content{height:238px!important;grid-template-columns:minmax(0,1.45fr) minmax(230px,.62fr)!important;gap:8px!important}
 .app-module-grid{gap:7px!important}.app-module{padding:8px 10px!important;grid-template-columns:42px 1fr!important;border-radius:12px!important}.app-module>span{width:38px!important;height:38px!important;font-size:24px!important}.app-module b{font-size:12px!important}.app-module small{font-size:9px!important}
 .app-home-aside{gap:7px!important}.app-goal-card,.app-tip-card{padding:8px 10px!important;border-radius:12px!important}.app-goal-card h3{font-size:11px!important}.app-goal-meter>i{width:58px!important;height:58px!important}.app-goal-meter>i:before{width:42px!important;height:42px!important}.app-goal-meter p b{font-size:15px!important}.app-tip-card{grid-template-columns:28px 1fr 18px!important}.app-tip-card>span{font-size:24px!important}.app-tip-card small{font-size:8px!important}.app-tip-card b{font-size:10px!important}.app-tip-card p{font-size:8px!important}
}

/* Training start screen */
.app-training-workspace{height:100%!important;display:flex!important;flex-direction:column!important}
.app-training-workspace>.section-head{flex:0 0 42px!important}
.app-training-setup{flex:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.75fr);gap:10px;align-items:stretch;min-height:0}
.app-training-form,.app-training-preview{background:#fff;border:1px solid var(--app-line);border-radius:16px;box-shadow:var(--app-shadow)}
.app-training-form{padding:22px;align-self:center}.app-training-form h2{font-size:27px;margin:5px 0 4px}.app-training-form>p{margin:0 0 13px;color:#62728e;font-size:13px}.app-training-form label{font-size:11px;margin:9px 0 5px}.app-training-form select{height:43px;padding:8px 11px;border-radius:9px}.app-training-form .btn{width:100%;min-height:43px;margin-top:12px!important;background:#0866ff!important}
.app-training-preview{position:relative;overflow:hidden;background:linear-gradient(160deg,#eef8ff,#e4f3ff);display:flex;align-items:flex-start;padding:22px}.app-training-preview-copy{position:relative;z-index:2;width:58%}.app-training-preview-copy b{font-size:18px}.app-training-preview-copy p{font-size:12px;line-height:1.4;color:#526a8d}.app-training-preview img{position:absolute;width:230px;right:-20px;bottom:-16px;filter:drop-shadow(0 14px 20px rgba(30,82,141,.12))}

/* Active training screen: stable, compact and close to mock. */
.app-training-workspace.learning>.section-head{flex:0 0 42px!important}
.app-training-workspace.learning>#quiz{flex:1!important;height:auto!important;min-height:0!important}
@media(min-width:721px){
 body.authenticated .app-question-card{height:100%!important;grid-template-columns:minmax(0,1.52fr) 265px!important;grid-template-rows:auto auto auto 1fr!important;padding:13px!important;gap:6px 12px!important}
 .app-question-card .app-quiz-meta{height:26px}.app-question-card .app-question-progress{height:8px;margin-bottom:4px!important}.app-question-card .app-question-copy{padding:6px 1px!important}.app-question-copy h2{font-size:29px!important}.app-question-copy .translation{font-size:13px!important}
 .app-question-card .answers{gap:6px!important}.app-question-card .answer{min-height:43px!important;padding:8px 11px!important;font-size:14px!important}
 .app-question-card .app-question-tip{padding:16px 10px!important}.app-question-tip:after{height:68%!important;bottom:5%!important}.app-question-tip p{font-size:12px!important}
 .app-result-card{padding:12px!important;gap:7px 10px!important}.app-result-top{min-height:62px!important;padding:8px 13px!important}.app-result-badge>span{width:38px!important;height:38px!important}.app-result-badge b{font-size:20px!important}.app-result-answer,.app-result-explain,.app-result-formula{padding:10px 12px!important}.app-result-answer h2{font-size:18px!important}.app-result-card::after{background-size:135px auto!important;padding-top:125px!important}
}

/* Progress proportions */
@media(min-width:721px){
 .app-progress-screen{height:auto!important;grid-template-rows:34px 82px 58px 270px!important;align-content:start!important}
 .app-page-title h1{font-size:21px!important}.app-rank-card{padding:8px 11px!important}.app-medal{width:56px!important;height:56px!important;font-size:29px!important}.app-rank-main>strong{font-size:18px!important}.app-progress-kpis>div{min-height:58px!important}.app-progress-columns{height:270px!important}
}

/* Mobile mirrors the dedicated phone mockup instead of squeezing desktop. */
@media(max-width:720px){
 .app-header-metrics,.app-account{display:none!important}
 .app-home-screen{display:block!important}
 .app-hero-card{min-height:180px!important}.app-hero-copy{max-width:63%!important}.app-hero-copy h1{font-size:25px!important}.app-hero-art{width:175px!important;height:175px!important;right:-10px!important;top:12px!important}
 .app-kpi-grid{grid-template-columns:1fr 1fr!important}.app-kpi-grid .app-kpi:nth-child(3){grid-column:1/-1}
 .app-kpi{min-height:58px!important}.app-home-content{display:block!important}.app-module-grid{margin-top:7px}.app-home-aside{grid-template-columns:1fr 1fr!important}
 .app-training-workspace>.section-head{height:auto!important;min-height:38px!important}.app-training-setup{display:block!important}.app-training-form{padding:16px!important}.app-training-preview{min-height:170px;margin-top:8px;padding:15px!important}.app-training-preview img{width:165px!important;right:-10px!important}.app-training-preview-copy{width:60%!important}
 .app-training-workspace.learning>#quiz{min-height:0!important}
}

/* The optimized images have transparent padding; never crop them as if they were the old PNG. */
.sidebar-brand img,.app-logo img,.login-brand img,.app-welcome-mascot,.app-hero-art img,.et-brand-icon img,.et-mascot img{clip-path:none!important}


/* App polish pass: menu + result layout fixes */
@media(min-width:721px){
  .mobile-score{display:none!important}
  .sidebar{display:flex!important;flex-direction:column!important}
  .sidebar-main{flex:1!important}
  .sidebar-bottom{margin-top:auto!important}
  .sidebar-bottom>a,.sidebar-tools summary{min-height:36px!important}
  .sidebar-bottom>a b,.sidebar-tools summary b{opacity:1!important}
  .sidebar-tools>div a{color:#3b5276!important;text-decoration:none!important}
  .sidebar-tools>div a:hover{color:#0866ff!important}
}
.app-result-card{grid-template-rows:auto auto auto auto auto!important}
.app-result-top{grid-column:1!important}
.app-result-card::after{grid-column:2!important;grid-row:1/5!important}
.app-result-next{grid-row:5!important}


/* App polish pass 3: closer desktop navigation hierarchy. */
@media(min-width:721px){
  .app-topbar .app-logo{display:none!important}
  .app-topbar{justify-content:flex-end!important}
  .sidebar-brand{border-bottom:1px solid #edf2f7;padding-bottom:8px!important;margin-bottom:8px!important}
  .sidebar-main>a b{font-weight:650!important}
  .sidebar-bottom>a{margin-top:3px}
  .sidebar-tools summary{margin-top:2px}
}


/* App polish pass 4: shell switching, profile popover, rounded typography, dashboard fidelity */
:root{
  --app-font:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS","Segoe UI",system-ui,sans-serif;
}

/* Rounded, heavier product typography, closer to approved mockup. */
body.authenticated,
body.authenticated button,
body.authenticated input,
body.authenticated select,
body.authenticated textarea{font-family:var(--app-font)!important}
body.authenticated h1,
body.authenticated h2,
body.authenticated h3,
body.authenticated .sidebar b,
body.authenticated .app-kpi b,
body.authenticated .app-module b,
body.authenticated .app-rank-main>strong,
body.authenticated .app-result-badge b,
body.authenticated .app-question-copy h2{font-family:var(--app-font)!important;font-weight:900!important;letter-spacing:-.035em}

@media(min-width:721px){
  body.authenticated>main{
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:10px 16px 12px!important;
  }
  .app-home-screen{max-width:1320px;margin:0 auto}
  .app-home-screen{
    grid-template-rows:156px 56px 222px!important;
  }
  .app-hero-card{height:156px!important;padding:14px 18px!important}
  .app-hero-copy{padding-top:4px!important}
  .app-hero-copy h1{font-size:38px!important}
  .app-hero-copy p{font-size:16px!important}
  .app-big-cta{
    min-width:250px!important;
    min-height:42px!important;
    border-radius:9px!important;
    box-shadow:0 7px 18px rgba(8,102,255,.16);
  }
  .app-hero-art{width:310px!important;height:195px!important;right:4%!important;top:-22px!important}
  .app-kpi{border-radius:11px!important}
  .app-module,.app-goal-card,.app-tip-card{border-radius:11px!important}
}

/* Profile popover stays open after click, so logout and plan are reachable. */
.app-avatar{
  border:0;
  padding:0;
  cursor:pointer;
  font-family:var(--app-font)!important;
  box-shadow:none;
}
.app-avatar:focus-visible{outline:3px solid rgba(8,102,255,.18);outline-offset:3px}
.app-account-popover{
  top:38px!important;
  right:0!important;
  width:235px!important;
  padding:13px!important;
  border-radius:14px!important;
  pointer-events:auto!important;
}
.app-account:hover .app-account-popover{display:none}
.app-account.open .app-account-popover,
.app-account:focus-within .app-account-popover{display:grid!important}
.app-account-popover small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-account-popover>span{font-size:12px!important}
.app-account-popover .text-btn{
  display:inline-flex;
  width:max-content;
  margin-top:2px;
  font-weight:800;
}

/* Sidebar: cleaner student navigation, visually closer to design. */
@media(min-width:721px){
  body.authenticated{padding-left:160px!important}
  body.authenticated .sidebar{
    width:150px!important;
    padding:9px 8px 11px!important;
    border-right:1px solid #dce8f4!important;
  }
  body.authenticated .sidebar:hover,
  body.authenticated .sidebar:focus-within{width:150px!important}
  .sidebar-brand{
    height:44px!important;
    border-bottom:1px solid #edf3f8;
    text-decoration:none!important;
  }
  .sidebar-brand b{font-size:12px!important}
  .sidebar-main{gap:3px!important}
  .sidebar a{
    min-height:39px!important;
    height:auto!important;
    padding:7px 8px!important;
    border-radius:9px!important;
  }
  .sidebar a>span{font-size:17px!important}
  .sidebar a b{font-size:10.5px!important;line-height:1.1!important}
  .sidebar a.active{
    background:#dfeeff!important;
    color:#0866ff!important;
  }
  .sidebar-bottom{
    padding-top:8px!important;
    border-top:1px solid #e6eef7!important;
  }
}

/* Landing app CTA shell swap will full-load; keep landing clean if user is authenticated. */
body.guest .app-topbar,
body.guest .sidebar,
body.guest .mobile-bottom-nav{display:none!important}

/* Slightly denser training/result composition. */
@media(min-width:721px){
  .app-training-workspace{max-width:1320px!important;margin:0 auto!important}
  .app-training-workspace>.section-head h1{font-size:26px!important}
  .app-training-setup{max-width:760px;margin:auto;width:100%}
  .app-training-form h2{font-size:30px!important}
  body.authenticated .app-question-card{
    max-width:1320px;
    margin:0 auto!important;
  }
  .app-result-card{
    max-width:1320px;
    margin:0 auto!important;
  }
}


/* Typography system: Nunito + Nunito Sans */
:root{
  --font-display:"Nunito",ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",sans-serif;
  --font-ui:"Nunito Sans","Segoe UI",Arial,sans-serif;
}

/* Body copy, menus, translations and secondary text */
body,
button,
input,
select,
textarea{
  font-family:var(--font-ui)!important;
}
.sidebar a b,
.sidebar-tools summary b,
.sidebar-tools>div a,
.et-top-nav a,
.et-login-link,
.et-intro,
.et-reassurance,
.et-step p,
.et-capability-grid p,
.app-kpi small,
.app-module small,
.app-tip-card p,
.app-question-copy .translation,
.translation,
.app-result-explain p,
.app-result-formula p,
.app-account-popover small{
  font-family:var(--font-ui)!important;
  font-weight:500!important;
}

/* Main product headlines */
.et-hero h1,
.et-steps h2,
.et-capabilities h2,
.et-pricing-preview h2,
.app-hero-copy h1,
.app-page-title h1,
.workspace .section-head h1,
.app-training-form h2,
.login-card h1{
  font-family:var(--font-display)!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
}

/* Card names, buttons and important figures */
.et-brand,
.et-button,
.et-feature h3,
.et-step h3,
.et-capability-grid b,
.app-big-cta,
.app-kpi b,
.app-module b,
.app-goal-card h3,
.app-goal-meter p b,
.app-tip-card b,
.app-rank-main>strong,
.app-progress-kpis b,
.app-result-badge b,
.app-result-formula strong,
.app-question-card .answer,
.btn,
.sidebar-brand b,
.app-logo b{
  font-family:var(--font-display)!important;
  font-weight:700!important;
}

/* English exercise content should be bold, but less rounded than titles. */
.app-question-copy h2,
.app-result-answer h2,
.quiz-card h2,
.answer,
.et-practice h2,
.et-answer{
  font-family:var(--font-ui)!important;
  font-weight:700!important;
  letter-spacing:-.015em!important;
}

/* Emphasized numeric values */
.app-kpi b,
.app-progress-kpis b,
.app-rank-main>strong,
.app-goal-meter p b,
.app-result-badge strong,
.stats b{
  font-variant-numeric:tabular-nums;
}

/* The landing uses the same brand typography as the application. */
.et-reference-landing{
  font-family:var(--font-ui)!important;
}
.et-reference-landing .et-brand,
.et-reference-landing h1,
.et-reference-landing h2,
.et-reference-landing h3,
.et-reference-landing .et-button{
  font-family:var(--font-display)!important;
}
