/* Source: mobile-exercise-actions.css */
@layer ksMobileExerciseActions {
  @media (max-width: 760px) {
    #view :is(.korean-task,.ks-task-recovery) :is([data-ks-action163="reset"],[data-writing-reset161],[data-prev155],[aria-label="Предыдущее задание"]),
    #view .ks-topic-sample-nav a:not(.ks-continue),
    #view .ks-task-recovery nav a:has(~ .ks-continue) {
      display: none !important;
    }
    #view :is(.korean-task,.ks-task-recovery) a.ks-continue:not(.inline-work *,details:not([open]) *) {
      position: fixed !important;
      inset: auto max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)) !important;
      z-index: 91 !important;
      width: auto !important;
      max-width: none !important;
      height: auto !important;
      min-height: 46px !important;
      margin: 0 !important;
      padding: 8px 12px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      background: #30775f !important;
      color: white !important;
      border-radius: 10px !important;
    }
    #view:has(:is(.korean-task,.ks-task-recovery) a.ks-continue:not(.inline-work *,details:not([open]) *)) {
      padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }
  }
}


/* Source: mobile-study.css */
@layer ksMobileStudy {
#ks-mobile-study:empty,#ks-mobile-menu:not([open]){display:none!important}
@media(min-width:761px){#ks-mobile-study{display:none!important}}
@media(max-width:760px){
#view [data-ks-mobile-away],#view :is(.study-grammar,.continuous-topic) :is(.article-outline,#outline,#openOutline){display:none!important}
#view :is(.study-grammar,.continuous-topic) .learn-layout{display:block!important}
#view :is(.study-grammar,.continuous-topic) :is(.learn-center,.learn-reader){min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
#view :is(.study-grammar,.continuous-topic) .ks-practice-section .ks-practice-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
#ks-mobile-study,#ks-mobile-menu{font-family:inherit;color:#211d40;background:white}
#ks-mobile-study{position:fixed;z-index:90;bottom:0;inset-inline:0;display:flex;gap:4px;align-items:center;border-top:1px solid #d9e7df;padding:6px 10px max(8px,env(safe-area-inset-bottom));box-sizing:border-box}
#ks-mobile-study button,#ks-mobile-menu button{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer}
#ks-mobile-study button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 4px;border-radius:10px}
#ks-mobile-study button[aria-pressed=true],#ks-mobile-menu button[aria-current=true]{background:#e5f4ed;color:#176448}
.ks-mobile-disclose::after{content:"";display:block;width:7px;height:7px;box-sizing:border-box;border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:translateY(2px) rotate(-45deg)}
#ks-mobile-menu[open]{display:block;position:fixed;inset:auto 0 0;width:min(100%,520px);box-sizing:border-box;max-width:100%;max-height:76dvh;margin:0 auto;overflow:auto;border:1px solid #d9e7df;border-radius:20px 20px 0 0;padding:15px 18px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 36px #20223c12}
#ks-mobile-menu::backdrop{background:#211d404f}
#ks-mobile-menu header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
#ks-mobile-menu h2{margin:0;font-weight:700;line-height:1.25;font-family:inherit;font-size:20px}
#ks-mobile-menu header button{width:44px;height:44px;font-size:24px}
#ks-mobile-menu>button{display:block;width:100%;text-align:start;padding:12px;min-height:44px;border-top:1px solid #dce8e1;border-radius:4px}
#ks-mobile-menu small{display:block;font-size:13px;color:#596c63}
#view :is(.study-grammar,.continuous-topic) select:not([hidden]){appearance:none!important;border:1px solid #bcd6c9!important;border-radius:8px!important;padding:7px 27px 7px 10px!important;color:#214c3b!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%232b654e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center!important}

body:has(#ks-mobile-study:not(:empty)) #main-content{padding-inline:4px!important}
#view .study-grammar>.classroom-learn,#view .continuous-topic{padding-inline:0!important}
#view :is(.study-grammar,.continuous-topic) .ks-practice-section{margin-top:0!important;padding-top:0!important;border-top:0!important}
#ks-mobile-study button{border:0!important;box-shadow:none!important;background:transparent!important}
#ks-mobile-study button[aria-pressed=true]{background:#e5f4ed!important;color:#176448!important}
#ks-mobile-menu>button{box-shadow:none!important}
}}

