.am-language{--am-surface:#163042;--am-ink:#edf5ff;--am-border:#426577;--am-accent:#9be8d7;position:relative;display:inline-flex;align-items:center;gap:10px;flex-shrink:0;color:var(--am-ink);font-family:inherit;z-index:80}html[data-theme="light"] .am-language{--am-surface:#fff;--am-ink:#143746;--am-border:#c4d6df;--am-accent:#087b6e}.am-language-label{font-size:12px;font-weight:600;letter-spacing:.02em;color:inherit;opacity:.8;white-space:nowrap}.am-language details{position:relative;margin:0;padding:0;border:0;background:none}.am-language summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;min-width:78px;min-height:48px;padding:10px 13px;border:1px solid var(--am-border);border-radius:16px;background:var(--am-surface);color:var(--am-ink);cursor:pointer;list-style:none;box-shadow:0 3px 0 #00000012;transition:background .18s,border-color .18s,box-shadow .18s}.am-language summary::-webkit-details-marker{display:none}.am-language summary::marker{content:''}.am-language img{display:block;width:29px;height:20px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #0002}.am-language .am-chevron{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}.am-language details[open] .am-chevron{transform:rotate(180deg)}.am-language summary:hover,.am-language details[open] summary{border-color:var(--am-accent)}.am-language summary:focus-visible,.am-language a:focus-visible{outline:3px solid var(--am-accent);outline-offset:4px}.am-language .am-language-options{position:absolute;inset:auto 0 auto auto;top:calc(100% + 10px);display:flex;gap:8px;margin:0;padding:10px;min-width:136px;box-sizing:border-box;border:1px solid var(--am-border);border-radius:18px;background:var(--am-surface);box-shadow:0 14px 40px #0004;animation:am-lang-enter .16s ease-out}.am-language details:not([open]) .am-language-options{display:none}.am-language .am-language-options a{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:52px;min-height:48px;padding:12px 10px;border:1px solid transparent;border-radius:12px;text-decoration:none;background:transparent;transition:background .18s,border-color .18s}.am-language .am-language-options a:hover{background:#83dec21c;border-color:var(--am-border)}.am-language .am-language-options a[aria-current="page"]{background:#83dec226;border-color:var(--am-accent)}.am-language a[aria-current="page"]::after{content:'✓';position:absolute;right:1px;bottom:-1px;font-size:11px;font-weight:800;color:var(--am-surface);background:var(--am-accent);border-radius:50%;width:16px;height:16px;line-height:16px;text-align:center}.am-language .am-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@keyframes am-lang-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.am-language{gap:6px}.am-language-label{font-size:10px;max-width:62px;white-space:normal;line-height:1.3}.am-language summary{min-width:66px;min-height:46px;padding:9px 10px;border-radius:14px}}@media(prefers-reduced-motion:reduce){.am-language *{animation:none!important;transition:none!important}}@media print{.am-language{display:none!important}}
@media(max-width:600px){.am-language{flex-direction:column;gap:3px}.am-language-label{order:2;font-size:8px;max-width:none;white-space:nowrap;line-height:1.1}.am-language summary{min-height:44px}.header-end{gap:10px}}
/* Consistent primary and secondary actions for demos and documentation. */
html body :is(a.btn,a.button,button.button){box-sizing:border-box;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border-radius:16px;font:inherit;font-weight:700;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;border:1px solid #83d7c466;box-shadow:0 4px 0 #0002,0 8px 22px #0000000a;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;cursor:pointer}
html body :is(a.btn,a.button,button.button):focus-visible{outline:3px solid #50bbad;outline-offset:4px}
html body :is(a.btn,a.button,button.button):active{transform:translateY(2px);box-shadow:0 1px 0 #0002}
html body .actions{gap:12px;flex-wrap:wrap}
@media(hover:hover){html body :is(a.btn,a.button,button.button):hover{transform:translateY(-2px);box-shadow:0 6px 0 #0002,0 12px 24px #0002;border-color:#68c9b4}}
@media(max-width:600px){html body :is(a.btn,a.button,button.button){max-width:100%;padding:13px 18px;border-radius:14px}html body .actions>:is(a.btn,a.button,button.button){width:100%}}
@media(prefers-reduced-motion:reduce){html body :is(a.btn,a.button,button.button){transition:none;transform:none!important}}

@media(max-width:420px){html body .demo-step-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}html body .demo-step-nav a{min-height:48px;word-break:normal;overflow-wrap:normal}html body .demo-step-nav a span{flex-shrink:0}}
/* Tactile controls: shared by marketing, guides and demos. */
html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger){--key-face:#a4ecdc;--key-ink:#123b42;--key-base:#4c9d90;box-sizing:border-box;border:1px solid #d5fff170;border-radius:16px;background:linear-gradient(180deg,#ffffff30,transparent 65%),var(--key-face);color:var(--key-ink);box-shadow:inset 0 1px 0 #ffffff85,0 5px 0 var(--key-base),0 9px 16px #0003;min-height:46px;padding:12px 20px;font-weight:750;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;transform:translateY(0);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link){display:inline-flex;align-items:center;justify-content:center;gap:10px;text-align:center;max-width:100%;white-space:normal}
html body :is(.btn-secondary,.icon-button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.menu-toggle,.drawer-close,.nav-trigger,.demo-step-nav a,.level-tabs a){--key-face:#244858;--key-ink:#edfaff;--key-base:#102c38;border-color:#6c9bab70}
html[data-theme="light"] body :is(.btn-secondary,.icon-button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.menu-toggle,.drawer-close,.nav-trigger,.demo-step-nav a,.level-tabs a){--key-face:#edf5f7;--key-ink:#173b48;--key-base:#a9c3cb}
html body :is(.level-tabs a[aria-selected="true"],.demo-step-nav a[aria-current="step"]){--key-face:#a4ecdc;--key-ink:#123b42;--key-base:#4c9d90}
html body :is(.icon-button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.menu-toggle,.drawer-close){padding:10px;min-width:46px}
@media(hover:hover) and (pointer:fine){html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger):not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.07);box-shadow:inset 0 1px 0 #ffffffa0,0 7px 0 var(--key-base),0 13px 22px #0004}}
html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger):not(:disabled):active{transform:translateY(4px);box-shadow:inset 0 2px 4px #0002,0 1px 0 var(--key-base),0 3px 6px #0002;filter:brightness(.98)}
html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger):focus-visible{outline:3px solid #28a8da;outline-offset:7px}
html body button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:0 2px 0 var(--key-base)}
html body .actions{gap:18px;align-items:center;flex-wrap:wrap}
html body .level-tabs{gap:12px}
html body .level-tabs a{border-top-width:1px;padding:16px 10px}
html body .level-tabs a small{color:inherit;opacity:.8}
@media(max-width:600px){html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link){padding:13px 17px}html body .actions>:is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link){width:100%}}
@media(prefers-reduced-motion:reduce){html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger){transition:none!important}}

html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger){color:var(--key-ink)!important}
html body :is(.btn,.button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),button:not(.appearance-toggle):not(.theme-toggle):not(.flag-toggle):not([aria-label*=Sprache]):not([aria-label*=language]),.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger){background:linear-gradient(180deg,#ffffff30,transparent 65%),var(--key-face)!important} html body .demo-step-nav a[aria-current]{--key-face:#a4ecdc;--key-ink:#123b42;--key-base:#4c9d90}
html body :is(.btn,.button,.text-link,.level-tabs a,.demo-step-nav a,.nav-trigger) :is(span,small,strong,em){color:inherit!important}


/* Unified language and appearance controls, independent of page template. */
html body :is(.header-tools,.header-end){display:flex;align-items:center;gap:12px}
html body :is(.header-tools,.header-end)>.am-language{order:1;display:flex;flex-direction:column;gap:4px;align-items:center;color:#edf5ff}
html body .am-language-label{order:2;font-size:9px!important;line-height:1.2;white-space:nowrap!important;max-width:none!important;opacity:1}
html body .am-language summary{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:78px!important;width:78px;height:46px!important;min-height:46px!important;padding:10px 12px!important;border:1px solid #426577!important;border-radius:14px!important;background:#163042!important;color:#edf5ff!important;box-shadow:0 2px 0 #0002!important;gap:8px;transform:none!important}
html body .am-language img{width:28px!important;height:19px!important}
html body :is(.appearance-toggle,.theme-toggle){order:2!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;margin:0 0 15px!important;border:1px solid #426577!important;border-radius:14px!important;background:#163042!important;color:#edf5ff!important;box-shadow:0 2px 0 #0002!important;transform:none!important;cursor:pointer}
html body :is(.appearance-toggle,.theme-toggle)>*{display:none!important}
html body :is(.appearance-toggle,.theme-toggle)::before{content:'\2600';display:block;font-family:Arial,sans-serif;font-size:25px;line-height:1;color:inherit}
html body :is(.header-tools,.header-end)>:is(.menu-toggle,.mobile-menu){order:3}
html[data-theme="light"] body .am-language{color:#143746}
html[data-theme="light"] body :is(.am-language summary,.appearance-toggle,.theme-toggle){background:#fff!important;color:#143746!important;border-color:#c4d6df!important}
html body :is(.am-language summary,.appearance-toggle,.theme-toggle):focus-visible{outline:3px solid #28a8da!important;outline-offset:4px}
@media(hover:hover){html body :is(.am-language summary,.appearance-toggle,.theme-toggle):hover{border-color:#61c9b2!important;filter:brightness(1.1)}}
@media(max-width:600px){html body :is(.header-tools,.header-end){gap:8px}html body .am-language-label{font-size:8px!important}html body :is(.appearance-toggle,.theme-toggle){margin-bottom:14px!important}}

.am-acquire{max-width:1000px;margin:40px auto;padding:28px;border:1px solid #648895;border-radius:22px;background:#163042;color:#edf5ff}.am-acquire strong{font-size:24px}.am-acquire p{color:inherit;line-height:1.6}html[data-theme="light"] .am-acquire{background:#edf5f7;color:#143746}.store-grid .btn{margin-top:16px}.platforms{scroll-margin-top:110px}@media(max-width:600px){.am-acquire{margin:28px 16px;padding:22px}.store-grid article{min-width:0}}
.am-choice{scroll-margin-top:110px}.am-choice h2{font-size:clamp(28px,4vw,46px);line-height:1.15;margin:12px 0 20px}.am-choice-intro{max-width:720px;line-height:1.7}.am-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:32px 0 20px}.am-choice-grid article{display:flex;flex-direction:column;padding:26px;border:1px solid #64889566;border-radius:24px;background:#163042;color:#edf5ff}.am-choice h3{font-size:20px;line-height:1.4;margin:0 0 12px}.am-choice-grid p{line-height:1.7;margin:0 0 24px}.am-choice-grid .btn{margin-top:auto}.am-choice-trust{font-size:13px;line-height:1.7}.am-buy-path{margin-top:42px;padding:30px;border-radius:24px;background:#173e46;color:#edf5ff}.am-buy-path ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.am-buy-path li{padding:14px 0}.am-buy-path p{line-height:1.7}.am-buy-path>.btn{margin-top:16px}html[data-theme="light"] .am-choice-grid article{background:#edf5f7;color:#143746}@media(max-width:760px){.am-choice-grid,.am-buy-path ol{grid-template-columns:1fr}.am-choice-grid article,.am-buy-path{padding:23px}.am-choice-grid .btn{width:100%}}

/* Clear exercise rhythm, including room for raised button shadows. */
html body .demo-panel .actions{display:flex;flex-wrap:wrap;gap:18px 20px;margin:24px 0 0;padding-bottom:6px;align-items:stretch}html body .demo-panel .actions>.button{margin:0;min-height:48px}html body .builder-status:not(:empty),html body .listening-status:not(:empty){display:block;margin:22px 0 0;padding:16px 18px;border:1px solid #73959c66;border-radius:14px;line-height:1.7}html body .builder-status:empty,html body .listening-status:empty{margin:0;padding:0}html body .listening-exercise{margin-top:34px;padding-top:28px;border-top:1px solid #73959c55}html body .listening-exercise h3{margin:0 0 14px}html body .listening-exercise>p{line-height:1.7}html body .listening-options{margin-top:22px;gap:16px}html body .builder-bank{gap:16px;margin-bottom:8px}@media(max-width:600px){html body .demo-panel .actions{flex-direction:column;gap:18px}html body .demo-panel .actions>.button{width:100%}html body .listening-exercise{margin-top:30px}}
.am-privacy-note{margin:28px 0;padding:22px 24px;border:1px solid #6b999c;border-left:4px solid #9be8d7;border-radius:16px;background:#163042;color:#edf5ff}.am-privacy-note h3{font-size:21px;line-height:1.4;margin:0 0 12px}.am-privacy-note p{font-size:15px;line-height:1.75;max-width:85ch;color:inherit}.am-privacy-note p:last-child{margin-bottom:0}html[data-theme=light] .am-privacy-note{background:#edf5f7;color:#143746}
/* Compact accessible animation control */
.device-caption .rain-toggle{position:relative!important;display:inline-flex;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:14px!important;gap:0!important;flex:0 0 44px;box-shadow:0 3px 0 rgba(0,0,0,.2)!important;}
.rain-toggle[hidden]{display:none!important}
.rain-toggle .rain-toggle-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.rain-toggle .rain-toggle-symbol{font-size:19px!important;line-height:1!important;}
.rain-toggle:focus-visible{outline:3px solid #46bde9!important;outline-offset:4px!important;}

/* Equal control geometry on all page templates. Label is outside the control row. */
html body :is(.header-tools,.header-end){align-items:center!important;gap:12px!important;padding-bottom:17px}
html body :is(.header-tools,.header-end)>.am-language{height:48px!important;position:relative;gap:0!important}
html body .am-language-label{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);line-height:12px!important;font-size:9px!important}
html body :is(.am-language summary,.appearance-toggle,.theme-toggle,.header-tools>.menu-toggle,.mobile-menu>summary){box-sizing:border-box!important;height:48px!important;min-height:48px!important;width:48px!important;min-width:48px!important;flex:0 0 48px!important;margin:0!important;padding:0!important;border:1px solid #426577!important;border-radius:15px!important;background:#163042!important;color:#edf5ff!important;box-shadow:inset 0 1px 0 #ffffff12,0 3px 0 #091b27!important;display:flex!important;align-items:center!important;justify-content:center!important;transform:none!important;line-height:1!important}
html body .am-language.am-language summary{width:78px!important;min-width:78px!important;gap:9px!important}
html body .mobile-menu{margin:0!important;padding:0!important;align-self:center!important}
html body :is(.header-tools>.menu-toggle,.mobile-menu>summary) svg{width:24px!important;height:24px!important;stroke:currentColor;fill:none;stroke-width:1.8}
html[data-theme=light] body :is(.am-language summary,.appearance-toggle,.theme-toggle,.header-tools>.menu-toggle,.mobile-menu>summary){background:#edf5f7!important;color:#173b48!important;border-color:#a9c3cb!important;box-shadow:inset 0 1px 0 #fff,0 3px 0 #c0d4db!important}
html body :is(.am-language summary,.appearance-toggle,.theme-toggle,.header-tools>.menu-toggle,.mobile-menu>summary):focus-visible{outline:3px solid #28a8da!important;outline-offset:4px!important}
body.am-has-bottom-nav{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}
html{scroll-padding-bottom:110px}
html body #am-bottom-navigation.am-bottom-nav{--dock-bg:#142a3c;--dock-line:#426577;--dock-ink:#bed0df;--dock-active:#9be8d7;--dock-raised:#203a50;box-sizing:border-box;position:fixed;z-index:90;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));border-top:1px solid var(--dock-line);background:var(--dock-bg);box-shadow:0 -8px 26px #0002;isolation:isolate}
html[data-theme=light] body #am-bottom-navigation.am-bottom-nav{--dock-bg:#f4f8fb;--dock-line:#c0d4db;--dock-ink:#426174;--dock-active:#096b60;--dock-raised:#dceeea}
html body #am-bottom-navigation.am-bottom-nav :is(a,button){box-sizing:border-box!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:62px!important;margin:0!important;padding:7px 4px!important;border:1px solid transparent!important;border-radius:16px!important;background:transparent!important;color:var(--dock-ink)!important;box-shadow:none!important;text-decoration:none!important;line-height:1.25!important;font:700 12px/1.25 system-ui,sans-serif!important;cursor:pointer;transform:none!important;transition:background .16s,color .16s!important;touch-action:manipulation}
html body #am-bottom-navigation.am-bottom-nav svg{width:25px;height:25px;flex-shrink:0}
html body #am-bottom-navigation.am-bottom-nav :is(a[aria-current],button[aria-expanded=true]){background:var(--dock-raised)!important;color:var(--dock-active)!important;box-shadow:inset 0 3px 0 var(--dock-active),0 2px 4px #0001!important}
html body #am-bottom-navigation.am-bottom-nav :is(a,button):focus-visible{outline:3px solid #28a8da!important;outline-offset:-3px!important}
html body .am-more-panel{position:fixed;z-index:91;bottom:calc(88px + env(safe-area-inset-bottom,0px));right:max(12px,env(safe-area-inset-right,0px));width:min(400px,calc(100vw - 24px));max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:18px;border:1px solid #426577;border-radius:24px;background:#142a3c;color:#edf5ff;box-shadow:0 12px 50px #0006}
html body .am-more-panel[hidden]{display:none!important}
html body .am-more-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
html body .am-more-heading h2{font:750 20px/1.3 system-ui,sans-serif;margin:0;color:inherit}
html body .am-more-panel>a{display:flex;align-items:center;gap:14px;padding:12px;min-height:48px;box-sizing:border-box;border-radius:14px;color:inherit;text-decoration:none;font:650 15px/1.4 system-ui,sans-serif}
html body .am-more-panel svg{width:24px;height:24px;flex-shrink:0}
html body .am-more-panel .am-more-close{display:flex;align-items:center;justify-content:center;min-height:44px;width:44px;padding:8px;background:#203a50!important;color:#edf5ff!important;border:1px solid #426577;border-radius:14px;box-shadow:none!important}
html[data-theme=light] body .am-more-panel{background:#f4f8fb;color:#173b48;border-color:#a9c3cb}
html[data-theme=light] body .am-more-panel .am-more-close{background:#dceeea!important;color:#173b48!important}
@media(hover:hover){html body #am-bottom-navigation.am-bottom-nav :is(a,button):hover,html body .am-more-panel>a:hover{background:#72c9b51c!important}html body :is(.am-language summary,.appearance-toggle,.theme-toggle,.header-tools>.menu-toggle,.mobile-menu>summary):hover{border-color:#61c9b2!important}}
@media(min-width:901px){html body #am-bottom-navigation.am-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(560px,calc(100% - 48px));bottom:14px;border:1px solid var(--dock-line);border-radius:23px;padding:8px}html body .am-more-panel{right:max(24px,calc((100vw - 560px)/2));bottom:108px}}
@media(max-width:600px){html body :is(.header-tools,.header-end){gap:10px!important}.masthead .mast-inner,.header .header-inner{gap:10px}.masthead .wordmark{min-width:0}.masthead .wordmark-sub{font-size:9px}.masthead .wordmark img{width:34px;height:34px}.masthead .wordmark{font-size:18px}#am-bottom-navigation.am-bottom-nav span{white-space:nowrap}}
@media(max-width:360px){html body :is(.header-tools,.header-end){gap:7px!important}html body .am-language.am-language summary{width:68px!important;min-width:68px!important}.masthead .wordmark-sub{display:none}.masthead .wordmark{gap:6px;font-size:16px}.masthead .wordmark img{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){html body #am-bottom-navigation.am-bottom-nav *{transition:none!important}}
@media print{html body :is(#am-bottom-navigation.am-bottom-nav,.am-more-panel){display:none!important}body.am-has-bottom-nav{padding-bottom:0!important}}
html body :is(#am-menu-control,#am-more-close){background:#163042!important;color:#edf5ff!important;border:1px solid #426577!important;box-shadow:inset 0 1px 0 #ffffff12,0 3px 0 #091b27!important;transform:none!important}
html[data-theme=light] body :is(#am-menu-control,#am-more-close){background:#edf5f7!important;color:#173b48!important;border-color:#a9c3cb!important;box-shadow:inset 0 1px 0 #fff,0 3px 0 #c0d4db!important}

/* Keep the entire header on one baseline; reserve caption space on the row. */
html body :is(.header-tools,.header-end){padding-bottom:0!important}
html body :is(.header-inner,.mast-inner){box-sizing:border-box;min-height:86px;padding-top:12px!important;padding-bottom:26px!important;align-items:center!important}
html body .desktop-nav .nav-trigger,
html body .desktop-links>a{box-sizing:border-box!important;height:48px!important;min-height:48px!important;display:inline-flex;align-items:center;justify-content:center;padding-top:0!important;padding-bottom:0!important;transform:none!important}
html body :is(.desktop-nav,.desktop-links){align-items:center!important}

/* Continuous bottom bar, matching the full-width header at every breakpoint. */
html body #am-bottom-navigation.am-bottom-nav{left:0;right:0;bottom:0;width:auto;transform:none;border:0;border-top:1px solid var(--dock-line);border-radius:0;padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))}
html body .am-more-panel{right:max(12px,env(safe-area-inset-right,0px));bottom:calc(88px + env(safe-area-inset-bottom,0px))}

/* Compact, readable D1-D5 selectors. Full titles remain in the selected panel. */
@media(max-width:600px){
 html body #levels .level-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:visible}
 html body #levels .level-tabs>a{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:auto;min-height:64px;height:64px;margin:0;padding:8px 4px!important;border-radius:16px;line-height:1.2;text-align:center}
 html body #levels .level-tabs>a>span{font-size:22px;line-height:1.2;font-weight:800}
 html body #levels .level-tabs>a>small{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 html body #levels .level-tabs>a[aria-selected=true]{background:#a4ecdc!important;color:#123b42!important;border-color:#d5fff1!important;box-shadow:inset 0 1px 0 #ffffff85,0 4px 0 #4c9d90,0 8px 16px #0002}
}

/* Complete five-band entry cards, readable on every screen. */
html body #start-choice .am-choice-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}html body #start-choice .am-choice-grid>article{grid-column:span 2;min-width:0}html body #start-choice .am-choice-grid>article:nth-child(n+4){grid-column:span 3}@media(max-width:900px){html body #start-choice .am-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body #start-choice .am-choice-grid>article,html body #start-choice .am-choice-grid>article:nth-child(n+4){grid-column:auto}html body #start-choice .am-choice-grid>article:last-child{grid-column:1/-1}}@media(max-width:600px){html body #start-choice .am-choice-grid{grid-template-columns:minmax(0,1fr);gap:20px}}

html[data-theme=light] body :is(.appearance-toggle,.theme-toggle)::before{content:"\263e"}
