/* Explicit theme choice; never invert scientific images or diagrams. */
html[data-reading-dark=true]{color-scheme:dark;--paper:#14231d;--surface:#20342a;--ink:#f0f4ea;--body:#dbe5d7;--muted:#b4c6b4;--line:#486051;--forest:#356b50;--green:#2a4938}
html[data-reading-dark=true] body{background:var(--paper);color:var(--ink)}
html[data-reading-dark=true] :is(.site-header,.mobile-nav,.site-footer,.mobile-quick-nav,.directory-card,.directory-notice,.hub-item,.hub-quick-card,.level-card,.article-card,.category-grid>a,.biology-pathway-card,.up-unit-card,.up-note-row,.up-exam-card,.up-note-article,.up-guidance,.ge-toc,.ge-study-section,.ge-lead,.preparation-banner,.workspace-reader,.workspace-dashboard,.workspace-home,.open-result,.learning-summary,.saved-row,.reading-controls){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] :is(.directory-card,.hub-item,.hub-quick-card,.level-card,.article-card,.category-grid>a,.biology-pathway-card,.up-unit-card,.up-note-row,.up-exam-card,.up-note-article,.up-guidance,.ge-lesson,.ge-toc,.page-intro,.note-header,.workspace-reader,.workspace-dashboard,.preparation-banner) :is(h1,h2,h3,h4,p,li,strong,small,.eyebrow,.text-link,.up-mini,.up-card-footer){color:var(--ink)}
html[data-reading-dark=true] :is(.directory-icon,.directory-card .science-icon,.ge-mark,.ge-number,.biology-pathway-symbol,.hy-panel-icon,.hy-topic-icon){background:#2d5140;color:#d0e7c7;border-color:#547764}
html[data-reading-dark=true] .hy-library-page{--hy-ink:var(--ink);--hy-muted:var(--muted);--hy-accent:#b6d9a9;--hy-border:var(--line);--hy-shadow:none}
html[data-reading-dark=true] :is(.hy-nav,.hy-table-panel,.hy-outline,.hy-pyq,.hy-science-figure,.hy-btn,.hy-detail-meta span,.hy-table td,.hy-table th,.hy-view-switch button){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-reading-dark=true] :is(.hy-table tr:nth-child(even) td,.hy-table th){background:#2a4637}
html[data-reading-dark=true] .hy-library-page :is(.directory-card h3,.directory-card .text-link,.hy-kicker,.hy-panel-heading,.hy-science-figure figcaption,.hy-science-figure figcaption strong){color:var(--ink)}
html[data-reading-dark=true] .hy-library-page .directory-card .text-link{background:#2d5140;border-color:#547764}
html[data-reading-dark=true] .hy-library-page .hy-figure-media,html[data-reading-dark=true] .paper-question-art{background:#fff;color:#183b32}
html[data-reading-dark=true] :is(.paper-app,.csir-pace,.biology-practice,.gate-xl){color:var(--ink)}
html[data-reading-dark=true] .csir-pace{--pace-ink:var(--ink);--pace-muted:var(--muted);--pace-border:var(--line);--pace-green:#376d50}
html[data-reading-dark=true] .gate-xl{--xl-ink:var(--ink);--xl-muted:var(--muted);--xl-accent:#c0e1b3;--xl-line:var(--line);--xl-paper:var(--surface);--xl-tint:#294637}
html[data-reading-dark=true] :is(.gate-xl-pattern,.gate-xl-subject-intro,.gate-xl[data-gate-xl="revision"],.gate-xl[data-gate-xl="archive"],.gate-xl[data-gate-xl="practice"],.gate-xl[data-gate-xl="legacy"],.paper-stats>div,.paper-provenance,.paper-instructions,.paper-question,.paper-palette,.paper-exam-top,.paper-reading-tools,.paper-parts a,.paper-parts button,.paper-scheme table,.paper-scheme th,.csir-pace-intro,.csir-pace-builder,.csir-pace-session,.csir-pace-results,.csir-pace-history,.csir-pace-confirm,.csir-pace-tag,.csir-pace-option,.practice-intro,.practice-builder,.biology-practice [data-session],.biology-practice [data-results],.practice-history,.practice-review-item){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-reading-dark=true] :is(.paper-app,.csir-pace,.biology-practice,.gate-xl) :is(h1,h2,h3,h4,p,label,small,strong,.paper-part-meta,.paper-session-label,.practice-tag,.practice-availability,.gate-xl-kicker){color:var(--ink)}
html[data-reading-dark=true] :is(.paper-app,.csir-pace,.biology-practice,.gate-xl) a{color:#c0e1b3}
html[data-reading-dark=true] :is(.paper-app,.csir-pace,.biology-practice) :is(button,select,input:not([type=radio]):not([type=checkbox])){background:#294637;border-color:#587864;color:var(--ink)}
html[data-reading-dark=true] :is(.paper-app,.csir-pace,.biology-practice) :is(button[aria-pressed=true],.csir-pace-option:has(input:checked)){background:#375c43;border-color:#afd49f;color:#fff;box-shadow:inset 3px 0 #afd49f}
html[data-reading-dark=true] :is(.paper-primary,.csir-pace-primary,.practice-primary,.hy-btn-primary){background:#356b50!important;color:white!important}
html[data-reading-dark=true] :is(.ge-table th,.ge-table td,.ka-editorial .ge-table tbody tr:nth-child(even),.ka-editorial .ge-table th,.ka-letter,.ka-stat,.ka-branches>.ka-stat,.ka-exam-note,.ge-letters,.ge-interact,.ge-explanation,.ge-art-controls button){background:#294637;color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] :is(.ka-letter strong,.ka-stat strong,.ka-editorial h3,.ka-equations,.ka-exam-note,.ge-interact output){color:var(--ink)!important}
html[data-reading-dark=true][data-theme=biosins]{--accent:#497c5d;--accent-soft:#294637;--success:#a9d9b1;--danger:#f2b2a8;--muted:#b4c6b4}
html[data-reading-dark=true][data-theme=biosins] :is(.card,.summary-card,.exam-header,.palette-card,.builder-intro,.modal .box,#finishModal,.alphabet-panel,.advanced,.letter-key,.btn.secondary,.choice,.option,.history-empty,.loading-status){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true][data-theme=biosins] :is(h1,h2,h3,h4,p,label,small,.muted,.small,.exam-eyebrow,.clock-label){color:var(--ink)}
html[data-reading-dark=true][data-theme=biosins] :is(input:not([type=radio]):not([type=checkbox]),select){background:#294637;color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true][data-theme=biosins] :is(.letter-key[aria-pressed=true],.choice.selected,.option.selected){background:#375c43;color:var(--ink);border-color:#afd49f}
@media print{html[data-reading-dark=true]{color-scheme:light;--paper:white;--surface:white;--ink:#111;--body:#222;--muted:#555;--line:#ccc;--forest:#234a36}}

html[data-reading-dark=true][data-theme=biosins] :is(.opt,.pal,.heat button,.segments span,.presets button,.leafrow,.topic-group,.summary-metrics>div,.badge,.pill){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-reading-dark=true][data-theme=biosins] :is(.opt.selected,.pal.answered,.segments input:checked+span){background:#375c43;border-color:#afd49f;color:var(--ink)}
html[data-reading-dark=true][data-theme=biosins] .pal.current{outline-color:#afd49f}
html[data-reading-dark=true][data-theme=biosins] .exam-clock.time-warning{background:#533c28;color:#ffe5b7}
html[data-reading-dark=true][data-theme=biosins] .exam-clock.time-critical{background:#55312e;color:#ffddda}
html[data-reading-dark=true][data-theme=biosins] .exam-clock.time-warning .timer{color:#ffe5b7}
html[data-reading-dark=true][data-theme=biosins] .exam-clock.time-critical .timer{color:#ffddda}

/* Shared appearance control: separate from study navigation, available on every shell and standalone practice app. */
.theme-floater{position:fixed;z-index:55;right:max(14px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:4px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:0 5px 24px #102d3229;color:var(--ink)}
.theme-floater button{display:grid;place-items:center;width:44px;height:44px;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;padding:0;flex:none}
.theme-floater button[aria-pressed=true]{background:#e3edda;color:#234b36;border-color:#a4b99a}
.theme-floater button:focus-visible{outline:3px solid #a0ae62;outline-offset:2px}
html[data-reading-dark=true] .theme-floater button[aria-pressed=true]{background:#3d604b;color:#fff;border-color:#93bc83}
@media(max-width:680px){.theme-floater{right:10px;bottom:calc(69px + env(safe-area-inset-bottom))}.theme-floater button{width:44px;height:44px}.general-exams-page:has(.ka-editorial) .theme-floater{bottom:calc(69px + env(safe-area-inset-bottom));right:10px}html[data-theme=biosins] .theme-floater{bottom:calc(12px + env(safe-area-inset-bottom))}}
body:has(dialog[open]) .theme-floater{visibility:hidden}
@media print{.theme-floater{display:none!important}}

/* Sitewide semantic contrast palette; retain original art, photographs and SVG fills. */
html[data-reading-dark=true]{--link:#c0e2b4;--soft:#2b4638;--accent-text:#bcdcae;--gold-text:#f0d296;--good-bg:#294d38;--good-text:#c7edbf;--bad-bg:#512e30;--bad-text:#ffc9c3;--warning-bg:#4f3e29;--warning-text:#ffe0a6;--violet-bg:#3a344f;--violet-text:#e3d2ff;--blue-bg:#263e52;--blue-text:#c9e6ff;--teal-bg:#244743;--teal-text:#b9ede4}
html[data-reading-dark=true] :is(.eyebrow,.small,.muted,.note-deck,.note-meta,.sidebar-note,.footer-top p,.breadcrumb,.breadcrumbs,.up-mini,.up-note-state,.up-note-code,.up-note-label,.ge-chapter-kicker,.ka-chapter-kicker,.ka-editorial .ge-toc a span,.ecology-note-code,.ecology-note-status,.hy-library-page .hy-topic-status,.hy-library-page .hy-published-figure .hy-image-credit){color:var(--muted)}
html[data-reading-dark=true] :is(h1 em,h2 em,.green-text,.story-opening,.note-section .definition,.keyline>span,.text-link,.directory-source a,.hub-item-link,.contents-panel nav a:hover,.contents-panel nav a[aria-current=true],.ready-note .ecology-note-status,.ecology-note-list .ready-note .ecology-note-code,.gate-xl-source,.hy-library-page .hy-cell-label,.formula code){color:var(--link)!important}
html[data-reading-dark=true] :is(.saved-link,.empty-state,.search-form,.search-result,.reference-band,.level-featured,.wide-collection,.exam-card,.explore-feature,.premium-path,.premium-manifesto,.hub-general,.hub-item-pending,.hub-home-footer,.biology-pathway-card,.up-subject-card,.up-featured,.up-section,.up-section-head,.up-muted,.up-unit-planned,.up-jump a,.ge-home-catalogue .ge-category-card,.ecology-feature,.ecology-start,.ecology-section-card,.ecology-outline-section,.ecology-preparation,.lab,.segmented,.answer-options button,.step-controls button,.hy-library-page .hy-unit-summary,.hy-library-page .hy-takeaway,.hy-library-page .hy-pyq article,.hy-library-page .hy-reference,.hy-library-page .hy-outline li,.hy-library-page .hy-view-switch,.hy-library-page .hy-table-wrap,.paper-solution,.paper-exam [data-result-parts] p){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] :is(.hub-general,.premium-path,.ge-home-catalogue .ge-category-card,.up-subject-card,.up-unit-card,.up-section,.ecology-section-card,.ecology-outline-section,.hy-library-page .hy-takeaway,.hy-library-page .hy-pyq article,.hy-library-page .hy-outline li,.paper-solution) :is(h1,h2,h3,h4,p,li,strong,small,span:not([class]),.eyebrow,.text-link){color:var(--ink)}
html[data-reading-dark=true] :is(.hub-intro h1,.hub-section h2,.hub-intro>p,.hub-section>p,.hub-section-heading>p,.hub-bottom p,.hub-home-footer p,.premium-path .path-headline,.path-cap>span,.hub-status,.up-subject-card h2,.up-unit-card h2,.hy-library-page .hy-pyq article h3,.hy-library-page .hy-takeaway p,.paper-clock strong,.practice-top [data-clock],.paper-legend,.paper-reader-toolbar [data-reading-status],.paper-exam [data-question-marks],.paper-exam-top [data-counts],.paper-stats span,.paper-palette p,.paper-palette h4){color:var(--ink)}
html[data-reading-dark=true] :is(.button-outline,.text-button,.intent-switch button,.search-form input,.open-search input,.workspace-actions button,.directory-view-control button,.workspace-favourite,.diagram-zoom-button,.reading-controls select,.ge-art-controls button,.kg-adjacent a){color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] :is(.button-outline:hover,.directory-card:hover,.up-note-row:hover,.gate-xl-card:hover,.gate-xl-mode-nav a:hover,.gate-xl-section-nav a:hover,.gate-xl-action:hover,.ecology-section-card:hover,.ecology-note-list a:hover,.paper-app button:hover,.csir-pace button:hover:not(:disabled),.step-controls button:hover,.answer-options button:hover){background:var(--soft);color:var(--ink)}
html[data-reading-dark=true] :is(.button-primary,.paper-app .paper-primary,.csir-pace button.csir-pace-primary,.biology-practice button.practice-primary,.hy-library-page .hy-btn-primary){color:#fff;background:#356b50;border-color:#72997a}
html[data-reading-dark=true] :is(.tag,.exam-code,.card-art,.collection-icon,.empty-symbol,.hub-letter,.hub-quick-card>.icon:first-child,.ge-category-medallion,.hy-library-page .hy-pyq-status,.hy-library-page .hy-pending-label,.hy-library-page .hy-detail-meta span,.answer-options button>span,.ge-letters,.ka-letter,.ka-stat,.kg-tiles span,.kg-tiles strong,.kg-study .kg-equation,.kg-equation-tiles .kg-word:last-child,.ka-pos-0,.ka-pos-2,.ka-editorial .ka-language-control,.kg-adjacent a,.paper-number.answered){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] :is(.tag.gold,.kg-tiles b,.ka-pos-1,.ka-pos-3,.ka-subbranches>.ka-stat:nth-child(2),.ka-exam-note){background:var(--warning-bg);color:var(--warning-text)!important}
html[data-reading-dark=true] :is(.ka-exam-line,.paper-live-message){color:var(--warning-text)!important}
html[data-reading-dark=true] :is(.ka-branches>.ka-stat:nth-child(2),.kg-category-tiles .ka-stat:nth-child(3n+2)){background:var(--blue-bg);color:var(--blue-text)}
html[data-reading-dark=true] :is(.ka-branches>.ka-stat:nth-child(3),.paper-number.flagged){background:var(--violet-bg);color:var(--violet-text)}
html[data-reading-dark=true] :is(.ka-pos-4,.kg-sky){background:var(--teal-bg);color:var(--teal-text)}
html[data-reading-dark=true] :is(.kg-category-tiles .ka-stat:nth-child(3n),.kg-study .kg-compass .ka-letter:nth-child(5),.ge-option:has(input:checked),.note-actions .button[aria-pressed=true],.segmented button[aria-pressed=true],.step-controls button[aria-pressed=true],.workspace-actions button[aria-pressed=true],.gate-xl-topics li:target,.hy-library-page .hy-view-switch button[aria-pressed=true],.hy-library-page .hy-outline li.hy-ready){background:var(--good-bg);color:var(--good-text);border-color:#719d72}
html[data-reading-dark=true] .kg-study .kg-right,html[data-reading-dark=true] .answer-options button[data-correct=true]{background:var(--good-bg)!important;color:var(--good-text)!important}
html[data-reading-dark=true] .kg-study .kg-wrong,html[data-reading-dark=true] .answer-options button[data-incorrect=true]{background:var(--bad-bg)!important;color:var(--bad-text)!important}
html[data-reading-dark=true] :is(.kg-right,.kg-wrong) :is(span,strong,p){color:inherit!important}
html[data-reading-dark=true] :is(.ka-editorial .ka-language-control button,.kg-study .kg-equation,.ka-editorial .ge-option,.ge-interact output){color:var(--ink)}
html[data-reading-dark=true] .ka-editorial .ka-language-control button[aria-pressed=true]{background:#416b4b;color:#fff}
html[data-reading-dark=true] :is(.contents-panel nav a,.contents-panel nav a span,.answer-feedback,legend,.related-links a>span){color:var(--muted)}
html[data-reading-dark=true] :is(caption,thead,tbody th,tbody tr:nth-child(even)){background:var(--soft);color:var(--ink)}
html[data-reading-dark=true] :is(table,td,th){border-color:var(--line)}
html[data-reading-dark=true] .hy-library-page{--hy-bg:var(--surface);--hy-tint:var(--soft)}
html[data-reading-dark=true] .up-portal{--up-border:var(--line);--up-soft:var(--soft);--up-ink:var(--ink)}
html[data-reading-dark=true] .hy-library-page .hy-table :is(caption,thead th,tbody th,tbody td,tbody td:last-child),html[data-reading-dark=true] .hy-library-page .hy-table-panel.hy-cards .hy-table tr{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true] .hy-library-page .hy-table :is(thead th,tbody th),html[data-reading-dark=true] .hy-library-page .hy-table tbody tr:nth-child(even) td{background:var(--soft);color:var(--ink)}
html[data-reading-dark=true] .hy-library-page .hy-table tbody tr:hover td{background:#365344;color:var(--ink)}
html[data-reading-dark=true] :is(.directory-card,.up-subject-card,.up-unit-card){--science-accent:var(--link);--science-tint:var(--soft);--science-edge:var(--line)}
html[data-reading-dark=true] :is(.directory-card,.up-portal) .tone-teal{background:var(--teal-bg);color:var(--teal-text)}
html[data-reading-dark=true] :is(.directory-card,.up-portal) .tone-amber{background:var(--warning-bg);color:var(--warning-text)}
html[data-reading-dark=true] :is(.directory-card,.up-portal) .tone-violet{background:var(--violet-bg);color:var(--violet-text)}
html[data-reading-dark=true] :is(.directory-card,.up-portal) .tone-blue{background:var(--blue-bg);color:var(--blue-text)}
html[data-reading-dark=true] :is(.directory-card,.up-portal) .tone-rose{background:var(--bad-bg);color:var(--bad-text)}
html[data-reading-dark=true] :is(.ge-home-catalogue .ge-category-card,.hub-general,.premium-path.path-02,.premium-path.path-03,.exam-card.active-exam){background:var(--surface)}
html[data-reading-dark=true] .hub-general .hub-exam-links>span{background:var(--soft);color:var(--ink)}
html[data-reading-dark=true] .paper-contrast .paper-native,html[data-reading-dark=true] .paper-contrast .paper-options-native button:not([aria-pressed=true]){background:#fff;color:#121212}
html[data-reading-dark=true] .hy-library-page .hy-figure-media,html[data-reading-dark=true] .paper-question-art,html[data-reading-dark=true] .ge-art figure{background:#fff;color:#173e32}
html[data-reading-dark=true][data-theme=biosins]{--studio-border:var(--line);--studio-shadow:none}
html[data-reading-dark=true][data-theme=biosins] :is(#summaryCard,.leaf-heading .text-action,.leaf-code,.leafrow:has([data-leaf-check]:checked),.negative-track,.filterbar button,.summary-metrics>div){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-reading-dark=true][data-theme=biosins] :is(.scope-warning,.question-flag,.key-icon.marked){color:var(--warning-text)}
html[data-reading-dark=true][data-theme=biosins] :is(.badge.correct,.pal.answered){background:var(--good-bg);color:var(--good-text)}
html[data-reading-dark=true][data-theme=biosins] .badge.wrong{background:var(--bad-bg);color:var(--bad-text)}
html[data-reading-dark=true][data-theme=biosins] .exam-actions #markBtn[aria-pressed=true]{background:var(--warning-bg);color:var(--warning-text)}
html[data-reading-dark=true][data-theme=biosins] :is(.text-action,.pal,.heat button){color:var(--link)}
/* Ecology A1 predates the newer native theme palettes. Scope repairs to its text and learning surfaces. */
html[data-reading-dark=true] .a1-breadcrumb-strip{background:var(--paper);border-color:var(--line)}
html[data-reading-dark=true] .ecology-a1{--bg:#14231d;--text:#f0f4ea;--surface:#20342a;color:var(--text);background:var(--bg)}
html[data-reading-dark=true] .ecology-a1 :is(.a1-theory,.a1-theory h3,.a1-theory p,.a1-theory li,.a1-table-scroll table,figcaption){color:#dbe5d7}
html[data-reading-dark=true] .ecology-a1 :is(.a1-table-scroll,.a1-table-scroll tbody tr:nth-child(even),.a1-callout,.bg-white){background:#20342a;color:#f0f4ea}
html[data-reading-dark=true] .ecology-a1 :is(.a1-table-scroll th,.a1-callout){background:#2b4638;color:#f0f4ea}
html[data-reading-dark=true] .ecology-a1 .a1-figure-button{background:#fff;color:#173e32}
html[data-reading-dark=true] .ecology-a1 [data-ink=inverse]>.a1-theory,html[data-reading-dark=true] .ecology-a1 .a1-hero-story p,html[data-reading-dark=true] .ecology-a1 #hero figcaption{color:#f6f8ef}
@media print{html[data-reading-dark=true] body{background:white;color:#111}}

/* Reserve space above the independent Kannada language switch on all screen sizes. */
body:has(.ka-language-control) .theme-floater{bottom:calc(86px + env(safe-area-inset-bottom))}
html[data-reading-dark=true] :is(.a2-breadcrumb-strip,.a3-breadcrumb-strip){color:var(--ink)}
html[data-reading-dark=true] :is(.ge-art figure,.hy-figure-media,.paper-question-art) :is(figcaption,p,span:not([class])){color:#173e32}
html[data-reading-dark=true] :is(.ge-art figure,.hy-figure-media,.paper-question-art) a{color:#24583e}
html[data-reading-dark=true] .hy-library-page .hy-enlarge-label{background:#20342a;color:#c0e2b4}
html[data-reading-dark=true] .hy-library-page .hy-image-credit{color:var(--muted)}
html[data-reading-dark=true] :is(.ge-home-catalogue .ge-category-card .eyebrow,.ge-home-catalogue .ge-category-card .text-link){color:var(--gold-text)}
html[data-reading-dark=true] :is(.ge-home-catalogue .ge-category-card p,.hub-quick-card.home-practice-card p){color:var(--body)}
html[data-reading-dark=true] .ecology-a1 :is(.a1-toolbar,.a1-mobile-contents,.a1-level-rail,.a1-contents,.a1-references){background:#20342a;color:#f0f4ea;border-color:#486051}
html[data-reading-dark=true] .ecology-a1 :is(.a1-toolbar,.a1-mobile-contents,.a1-level-rail,.a1-contents,.a1-references) :is(a,button,p,li,strong,span){color:#dbe5d7}
html[data-reading-dark=true] .ecology-a1 [class*="text-[#1a4d2e]"],html[data-reading-dark=true] .ecology-a1 [class*="text-[#0e7490]"]{color:#c0e2b4}
html[data-reading-dark=true] .ecology-a1 :is([class*="bg-[#e0f2f1]"],[class*="bg-[#f5e6c8]"],[class*="bg-[#fff9ec]"]){background:#294637;color:#dbe5d7}
html[data-reading-dark=true] .ecology-a1 :is([class*="text-[#7a3a18]"],[class*="text-[#7a5a28]"],[class*="text-[#9a4a18]"]){color:#ffe0a6}

/* Correct the remaining solid-background contrast failures found by browser QA. */
@layer components{html[data-reading-dark=true] .story-opening{color:#c0e2b4!important}}
html[data-reading-dark=true] .ka-editorial .ge-lesson p.ka-exam-note,html[data-reading-dark=true] .ka-editorial p.ka-exam-note{background:#4f3e29!important;color:#ffe0a6!important}
html[data-reading-dark=true] .ka-editorial p.ka-exam-line{color:#ffe0a6!important;background:#4f3e29!important;border-radius:8px;padding:6px 10px}
html[data-reading-dark=true] .ka-editorial #ge-quiz button{background:#356b50;color:#fff;border-color:#83aa82}
html[data-reading-dark=true] .ecology-a1 .a1-toolbar-actions button,html[data-reading-dark=true] .ecology-a1 .a1-completion button{background:#294637;color:#f0f4ea;border-color:#72947d}
html[data-reading-dark=true] .ecology-a1 :is(.a1-toolbar-actions,.a1-completion) button[aria-pressed=true]{background:#356b50;color:white}
html[data-reading-dark=true] .ecology-a1 :is(.a1-mobile-contents,.a1-contents) nav{background:#20342a;color:#f0f4ea;border-color:#486051}
html[data-reading-dark=true] .ecology-a1 :is(.a1-mobile-contents,.a1-contents) a[aria-current=location]{background:#375c43;color:#fff}
html[data-reading-dark=true] .ecology-a1 .a1-question-lab{background:#244743;color:#f0f4ea;border-color:#5d8276}
html[data-reading-dark=true] .ecology-a1 .a1-question-lab :is(h3,p,legend,label){color:#f0f4ea}
html[data-reading-dark=true] .ecology-a1 .a1-question-lab button{background:#294637;color:#f0f4ea;border-color:#719d72}
html[data-reading-dark=true] .ecology-a1 .a1-question-lab button[aria-pressed=true]{background:#356b50;color:white}
html:not([data-reading-dark=true]) .note-deck,html:not([data-reading-dark=true]) .contents-panel nav a,html:not([data-reading-dark=true]) .ecology-a1 .a1-level-rail nav a{color:#52634e}

/* Important rules in named layers outrank unlayered important rules. Match the original Kannada layer. */
@layer responsive {
 html[data-reading-dark=true] .ka-editorial p.ka-exam-note{color:#ffe0a6!important}
 html[data-reading-dark=true] .ka-editorial p.ka-exam-line{color:#ffe0a6!important}
}
html[data-reading-dark=true] .ecology-a1 .a1-contents h2{color:#dbe5d7}
