@font-face{font-family:DadApproved;src:url('./fonts/SuisseIntl-Book.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:DadApproved;src:url('./fonts/SuisseIntl-Medium.ttf') format('truetype');font-style:normal;font-weight:500 800;font-display:swap}
[data-dm-ssr-header]{display:none}
@media(max-width:767px){
 html[data-dm-document] {
   background: #c3bff4;
   --dm-background: linear-gradient(140deg,#c3bff4 0%,#aaa9e6 52%,#c0c4fa 100%);
 }
 html[data-dm-document] body {
   background: var(--dm-background) !important;
   background-size: 100vw 100dvh !important;
 }
 html[data-dm-document]:has([data-dm-ssr-header]) body {
   padding-top: calc(64px + env(safe-area-inset-top,0px)) !important;
 }
 html[data-dm-document] :is(
   .kum-mobile-top,#kum-mobile-menu,#words-app .words-workspace > header.topbar
 ) {
   display: none !important;
 }
 html[data-dm-route="videos"] #kum-video-first-paint,
 html[data-dm-route="videos"] [data-kv-startup-scroll] {
   display: none !important;
 }
 /* Keep native controls measurable while their approved view is being built. */
 html[data-dm-route="learn-words"] #words-app:not(:has([data-dm-words-view-ready])),
 html[data-dm-route="reference"] [data-reference]:not([data-dmr-reference-view]) > #reference,
 html[data-dm-route="mnemonics"] [data-mnemonics] [data-view="catalog"]:not([data-dmr-catalog-ready]) .mn-catalog-grid,
 html[data-dm-route="irregular-verbs"] #trainer:not([data-dmr-verbs-screen]) > #tab-content,
 html[data-dm-auth-pending] body[data-kumitsky-approved-home] > :not(#kumAuth,script,style) {
   opacity: 0;
   pointer-events: none;
 }
 html[data-dm-auth-pending] { background: #c3bff4; }
 body[data-dm-active="true"]:has(> .dm-menu) { overflow: hidden; }
 html:has(body[data-dm-active="true"]){scroll-padding-top:84px}
 body[data-dm-active="true"]{--dm-font:DadApproved,Arial,sans-serif;--dm-ink:#2e4374;--dm-muted:#7a85a2;--dm-accent:#4944ad;--dm-pale:#eeecfa;--dm-line:#eeecf7;--dm-card:#fff;--dm-radius:28px;--dm-background:linear-gradient(140deg,#c3bff4 0%,#aaa9e6 52%,#c0c4fa 100%);font-family:DadApproved,Arial,sans-serif!important;font-weight:400;color:var(--dm-ink);background:var(--dm-background)!important;background-size:100vw 100dvh!important;background-attachment:fixed!important;min-height:100dvh;box-sizing:border-box;overflow-x:clip}
 body[data-dm-active="true"][data-dm-header-ready="true"]{padding-top:calc(64px + env(safe-area-inset-top,0px))!important}
 body[data-dm-active="true"] *,body[data-dm-active="true"] *:before,body[data-dm-active="true"] *:after{box-sizing:border-box}
 body[data-dm-active="true"] #root{background:transparent!important}
 body[data-dm-active="true"] [data-dm-backdrop]{background-color:transparent!important;background-image:none!important}
 body[data-dm-active="true"] button,body[data-dm-active="true"] input,body[data-dm-active="true"] select,body[data-dm-active="true"] textarea{font-family:inherit}
 body[data-dm-active="true"] button,body[data-dm-active="true"] a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 body[data-dm-active="true"] input,body[data-dm-active="true"] textarea{font-size:16px;scroll-margin-top:84px}
 body[data-dm-active="true"] h1,body[data-dm-active="true"] [tabindex="-1"]{scroll-margin-top:84px}
 body[data-dm-active="true"] button:focus-visible,body[data-dm-active="true"] a:focus-visible,body[data-dm-active="true"] [role=button]:focus-visible{outline:2px solid var(--dm-accent);outline-offset:3px}
 body[data-dm-active="true"][data-dm-header-ready="true"] [data-dm-native-header]{display:none!important}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header,body[data-dm-active="true"] .dm-menu-top{height:calc(64px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 16px 0;display:grid;grid-template-columns:minmax(80px,1fr) auto minmax(80px,1fr);align-items:center;gap:6px;color:#fff;font-family:DadApproved,Arial,sans-serif}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header{position:fixed;inset:0 0 auto;z-index:120;background:var(--dm-background);background-size:100vw 100dvh;background-position:center top}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header .dm-brand{font-size:20px;font-weight:500;color:#fff;text-decoration:none;line-height:1.2;white-space:nowrap;justify-self:center}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header button,body[data-dm-active="true"] .dm-menu-top button{appearance:none;border:0;box-shadow:none;background:none;color:#fff;min-height:44px;min-width:44px;padding:0;display:flex;gap:4px;align-items:center;justify-content:flex-start;font-size:15px;font-weight:400;border-radius:10px;line-height:1.2}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header-left{justify-self:start}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header-right,body[data-dm-active="true"] .dm-menu-profile{justify-self:end;justify-content:flex-end!important}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header svg,body[data-dm-active="true"] .dm-menu-top svg{width:23px;height:23px;flex:none}
 :is(body[data-dm-active="true"],html[data-dm-document] body) .dm-header-right svg,body[data-dm-active="true"] .dm-menu-profile svg{width:27px;height:27px}
 body[data-dm-active="true"] .dm-menu{position:fixed;inset:0;z-index:2147480000;overflow-y:auto;overscroll-behavior:contain;background:var(--dm-background);padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));color:var(--dm-ink);font-family:DadApproved,Arial,sans-serif}
 body[data-dm-active="true"] .dm-menu h1{font-size:25px;line-height:1.2;font-weight:500;text-align:center;margin:19px 20px 36px;color:var(--dm-ink)}
 body[data-dm-active="true"] .dm-menu-panel{margin:0 18px;padding:18px 12px;border-radius:28px;background:white;box-shadow:none;border:0;max-width:440px}
 body[data-dm-active="true"] .dm-menu-group+ .dm-menu-group{border-top:1px solid var(--dm-line);margin-top:18px;padding-top:18px}
 body[data-dm-active="true"] .dm-menu-group h2{margin:0 0 8px;padding:8px 12px;min-height:36px;display:flex;align-items:center;gap:10px;border-radius:22px;background:#eeecfb;font-size:14px;line-height:20px;font-weight:500;color:var(--dm-ink)}
 body[data-dm-active="true"] .dm-menu-group h2 svg{width:20px;height:20px;flex:none;color:var(--dm-accent)}
 body[data-dm-active="true"] .dm-menu-link{min-height:47px;display:flex;align-items:center;gap:12px;margin:0;padding:6px 10px;text-decoration:none;color:var(--dm-ink);border-radius:20px;font-size:15px;line-height:20px;font-weight:500;position:relative}
 body[data-dm-active="true"] .dm-menu-link>span:nth-child(2){flex:1;min-width:0}
 body[data-dm-active="true"] .dm-menu-link>svg{width:17px;height:17px;color:var(--dm-accent);flex:none}
 body[data-dm-active="true"] .dm-menu-art{position:relative;width:32px;height:32px;display:grid;place-items:center;isolation:isolate;flex:none;color:#283978}
 body[data-dm-active="true"] .dm-menu-art:before{content:"";position:absolute;inset:4px -1px 2px -1px;background:#ece7fc;border-radius:50% 42% 52% 40%;transform:rotate(-15deg);z-index:-1}
 body[data-dm-active="true"] .dm-menu-art svg{width:27px;height:27px}
 body[data-dm-active="true"] .dm-tone-0:before{background:#fce9dc}
 body[data-dm-active="true"] .dm-tone-1:before{background:#e6e0fa}
 body[data-dm-active="true"] .dm-tone-2:before{background:#e9f2e1}
 body[data-dm-active="true"] .dm-tone-3:before{background:#e0effb}
 body[data-dm-active="true"] .dm-menu-link.dm-current{background:#efecfc;color:var(--dm-accent)}
 body[data-dm-active="true"] .dm-menu-link i{width:6px;height:6px;background:var(--dm-accent);border-radius:50%;flex:none}
 body[data-dm-active="true"] .dm-menu-link:active{background:#f4f2fc}
 @media(min-width:478px){body[data-dm-active="true"] .dm-menu-panel{margin-left:auto;margin-right:auto}}
 @media(prefers-reduced-motion:reduce){body[data-dm-active="true"] *,body[data-dm-active="true"] *:before,body[data-dm-active="true"] *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
}

@media(max-width:767px) and (prefers-reduced-motion:no-preference) {
 @keyframes dm-enter {
   from { opacity: 0; transform: translateY(6px); }
   to { opacity: 1; transform: translateY(0); }
 }
 @keyframes dm-fade {
   from { opacity: 0; }
   to { opacity: 1; }
 }
 body[data-dm-active="true"] :where(
   .dm-menu-panel,.dm-words-overview-menu,.dmr-reference-menu,.dmr-verbs-menu,
   .dmr-level-list,.dm-media-menu,.dm-media-video-list,.dm-practice-groups,
   .dm-practice-level-panel,.dm-reading-sheet,.dmp-home,.dmp-settings,
   .dmp-review-calendar
 ) {
   animation: dm-enter 180ms cubic-bezier(.2,.7,.2,1);
 }
 body[data-dm-active="true"] :where(
   .dm-menu,.dm-practice-backdrop,.dm-test-map-backdrop,.dmp-calendar-scrim,
   [data-auth-modal]:not([hidden])
 ) {
   animation: dm-fade 150ms ease-out;
 }
 body[data-dm-active="true"] :where(
   .dm-menu-link,.dm-media-row,.dm-practice-item,.dm-words-topic,
   .dm-header button,.dm-menu-top button
 ) {
   transition: background-color 140ms ease-out, color 140ms ease-out;
 }
}
