/* Generated from ui/legacy/site-study-navigation-icons.css. Legacy isolation; use ui/ for new design. */
@layer study-legacy {
/* Shared navigation controls use the same visual weight and touch targets. */
.study-global-nav .study-nav-icon{width:20px;height:20px;flex:0 0 20px;stroke-width:1.6}
.study-global-nav a>span{min-width:0}
.study-global-nav .study-module-switch a{gap:8px}
.study-global-nav .study-module-switch .study-nav-icon{width:16px;height:16px;flex-basis:16px}
.study-global-bar .study-account-control,.study-global-bar .study-menu-control,.study-global-nav .study-menu-close{
 box-sizing:border-box;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--product-line,var(--linen-line,#dedbd1));border-radius:10px;background:var(--product-surface,var(--linen-surface,#fffefa));color:var(--product-ink,var(--linen-ink,#191919));text-decoration:none
}
.study-global-bar .study-account-control{display:inline-flex}
.study-global-bar .study-nav-icon,.study-menu-close .study-nav-icon{width:20px;height:20px;flex:none}
.study-global-bar .study-account-control:hover,.study-global-bar .study-menu-control:hover,.study-global-nav .study-menu-close:hover{border-color:var(--product-gold,var(--linen-gold,#b89942))}
.study-global-bar .study-account-control:focus-visible,.study-global-bar .study-menu-control:focus-visible,.study-global-nav .study-menu-close:focus-visible{outline:3px solid var(--product-gold,var(--linen-gold,#b89942));outline-offset:3px}
.study-global-nav .study-menu-close{align-self:flex-end}
.study-menu-open .study-bottom-dock{display:none!important}
.study-unified :is([data-sp="mode:guided"],[data-sp="mode:typed"]){display:inline-flex;align-items:center;justify-content:center;gap:8px}
.study-unified :is([data-sp="mode:guided"],[data-sp="mode:typed"]) svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Phone workspace: all global destinations stay within thumb reach. */
@media (max-width:650px){
 .study-unified{--study-app-dock:calc(68px + env(safe-area-inset-bottom))}
 .study-unified .study-global-bar{display:none!important}
 .study-unified .study-bottom-dock,.study-unified.product-focus .study-bottom-dock{display:flex!important;box-sizing:border-box;height:var(--study-app-dock);padding:5px 4px calc(5px + env(safe-area-inset-bottom));gap:0;align-items:stretch}
 .study-unified .study-bottom-dock>a,.study-unified .study-bottom-dock>button{box-sizing:border-box;display:flex;flex:1 1 0;min-width:0;max-width:none;min-height:48px;margin:0;padding:3px 1px;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:0;border-radius:9px;background:transparent;color:var(--product-muted,var(--linen-muted,#625e55));font:inherit;text-decoration:none;cursor:pointer}
 .study-unified .study-bottom-dock>a[aria-current=page]{background:var(--product-soft,var(--linen-pale,#f3eace));color:var(--product-ink,var(--linen-ink,#191919))}
 .study-unified .study-bottom-dock>a>span{font-size:10px;line-height:1.05;text-align:center;overflow-wrap:anywhere}
 .study-unified .study-bottom-dock svg{width:20px;height:20px;flex:none}
 .study-unified .study-bottom-dock :is(.study-language-button,.study-account-control,.study-menu-control){min-width:0;width:auto;height:auto}
 .study-unified .study-bottom-dock .study-language-name{display:none}
 .study-unified .study-bottom-dock :is(a,button):focus-visible{outline:3px solid var(--product-gold,#b89942);outline-offset:-3px}
 .study-unified:not(.product-focus),.study-unified.product-focus{padding-bottom:var(--study-app-dock)}
 .study-unified.study-menu-open .study-bottom-dock{display:none!important}
 .study-unified .study-global-nav.is-open{inset:auto 0 0;width:100%;max-height:92dvh;padding:24px 20px calc(24px + env(safe-area-inset-bottom));border:1px solid var(--product-line,var(--linen-line,#dedbd1));border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 0 0 100vmax #19191980;overscroll-behavior:contain}
 .study-unified .study-global-nav .study-menu-close{position:absolute;top:16px;right:16px;display:inline-flex}
 .study-unified .study-global-nav .study-global-brand{margin:0 56px 12px 0}
 .study-unified .study-global-nav .product-primary{margin-top:0}
 .study-unified .sp-work .sp-action-dock{bottom:var(--study-app-dock);padding-bottom:10px}
 .study-unified.study-mode .sp-frame.sp-work{padding-bottom:calc(var(--sp-dock-space,156px) + var(--study-app-dock))}
 .study-unified.compact-exam .exam-stepper{bottom:var(--study-app-dock);padding-bottom:12px}
 .study-unified.compact-exam main{padding-bottom:calc(var(--exam-dock,80px) + var(--study-app-dock) + 24px)}
 .study-unified.paired-listening.compact-exam #main{height:calc(100dvh - var(--study-app-dock))}
 .study-unified :is(.sp-guide-footer,.speaking-guide-actions,.conversation-actions){bottom:var(--study-app-dock)}
}

/* Localized language names must stay readable on narrow screens. */
@media (max-width:600px){
 dialog.study-language-dialog{box-sizing:border-box;max-width:calc(100vw - 32px);overflow-x:hidden}
 .study-language-dialog .study-language-list{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;overflow-x:hidden;overflow-y:auto}
 .study-language-dialog .study-language-list button{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:359px){.study-language-dialog .study-language-list{grid-template-columns:minmax(0,1fr)}}

@media (max-width:650px){
 /* The exercise action bar must sit above, not behind, the global dock. */
 body.study-unified.study-mode .sp-work .sp-action-dock{bottom:var(--study-app-dock);padding-bottom:10px}
 body.study-unified.study-mode .sp-work .sp-toolbar{gap:4px;padding-inline:8px;min-width:0}
 body.study-unified.study-mode .sp-work .sp-toolbar .sp-title{flex:1 1 0;min-width:0}
 body.study-unified.study-mode .sp-work .sp-toolbar .sp-title h1{font-size:clamp(17px,5vw,21px);overflow-wrap:anywhere}
 body.study-unified.study-mode .sp-work .sp-toolbar>.sp-icon{flex:0 0 40px;box-sizing:border-box;width:40px;min-width:40px;padding:8px}
 body.study-unified.study-mode .sp-work .sp-counts{flex:0 1 auto;gap:3px;font-size:11px}
}

@media (max-width:650px){
 /* Longer answer choices get a full row, preserving normal word boundaries. */
 body.study-unified.study-mode .sp-work .sp-options.sp-options-sentences{grid-template-columns:minmax(0,1fr);padding-inline:0}
 body.study-unified.study-mode .sp-work .sp-options.sp-options-sentences button{min-width:0;text-align:left;word-break:normal;overflow-wrap:break-word;hyphens:manual}
}

@media (max-width:650px){
 /* Reserve scroll space with the same priority as the shared #main rule. */
 body.study-unified.compact-exam #main{padding-bottom:calc(var(--exam-dock,80px) + var(--study-app-dock) + 24px)}
}

/* Preserve the existing scroll fallback in a short visual viewport. */
@media (max-width:650px) and (max-height:600px){
 .study-unified.paired-listening.compact-exam #main{height:auto;min-height:calc(100dvh - var(--study-app-dock))}
}

/* Long localized exercise tools stay readable and retain touch-sized targets. */
@media (max-width:650px){
 body.study-unified.study-mode .sp-action-dock .sp-work-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:4px;align-items:stretch}
 body.study-unified.study-mode .sp-action-dock .sp-tool{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:auto;padding:8px 6px;gap:6px;white-space:normal}
 body.study-unified.study-mode .sp-action-dock .sp-tool span{min-width:0;line-height:1.2;overflow-wrap:break-word;word-break:normal;hyphens:manual}
}
@media (max-width:420px){
 body.study-unified.study-mode .sp-action-dock .sp-work-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Account and language remain easy to find inside the compact phone menu. */
.study-mobile-utilities{display:none}
.study-global-bar .study-menu-control>span{display:none}
@media (max-width:650px){
 .study-unified .study-bottom-dock>button>span{display:block;max-width:100%;font-size:10px;line-height:1.05;text-align:center;overflow-wrap:anywhere}
 .study-unified .study-global-nav.is-open{gap:4px;padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
 .study-unified .study-global-nav .study-menu-close{position:sticky;top:0;right:auto;order:-1;align-self:flex-end;margin-bottom:-44px;z-index:3}
 .study-unified .study-global-nav .study-global-brand{margin:0 56px 8px 0}
 .study-unified .study-global-nav .study-mobile-utilities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 8px}
 .study-unified .study-global-nav .study-mobile-utilities :is(a,button){box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;max-width:none;min-width:0;min-height:44px;margin:0;padding:9px 10px;border:1px solid var(--product-line,var(--linen-line,#dedbd1));border-radius:10px;background:var(--product-surface,var(--linen-surface,#fffefa));color:var(--product-ink,var(--linen-ink,#191919));font:inherit;font-size:13px;text-decoration:none;text-align:left}
 .study-unified .study-global-nav .study-mobile-utilities :is(svg,.study-nav-icon){width:20px;height:20px;flex:0 0 20px}
 .study-unified .study-global-nav .study-mobile-utilities :is(.study-language-name,a>span){min-width:0;overflow-wrap:break-word;white-space:normal;line-height:1.25}
 .study-unified .study-global-nav .study-mobile-utilities :is(a,button):focus-visible{outline:3px solid var(--product-gold,#b89942);outline-offset:2px}
 .study-unified .study-global-nav .product-primary{gap:2px;margin:0 0 6px}
 .study-unified .study-global-nav .study-module-switch{margin-bottom:6px;padding:6px 10px}
 .study-unified .study-global-nav .study-context-suggestions{padding-top:4px}
 .study-unified .study-global-nav .study-global-bottom{margin-top:4px;padding-top:8px;padding-bottom:0}
}

/* The modal navigation and its shadow cover fixed exam controls; native dialogs stay in the top layer. */
@media (max-width:1099px){
 .study-unified .study-global-nav.is-open{z-index:200}
}

}
