html{-webkit-text-size-adjust:100%;text-size-adjust:100%}img,video,canvas{max-width:100%}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}body[data-dg-page] :is(.ws-page,.ws-card,.ws-hero,.ws-tools,.ce-page,.listen-page,.ft-room,.b-app){min-width:0}body[data-dg-page] input:not([type=checkbox]):not([type=radio]),body[data-dg-page] textarea,body[data-dg-page] select{max-width:100%}.dg-remember-label{display:flex;align-items:center;gap:9px;font-size:13px;margin:16px 0;color:var(--dg-ui-ink)}.dg-remember-label input{width:20px;height:20px;accent-color:#668c49}.dg-practice-config{display:grid;gap:12px;margin:16px 0;padding:16px;border:1px solid var(--dg-ui-border);border-radius:14px;color:var(--dg-ui-ink)}.dg-practice-config legend{font-weight:800;font-size:14px}.dg-practice-config label{font-size:13px;line-height:1.6}.dg-practice-config p{font-size:11px;color:var(--dg-ui-muted)}.dg-room-preview{width:600px;margin:auto;padding:22px;border:1px solid var(--dg-ui-border);border-radius:20px;background:var(--dg-ui-card);color:var(--dg-ui-ink)}.dg-room-preview::backdrop{background:#0b171bb3}.dg-room-preview h2{font-size:18px;margin:15px 0;font-weight:800}.dg-room-preview section{padding:20px 10px;font-size:22px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.dg-room-preview dl{font-size:14px;line-height:1.7}.dg-room-preview dt{font-weight:800}.dg-room-preview form{text-align:right}.dg-companion{max-width:700px!important;width:100%!important;margin:0 auto 18px!important;padding:14px 18px!important;border-radius:20px!important;align-items:center!important;background:linear-gradient(115deg,#6c874522,transparent 65%),var(--dg-ui-card)!important}.dg-companion img{width:80px!important;height:88px!important;object-fit:contain!important;flex:none}.dg-companion p{font-size:13px;line-height:1.65}.dg-companion-cheer{display:inline-block;padding:8px 12px;border:1px solid var(--dg-ui-border);border-radius:12px;background:var(--dg-ui-raised);color:var(--dg-ui-ink);font-size:11px;cursor:pointer;margin:7px 0}.listen-player{position:sticky;top:calc(var(--dg-header-height,68px) + 6px);z-index:20;box-shadow:0 5px 20px #00000015}.listen-player h2{font-size:18px!important}.listen-player #listen-description{margin-bottom:8px!important}.listen-player #listen-save{font-size:10px;margin-bottom:0}.listen-player #listen-options>summary{font-size:12px;font-weight:700;min-height:40px;padding:10px 0;cursor:pointer}.listen-player #listen-options[open]{max-height:calc(100svh - var(--dg-header-height,68px) - 185px);overflow:auto}.listen-player #listen-step{width:76px;min-height:44px}.listen-player #listen-time{white-space:nowrap}.listen-player .listen-player-row #listen-play{min-height:44px;min-width:130px;border-radius:28px}.listen-blank button{font-weight:850;font-size:17px}.b-top-actions{flex-wrap:wrap}.b-top-actions #b-preview.hide-sm{display:inline-flex!important}
@media(max-width:1023px){.ws-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ws-tools a{overflow-wrap:anywhere}.listen-player{padding:12px 14px!important}}
@media(max-width:640px){body[data-dg-page=dictionary] .hero{display:grid!important;grid-template-columns:minmax(0,1fr) 98px!important;gap:8px!important;padding:18px 16px!important}body[data-dg-page=dictionary] .dict-hero-copy{display:contents!important}body[data-dg-page=dictionary] .hero-logo{grid-row:1;grid-column:1;width:165px!important;margin:0!important;align-self:center}body[data-dg-page=dictionary] .dict-hero-art{grid-row:1;grid-column:2;height:116px!important;align-self:center;overflow:visible}body[data-dg-page=dictionary] .dict-hero-orbit{width:85px;height:85px}body[data-dg-page=dictionary] .dict-hero-sticker{width:28px;height:28px}.dict-hero-sticker-one{left:0!important;top:4px!important}.dict-hero-sticker-two{right:-2px!important;bottom:8px!important}body[data-dg-page=dictionary] :is(.dict-season-label,.hero-title,.hero-sub,.dict-hero-caption,.dict-hero-tags){grid-column:1/-1}body[data-dg-page=dictionary] .hero-title{font-size:25px!important;line-height:1.25!important;margin:3px 0 5px!important}body[data-dg-page=dictionary] .dict-hero-caption{font-size:12px!important;margin:4px 0!important}.dg-companion{padding:10px 12px!important;gap:10px!important}.dg-companion img{width:65px!important;height:74px!important}.dg-companion p{font-size:12px}.listen-player h2{font-size:16px!important;margin:0 0 4px}.listen-player #listen-description{display:none}.listen-player .listen-timeline-label{margin:5px 0 0;font-size:10px}.listen-player .listen-player-row{gap:10px}.listen-player #listen-track{margin:0}.dg-room-preview{padding:15px}.dg-room-preview section{font-size:19px}.b-top-title{font-size:18px!important}.b-top{flex-wrap:wrap;gap:10px!important}.b-top-actions{width:100%;gap:6px!important}.b-top-actions button{min-height:40px}.dg-keyboard-open .header-main{position:relative!important;top:auto!important}.dg-keyboard-open :is(#mascot-wrap,.dg-companion,#cw-toggle){display:none!important}.dg-keyboard-open .listen-player{position:relative;top:auto}.dg-keyboard-open[data-dg-page=translate]{padding-bottom:calc(100vh - var(--dg-visual-height,100vh) + 30px)!important}.dg-keyboard-open[data-dg-page=translate] #input-text{min-height:100px!important;height:140px!important;max-height:calc(var(--dg-visual-height,350px) - 100px)!important;resize:vertical}.dg-keyboard-open :is(input,textarea){scroll-margin-block:110px}.dg-keyboard-open{scroll-behavior:auto!important}}
@media(max-width:360px){body[data-dg-page=dictionary] .hero{grid-template-columns:minmax(0,1fr) 82px!important;padding:16px 12px!important}body[data-dg-page=dictionary] .hero-logo{width:145px!important}body[data-dg-page=dictionary] .hero-title{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){.dg-companion{animation:none!important}}
.dg-workspace-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.dg-workspace-shortcuts a{min-height:44px;font-size:13px}body[data-dg-page=translate] .resizable-textarea{overflow:auto;-webkit-overflow-scrolling:touch}html:has(body.dg-keyboard-open){scroll-behavior:auto!important}@media(min-width:1024px) and (max-width:1199px){.header-main .nav-link{font-size:12px!important;padding:8px 6px!important}.hw-logo-badge{display:none!important}}@media(max-width:640px){.dg-workspace-shortcuts{display:grid;grid-template-columns:1fr}.dg-workspace-shortcuts a{justify-content:center}.listen-player .listen-controls input,.listen-player select{font-size:16px!important}}
/* Keep primary actions within the actual viewport, including iPhone and tablet widths. */
.header-main>.max-w-7xl{min-width:0;max-width:1280px}.header-main .hw-brand{min-width:0}.dg-mobile-primary{display:none!important}@media(max-width:1023px){.header-main .dg-desktop-nav{display:none!important}.header-main>.max-w-7xl>.flex{min-width:0;gap:6px!important;padding-inline:0;height:62px!important}.header-main #dg-mobile-trigger{display:flex!important;width:38px;height:42px;flex:none}.header-main .hw-brand{flex:1 1 auto!important;max-width:190px;overflow:hidden}.header-main .hw-brand .logo-wrap{max-width:100%;min-width:0}.header-main .hw-brand .logo-img{width:100%!important;max-width:170px!important;height:auto!important;object-fit:contain}.header-main .hw-nav-tag{display:none!important}.header-main .dg-mobile-primary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;justify-content:initial;padding:5px max(8px,env(safe-area-inset-right)) 7px max(8px,env(safe-area-inset-left));background:var(--dg-ui-card,#fff)}.header-main .dg-mobile-primary a{min-width:0;white-space:normal;line-height:1.35;text-align:center;font-size:11px;padding:6px 3px;min-height:40px}.header-main :is(.theme-btn,.notif-btn){width:38px!important;height:42px!important;min-width:0!important;padding:5px!important}.header-main #user-menu-btn{max-width:110px;min-width:0}#mobile-drawer,#mobile-overlay{display:flex!important}#mobile-overlay{display:block!important}#mobile-overlay:not(.open){pointer-events:none}#mobile-drawer{width:min(340px,90vw)!important;max-width:90vw!important}#theme-menu,#notif-menu{max-width:calc(100vw - 24px)!important}.dg-houses{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dg-resume-card,.dg-continue-card{min-width:0;overflow-wrap:anywhere}}
@media(min-width:1024px) and (max-width:1199px){.header-main .hw-brand{max-width:180px}.header-main .hw-nav-tag{display:none}.header-main .dg-desktop-nav{gap:2px!important;min-width:0}.header-main .nav-link{font-size:11px!important;padding:8px 5px!important}}
@media(max-width:380px){.header-main .hw-brand .logo-img{max-width:118px!important}.header-main .max-w-7xl{padding-inline:8px!important}.header-main .dg-mobile-primary a{font-size:10px}.header-main #user-menu-btn{max-width:80px}.dg-houses{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
