.theme-picker {
  display: inline-flex;
  order: 2;
  align-items: center;
  gap: .45rem;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.theme-picker[hidden] { display: none; }
.navigation-toggle .navigation-toggle-label { font-size: .82rem; font-weight: 700; }
.site-header .brand { order: 0; }
.site-header .navigation-toggle { order: 1; }
.theme-picker select {
  min-height: 40px;
  padding: .35rem .65rem;
  border: 1px solid #bfaee0;
  border-radius: 999px;
  background: white;
  color: #53389e;
  font-weight: 650;
}
.header-search { order: 3; }
.theme-image-placeholder, img[data-theme-src]:not([src]) { display: none; }
html[data-theme="simple"] img[data-theme-src] { display: none; }
html[data-theme="simple"] .theme-image-placeholder { display: inline-block; }

.lore-mark {
  position: fixed;
  z-index: 35;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom) + var(--privacy-notice-height, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  opacity: .55;
  transition: opacity .2s ease;
}
.lore-mark:hover { color: var(--blue); opacity: .9; }
.lore-mark:focus-visible { opacity: 1; outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-open .lore-mark { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .lore-mark { transition: none; } }
html[data-theme="modern"] .theme-picker select { border-color: #86acc2; border-radius: 6px; color: #163047; }
html[data-theme="modern"] .privacy-notice { background: #fffefb; border-color: #dce2e7; }
html[data-theme="modern"] .privacy-notice-icon { background: #11263c; color: #e5c487; }
html[data-theme="modern"] .privacy-notice a { color: #0b5273; }
html[data-theme="modern"] .privacy-notice-dismiss { border-color: #18678a; background: #18678a; }
html[data-theme="modern"] .privacy-notice-dismiss:hover { background: #0b5273; }
html:is([data-theme="simple"], [data-theme="modern"]) .news-archive { margin: 2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }
html:is([data-theme="simple"], [data-theme="modern"]) .news-archive summary { cursor: pointer; color: var(--blue); font-weight: 700; }
html:is([data-theme="simple"], [data-theme="modern"]) .news-archive > p { margin-top: 1rem; color: var(--muted); }
html:is([data-theme="simple"], [data-theme="modern"]) .news-entry + .news-entry { border-top: 1px solid var(--line); }

html[data-theme="simple"] {
  --ink: #111;
  --muted: #444;
  --navy: #111;
  --navy-deep: #111;
  --blue: #000099;
  --gold: #000099;
  --paper: #fff;
  --line: #ccc;
  --background: #fff;
}
html[data-theme="simple"] body { background: #fff; color: #111; font: 15px/1.45 Arial, Helvetica, sans-serif; }
html[data-theme="simple"] h1,
html[data-theme="simple"] h2,
html[data-theme="simple"] h3,
html[data-theme="simple"] h4 { color: #111; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
html[data-theme="simple"] h1 { font-size: clamp(1.7rem, 3vw, 2rem); }
html[data-theme="simple"] a { color: #000099; }
html[data-theme="simple"] a:hover { color: #000066; }
html[data-theme="simple"] .eyebrow { color: #444; font-family: Arial, Helvetica, sans-serif; }
html[data-theme="simple"] .site-header { background: #fff; color: #111; border-bottom: 1px solid #ccc; box-shadow: none; }
html[data-theme="simple"] .brand,
html[data-theme="simple"] .brand:hover { color: #111; }
html[data-theme="simple"] .brand strong { font: 700 1.15rem/1 Arial, Helvetica, sans-serif; letter-spacing: 0; }
html[data-theme="simple"] .brand strong span,
html[data-theme="simple"] .brand small { color: #111; }
html[data-theme="simple"] .brand-symbol { width: auto; height: auto; border: 0; clip-path: none; transform: none; color: #111; font: 700 .85rem Arial, Helvetica, sans-serif; }
html[data-theme="simple"] .navigation-toggle,
html[data-theme="simple"] .theme-picker select { border: 1px solid #bbb; border-radius: 5px; background: #fff; color: #111; box-shadow: none; }
html[data-theme="simple"] .navigation-toggle:hover { background: #f4f4f4; }
html[data-theme="simple"] .header-search { border: 1px solid #bbb; border-radius: 5px; box-shadow: none; }
html[data-theme="simple"] .header-search button,
html[data-theme="simple"] .search-row button { border-left: 1px solid #bbb; border-radius: 0 4px 4px 0; background: #fff; color: #111; box-shadow: none; }
html[data-theme="simple"] .header-search button:hover,
html[data-theme="simple"] .search-row button:hover { background: #f4f4f4; }
html[data-theme="simple"] .catalog-sidebar,
html[data-theme="simple"] .main-content,
html[data-theme="simple"] .sidebar-card { border: 1px solid #ccc; border-radius: 10px; background: #fff; box-shadow: none; }
html[data-theme="simple"] .navigation-head { color: #111; }
html[data-theme="simple"] .navigation-row:hover,
html[data-theme="simple"] .navigation-expand:hover { background: #f3f3f3; }
html[data-theme="simple"] .navigation-row > a[aria-current="page"] { background: #f2f2f2; box-shadow: inset 2px 0 #777; }
html[data-theme="simple"] .breadcrumbs a { color: #000099; }
html[data-theme="simple"] .filter-panel,
html[data-theme="simple"] .search-page-form { border: 1px solid #ccc; border-radius: 8px; background: #fff; }
html[data-theme="simple"] .filter-panel summary,
html[data-theme="simple"] .news-archive summary { color: #111; }
html[data-theme="simple"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html[data-theme="simple"] select,
html[data-theme="simple"] textarea { border-color: #bbb; border-radius: 5px; }
html[data-theme="simple"] .filter-actions button,
html[data-theme="simple"] .hero-actions a,
html[data-theme="simple"] .form_settings button,
html[data-theme="simple"] .form_settings input[type="submit"] { border: 1px solid #bbb; border-radius: 5px; background: #fff; color: #111; box-shadow: none; }
html[data-theme="simple"] .filter-actions button:hover,
html[data-theme="simple"] .hero-actions a:hover { background: #f3f3f3; color: #111; }
html[data-theme="simple"] .filter-count,
html[data-theme="simple"] .active-filters a { border: 1px solid #bbb; background: #fff; color: #000099; }
html[data-theme="simple"] .main-content th { border-bottom-color: #bbb; background: #f8f8f8; color: #111; }
html[data-theme="simple"] .main-content tr:hover td { background: #f8f8f8; }
html[data-theme="simple"] .pagination .current { background: #000099; }
html[data-theme="simple"] .home-hero { min-height: 0; padding: 2rem 1.5rem; background: #fff; color: #111; }
html[data-theme="simple"] .home-hero h1 { color: #111; font-size: clamp(1.8rem, 3vw, 2.2rem); }
html[data-theme="simple"] .home-hero p { color: #333; }
html[data-theme="simple"] .home-hero .eyebrow { color: #444; }
html[data-theme="simple"] .hero-mark { display: none; }
html[data-theme="simple"] .category-grid a { border: 1px solid #ccc; border-radius: 8px; background: #fff; box-shadow: none; }
html[data-theme="simple"] .category-grid a:hover { background: #f8f8f8; transform: none; }
html[data-theme="simple"] .project-update { border-left: 3px solid #666; background: #fafafa; }
html[data-theme="simple"] .sidebar-card p { color: #444; }
html[data-theme="simple"] .site-footer { border-color: #ccc; color: #444; }
html[data-theme="simple"] .site-footer strong { color: #111; font-family: Arial, Helvetica, sans-serif; }
html[data-theme="simple"] .privacy-notice { border-color: #ccc; background: #fff; box-shadow: none; color: #111; }
html[data-theme="simple"] .privacy-notice h2 { color: #111; font-family: Arial, Helvetica, sans-serif; }
html[data-theme="simple"] .privacy-notice-icon { border: 1px solid #bbb; background: #fff; color: #111; }
html[data-theme="simple"] .privacy-notice a { color: #000099; }
html[data-theme="simple"] .privacy-notice-dismiss { border-color: #777; border-radius: 5px; background: #fff; color: #111; }
html[data-theme="simple"] .privacy-notice-dismiss:hover { background: #f4f4f4; }

/* Dark mode keeps the catalog's blue and gold identity with readable surfaces. */
html:is([data-theme="dark"], [data-theme="oled"]) {
  color-scheme: dark;
  --ink: #edf3f7;
  --muted: #bfccd6;
  --navy: #0d1b27;
  --navy-deep: #08131d;
  --blue: #83d7f5;
  --gold: #f0c777;
  --paper: #182631;
  --line: #40515e;
  --background: #101a23;
}
html:is([data-theme="dark"], [data-theme="oled"]) body { background: var(--background); color: var(--ink); }
html:is([data-theme="dark"], [data-theme="oled"]) h1,
html:is([data-theme="dark"], [data-theme="oled"]) h2,
html:is([data-theme="dark"], [data-theme="oled"]) h3,
html:is([data-theme="dark"], [data-theme="oled"]) h4 { color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) a { color: #8edfff; }
html:is([data-theme="dark"], [data-theme="oled"]) a:hover { color: #c5efff; }
html:is([data-theme="dark"], [data-theme="oled"]) a:focus-visible,
html:is([data-theme="dark"], [data-theme="oled"]) button:focus-visible,
html:is([data-theme="dark"], [data-theme="oled"]) input:focus-visible,
html:is([data-theme="dark"], [data-theme="oled"]) select:focus-visible,
html:is([data-theme="dark"], [data-theme="oled"]) textarea:focus-visible,
html:is([data-theme="dark"], [data-theme="oled"]) summary:focus-visible { outline-color: #ffd479; }
html:is([data-theme="dark"], [data-theme="oled"]) .skip-link { background: #182631; color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) .site-header { background: linear-gradient(120deg, #08131d, #123b55 72%, #155b77); color: #f5f8fa; }
html:is([data-theme="dark"], [data-theme="oled"]) .brand,
html:is([data-theme="dark"], [data-theme="oled"]) .brand:hover { color: #f5f8fa; }
html:is([data-theme="dark"], [data-theme="oled"]) .brand-symbol { color: #f0c777; }
html:is([data-theme="dark"], [data-theme="oled"]) .brand strong span { color: #8edfff; }
html:is([data-theme="dark"], [data-theme="oled"]) .brand small { color: #d0dce5; }
html:is([data-theme="dark"], [data-theme="oled"]) .header-search { border-color: #526a7a; background: #172631; }
html:is([data-theme="dark"], [data-theme="oled"]) .header-search input { background: #172631; color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) .header-search input::placeholder { color: #bdcbd5; opacity: 1; }
html:is([data-theme="dark"], [data-theme="oled"]) .header-search button,
html:is([data-theme="dark"], [data-theme="oled"]) .search-row button { background: #f0c777; color: #17212a; }
html:is([data-theme="dark"], [data-theme="oled"]) .header-search button:hover,
html:is([data-theme="dark"], [data-theme="oled"]) .search-row button:hover { background: #ffda91; }
html:is([data-theme="dark"], [data-theme="oled"]) .primary-nav { background: #0a1721; border-color: #40515e; }
html:is([data-theme="dark"], [data-theme="oled"]) .nav-inner a { color: #e5edf2; }
html:is([data-theme="dark"], [data-theme="oled"]) .nav-inner a:hover,
html:is([data-theme="dark"], [data-theme="oled"]) .nav-inner a:focus-visible { color: #fff; }
html:is([data-theme="dark"], [data-theme="oled"]) .breadcrumbs,
html:is([data-theme="dark"], [data-theme="oled"]) .breadcrumbs a { color: #c0ccd5; }
html:is([data-theme="dark"], [data-theme="oled"]) .main-content,
html:is([data-theme="dark"], [data-theme="oled"]) .catalog-sidebar,
html:is([data-theme="dark"], [data-theme="oled"]) .sidebar-card { border-color: var(--line); background: var(--paper); box-shadow: 0 5px 22px #0005; }
html:is([data-theme="dark"], [data-theme="oled"]) .sidebar-card p { color: #c3d0d9; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-head { color: #eef4f7; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-row:hover,
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-expand:hover { background: #243744; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-row > a,
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-label { color: #e3ebf0; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-label small { color: #b9c7d1; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-item.is-active > .navigation-row > a { color: #a8e6ff; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-row > a[aria-current="page"] { background: #253c4a; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-toggle { border-color: #7f9aaa; background: #10283a; color: #f4f7f9; }
html:is([data-theme="dark"], [data-theme="oled"]) .navigation-toggle:hover { background: #1a4057; }
html:is([data-theme="dark"], [data-theme="oled"]) .theme-picker select { border-color: #718696; background: #172631; color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) .filter-panel,
html:is([data-theme="dark"], [data-theme="oled"]) .search-page-form { border-color: var(--line); background: #1d2d38; }
html:is([data-theme="dark"], [data-theme="oled"]) .filter-panel summary,
html:is([data-theme="dark"], [data-theme="oled"]) .news-archive summary { color: #9be3ff; }
html:is([data-theme="dark"], [data-theme="oled"]) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html:is([data-theme="dark"], [data-theme="oled"]) select,
html:is([data-theme="dark"], [data-theme="oled"]) textarea,
html:is([data-theme="dark"], [data-theme="oled"]) .filter-field > div { border-color: #607381; background: #111d26; color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) input::placeholder,
html:is([data-theme="dark"], [data-theme="oled"]) textarea::placeholder { color: #bdcbd5; opacity: 1; }
html:is([data-theme="dark"], [data-theme="oled"]) .filter-field > div label { color: #e5edf2; }
html:is([data-theme="dark"], [data-theme="oled"]) .filter-actions button,
html:is([data-theme="dark"], [data-theme="oled"]) .form_settings input[type="submit"],
html:is([data-theme="dark"], [data-theme="oled"]) .form_settings button,
html:is([data-theme="dark"], [data-theme="oled"]) .main-content .submit { background: #176787; color: #fff; }
html:is([data-theme="dark"], [data-theme="oled"]) .hero-actions a { color: #17212a; }
html:is([data-theme="dark"], [data-theme="oled"]) .hero-actions a + a { color: #edf3f7; }
html:is([data-theme="dark"], [data-theme="oled"]) .main-content table th { border-color: var(--line); background: #263946; color: #f0c777; }
html:is([data-theme="dark"], [data-theme="oled"]) .main-content table td { border-color: #3b4b57; color: #e8eef2; }
html:is([data-theme="dark"], [data-theme="oled"]) .main-content tr:hover td { background: #22343f; }
html:is([data-theme="dark"], [data-theme="oled"]) .pagination a,
html:is([data-theme="dark"], [data-theme="oled"]) .pagination .current,
html:is([data-theme="dark"], [data-theme="oled"]) .search-pagination a { border-color: #536674; background: #1a2a35; color: #dce8ef; }
html:is([data-theme="dark"], [data-theme="oled"]) .pagination .current { border-color: #176787; background: #176787; color: #fff; }
html:is([data-theme="dark"], [data-theme="oled"]) .pagination .disabled { color: #aab8c2; }
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestions,
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestion-status { border-color: #536674; background: #182631; color: #eaf1f5; }
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestions a { color: #eaf1f5; }
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestions a:hover,
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestions a[aria-selected="true"] { background: #263c49; }
html:is([data-theme="dark"], [data-theme="oled"]) .search-suggestions small { color: #bfccd6; }
html:is([data-theme="dark"], [data-theme="oled"]) .filter-count,
html:is([data-theme="dark"], [data-theme="oled"]) .active-filters a { border-color: #557486; background: #203744; color: #c4efff; }
html:is([data-theme="dark"], [data-theme="oled"]) .category-grid a { border-color: var(--line); background: #1c2c37; color: #edf3f7; }
html:is([data-theme="dark"], [data-theme="oled"]) .category-grid a:hover { border-color: #83d7f5; background: #243a47; }
html:is([data-theme="dark"], [data-theme="oled"]) .category-grid small,
html:is([data-theme="dark"], [data-theme="oled"]) .main-content .small,
html:is([data-theme="dark"], [data-theme="oled"]) .result-count { color: #bfccd6; }
html:is([data-theme="dark"], [data-theme="oled"]) .project-update,
html:is([data-theme="dark"], [data-theme="oled"]) blockquote { border-color: #f0c777; background: #22313a; color: #e8eef2; }
html:is([data-theme="dark"], [data-theme="oled"]) .empty-state { border-color: #637582; background: #1b2b36; color: #c6d2db; }
html:is([data-theme="dark"], [data-theme="oled"]) .edition-warning,
html:is([data-theme="dark"], [data-theme="oled"]) .query-error { border-color: #a9843f; background: #352f20; color: #fff0c7; }
html:is([data-theme="dark"], [data-theme="oled"]) .edit { background: #203640; color: #e5edf2; }
html:is([data-theme="dark"], [data-theme="oled"]) .edit button { color: #9be3ff; }
html:is([data-theme="dark"], [data-theme="oled"]) .site-footer { border-color: var(--line); color: #c2ced7; }
html:is([data-theme="dark"], [data-theme="oled"]) .site-footer strong { color: #f0c777; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice { border-color: #536674; background: #182631; color: #edf3f7; box-shadow: 0 8px 28px #0008; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice h2 { color: #f2f6f9; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice-icon { background: #176787; color: #fff; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice a { color: #9be3ff; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice-dismiss { border-color: #83d7f5; background: #176787; color: #fff; }
html:is([data-theme="dark"], [data-theme="oled"]) .privacy-notice-dismiss:hover { background: #0d526f; }
html:is([data-theme="dark"], [data-theme="oled"]) .lore-mark { color: #9be3ff; }
html:is([data-theme="dark"], [data-theme="oled"]) .lore-mark:hover { color: #d0f2ff; }
html:is([data-theme="dark"], [data-theme="oled"]) .lore-mark:focus-visible { outline-color: #ffd479; }
html:is([data-theme="dark"], [data-theme="oled"]) .field-error,
html:is([data-theme="dark"], [data-theme="oled"]) .query-error { color: #ffd1c9; }

/* True black OLED palette; the existing blue palette remains Petroleo. */
html[data-theme="oled"] {
  --ink: #f5f5f5;
  --muted: #b3b3b3;
  --navy: #111;
  --navy-deep: #000;
  --blue: #f0c777;
  --paper: #0a0a0a;
  --line: #222;
  --background: #000;
  background: #000;
}
html[data-theme="oled"] body { background: #000; }
html[data-theme="oled"] h1,
html[data-theme="oled"] h2,
html[data-theme="oled"] h3,
html[data-theme="oled"] h4 { color: #fff; }
html[data-theme="oled"] a,
html[data-theme="oled"] .breadcrumbs a { color: #f0c777; }
html[data-theme="oled"] a:hover { color: #ffe0a1; }
html[data-theme="oled"] .site-header,
html[data-theme="oled"] .primary-nav { background: #0a0a0a; border-color: #222; box-shadow: none; }
html[data-theme="oled"] .brand strong span { color: #fff; }
html[data-theme="oled"] .brand small,
html[data-theme="oled"] .breadcrumbs,
html[data-theme="oled"] .sidebar-card p,
html[data-theme="oled"] .category-grid small,
html[data-theme="oled"] .main-content .small,
html[data-theme="oled"] .result-count,
html[data-theme="oled"] .site-footer,
html[data-theme="oled"] .privacy-notice p { color: #b3b3b3; }
html[data-theme="oled"] .main-content,
html[data-theme="oled"] .catalog-sidebar,
html[data-theme="oled"] .sidebar-card { border-color: #222; background: #0a0a0a; box-shadow: none; }
html[data-theme="oled"] .home-hero { border: 1px solid #222; background: #0a0a0a; color: #fff; }
html[data-theme="oled"] .home-hero p { color: #b3b3b3; }
html[data-theme="oled"] .navigation-head { color: #fff; border-color: #222; }
html[data-theme="oled"] .navigation-row:hover,
html[data-theme="oled"] .navigation-expand:hover,
html[data-theme="oled"] .search-suggestions a:hover,
html[data-theme="oled"] .search-suggestions a[aria-selected="true"] { background: #171717; }
html[data-theme="oled"] .navigation-row > a[aria-current="page"] { background: #171717; }
html[data-theme="oled"] .navigation-label,
html[data-theme="oled"] .navigation-label small { color: #b3b3b3; }
html[data-theme="oled"] .navigation-item.is-active > .navigation-row > a,
html[data-theme="oled"] .navigation-expand { color: #f0c777; }
html[data-theme="oled"] .navigation-toggle,
html[data-theme="oled"] .theme-picker select,
html[data-theme="oled"] .header-search,
html[data-theme="oled"] .header-search input { border-color: #222; background: #111; color: #fff; }
html[data-theme="oled"] .navigation-toggle:hover { background: #1a1a1a; }
html[data-theme="oled"] .header-search button,
html[data-theme="oled"] .search-row button { color: #111; }
html[data-theme="oled"] .filter-panel,
html[data-theme="oled"] .search-page-form,
html[data-theme="oled"] .project-update,
html[data-theme="oled"] blockquote,
html[data-theme="oled"] .edit,
html[data-theme="oled"] .empty-state,
html[data-theme="oled"] .image-placeholder { border-color: #222; background: #111; color: #f5f5f5; }
html[data-theme="oled"] .filter-panel summary,
html[data-theme="oled"] .news-archive summary,
html[data-theme="oled"] .edit button { color: #f0c777; }
html[data-theme="oled"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html[data-theme="oled"] select,
html[data-theme="oled"] textarea,
html[data-theme="oled"] .filter-field > div { border-color: #222; background: #111; color: #fff; }
html[data-theme="oled"] input::placeholder,
html[data-theme="oled"] textarea::placeholder { color: #b3b3b3; }
html[data-theme="oled"] .filter-actions button,
html[data-theme="oled"] .form_settings input[type="submit"],
html[data-theme="oled"] .form_settings button,
html[data-theme="oled"] .main-content .submit,
html[data-theme="oled"] .pagination .current { border-color: #f0c777; background: #f0c777; color: #111; }
html[data-theme="oled"] .hero-actions a { color: #111; }
html[data-theme="oled"] .hero-actions a + a { border-color: #555; color: #fff; }
html[data-theme="oled"] .main-content table th { border-color: #222; background: #111; color: #fff; }
html[data-theme="oled"] .main-content table td,
html[data-theme="oled"] .site-footer,
html[data-theme="oled"] .result-list li { border-color: #222; }
html[data-theme="oled"] .main-content tr:hover td { background: #171717; }
html[data-theme="oled"] .pagination .disabled,
html[data-theme="oled"] .search-suggestions small { color: #b3b3b3; }
html[data-theme="oled"] .pagination a,
html[data-theme="oled"] .search-pagination a,
html[data-theme="oled"] .search-suggestions,
html[data-theme="oled"] .search-suggestion-status,
html[data-theme="oled"] .category-grid a,
html[data-theme="oled"] .filter-count,
html[data-theme="oled"] .active-filters a { border-color: #222; background: #111; }
html[data-theme="oled"] .category-grid a { color: #fff; }
html[data-theme="oled"] .category-grid a:hover,
html[data-theme="oled"] .active-filters a:hover { background: #1a1a1a; }
html[data-theme="oled"] .edition-warning,
html[data-theme="oled"] .query-error { border-color: #66512b; background: #111; color: #f0c777; }
html[data-theme="oled"] .privacy-notice { border-color: #222; background: #0a0a0a; color: #f5f5f5; box-shadow: 0 -8px 24px #000a; }
html[data-theme="oled"] .privacy-notice h2 { color: #fff; }
html[data-theme="oled"] .privacy-notice-icon { background: #222; color: #fff; }
html[data-theme="oled"] .privacy-notice a,
html[data-theme="oled"] .lore-mark { color: #f0c777; }
html[data-theme="oled"] .privacy-notice-dismiss { border-color: #f0c777; background: #f0c777; color: #111; }
html[data-theme="oled"] .privacy-notice-dismiss:hover { background: #ffe0a1; }
html[data-theme="oled"] .privacy-policy td small,
html[data-theme="oled"] .privacy-policy td::before { color: #b3b3b3; }
@media (max-width: 900px) {
  html[data-theme="oled"] .navigation-head { background: #0a0a0a; }
}
@media (max-width: 650px) {
  html[data-theme="oled"] .privacy-policy tr { border-color: #222; }
}
@media (max-width: 900px) {
  html:is([data-theme="dark"], [data-theme="oled"]) .navigation-head { background: var(--paper); }
}

@media (max-width: 900px) {
  .site-header .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem; }
  .site-header .brand { order: 0; }
  .site-header .navigation-toggle { order: 1; margin-left: auto; }
  .site-header .theme-picker { order: 2; }
  .site-header .header-search { order: 3; flex-basis: 100%; width: 100%; }
}
@media (max-width: 600px) {
  .site-header .header-inner { gap: .4rem; padding: .6rem; }
  .navigation-toggle-label,
  .theme-picker-label { display: none; }
  .site-header .navigation-toggle { width: 44px; justify-content: center; padding: .25rem; }
  .theme-picker select { width: 88px; min-height: 40px; padding: .3rem .25rem; font-size: .8rem; }
  html[data-theme="simple"] .brand strong { font-size: 1.05rem; }
}
