:root[data-theme="dark"]{color-scheme:dark;--ink:#e6ece7;--muted:#a2aea5;--line:#344239;--paper:#202b24;--canvas:#151d18;--green:#8fbd98;--green-2:#a5cbaa;--mint:#293a2e;--gold:#d4b87f;--gold-dark:#dfc48f;--peach:#3b3025;--blue:#293642;--lav:#342e3e;--red:#e9897c;--shadow:0 18px 52px rgba(0,0,0,.28)}
:root[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
:root[data-theme="dark"] .public-shell,:root[data-theme="dark"] .workspace-app{background:var(--canvas);color:var(--ink)}
:root[data-theme="dark"] .public-header,:root[data-theme="dark"] .workspace-topbar,:root[data-theme="dark"] .surface,:root[data-theme="dark"] .metric-card,:root[data-theme="dark"] .table-shell,:root[data-theme="dark"] .review-card,:root[data-theme="dark"] .course-note,:root[data-theme="dark"] .topbar-popover,:root[data-theme="dark"] .notification-popover,:root[data-theme="dark"] .profile-popover,:root[data-theme="dark"] .auth-panel,:root[data-theme="dark"] .auth-form-wrap{background:#202b24;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .field label,:root[data-theme="dark"] .field-label,:root[data-theme="dark"] .editor-label,:root[data-theme="dark"] .data-table th,:root[data-theme="dark"] .breadcrumb,:root[data-theme="dark"] .topbar-profile-button,:root[data-theme="dark"] .profile-menu-link{color:var(--ink)}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .filter-bar,:root[data-theme="dark"] .filter-bar input,:root[data-theme="dark"] .filter-bar select,:root[data-theme="dark"] .button-outline,:root[data-theme="dark"] .icon-button,:root[data-theme="dark"] .table-actions button,:root[data-theme="dark"] .toolbar,:root[data-theme="dark"] .toolbar button,:root[data-theme="dark"] .rich-editor,:root[data-theme="dark"] .editor-popover,:root[data-theme="dark"] .editor-popover input,:root[data-theme="dark"] .equation-tools button,:root[data-theme="dark"] .equation-symbols button{background:#18221b;color:var(--ink);border-color:#3b4a3e}
:root[data-theme="dark"] .data-table th,:root[data-theme="dark"] .preview-box,:root[data-theme="dark"] .discussion-message,:root[data-theme="dark"] .asset-picker,:root[data-theme="dark"] .equation-preview-wrap,:root[data-theme="dark"] .equation-block,:root[data-theme="dark"] .profile-menu-link:hover,:root[data-theme="dark"] .notification-row:hover,:root[data-theme="dark"] .notification-page-row:hover,:root[data-theme="dark"] .announcement-dashboard-row:hover{background:#26332a}
:root[data-theme="dark"] .data-table th,:root[data-theme="dark"] .data-table td,:root[data-theme="dark"] .list-row,:root[data-theme="dark"] .notice-admin-row,:root[data-theme="dark"] .notification-row,:root[data-theme="dark"] .notification-page-row,:root[data-theme="dark"] .discussion-reply,:root[data-theme="dark"] .popover-heading,:root[data-theme="dark"] .popover-account{border-color:var(--line)}
:root[data-theme="dark"] .status-published,:root[data-theme="dark"] .status-approved,:root[data-theme="dark"] .status-answered,:root[data-theme="dark"] .answer-feedback,:root[data-theme="dark"] .notice-read-status{background:#294332;color:#b5d9ba}
:root[data-theme="dark"] .inline-alert{background:#352f22;border-color:#5a4e32;color:#e1d3ae}:root[data-theme="dark"] .alert-error{background:#3d2826;border-color:#6b3c37;color:#f0aaa3}:root[data-theme="dark"] .status-pending,:root[data-theme="dark"] .status-under-review{background:#403623;color:#e6cb91}
:root[data-theme="dark"] .topbar-profile-button:hover,:root[data-theme="dark"] .notification-row:hover,:root[data-theme="dark"] .notification-page-row:hover{background:#29362d}
:root[data-theme="dark"] .button-google{background:#f8faf8;color:#26342b;border-color:#d9e0da}:root[data-theme="dark"] .button-google:hover{background:#eef3ee}
:root[data-theme="dark"] .public-link,:root[data-theme="dark"] .login-link,:root[data-theme="dark"] .brand-wordmark{color:var(--ink)}
:root[data-theme="dark"] .public-dropdown,:root[data-theme="dark"] .dropdown-menu{background:#202b24;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .site-footer{background:#111914;color:#d7e0d8}:root[data-theme="dark"] .footer-main p,:root[data-theme="dark"] .footer-main a,:root[data-theme="dark"] .footer-bottom{color:#a8b5aa}
:root[data-theme="dark"] .mobile-bottom-nav{background:#202b24;border-color:var(--line)}
:root[data-theme="dark"] .notification-count{border-color:#202b24}
:root[data-theme="dark"] .update-comment,:root[data-theme="dark"] .update-comment-form,:root[data-theme="dark"] .comment-signin{background:#202b24;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .update-comment p,:root[data-theme="dark"] .update-comment-heading strong,:root[data-theme="dark"] .update-comments-title h2,:root[data-theme="dark"] .update-comment-form label{color:var(--ink)}
:root[data-theme="dark"] .update-comment-form textarea{background:#18221b;border-color:#3b4a3e;color:var(--ink)}
:root[data-theme="dark"] .institution-hero,:root[data-theme="dark"] .institution-facts,:root[data-theme="dark"] .institution-empty,:root[data-theme="dark"] .institution-review-card,:root[data-theme="dark"] .institution-question-card,:root[data-theme="dark"] .institution-contact-card,:root[data-theme="dark"] .institution-form,:root[data-theme="dark"] .institution-answer-form,:root[data-theme="dark"] .institution-auth-prompt{background:#202b24;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .institution-tab{color:#c1ccc2}:root[data-theme="dark"] .institution-tab:hover{background:#29372d;color:#e1e9e1}:root[data-theme="dark"] .institution-tab.is-active{background:#386345;color:#fff}
:root[data-theme="dark"] .institution-hero-copy>.summary,:root[data-theme="dark"] .institution-rich-body,:root[data-theme="dark"] .institution-facts dd,:root[data-theme="dark"] .institution-contact-card p,:root[data-theme="dark"] .institution-review-card>p,:root[data-theme="dark"] .institution-answer p,:root[data-theme="dark"] .institution-question-card h3,:root[data-theme="dark"] .institution-auth-prompt p{color:#c0cbc1}
:root[data-theme="dark"] .institution-form textarea,:root[data-theme="dark"] .institution-answer-form textarea,:root[data-theme="dark"] .institution-form select{background:#18221b;border-color:#3b4a3e;color:var(--ink)}
:root[data-theme="dark"] .institution-answer{background:#26352a;border-color:#5e9365}:root[data-theme="dark"] .institution-answer strong{color:#b5d9ba}
:root[data-theme="dark"] .post-type-template,:root[data-theme="dark"] .public-preview-card,:root[data-theme="dark"] .public-cover-editor,:root[data-theme="dark"] .preview-type-facts dl,:root[data-theme="dark"] .update-author-card,:root[data-theme="dark"] .institution-service-preview{background:#202b24;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .post-template-heading h3,:root[data-theme="dark"] .preview-type-facts dd,:root[data-theme="dark"] .update-author-card strong,:root[data-theme="dark"] .update-facts h2{color:var(--ink)}
:root[data-theme="dark"] .post-template-heading p,:root[data-theme="dark"] .post-section-hint,:root[data-theme="dark"] .preview-type-facts dt,:root[data-theme="dark"] .update-author-card p{color:#aebbb0}
:root[data-theme="dark"] .post-template-icon{background:#293b2c;color:#b5d9ba}:root[data-theme="dark"] .update-topic-tags span{background:#202b24;border-color:var(--line);color:#bdd9bd}
