.theme-bird{background:var(--accent);-webkit-mask:url('/static/brand/bird.png') center/contain no-repeat;mask:url('/static/brand/bird.png') center/contain no-repeat}
.night-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-weight:500}
.night-mode-switch input{width:20px;height:20px;min-height:20px;margin:0}
#personal-theme-controls{border:0;padding:0;margin:0;min-width:0}#personal-theme-controls legend{font-size:17px;font-weight:600}#personal-theme-controls:disabled{opacity:.45}#personal-theme-controls:disabled .theme-options,#personal-theme-controls:disabled input[type=color]{filter:grayscale(1)}#personal-theme-controls:disabled button{cursor:default}
:root[data-theme=dark]{color-scheme:dark;color:var(--ink)}
[data-theme=dark] body{background:var(--bg);color:var(--ink)}
[data-theme=dark] :is(.workspace>header,.panel,.toolbar,.science-context,.dialog-header,.dialog-footer,.header-popover,.global-results,.global-result,.mobile-profile,.mobile-library-list,.quick-item,.stat,.welcome,.error-page,dialog,.attachment,.map-panel,.attachment-body,.detail-save-bar){background:var(--white);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(input,select,textarea,button){background-color:var(--surface-tint);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(button.primary,.primary){background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
[data-theme=dark] button.primary:hover{background:var(--accent-dark)}
[data-theme=dark] button.link{background:transparent;color:var(--accent-ink)}
[data-theme=dark] :is(.table-footer,thead,.record-scrollbar,.search-summary,.document-icon,.science-project-item.selected,.science-tree-row.selected,.science-node-select[aria-current],.notice){background:var(--surface-tint);color:var(--ink);border-color:var(--line)}
[data-theme=dark] th{background:var(--surface-tint);color:var(--muted)}
[data-theme=dark] :is(td,tr,.detail-fields,.meta-list){border-color:var(--line)}
[data-theme=dark] :is(.source-name,.detail-meta,.mobile-record-meta,.mobile-record-result,.attachment-body small,.attachment-body p,.menu-note,.mobile-filing,small){color:var(--muted)}
[data-theme=dark] :is(a,button.danger,.danger,.form-error){color:var(--ink)}
[data-theme=dark] :is(.tag,.notice,.no-thumb,.sort-arrow.active,.global-result:hover,.global-result:focus,.mobile-record-sort button[aria-pressed=true]){color:var(--ink);background:var(--accent-soft);border-color:var(--line)}
[data-theme=dark] .account-message-badge{background:#ededed;color:#151515;border-color:#151515}
[data-theme=dark] .theme-dot{box-shadow:none}
[data-theme=dark] dialog::backdrop{background:#00000080;backdrop-filter:none}
[data-theme=dark] .avatar-default{background:#3a3a3a;color:#d0d0d0}
[data-theme=dark] #global-search{background:var(--surface-tint);color:var(--ink);border-color:var(--line)}
[data-theme=dark] #toast{background:#ededed;color:#151515}
@media(max-width:760px){
 [data-theme=dark] .mobile-bottom-layout .mobile-tabs{background:var(--nav);border-top:1px solid var(--line)}
 [data-theme=dark] .mobile-tabs button{background:transparent;color:#ededed}
 [data-theme=dark] .mobile-tabs .mobile-plus{background:#ededed;color:#202020}
 [data-theme=dark] .mobile-search-panel #global-search{background:#202020;border-color:var(--line);color:var(--ink)}
 [data-theme=dark] .mobile-search-panel .mobile-search-submit{background:transparent;color:var(--ink)}
 [data-theme=dark] :is(.mobile-record-sort>div,.mobile-record-more>div,.mobile-record-sort>summary,.mobile-record-more>summary){background:var(--white);border-color:var(--line);color:var(--ink)}
 [data-theme=dark] .science-mobile-header select,[data-theme=dark] .mobile-project-top #mobile-project-select{background-color:transparent;color:var(--ink)}
 [data-theme=dark] #editor.mobile-account-page::backdrop{background:var(--bg)}
 [data-theme=dark] .mobile-sheet-heading{background:var(--white)}
}
