/* CMDTek SearXNG brand layer — maintained outside the upstream source tree. */
:root,
:root.theme-auto,
:root.theme-dark,
:root.theme-black {
  --cmdtek-green: #00BF78;
  --cmdtek-green-deep: #009E69;
  --cmdtek-panel: #192229;
  --cmdtek-panel-soft: #2A3136;
  --color-base-font: #e8f1ee;
  --color-base-font-rgb: 232, 241, 238;
  --color-base-background: #192229;
  --color-base-background-mobile: #192229;
  --color-url-font: #39d39a;
  --color-url-visited-font: #8ee5bd;
  --color-header-background: #192229;
  --color-header-border: #3a484d;
  --color-footer-background: #192229;
  --color-footer-border: #3a484d;
  --color-btn-background: #00AE70;
  --color-btn-font: #fff;
  --color-search-border: #4b5b60;
  --color-search-background: #2A3136;
  --color-search-font: #fff;
  --color-search-background-hover: #00AE70;
  --color-result-background: #222c31;
  --color-result-border: #344249;
  --color-result-link-font: #f7fffc;
  --color-result-link-font-highlight: #fff;
  --color-result-url-font: #72dfad;
  --color-categories-item-selected-font: #56dfaa;
  --color-categories-item-border-selected: #00BF78;
  --color-sidebar-background: #222c31;
  --color-sidebar-border: #344249;
  --color-autocomplete-background: #2A3136;
  --color-autocomplete-border: #4b5b60;
  --color-autocomplete-font: #fff;
  --color-autocomplete-background-hover: #344249;
}

html, body { min-height: 100%; background: var(--cmdtek-panel); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; }
#main_index { min-height: calc(100vh - 76px); display: grid; place-items: start center; margin-top: 0 !important; padding-top: clamp(2.75rem, 6vh, 4.5rem); box-sizing: border-box; position: relative; overflow: hidden; }
#main_index::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(0,191,120,.17), transparent 34%), linear-gradient(132deg, #192229 0%, #1d292d 52%, #162027 100%); }
#main_index > * { position: relative; z-index: 1; }
#links_on_top { position: absolute; top: 1.25rem; right: 1.5rem; z-index: 4; }
#links_on_top a { color: #d8e5e0; border: 1px solid transparent; border-radius: .45rem; padding: .45rem .55rem; }
#links_on_top a:hover { color: #fff; border-color: #4b5b60; background: rgba(255,255,255,.05); }

.cmdtek-home { width: min(740px, calc(100vw - 2rem)); text-align: center; margin: 0 auto !important; align-self: start !important; }
.cmdtek-home-logo { display: block; width: min(430px, 76vw); height: auto; margin: 0 auto 1.8rem; filter: drop-shadow(0 14px 24px rgba(0,0,0,.22)); }
.cmdtek-home-tagline { margin: 0 0 2.1rem; color: #aac0b9; font-size: 1.02rem; letter-spacing: .035em; }
.index #search_header { display: block; }
.index .search_box { background: #2A3136; border: 1px solid #506066; border-radius: .65rem; box-shadow: 0 18px 42px rgba(0,0,0,.28); transition: border-color .18s, box-shadow .18s; }
.index .search_box:focus-within { border-color: var(--cmdtek-green); box-shadow: 0 0 0 4px rgba(0,191,120,.14), 0 18px 42px rgba(0,0,0,.28); }
.search_box input { color: #fff !important; font-size: 1.05rem; }
.search_box input::placeholder { color: #9cb0aa; opacity: 1; }
#send_search { background: var(--cmdtek-green) !important; color: #fff !important; border-radius: 0 .55rem .55rem 0 !important; }
#send_search:hover { background: var(--cmdtek-green-deep) !important; }

.page_with_header > a:first-of-type { display: block; width: max-content; margin: 1.25rem 1.5rem .2rem; }
.page_with_header img.logo { width: 205px; height: auto; max-height: 48px; object-fit: contain; object-position: left center; }
#search_header { background: #192229; border-bottom: 1px solid #344249; padding: .75rem 1.5rem; box-shadow: 0 3px 18px rgba(0,0,0,.12); }
#search_logo { width: 172px !important; height: 40px !important; background: url("img/cmdtek-primary-white.svg") left center / contain no-repeat; margin-right: 1.25rem !important; }
#search_logo svg { display: none; }
#search_view .search_box { border-radius: .48rem; }
#results { background: #192229; }
#urls .result { border-radius: .55rem; border: 1px solid #344249; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 1.1rem 1.2rem; margin-bottom: .85rem; }
#urls .result:hover { border-color: #4e6a63; }
#urls .result h3 { font-weight: 650; letter-spacing: -.01em; }
#urls .result .url { color: #5ed6a0; }
#categories { border-bottom-color: #344249; }
#categories .category { color: #b8cbc5; }
#categories .category.selected { color: #5ee1a5; border-bottom-color: var(--cmdtek-green); }
footer { color: #91a9a1; border-top-color: #344249; background: #162027; padding: 1.15rem 1rem; }
footer a { color: #56dca3; }
button, input[type="submit"], input[type="button"] { border-radius: .42rem; }
@media (max-width: 600px) { #links_on_top { top: .65rem; right: .55rem; } #links_on_top span { display: none; } #main_index { padding-top: 3.5rem; } .cm