.themeToggle{font-size:21px!important;width:42px;min-height:42px;display:inline-grid;place-items:center;padding:6px!important;border-radius:50%}.themeFloating{position:fixed;top:max(14px,env(safe-area-inset-top));right:16px;z-index:50;background:var(--paper,#f6f7f2);color:var(--ink,#173b35);border:1px solid var(--line,#e0e5dc)}
[data-theme=dark]{--ink:#e3eee5;--muted:#a5b4aa;--paper:#111d18;--line:#34463b;--green:#263e2d;--orange:#dca27e;--purple:#40344d;--blue:#28424c;--accent:#d4ed9c;color-scheme:dark}
[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] .sidebar{background:#17271e;border-color:var(--line)}[data-theme=dark] .sidebar nav a{color:#b7c8bc}[data-theme=dark] .sidebar nav a.active{background:#d4ed9c;color:#11251a}[data-theme=dark] .sidebar nav a:hover:not(.active){background:#253b2c}[data-theme=dark] .sideBottom,[data-theme=dark] .sideLabel{color:#b0c2a8}[data-theme=dark] .brandmark{background:#d4ed9c;color:#173b35}[data-theme=dark] .brandmark span{color:#42633e}
[data-theme=dark] .topbar{background:#111d18ed;color:#b5c3b8}[data-theme=dark] .quiet{color:var(--ink)}[data-theme=dark] .hero{background:#243724}[data-theme=dark] .hero p,[data-theme=dark] .hero h1 em{color:#bed0ad}[data-theme=dark] .pill{background:#30472f}[data-theme=dark] .stat,[data-theme=dark] .panel,[data-theme=dark] .subjectCard,[data-theme=dark] .chapterCard,[data-theme=dark] .idea,[data-theme=dark] .term,[data-theme=dark] .flashcard,[data-theme=dark] .quizCard,[data-theme=dark] .topicRow,[data-theme=dark] .bookCard,[data-theme=dark] .searchBar,[data-theme=dark] .message,[data-theme=dark] .anatomyFigure{background:#1b2b21;color:var(--ink);border-color:var(--line)}
[data-theme=dark] button:not(.cl-rootBox *),[data-theme=dark] input:not(.cl-rootBox *),[data-theme=dark] select:not(.cl-rootBox *),[data-theme=dark] textarea:not(.cl-rootBox *){background:#213329;color:var(--ink);border-color:#49604f}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#a6b2aa}[data-theme=dark] .primary,[data-theme=dark] .buttonLink,[data-theme=dark] .lessonTabs button.active{background:#d4ed9c;color:#13271b;border-color:#d4ed9c}[data-theme=dark] button.secondary,[data-theme=dark] .buttonLink.secondary{background:transparent;color:var(--ink);border-color:#779167}[data-theme=dark] .chip.active{background:#d4ed9c;color:#13271b}[data-theme=dark] .searchBar input,[data-theme=dark] .quiet{background:transparent}[data-theme=dark] .overview,[data-theme=dark] .answerPanel,[data-theme=dark] .message.user{background:#2a412a}[data-theme=dark] .example,[data-theme=dark] .studyTip,[data-theme=dark] .notice,[data-theme=dark] .pitfall{background:#3b3325;color:#efdfc8}[data-theme=dark] .studyTip small{color:#d0bda1}[data-theme=dark] .feedback{background:#2b3b2d}[data-theme=dark] .option.correct{background:#254b32;border-color:#84b894}[data-theme=dark] .option.wrong{background:#56342c;border-color:#d5a18e}[data-theme=dark] .option span{color:inherit}[data-theme=dark] .chapterCard:hover,[data-theme=dark] .topicRow:hover{background:#25392b}[data-theme=dark] .lessonTabs{background:var(--paper)}[data-theme=dark] .subjectMeta,[data-theme=dark] .subjectMeta b,[data-theme=dark] .stat small,[data-theme=dark] footer{color:#b1bfaf}
[data-theme=dark] .anatomy{--subject:#4b352b;--tone:#efba93}[data-theme=dark] .biology{--subject:#2d432d;--tone:#bad69d}[data-theme=dark] .chemistry{--subject:#3c304c;--tone:#cdb9ec}[data-theme=dark] .physics{--subject:#263e49;--tone:#9ccddd}[data-theme=dark] .radiology{--subject:#244139;--tone:#9ad5c5}[data-theme=dark] .latin{--subject:#443b26;--tone:#e2ca90}[data-theme=dark] .georgian{--subject:#4a303d;--tone:#edb1c7}
[data-theme=dark] dialog,[data-theme=dark] dialog header,[data-theme=dark] #chatForm,[data-theme=dark] .chatContext{background:#1b2b21;color:var(--ink);border-color:var(--line)}[data-theme=dark] #chatMessages{background:#142219}[data-theme=dark] .askLaunch{background:#d4ed9c;color:#173b35}[data-theme=dark] .labVisual{background:#eaf0e3;color:#173b35}[data-theme=dark] .imageCredit{color:#b4c4b4!important}[data-theme=dark] .empty{border-color:#68805a}[data-theme=dark] .progressTrack{background:#3c503d}[data-theme=dark] .avatar{background:#33482d}
[data-theme=dark] body>main>section,[data-theme=dark] .grid>section{background:#1b2b21;border-color:var(--line)}[data-theme=dark] .note,[data-theme=dark] body>main p{color:var(--muted)}
.avatar{overflow:hidden;display:grid;place-items:center}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.avatar .avatarInitials{font-weight:700;font-size:12px}.profilePhotoHint{font-size:12px;color:var(--muted)}
@media(max-width:600px){.topActions .avatar{display:grid!important;width:36px;height:36px;min-height:36px;padding:0!important;margin-left:5px}.topActions{gap:0}.themeToggle{width:36px;min-height:40px}.topbar .quiet{padding:6px!important}}
[data-theme=dark] .longExplanation,[data-theme=dark] .card,[data-theme=dark] .sheet,[data-theme=dark] .aiMessage{background:#1b2b21;color:var(--ink);border-color:var(--line)}[data-theme=dark] .longExplanationButton,[data-theme=dark] .answer,[data-theme=dark] .rail .selected{background:#2a412b;color:var(--ink)}[data-theme=dark] .visual,[data-theme=dark] .logo{background:#294b43;color:#e3eee5}[data-theme=dark] .tabs .active,[data-theme=dark] .filterActive,[data-theme=dark] .lime{background:#d4ed9c;color:#13271b}[data-theme=dark] .warning{background:#3b3325;color:#efdfc8}[data-theme=dark] .right{background:#254b32!important;color:#e3eee5}[data-theme=dark] .wrong{background:#56342c!important;color:#f6e6df}[data-theme=dark] #aiTutor,[data-theme=dark] #aiForm{background:#1b2b21;color:var(--ink);border-color:var(--line)}[data-theme=dark] #aiMessages{background:#142219}[data-theme=dark] .aiMessage.user{background:#2a412b}[data-theme=dark] .aiHead small,[data-theme=dark] .aiWelcome,[data-theme=dark] .footer{color:var(--muted)}body:has(.themeFloating)>header{padding-right:72px}

.independenceNotice{font-size:12px;line-height:1.7;flex-basis:100%;margin-left:0;color:var(--muted,#647264)}
