/* Research pages inherit the same preference without a selector. */
html.research-theme { color-scheme: light; }
html.research-theme.dark-style {
  color-scheme: dark;
  --paper: #000;
  --paper-bright: #000;
  --white: #000;
  --ink: #f4f2ed;
  --muted: #a5a7b3;
  --line: #454545;
  --blue: #80b0ff;
  --violet: #b49aff;
}
.research-theme.dark-style :is(body, .site-header, .research-preview, .site-header.menu-open #primary-navigation) { background: #000; }
.research-theme.dark-style :is(.site-header nav a, .site-footer p, .site-footer address) { color: var(--muted); }
.research-theme.dark-style :is(input, select, option, optgroup) { color: var(--ink); background-color: #000; }
.research-theme.dark-style .skip-link { background: #000; color: var(--ink); }
.research-theme.dark-style h1 span:not(.spectrum-text) {color:var(--muted);}
.research-theme.dark-style #query::placeholder {color:var(--muted);}
.research-theme.dark-style .quiet:hover {background:#000;}
.research-theme.dark-style .suggestions button {background:#000;color:var(--muted);}
.research-theme.dark-style .suggestions button:hover {background:#000;}
.research-theme.dark-style .word-input input {background:#000;}
.research-theme.dark-style .input-error {color:#ff93a8;}
.research-theme.dark-style .chip {background:#000;color:var(--muted);}
.research-theme.dark-style select, .research-theme.dark-style .filters input {background:#000;}
.research-theme.dark-style #cluster-preview {background:#000;}
.research-theme.dark-style .map-note {color:var(--muted);}
.research-theme.dark-style .entry:hover, .research-theme.dark-style .entry:focus-visible {background:#000;}
.research-theme.dark-style .size-bar {background:#000;}
.research-theme.dark-style .entry .match-label {color:var(--muted);}
.research-theme.dark-style .pagination button, .research-theme.dark-style .error button {background:#000;}
.research-theme.dark-style .badge {background:#000;color:var(--muted);}
.research-theme.dark-style .error, .research-theme.dark-style .notice {background:#000;color:var(--muted);}
.research-theme.dark-style .is-loading .plot-wrap:after {background:#000;}
.research-theme.dark-style .membership {background:#000;}
.research-theme.dark-style .group-open:hover {background:#000;}
.research-theme.dark-style .tour-invitation {background:#000;color:var(--muted);}
.research-theme.dark-style .tour-invitation #invite-tour {color:var(--muted);}
.research-theme.dark-style #close-detail:hover {background:#000;}
.research-theme.dark-style .detail-outside, .research-theme.dark-style .detail-error {background:#000;color:var(--muted);}
