@layer ksSeparateSurfaces{
/* Each original layout already owns its columns, breakpoints, padding and sticky rail. */
html[data-tumblr-preview] #view .korean-panel:is(:has(.ks-reader-layout,.ks-article-layout,.ks-exercise-layout,.kt147-grid,.korean-grammar-grid,iframe[src*="korean-dictionary"]),.ks-reader),
html[data-tumblr-preview] #view :is(.ks-edition,.sample-layout,.exercise-studio,.topic168):has(.ks-reader-layout,.ks-article-layout,.ks-exercise-layout,.kt147-grid,.korean-grammar-grid),
html[data-tumblr-preview] #view :is(.ks-reader-layout,.ks-article-layout,.ks-exercise-layout):not(.t-main){background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html[data-tumblr-preview] #view :is(.ks-reader-layout,.ks-article-layout,.ks-exercise-layout){gap:clamp(16px,1.8vw,28px)!important;align-items:start!important}
html[data-tumblr-preview] #view :is(.ks-reader-layout>.t-main,#ks-theme-contents,.ks-article-reader,.ks-article-outline,.ks-exercise-layout>form,.ks-exercise-reference){background:var(--ks-t-paper,#fff)!important;color:var(--ks-t-text,#172c41)!important;border-radius:20px!important;min-width:0!important}
html[data-tumblr-preview] #view .korean-panel:has(.kt147-grid,.korean-grammar-grid,iframe[src*="korean-dictionary"]) .sample-index-heading{background:transparent!important}
html[data-tumblr-preview] #view .korean-panel:has(.kt147-grid,.korean-grammar-grid,iframe[src*="korean-dictionary"]) .sample-index-heading :is(h1,h2),
html[data-tumblr-preview] #view .korean-panel>.korean-grammar-controls label,
html[data-tumblr-preview] #view .korean-grammar-controls>label{color:#deefff!important}
html[data-tumblr-preview] .ks-smart-note{color:#deefff!important}
html[data-tumblr-preview] .lexicon-masthead h1{color:#deefff!important}
html[data-tumblr-preview] #view .sample-index-heading:is(.ks-article-reader *, .t-main *, .kc-section *) :is(h1,h2){color:var(--ks-t-text)!important}
}
