@layer ksReadable {
html[data-tumblr-preview] {
  --ks-new-word:#117499;--ks-studied-word:#965074;--ks-known-word:#536781;
  --ks-grade-bad-bg:#fbe2e9;--ks-grade-bad-ink:#772039;
  --ks-grade-ok-bg:#d5f7e6;--ks-grade-ok-ink:#095737;
  & .skip-link {background:#12304b!important;color:white!important}
  & .lesson-path a {border-radius:12px!important}
  & .lesson-path a:is([aria-current]:not([aria-current=false]),:hover,:focus-visible) {
    background:var(--ks-t-tint)!important;color:var(--ks-t-link)!important
  }
  & .lesson-path a:is([aria-current],:hover,:focus-visible)>span {color:inherit!important}
  & :is([data-mark155=retry],[data-mark156=retry],[data-state=retry],[data-ks-grade=retry],.is-wrong,.incorrect,.wrong) {
    background:var(--ks-grade-bad-bg)!important;color:var(--ks-grade-bad-ink)!important;border-color:var(--ks-grade-bad-ink)!important
  }
  & :is([data-mark155=ok],[data-mark156=ok],[data-state=ok],[data-ks-grade=ok],.is-correct,.correct) {
    background:var(--ks-grade-ok-bg)!important;color:var(--ks-grade-ok-ink)!important;border-color:var(--ks-grade-ok-ink)!important
  }
}
html[data-tumblr-preview][data-ks-dark] {
  --ks-new-word:#78d5ff;--ks-studied-word:#f4afd3;--ks-known-word:#b3c9de;
  --ks-grade-bad-bg:#512d41;--ks-grade-bad-ink:#ffd9e5;
  --ks-grade-ok-bg:#144b3c;--ks-grade-ok-ink:#b6ffda;
  & :is(.studio-home-welcome h1,.studio-home-profile-heading h2,.studio-home-profile-identity>strong,
        .topic-mast,.reader-head,.gl-rule,.gl-extra,.lesson-path a,.ks-reference-grid a,.ks-profile-score button,
        .vocab-section,.ks-practice-section,.gs-rail,.gs-category,.lessonbody,.sample-paper,.gl-formation) {
    color:var(--ks-t-text)!important
  }
  & :is(.studio-home-welcome h1 span,.topic-mast strong,.learn-meta,.reader-head strong,.gl-ko,
        .lesson-path a>span,.lesson-path a>small,.gl-cell small,.gl-slot small,.gl-caption,.gl-note,
        .ks-practice-card-description,.section-heading h2,.ks-topic-vocab-actions span,
        .wordgroup summary small,.wordgrid b,.ks-practice-section h2,.lessonbody .sample-intro :is(h1,small),
        .ks-written-line,.ks-written-line>strong,.ks-reference-grid h2,.gs-category h2,.gs-category .cs-note,.gs-rail h2,
        .korean-panel:has(.ks-reference-grid)>h1) {color:var(--ks-t-text)!important}
  & :is(.gl-formation,.gl-extra,.ks-profile-score button,.wordgroup,.wordgrid .word,.ks-practice-section,
        .vocab-section,.ks-reference-grid a,.gs-category,.gs-rail,.lessonbody,.lessonbody .sample-intro) {
    background:var(--ks-t-paper)!important
  }
  & .gl-formation {background:var(--ks-t-tint)!important}
  & .gl-formation :is(div,b,strong,p,small,span,h3) {color:var(--ks-t-text)!important}
  & :is(.wordgroup summary,.gs-filter,.gs-filter-copy) {background:var(--ks-t-paper)!important;color:var(--ks-t-text)!important}
  & .wordgroup summary span {color:inherit!important}
  & .kn-layout strong {color:inherit!important}
  & .ir-rule mark {background:var(--ks-t-tint)!important;color:var(--ks-t-text)!important}
  & .gl-extra {border-inline-start-color:var(--ks-t-link)!important}
  & :is(.kc-action,.kc-action span) {color:#001935!important}
  & :is(.ir-rule,.ir-forms,.ir-check,.ir-example) strong {color:inherit!important}
  & .lesson-path a[aria-current]>span {color:var(--ks-t-link)!important}
  & .ks-written-line .ks-lexeme {color:inherit!important}
  & :is(mark,[data-mark155],[data-mark156],[data-ks-grade]) .gl-ko {color:inherit!important}
}
}
@layer ksReadable {
html[data-tumblr-preview] {
  & .cs-heading, & .ks-reader .sample-list>p {color:#e8f4ff!important}
  & .cs-heading :is(h1,p) {color:inherit!important}
  & :is(.gs-level,.cs-system,.kt-tag,.ks-color-legend [data-stage]) {
    background:var(--ks-t-tint)!important;color:var(--ks-t-text)!important
  }
  & .gs-sections>h1, & .article-outline>a {
    background:var(--ks-t-paper)!important;color:var(--ks-t-text)!important
  }
  & .cabinet-words-message, & body>main section button {background:var(--ks-t-paper)!important;color:var(--ks-t-text)!important}
}
}
@layer ksReadable {
html[data-tumblr-preview][data-ks-dark] form.korean-task :is(button.ks-theme-choice:not([data-mark155=ok],[data-mark155=retry],[aria-pressed=true]),.ks-topic-reset152) {
  background:var(--ks-t-tint)!important;color:var(--ks-t-text)!important;border-color:var(--ks-t-edge)!important;
}
}
@layer ksReadable {
html[data-tumblr-preview] .ks-home-invite h2 {color:var(--ks-t-text)!important}
html[data-tumblr-preview] .topbar .ks-area-title {color:#e5f4ff!important;background:#001935!important}
}
@layer ksReadable {
html[data-tumblr-preview] #ks-account-window details summary {background:var(--ks-t-tint)!important;color:var(--ks-t-text)!important}
}
