@charset "UTF-8";
@font-face {
  font-family: "Google Sans";
  src: url("fonts/google-sans/static/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
.degoog-search-bar, .search-bar:not([class~=degoog-search-bar]), .results-search-bar:not([class~=degoog-search-bar]), .settings-nav-search:not([class~=degoog-search-bar]),
.store-search-input:not([class~=degoog-search-bar]) {
  display: flex;
  align-items: center;
  background: var(--search-bar-bg);
  border-radius: var(--degoog-search-bar-radius, 1.5rem);
  height: 2.75rem;
  padding: 0 0.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  position: relative;
  border: 1px solid transparent;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.degoog-search-bar:hover, .search-bar:hover:not([class~=degoog-search-bar]), .results-search-bar:hover:not([class~=degoog-search-bar]), .settings-nav-search:hover:not([class~=degoog-search-bar]),
.store-search-input:hover:not([class~=degoog-search-bar]), .degoog-search-bar:focus-within, .search-bar:focus-within:not([class~=degoog-search-bar]), .results-search-bar:focus-within:not([class~=degoog-search-bar]), .settings-nav-search:focus-within:not([class~=degoog-search-bar]),
.store-search-input:focus-within:not([class~=degoog-search-bar]) {
  background: var(--search-bar-bg-hover);
}
.degoog-search-bar:focus-visible, .search-bar:focus-visible:not([class~=degoog-search-bar]), .results-search-bar:focus-visible:not([class~=degoog-search-bar]), .settings-nav-search:focus-visible:not([class~=degoog-search-bar]),
.store-search-input:focus-visible:not([class~=degoog-search-bar]) {
  outline: none;
}
.degoog-search-bar.ac-open, .ac-open.search-bar:not([class~=degoog-search-bar]), .ac-open.results-search-bar:not([class~=degoog-search-bar]), .ac-open.settings-nav-search:not([class~=degoog-search-bar]),
.ac-open.store-search-input:not([class~=degoog-search-bar]) {
  border-radius: var(--degoog-search-bar-radius, 1.5rem) var(--degoog-search-bar-radius, 1.5rem) 0 0;
}
.degoog-search-bar .search-icon, .search-bar:not([class~=degoog-search-bar]) .search-icon, .results-search-bar:not([class~=degoog-search-bar]) .search-icon, .settings-nav-search:not([class~=degoog-search-bar]) .search-icon,
.store-search-input:not([class~=degoog-search-bar]) .search-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
}
.degoog-search-bar .search-input, .search-bar:not([class~=degoog-search-bar]) .search-input, .results-search-bar:not([class~=degoog-search-bar]) .search-input, .settings-nav-search:not([class~=degoog-search-bar]) .search-input,
.store-search-input:not([class~=degoog-search-bar]) .search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  height: 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.degoog-search-bar .degoog-icon-btn, .search-bar:not([class~=degoog-search-bar]) .degoog-icon-btn, .results-search-bar:not([class~=degoog-search-bar]) .degoog-icon-btn, .settings-nav-search:not([class~=degoog-search-bar]) .degoog-icon-btn,
.store-search-input:not([class~=degoog-search-bar]) .degoog-icon-btn, .degoog-search-bar .search-submit-btn:not([class~=degoog-icon-btn]), .search-bar:not([class~=degoog-search-bar]) .search-submit-btn:not([class~=degoog-icon-btn]), .results-search-bar:not([class~=degoog-search-bar]) .search-submit-btn:not([class~=degoog-icon-btn]), .settings-nav-search:not([class~=degoog-search-bar]) .search-submit-btn:not([class~=degoog-icon-btn]),
.store-search-input:not([class~=degoog-search-bar]) .search-submit-btn:not([class~=degoog-icon-btn]),
.degoog-search-bar .settings-gear:not([class~=degoog-icon-btn]),
.search-bar:not([class~=degoog-search-bar]) .settings-gear:not([class~=degoog-icon-btn]),
.results-search-bar:not([class~=degoog-search-bar]) .settings-gear:not([class~=degoog-icon-btn]),
.settings-nav-search:not([class~=degoog-search-bar]) .settings-gear:not([class~=degoog-icon-btn]),
.store-search-input:not([class~=degoog-search-bar]) .settings-gear:not([class~=degoog-icon-btn]),
.degoog-search-bar .img-lightbox-close:not([class~=degoog-icon-btn]),
.search-bar:not([class~=degoog-search-bar]) .img-lightbox-close:not([class~=degoog-icon-btn]),
.results-search-bar:not([class~=degoog-search-bar]) .img-lightbox-close:not([class~=degoog-icon-btn]),
.settings-nav-search:not([class~=degoog-search-bar]) .img-lightbox-close:not([class~=degoog-icon-btn]),
.store-search-input:not([class~=degoog-search-bar]) .img-lightbox-close:not([class~=degoog-icon-btn]),
.degoog-search-bar .ext-modal-close:not([class~=degoog-icon-btn]),
.search-bar:not([class~=degoog-search-bar]) .ext-modal-close:not([class~=degoog-icon-btn]),
.results-search-bar:not([class~=degoog-search-bar]) .ext-modal-close:not([class~=degoog-icon-btn]),
.settings-nav-search:not([class~=degoog-search-bar]) .ext-modal-close:not([class~=degoog-icon-btn]),
.store-search-input:not([class~=degoog-search-bar]) .ext-modal-close:not([class~=degoog-icon-btn]),
.degoog-search-bar .media-preview-close:not([class~=degoog-icon-btn]),
.search-bar:not([class~=degoog-search-bar]) .media-preview-close:not([class~=degoog-icon-btn]),
.results-search-bar:not([class~=degoog-search-bar]) .media-preview-close:not([class~=degoog-icon-btn]),
.settings-nav-search:not([class~=degoog-search-bar]) .media-preview-close:not([class~=degoog-icon-btn]),
.store-search-input:not([class~=degoog-search-bar]) .media-preview-close:not([class~=degoog-icon-btn]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.degoog-search-bar--square {
  --degoog-search-bar-radius: 0.5rem;
  box-shadow: none;
}
.degoog-search-bar--square:hover, .degoog-search-bar--square:focus-within {
  background: var(--search-bar-bg);
}
.degoog-search-bar--square-advanced, .settings-nav-search:not([class~=degoog-search-bar]),
.store-search-input:not([class~=degoog-search-bar]) {
  --degoog-search-bar-radius: 0.5rem;
  background: var(--bg-hover);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.degoog-search-bar--square-advanced:hover, .settings-nav-search:hover:not([class~=degoog-search-bar]),
.store-search-input:hover:not([class~=degoog-search-bar]), .degoog-search-bar--square-advanced:focus-within, .settings-nav-search:focus-within:not([class~=degoog-search-bar]),
.store-search-input:focus-within:not([class~=degoog-search-bar]) {
  background: var(--bg-hover);
}
.degoog-search-bar--results, .results-search-bar:not([class~=degoog-search-bar]) {
  flex: none;
  width: 100%;
}
@media (min-width: 768px) {
  .degoog-search-bar--results, .results-search-bar:not([class~=degoog-search-bar]) {
    flex: 1;
    max-width: 43.25rem;
    width: auto;
  }
}

.degoog-panel, .ext-card:not([class~=degoog-panel]), .sidebar-panel:not([class~=degoog-panel]), .results-slot-panel:not([class~=degoog-panel]), .glance-box:not([class~=degoog-panel]), .glance-ai:not([class~=degoog-panel]) {
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0.75rem;
}
.degoog-panel--stack-item, .sidebar-panel:not([class~=degoog-panel]), .results-slot-panel:not([class~=degoog-panel]) {
  margin-bottom: 1rem;
}
.degoog-panel--stack-item:last-child, .sidebar-panel:last-child:not([class~=degoog-panel]), .results-slot-panel:last-child:not([class~=degoog-panel]) {
  margin-bottom: 0;
}
.degoog-panel--slot, .results-slot-panel:not([class~=degoog-panel]), .glance-box:not([class~=degoog-panel]), .glance-ai:not([class~=degoog-panel]) {
  padding: 0;
  flex: 1 1 100%;
  min-width: 0;
  margin-bottom: 1rem;
}
.degoog-panel--slot:last-child, .results-slot-panel:last-child:not([class~=degoog-panel]), .glance-box:last-child:not([class~=degoog-panel]), .glance-ai:last-child:not([class~=degoog-panel]) {
  margin-bottom: 0;
}
.degoog-panel--slot[data-grid="1"], [data-grid="1"].results-slot-panel:not([class~=degoog-panel]), [data-grid="1"].glance-box:not([class~=degoog-panel]), [data-grid="1"].glance-ai:not([class~=degoog-panel]) {
  flex: 1 1 0;
  min-width: min(100%, 10rem);
}
.degoog-panel--slot[data-grid="2"], [data-grid="2"].results-slot-panel:not([class~=degoog-panel]), [data-grid="2"].glance-box:not([class~=degoog-panel]), [data-grid="2"].glance-ai:not([class~=degoog-panel]) {
  flex: 2 1 0;
  min-width: min(100%, 14rem);
}
.degoog-panel--slot[data-grid="3"], [data-grid="3"].results-slot-panel:not([class~=degoog-panel]), [data-grid="3"].glance-box:not([class~=degoog-panel]), [data-grid="3"].glance-ai:not([class~=degoog-panel]) {
  flex: 3 1 0;
  min-width: min(100%, 18rem);
}
@media (max-width: 767px) {
  .degoog-panel--slot[data-grid], [data-grid].results-slot-panel:not([class~=degoog-panel]), [data-grid].glance-box:not([class~=degoog-panel]), [data-grid].glance-ai:not([class~=degoog-panel]) {
    flex-basis: 100%;
  }
}
.degoog-panel--slot-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1rem;
  margin-bottom: 0;
}
.degoog-panel--slot-body {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.degoog-panel--slot-body a {
  color: var(--primary);
  text-decoration: none;
}
.degoog-panel--slot-body-padded, .glance-box:not([class~=degoog-panel]), .glance-ai:not([class~=degoog-panel]) {
  padding: 1rem;
}
.degoog-panel--ext-card, .ext-card:not([class~=degoog-panel]) {
  padding: 1rem;
}
.degoog-panel--accordion {
  padding: 0;
}

.degoog-vstack, .glance-box:not([class~=degoog-panel]), .glance-ai:not([class~=degoog-panel]) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.degoog-vstack--sm {
  gap: 0.25rem;
}
.degoog-vstack--lg {
  gap: 0.75rem;
}

.degoog-result, .result-item:not([class~=degoog-result]) {
  padding: 1rem 0;
  position: relative;
}
.degoog-result:hover .degoog-result--actions-toggle, .result-item:hover:not([class~=degoog-result]) .degoog-result--actions-toggle, .degoog-result:hover .result-actions-toggle:not([class~=degoog-result--actions-toggle]), .result-item:hover:not([class~=degoog-result]) .result-actions-toggle:not([class~=degoog-result--actions-toggle]), .degoog-result:focus-within .degoog-result--actions-toggle, .result-item:focus-within:not([class~=degoog-result]) .degoog-result--actions-toggle, .degoog-result:focus-within .result-actions-toggle:not([class~=degoog-result--actions-toggle]), .result-item:focus-within:not([class~=degoog-result]) .result-actions-toggle:not([class~=degoog-result--actions-toggle]) {
  opacity: 1;
}
.degoog-result--inner, .result-item-inner:not([class~=degoog-result--inner]) {
  display: flow-root;
}
@media (min-width: 768px) {
  .degoog-result--inner, .result-item-inner:not([class~=degoog-result--inner]) {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .degoog-result--body, .result-body:not([class~=degoog-result--body]) {
    flex: 1;
    min-width: 0;
    order: 1;
  }
}
.degoog-result--thumb, .result-thumbnail-wrap:not([class~=degoog-result--thumb]) {
  float: right;
  margin: 2px 0 0.5rem 0.75rem;
  width: 5rem;
  height: 3.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-light, #f0f0f0);
}
@media (min-width: 768px) {
  .degoog-result--thumb, .result-thumbnail-wrap:not([class~=degoog-result--thumb]) {
    float: none;
    margin: 0;
    flex-shrink: 0;
    order: 2;
    width: 7.5rem;
    height: 5.625rem;
  }
}
.degoog-result--thumb img, .result-thumbnail-wrap:not([class~=degoog-result--thumb]) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.degoog-result--url-row, .result-url-row:not([class~=degoog-result--url-row]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.degoog-result--favicon, .result-favicon:not([class~=degoog-result--favicon]) {
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.degoog-result--cite, .result-cite:not([class~=degoog-result--cite]) {
  font-size: 0.875rem;
  color: var(--text-cite);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.degoog-result--title, .result-title:not([class~=degoog-result--title]) {
  display: block;
  font-size: 1.25rem;
  color: var(--text-link);
  text-decoration: none;
  line-height: 1.3;
  margin-top: 0.25rem;
}
.degoog-result--title:hover, .result-title:hover:not([class~=degoog-result--title]) {
  text-decoration: underline;
}
.degoog-result--title:visited, .result-title:visited:not([class~=degoog-result--title]) {
  color: var(--text-link-visited);
}
.degoog-result--snippet, .result-snippet:not([class~=degoog-result--snippet]) {
  font-size: 0.875rem;
  color: var(--text-snippet);
  line-height: 1.58;
  margin: 0.25rem 0 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.degoog-result--engines, .result-engines:not([class~=degoog-result--engines]) {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.degoog-result--actions, .result-actions:not([class~=degoog-result--actions]) {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.degoog-result--actions-toggle, .result-actions-toggle:not([class~=degoog-result--actions-toggle]) {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.degoog-result--actions-toggle:hover, .result-actions-toggle:hover:not([class~=degoog-result--actions-toggle]), .degoog-result--actions-toggle:focus, .result-actions-toggle:focus:not([class~=degoog-result--actions-toggle]), .degoog-result--actions-toggle[aria-expanded=true], [aria-expanded=true].result-actions-toggle:not([class~=degoog-result--actions-toggle]) {
  color: var(--text-primary);
  background: var(--bg-hover);
  opacity: 1;
}

.degoog-text, .glance-snippet:not([class~=degoog-text]), .glance-sources:not([class~=degoog-text]) {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
}
.degoog-text--md, .glance-snippet:not([class~=degoog-text]) {
  font-size: 1rem;
}
.degoog-text--sm, .glance-sources:not([class~=degoog-text]) {
  font-size: 0.8125rem;
}
.degoog-text--secondary, .glance-sources:not([class~=degoog-text]) {
  color: var(--text-secondary);
}
.degoog-text--spaced, .glance-sources:not([class~=degoog-text]) {
  margin: 0.5rem 0 0;
}

.degoog-link, .glance-link:not([class~=degoog-link]) {
  color: var(--text-link);
  text-decoration: none;
}
.degoog-link:hover, .glance-link:hover:not([class~=degoog-link]) {
  text-decoration: underline;
}

.degoog-link-btn, .glance-ai-dive:not([class~=degoog-link-btn]) {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  color: var(--text-link);
  text-decoration: none;
}
.degoog-link-btn:hover, .glance-ai-dive:hover:not([class~=degoog-link-btn]) {
  text-decoration: underline;
}

.degoog-badge, .result-engine-tag:not([class~=degoog-badge]), .store-type-badge:not([class~=degoog-badge]), .store-subtype-badge:not([class~=degoog-badge]),
.glance-ai-badge:not([class~=degoog-badge]) {
  display: inline-block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-radius: 0.25rem;
  padding: 2px 0.5rem;
}
.degoog-badge--engine-tag, .result-engine-tag:not([class~=degoog-badge]) {
  border-radius: 0.1875rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
}
.degoog-badge--store-type, .store-type-badge:not([class~=degoog-badge]) {
  font-weight: 500;
  background: var(--bg-hover);
  text-transform: capitalize;
}

.degoog-dropdown, .tools-dropdown:not([class~=degoog-dropdown]), .tools-submenu:not([class~=degoog-dropdown]), .result-actions-menu:not([class~=degoog-dropdown]) {
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
}
.degoog-dropdown--menu, .tools-dropdown:not([class~=degoog-dropdown]), .result-actions-menu:not([class~=degoog-dropdown]) {
  z-index: 200;
  min-width: 11.25rem;
}
.degoog-dropdown--submenu, .tools-submenu:not([class~=degoog-dropdown]) {
  z-index: 201;
  min-width: 12.5rem;
  padding: 0.5rem 0;
  overflow: hidden;
}
.degoog-dropdown--actions-menu, .result-actions-menu:not([class~=degoog-dropdown]) {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 50;
}
.degoog-dropdown--actions-menu[hidden], [hidden].result-actions-menu:not([class~=degoog-dropdown]) {
  display: none;
}

.degoog-tab, .results-tab:not([class~=degoog-tab]),
.tools-toggle:not([class~=degoog-tab]) {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.degoog-tab.active, .active.results-tab:not([class~=degoog-tab]),
.active.tools-toggle:not([class~=degoog-tab]) {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.degoog-tab:hover:not(.active), .results-tab:hover:not(.active):not([class~=degoog-tab]),
.tools-toggle:hover:not(.active):not([class~=degoog-tab]) {
  color: var(--text-primary);
}

.degoog-accordion-toggle, .sidebar-accordion-toggle:not([class~=degoog-accordion-toggle]), .store-updates-toggle:not([class~=degoog-accordion-toggle]) {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.degoog-accordion-toggle .accordion-chevron, .sidebar-accordion-toggle:not([class~=degoog-accordion-toggle]) .accordion-chevron, .store-updates-toggle:not([class~=degoog-accordion-toggle]) .accordion-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .degoog-accordion-toggle--sidebar, .sidebar-accordion-toggle:not([class~=degoog-accordion-toggle]) {
    display: none;
  }
}

.degoog-accordion-body, .sidebar-accordion-body:not([class~=degoog-accordion-body]), .store-updates-body:not([class~=degoog-accordion-body]) {
  display: none;
}

.degoog-accordion.open .degoog-accordion-body, .open.sidebar-accordion:not([class~=degoog-accordion]) .degoog-accordion-body, .open.store-updates-panel:not([class~=degoog-accordion]) .degoog-accordion-body, .degoog-accordion.open .sidebar-accordion-body:not([class~=degoog-accordion-body]), .open.sidebar-accordion:not([class~=degoog-accordion]) .sidebar-accordion-body:not([class~=degoog-accordion-body]), .open.store-updates-panel:not([class~=degoog-accordion]) .sidebar-accordion-body:not([class~=degoog-accordion-body]), .degoog-accordion.open .store-updates-body:not([class~=degoog-accordion-body]), .open.sidebar-accordion:not([class~=degoog-accordion]) .store-updates-body:not([class~=degoog-accordion-body]), .open.store-updates-panel:not([class~=degoog-accordion]) .store-updates-body:not([class~=degoog-accordion-body]) {
  display: block;
}
.degoog-accordion.open .degoog-accordion-body--flex, .open.sidebar-accordion:not([class~=degoog-accordion]) .degoog-accordion-body--flex, .open.store-updates-panel:not([class~=degoog-accordion]) .degoog-accordion-body--flex, .degoog-accordion.open .store-updates-body:not([class~=degoog-accordion-body]), .open.sidebar-accordion:not([class~=degoog-accordion]) .store-updates-body:not([class~=degoog-accordion-body]), .open.store-updates-panel:not([class~=degoog-accordion]) .store-updates-body:not([class~=degoog-accordion-body]) {
  display: flex;
}
.degoog-accordion.open .accordion-chevron, .open.sidebar-accordion:not([class~=degoog-accordion]) .accordion-chevron, .open.store-updates-panel:not([class~=degoog-accordion]) .accordion-chevron {
  transform: rotate(180deg);
}

.degoog-menu-item, .tools-menu-item:not([class~=degoog-menu-item]), .tools-option:not([class~=degoog-menu-item]), .result-actions-item:not([class~=degoog-menu-item]) {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  text-align: left;
}
.degoog-menu-item:hover, .tools-menu-item:hover:not([class~=degoog-menu-item]), .tools-option:hover:not([class~=degoog-menu-item]), .result-actions-item:hover:not([class~=degoog-menu-item]) {
  background: var(--bg-hover);
}
.degoog-menu-item:focus, .tools-menu-item:focus:not([class~=degoog-menu-item]), .tools-option:focus:not([class~=degoog-menu-item]), .result-actions-item:focus:not([class~=degoog-menu-item]) {
  background: var(--bg-hover);
}
.degoog-menu-item--lg, .tools-menu-item:not([class~=degoog-menu-item]) {
  gap: 0.5rem;
  padding: 0.75rem 0.75rem;
}
.degoog-menu-item--option, .tools-option:not([class~=degoog-menu-item]) {
  padding: 0.5rem 1rem;
}
.degoog-menu-item--option.active, .active.tools-option:not([class~=degoog-menu-item]) {
  font-weight: 500;
}
.degoog-menu-item--option.active::before, .active.tools-option:not([class~=degoog-menu-item])::before {
  content: "✓";
  margin-right: 0.5rem;
  font-size: 0.8125rem;
}

input {
  color: var(--text-primary);
}

.degoog-input, .ext-field-input:not([class~=degoog-input]),
.ext-field-urllist-input:not([class~=degoog-input]),
.settings-rate-limit-input:not([class~=degoog-input]),
.settings-proxy-urls:not([class~=degoog-input]),
.settings-score-domain:not([class~=degoog-input]),
.settings-score-value:not([class~=degoog-input]),
.glance-ai-input:not([class~=degoog-input]), .tools-date-input:not([class~=degoog-input]), .tools-lang-filter:not([class~=degoog-input]) {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-light);
  border: none;
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}
.degoog-input::placeholder, .ext-field-input:not([class~=degoog-input])::placeholder,
.ext-field-urllist-input:not([class~=degoog-input])::placeholder,
.settings-rate-limit-input:not([class~=degoog-input])::placeholder,
.settings-proxy-urls:not([class~=degoog-input])::placeholder,
.settings-score-domain:not([class~=degoog-input])::placeholder,
.settings-score-value:not([class~=degoog-input])::placeholder,
.glance-ai-input:not([class~=degoog-input])::placeholder, .tools-date-input:not([class~=degoog-input])::placeholder, .tools-lang-filter:not([class~=degoog-input])::placeholder {
  color: var(--text-secondary);
}
.degoog-input:focus, .ext-field-input:focus:not([class~=degoog-input]),
.ext-field-urllist-input:focus:not([class~=degoog-input]),
.settings-rate-limit-input:focus:not([class~=degoog-input]),
.settings-proxy-urls:focus:not([class~=degoog-input]),
.settings-score-domain:focus:not([class~=degoog-input]),
.settings-score-value:focus:not([class~=degoog-input]),
.glance-ai-input:focus:not([class~=degoog-input]), .tools-date-input:focus:not([class~=degoog-input]), .tools-lang-filter:focus:not([class~=degoog-input]) {
  outline: none;
}
.degoog-input--sm, .tools-date-input:not([class~=degoog-input]), .tools-lang-filter:not([class~=degoog-input]) {
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
}
.degoog-input--tools, .tools-date-input:not([class~=degoog-input]), .tools-lang-filter:not([class~=degoog-input]) {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}
.degoog-input--tools-filter, .tools-lang-filter:not([class~=degoog-input]) {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0.25rem 0.75rem 2px;
  box-sizing: border-box;
}
.degoog-input--tools-date, .tools-date-input:not([class~=degoog-input]) {
  flex: 1;
  min-width: 0;
}
.degoog-input--chat {
  background: var(--bg);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  font-family: inherit;
}

.degoog-select-wrap, .theme-select-wrap:not([class~=degoog-select-wrap]), .settings-nav-mobile:not([class~=degoog-select-wrap]), .ext-field-select-wrap:not([class~=degoog-select-wrap]) {
  position: relative;
}
.degoog-select-wrap::after, .theme-select-wrap:not([class~=degoog-select-wrap])::after, .settings-nav-mobile:not([class~=degoog-select-wrap])::after, .ext-field-select-wrap:not([class~=degoog-select-wrap])::after {
  content: "\f0d7";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.degoog-select-wrap--flex, .theme-select-wrap:not([class~=degoog-select-wrap]) {
  flex: 1;
  margin-top: 0;
}
@media (min-width: 768px) {
  .degoog-select-wrap--mobile-only, .settings-nav-mobile:not([class~=degoog-select-wrap]) {
    display: none;
  }
}

.degoog-toggle-wrap, .settings-toggle-wrap:not([class~=degoog-toggle-wrap]), .engine-toggle:not([class~=degoog-toggle-wrap]) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 0.375rem;
}
.degoog-toggle-wrap input, .settings-toggle-wrap:not([class~=degoog-toggle-wrap]) input, .engine-toggle:not([class~=degoog-toggle-wrap]) input {
  display: none;
}
.degoog-toggle-wrap--transparent, .engine-toggle:not([class~=degoog-toggle-wrap]) {
  background: transparent;
}

.degoog-toggle, .toggle-slider:not([class~=degoog-toggle]) {
  width: 2.5rem;
  height: 1rem;
  background: var(--border);
  border-radius: 0.625rem;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
  order: 2;
}
.degoog-toggle::after, .toggle-slider:not([class~=degoog-toggle])::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  transition: left 0.2s ease;
  left: 0;
  transform: translate(0, -50%);
}
input:checked + .degoog-toggle, input:checked + .toggle-slider:not([class~=degoog-toggle]) {
  background: var(--primary);
}
input:checked + .degoog-toggle::after, input:checked + .toggle-slider:not([class~=degoog-toggle])::after {
  left: 55%;
}

.degoog-btn, .btn:not([class~=degoog-btn]) {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 0;
  border-radius: 0.375rem;
  box-shadow: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.degoog-btn:hover, .btn:hover:not([class~=degoog-btn]) {
  background: var(--bg-light);
  color: var(--text-primary);
}
.degoog-btn:focus-visible, .btn:focus-visible:not([class~=degoog-btn]) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.degoog-btn:disabled, .btn:disabled:not([class~=degoog-btn]) {
  opacity: 0.6;
  cursor: default;
}
.degoog-btn--secondary, .btn--secondary:not([class~=degoog-btn--secondary]) {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--bg);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  cursor: pointer;
}
.degoog-btn--secondary:hover, .btn--secondary:hover:not([class~=degoog-btn--secondary]) {
  color: var(--text-primary);
  background: var(--bg);
}
.degoog-btn--primary, .btn--primary:not([class~=degoog-btn--primary]) {
  background: var(--primary);
  color: var(--white);
}
.degoog-btn--primary:hover, .btn--primary:hover:not([class~=degoog-btn--primary]) {
  color: var(--white);
  background: var(--primary-hover);
}
.degoog-btn--danger, .btn--danger:not([class~=degoog-btn--danger]) {
  background: rgba(var(--danger), 0.14);
  color: var(--danger);
}
.degoog-btn--danger:hover:not(:disabled), .btn--danger:hover:not(:disabled):not([class~=degoog-btn--danger]) {
  background: rgba(var(--danger), 0.2);
  color: var(--danger);
}

.degoog-icon-btn, .search-submit-btn:not([class~=degoog-icon-btn]),
.settings-gear:not([class~=degoog-icon-btn]),
.img-lightbox-close:not([class~=degoog-icon-btn]),
.ext-modal-close:not([class~=degoog-icon-btn]),
.media-preview-close:not([class~=degoog-icon-btn]) {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  color: var(--text-secondary);
}
.degoog-icon-btn:hover, .search-submit-btn:hover:not([class~=degoog-icon-btn]),
.settings-gear:hover:not([class~=degoog-icon-btn]),
.img-lightbox-close:hover:not([class~=degoog-icon-btn]),
.ext-modal-close:hover:not([class~=degoog-icon-btn]),
.media-preview-close:hover:not([class~=degoog-icon-btn]) {
  color: var(--text-primary);
}
.degoog-icon-btn--padded, .settings-gear:not([class~=degoog-icon-btn]) {
  padding: 0.5rem;
}
.degoog-icon-btn--results-gear, .settings-gear:not([class~=degoog-icon-btn]) {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
@media (min-width: 768px) {
  .degoog-icon-btn--results-gear, .settings-gear:not([class~=degoog-icon-btn]) {
    position: static;
    margin-left: auto;
  }
}
.degoog-icon-btn--lightbox-close, .img-lightbox-close:not([class~=degoog-icon-btn]) {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}
.degoog-icon-btn--lightbox-close:hover, .img-lightbox-close:hover:not([class~=degoog-icon-btn]) {
  color: #fff;
}
.degoog-icon-btn--media-preview-close, .media-preview-close:not([class~=degoog-icon-btn]) {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  z-index: 1;
}

/**
 * @fccview here, this is a bunch of overrides for the generic styling.
 * It'll be here as long as the "migration" is happening, shouldn't affect you unless you are developing stuff in degoog.
 */
#header {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-link {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.header-link:hover {
  color: var(--text-primary);
}

#home-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.logo span,
.results-logo span,
.logo-letter {
  font-family: "Google Sans", "Inter", arial, sans-serif;
}

.logo {
  font-weight: 500;
  font-size: 5.75rem;
  direction: ltr;
  margin: 0;
  user-select: none;
  letter-spacing: -2px;
  display: flex;
}
.logo-d {
  color: var(--brand-blue);
}
.logo-e {
  color: var(--danger);
}
.logo-g1 {
  color: var(--brand-yellow);
}
.logo-o1 {
  color: var(--brand-blue);
}
.logo-o2 {
  color: var(--success);
}
.logo-g2 {
  color: var(--danger);
}

.results-logo {
  font-size: clamp(1.875rem, 3rem - 2.5vw, 2.5rem);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -1px;
  flex-shrink: 0;
  padding-right: 1rem;
  align-self: center;
}
@media (min-width: 768px) {
  .results-logo {
    margin-top: -5px;
  }
}

#home-search {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 36.5rem;
  margin: 0 auto;
}
#home-search .search-form {
  display: contents;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.search-btn {
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 0.25rem;
  color: var(--btn-text);
  font-size: 0.875rem;
  padding: 0 1rem;
  height: 2.25rem;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-btn:hover {
  border-color: var(--border);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.lucky-btn {
  position: relative;
  overflow: hidden;
  padding: 0 2.3em;
}
.lucky-btn .lucky-default {
  transition: opacity 0.2s ease;
}
.lucky-btn .lucky-slot {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: hidden;
  pointer-events: none;
}
.lucky-btn .lucky-slot-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lucky-btn .lucky-slot-inner span {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 400;
  height: 2.25rem;
  flex-shrink: 0;
  color: var(--btn-text);
}
.lucky-btn.hovering .lucky-default {
  opacity: 0;
}
.lucky-btn.hovering .lucky-slot {
  opacity: 1;
}

.ac-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: var(--search-bar-bg);
  border-radius: 0 0 var(--degoog-search-bar-radius, 1.5rem) var(--degoog-search-bar-radius, 1.5rem);
  z-index: 100;
  overflow: hidden;
}

.ac-item {
  padding: 0.5rem 0.75rem 0.5rem 2.875rem;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ac-item:hover, .ac-item.ac-active {
  background: var(--bg-hover);
}

.degoog-ac-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.degoog-ac-source {
  display: none;
}
@media (min-width: 768px) {
  .degoog-ac-source {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.degoog-ac-rich {
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.degoog-ac-rich-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.degoog-ac-rich-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.degoog-ac-rich-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.degoog-ac-rich-type {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: 0.25rem;
  padding: 1px 6px;
  flex-shrink: 0;
}

.degoog-ac-rich-desc {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.search-bar-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.search-bar-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.search-bar-action-icon {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
}

.search-bar-action-label {
  white-space: nowrap;
}

#results-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#results-header {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  padding: 1rem clamp(1rem, 1rem + max(0px, (100vw - 48rem) * 0.31), 9.375rem) 0;
  gap: 1rem;
  position: relative;
}
@media (min-width: 768px) {
  #results-header {
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 1rem 1.25rem 0;
    gap: 0.75rem;
  }
}

#results-tabs {
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 1rem + max(0px, (100vw - 48rem) * 0.31), 9.375rem);
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#results-tabs::-webkit-scrollbar {
  display: none;
}

.tools-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.tools-menu-label {
  flex: 1;
  font-weight: 500;
}

.tools-menu-value {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tools-menu-value--set {
  color: var(--primary);
}

.tools-menu-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.tools-custom-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.tools-date-sep {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tools-date-apply {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}
.tools-date-apply:hover {
  background: var(--bg-hover);
}

.tools-lang-list {
  overflow-y: auto;
  max-height: 16.25rem;
}

.tools-lang-code {
  font-size: 0.625rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.tools-lang-error {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

#results-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem clamp(1rem, 1rem + max(0px, (100vw - 48rem) * 0.31), 9.375rem) 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

#results-layout {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1rem, 1rem + max(0px, (100vw - 48rem) * 0.31), 9.375rem);
  gap: 0;
}
@media (min-width: 768px) {
  #results-layout {
    flex-direction: row;
    gap: 2.5rem;
  }
}
#results-layout.media-mode {
  padding: 0 clamp(0.5rem, 0.5rem + max(0px, (100vw - 48rem) * 0.028), 1.25rem);
}
#results-layout.media-mode #results-main {
  max-width: none;
}
#results-layout.media-mode #sidebar-col {
  display: none;
}

#results-main {
  flex: 1;
  max-width: 40.75rem;
  min-width: 0;
}

#sidebar-col {
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 0.5rem;
  order: -1;
}
@media (min-width: 768px) {
  #sidebar-col {
    width: 21.25rem;
    padding-bottom: 0;
    order: 0;
  }
}

.result-actions-toast {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 60;
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 0.6875rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  pointer-events: none;
  animation: result-actions-toast 1.6s ease-out forwards;
}

@keyframes result-actions-toast {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }
  10%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
.result-favicon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-hover);
  text-transform: uppercase;
  line-height: 1;
}

.result-insecure-badge {
  font-size: 0.6875rem;
  color: var(--color-danger, #c0392b);
  border: 1px solid currentColor;
  border-radius: 0.1875rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
  cursor: help;
  line-height: 1.4;
}

.no-results {
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.loading-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  gap: 0.5rem;
}
.loading-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot-pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.pagination {
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 2px;
}
@media (min-width: 768px) {
  .pagination-pages {
    gap: 0.5rem;
  }
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease;
}
.pagination-link:hover {
  background: var(--bg-light);
}

.pagination-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pagination-nav {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}
.pagination-nav:hover {
  text-decoration: underline;
}

#slot-above-results,
#slot-below-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
#slot-above-results:empty,
#slot-below-results:empty {
  display: none;
}

#slot-above-sidebar,
#slot-below-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#slot-above-sidebar:empty,
#slot-below-sidebar:empty {
  display: none;
}

#slot-above-sidebar {
  margin-bottom: 1rem;
}

#slot-below-sidebar {
  margin-top: 1rem;
}

.result-stream-in {
  animation: resultFadeIn 0.3s ease-out both;
}

@keyframes resultFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.engine-retrying .engine-stat-meta {
  color: var(--text-secondary);
  font-style: italic;
}

#at-a-glance:not(:empty) {
  margin-bottom: 1rem;
}

.glance-box,
.glance-ai {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.glance-snippet,
.glance-sources {
  margin: 0;
  padding: 0;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-media-thumb, .skeleton-media-card, .skeleton-line {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-hover) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 0.25rem;
}

.skeleton-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40.75rem;
}

.skeleton-line {
  height: 0.8125rem;
  width: 100%;
}
.skeleton-line--url {
  height: 0.8125rem;
  width: 11.25rem;
  margin-bottom: 2px;
}
.skeleton-line--title {
  height: 1.125rem;
  width: 70%;
}
.skeleton-line--snippet {
  height: 0.8125rem;
  width: 100%;
}
.skeleton-line--snippet-short {
  height: 0.8125rem;
  width: 55%;
}

.skeleton-image-grid {
  display: flex;
  gap: 0.25rem;
  padding: 1rem 0;
}
.skeleton-image-grid .image-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.skeleton-video-grid {
  column-count: 2;
  column-gap: 0.5rem;
  padding: 1rem 0;
}
@media (min-width: 800px) {
  .skeleton-video-grid {
    column-count: 3;
  }
}
@media (min-width: 1400px) {
  .skeleton-video-grid {
    column-count: 4;
  }
}

.skeleton-media-card {
  border-radius: 0.5rem;
  width: 100%;
}

.skeleton-video-card {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.skeleton-media-thumb {
  width: 100%;
  aspect-ratio: 16/9;
}

.skeleton-sidebar {
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.skeleton-sidebar-panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.skeleton-sidebar-panel .skeleton-line--title {
  width: 50%;
  height: 0.875rem;
}

.skeleton-glance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0 0.5rem;
}
.skeleton-glance .skeleton-line--title {
  width: 80%;
}
.skeleton-glance .skeleton-line--snippet {
  width: 95%;
}
.skeleton-glance .skeleton-line--snippet-short {
  width: 60%;
}

.settings-page-body {
  min-height: 100vh;
}

.settings-page {
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (min-width: 768px) {
  .settings-page {
    max-width: 70rem;
  }
}

.settings-page-header {
  margin-bottom: 1.5rem;
}

.settings-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.settings-page-back:hover {
  color: var(--text-primary);
}
.settings-page-back svg {
  flex-shrink: 0;
}

.settings-page-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}

.settings-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (min-width: 768px) {
  .settings-layout {
    flex-direction: row;
    gap: 2rem;
  }
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .settings-sidebar {
    width: 14rem;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 2.5rem;
    margin-bottom: 0;
  }
}

.settings-tab-select {
  display: block;
  width: 100%;
  min-height: 3rem;
  background: var(--bg-light);
  border-radius: 0.625rem;
  color: var(--text-primary);
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  appearance: none;
  text-transform: uppercase;
  height: 3rem;
}
.settings-tab-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.15);
}

.settings-nav {
  display: none;
}
@media (min-width: 768px) {
  .settings-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

.settings-nav-item {
  background: none;
  border: none;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.75rem 0.75rem;
  text-align: start;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.settings-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-light);
}
.settings-nav-item.active {
  color: var(--text-primary);
  background: var(--bg-hover);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid transparent;
  font-weight: 500;
}

.settings-tab-panel {
  display: none;
}
.settings-tab-panel.active {
  display: block;
}

.settings-search-active .settings-tab-panel {
  display: block;
}

.settings-search-active .settings-page-actions {
  display: none;
}

.settings-search-active.settings-search-has-save .settings-page-actions:not(#engines-content .settings-page-actions) {
  display: block;
}

.settings-search-active.settings-search-empty .settings-tab-panel {
  display: none;
}

.settings-page-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.settings-section {
  position: relative;
}
.settings-section.degoog-panel, .settings-section.ext-card:not([class~=degoog-panel]), .settings-section.sidebar-panel:not([class~=degoog-panel]), .settings-section.results-slot-panel:not([class~=degoog-panel]), .settings-section.glance-box:not([class~=degoog-panel]), .settings-section.glance-ai:not([class~=degoog-panel]) {
  margin-bottom: 0.75rem;
}

.setting-section-heading-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.25rem;
}
.setting-section-heading-wrapper .floating-section-icon {
  opacity: 0.3;
  font-size: 1.25rem;
}

.settings-section-heading {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: 0;
}

.settings-section .settings-desc {
  margin: 0 0 1rem;
}

.settings-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
  display: grid;
  gap: 1rem;
}
.settings-fieldset-inverse {
  gap: 0.75rem;
  cursor: pointer;
  width: 100%;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 0.375rem;
}
.settings-fieldset-inverse .settings-toggle-wrap {
  background: var(--bg-light);
}

.settings-fieldset--compact {
  gap: 0.75rem;
}

.settings-page-actions {
  padding-top: 1rem;
}

.settings-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.engine-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.theme-select {
  background-color: var(--bg);
  border-radius: 0.25rem;
  border: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  cursor: pointer;
  outline: none;
  appearance: none;
  text-transform: uppercase;
}
.theme-select:focus {
  border-color: var(--primary);
}

.settings-toggle-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  flex: 1;
}

#settings-api-key-value {
  overflow-x: auto;
}
#settings-api-key-value::-webkit-scrollbar {
  display: none;
}

.settings-proxy-urls-wrap {
  margin-top: 0;
}

.settings-proxy-urls-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.settings-proxy-urls {
  display: block;
  width: 100%;
  min-height: 6.25rem;
  padding: 0.75rem;
  resize: vertical;
}

.settings-score-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.settings-score-rows:empty {
  display: none;
}

.settings-score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-score-domain {
  flex: 1;
  min-width: 0;
}

.settings-score-value {
  width: 5rem;
  flex-shrink: 0;
}

.settings-score-remove {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
}
.settings-score-remove:hover, .settings-score-remove:focus {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.settings-score-add {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--primary);
  padding: 0.25rem 0;
}
.settings-score-add:hover {
  text-decoration: underline;
}

.proxy-test-btn {
  margin-top: 0;
}

.proxy-test-result {
  margin-top: 0;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.proxy-test-result strong {
  font-weight: 600;
}
.proxy-test-result--ok {
  background: rgba(var(--success), 0.1);
  color: var(--success);
  border: 1px solid rgba(var(--success), 0.25);
}
.proxy-test-result--warn {
  background: rgba(var(--warning), 0.1);
  color: var(--warning);
  border: 1px solid rgba(var(--warning), 0.25);
}
.proxy-test-result--error {
  background: rgba(var(--danger), 0.1);
  color: var(--danger);
  border: 1px solid rgba(var(--danger), 0.25);
}

.settings-rate-limit-wrap {
  margin-top: 0;
}

.settings-rate-limit-desc {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.settings-rate-limit-options {
  margin-top: 0;
}

.settings-rate-limit-defaults {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.settings-rl-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.settings-rl-grid .settings-rate-limit-input--inline {
  width: 100px;
  min-width: 0;
}

.settings-rate-limit-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem;
  margin-top: 0;
  box-sizing: border-box;
}

.settings-auth-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 3rem;
}

.settings-auth-gate-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}
@media (min-width: 481px) {
  .settings-auth-gate-inner {
    max-width: 25rem;
  }
}

.settings-auth-desc {
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.settings-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-auth-input {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  outline: none;
  padding: 1rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}
.settings-auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary), 0.15);
}
.settings-auth-input::placeholder {
  color: var(--text-secondary);
}

.settings-auth-error {
  color: var(--danger);
  font-size: 0.8125rem;
  text-align: center;
  margin: 0;
  min-height: 1.25rem;
}

.settings-auth-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.625rem;
  padding: 1rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.settings-auth-submit:hover {
  background: var(--primary-hover);
}

.settings-save {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.settings-save:hover:not(:disabled) {
  background: var(--primary-hover);
}
.settings-save:disabled {
  opacity: 0.6;
  cursor: default;
}

.ext-group {
  margin-bottom: 2rem;
}
.ext-group-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.ext-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ext-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ext-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ext-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.ext-card-name.engine-toggle-label, .ext-card-name.plugin-toggle-label, .ext-card-name.transport-toggle-label {
  cursor: pointer;
}
.ext-card-trigger {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: monospace;
}
.ext-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ext-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.ext-card-apply:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.ext-card-active {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.ext-card-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.degoog-card-order {
  flex-shrink: 0;
}
.degoog-card-order-btn {
  display: block;
}
.degoog-card-order-btn:disabled {
  cursor: default;
  opacity: 0.2;
  pointer-events: none;
}

.ext-modal {
  background: var(--bg-light);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 92vw;
  overflow: hidden;
  width: 30rem;
}
.ext-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
}
.ext-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
}
.ext-modal-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}
.ext-modal-close {
  font-size: 1.5rem;
  line-height: 1;
}
.ext-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.5rem;
}
.ext-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
}
.ext-modal-status {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.ext-docs-modal {
  width: min(60rem, 92vw);
}

.ext-docs-body {
  overflow-y: auto;
  max-width: 100%;
  display: block;
  color: var(--text-secondary);
}
.ext-docs-body a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ext-docs-body code {
  font-family: monospace;
  background: var(--bg-hover);
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  color: var(--text-primary);
}
.ext-docs-body pre {
  background: var(--bg-hover);
  border-radius: 0.375rem;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--border-light);
  max-width: 100%;
  margin: 0 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.ext-docs-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--text-primary);
}

.ext-docs-error {
  color: var(--danger);
  margin: 0;
}

.ext-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ext-field-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ext-field-toggle-row {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.ext-field-input {
  background: var(--bg-hover);
  box-shadow: inset 0 0 0 1px var(--border-light);
}
.ext-field-input--configured {
  color: var(--text-secondary);
  opacity: 0.6;
}
.ext-field-input--configured::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.ext-field-desc {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0;
}
.ext-field-configured-note {
  color: var(--success);
  font-size: 0.8125rem;
  margin: 0;
}
.ext-field-urllist {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 40vh;
  overflow-y: auto;
}
.ext-field-urllist-item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light, #eee);
}
.ext-field-urllist-item:last-child {
  border-bottom: none;
}
.ext-field-urllist-url {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ext-field-urllist-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 0.5rem;
  flex-shrink: 0;
}
.ext-field-urllist-remove:hover {
  color: var(--text-primary);
}
.ext-field-urllist-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ext-field-urllist-input {
  flex: 1;
  background: var(--bg-hover);
}
.ext-field-urllist-input:focus {
  box-shadow: inset 0 0 0 1px var(--border-light), 0 0 0 3px rgba(var(--primary), 0.5);
  outline: none;
}
.ext-field-urllist-add-btn {
  background: var(--primary);
  border: none;
  border-radius: 0.375rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.ext-field-urllist-add-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.ext-advanced-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.ext-advanced-body {
  margin-top: 0.75rem;
}
.ext-advanced-body .ext-field {
  margin-bottom: 1em;
}

.ext-test-connection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.ext-test-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.ext-test-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.ext-test-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ext-test-result {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ext-test-ok {
  color: var(--success);
}

.ext-test-fail {
  color: var(--danger);
}

.ext-required {
  color: var(--danger);
}

textarea.ext-field-input {
  resize: vertical;
  min-height: 5rem;
}

select.ext-field-input.ext-field-select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.5rem;
}

.ext-version-warning {
  font-size: 0.8125rem;
  color: var(--warning);
}

.ext-configured-badge,
.ext-needs-config-badge {
  align-items: center;
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 500;
  gap: 0.25rem;
  padding: 2px 0.5rem;
  white-space: nowrap;
}
.ext-configured-badge::before,
.ext-needs-config-badge::before {
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
}

.ext-configured-badge {
  color: var(--success);
}
.ext-configured-badge::before {
  background: var(--success);
}

.ext-needs-config-badge {
  color: var(--warning);
}
.ext-needs-config-badge::before {
  background: var(--warning);
}

.sidebar-accordion-body {
  padding: 0 1rem 1rem;
}
@media (min-width: 768px) {
  .sidebar-accordion-body {
    display: block;
    padding: 1rem;
  }
}

.sidebar-heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.kp-image {
  width: 100%;
  max-height: 12.5rem;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.kp-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.kp-description {
  font-size: 0.8125rem;
  color: var(--text-snippet);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.kp-link {
  font-size: 0.8125rem;
  color: var(--text-link);
  text-decoration: none;
}
.kp-link:hover {
  text-decoration: underline;
}

.engine-stat-row {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.engine-stat-row:last-child {
  margin-bottom: 0;
}

.engine-retry-link {
  font-size: 0.6875rem;
  cursor: pointer;
}

.engine-stat-label {
  font-size: 0.8125rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.engine-stat-bar-wrap {
  height: 0.25rem;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}

.engine-stat-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.engine-stat-meta {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.related-search-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-link);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}
.related-search-link:last-child {
  border-bottom: none;
}
.related-search-link:hover {
  text-decoration: underline;
}

#img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
#img-lightbox.open {
  display: block;
}

.img-lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.img-lightbox-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  cursor: zoom-in;
}

.img-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.media-engine-bar {
  display: flex;
  flex-wrap: nowrap;
  flex-basis: 100%;
  gap: 0.5rem;
  padding: 0.25rem 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.media-engine-bar::-webkit-scrollbar {
  display: none;
}
.media-engine-bar-tag--miss {
  opacity: 0.5;
}

.image-grid {
  display: flex;
  gap: 0.25rem;
  padding: 1rem 0;
}

.image-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.image-card {
  margin-bottom: 0;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s ease;
}
.image-card:hover {
  opacity: 0.85;
}
.image-card.selected {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.image-thumb-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg-hover);
}

.image-thumb {
  width: 100%;
  display: block;
}

.image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0.5rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.image-card:hover .image-info {
  opacity: 1;
}

.image-title {
  font-size: 0.6875rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-source {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-scroll-sentinel {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-preview-panel {
  background: var(--bg);
  border-left: none;
  border-radius: 1rem 1rem 0 0;
  border-top: 1px solid var(--border);
  bottom: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: auto;
  left: 0;
  max-height: 70vh;
  min-width: 0;
  overflow: hidden;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  z-index: 200;
}
#media-preview-panel.open {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
}
@media (min-width: 768px) {
  #media-preview-panel {
    border-left: none;
    border-radius: 0;
    border-top: none;
    bottom: auto;
    height: 100vh;
    left: auto;
    max-height: none;
    min-width: 0;
    position: sticky;
    right: auto;
    top: 0;
    transform: none;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    z-index: auto;
  }
  #media-preview-panel.open {
    border-left: 1px solid var(--border);
    box-shadow: none;
    min-width: 26.25rem;
    transform: none;
    width: 26.25rem;
  }
}

.media-preview-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.media-preview-nav {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  position: absolute;
  z-index: 2;
  width: clamp(2rem, 4vw, 2.5rem);
  height: clamp(2rem, 4vw, 2.5rem);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.media-preview-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}
.media-preview-nav:disabled {
  opacity: 0 !important;
  pointer-events: none;
}
@media (min-width: 768px) {
  .media-preview-nav {
    opacity: 0;
  }
  #media-preview-panel.open:hover .media-preview-nav, #media-preview-panel.open .media-preview-nav:focus-visible {
    opacity: 1;
  }
}

.media-preview-prev {
  left: 0.5rem;
}

.media-preview-next {
  right: 0.5rem;
}

.media-preview-img {
  width: 100%;
  max-height: clamp(40vh, 30vh + 15vw, 60vh);
  object-fit: contain;
  background: var(--bg-light);
  padding: clamp(0.75rem, 3vw, 1.25rem);
}

.media-preview-info {
  padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 4vw, 1.25rem);
  flex: 1;
}

.media-preview-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.media-preview-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.media-preview-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.media-preview-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.media-preview-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.media-preview-visit,
.media-preview-download {
  text-decoration: none;
}

.video-grid {
  column-count: 2;
  column-gap: 0.5rem;
  padding: 1rem 0;
}
@media (min-width: 800px) {
  .video-grid {
    column-count: 3;
  }
}
@media (min-width: 1400px) {
  .video-grid {
    column-count: 4;
  }
}

.video-card {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-light);
  transition: box-shadow 0.2s ease;
}
.video-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.video-card:hover .video-play-icon {
  opacity: 1;
}
.video-card.selected {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.video-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-hover);
  position: relative;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.6875rem;
  padding: 2px 0.25rem;
  border-radius: 0.1875rem;
}

.video-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-title {
  font-size: 0.8125rem;
  color: var(--text-primary);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.video-source {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result {
  padding: 1.5rem 0;
  max-width: 40.75rem;
  width: 100%;
  color: var(--text-primary);
}

.command-help-table {
  width: 100%;
  border-collapse: collapse;
}
.command-help-table th, .command-help-table td {
  text-align: left;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.command-help-table th {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.command-help-table .command-trigger {
  font-family: monospace;
  color: var(--text-link);
  white-space: nowrap;
}

.help-container {
  max-width: 40.75rem;
}

.help-search-wrap {
  margin-bottom: 1em;
}

.help-search {
  width: 100%;
  padding: 0.6em 1em;
  font-size: 0.875rem;
  background: var(--search-bar-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  outline: none;
}
.help-search:focus {
  border-color: var(--primary);
}

.help-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1em;
}
.help-hint code {
  background: var(--bg-light);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.help-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 18.75rem;
}
@media (min-width: 601px) {
  .help-layout {
    flex-direction: row;
  }
}

.help-tabs {
  display: flex;
  flex-direction: row;
  border-right: none;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
  flex-shrink: 0;
  min-width: 0;
  overflow-x: auto;
}
@media (min-width: 601px) {
  .help-tabs {
    flex-direction: column;
    border-right: 1px solid var(--border-light);
    border-bottom: none;
    min-width: 10rem;
    overflow-x: initial;
  }
}

.help-tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  white-space: nowrap;
}
.help-tab:hover {
  background: var(--bg-hover);
}
.help-tab.active {
  color: var(--text-primary);
  background: var(--bg);
  font-weight: 600;
  border-right: 1px solid var(--border-light);
  border-bottom: 2px solid var(--primary);
}
@media (min-width: 601px) {
  .help-tab {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    white-space: normal;
  }
  .help-tab:last-child {
    border-bottom: none;
  }
  .help-tab.active {
    border-right: 2px solid var(--primary);
    border-bottom: none;
  }
}

.help-tab-count {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 0.1em 0.5rem;
  border-radius: 0.625rem;
  min-width: 1.25rem;
  text-align: center;
}

.help-panels {
  flex: 1;
  overflow-y: auto;
  max-height: 60vh;
}

.help-panel {
  display: none;
}
.help-panel.active {
  display: block;
}

.help-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}
.help-row:last-child {
  border-bottom: none;
}
.help-row:hover {
  background: var(--bg-hover);
}

.help-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.help-trigger {
  font-family: monospace;
  color: var(--text-link);
  font-weight: 600;
  white-space: nowrap;
}

.help-name {
  font-weight: 500;
  color: var(--text-primary);
}

.help-row-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.help-row-aliases {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.help-aliases {
  font-family: monospace;
  color: var(--text-link);
  opacity: 0.7;
}

.command-uuid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.command-uuid .uuid-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.command-uuid code {
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light);
  border-radius: 0.375rem;
  border: 1px solid var(--border-light);
  user-select: all;
}
.command-uuid .uuid-copy {
  padding: 0.5rem 1rem;
  background: var(--search-bar-bg);
  color: var(--text-primary);
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.command-uuid .uuid-copy:hover {
  background: var(--search-bar-bg-hover);
}

.command-ip-info .ip-row {
  display: flex;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.command-ip-info .ip-row:last-child {
  border-bottom: none;
}
.command-ip-info .ip-label {
  width: 7.5rem;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-weight: bold;
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.command-ip-info .ip-value {
  color: var(--text-primary);
}

.command-speedtest .speedtest-gauges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.command-speedtest .speedtest-gauge {
  flex: 1;
  min-width: 9.375rem;
}
.command-speedtest .speedtest-value {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.2;
}
.command-speedtest .speedtest-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.command-speedtest .speedtest-bar {
  height: 0.5rem;
  background: var(--bg-light);
  border-radius: 0.1875rem;
  overflow: hidden;
  margin-top: 0.25rem;
}
.command-speedtest .speedtest-bar-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 0.1875rem;
  transition: width 0.5s ease;
}
.command-speedtest .speedtest-status {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.command-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 1rem;
  max-width: none;
}
.command-media-grid .media-card {
  background: var(--bg-light);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease;
}
.command-media-grid .media-card:hover {
  transform: translateY(-2px);
}
.command-media-grid .media-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.command-media-grid .media-no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
.command-media-grid .media-card-info {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.command-media-grid .media-card-title {
  font-size: 0.875rem;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-media-grid .media-year {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.command-media-grid .media-type-badge {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 0.15em 0.5rem;
  border-radius: 0.25rem;
  width: fit-content;
  text-transform: uppercase;
}

.store-empty {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0 0 1rem;
}

.store-repos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.store-repo-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.store-repo-item {
  cursor: pointer;
  position: relative;
}

.store-repo-item-media {
  flex-shrink: 0;
  position: relative;
}

.store-repo-img {
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 0.5rem;
  padding: 0.25rem;
  object-fit: cover;
  background: var(--bg-hover);
}

.store-repo-img-placeholder {
  width: 4.375rem;
  height: 4.375rem;
  min-width: 4.375rem;
  min-height: 4.375rem;
  border-radius: 0.5rem;
  padding: 0.25rem;
  background: var(--bg-hover);
}

.store-repo-update-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--primary);
  border: 2px solid var(--bg);
  border-radius: 50%;
}

.store-repo-detail {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-hover);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.store-repo-detail .store-repo-img {
  background: var(--bg-light);
}

.store-repo-detail-body {
  flex: 1;
  min-width: 0;
}

.store-repo-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.store-repo-url {
  font-size: 0.8125rem;
  color: var(--text-link);
  word-break: break-all;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}
.store-repo-url:hover {
  text-decoration: underline;
}

.store-repo-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.store-repo-error {
  color: var(--danger);
  margin-left: 0.5rem;
}

.store-repo-updates-note {
  display: block;
  margin-top: 0.25rem;
  color: var(--primary);
  font-weight: 500;
}

.store-repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-add-repo-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.store-input-url {
  flex: 1;
  min-width: 12.5rem;
}

.store-inline-error {
  color: var(--danger);
  font-size: 0.8125rem;
  min-height: 1.125rem;
}
.store-inline-error.store-error-visible {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.store-updates-panel {
  background: var(--bg-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.store-updates-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
}

.store-updates-toggle {
  flex: 1;
  min-width: 0;
}

.store-updates-body {
  padding: 0 1rem 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.store-updates-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-hover);
  border-radius: 0.375rem;
}

.store-updates-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-updates-row-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-updates-row-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.store-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.store-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.store-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-light);
  border: 1px solid transparent;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}
.store-filter-select:focus {
  border-color: var(--primary);
}

.store-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 520px) {
  .store-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .store-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.store-card {
  background: var(--bg-light);
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.store-card-thumb-wrap {
  height: 8.75rem;
  background: var(--bg-hover);
  flex-shrink: 0;
  overflow: hidden;
}

.store-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 8.75rem;
}

.store-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.store-card-main {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.store-card-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.store-card-meta a {
  color: var(--text-link);
  text-decoration: none;
}
.store-card-meta a:hover {
  text-decoration: underline;
}

.store-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  flex: 1;
  min-height: 0;
  max-height: 100px;
  overflow-y: auto;
}

.store-card-version {
  font-size: 0.6875rem;
  color: var(--text-muted, var(--text-secondary));
  margin-top: 2px;
}

.store-card-version-old {
  text-decoration: line-through;
  opacity: 0.6;
}

.store-card-version-warning {
  font-size: 0.6875rem;
  color: var(--warning);
  margin-top: 2px;
}

.store-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: auto;
  background: var(--bg-card-footer, transparent);
}

.store-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.store-card-thumb-wrap--clickable {
  cursor: pointer;
}
.store-card-thumb-wrap--clickable:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.store-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.store-lightbox.store-lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.store-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.store-lightbox-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.store-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.store-lightbox-prev,
.store-lightbox-next {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.store-lightbox-prev:hover,
.store-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.store-lightbox-prev {
  left: 1.25rem;
}

.store-lightbox-next {
  right: 1.25rem;
}

.store-lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 60rem);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.store-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.store-lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1.5rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

#main-home.has-feed {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  #main-home.has-feed {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 6.25rem;
  }
}

.home-news-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36.5rem;
  margin: 1.5rem auto 0;
  gap: 1rem;
}
.home-news-feed:empty {
  display: none;
}
@media (min-width: 768px) {
  .home-news-feed:not(.home-news-feed--desktop) {
    display: none !important;
  }
}

.skeleton-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.skeleton-feed-card {
  background: var(--bg-light);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-feed-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-hover) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-feed-body {
  padding: 0.75rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-feed-line {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-hover) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 0.25rem;
  height: 0.75rem;
}
.skeleton-feed-line.skeleton-feed-source {
  width: 6.25rem;
}
.skeleton-feed-line.skeleton-feed-title {
  height: 1rem;
  width: 85%;
}

@keyframes home-feed-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.home-feed-card {
  display: block;
  background: var(--bg-light);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  animation: home-feed-fade-in 0.4s ease-out backwards;
}
.home-feed-card:nth-child(1) {
  animation-delay: 0.02s;
}
.home-feed-card:nth-child(2) {
  animation-delay: 0.06s;
}
.home-feed-card:nth-child(3) {
  animation-delay: 0.1s;
}
.home-feed-card:nth-child(4) {
  animation-delay: 0.14s;
}
.home-feed-card:nth-child(5) {
  animation-delay: 0.18s;
}
.home-feed-card:nth-child(6) {
  animation-delay: 0.22s;
}
.home-feed-card:nth-child(7) {
  animation-delay: 0.26s;
}
.home-feed-card:nth-child(8) {
  animation-delay: 0.3s;
}
.home-feed-card:nth-child(n+9) {
  animation-delay: 0.34s;
}
.home-feed-card:active {
  background: var(--bg-hover);
}
.home-feed-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg-hover);
}
.home-feed-card-body {
  padding: 0.75rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.home-feed-card-source {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-feed-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes egg-fccview-fall {
  0% {
    transform: translateY(-120vh) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(var(--egg-fccview-rotate, 360deg));
    opacity: 1;
  }
}
.egg-fccview-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.egg-fccview-drop {
  position: absolute;
  top: 0;
  border-radius: 50%;
  animation-name: egg-fccview-fall;
  animation-timing-function: linear;
  animation-fill-mode: both;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  font-family: "Inter", arial, sans-serif;
}

:root {
  --primary: #5673ac;
  --primary-hover: #3b547c;
  --primary-rgb: 66, 133, 244;
  --brand-blue: #4285f4;
  --brand-yellow: #fbbc05;
  --danger: #ea4335;
  --warning: #c17d00;
  --success: #34a853;
  --bg: #f1f1f1;
  --bg-light: #fafafa;
  --bg-hover: #fafafa;
  --border: #c8d0da;
  --border-light: #dedede;
  --text-primary: #343536;
  --text-secondary: #4b5563;
  --text-link: #1a0dab;
  --text-link-visited: #681da8;
  --text-cite: #111827;
  --text-snippet: #374151;
  --search-bar-bg: #f7f8fb;
  --search-bar-bg-hover: #f7f8fb;
  --btn-bg: #f7f8fb;
  --btn-text: var(--text-primary);
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --white: #fff;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) {
    --primary: #5673ac;
    --primary-hover: #3b547c;
    --primary-rgb: 66, 133, 244;
    --brand-blue: #4285f4;
    --brand-yellow: #fbbc05;
    --danger: #ea4335;
    --warning: #c17d00;
    --success: #34a853;
    --bg: #f1f1f1;
    --bg-light: #fafafa;
    --bg-hover: #fafafa;
    --border: #c8d0da;
    --border-light: #dedede;
    --text-primary: #343536;
    --text-secondary: #4b5563;
    --text-link: #1a0dab;
    --text-link-visited: #681da8;
    --text-cite: #111827;
    --text-snippet: #374151;
    --search-bar-bg: #f7f8fb;
    --search-bar-bg-hover: #f7f8fb;
    --btn-bg: #f7f8fb;
    --btn-text: var(--text-primary);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --white: #fff;
  }
}
[data-theme=light] {
  --primary: #5673ac;
  --primary-hover: #3b547c;
  --primary-rgb: 66, 133, 244;
  --brand-blue: #4285f4;
  --brand-yellow: #fbbc05;
  --danger: #ea4335;
  --warning: #c17d00;
  --success: #34a853;
  --bg: #f1f1f1;
  --bg-light: #fafafa;
  --bg-hover: #fafafa;
  --border: #c8d0da;
  --border-light: #dedede;
  --text-primary: #343536;
  --text-secondary: #4b5563;
  --text-link: #1a0dab;
  --text-link-visited: #681da8;
  --text-cite: #111827;
  --text-snippet: #374151;
  --search-bar-bg: #f7f8fb;
  --search-bar-bg-hover: #f7f8fb;
  --btn-bg: #f7f8fb;
  --btn-text: var(--text-primary);
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --white: #fff;
}

[data-theme=dark] {
  --primary: #5673ac;
  --primary-hover: #3b547c;
  --primary-rgb: 66, 133, 244;
  --brand-blue: #4285f4;
  --brand-yellow: #fbbc05;
  --danger: #ea4335;
  --warning: #fbbc05;
  --success: #34a853;
  --bg: #25272e;
  --bg-light: #303134;
  --bg-hover: #3c4043;
  --border: #5f6368;
  --border-light: #303134;
  --text-primary: #dddddd;
  --text-secondary: #9aa0a6;
  --text-link: #8ab4f8;
  --text-link-visited: #c58af9;
  --text-cite: #bdc1c6;
  --text-snippet: #bdc1c6;
  --search-bar-bg: #303134;
  --search-bar-bg-hover: #303134;
  --btn-bg: #303134;
  --btn-text: var(--text-primary);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --white: #fff3f3;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 1em;
  margin-top: -100px;
}
@media (min-width: 768px) {
  #main-home {
    margin-top: 0;
    padding: 0;
  }
}

body.has-results #app {
  min-height: auto;
}

::selection {
  background: rgba(var(--primary-rgb), 0.3);
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0.25rem;
}

#home-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1rem;
}
#home-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
}
#home-footer a:hover {
  text-decoration: underline;
}

.fa-solid {
  line-height: 1.2rem;
}

body.has-results #home-footer {
  display: none;
}