/* Session 72: calm default workspace; existing routes and settings remain intact. */
.ts72-shell {--ts72-radius:14px;--ts72-gutter:clamp(14px,3vw,44px)}
.ts72-shell [hidden]{display:none!important}
.ts72-shell .ts72-nav-left,.ts72-shell .ts72-primary-nav{display:flex;align-items:center;gap:10px;min-width:0;flex-shrink:0}
.ts72-shell .ts72-brand,.ts72-shell .ts72-nav-btn,.ts72-shell .ts72-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:0;background:transparent;color:var(--text);font:inherit;font-size:.88rem;font-weight:650;white-space:nowrap;border-radius:9px;padding:7px 11px;cursor:pointer;transition:background-color .15s,color .15s}
.ts72-shell .ts72-brand{font-size:1rem;padding-inline:2px 10px;letter-spacing:-.025em;font-weight:800}
.ts72-shell .ts72-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:var(--accent);background:var(--accent-soft)}
.ts72-shell :is(.ts72-brand,.ts72-nav-btn,.ts72-icon-button,.ts72-start) svg{width:19px;height:19px;flex:none}
.ts72-shell :is(.ts72-nav-btn,.ts72-icon-button):hover{background:var(--accent-soft);color:var(--accent)}
.ts72-shell :is(.ts72-nav-btn,.ts72-brand,.ts72-start,.ts72-menu-link):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ts72-shell .ts72-nav-dot,.ts72-shell .ts72-link-dot,.ts72-shell .ts72-has-notice::after{width:8px;height:8px;border-radius:50%;background:#dc2626;flex:none;box-shadow:0 0 0 2px var(--surface);pointer-events:none}
.ts72-shell .ts72-nav-dot,.ts72-shell .ts72-has-notice::after{position:absolute;right:4px;top:4px}.ts72-shell .ts72-has-notice::after{content:""}
body.ts72-shell.ts72-clean{--sb-w:0px!important;padding-left:0!important}
body.ts72-shell.ts72-clean :is(#tsSidebar,#tsMenuBtn,#tsSbBackdrop,#tsTip){display:none!important}
body.ts72-shell>.ts23-topbar{min-height:56px!important;height:auto!important;padding:6px var(--ts72-gutter)!important;gap:12px!important;flex-wrap:wrap;align-items:center;z-index:60;flex:0 0 auto}
body.ts72-shell>.ts23-topbar #championBanner,body.ts72-shell>.ts23-topbar #ts28Tournament{display:none!important}
body.ts72-shell>.ts23-topbar .ts-sb-foot{margin:0 0 0 auto;gap:8px;min-width:0;flex:0 1 auto}
body.ts72-shell>.ts23-topbar :is(#ts28Bell,#tsAcctLogin,#tsAcctBtn,#tsThemeBtn){min-height:40px!important;height:auto!important;flex-shrink:0}
body.ts72-shell>.ts23-topbar #tsAcctLogin .ts36-join-text small{display:none!important}
body.ts72-shell>.ts23-topbar #ts46Wallet{min-width:0;max-width:135px}
body.ts72-shell>.ts23-topbar #ts46Wallet .ts46-wallet-shop{display:none}
/* Retain compact navigation, if enabled, with notification dots pinned to each button. */
body.ts72-shell #navTabs .nav-tab{position:relative;overflow:visible}
body.ts72-shell #navTabs #navShopBadge{position:absolute!important;top:7px!important;right:8px!important;left:auto!important;bottom:auto!important;transform:none!important;margin:0!important;box-shadow:0 0 0 2px var(--surface);width:8px;height:8px}
body.ts72-shell #navTabs #navMultiplayer[data-ts69-friend-pending]::after{top:7px;right:8px;transform:none;box-shadow:0 0 0 2px var(--surface)}
body.ts72-shell.ts-rail #navTabs .nav-tab{justify-content:center!important;padding-inline:0!important}
body.ts72-shell.ts-rail #navTabs .nav-tab :is(.nav-tab-label){display:none!important}
body.ts72-shell.ts-rail #navTabs :is(#navShopBadge,#navMultiplayer[data-ts69-friend-pending]::after){right:calc(50% - 16px)!important;top:5px!important}
/* The dialog is a feature directory rather than an always-visible wall of navigation. */
.ts72-menu{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:0;width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;box-shadow:0 22px 70px #0003;overflow:auto;overscroll-behavior:contain}
.ts72-menu[open]{animation:ts72-menu-in .16s ease-out both}.ts72-menu::backdrop{background:rgba(15,23,42,.46);backdrop-filter:blur(2px)}
@keyframes ts72-menu-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.ts72-menu-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 24px 16px;border-bottom:1px solid var(--border);gap:12px}.ts72-menu-head p{margin:0 0 5px;color:var(--accent);font-size:.69rem;letter-spacing:.13em;font-weight:750}.ts72-menu-head h2{margin:0 0 5px;font-size:1.5rem;line-height:1.2}.ts72-menu-head span{color:var(--sub);font-size:.86rem}
.ts72-menu-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 20px;gap:12px}.ts72-menu-group{min-width:0}.ts72-menu-group h3{font-size:.74rem;color:var(--sub);font-weight:700;letter-spacing:.025em;margin:0 8px 8px}.ts72-menu-link{display:flex;align-items:center;text-align:left;gap:8px;justify-content:space-between;min-height:57px;width:100%;padding:9px 8px;border:0;border-radius:9px;background:transparent;color:var(--text);font:inherit;cursor:pointer;transition:background-color .15s}.ts72-menu-link:hover{background:var(--accent-soft)}.ts72-menu-link strong,.ts72-menu-link small{display:block}.ts72-menu-link strong{font-size:.88rem;line-height:1.3}.ts72-menu-link small{font-size:.73rem;color:var(--sub);line-height:1.4;margin-top:3px}.ts72-menu-link svg{width:15px;height:15px;color:var(--sub);flex:none}.ts72-menu-foot{display:flex;flex-wrap:wrap;justify-content:space-between;border-top:1px solid var(--border);gap:4px;padding:9px 18px}
/* Main practice. Avoid overriding the multiplayer countdown/results or labs. */
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout{padding-inline:var(--ts72-gutter)!important;align-items:start!important;}
body.ts72-shell.ts72-clean.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open)).lb-collapsed>.page-layout{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{max-width:1040px!important;width:100%!important;min-width:0;margin-inline:auto!important;margin-top:clamp(14px,5dvh,54px)!important;gap:12px!important}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open)) .page-layout>.container>.header{padding:0!important;gap:8px!important;margin:0 0 5px!important;min-height:40px!important;align-items:center!important}
.ts72-shell .logo-title{font-size:clamp(1.45rem,3vw,2.15rem)!important;font-weight:780!important;letter-spacing:-.045em!important;line-height:1.1!important}
.ts72-shell #logoSubtitle{font-size:.86rem!important;line-height:1.35!important;text-transform:none!important;letter-spacing:0!important;font-weight:400!important;color:var(--sub)}
.ts72-shell #ts28FocusTip{display:none!important}
body.ts72-shell #settingBar{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;gap:8px!important;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;min-width:0}
.ts72-preset-strip{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;flex:0 1 auto}
.ts72-preset-strip #optLabel{color:var(--sub);font-size:.8rem;font-weight:600}
.ts72-preset-strip #presetOpts{display:flex;gap:3px;padding:3px;background:var(--surface);border:1px solid var(--border);border-radius:11px;flex-wrap:wrap}
.ts72-preset-strip #presetOpts .opt-btn{min-height:36px;min-width:49px;border:0;border-radius:8px;padding:7px 12px;font-size:.9rem;font-weight:650;transition:background-color .15s,color .15s}
.ts72-preset-strip #presetOpts .opt-btn.active{color:var(--accent);background:var(--accent-soft);box-shadow:none}
body.ts72-shell #ts20Toolbar{flex:1 1 auto!important;width:auto!important;justify-content:flex-end!important;gap:5px!important;min-width:0}
.ts72-shell #ts20Status{position:absolute;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ts72-shell .ts20-tools{gap:4px!important;justify-content:flex-end;max-width:100%;flex-wrap:wrap}
.ts72-shell .ts20-tools .ts20-btn{border:0!important;box-shadow:none!important;background:transparent!important;min-height:38px;padding:6px 10px!important;gap:5px;color:var(--sub);font-weight:600}
.ts72-shell .ts20-tools .ts20-btn[aria-expanded=true],.ts72-shell .ts20-tools .ts20-btn:hover{background:var(--accent-soft)!important;color:var(--accent)}
.ts72-shell #ts24Options svg{width:13px;height:13px}
.ts72-shell #ts24TestOptions{flex-basis:100%;width:100%;min-width:0}
.ts72-shell #statsBar{justify-content:flex-start!important;gap:8px!important;margin:2px 0!important;max-width:100%!important}
.ts72-shell #statsBar .timer-digital{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--accent);font-size:clamp(1.15rem,3vw,1.65rem)!important;padding:4px 0!important;min-width:0!important}
.ts72-shell #statsBar #wpmCard{background:transparent!important;border:0!important;box-shadow:none!important;min-width:0!important;padding:4px 12px!important;color:var(--sub)}
.ts72-shell .ts26-stage-tools{margin-left:auto}
.ts72-shell #ts26StatsToggle{font-size:.73rem;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--sub)}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open)) #typingContainer{min-height:clamp(155px,28dvh,275px)!important;border:1px solid var(--border)!important;border-radius:var(--ts72-radius)!important;box-shadow:none!important;padding:clamp(16px,3dvh,30px) clamp(16px,3vw,32px)!important;background-color:var(--surface)!important;display:flex;align-items:center}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)))) #wordsDisplay{width:100%;min-width:0;font-size:clamp(1.1rem,2vw,1.75rem);}
.ts72-shell #progressBarWrap{margin:0!important;}
.ts72-shell:not(.mp-racing) #ts24GuideMain.ts24-guide-off{border:0!important;background:transparent!important;padding:0!important;min-height:0!important;box-shadow:none!important}
.ts72-shell #ts24GuideMain.ts24-guide-off .ts24-guide-info{display:none!important}
.ts72-shell #ts24GuideMain.ts24-guide-off .ts24-guide-head{justify-content:center!important;margin:0!important}
.ts72-shell #ts24GuideMain.ts24-guide-off .ts24-guide-toggle{background:transparent!important;border:0!important;color:var(--sub);box-shadow:none!important;font-size:.8rem;min-height:32px}
.ts72-shell #hintRow{gap:10px!important;justify-content:center!important;flex-wrap:wrap!important;margin-block:5px!important}
.ts72-shell #hintRow .hint-item{font-size:.73rem;opacity:.75}
.ts72-shell .ts72-start{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 17px;min-height:44px;color:var(--on-accent,white);background:var(--accent);border:0;border-radius:10px;font:inherit;font-weight:700;font-size:.87rem;cursor:pointer;transition:filter .15s}
.ts72-shell .ts72-start:hover{filter:brightness(1.08)}
.ts72-shell #ts20Restart{border:0!important;box-shadow:none!important;background:transparent!important;min-height:40px;color:var(--sub)}
body.ts72-shell.ts27-main-active #ts72Start,body.ts72-shell.mp-racing #ts72Start,body.ts72-shell.mp-preview #ts72Start,body.ts72-shell.mp-matchmaking #ts72Start{display:none!important}

body.ts72-shell.ts27-main-active #hintRow .hint-item{display:none!important}


/* The compact header's notifications remain reachable through the existing alert flow. */

body.ts72-shell #ts28Footer .ts26-footer-role{display:none!important}
body.ts72-shell #ts28Footer .ts26-footer-row{justify-content:space-between!important;gap:8px!important}
/* Static field labels solve the floating label collision for autofill and small screens. */
.ts72-shell #authModalOverlay{padding:12px!important;align-items:center;overflow-y:auto;box-sizing:border-box}
.ts72-shell #authModalOverlay>.name-modal{width:min(440px,100%)!important;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:clamp(14px,3.5vw,25px)!important;border-radius:18px;overscroll-behavior:contain;}
.ts72-shell #authModalOverlay .name-modal-icon{display:none}
/* setAuthTab uses inline display:block for signup and display:none for login.
   Restore the grid only in the visible state; never unhide the login field. */
.ts72-shell #authModalOverlay .field,
.ts72-shell #authModalOverlay #authConfirmPasswordField:is([style*="display: block"],[style*="display:block"]){
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(45px,auto);align-items:center;gap:5px 0;margin:0 0 12px!important;position:relative;min-width:0;text-align:left;
}
.ts72-shell #authModalOverlay #authConfirmPasswordField:is([style*="display: block"],[style*="display:block"]){display:grid!important}

.ts72-shell #authModalOverlay .field>.floating-label{grid-column:1/-1;grid-row:1;min-width:0;overflow-wrap:anywhere;order:0;position:static!important;transform:none!important;font-size:.81rem!important;line-height:1.3!important;color:var(--sub)!important;font-weight:650;pointer-events:auto;}
.ts72-shell #authModalOverlay .field input{grid-column:1/-1;grid-row:2;min-width:0;width:100%;height:45px!important;font-size:16px!important;line-height:1.3!important;padding:11px 13px!important;box-sizing:border-box;border-radius:9px!important;margin:0!important}
.ts72-shell #authModalOverlay .field input.has-toggle{padding-right:51px!important}
.ts72-shell #authModalOverlay .field>.field-toggle-pwd{
 grid-column:2;grid-row:2;align-self:center;justify-self:end;z-index:1;
 position:static!important;inset:auto!important;width:40px!important;height:40px!important;margin:0 4px 0 0!important;padding:0!important;transform:none!important;box-shadow:none;
}
.ts72-shell #authModalOverlay .field>.field-toggle-pwd:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}

.ts72-shell #authModalOverlay .ts36-auth-benefits{padding:10px 12px;margin:8px 0 14px;font-size:.79rem}
.ts72-shell #authModalOverlay .ts36-auth-benefits span{font-size:.76rem}
.ts72-shell #authModalOverlay #authSubmitBtn{min-height:44px}
@media(max-width:760px){body.ts72-shell>.ts23-topbar{padding:6px 12px!important;gap:6px!important}.ts72-shell .ts72-nav-left,.ts72-shell .ts72-primary-nav{gap:3px}.ts72-shell .ts72-brand{font-size:.93rem;padding-right:4px}.ts72-shell .ts72-nav-btn{padding-inline:8px}.ts72-shell .ts72-menu-body{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.ts72-shell #ts46Wallet{display:none!important}body.ts72-shell>.ts23-topbar .ts-sb-foot{gap:4px}body.ts72-shell>.ts23-topbar #tsThemeBtn{display:none!important}body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{margin-top:18px!important;gap:9px!important}.ts72-shell #logoSubtitle{font-size:.78rem!important}.ts72-shell #settingBar{justify-content:flex-start}.ts72-shell #ts20Toolbar{flex-basis:100%!important;justify-content:flex-start!important}.ts72-shell .ts20-tools{justify-content:flex-start}.ts72-shell #hintRow .hint-item{display:none!important}.ts72-shell #ts28Footer .ts26-footer-row{font-size:.7rem!important}}
@media(max-width:420px){.ts72-shell .ts72-brand>span:last-child{display:none}.ts72-shell .ts72-primary-nav{gap:1px}.ts72-shell .ts72-nav-btn{padding-inline:6px;font-size:.8rem}.ts72-shell .ts72-nav-btn svg{width:17px;height:17px}.ts72-shell #tsAcctLogin{min-width:0!important}.ts72-shell #tsAcctLogin .ts36-join-text{display:none!important}.ts72-shell #tsAcctLogin .ts23-account-short{display:inline!important}.ts72-shell #tsAcctBtn .ts-acct-meta{display:none!important}.ts72-shell .ts72-menu-head{padding:16px}.ts72-shell .ts72-menu-body{grid-template-columns:1fr;gap:8px}.ts72-shell .ts72-menu-link{min-height:48px}.ts72-preset-strip #presetOpts .opt-btn{min-width:42px;padding-inline:9px}.ts72-shell .ts20-tools .ts20-btn{font-size:.77rem;padding-inline:7px!important}.ts72-shell #authModalOverlay .ts36-auth-benefits span{display:none}.ts72-shell #authModalOverlay .ts36-auth-benefits small{display:block}.ts72-shell #authModalOverlay .ts36-auth-benefits strong{font-size:.8rem}}
@media(max-height:560px){body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{margin-top:8px!important;gap:5px!important}.ts72-shell #logoSubtitle{display:none!important}.ts72-shell #authModalOverlay{align-items:flex-start}.ts72-shell #authModalOverlay .ts36-auth-benefits{display:none}.ts72-shell #authModalOverlay>.name-modal{max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.ts72-shell :is(.ts72-menu,.ts72-nav-btn,.ts72-brand,.ts72-menu-link,.ts72-start){animation:none!important;transition:none!important}}

/* A single, prominent Start action stays above the passage, including landscape.
   Allow the workspace itself to scroll when the optional guide or controls expand. */
.ts72-shell #statsBar #ts72Start{margin-left:6px;min-height:42px;flex-shrink:0}
.ts72-shell #statsBar .ts26-stage-tools{margin-left:0}
.ts72-shell #statsBar #wpmCard{display:none!important}
body.ts72-shell.mp-racing #statsBar #wpmCard,body.ts72-shell.mp-preview #statsBar #wpmCard{display:flex!important}
body.ts72-shell #navTabs .ts72-sidebar-icon{width:19px;height:19px;display:block;flex:none}
body.ts72-shell #navTabs .nav-tab-icon{display:grid;place-items:center;flex:none;width:22px;height:22px}
body.ts72-shell #navTabs #navChallengeBadge{position:absolute!important;top:7px!important;right:8px!important;left:auto!important;bottom:auto!important;transform:none!important;margin:0!important;box-shadow:0 0 0 2px var(--surface);width:8px;height:8px}
body.ts72-shell.ts-rail #navTabs #navChallengeBadge{right:calc(50% - 16px)!important;top:5px!important}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;flex:1 1 auto!important;overscroll-behavior-y:contain;scrollbar-width:thin}
body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{padding-bottom:12px!important;flex-shrink:0}
body.ts72-shell.ts27-home #logoSubtitle{letter-spacing:0!important;text-transform:none!important;font-size:.8rem!important}
body.ts72-shell.ts27-home .header #ts20Focus{box-shadow:none!important;animation:none!important;font-size:.79rem!important;min-height:36px!important;border-radius:9px!important}
body.ts72-shell.ts27-home .header #ts20Focus::after{display:none!important}
body.ts72-shell #mp71StrictHint{display:none!important}
@media(max-width:760px){body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{margin-top:8px!important;gap:7px!important}.ts72-shell .ts72-preset-strip #optLabel{font-size:.73rem;flex:none}.ts72-shell .ts72-preset-strip #presetOpts .opt-btn{min-height:40px}.ts72-shell #statsBar #ts72Start{padding:8px 11px;min-height:40px}.ts72-shell #statsBar{flex-wrap:nowrap!important}.ts72-shell #statsBar .ts26-stage-tools{flex-shrink:0}.ts72-shell #statsBar #ts26StatsToggle{font-size:.68rem!important;padding-inline:5px!important;white-space:nowrap}.ts72-shell #hintRow{min-height:38px!important}}
@media(max-height:650px){body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{margin-top:5px!important;gap:6px!important}body.ts72-shell.ts27-home.ts72-clean:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-result-open,.ts23-lab-open:where(:not(.tsnp-open))))>#ts28Footer{display:none!important}}
@media(max-height:470px){body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout{padding-block:0!important}body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.mp-matchmaking,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open))>.page-layout>.container{margin-top:0!important;gap:4px!important}body.ts72-shell.ts27-home:where(:not(.mp-racing,.mp-preview,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open)) #typingContainer{min-height:110px!important;padding-block:8px!important}.ts72-shell #settingBar{gap:4px!important}.ts72-shell .ts72-preset-strip #presetOpts .opt-btn{min-height:30px;padding:4px 8px}.ts72-shell #statsBar #ts72Start{min-height:35px;padding:5px 10px}.ts72-shell #statsBar #ts26StatsToggle{font-size:.68rem!important;padding-inline:5px!important;white-space:nowrap}}

.ts72-shell .ts61-digit-edge path,.ts72-shell .ts61-digit path{transition:d 150ms ease,fill 150ms ease}
@media(prefers-reduced-motion:reduce){.ts72-shell .ts61-digit-edge path,.ts72-shell .ts61-digit path{transition:none!important}}
/* Session 73: one stable typing workspace. The optional guide consumes only
   the space below the passage; its open state never changes passage geometry. */
body.ts73-single{--ts72-gutter:clamp(12px,2.4vw,38px)}
body.ts73-single.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout{padding-block:0!important;align-items:start!important;align-content:start!important;justify-content:center!important;min-height:0!important;overflow-y:auto!important;scrollbar-width:thin}
body.ts73-single.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{max-width:1520px!important;width:100%!important;margin:0 auto!important;padding:clamp(8px,1.6dvh,18px) 0 6px!important;gap:clamp(5px,.85dvh,10px)!important;align-self:start!important;justify-self:center!important;justify-content:flex-start!important;flex-shrink:0!important;min-height:0!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container>.header{min-height:36px!important;height:auto!important;flex-shrink:0!important;margin:0!important;padding:0!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{height:auto!important;min-height:clamp(170px,27dvh,285px)!important;padding:clamp(12px,2.1dvh,24px) clamp(12px,2.1vw,34px)!important;flex:0 0 auto!important;margin:0!important;align-items:center!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{--ts27-lines:3;--type-lh:calc(var(--ts32-text)*1.48);height:calc(var(--type-lh)*var(--ts27-lines))!important;min-height:calc(var(--type-lh)*var(--ts27-lines))!important;max-height:calc(var(--type-lh)*var(--ts27-lines))!important}
@media(min-height:900px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{--ts27-lines:4}}
/* The same controls remain in the same place after the first keystroke. Keep
   the existing running state for clocks, AFK handling and notifications. */
body.ts73-single.ts72-shell.ts27-home.ts27-main-active :is(#ts23Topbar,#tsSidebar,#tsMenuBtn,.page-layout>.container>.header,#settingBar,#hintRow,body>.footer,.ts72-nav-left,#logoSubtitle){opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body.ts73-single.ts72-shell.ts27-home.ts27-main-active>#ts28Footer.footer.ts26-footer{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body.ts73-single.ts72-shell.ts27-home.ts27-main-active #ts26StatsToggle{visibility:visible!important;pointer-events:auto!important}
body.ts73-single.ts72-shell.ts27-home.ts27-main-active.ts26-stats-off #statsBar .ts26-metrics-fold{grid-template-columns:0fr!important;opacity:0!important;pointer-events:none!important}
body.ts73-single.ts72-shell.ts27-home.ts27-main-active #ts25MainExit{display:none!important}
.ts73-single .ts73-explore-more{display:inline-flex;align-items:center;gap:7px;flex:none;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--accent);font:inherit;font-size:.78rem;font-weight:700;padding:7px 11px;min-height:35px;cursor:pointer;transition:background-color .16s,border-color .16s}
.ts73-single .ts73-explore-more:hover{background:var(--accent-soft);border-color:var(--accent)}
.ts73-single .ts73-lb-actions{display:flex;align-items:center;gap:6px;flex:none}
.ts73-single .ts73-lb-close{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--border);background:var(--surface);color:var(--sub);border-radius:7px;cursor:pointer;flex:none}
.ts73-single .ts73-lb-close svg{width:17px;height:17px}
.ts73-single .ts73-lb-close:hover{background:var(--accent-soft);color:var(--text)}
/* A stable guide header, and an animated fold with no conditional page sizing. */
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain{--ts27-key-h:var(--ts73-key-h,24px)!important;--ts73-key-h:clamp(14px,min(calc((100dvh - 395px)*.078 + 8px),5.1vw,33px),33px);width:100%!important;max-width:none!important;margin:0!important;padding:3px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;flex-shrink:0!important;overflow:visible!important}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{min-height:34px!important;height:34px!important;display:flex!important;justify-content:flex-start!important;gap:10px!important;margin:0!important;padding:0!important;align-items:center!important}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-info{display:flex!important;order:2;min-width:0;flex:1 1 auto;opacity:1;transition:opacity .18s;align-items:center;gap:6px!important;overflow:hidden}
body.ts73-single.ts72-shell #ts24GuideMain.ts24-guide-off .ts24-guide-info{visibility:hidden;opacity:0;pointer-events:none}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle{order:1;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:34px!important;min-width:132px!important;padding:6px 11px!important;border:1px solid var(--accent)!important;color:var(--accent)!important;background:var(--accent-soft)!important;border-radius:9px!important;font-size:.79rem!important;font-weight:750!important;box-shadow:none!important;transition:background-color .16s,color .16s;flex:none}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle::before{content:"";display:block;width:17px;height:13px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='1.5' y='2' width='21' height='14' rx='3'/%3E%3Cpath d='M5 6h1m3 0h1m3 0h1m3 0h1M5 10h1m3 0h6m3 0h1'/%3E%3C/svg%3E") center/contain no-repeat}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle:hover{background:var(--accent)!important;color:white!important}
body.ts73-single.ts72-shell #ts24GuideMain .ts25-guide-fold{display:grid!important;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .24s cubic-bezier(.22,.61,.36,1),opacity .2s ease!important;min-height:0}
body.ts73-single.ts72-shell #ts24GuideMain.ts24-guide-off .ts25-guide-fold{grid-template-rows:0fr;opacity:0;pointer-events:none}
body.ts73-single.ts72-shell #ts24GuideMain .ts26-guide-content{min-height:0!important;overflow:hidden!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts62-keyboard{padding-top:3px!important;padding-inline:4px!important;gap:2px!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts24-key-row{gap:2px!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts24-key{height:var(--ts73-key-h)!important;min-height:0!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts24-key.ts24-space{height:calc(var(--ts73-key-h)*.8)!important}
body.ts73-single.ts72-shell #hintRow{margin:0!important;min-height:30px!important;gap:8px!important;flex-shrink:0!important}
/* Feature directory: calm, compact cards with visible group boundaries. */
.ts73-single .ts72-menu{width:min(900px,calc(100vw - 24px));border-radius:16px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.ts73-single .ts72-menu-head{padding:18px 22px 14px;background:var(--surface);position:sticky;top:0;z-index:2;align-items:center}
.ts73-single .ts72-menu-body{padding:16px 18px;gap:12px;align-items:start}
.ts73-single .ts72-menu-group{border:1px solid var(--border);border-radius:12px;padding:10px 7px;background:var(--surface)}
.ts73-single .ts72-menu-group h3{margin:2px 7px 8px;font-size:.72rem;letter-spacing:.03em;text-transform:uppercase}
.ts73-single .ts72-menu-link{justify-content:flex-start;padding:7px 6px;min-height:54px;gap:8px}
.ts73-single .ts73-route-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;background:var(--accent-soft);color:var(--accent);border-radius:8px}
.ts73-single .ts73-route-icon svg{width:18px;height:18px;color:inherit}
.ts73-single .ts73-route-copy{flex:1;min-width:0}
.ts73-single .ts72-menu-link>svg{width:13px;flex:none}
.ts73-single .ts72-menu-link small{font-size:.72rem}
.ts73-single .ts72-menu-foot{padding:12px 18px 16px;align-items:center;gap:10px;background:var(--surface)}
.ts73-single .ts73-sidebar-choice{display:flex;align-items:center;gap:11px;flex:1 1 280px;min-width:0;text-align:left;color:var(--text);background:var(--surface2,var(--surface));border:1px solid var(--border);border-radius:10px;padding:11px 13px;font:inherit;cursor:pointer;transition:background-color .16s,border-color .16s}
.ts73-single .ts73-sidebar-choice>svg{width:23px;height:23px;color:var(--accent);flex:none}
.ts73-single .ts73-sidebar-choice>span:nth-child(2){flex:1;min-width:0}
.ts73-single .ts73-sidebar-choice strong,.ts73-single .ts73-sidebar-choice small{display:block}.ts73-single .ts73-sidebar-choice strong{font-size:.85rem}.ts73-single .ts73-sidebar-choice small{font-size:.73rem;line-height:1.3;color:var(--sub);margin-top:3px}
.ts73-single .ts73-side-switch{width:34px;height:20px;flex:none;background:var(--border);border-radius:20px;position:relative;transition:background-color .16s}
.ts73-single .ts73-side-switch::after{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .16s}
.ts73-single .ts73-sidebar-choice[aria-pressed=true] .ts73-side-switch{background:var(--accent)}.ts73-single .ts73-sidebar-choice[aria-pressed=true] .ts73-side-switch::after{transform:translateX(14px)}
.ts73-single .ts73-sidebar-choice:hover{border-color:var(--accent)}
.ts73-single :is(.ts73-explore-more,.ts73-lb-close,.ts73-sidebar-choice,.ts24-guide-toggle):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:760px){body.ts73-single{--ts72-gutter:9px}body.ts73-single.ts72-shell>.ts23-topbar{padding:4px 8px!important;gap:3px!important;min-height:44px!important}body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn{display:inline-flex!important;min-width:33px!important;min-height:36px!important;padding:5px 7px!important}body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn :is(.ts23-switch-track,.ts23-theme-label){display:none!important}body.ts73-single.ts72-shell .ts72-brand{padding-right:2px}.ts73-single .ts72-nav-btn{padding-inline:6px;min-height:36px}.ts73-single .ts72-nav-left,.ts73-single .ts72-primary-nav{gap:1px}body.ts73-single.ts72-shell>.ts23-topbar .ts-sb-foot{gap:3px!important}.ts73-single .ts72-menu-body{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}.ts73-single .ts72-menu-head{padding:14px}.ts73-single .ts72-menu-foot{padding:10px}.ts73-single .ts73-route-icon{width:28px;height:28px;flex-basis:28px}.ts73-single .ts72-menu-link small{font-size:.69rem}.ts73-single .ts72-menu-link{min-height:48px}.ts73-single .ts72-menu-group{padding:8px 5px}.ts73-single .ts73-explore-more{font-size:.73rem;min-height:31px;padding:5px 8px}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{gap:5px!important;padding:5px 0!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{min-height:clamp(155px,25dvh,245px)!important;padding:10px 11px!important}body.ts73-single.ts72-shell #settingBar{gap:3px!important}body.ts73-single.ts72-shell #ts20Toolbar{flex-basis:auto!important;justify-content:flex-start!important}.ts73-single .ts20-tools .ts20-btn{min-height:30px!important;padding:4px 6px!important}.ts73-single .ts72-preset-strip #presetOpts .opt-btn{min-height:32px!important;padding:5px 8px!important}.ts73-single .ts72-preset-strip #presetOpts{padding:2px}.ts73-single #statsBar{min-height:29px!important;margin:0!important}.ts73-single #hintRow .hint-item{display:none!important}body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{height:32px!important;min-height:32px!important}body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle{min-height:32px!important}}
@media(max-width:440px){.ts73-single .ts72-brand>span:last-child{display:none}.ts73-single .ts72-menu-body{grid-template-columns:1fr}.ts73-single .ts72-menu-link{min-height:46px}.ts73-single .ts72-menu-group{padding:8px}.ts73-single .ts72-menu-head h2{font-size:1.25rem}.ts73-single .ts72-menu-foot>.ts72-nav-btn{min-height:36px}.ts73-single #logoSubtitle{font-size:.72rem!important}.ts73-single .logo-title{font-size:1.35rem!important}.ts73-single .ts72-nav-btn{font-size:.76rem;padding-inline:5px}.ts73-single .ts72-nav-btn svg{width:15px;height:15px}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain{--ts73-key-h:clamp(14px,min(calc((100dvh - 420px)*.11 + 2px),5.2vw,24px),24px)}body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-info strong{display:none!important}}
@media(max-height:680px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open)>#ts28Footer{display:none!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{padding-block:4px!important;gap:4px!important}.ts73-single #logoSubtitle{font-size:.72rem!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{min-height:clamp(150px,25dvh,180px)!important;padding-block:8px!important}}
@media(max-height:500px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container>.header{min-height:30px!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{min-height:120px!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{--ts27-lines:2}body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle{min-height:29px!important}body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{height:29px!important;min-height:29px!important}.ts73-single #hintRow{min-height:26px!important}}
@media(prefers-reduced-motion:reduce){body.ts73-single.ts72-shell #ts24GuideMain :is(.ts25-guide-fold,.ts24-guide-info,.ts24-guide-toggle),.ts73-single :is(.ts73-side-switch,.ts73-side-switch::after,.ts73-explore-more,.ts73-sidebar-choice){transition:none!important}}

/* Measured guide sizing uses the space that remains below the fixed passage. */
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain{--ts73-key-h:var(--ts73-fit-key,20px)!important}
body.ts73-single.ts72-shell #hintRow{margin:0!important}
body.ts73-single.ts72-shell.ts27-home #statsBar{margin:0!important}
body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{margin:0!important}
@media(max-width:760px){
 body.ts73-single.ts72-shell.ts27-home #settingBar{justify-content:flex-start!important;align-items:center!important;padding:0!important;gap:3px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar .ts72-preset-strip{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;width:100%!important;flex:0 0 100%!important;justify-content:flex-start!important;gap:6px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #presetOpts{flex:1 1 auto!important;justify-content:flex-start!important;flex-wrap:nowrap!important;min-width:0!important;margin:0!important;padding:2px!important;width:auto!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #presetOpts .opt-btn{flex:1 1 0!important;min-width:0!important;padding-inline:5px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #optLabel{flex:0 0 auto!important;margin:0!important;width:auto!important}
 body.ts73-single.ts72-shell.ts27-home #ts20Toolbar{display:flex!important;flex:1 1 100%!important;justify-content:flex-start!important;width:100%!important;min-height:28px!important}
 body.ts73-single.ts72-shell.ts27-home #ts20Toolbar .ts20-tools{flex-wrap:nowrap!important;justify-content:flex-start!important;width:100%!important}
 body.ts73-single.ts72-shell.ts27-home #ts20Toolbar .ts20-btn{min-height:28px!important;padding:4px 7px!important}
 body.ts73-single.ts72-shell.ts27-home .header .logo{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0;gap:0!important}
 body.ts73-single.ts72-shell.ts27-home #logoSubtitle{white-space:nowrap;font-size:.72rem!important;line-height:1.2!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar{min-height:28px!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar .timer-digital{padding:0!important}
 body.ts73-single.ts72-shell #hintRow #ts20Restart{min-height:28px!important;padding:3px 8px!important}
}
@media(max-width:440px) and (max-height:680px){
 body.ts73-single.ts72-shell>.ts23-topbar{min-height:45px!important;height:45px!important;flex-wrap:nowrap!important;padding:2px 6px!important}
 body.ts73-single.ts72-shell>.ts23-topbar :is(#ts28Bell,#tsAcctLogin,#tsAcctBtn,#tsThemeBtn){min-height:34px!important;height:34px!important}
 body.ts73-single.ts72-shell .ts72-brand .ts72-mark{width:28px;height:28px}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container>.header{min-height:30px!important;height:30px!important}
 body.ts73-single.ts72-shell.ts27-home .header .logo{flex-direction:row!important;align-items:center!important;gap:7px!important}
 body.ts73-single.ts72-shell.ts27-home .header #logoSubtitle{font-size:.68rem!important}
 body.ts73-single.ts72-shell.ts27-home #ts73ExploreMore{display:none!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar{min-height:26px!important}
 body.ts73-single.ts72-shell.ts27-home #ts24GuideMain .ts24-guide-head{min-height:30px!important;height:30px!important}
 body.ts73-single.ts72-shell.ts27-home #ts24GuideMain .ts24-guide-toggle{min-height:30px!important}
 body.ts73-single.ts72-shell.ts27-home #hintRow{min-height:27px!important}
}
/* Short landscape: reserve a compact right-hand guide area from the start.
   The passage does not change width or height when the guide is opened. */
@media(min-width:620px) and (max-height:500px){
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container{--ts73-side:clamp(230px,35vw,360px);position:relative!important;padding-block:2px!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container :is(#typingContainer,#progressBarWrap){width:calc(100% - var(--ts73-side) - 12px)!important;align-self:flex-start!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideMain{position:absolute!important;right:0!important;top:var(--ts73-guide-top,120px)!important;width:var(--ts73-side)!important;--ts73-key-h:var(--ts73-fit-key,14px)!important;padding:0!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #hintRow{display:flex!important;width:calc(100% - var(--ts73-side) - 12px)!important;align-self:flex-start!important;min-height:25px!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #hintRow .hint-item{display:none!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideMain .ts24-guide-info strong{display:none!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideMain .ts24-guide-toggle{min-width:110px!important;font-size:.71rem!important;padding-inline:6px!important}
}
/* Keep all controls inside the phone width; no hidden off-canvas toolbar. */
@media(max-width:760px){
 body.ts73-single.ts72-shell.ts27-home #settingBar{flex-wrap:wrap!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar .ts72-preset-strip{max-width:100%!important}
 body.ts73-single.ts72-shell.ts27-home #ts20Toolbar{max-width:100%!important}
}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{--ts27-lines:4}
@media(max-height:500px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{--ts27-lines:3}}
/* Keep key labels readable when the viewport forces a compact guide. */
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts24-key-char{font-size:clamp(7px,calc(var(--ts73-key-h)*.49),14px)!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts24-key-special .ts24-key-char{font-size:clamp(5.5px,calc(var(--ts73-key-h)*.39),11px)!important;white-space:nowrap}
/* Place sidebar discovery immediately after the dialog heading on mobile. */
@media(max-width:760px){.ts73-single .ts72-menu{display:none}.ts73-single .ts72-menu[open]{display:flex;flex-direction:column}.ts73-single .ts72-menu-head{order:0;flex:none}.ts73-single .ts72-menu-foot{order:1;border-top:0;border-bottom:1px solid var(--border);flex:none}.ts73-single .ts72-menu-body{order:2;flex:none}.ts73-single .ts73-sidebar-choice{padding:9px 10px}}
/* Avoid an invisible mobile leaderboard backdrop intercepting clicks after a test. */
@media(max-width:760px){
 body.ts73-single.ts72-shell.ts27-home #settingBar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;justify-items:stretch!important;gap:3px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #ts20Toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;justify-items:stretch!important;gap:2px!important;width:100%!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar .ts20-tools{display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:3px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar .ts20-tools .ts20-btn{flex:1 1 auto!important;justify-content:center!important;min-width:0!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #ts20Status{display:none!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools{gap:4px!important;margin-left:auto!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar #ts20Restart{min-height:28px!important;padding:3px 6px!important;font-size:.72rem!important;white-space:nowrap}
 body.ts73-single.ts72-shell.ts27-home #hintRow.ts73-mobile-restart{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn>i{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn::before{content:"";width:17px;height:17px;display:block;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M20 15a9 9 0 0 1-11-11 9 9 0 1 0 11 11Z'/%3E%3C/svg%3E") center/contain no-repeat}
 body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn[aria-checked=true]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5'/%3E%3C/svg%3E")}
}
body.ts73-single:is(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open) #statsBar #ts20Restart{display:none!important}

/* Timer and restart are separate controls, not stacked in the old shared grid cell. */
body.ts73-single.ts72-shell.ts27-home #statsBar #ts25MainExit{display:none!important}
@media(max-width:760px){
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools{display:flex!important;flex-wrap:nowrap!important;width:auto!important;min-width:0!important;justify-content:flex-end!important;gap:8px!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools>button{flex:0 0 auto!important;grid-area:auto!important;position:static!important;max-width:none!important;width:auto!important}
}

@media(min-width:620px) and (max-width:991px) and (max-height:500px){
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{--ts73-side:clamp(230px,35vw,360px);position:relative!important;padding-block:2px!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container :is(#typingContainer,#progressBarWrap){width:calc(100% - var(--ts73-side) - 12px)!important;align-self:flex-start!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideMain{position:absolute!important;right:0!important;top:var(--ts73-guide-top,120px)!important;width:var(--ts73-side)!important;--ts73-key-h:var(--ts73-fit-key,14px)!important;padding:0!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #hintRow{display:flex!important;width:calc(100% - var(--ts73-side) - 12px)!important;align-self:flex-start!important;min-height:25px!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #hintRow .hint-item{display:none!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideMain .ts24-guide-info strong{display:none!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideMain .ts24-guide-toggle{min-width:110px!important;font-size:.71rem!important;padding-inline:6px!important}
}

/* Session 74: optional focus with navigation enabled, smooth leaderboard dismissal. */
#ts73ExploreMore :is(.ts74-focus-icon,.ts74-exit-icon){display:none;width:16px;height:16px;flex:none}
#ts73ExploreMore[data-mode=focus] .ts74-focus-icon,#ts73ExploreMore[data-mode=exit] .ts74-exit-icon{display:block}
#ts73ExploreMore[data-mode=focus] .ts74-explore-arrow,#ts73ExploreMore[data-mode=exit] .ts74-explore-arrow{display:none}
.ts73-single #ts73ExploreMore[data-mode=exit]{background:var(--accent);border-color:var(--accent);color:var(--on-accent,white)}
.ts73-single #ts73ExploreMore[data-mode=exit]:hover{background:var(--accent-h,var(--accent))}
@media(max-width:440px) and (max-height:680px){
 body.ts73-single.ts72-shell.ts27-home.ts74-sidebar-enabled #ts73ExploreMore{display:inline-flex!important;min-height:30px;padding:4px 7px;white-space:nowrap}
 body.ts73-single.ts72-shell.ts27-home.ts74-sidebar-enabled .header .logo{flex-direction:column!important;align-items:flex-start!important;gap:0!important}
 body.ts73-single.ts72-shell.ts27-home.ts74-sidebar-enabled .header #logoSubtitle{display:none!important}
}
/* Equal grid tracks in both states let the passage take the released width gradually.
   Keep the card full-sized inside the narrowing panel so its rows never reflow. */
@media(min-width:992px){
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout{grid-template-columns:minmax(0,1520px) var(--lb-w)!important;column-gap:var(--page-gap)!important;transition:grid-template-columns .28s cubic-bezier(.22,.61,.36,1),column-gap .28s cubic-bezier(.22,.61,.36,1)!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed{grid-template-columns:minmax(0,1520px) 0px!important;column-gap:0!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>#leaderboardPanel{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:opacity .24s ease,visibility 0s linear!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>#leaderboardPanel{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .24s ease,visibility 0s linear .28s!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>#leaderboardPanel>.lb-card{width:var(--lb-w)!important;max-width:none!important;border-width:1px!important;opacity:1!important;transition:none!important}
}
/* The mobile leaderboard is a drawer; slide it off-screen before hiding it.
   Backdrop immediately stops intercepting taps, but fades out visually. */
@media(max-width:991px){
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>#leaderboardPanel{transform:translateX(0);opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:transform .28s cubic-bezier(.22,.61,.36,1),opacity .24s ease,visibility 0s linear!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>#leaderboardPanel{transform:translateX(103%);opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:transform .28s cubic-bezier(.22,.61,.36,1),opacity .24s ease,visibility 0s linear .28s!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>#lbBackdrop{display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:opacity .24s ease,visibility 0s linear!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>#lbBackdrop{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .24s ease,visibility 0s linear .28s!important}
}
/* Keep hidden panels noninteractive even if an older active-typing rule is present. */
body.ts73-single.ts72-shell.ts27-home.ts27-main-active>.page-layout.lb-collapsed>:is(#leaderboardPanel,#lbBackdrop){pointer-events:none!important}
@media(prefers-reduced-motion:reduce){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout,body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>:is(#leaderboardPanel,#lbBackdrop),body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed,body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>:is(#leaderboardPanel,#lbBackdrop){transition:none!important}}

/* Session 75 - stable workspace, accessible directory, compact race navigation. */
body.ts73-single{--ts72-gutter:clamp(18px,3.1vw,52px);--ts75-motion:360ms cubic-bezier(.22,.61,.36,1)}
/* Keep navigation actions in the dialog's fixed header area; only the directory scrolls. */
.ts73-single .ts72-menu[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px);box-sizing:border-box}
.ts73-single .ts72-menu-head{flex:0 0 auto;position:static;padding:16px 20px 12px}
.ts73-single .ts75-menu-actions{display:flex;align-items:center;gap:10px;padding:10px 18px;border-bottom:1px solid var(--border);flex:0 0 auto;background:var(--surface)}
.ts73-single .ts75-menu-actions .ts73-sidebar-choice{flex:1 1 auto;padding:9px 12px}
.ts73-single .ts75-menu-actions>.ts72-nav-btn{flex:0 0 auto;border:1px solid var(--border)}
.ts73-single .ts72-menu-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1 1 auto}
@media(max-width:760px){.ts73-single .ts75-menu-actions{padding:8px 10px;gap:6px}.ts73-single .ts72-menu-head{padding:12px}.ts73-single .ts75-menu-actions>.ts72-nav-btn{padding-inline:7px}.ts73-single .ts75-menu-actions .ts73-sidebar-choice{padding:8px;gap:7px}}
@media(max-width:420px){.ts73-single .ts75-menu-actions{flex-wrap:wrap}.ts73-single .ts75-menu-actions .ts73-sidebar-choice{flex-basis:100%}.ts73-single .ts75-menu-actions>.ts72-nav-btn{min-height:30px}.ts73-single .ts75-menu-actions .ts73-sidebar-choice small{font-size:.68rem}}
@media(max-height:440px){.ts73-single .ts72-menu-head{padding:8px 12px}.ts73-single .ts72-menu-head p,.ts73-single .ts72-menu-head span{display:none}.ts73-single .ts75-menu-actions{padding-block:5px}.ts73-single .ts75-menu-actions .ts73-sidebar-choice small{display:none}}
/* Center each compact-sidebar dot on the upper-right edge of its own icon. */
body.ts72-shell #navTabs .nav-tab{--ts75-dot:8px}
body.ts72-shell #navTabs :is(#navShopBadge,#navChallengeBadge),body.ts72-shell #navTabs #navMultiplayer[data-ts69-friend-pending]::after{width:var(--ts75-dot)!important;height:var(--ts75-dot)!important;min-width:0!important;min-height:0!important;top:50%!important;right:12px!important;bottom:auto!important;left:auto!important;margin:0!important;transform:translateY(-50%)!important;box-shadow:0 0 0 2px var(--surface)!important;border-radius:50%!important;animation:none!important}
body.ts72-shell.ts-rail #navTabs :is(#navShopBadge,#navChallengeBadge),body.ts72-shell.ts-rail #navTabs #navMultiplayer[data-ts69-friend-pending]::after{top:calc(50% - 10px)!important;right:calc(50% - 14px)!important;transform:translate(50%,-50%)!important}
@media(max-width:767px){body.ts72-shell.ts-rail #navTabs :is(#navShopBadge,#navChallengeBadge),body.ts72-shell.ts-rail #navTabs #navMultiplayer[data-ts69-friend-pending]::after{top:50%!important;right:12px!important;transform:translateY(-50%)!important}}
/* Keep the wallet readable on every light, dark or multicolored profile banner. */
body.ts72-shell :is(#profileCoinsPill,#lbPlayerCoinsPill){color:#ffdf8c!important;background:#182337!important;border:1px solid #ffffff38!important;border-radius:999px;padding:3px 8px;line-height:1.3;text-shadow:none!important;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:none!important}
body.ts72-shell :is(#profileCoinsPill,#lbPlayerCoinsPill) i{color:#ffdf8c!important}
/* Sidebar keeps its own width while it slides, rather than collapsing instantly. */
@media(min-width:768px){
 body.ts73-single.ts72-shell.ts74-sidebar-enabled{transition:padding-left var(--ts75-motion)!important}
 body.ts73-single.ts72-shell.ts74-sidebar-enabled #tsSidebar{--ts75-sb-size:var(--sb-open);display:flex!important;width:var(--ts75-sb-size)!important;transform:translateX(0);opacity:1;visibility:visible;transition:transform var(--ts75-motion),opacity .28s ease,visibility 0s!important}
 body.ts73-single.ts72-shell.ts74-sidebar-enabled.ts-rail #tsSidebar{--ts75-sb-size:var(--sb-rail)}
 body.ts73-single.ts72-shell.ts74-sidebar-enabled.ts74-focus #tsSidebar{transform:translateX(-100%);opacity:0;visibility:hidden;pointer-events:none;transition:transform var(--ts75-motion),opacity .28s ease,visibility 0s linear .36s!important}
 body.ts73-single.ts72-shell:is(.mp-preview,.mp-racing) #tsSidebar{display:none!important}
}
/* Do not remove the shortcut row as an accidental side effect of the active state. */
@media(min-width:761px) and (min-height:501px){body.ts73-single.ts72-shell.ts27-home.ts27-main-active #hintRow .hint-item{display:inline-flex!important}}
/* More breathing room at the horizontal edges. Footer stays in the normal layout,
   including on phones and short monitors. It is not fixed over the typing controls. */
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{max-width:1400px!important}
@media(min-width:992px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout{grid-template-columns:minmax(0,1400px) var(--lb-w)!important}body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed{grid-template-columns:minmax(0,1400px) 0px!important}}
body.ts73-single.ts72-shell>#ts28Footer.footer.ts26-footer{display:block!important;flex:0 0 auto!important;min-height:24px!important;max-width:100%;box-sizing:border-box}
body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{min-height:26px!important;padding:2px clamp(10px,2vw,24px)!important;box-sizing:border-box;flex-wrap:nowrap!important;gap:8px!important}
body.ts73-single.ts72-shell>#ts28Footer :is(.ts26-footer-credit,.ts26-footer-right,.visitor-counter){display:flex!important;align-items:center;white-space:nowrap;flex:0 0 auto!important;min-width:0;gap:5px!important}
body.ts73-single.ts72-shell>#ts28Footer .visitor-counter{font-size:.73rem!important}
body.ts73-single.ts72-shell .header .logo #logoTitle i{font-size:.8em;color:var(--accent)}
body.ts73-single.ts72-shell .header .logo #logoSubtitle{text-transform:uppercase!important;letter-spacing:.12em!important;font-size:.72rem!important;font-weight:600!important}
@media(max-width:760px){
 body.ts73-single{--ts72-gutter:clamp(12px,3.8vw,24px)}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{font-size:.64rem!important;min-height:24px!important;gap:3px!important}
 body.ts73-single.ts72-shell>#ts28Footer .visitor-counter{font-size:.64rem!important}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-social a{width:18px!important;height:20px!important}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-social svg{width:13px!important;height:13px!important}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-social{gap:2px!important}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-copyright{display:none}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{gap:3px!important;padding:4px 0!important}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{min-height:clamp(150px,25dvh,245px)!important;padding:8px 11px!important}
 body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{min-height:29px!important;height:29px!important}
 body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle{min-height:29px!important;padding-block:3px!important}
}
@media(max-width:440px){body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-social{display:none!important}body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-credit{font-size:.64rem!important}body.ts73-single.ts72-shell .header .logo #logoSubtitle{font-size:.61rem!important}}
@media(max-height:680px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{gap:3px!important;padding-block:3px!important}body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{min-height:22px!important}}
@media(max-height:500px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{min-height:120px!important}body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{min-height:20px!important}}
/* No nested scrollbars in the race lobby. A compact tab strip is used for short/narrow
   viewports; if real content exceeds the viewport, the page is the only scroll surface. */
.ts75-race-tabs{display:none;gap:5px;padding:4px;border:1px solid var(--border);background:var(--surface);border-radius:10px;flex:0 0 auto}
.ts75-race-tabs>button{position:relative;flex:1;min-width:0;min-height:36px;border:0;border-radius:7px;background:transparent;color:var(--sub);font:inherit;font-size:.86rem;font-weight:650;cursor:pointer;transition:background-color .16s,color .16s}
.ts75-race-tabs>button[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}
.ts75-race-tabs>button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ts75-race-dot{display:inline-block;margin-left:6px;width:7px;height:7px;border-radius:50%;background:#dc2626;vertical-align:middle}
html:has(body.ts72-shell[data-view=multiplayer]){overflow-y:auto!important}
body.ts72-shell[data-view=multiplayer]{height:auto!important;min-height:100dvh!important;overflow:visible!important}
body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay.show{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;flex:1 0 auto!important;padding:12px clamp(16px,2.5vw,36px) 18px!important;gap:12px!important}
body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay .mp-grid{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;align-items:start!important;grid-template-rows:auto!important;overflow:visible!important}
body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay .mp-grid>:is(.name-modal,.mp-stats,.mp-social),body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay :is(#mpStatsBody,.mps-list,#ts66FriendsList,#ts22FriendList){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:0 0 auto!important;overscroll-behavior:auto!important}
@media(max-width:1100px),(max-height:730px){
 body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay .ts75-race-tabs{display:flex!important}
 body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay .mp-grid{display:block!important}
 #mpLobbyOverlay .mp-grid[data-race-tab=race]>:not(#ts75RacePanel),#mpLobbyOverlay .mp-grid[data-race-tab=record]>:not(#ts75RecordPanel),#mpLobbyOverlay .mp-grid[data-race-tab=social]>:not(#ts75FriendsPanel){display:none!important}
 #mpLobbyOverlay .mp-grid>.ts70-race-choice{max-width:680px!important;margin:0 auto;padding:14px 18px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:center}
 #mpLobbyOverlay .ts70-race-choice>:is(.name-modal-icon,h2,p,#mpQueueBtn,#mpLobbyCloseBtn,#mpLobbyError){grid-column:1/-1}
 #mpLobbyOverlay .ts70-race-choice .name-modal-icon{display:none!important}
 #mpLobbyOverlay .ts70-race-choice>:is(#mpCreateRoomBtn,#mpJoinCodeInput,#mpJoinRoomBtn,#mpLobbyCloseBtn){margin:0!important}
 #mpLobbyOverlay .ts70-race-choice>#mpCreateRoomBtn{grid-column:1/-1}
 #mpLobbyOverlay .ts70-race-choice>#mpQueueBtn{min-height:53px!important}
 #mpLobbyOverlay .ts70-race-choice>h2,#mpLobbyOverlay .ts70-race-choice>#mpLobbySubtitle{margin:0!important}
}
@media(max-height:500px){body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay.show{gap:7px!important;padding-block:7px!important}#mpLobbyOverlay .pg-head .pg-desc{display:none}#mpLobbyOverlay .mp-grid>.ts70-race-choice{padding:9px 12px!important;gap:4px}#mpLobbyOverlay .ts70-race-choice>#mpLobbySubtitle{display:none}#mpLobbyOverlay .ts70-race-choice>#mpQueueBtn{min-height:43px!important;padding-block:6px!important}}
@media(prefers-reduced-motion:reduce){body.ts73-single.ts72-shell.ts74-sidebar-enabled,body.ts73-single.ts72-shell.ts74-sidebar-enabled #tsSidebar,body.ts73-single.ts72-shell.ts74-sidebar-enabled.ts74-focus #tsSidebar,body.ts73-single.ts72-shell.ts27-home.ts74-focus :is(#ts23Topbar,#settingBar,#hintRow,#ts28Footer,.page-layout>.container>.header>.logo,#ts26StatsToggle){transition:none!important}}

@media(max-height:800px){
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;align-items:center!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools>#ts20Restart{flex:0 0 auto!important;grid-area:auto!important;position:static!important;min-height:28px!important;white-space:nowrap}
 body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #hintRow.ts73-mobile-restart{display:none!important}
}
@media(min-width:761px) and (max-height:680px){
 body.ts73-single.ts72-shell.ts27-home>.ts23-topbar{min-height:48px!important;padding-block:4px!important}
 body.ts73-single.ts72-shell.ts27-home>.ts23-topbar :is(#ts28Bell,#tsAcctLogin,#tsAcctBtn,#tsThemeBtn){min-height:34px!important}
 body.ts73-single.ts72-shell.ts27-home #settingBar #presetOpts .opt-btn{min-height:30px!important;padding-block:4px!important}
 body.ts73-single.ts72-shell.ts27-home .header .logo{display:flex;flex-direction:row!important;align-items:baseline!important;gap:10px!important}
 body.ts73-single.ts72-shell.ts27-home>.page-layout>.container>.header{min-height:34px!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar{min-height:29px!important}
}

/* Preserve the exact pre-test row geometry after the first character. */
body.ts73-single.ts72-shell.ts27-home:is(.ts27-main-active,:not(.ts27-main-active)):not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{margin:0 auto!important;padding-bottom:6px!important}
body.ts73-single.ts72-shell.ts27-home:is(.ts27-main-active,:not(.ts27-main-active)):not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{padding-block:clamp(12px,2.1dvh,24px)!important}
@media(max-height:680px){body.ts73-single.ts72-shell.ts27-home:is(.ts27-main-active,:not(.ts27-main-active)):not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container{padding-bottom:3px!important}body.ts73-single.ts72-shell.ts27-home:is(.ts27-main-active,:not(.ts27-main-active)):not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{padding-block:8px!important}}
@media(max-width:760px){body.ts73-single.ts72-shell.ts27-home:is(.ts27-main-active,:not(.ts27-main-active)):not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{padding-block:8px!important}}
/* Anchor dots to the icon itself, including when the sidebar is collapsed. */
body.ts73-single.ts72-shell #navTabs .nav-tab-icon{position:relative;overflow:visible!important}
body.ts73-single.ts72-shell #navTabs #navMultiplayer[data-ts69-friend-pending]::after{content:none!important;display:none!important}
body.ts73-single.ts72-shell #navTabs .nav-tab-icon>#navShopBadge,body.ts73-single.ts72-shell #navTabs .nav-tab-icon>#navChallengeBadge,body.ts73-single.ts72-shell #navTabs #navMultiplayer[data-ts69-friend-pending] .nav-tab-icon::after{position:absolute!important;top:-2px!important;right:-2px!important;bottom:auto!important;left:auto!important;width:8px!important;height:8px!important;min-width:0!important;min-height:0!important;transform:none!important;margin:0!important;border:0!important;border-radius:50%!important;box-shadow:0 0 0 2px var(--surface)!important;pointer-events:none!important;animation:none!important;z-index:2}
body.ts73-single.ts72-shell #navTabs #navMultiplayer[data-ts69-friend-pending] .nav-tab-icon::after{content:"";display:block;background:#dc2626}

/* A small upper-edge allowance keeps the top-row fingertip silhouette inside the guide. */
@media(min-width:761px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain .ts62-keyboard{padding-top:clamp(9px,calc(var(--ts73-key-h)*.34),14px)!important}}

/* Keep the compact timer actions within their own intrinsic-width row. */
@media(min-width:761px) and (max-height:800px){
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools{width:auto!important;max-width:none!important;min-width:max-content!important;flex:0 0 auto!important;justify-content:flex-start!important}
 body.ts73-single.ts72-shell.ts27-home #statsBar .ts26-stage-tools>button{flex:0 0 auto!important;min-width:max-content!important;max-width:none!important;width:auto!important}
}
/* Match the race navigation strip to the compact panel width. */
body.ts72-shell[data-view=multiplayer]>#mpLobbyOverlay .ts75-race-tabs{width:min(100%,680px);max-width:680px;align-self:center;box-sizing:border-box;margin-inline:auto}
.ts75-race-tabs>button{padding:6px 8px;white-space:nowrap}

/* Session 76: restore the existing presence indicator beside Notifications. */
body.ts73-single.ts72-shell>.ts23-topbar #ts34Active{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;min-height:34px;padding:5px 9px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.ts73-single.ts72-shell>.ts23-topbar #ts34Active .ts34-live-dot{width:7px;height:7px;animation:none!important;box-shadow:none!important}
body.ts73-single.ts72-shell>.ts23-topbar #ts34Active:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:760px){body.ts73-single.ts72-shell>.ts23-topbar #ts34Active{gap:4px;padding:4px 6px;min-width:34px;min-height:34px}body.ts73-single.ts72-shell>.ts23-topbar #ts34Active .ts36-people{display:none}body.ts73-single.ts72-shell>.ts23-topbar #ts34Active .ts34-active-label{display:inline;font-size:.7rem}}
@media(max-width:440px){body.ts73-single.ts72-shell>.ts23-topbar #ts34Active .ts34-active-label{display:none}body.ts73-single.ts72-shell>.ts23-topbar #ts34Active{gap:4px;padding:4px 5px}}

/* Keep the restored presence counter in the header's single row. Compact the
   other controls first; the main passage and keyboard geometry stay intact. */
@media(max-width:1000px){
 body.ts73-single.ts72-shell>.ts23-topbar{flex-wrap:nowrap!important}
 body.ts73-single.ts72-shell>.ts23-topbar #ts34Active .ts36-people{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #ts34Active{gap:4px;padding-inline:6px}
 body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn :is(.ts23-switch-track,.ts23-theme-label){display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #tsThemeBtn{min-width:33px!important;padding-inline:7px!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-nav-left,body.ts73-single.ts72-shell>.ts23-topbar .ts72-primary-nav{gap:2px!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-nav-btn{padding-inline:7px!important}
}
@media(max-width:440px){
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-brand>span:last-child{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-brand{min-width:0!important;width:auto!important;padding-inline:0!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-nav-btn{min-width:0!important;padding-inline:4px!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts72-primary-nav{gap:0!important}
 body.ts73-single.ts72-shell>.ts23-topbar .ts-sb-foot{gap:3px!important;flex:0 0 auto!important}
 body.ts73-single.ts72-shell>.ts23-topbar #ts34Active{min-width:32px!important;padding-inline:4px!important}
}
@media(max-width:360px){
 body.ts73-single.ts72-shell>.ts23-topbar #ts72Race>span{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #ts72Race{min-width:28px!important}
 body.ts73-single.ts72-shell>.ts23-topbar #tsAcctLogin .ts36-join-icon{display:none!important}
 body.ts73-single.ts72-shell>.ts23-topbar #tsAcctLogin{padding-inline:5px!important}
}

/* Session 78: a typing session changes opacity, not the dimensions of the workspace.
   Reserve the scroll gutter even on platforms with non-overlay scrollbars. */
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout{scrollbar-gutter:stable!important;overflow-x:hidden!important;overflow-y:auto!important;overflow-anchor:none}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #typingContainer{transform:none!important;min-width:0!important;box-sizing:border-box;overflow-anchor:none}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #wordsDisplay{overflow-anchor:none}
body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #progressBarWrap,body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #progressTooltip{opacity:1!important;visibility:visible!important}
body.ts73-single.ts72-shell.ts27-home.ts74-focus:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #progressBarWrap{pointer-events:auto!important}
body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#ts23Topbar,#settingBar,#hintRow,#ts28Footer,.page-layout>.container>.header,#accountBar,#publicAccessNote,#ts21GhostTrack,#statsBar .stat-card,#statsBar .ts26-stage-tools,#ts24GuideMain .ts24-guide-head,#ts24GuideMain .ts24-np-layout,#tsMenuBtn,#tsSbBackdrop,#darkModeToggle){transition:opacity .32s ease-in-out,visibility 0s linear!important}
body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#ts23Topbar,#settingBar,#hintRow,#ts28Footer,.page-layout>.container>.header,#accountBar,#publicAccessNote,#ts21GhostTrack,#statsBar .stat-card,#statsBar .ts26-stage-tools,#ts24GuideMain .ts24-guide-head,#ts24GuideMain .ts24-np-layout,#tsMenuBtn,#tsSbBackdrop,#darkModeToggle){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .32s ease-in-out,visibility 0s linear .32s!important}
body.ts73-single.ts72-shell.ts27-home.ts74-focus:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive):not(.ts20-running) :is(#ts23Topbar,#settingBar,.page-layout>.container>.header,#hintRow,#ts28Footer,#statsBar .ts26-stage-tools,#ts24GuideMain .ts24-guide-head){opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #statsBar .ts26-metrics-fold{grid-template-columns:minmax(0,1fr)!important;opacity:1!important;visibility:visible!important}
body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #statsBar :is(.timer-wrapper,#timerDisplay){opacity:1!important;visibility:visible!important}
body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #statsBar{pointer-events:none!important}
body.ts73-single.ts72-shell.ts27-home.ts74-focus:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) #tsSidebar{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
/* Pause and AFK overlays fade in AND out. Discrete display transitions keep
   the fading overlay mounted until the opacity reaches zero, with no click trap. */
.ts29-afk-overlay,#typingContainer>#ts25PauseNote{animation:none!important;opacity:1;transition:opacity .32s ease-in-out,display .32s allow-discrete!important}
.ts29-afk-overlay[hidden],#typingContainer>#ts25PauseNote[hidden]{opacity:0!important;pointer-events:none!important}
@starting-style{.ts29-afk-overlay:not([hidden]),#typingContainer>#ts25PauseNote:not([hidden]){opacity:0}}
/* Preserve smooth line advance; caret remains inside the moving word layer. */
#wordsInner.ts77-scroll-motion{transition:top .18s cubic-bezier(.22,.61,.36,1)!important}
@media(prefers-reduced-motion:reduce){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#ts23Topbar,#settingBar,#hintRow,#ts28Footer,.page-layout>.container>.header,#accountBar,#publicAccessNote,#ts21GhostTrack,#statsBar .stat-card,#statsBar .ts26-stage-tools,#ts24GuideMain .ts24-guide-head,#ts24GuideMain .ts24-np-layout,#tsMenuBtn,#tsSbBackdrop,#darkModeToggle),body.ts73-single.ts72-shell.ts27-home.ts20-running:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#ts23Topbar,#settingBar,#hintRow,#ts28Footer,.page-layout>.container>.header,#accountBar,#publicAccessNote,#ts21GhostTrack,#statsBar .stat-card,#statsBar .ts26-stage-tools,#ts24GuideMain .ts24-guide-head,#ts24GuideMain .ts24-np-layout,#tsMenuBtn,#tsSbBackdrop,#darkModeToggle),#wordsInner.ts77-scroll-motion,.ts29-afk-overlay,#typingContainer>#ts25PauseNote{transition:none!important}}

/* Session 79: normal typing temporarily fades the side panels without changing
   grid tracks, body padding, stored panel preferences or passage geometry. */
body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#tsSidebar,#tsSbBackdrop,#tsMenuBtn){transition:transform var(--ts75-motion),opacity .32s ease-in-out,visibility 0s linear!important}
body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout:not(.lb-collapsed)>:is(#leaderboardPanel,#lbBackdrop){transition:transform .28s cubic-bezier(.22,.61,.36,1),opacity .32s ease-in-out,visibility 0s linear!important}
body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive).ts20-running :is(#tsSidebar,#tsSbBackdrop,#tsMenuBtn){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:transform var(--ts75-motion),opacity .32s ease-in-out,visibility 0s linear .32s!important}
body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive).ts20-running>.page-layout:not(.lb-collapsed)>:is(#leaderboardPanel,#lbBackdrop){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:transform .28s cubic-bezier(.22,.61,.36,1),opacity .32s ease-in-out,visibility 0s linear .32s!important}
@media(max-width:767px){body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive):not(.ts20-running):not(.ts-nav-open) :is(#tsSidebar,#tsSbBackdrop){transition:transform var(--ts75-motion),opacity .32s ease-in-out,visibility 0s linear .32s!important}}
@media(prefers-reduced-motion:reduce){body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive) :is(#tsSidebar,#tsSbBackdrop,#tsMenuBtn),body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout:not(.lb-collapsed)>:is(#leaderboardPanel,#lbBackdrop),body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive).ts20-running :is(#tsSidebar,#tsSbBackdrop,#tsMenuBtn),body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive).ts20-running>.page-layout:not(.lb-collapsed)>:is(#leaderboardPanel,#lbBackdrop), body.ts73-single.ts72-shell.ts27-home:not(.ts74-focus,.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive):not(.ts20-running):not(.ts-nav-open) :is(#tsSidebar,#tsSbBackdrop){transition:none!important}}

/* Session 81: restore the original community counters in the footer. The
   summary shares the footer's existing two-way typing fade; it never changes
   the footer's visibility or the running-test layout on its own. */
body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;justify-items:center;column-gap:8px!important}
body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-credit{justify-self:start}
body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-right{justify-self:end}
body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary{display:flex!important;flex-wrap:nowrap;justify-content:center;align-items:center;gap:clamp(4px,.65vw,10px);font-size:.68rem;line-height:1.25;padding:2px 5px;max-width:100%;min-width:0;color:var(--sub);background:none;border:0;border-radius:7px}
body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary:hover{background:var(--accent-soft);color:var(--accent)}
body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary .ts28-community-caption{font-weight:650;color:var(--sub)}
body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary b{font-variant-numeric:tabular-nums;color:var(--text)}
@media(max-width:1040px){
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:0!important}
 body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary{grid-row:1;grid-column:1/-1;justify-self:center;order:0;padding-block:1px;font-size:.65rem}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-credit{grid-row:2;grid-column:1}
 body.ts73-single.ts72-shell>#ts28Footer .ts26-footer-right{grid-row:2;grid-column:2}
}
@media(max-width:560px){
 body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:390px;gap:1px 6px;text-align:center;font-size:.64rem;line-height:1.15}
 body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary .ts28-community-caption{grid-column:1/-1}
 body.ts73-single.ts72-shell>#ts28Footer .ts28-community-summary span{white-space:normal;overflow-wrap:anywhere;min-width:0}
}

/* Compact-screen keyboard: reclaim header space, never resize the passage. */
@media(min-width:761px) and (max-height:800px){
 body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-head{height:29px!important;min-height:29px!important}
 body.ts73-single.ts72-shell #ts24GuideMain .ts24-guide-toggle{min-height:29px!important;padding-block:4px!important}
}

@media(min-width:761px) and (max-height:800px){body.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideMain{padding-bottom:0!important}}


/* Multiplayer record: fit recent matches into pages instead of adding scrollbars. */
#mpLobbyOverlay #ts75RecordPanel .mps-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:10px;min-width:0;flex:0 0 auto}
#mpLobbyOverlay #ts75RecordPanel :is(.mps-row,.mps-pagination)[hidden]{display:none!important}
#mpLobbyOverlay #ts75RecordPanel .mps-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:34px;padding:5px 10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface2);color:var(--text);font:600 .75rem/1.25 var(--sans);cursor:pointer;transition:background-color .16s,color .16s,border-color .16s}
#mpLobbyOverlay #ts75RecordPanel .mps-page-btn:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
#mpLobbyOverlay #ts75RecordPanel .mps-page-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#mpLobbyOverlay #ts75RecordPanel .mps-page-btn:disabled{opacity:.42;cursor:default}
#mpLobbyOverlay #ts75RecordPanel .mps-page-status{font:600 .75rem/1.2 var(--sans);color:var(--sub);text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
#mpLobbyOverlay #ts75RecordPanel .mps-meta{overflow-wrap:anywhere}
@media(max-height:680px){
 #mpLobbyOverlay #ts75RecordPanel{padding:10px}
 #mpLobbyOverlay #ts75RecordPanel h2{margin-bottom:8px}
 #mpLobbyOverlay #ts75RecordPanel .mps-stat{padding:6px}
 #mpLobbyOverlay #ts75RecordPanel .mps-sub{margin-top:9px}
 #mpLobbyOverlay #ts75RecordPanel .mps-row{padding:6px 8px}
 #mpLobbyOverlay #ts75RecordPanel .mps-pagination{margin-top:7px}
}
@media(prefers-reduced-motion:reduce){#mpLobbyOverlay #ts75RecordPanel .mps-page-btn{transition:none}}
/* On short phones, keep all lifetime stats and one match readable without
   making the record tab consume extra rows for the redundant lobby intro. */
@media(max-width:600px) and (max-height:680px){
 #mpLobbyOverlay:has(.mp-grid[data-race-tab=record])>.pg-head{display:flex;align-items:center;gap:4px 10px;margin-bottom:4px}
 #mpLobbyOverlay:has(.mp-grid[data-race-tab=record])>.pg-head>.pg-back{flex-basis:auto;min-height:30px;margin-bottom:0}
 #mpLobbyOverlay:has(.mp-grid[data-race-tab=record])>.pg-head>.pg-title{font-size:1.2rem}
 #mpLobbyOverlay:has(.mp-grid[data-race-tab=record])>.pg-head>.pg-desc{display:none}
 #mpLobbyOverlay #ts75RecordPanel .mps-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #mpLobbyOverlay #ts75RecordPanel .mps-stat{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;padding:6px}
 #mpLobbyOverlay #ts75RecordPanel .mps-val{font-size:1rem;overflow-wrap:anywhere}
 #mpLobbyOverlay #ts75RecordPanel .mps-lab{font-size:.69rem;line-height:1.2;overflow-wrap:anywhere}
}
@media(max-width:600px) and (max-height:520px){
 #mpLobbyOverlay:has(.mp-grid[data-race-tab=record]) .ts75-race-tabs>button{min-height:30px}
 #mpLobbyOverlay #ts75RecordPanel h2{font-size:.95rem}
 #mpLobbyOverlay #ts75RecordPanel .mps-row{padding:5px 6px;gap:6px}
 #mpLobbyOverlay #ts75RecordPanel .mps-opp{font-size:.8rem}
 #mpLobbyOverlay #ts75RecordPanel .mps-meta{font-size:.7rem;line-height:1.35}
}

/* Dedicated Nepali practice. Inherit the user's existing themes and protect the
   English workspace and multiplayer layout from these mode-specific styles. */
.tsnp-symbol{font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,sans-serif;font-size:1.1rem;font-weight:750;line-height:1.1;flex:none}
.ts72-shell #ts72Nepali{color:var(--accent);gap:5px}
.ts72-shell #ts72Nepali[aria-current="page"]{background:var(--accent-soft);color:var(--accent)}
.tsnp-nav-short{display:none}
.tsnp-menu-link .ts73-route-icon,.tsnp-sidebar .nav-tab-icon{color:var(--accent)}
.tsnp-menu-link .ts73-route-copy small{font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,sans-serif}
.tsnp-tools[hidden],.tsnp-duration[hidden],.tsnp-tools [hidden]{display:none!important}
.tsnp-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0;color:var(--sub);font-size:.78rem}
.tsnp-tools .ts24-np-layout{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font:inherit;margin:0;min-width:0}
.tsnp-tools select{max-width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;border-radius:7px;padding:5px 7px}
.tsnp-tools .ts24-np-note{display:none}
.tsnp-duration{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tsnp-duration button[aria-pressed="true"],.tsnp-use{border-color:var(--accent)!important;background:var(--accent-soft)!important;color:var(--accent)!important}
.tsnp-personal{margin-left:auto;font-size:.72rem;white-space:normal}
body.tsnp-open #ts23Lab{gap:clamp(5px,1dvh,12px)}
body.tsnp-open #ts23LabTitle,body.tsnp-open #ts23Target,body.tsnp-open #ts23Input{font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,system-ui,sans-serif}
body.tsnp-open #ts23LabTitle{font-size:clamp(1.05rem,2vw,1.55rem);line-height:1.35}
body.tsnp-open #ts23Target{font-size:clamp(1.15rem,2.1vw,1.65rem);line-height:1.65;overflow-wrap:break-word}
body.tsnp-open #ts23Input{font-size:clamp(1.05rem,1.8vw,1.4rem);line-height:1.55;resize:none}
body.tsnp-open #ts23Lab .ts23-lab-tabs{display:none}
body.ts25-immersive[data-ts25-activity=lab] #tsnpTools{display:none!important}
.tsnp-custom-dialog{width:min(480px,calc(100% - 24px));max-height:85dvh;box-sizing:border-box;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;margin:auto;overflow:auto}
.tsnp-custom-dialog::backdrop{background:rgba(0,0,0,.55)}
.tsnp-custom-dialog form{display:grid;gap:10px}
.tsnp-custom-dialog h3,.tsnp-custom-dialog p{margin:0}
.tsnp-custom-dialog label,.tsnp-custom-dialog p{font-size:.82rem;color:var(--sub)}
.tsnp-custom-dialog textarea{width:100%;box-sizing:border-box;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px;font:inherit;line-height:1.5;resize:vertical}
.tsnp-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.tsnp-nav-full{display:none}.tsnp-nav-short{display:inline}}
@media(max-width:760px){body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali{padding-inline:5px!important}body.tsnp-open #ts23Lab{gap:5px}body.tsnp-open #ts23LabTitle{font-size:1.05rem}.tsnp-tools{gap:4px 7px}.tsnp-personal{margin-left:0;font-size:.65rem}.tsnp-tools .ts20-btn{padding:4px 7px;min-height:28px}.tsnp-tools select{font-size:.72rem}}
@media(max-width:540px){body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali{min-width:28px!important}body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali .tsnp-nav-short{display:none}body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali .tsnp-symbol{font-size:1.15rem}body.ts73-single.ts72-shell>.ts23-topbar #ts72Explore>span:not(.ts72-nav-dot){display:none!important}}
@media(max-height:720px){body.tsnp-open #ts23Lab .tsnp-tools{gap:4px 8px}body.tsnp-open #ts23Lab .tsnp-tools select{padding:3px 5px}body.tsnp-open #ts23Lab .tsnp-personal{font-size:.66rem}body.tsnp-open #ts23Lab .tsnp-duration button{min-height:26px;padding:3px 6px}}
@media(min-width:360px) and (max-width:540px){body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali .tsnp-nav-short{display:inline!important;font-size:.69rem}body.ts73-single.ts72-shell>.ts23-topbar #ts72Nepali{gap:3px;padding-inline:4px!important}}

/* Native TypeShala keyboard geometry for Nepali mode. */
body.tsnp-open .ts72-shell:not(.mp-racing) #ts24GuideLab.ts24-guide-off{border:0!important;background:transparent!important;padding:0!important;min-height:0!important;box-shadow:none!important}
body.tsnp-open .ts72-shell #ts24GuideLab.ts24-guide-off .ts24-guide-info{display:none!important}
body.tsnp-open .ts72-shell #ts24GuideLab.ts24-guide-off .ts24-guide-head{justify-content:center!important;margin:0!important}
body.tsnp-open .ts72-shell #ts24GuideLab.ts24-guide-off .ts24-guide-toggle{background:transparent!important;border:0!important;color:var(--sub);box-shadow:none!important;font-size:.8rem;min-height:32px}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab{--ts27-key-h:var(--ts73-key-h,24px)!important;--ts73-key-h:clamp(14px,min(calc((100dvh - 395px)*.078 + 8px),5.1vw,33px),33px);width:100%!important;max-width:none!important;margin:0!important;padding:3px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;flex-shrink:0!important;overflow:visible!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{min-height:34px!important;height:34px!important;display:flex!important;justify-content:flex-start!important;gap:10px!important;margin:0!important;padding:0!important;align-items:center!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-info{display:flex!important;order:2;min-width:0;flex:1 1 auto;opacity:1;transition:opacity .18s;align-items:center;gap:6px!important;overflow:hidden}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab.ts24-guide-off .ts24-guide-info{visibility:hidden;opacity:0;pointer-events:none}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle{order:1;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:34px!important;min-width:132px!important;padding:6px 11px!important;border:1px solid var(--accent)!important;color:var(--accent)!important;background:var(--accent-soft)!important;border-radius:9px!important;font-size:.79rem!important;font-weight:750!important;box-shadow:none!important;transition:background-color .16s,color .16s;flex:none}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle::before{content:"";display:block;width:17px;height:13px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='1.5' y='2' width='21' height='14' rx='3'/%3E%3Cpath d='M5 6h1m3 0h1m3 0h1m3 0h1M5 10h1m3 0h6m3 0h1'/%3E%3C/svg%3E") center/contain no-repeat}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle:hover{background:var(--accent)!important;color:white!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts25-guide-fold{display:grid!important;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .24s cubic-bezier(.22,.61,.36,1),opacity .2s ease!important;min-height:0}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab.ts24-guide-off .ts25-guide-fold{grid-template-rows:0fr;opacity:0;pointer-events:none}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts26-guide-content{min-height:0!important;overflow:hidden!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts62-keyboard{padding-top:3px!important;padding-inline:4px!important;gap:2px!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts24-key-row{gap:2px!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts24-key{height:var(--ts73-key-h)!important;min-height:0!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts24-key.ts24-space{height:calc(var(--ts73-key-h)*.8)!important}
@media (max-width:760px){body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{height:32px!important;min-height:32px!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle{min-height:32px!important}}
@media (max-width:440px){body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab{--ts73-key-h:clamp(14px,min(calc((100dvh - 420px)*.11 + 2px),5.2vw,24px),24px)}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-info strong{display:none!important}}
@media (max-height:500px){body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle{min-height:29px!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{height:29px!important;min-height:29px!important}}
@media (prefers-reduced-motion:reduce){body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab :is(.ts25-guide-fold,.ts24-guide-info,.ts24-guide-toggle){transition:none!important}}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab{--ts73-key-h:var(--ts73-fit-key,20px)!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{margin:0!important}
@media (max-width:440px) and (max-height:680px){body.tsnp-open.ts73-single.ts72-shell.ts27-home #ts24GuideLab .ts24-guide-head{min-height:30px!important;height:30px!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home #ts24GuideLab .ts24-guide-toggle{min-height:30px!important}}
@media (min-width:620px) and (max-height:500px){body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideLab{position:absolute!important;right:0!important;top:var(--ts73-guide-top,120px)!important;width:var(--ts73-side)!important;--ts73-key-h:var(--ts73-fit-key,14px)!important;padding:0!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideLab .ts24-guide-info strong{display:none!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout.lb-collapsed>.container #ts24GuideLab .ts24-guide-toggle{min-width:110px!important;font-size:.71rem!important;padding-inline:6px!important}}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts24-key-char{font-size:clamp(7px,calc(var(--ts73-key-h)*.49),14px)!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts24-key-special .ts24-key-char{font-size:clamp(5.5px,calc(var(--ts73-key-h)*.39),11px)!important;white-space:nowrap}
@media (min-width:620px) and (max-width:991px) and (max-height:500px){body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideLab{position:absolute!important;right:0!important;top:var(--ts73-guide-top,120px)!important;width:var(--ts73-side)!important;--ts73-key-h:var(--ts73-fit-key,14px)!important;padding:0!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideLab .ts24-guide-info strong{display:none!important}
body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open,.ts25-immersive)>.page-layout>.container #ts24GuideLab .ts24-guide-toggle{min-width:110px!important;font-size:.71rem!important;padding-inline:6px!important}}
@media (max-width:760px){body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{min-height:29px!important;height:29px!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle{min-height:29px!important;padding-block:3px!important}}
@media (min-width:761px){body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab .ts62-keyboard{padding-top:clamp(9px,calc(var(--ts73-key-h)*.34),14px)!important}}
@media (min-width:761px) and (max-height:800px){body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-head{height:29px!important;min-height:29px!important}
body.tsnp-open.ts73-single.ts72-shell #ts24GuideLab .ts24-guide-toggle{min-height:29px!important;padding-block:4px!important}}
@media (min-width:761px) and (max-height:800px){body.tsnp-open.ts73-single.ts72-shell.ts27-home:not(.mp-racing,.mp-preview,.mp-matchmaking,.mp-countdown-active,.ts23-lab-open:where(:not(.tsnp-open)),.ts23-result-open) #ts24GuideLab{padding-bottom:0!important}}

/* Nepali is a language mode of the original typing workspace, not a second page. */
body.tsnp-open.ts23-lab-open>.page-layout{grid-template-columns:minmax(0,1fr)!important;align-content:start!important;align-items:start!important;justify-content:stretch!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:none!important}
body.tsnp-open.ts23-lab-open>.page-layout>.container{display:flex!important;flex-direction:column!important;width:100%!important;max-width:1400px!important;margin:0 auto!important;padding:clamp(8px,1.6dvh,18px) 0 6px!important;gap:clamp(5px,.85dvh,10px)!important;align-self:start!important;justify-self:center!important;justify-content:flex-start!important;min-height:0!important;position:relative}
body.tsnp-open.ts23-lab-open>.page-layout>.container>.header{display:flex!important;min-height:36px!important;opacity:1;visibility:visible;pointer-events:auto}
body.tsnp-open .header #logoTitle,body.tsnp-open .header #logoSubtitle{font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,system-ui,sans-serif;letter-spacing:0!important}
body.tsnp-open .header #logoTitle{line-height:1.3!important}
body.tsnp-open.ts73-single.ts72-shell .header .logo #logoSubtitle{display:block!important;font-size:.79rem!important;font-weight:500!important;text-transform:none!important;line-height:1.35!important}
body.tsnp-open.ts23-lab-open #ts23Lab:not([hidden]){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px 14px!important;min-height:44px!important;margin:0!important;padding:0!important;max-width:none!important;width:100%!important;flex-shrink:0!important}
body.tsnp-open #ts23Lab .ts23-lab-head{display:block!important;flex:none!important}
body.tsnp-open #ts23Lab :is(#ts23LabTitle,#ts23LabBack,.ts23-lab-tabs,#ts23InputLabel){display:none!important}
body.tsnp-open #ts23LabDesc{font-weight:650;color:var(--sub);font-size:.78rem;white-space:nowrap}
body.tsnp-open #ts23Lab .ts23-lab-options{display:flex!important;align-items:center;gap:6px;font-size:.8rem;flex:none;min-width:0}
body.tsnp-open #ts23Choice,body.tsnp-open #tsnpTools select{font-size:.79rem;min-height:34px;padding:5px 8px;border-radius:8px;max-width:min(100%,250px)}
body.tsnp-open #tsnpTools{flex:1 1 auto;gap:6px 12px;min-width:0}
body.tsnp-open #tsnpTools .ts24-np-layout{flex:none;white-space:nowrap}
body.tsnp-open #tsnpTools .tsnp-personal{font-size:.7rem;white-space:normal;min-width:0;flex:0 1 auto}
body.tsnp-open #tsnpDuration{gap:3px;border:1px solid var(--border);border-radius:10px;padding:3px;background:var(--surface)}
body.tsnp-open #tsnpDuration button{padding:5px 8px;min-height:30px;box-shadow:none;border:0;border-radius:6px;background:var(--surface2);font-weight:700}
body.tsnp-open #tsnpDuration button[aria-pressed=true]{background:var(--accent-soft)!important;color:var(--accent)!important}
body.tsnp-open #ts23Lab #ts23New{min-height:34px}
body.tsnp-open.ts23-lab-open>.page-layout>.container>:is(#statsBar,#typingContainer,#progressBarWrap){width:100%!important;max-width:none!important;flex-shrink:0!important;align-self:stretch!important}
body.tsnp-open.ts23-lab-open>.page-layout>.container>#statsBar{display:flex!important;align-items:center!important;justify-content:flex-start!important;margin:0!important;min-height:38px!important}
body.tsnp-open #statsBar>:not(#tsnpClockRow){display:none!important}
body.tsnp-open #tsnpClockRow{display:flex!important;align-items:center;gap:12px;width:100%;min-height:38px}
body.tsnp-open #tsnpClockRow .timer-wrapper{flex:none;min-width:74px}
body.tsnp-open #tsnpClockRow .timer-digital{font-family:var(--mono);font-size:1.12rem;font-weight:750;color:var(--accent);background:transparent;border:0;box-shadow:none;min-width:74px;padding:5px 8px;text-align:center}
body.tsnp-open #tsnpClockRow .timer-digital.warning{color:var(--wrong)}
body.tsnp-open #tsnpClockRow .timer-digital.medium{color:var(--warning)}
body.tsnp-open #tsnpClockRow .tsnp-clock-hidden{visibility:hidden}
body.tsnp-open #tsnpClockRow .tsnp-clock-actions{display:flex;align-items:center;gap:6px}
body.tsnp-open #tsnpClockRow .ts20-btn{color:var(--sub);border:0;background:transparent;box-shadow:none;font-size:.78rem;font-weight:650;min-height:32px;padding:6px 10px}
body.tsnp-open #tsnpClockRow .ts20-btn:hover{background:var(--accent-soft);color:var(--accent)}
body.tsnp-open.ts23-lab-open>.page-layout>.container>#typingContainer{display:flex!important;align-items:center!important;position:relative;overflow:hidden!important;border:1px solid var(--border)!important;border-radius:var(--ts72-radius,var(--radius-lg))!important;background-color:var(--surface)!important;box-shadow:none!important;transform:none!important;min-width:0!important}
body.tsnp-open #typingContainer>:not(#wordsDisplay,#ts23Input){display:none!important}
body.tsnp-open #wordsDisplay{display:block!important;width:100%!important;min-width:0!important;position:relative;overflow:hidden!important;font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,system-ui,sans-serif!important;letter-spacing:0!important}
body.tsnp-open #wordsDisplay>:not(#ts23Target,#tsnpCursor){display:none!important}
body.tsnp-open #ts23Target{position:relative;display:block;width:100%;height:100%!important;min-height:0!important;max-height:none!important;padding:0 2px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:hidden!important;scrollbar-width:none!important;white-space:pre-wrap;overflow-wrap:normal;word-break:normal;color:var(--muted);font-family:inherit;font-size:inherit!important;line-height:inherit!important;font-weight:400;letter-spacing:0;text-align:left;user-select:none;cursor:text}
body.tsnp-open #ts23Target::-webkit-scrollbar{display:none}
body.tsnp-open #ts23Target .tsnp-word{display:inline-block;white-space:nowrap;max-width:100%;vertical-align:baseline}
body.tsnp-open #ts23Target .ts23-correct{color:var(--correct)}
body.tsnp-open #ts23Target .ts23-wrong{color:var(--wrong);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.tsnp-open #ts23Target .ts23-current{background:var(--accent-soft);color:var(--text);border-radius:3px}
/* The native cursor stays mounted while the active Unicode grapheme changes.
   It uses the English caret's exact geometry, easing, idle and comfort settings. */
body.tsnp-open #tsnpCursor{position:absolute;pointer-events:none;left:0;top:0;display:inline-block;width:2px;height:var(--ts25-caret-height,1em);box-sizing:border-box;border-radius:1px;background:var(--cursor-c);box-shadow:none;will-change:transform;z-index:20;transition-property:transform;transition-timing-function:cubic-bezier(.445,.05,.55,.95);transition-duration:0ms}
body.tsnp-open #tsnpCursor[hidden]{display:none!important}
body.tsnp-open #tsnpCursor.idle{animation:tsCaretBlink 1s ease-in-out infinite}
body.tsnp-open[data-ts20-caret=block] #tsnpCursor{width:var(--ts25-caret-width,1ch);background:var(--accent-soft);border:1px solid var(--cursor-c);border-radius:2px}
body.tsnp-open[data-ts20-caret=underline] #tsnpCursor{width:var(--ts25-caret-width,1ch);background:transparent;box-shadow:inset 0 -2px 0 var(--cursor-c);border-radius:0}
body.tsnp-open[data-ts20-caret=block] #ts23Target .ts23-current,body.tsnp-open[data-ts20-caret=underline] #ts23Target .ts23-current{background:transparent}
body.tsnp-open:has(#ts20Comfort[aria-expanded="true"],#ts21Practice[aria-expanded="true"],#ts24Options[aria-expanded="true"],#resultOverlay.show,#tsnpCustomDialog[open]) #tsnpCursor{visibility:hidden!important;opacity:0!important;animation:none!important}
/* The real editable field stays available to mobile keyboards, assistive tech and IME.
   Only its duplicate visual box is removed; the passage itself is the focus target. */
body.tsnp-open #typingContainer #ts23Input{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;min-height:1px!important;max-height:1px!important;min-width:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;border:0!important;outline:0!important;resize:none!important;color:transparent!important;caret-color:transparent!important;box-shadow:none!important;font-size:16px!important;overflow:hidden!important}
body.tsnp-open.ts23-lab-open>.page-layout>.container>#progressBarWrap{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;margin:0!important;height:auto!important;min-height:24px!important;overflow:visible!important}
body.tsnp-open #progressBarWrap>:not(#tsnpProgressTrack,.ts23-lab-stats){display:none!important}
body.tsnp-open #tsnpProgressTrack{height:4px;border-radius:8px;background:var(--surface2);overflow:hidden;width:100%}
body.tsnp-open #tsnpProgressTrack>div{width:0;height:100%;background:var(--accent);transition:width .2s ease;border-radius:inherit}
body.tsnp-open #progressBarWrap .ts23-lab-stats{display:flex!important;align-items:center;justify-content:space-between;gap:6px;min-height:16px;width:100%;color:var(--sub);font-size:.76rem;line-height:1.3}
body.tsnp-open #progressBarWrap .ts23-lab-stats>div{display:flex!important;gap:4px!important;align-items:baseline;padding:0!important;margin:0!important;border:0!important;white-space:nowrap}
body.tsnp-open #progressBarWrap .ts23-lab-stats strong{font:700 .82rem/1.3 var(--sans)!important;color:var(--accent)}
body.tsnp-open #progressBarWrap .ts23-lab-stats span{font-size:.72rem!important;color:var(--sub)}
body.tsnp-open #progressBarWrap #ts25LabExit{display:none!important}
body.tsnp-open #ts24GuideMain,body.tsnp-open #hintRow,body.tsnp-open #settingBar,body.tsnp-open #ts21GhostTrack,body.tsnp-open #mpRaceTrack{display:none!important}
body.tsnp-open #ts24GuideLab{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;width:100%!important;max-width:none!important;margin:0!important;flex-shrink:0!important;overflow:visible!important;--ts73-key-h:var(--ts73-fit-key,clamp(14px,2.8vh,28px))!important}
body.tsnp-open #ts24GuideLab .ts24-key{height:var(--ts73-key-h)!important;min-height:0!important}
body.tsnp-open #ts24GuideLab .ts24-key.ts24-space{height:calc(var(--ts73-key-h)*.8)!important}
body.tsnp-open #ts24GuideLab .ts24-guide-head{margin:0!important}
body.tsnp-open #ts23LabNote{font-size:.72rem;line-height:1.3;color:var(--sub);margin:0;min-height:0}
body.tsnp-open #ts23LabEnd:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:.8rem;flex-wrap:wrap}
/* Match the normal typing fade; never move the passage during active input. */
body.tsnp-open :is(#ts23Topbar,#tsSidebar,#tsMenuBtn,#tsSbBackdrop,.page-layout>.container>.header,#ts23Lab,#tsnpClockRow .tsnp-clock-actions,#ts24GuideLab .ts24-guide-head,#ts23LabNote,#ts28Footer){transition:opacity .32s ease-in-out,visibility 0s linear!important}
body.tsnp-open.tsnp-running :is(#ts23Topbar,#tsSidebar,#tsMenuBtn,#tsSbBackdrop,.page-layout>.container>.header,#ts23Lab,#tsnpClockRow .tsnp-clock-actions,#ts24GuideLab .ts24-guide-head,#ts23LabNote,#ts28Footer){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .32s ease-in-out,visibility 0s linear .32s!important}
body.tsnp-open.tsnp-running #tsnpClockRow .tsnp-clock-hidden{visibility:visible}
@media(min-width:620px) and (max-height:500px){body.tsnp-open.ts23-lab-open>.page-layout>.container>:is(#typingContainer,#progressBarWrap){width:calc(100% - var(--ts73-side,42%) - 12px)!important;align-self:flex-start!important}body.tsnp-open #ts24GuideLab{position:absolute!important;right:0!important;top:var(--ts73-guide-top,110px)!important;width:var(--ts73-side,42%)!important}body.tsnp-open #ts23LabNote{max-width:calc(100% - var(--ts73-side,42%) - 12px)}}
@media(max-width:760px){body.tsnp-open.ts23-lab-open>.page-layout>.container{padding-block:6px!important;gap:5px!important}body.tsnp-open #ts23Lab:not([hidden]){gap:4px 8px!important}body.tsnp-open #ts23Lab .ts23-lab-head{flex-basis:100%!important}body.tsnp-open #ts23Lab .ts23-lab-options{flex:1 1 auto;font-size:.72rem;gap:4px}body.tsnp-open #ts23Choice,body.tsnp-open #tsnpTools select{min-height:30px;padding:4px 6px;font-size:.72rem;max-width:100%}body.tsnp-open #ts23Lab #ts23New{min-height:30px;font-size:.7rem;padding:4px 6px}body.tsnp-open #tsnpTools{flex:1 1 100%;font-size:.72rem;gap:4px 8px}body.tsnp-open #tsnpTools .tsnp-personal{font-size:.65rem;flex:1 1 100%}body.tsnp-open #tsnpClockRow{min-height:32px;gap:5px}body.tsnp-open #tsnpClockRow .ts20-btn{min-height:29px;font-size:.71rem;padding:4px 6px}body.tsnp-open #tsnpClockRow .timer-digital{font-size:1rem;min-width:60px}body.tsnp-open #ts23LabNote{font-size:.67rem}}
@media(max-height:680px){body.tsnp-open.ts23-lab-open>.page-layout>.container{padding-block:4px!important;gap:4px!important}body.tsnp-open #ts23Lab:not([hidden]){min-height:34px!important}body.tsnp-open #tsnpClockRow{min-height:30px}body.tsnp-open #ts23LabNote{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){body.tsnp-open #tsnpCursor{animation:none!important;transition:none!important}body.tsnp-open :is(#ts23Topbar,#tsSidebar,#tsMenuBtn,#tsSbBackdrop,.page-layout>.container>.header,#ts23Lab,#tsnpClockRow .tsnp-clock-actions,#ts24GuideLab .ts24-guide-head,#ts23LabNote,#ts28Footer,#tsnpProgressTrack>div){transition:none!important}}

/* Final native layout corrections: keep the same viewport and timer geometry. */
body.tsnp-open.ts23-lab-open{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important}
body.tsnp-open.ts23-lab-open>.page-layout{flex:1 1 0!important;min-height:0!important;padding:0 var(--ts72-gutter,32px)!important;align-content:start!important;overflow-y:auto!important}
body.tsnp-open.ts23-lab-open>.page-layout>.container{flex:0 0 auto!important;max-width:1400px!important;padding-top:clamp(8px,1.6dvh,18px)!important;gap:clamp(5px,.85dvh,10px)!important}
body.tsnp-open.ts73-single.ts72-shell .header .logo{background:none!important;align-items:center!important;gap:1px!important;margin:0!important;padding:0!important}
body.tsnp-open.ts73-single.ts72-shell .header .logo #logoTitle{font-size:clamp(1.28rem,1.75vw,1.65rem)!important;line-height:1.25!important;margin:0!important}
body.tsnp-open.ts73-single.ts72-shell .header .logo #logoSubtitle{font-size:.76rem!important;letter-spacing:0!important;line-height:1.3!important;margin:0!important}
body.tsnp-open.ts23-lab-open>.page-layout>.container>.header{padding:0!important;min-height:36px!important;height:auto!important;gap:8px!important;margin:0!important}
body.tsnp-open #statsBar #tsnpClockRow{display:flex!important;min-height:32px!important;width:100%!important}
body.tsnp-open #statsBar #tsnpClock{font-size:1.12rem!important;min-width:74px!important;padding:5px 8px!important;line-height:1.2!important}
body.tsnp-open #progressBarWrap{background:none!important;border:0!important;box-shadow:none!important}
body.tsnp-open #typingContainer #ts23Target .tsnp-word{max-width:none;white-space:nowrap}
body.tsnp-open #typingContainer #ts23Target{padding:0 1px!important}
body.tsnp-open #ts23LabNote{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
body.tsnp-open #ts24GuideLab .ts24-guide-info strong{display:none!important}
@media(max-width:760px){body.tsnp-open.ts23-lab-open>.page-layout>.container{padding-top:6px!important;gap:5px!important}body.tsnp-open.ts73-single.ts72-shell .header .logo #logoTitle{font-size:1.38rem!important}body.tsnp-open #ts23Lab .ts23-lab-head{display:block!important;flex-basis:auto!important}body.tsnp-open #ts23Lab .ts23-lab-options{flex:1 1 auto!important}body.tsnp-open #ts23LabDesc{font-size:.69rem}body.tsnp-open #tsnpTools .tsnp-personal{font-size:.62rem;flex:0 1 auto;margin-left:auto}body.tsnp-open #statsBar #tsnpClock{font-size:1rem!important;min-width:60px!important}body.tsnp-open #ts23Lab #ts23New{min-height:29px!important}body.tsnp-open #tsnpTools .ts24-np-layout select{max-width:170px}}
@media(max-width:540px){body.tsnp-open #ts23Lab .ts23-lab-head{flex-basis:100%!important}body.tsnp-open #ts23Lab .ts23-lab-options{width:100%!important;flex:1 1 100%!important}body.tsnp-open #ts23Choice{min-width:0;flex:1 1 110px}body.tsnp-open #tsnpTools .tsnp-personal{display:none}body.tsnp-open #ts23Lab #tsnpDuration{gap:2px;padding:2px}body.tsnp-open #ts23Lab #tsnpDuration button{min-height:26px!important;padding:4px 5px}body.tsnp-open #ts24GuideLab .ts24-guide-head{min-height:28px!important;height:28px!important}}
@media(max-height:680px){body.tsnp-open.ts23-lab-open>.page-layout>.container{padding-top:4px!important;gap:4px!important}body.tsnp-open.ts73-single.ts72-shell .header .logo #logoTitle{font-size:1.28rem!important}body.tsnp-open.ts73-single.ts72-shell .header .logo #logoSubtitle{font-size:.68rem!important}body.tsnp-open #statsBar #tsnpClockRow{min-height:28px!important}body.tsnp-open #statsBar #tsnpClock{padding-block:3px!important}}

body.tsnp-open #ts24GuideLab .ts24-keyboard{--ts47-lab-key-h:var(--ts73-key-h)!important;max-width:min(100%,calc(var(--ts73-key-h)*20.5))!important}
body.tsnp-open #ts24GuideLab .ts24-key{height:var(--ts73-key-h)!important}
body.tsnp-open #ts24GuideLab .ts24-key.ts24-space{height:calc(var(--ts73-key-h)*.8)!important}
/* Prevent a reserved root scrollbar from narrowing the language mode. */
html:has(body.tsnp-open){scrollbar-gutter:auto!important;overflow:hidden!important}
@media(min-width:761px) and (max-height:680px){body.tsnp-open #ts23LabDesc{display:none}body.tsnp-open #ts23Lab:not([hidden]){gap:4px 7px!important}body.tsnp-open #ts23Lab .ts23-lab-options{gap:4px}body.tsnp-open #tsnpTools{gap:4px 6px}body.tsnp-open #tsnpTools .tsnp-personal{display:none}body.tsnp-open #ts23Choice,body.tsnp-open #tsnpTools select{font-size:.73rem;min-height:30px;padding:4px 5px}body.tsnp-open #ts23Lab #ts23New{min-height:30px;font-size:.72rem;padding:4px 6px}}

/* Nepali starter course: compact controls; the original typing stage and caret are untouched. */
#tsnpLessonHint[hidden],#tsnpNextLesson[hidden]{display:none!important}
.tsnp-result-actions{display:contents}
body.tsnp-open.tsnp-beginner #tsnpLessonHint{font-size:.74rem;color:var(--sub);min-width:0;line-height:1.25;white-space:normal}
body.tsnp-open.tsnp-beginner #tsnpPersonal{color:var(--accent);font-weight:650}
body.tsnp-open.tsnp-beginner #tsnpNextLesson{background:var(--accent);color:var(--surface);border-color:var(--accent);font-weight:750}
body.tsnp-open.tsnp-beginner #ts23LabEnd .tsnp-result-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.tsnp-open.tsnp-beginner.tsnp-running #ts24GuideLab .ts24-guide-head{opacity:1!important;visibility:visible!important;transition:opacity .32s ease-in-out!important;pointer-events:none!important}
body.tsnp-open.tsnp-beginner.tsnp-running #ts24GuideLab .ts24-guide-toggle{visibility:hidden!important;opacity:0!important}
body.tsnp-open.tsnp-beginner #ts24GuideLab .ts24-next{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
body.tsnp-open.tsnp-beginner.tsnp-running #tsnpLessonHint{visibility:hidden;opacity:0}
@media(max-width:540px){body.tsnp-open.tsnp-beginner #tsnpTools .tsnp-personal{display:inline!important;font-size:.65rem;flex:0 0 auto;margin-left:auto}body.tsnp-open.tsnp-beginner #tsnpLessonHint{font-size:.65rem}body.tsnp-open.tsnp-beginner #tsnpClockRow{gap:4px!important}body.tsnp-open.tsnp-beginner #tsnpClockRow .ts20-btn{padding-inline:4px!important}}

/* Completion replaces the instructional timer actions, not the typing surface or keyboard. */
body.tsnp-open.tsnp-beginner #tsnpClockRow .ts20-restart{display:none!important}
body.tsnp-open.tsnp-course-done #tsnpClockRow .tsnp-clock-actions,body.tsnp-open.tsnp-course-done #tsnpLessonHint{display:none!important}
body.tsnp-open.tsnp-course-done #tsnpClockRow #ts23LabEnd:not([hidden]){flex:1 1 auto;min-width:0;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;gap:5px 10px!important}
body.tsnp-open.tsnp-course-done #tsnpClockRow #ts23LabSummary{color:var(--accent);font-size:.78rem;line-height:1.3;min-width:0}
body.tsnp-open.tsnp-course-done #tsnpClockRow #tsnpNextLesson{background:var(--accent)!important;color:var(--surface)!important;border-color:var(--accent)!important}
@media(max-width:540px){body.tsnp-open.tsnp-course-done #tsnpClockRow #ts23LabSummary{font-size:.72rem}body.tsnp-open.tsnp-course-done #tsnpClockRow #ts23LabEnd{gap:4px!important}body.tsnp-open.tsnp-course-done #tsnpClockRow #ts23LabEnd .ts20-btn{font-size:.7rem}}

/* Bilingual story practice: native typing area, compact controls. */
.ts-story-controls[hidden],.ts-story-finish[hidden],#tsnpDuration [hidden]{display:none!important}
.ts-story-controls{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;flex:0 1 auto;color:var(--sub);font-size:.76rem;line-height:1.2}
.ts-story-controls select{min-width:0;max-width:240px;flex:1 1 auto;padding:5px 7px;min-height:30px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font:inherit}
.ts-story-controls label,.ts-story-controls button{flex:none;white-space:nowrap}
body.ts-story-en #statsBar .timer-wrapper{display:flex!important;align-items:center;gap:6px}
body.ts-story-en #tsStoryFinish:not([hidden]),body.tsnp-open #tsnpStoryFinish:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;min-height:28px;padding:3px 8px;font-weight:700;white-space:nowrap;visibility:visible!important;opacity:1!important;pointer-events:auto!important;border:1px solid var(--border);border-radius:7px;color:var(--accent);background:var(--surface);box-shadow:none}
body.tsnp-open #tsnpStoryControls{flex:1 1 160px}
body.ts-story-en #presetOpts [data-val="unlimited"]{min-width:fit-content!important;white-space:nowrap}
@media(max-width:760px){body.ts-story-en #tsStoryControls{width:100%;max-width:100%;justify-content:flex-start;flex:1 1 100%}.ts-story-controls select{max-width:100%}body.ts-story-en #presetOpts [data-val="unlimited"]{font-size:.7rem!important}body.tsnp-open #tsnpDuration{flex-wrap:wrap}body.tsnp-open #tsnpDuration button{min-height:25px;padding:3px 6px!important}body.tsnp-open #tsnpStoryControls{flex-basis:100%}}

body.ts-story-en #statsBar .timer-wrapper{flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important}

/* Dedicated lesson review: the keyboard slot becomes a full-width result card. */
.tsnp-lesson-details[hidden]{display:none!important}
body.tsnp-open.tsnp-lesson-results #ts24GuideLab{display:none!important}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd:not([hidden]){
 display:grid!important;grid-template-columns:minmax(0,1fr);gap:clamp(7px,1.1dvh,12px)!important;
 width:min(100%,760px)!important;max-width:100%!important;box-sizing:border-box;align-self:center;flex:none!important;
 padding:clamp(10px,1.7dvh,18px) clamp(12px,2vw,24px)!important;margin:0 auto!important;
 border:1px solid var(--border)!important;border-radius:14px!important;background:var(--surface)!important;color:var(--text);
 animation:tsnp-review-in .2s ease-out both;outline:none;
}
@keyframes tsnp-review-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
body.tsnp-open.tsnp-lesson-results #ts23LabSummary{display:block;font-size:clamp(1.02rem,1.6vw,1.3rem)!important;line-height:1.25;color:var(--accent);text-align:center;font-weight:750}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-details{display:grid;gap:8px;min-width:0}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:var(--accent-soft);border:1px solid var(--border);border-radius:8px;padding:8px 3px;min-width:0;text-align:center}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats span{font-size:.72rem;line-height:1.15;color:var(--sub)}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats strong{font-size:clamp(.95rem,1.7vw,1.3rem);line-height:1.15;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.tsnp-open.tsnp-lesson-results .tsnp-lesson-advice{margin:0;text-align:center;font-size:.82rem;line-height:1.35;color:var(--sub)}
body.tsnp-open.tsnp-lesson-results .tsnp-course-progress{display:grid;grid-template-columns:auto minmax(50px,1fr);gap:8px;align-items:center;font-size:.74rem;font-weight:600;color:var(--sub)}
body.tsnp-open.tsnp-lesson-results .tsnp-course-progress progress{appearance:none;width:100%;height:7px;accent-color:var(--accent);border:0;border-radius:99px;background:var(--accent-soft);overflow:hidden}
body.tsnp-open.tsnp-lesson-results .tsnp-course-progress progress::-webkit-progress-bar{background:var(--accent-soft);border-radius:99px}
body.tsnp-open.tsnp-lesson-results .tsnp-course-progress progress::-webkit-progress-value{background:var(--accent);border-radius:99px}
body.tsnp-open.tsnp-lesson-results .tsnp-course-progress progress::-moz-progress-bar{background:var(--accent);border-radius:99px}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd .tsnp-result-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:stretch}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd .ts20-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px!important;padding:9px 12px!important;font-size:.91rem!important;line-height:1.2;font-weight:700;border-radius:9px!important;white-space:normal;transition:background-color .16s,transform .16s}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd :is(#ts23Again,#tsnpNextLesson){background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important;opacity:1;cursor:pointer}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd :is(#ts23Again.tsnp-retry-primary,#tsnpNextLesson.tsnp-next-primary){background:#18734c!important;color:#fff!important;border-color:#18734c!important}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd .ts20-btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd .ts20-btn:not(:disabled):active{transform:scale(.98)}
body.tsnp-open.tsnp-lesson-results #ts23LabEnd .tsnp-result-actions:has(#tsnpNextLesson[hidden]){grid-template-columns:1fr}
@media(max-width:540px){body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats{gap:4px}body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats>div{padding:6px 2px}body.tsnp-open.tsnp-lesson-results .tsnp-course-progress{grid-template-columns:1fr;gap:4px}body.tsnp-open.tsnp-lesson-results .tsnp-lesson-advice{font-size:.75rem}body.tsnp-open.tsnp-lesson-results #ts23LabEnd .ts20-btn{padding-inline:6px!important;font-size:.82rem!important}}
@media(prefers-reduced-motion:reduce){body.tsnp-open.tsnp-lesson-results #ts23LabEnd{animation:none}}

/* On short screens reserve space for the review instead of the hidden keyboard. */
@media(min-width:620px) and (max-height:680px){
 body.tsnp-open.tsnp-lesson-results.ts23-lab-open>.page-layout>.container>:is(#typingContainer,#progressBarWrap){width:100%!important;align-self:stretch!important}
 body.tsnp-open.tsnp-lesson-results #ts23LabEnd:not([hidden]){padding-block:8px!important;gap:6px!important}
 body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats>div{padding-block:5px}
 body.tsnp-open.tsnp-lesson-results .tsnp-lesson-details{gap:5px}
}
@media(max-width:540px){body.tsnp-open.tsnp-lesson-results .tsnp-lesson-stats strong{font-size:.9rem;letter-spacing:-.025em}}

/* One-pass stories and accessible library pickers. */
body.ts-story-en #settingBar .ts72-preset-strip{display:none!important}
body.ts-story-en #tsStoryControls>label,body.tsnp-open #tsnpStoryControls>label,body.tsnp-open #ts23ChoiceLabel{display:none!important}
.ts-story-mode-note{font-size:.72rem;font-weight:650;color:var(--sub);white-space:nowrap}
select.ts-picker-native{display:none!important}
.ts-picker-trigger[hidden]{display:none!important}
.ts-picker-trigger{display:flex!important;align-items:center;gap:9px;min-width:0;min-height:43px;width:clamp(168px,22vw,310px);max-width:100%;padding:6px 10px!important;border:1px solid var(--border)!important;border-radius:11px!important;background:var(--surface)!important;color:var(--text)!important;text-align:left;cursor:pointer;box-shadow:none!important;transition:border-color .16s,background-color .16s,transform .16s!important;font-family:inherit}
.ts-picker-trigger:hover,.ts-picker-trigger:focus-visible{border-color:var(--accent)!important;background:var(--accent-soft)!important;outline:none}
.ts-picker-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:8px;background:var(--accent-soft);color:var(--accent)}
.ts-picker-icon svg{width:17px;height:17px}.ts-picker-trigger-copy{display:grid;gap:2px;flex:1;min-width:0}.ts-picker-kicker{color:var(--sub);font-size:.62rem;font-weight:700;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ts-picker-trigger strong{font-size:.82rem;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.ts-picker-chevron{flex:none;width:15px;height:15px;color:var(--sub)}
.ts-picker-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:min(650px,calc(100dvh - 28px));padding:18px!important;margin:auto!important;border:1px solid var(--border)!important;border-radius:18px!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:0 18px 70px #0004!important;overflow:hidden;font-family:inherit;text-align:left}
.ts-picker-dialog:not([open]){display:none!important}.ts-picker-dialog[open]{display:flex!important;flex-direction:column;gap:12px;animation:tsnp-review-in .18s ease-out}.ts-picker-dialog::backdrop{background:rgba(12,18,28,.55);backdrop-filter:blur(4px)}
.ts-picker-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.ts-picker-head>div{min-width:0}.ts-picker-eyebrow{color:var(--accent);font-size:.65rem;font-weight:800;letter-spacing:.12em}.ts-picker-head h2{color:var(--text);font-size:1.35rem;margin:3px 0;font-weight:750;line-height:1.25}.ts-picker-head p{color:var(--sub);font-size:.81rem;line-height:1.45;margin:3px 0}.ts-picker-close{width:32px;height:32px;flex:none;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:1.35rem;cursor:pointer}.ts-picker-search{display:flex;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--sub)}.ts-picker-search:focus-within{border-color:var(--accent)}.ts-picker-search svg{width:19px;height:19px;flex:none}.ts-picker-search input{width:100%;min-width:0;background:transparent;border:0!important;outline:0!important;color:var(--text);font:inherit;font-size:.87rem;box-shadow:none!important}.ts-picker-status,.ts-picker-foot{font-size:.73rem;color:var(--sub)}.ts-picker-list{display:grid;gap:5px;align-content:start;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}.ts-picker-group{color:var(--sub);font-size:.74rem;font-weight:700;margin:11px 0 3px}.ts-picker-group:first-child{margin-top:0}.ts-picker-option{display:flex;gap:10px;align-items:center;width:100%;padding:8px 10px!important;min-height:45px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);text-align:left;cursor:pointer;font-family:inherit}.ts-picker-option:hover,.ts-picker-option:focus-visible,.ts-picker-option[aria-current="true"]{background:var(--accent-soft);border-color:var(--accent);outline:none}.ts-picker-number{display:grid;place-items:center;min-width:30px;height:29px;border-radius:7px;background:var(--accent-soft);color:var(--accent);font-size:.75rem;font-weight:750;font-variant-numeric:tabular-nums;flex:none}.ts-picker-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.86rem;font-weight:600}.ts-picker-indicator{font-size:.72rem;color:var(--sub);white-space:nowrap;flex:none}.ts-picker-done,.ts-picker-option[aria-current="true"] .ts-picker-indicator{color:var(--accent);font-weight:700}.ts-picker-empty{margin:12px 0;text-align:center;color:var(--sub);font-size:.85rem}
body.tsnp-open.tsnp-story-results #ts24GuideLab{display:none!important}body.tsnp-open.tsnp-story-results #ts23LabEnd:not([hidden]){display:grid!important;gap:12px!important;width:min(100%,680px)!important;margin:0 auto!important;padding:18px!important;text-align:center;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:14px!important;outline:none}body.tsnp-open.tsnp-story-results #ts23LabSummary{font-size:1rem;font-weight:750;color:var(--accent)}body.tsnp-open.tsnp-story-results #ts23LabEnd .tsnp-result-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.tsnp-open.tsnp-story-results #ts23LabEnd .ts20-btn{min-height:42px;font-size:.9rem;font-weight:700;border-radius:9px}body.tsnp-open.tsnp-story-results #tsnpResultNextStory{background:var(--accent);color:var(--on-accent,var(--surface));border-color:var(--accent)}
@media(max-width:760px){body.ts-story-en #settingBar #tsStoryControls{flex:1 1 100%;width:100%;flex-wrap:wrap}body.ts-story-en #tsStoryControls .ts-picker-trigger,body.tsnp-open #tsnpStoryControls .ts-picker-trigger{flex:1;width:auto}body.tsnp-open #ts23Lab .ts23-lab-options .ts-picker-trigger{flex:1;width:auto}body.tsnp-open #ts23Lab .ts23-lab-options{min-width:0}.ts-story-mode-note{font-size:.65rem}.ts-picker-dialog{padding:14px!important;gap:9px}.ts-picker-head h2{font-size:1.15rem}.ts-picker-option{min-height:42px}.ts-picker-trigger{min-height:39px;padding:4px 7px!important}.ts-picker-icon{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.ts-picker-dialog[open]{animation:none}}
