/* Mobile-first interaction layer for Search and Ask OMINO. */
:root {
  --qx-motion: cubic-bezier(.22, 1, .36, 1);
  --qx-fast: 180ms;
  --qx-smooth: 360ms;
  --qx-ai: #7254dc;
  --qx-ai-2: #a05aeb;
}

/* Refined mobile search overlay. */
@media (max-width: 640px) {
  #mobile-search-sheet,
  html:not([data-theme="dark"]) #mobile-search-sheet {
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)) !important;
    background: color-mix(in srgb, #f7f8fb 94%, transparent) !important;
    color: #16181d !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    transform: translateY(18px) scale(.985) !important;
    transform-origin: 50% 12% !important;
    transition: opacity 220ms cubic-bezier(.22,1,.36,1), transform 360ms cubic-bezier(.22,1,.36,1), visibility 0s linear 360ms !important;
  }
  #mobile-search-sheet.on,
  html:not([data-theme="dark"]) #mobile-search-sheet.on {
    transform: none !important;
    transition-delay: 0s !important;
  }
  #mobile-search-sheet .mobile-search-form {
    grid-template-columns: 40px minmax(0,1fr) 40px 48px !important;
    grid-template-rows: minmax(54px,auto) 34px !important;
    gap: 6px !important;
    padding: 5px 6px 6px !important;
    border: 1px solid rgba(25,30,40,.10) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 14px 42px rgba(22,29,45,.10), 0 2px 7px rgba(22,29,45,.05) !important;
  }
  #mobile-search-sheet .mobile-search-field {
    min-height: 54px !important;
    padding: 15px 5px 10px !important;
    font: 560 16px/1.4 var(--font,system-ui,sans-serif) !important;
    letter-spacing: -.01em !important;
  }
  #mobile-search-sheet .mobile-search-plus,
  #mobile-search-sheet .mobile-search-mic {
    width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important;
    margin-top: 7px !important; border-radius: 13px !important;
    transition: background 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1) !important;
  }
  #mobile-search-sheet .mobile-search-submit { margin-top: 3px !important; border-radius: 15px !important; }
  #mobile-search-sheet .mobile-search-translate {
    margin-right: 4px !important; padding: 0 12px !important; min-width: 92px !important;
    border: 0 !important; border-radius: 11px !important; background: #eef3fb !important;
    color: #2868c7 !important; -webkit-text-fill-color: #2868c7 !important; font-size: 11px !important;
  }
  #mobile-search-sheet .mobile-translate-languages {
    margin: 12px 2px 8px !important; padding: 10px !important; border: 1px solid rgba(25,30,40,.08) !important;
    border-radius: 16px !important; background: rgba(255,255,255,.68) !important;
  }
  #mobile-search-sheet .mobile-translate-languages input {
    height: 40px !important; border: 0 !important; border-radius: 11px !important; background: rgba(235,238,244,.85) !important;
  }
  #mobile-search-sheet .mobile-search-rule { margin: 11px 2px 5px !important; background: rgba(25,30,40,.09) !important; }
  #mobile-search-sheet .mobile-search-quick { padding: 6px 2px 10px !important; }
  #mobile-search-sheet .mobile-search-quick button {
    min-height: 34px !important; padding: 0 12px !important; border-radius: 999px !important;
    background: rgba(255,255,255,.76) !important; color: #626a77 !important; -webkit-text-fill-color: #626a77 !important;
    box-shadow: inset 0 0 0 1px rgba(25,30,40,.07) !important;
  }
  #mobile-search-sheet .mobile-search-history { max-height: calc(100dvh - 260px) !important; padding: 0 2px 30px !important; }
  #mobile-search-sheet .mobile-history-row {
    min-height: 60px !important; margin: 2px 0 !important; padding: 0 4px !important; border: 0 !important; border-radius: 16px !important;
    transition: background 180ms ease, transform 180ms cubic-bezier(.22,1,.36,1) !important;
  }
  #mobile-search-sheet .mobile-history-row:active { background: rgba(225,229,237,.72) !important; transform: scale(.985); }
  #mobile-search-sheet.on .mobile-history-row { animation: qxMobileHistoryIn 360ms cubic-bezier(.22,1,.36,1) both; }
  #mobile-search-sheet.on .mobile-history-row:nth-child(2) { animation-delay: 25ms; }
  #mobile-search-sheet.on .mobile-history-row:nth-child(3) { animation-delay: 50ms; }
  #mobile-search-sheet.on .mobile-history-row:nth-child(4) { animation-delay: 75ms; }
  @keyframes qxMobileHistoryIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
  html[data-theme="dark"] #mobile-search-sheet {
    background: rgba(10,12,16,.96) !important; color: #f5f7fb !important;
  }
  html[data-theme="dark"] #mobile-search-sheet .mobile-search-form,
  html[data-theme="dark"] #mobile-search-sheet .mobile-translate-languages {
    background: rgba(25,28,35,.92) !important; border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,.32) !important;
  }
  html[data-theme="dark"] #mobile-search-sheet .mobile-search-field { color:#f6f7fa !important; -webkit-text-fill-color:#f6f7fa !important; }
  html[data-theme="dark"] #mobile-search-sheet .mobile-translate-languages input,
  html[data-theme="dark"] #mobile-search-sheet .mobile-search-quick button { background:#242832 !important; color:#e7eaf0 !important; -webkit-text-fill-color:#e7eaf0 !important; }
  html[data-theme="dark"] #mobile-search-sheet .mobile-history-row:active { background:#20242c !important; }
}

/* Refined direct-manipulation mode switch. */
.search-home .home-mode{
  touch-action:pan-y!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  cursor:grab!important;
  padding:4px!important;
  gap:4px!important;
  border:1px solid rgba(35,48,70,.13)!important;
  background:rgba(246,248,252,.88)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(35,48,70,.07)!important;
  backdrop-filter:blur(18px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(160%)!important;
}
.search-home .home-mode:active{cursor:grabbing!important}
.search-home .home-mode-btn,.search-home .home-mode-btn:hover{
  position:relative!important;
  z-index:2!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:color .24s ease,opacity .24s ease,transform .18s ease!important;
}
.search-home .home-mode::before{
  display:block!important;
  content:""!important;
  position:absolute!important;
  z-index:1!important;
  top:4px!important;
  bottom:4px!important;
  left:4px!important;
  width:calc(50% - 6px)!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#fff,#edf3ff)!important;
  box-shadow:0 4px 14px rgba(37,75,145,.13),inset 0 0 0 1px rgba(67,107,177,.05)!important;
  transform:translateX(var(--mode-swipe,0px))!important;
  transition:transform .32s cubic-bezier(.22,1,.36,1)!important;
  pointer-events:none!important;
}
body.home-ai.search-home .home-mode::before{transform:translateX(calc(100% + 4px + var(--mode-swipe,0px)))!important}
.search-home .home-mode.is-swiping::before{transition:none!important}
.search-home .home-mode-btn.on,.search-home .home-mode-btn.on:hover{background:transparent!important;color:#075ee8!important;box-shadow:none!important}
[data-theme=dark] .search-home .home-mode{background:rgba(24,27,34,.9)!important;border-color:rgba(255,255,255,.12)!important}
[data-theme=dark] .search-home .home-mode::before{background:linear-gradient(145deg,#343a48,#242936)!important;box-shadow:0 5px 16px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.07)!important}
[data-theme=dark] .search-home .home-mode-btn.on{color:#72a7ff!important}

html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
#bn-account { display: none; }

/* Compact result menu: three vertical dots are clearer than an empty circle. */
.qx-result-stats-btn {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 1px solid #cbe2fb !important;
  border-radius: 50% !important;
  background: #edf6ff !important;
  color: #1976d2 !important;
}
.qx-result-stats-btn span {
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}
.qx-result-stats-btn:hover,
.qx-result-stats.open .qx-result-stats-btn { background: #ddecff !important; color: #0968c3 !important; }
[data-theme="dark"] .qx-result-stats-btn { border-color: rgba(113,183,255,.25) !important; background: rgba(50,132,220,.18) !important; color: #82c1ff !important; }

/* The mode picker is a real touch control first; the selected surface slides
   beneath the two options instead of replacing the complete component. */
.search-home .home-mode {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: min(100%, 390px) !important;
  min-height: 58px !important;
  margin: 0 auto 18px !important;
  padding: 5px !important;
  gap: 5px !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 27, 38, .10) !important;
  border-radius: 999px !important;
  background: rgba(239, 241, 245, .96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(23, 27, 38, .07) !important;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.search-home .home-mode::before {
  content: '' !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 5px !important;
  bottom: 5px !important;
  left: 5px !important;
  width: calc(50% - 7.5px) !important;
  border-radius: 999px !important;
  background: #15171c !important;
  box-shadow: 0 7px 16px rgba(22, 25, 35, .20), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  transform: translateX(var(--mode-swipe, 0px));
  transition: transform var(--qx-smooth) var(--qx-motion), background var(--qx-smooth) var(--qx-motion), box-shadow var(--qx-smooth) var(--qx-motion);
  will-change: transform;
}

body.home-ai.search-home .home-mode::before {
  background: linear-gradient(135deg, var(--qx-ai), var(--qx-ai-2)) !important;
  box-shadow: 0 7px 18px rgba(112, 82, 218, .29), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  transform: translateX(calc(100% + 5px + var(--mode-swipe, 0px)));
}

.search-home .home-mode.is-swiping::before { transition: none; }
.search-home .home-mode-btn,
.search-home .home-mode-btn.on {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #69707e !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color var(--qx-fast) ease, opacity var(--qx-fast) ease !important;
}

.search-home .home-mode-btn.on,
.search-home .home-mode-btn.on:hover,
body.home-ai.search-home .home-mode-btn.on,
body.home-ai.search-home .home-mode-btn.on:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.search-home .hero-srch {
  min-height: 64px;
  padding: 7px 8px 7px 17px !important;
  border-radius: 24px !important;
  transition: border-color var(--qx-smooth) var(--qx-motion), box-shadow var(--qx-smooth) var(--qx-motion), transform var(--qx-fast) var(--qx-motion) !important;
}
.search-home .hero-srch input { min-width: 0; min-height: 48px; font-size: 16px !important; }
.search-home .hero-go { min-width: 52px; min-height: 48px; height: 48px !important; padding: 0 18px !important; border-radius: 18px !important; }

body.home-ai.search-home .hero-srch {
  border-color: rgba(112, 82, 218, .40) !important;
  box-shadow: 0 12px 32px rgba(92, 68, 182, .13), 0 0 0 4px rgba(112, 82, 218, .08) !important;
}
body.home-ai.search-home .hero-srch:focus-within {
  border-color: rgba(112, 82, 218, .68) !important;
  box-shadow: 0 14px 36px rgba(92, 68, 182, .18), 0 0 0 5px rgba(112, 82, 218, .13) !important;
}

/* A short settle animation makes both taps and swipes feel intentional. */
body.mode-changing .hero-mark,
body.mode-changing .hero-srch,
body.mode-changing #qx-mode-suggestions {
  animation: qx-mode-settle 420ms var(--qx-motion) both;
}
@keyframes qx-mode-settle {
  from { opacity: .7; transform: translateY(5px) scale(.992); }
  to { opacity: 1; transform: none; }
}

/* Mobile layout: comfortable targets, no iOS input zoom, predictable bottom spacing. */
@media (max-width: 640px) {
  #hero { justify-content: center; padding: 26px 16px calc(var(--bnav-h) + 30px) !important; }
  .hero-wrap { max-width: 100% !important; }
  .search-home .hero-mark { margin-bottom: 18px !important; }
  .nav-main { min-height: 62px; padding: 0 10px !important; gap: 7px !important; }
  .nav-right { gap: 3px !important; }
  .icon-btn, .acc-btn { width: 42px; height: 42px; }
  .nav-srch { min-height: 46px; height: 46px; padding-left: 12px !important; }
  .nav-srch input { font-size: 16px !important; }
  .tab-btn { min-height: 46px; padding: 0 13px !important; }
  .result-card, .trend-card, .qx-prompt-card { transition-duration: var(--qx-fast) !important; }

  /* Sorted mobile tabs. Account replaces Settings here; desktop is untouched. */
  #bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    position: fixed !important;
    z-index: 900 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body:not(.mobile-search-open) #bottom-nav { display: grid !important; }
  #bottom-nav .bnav { min-width: 0 !important; width: auto !important; }
  #bottom-nav #bn-settings { display: none !important; }
  #bottom-nav #bn-account { display: flex !important; }
  #bottom-nav .bnav-l { overflow: hidden; text-overflow: ellipsis; }

  /* Results use one compact header. The account lives in the dock, so a
     second dark account bar above the search is unnecessary on phones. */
  body:not(.search-home) #topbar .mobile-results-head { display: none !important; }
  body:not(.search-home) #topbar .nav-main {
    min-height: 64px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #eceef2 !important;
  }
  body:not(.search-home) #topbar .nav-srch {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 8px 0 13px !important;
    border: 1px solid #e1e4e9 !important;
    border-radius: 16px !important;
    background: #f8f9fb !important;
    box-shadow: none !important;
  }
  body:not(.search-home) #topbar .nav-go {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 13px !important;
    background: #17181c !important;
  }
  body:not(.search-home) #topbar .nav-tabs {
    display: flex !important;
    gap: 3px !important;
    min-height: 48px !important;
    padding: 5px 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #e9ebef !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  body:not(.search-home) #topbar .tab-btn {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #68707d !important;
    -webkit-text-fill-color: #68707d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  body:not(.search-home) #topbar .tab-btn svg { width: 16px !important; height: 16px !important; }
  body:not(.search-home) #topbar .tab-btn.on {
    background: #eaf3ff !important;
    color: #0878e7 !important;
    -webkit-text-fill-color: #0878e7 !important;
  }
  body:not(.search-home) #topbar .tab-btn { display: none !important; }
  body:not(.search-home) #topbar #tab-web,
  body:not(.search-home) #topbar #tab-ai-mode,
  body:not(.search-home) #topbar #tab-images,
  body:not(.search-home) #topbar #tab-news { display: inline-flex !important; }

  /* Results: each answer is a compact, calm card. The source, title,
     summary and actions now have clear visual levels instead of competing. */
  body:not(.search-home) .results-wrap {
    padding: 12px 14px calc(106px + env(safe-area-inset-bottom)) !important;
    background: #f7f8fa !important;
  }
  body:not(.search-home) .r-meta {
    min-height: 42px !important;
    margin: 0 -2px 10px !important;
    padding: 7px 4px 9px !important;
    border-bottom: 1px solid #e6e9ee !important;
  }
  body:not(.search-home) .r-meta-txt {
    color: #69717d !important;
    font-size: 12px !important;
    letter-spacing: -.01em !important;
  }
  body:not(.search-home) .r-meta-txt strong { color: #292e36 !important; font-weight: 750 !important; }
  body:not(.search-home) .ss-pill {
    min-height: 25px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) {
    position: relative !important;
    margin: 0 0 10px !important;
    padding: 14px 14px 12px !important;
    overflow: hidden !important;
    border: 1px solid #e4e8ee !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(27, 39, 56, .055) !important;
    transition: transform var(--qx-fast) var(--qx-motion), box-shadow var(--qx-fast) var(--qx-motion), border-color var(--qx-fast) var(--qx-motion) !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card):active {
    transform: scale(.985) !important;
    border-color: #c9d9ed !important;
    box-shadow: 0 2px 8px rgba(27, 39, 56, .06) !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-top {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 0 6px !important;
    color: #707884 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-fav {
    width: 17px !important;
    height: 17px !important;
    margin-right: 7px !important;
    padding: 2px !important;
    border: 1px solid #edf0f4 !important;
    border-radius: 5px !important;
    background: #fff !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-site {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-title {
    margin: 0 !important;
    color: #174fae !important;
    font-size: 17px !important;
    font-weight: 760 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-title a { color: inherit !important; text-decoration: none !important; }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-desc {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    color: #606975 !important;
    font-size: 13px !important;
    line-height: 1.47 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-acts {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 35px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid #eef0f3 !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .dom-pill {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 28px !important;
    padding: 0 9px !important;
    overflow: hidden !important;
    border: 1px solid #e8ebf0 !important;
    border-radius: 9px !important;
    background: #f8f9fb !important;
    color: #7b838e !important;
    font-size: 10px !important;
    line-height: 26px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .act-btn {
    display: grid !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #59626e !important;
    -webkit-text-fill-color: #59626e !important;
    box-shadow: none !important;
  }
  body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .act-btn:active {
    background: #edf4ff !important;
    color: #126fd0 !important;
    transform: scale(.9) !important;
  }

  /* Put the verified company answer before ordinary links on phones. */
  .qx-results-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  .qx-results-grid .qx-results-side { order: -1 !important; width: 100% !important; }
  .qx-company {
    position: relative;
    margin: 4px 0 18px !important;
    padding: 17px !important;
    overflow: hidden;
    border: 1px solid rgba(35, 126, 235, .20) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%) !important;
    box-shadow: 0 10px 28px rgba(32, 92, 157, .09) !important;
    animation: qx-profile-in 420ms var(--qx-motion) both;
  }
  .qx-company::before {
    content: '';
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, #1684ee, #62b7ff);
  }
  .qx-company-head { gap: 12px !important; align-items: flex-start !important; }
  .qx-company-logo {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(15, 63, 108, .07);
  }
  .qx-company-logo img { padding: 6px !important; }
  .qx-company-kicker { margin-bottom: 3px; color: #1684ee !important; font-size: 9px !important; letter-spacing: .09em !important; }
  .qx-company h2 { margin: 0 0 4px !important; font-size: 20px !important; line-height: 1.1 !important; }
  .qx-company h2 span { width: 16px !important; height: 16px !important; font-size: 10px !important; }
  .qx-company-head p { color: #606976 !important; font-size: 12px !important; line-height: 1.45 !important; }
  .qx-company-facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 14px !important;
  }
  .qx-company-facts div {
    min-width: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.78) !important;
  }
  .qx-company-facts span { color: #87909c !important; font-size: 9px !important; }
  .qx-company-facts strong { color: #252932 !important; font-size: 12px !important; }
  .qx-company-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: 14px !important; }
  .qx-company-actions a {
    display: grid !important;
    min-height: 40px;
    padding: 0 9px !important;
    place-items: center;
    border-radius: 12px !important;
    text-align: center;
    transition: transform var(--qx-fast) var(--qx-motion), box-shadow var(--qx-fast) var(--qx-motion) !important;
  }
  .qx-company-actions a:first-child { background: #17181c !important; box-shadow: 0 6px 14px rgba(23,24,28,.16); }
  .qx-company-actions a.alt { border-color: #e1e6ed !important; background: #fff !important; color: #3f4650 !important; }
  .qx-company-actions a:active { transform: scale(.97); }
  .qx-company-note { margin-top: 12px !important; padding-top: 10px !important; color: #8a929e !important; font-size: 10px !important; }
  @keyframes qx-profile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* Keep the dock unambiguously above result content and browser-safe areas. */
  body:not(.mobile-search-open) #bottom-nav {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(23, 27, 38, .11) !important;
    box-shadow: 0 12px 32px rgba(18, 23, 34, .18) !important;
  }

  /* Mobile search sheet: one clear input row, actions below, and a soft
     entrance that does not make the app feel like it has changed pages. */
  #mobile-search-sheet,
  html:not([data-theme="dark"]) #mobile-search-sheet {
    display: block !important;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)) !important;
    background: #fcfcfe !important;
    color: #17181c !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(12px);
    transition: opacity 220ms var(--qx-motion), transform 300ms var(--qx-motion), visibility 0s linear 300ms !important;
  }
  #mobile-search-sheet.on,
  html:not([data-theme="dark"]) #mobile-search-sheet.on {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none;
    transition-delay: 0s !important;
  }
  #mobile-search-sheet .mobile-search-form {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px 48px !important;
    grid-template-rows: minmax(50px, auto) 32px !important;
    align-items: center !important;
    column-gap: 5px !important;
    row-gap: 5px !important;
    padding: 0 !important;
  }
  #mobile-search-sheet .mobile-search-plus { grid-column: 1 !important; grid-row: 1 !important; }
  #mobile-search-sheet .mobile-search-field { grid-column: 2 !important; grid-row: 1 !important; }
  #mobile-search-sheet .mobile-search-mic { grid-column: 3 !important; grid-row: 1 !important; }
  #mobile-search-sheet .mobile-search-submit { grid-column: 4 !important; grid-row: 1 !important; }
  #mobile-search-sheet .mobile-search-translate {
    grid-column: 2 / 5 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 88px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border: 1px solid #e2e5ea !important;
    border-radius: 999px !important;
    background: #f5f6f8 !important;
    color: #5f6570 !important;
    -webkit-text-fill-color: #5f6570 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    letter-spacing: .01em !important;
  }
  #mobile-search-sheet .mobile-search-plus,
  #mobile-search-sheet .mobile-search-mic {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #363a43 !important;
    -webkit-text-fill-color: #363a43 !important;
  }
  #mobile-search-sheet .mobile-search-plus:active,
  #mobile-search-sheet .mobile-search-mic:active { background: #f0f1f4 !important; transform: scale(.95); }
  #mobile-search-sheet .mobile-search-field {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 118px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 13px 3px 10px !important;
    resize: none !important;
    overflow: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #17181c !important;
    -webkit-text-fill-color: #17181c !important;
    font: 600 16px/1.35 var(--font, system-ui, sans-serif) !important;
  }
  #mobile-search-sheet .mobile-search-field::placeholder { color: #858b96 !important; -webkit-text-fill-color: #858b96 !important; }
  #mobile-search-sheet .mobile-search-submit {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #17181c !important;
    box-shadow: 0 7px 18px rgba(23, 24, 28, .20) !important;
    transition: transform var(--qx-fast) var(--qx-motion), box-shadow var(--qx-fast) var(--qx-motion) !important;
  }
  #mobile-search-sheet .mobile-search-submit:active { transform: scale(.93) !important; box-shadow: 0 3px 9px rgba(23, 24, 28, .16) !important; }
  #mobile-search-sheet .mobile-search-submit svg { width: 48px !important; height: 48px !important; }
  #mobile-search-sheet .mobile-search-submit .submit-search-ring,
  #mobile-search-sheet .mobile-search-submit .submit-search-handle {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
  }
  #mobile-search-sheet .mobile-search-rule { height: 1px !important; margin: 10px 0 8px !important; background: #e5e7eb !important; }
  #mobile-search-sheet .mobile-search-quick {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 0 10px !important;
  }
  #mobile-search-sheet .mobile-search-quick button {
    min-height: 36px !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #68707c !important;
    -webkit-text-fill-color: #68707c !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  #mobile-search-sheet .mobile-search-quick button:active { background: #f0f1f4 !important; transform: scale(.97); }
  #mobile-search-sheet .mobile-history-row {
    min-height: 62px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eef0f3 !important;
  }
  #mobile-search-sheet .mobile-history-query {
    min-height: 58px !important;
    padding: 10px 6px !important;
    border-radius: 14px !important;
    color: #1f2229 !important;
    -webkit-text-fill-color: #1f2229 !important;
  }
  #mobile-search-sheet .mobile-history-query strong { color: #1f2229 !important; -webkit-text-fill-color: #1f2229 !important; font-size: 14px !important; }
  #mobile-search-sheet .mobile-history-query small,
  #mobile-search-sheet .mobile-history-query span,
  #mobile-search-sheet .mobile-history-remove,
  #mobile-search-sheet .mobile-history-empty { color: #7e8590 !important; -webkit-text-fill-color: #7e8590 !important; }
  #mobile-search-sheet .mobile-history-query:active { background: #f1f3f6 !important; }
  #mobile-search-sheet .mobile-history-remove { width: 42px !important; height: 42px !important; border-radius: 12px !important; }
  #mobile-search-sheet .mobile-history-remove:active { background: #f1f3f6 !important; transform: scale(.94); }
  #mobile-search-sheet .mobile-history-empty { padding: 28px 6px !important; font-size: 14px !important; }
}

/* Larger screens keep the same interaction model, simply with more breathing room. */
@media (min-width: 641px) {
  .search-home .home-mode { width: min(100%, 430px) !important; min-height: 64px !important; padding: 6px !important; }
  .search-home .home-mode::before { top: 6px !important; bottom: 6px !important; left: 6px !important; width: calc(50% - 9px) !important; }
  body.home-ai.search-home .home-mode::before { transform: translateX(calc(100% + 6px + var(--mode-swipe, 0px))); }
  .search-home .home-mode-btn, .search-home .home-mode-btn.on { height: 52px !important; min-height: 52px !important; font-size: 15px !important; }
  .search-home .hero-srch { border-radius: 28px !important; }
}

/* Tablets are neither a squeezed desktop nor a large phone. Keep the search
   controls compact and give one result column the full reading width. */
@media (min-width: 641px) and (max-width: 1024px) {
  body:not(.search-home) #topbar .nav-main {
    height: 68px !important;
    padding: 0 18px !important;
    gap: 12px !important;
  }
  body:not(.search-home) #topbar .nav-srch {
    height: 50px !important;
    max-width: none !important;
  }
  body:not(.search-home) #topbar .nav-right { gap: 6px !important; }
  body:not(.search-home) #topbar #navSettingsBtn,
  body:not(.search-home) #topbar #themeBtn { display: none !important; }
  body:not(.search-home) #topbar .nav-tabs {
    justify-content: center !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    gap: 3px !important;
  }
  body:not(.search-home) #topbar .tab-btn {
    height: 46px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
  }
  body:not(.search-home) #topbar #tab-lens,
  body:not(.search-home) #topbar #tab-videos,
  body:not(.search-home) #topbar #tab-shopping,
  body:not(.search-home) #topbar #tab-saved,
  body:not(.search-home) #topbar .nav-tabs > .tab-btn:last-child { display: none !important; }

  body:not(.search-home) .results-wrap {
    width: min(100%, 820px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 22px 26px 54px !important;
  }
  body:not(.search-home) #results-pg { min-height: 0 !important; }
  body:not(.search-home) .r-meta {
    max-width: 720px !important;
    min-height: 46px !important;
    margin: 0 auto 14px !important;
    padding: 8px 2px 12px !important;
  }
  body:not(.search-home) #results-list .qx-results-grid {
    display: flex !important;
    flex-direction: column !important;
    width: min(100%, 720px) !important;
    margin: 0 auto !important;
    gap: 16px !important;
  }
  body:not(.search-home) #results-list .qx-results-side {
    position: static !important;
    order: -1 !important;
    width: 100% !important;
  }
  body:not(.search-home) #results-list .qx-results-main { width: 100% !important; }
  body:not(.search-home) #results-list .qx-results-main .result-card {
    margin-bottom: 12px !important;
    padding: 18px 20px !important;
    border-radius: 20px !important;
  }
  body:not(.search-home) #results-list .qx-results-side .qx-company {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 22px !important;
  }
  body:not(.search-home) #results-list .qx-results-side .qx-company-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body:not(.search-home) #results-list > .related-box,
  body:not(.search-home) #results-list > .qx-results-main + .related-box {
    width: min(100%, 720px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  body:not(.search-home) #main-footer {
    margin-top: 12px !important;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom)) !important;
  }
}

[data-theme="dark"] .search-home .home-mode {
  border-color: rgba(255, 255, 255, .10) !important;
  background: #1c1d22 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 9px 26px rgba(0, 0, 0, .26) !important;
}

@media (max-width: 640px) {
  [data-theme="dark"] body:not(.search-home) #topbar .nav-main,
  [data-theme="dark"] body:not(.search-home) #topbar .nav-tabs { background: #15161a !important; border-color: rgba(255,255,255,.08) !important; }
  [data-theme="dark"] body:not(.search-home) #topbar .nav-srch { background: #202126 !important; border-color: rgba(255,255,255,.10) !important; }
  [data-theme="dark"] body:not(.search-home) #topbar .tab-btn { color: #aeb3bd !important; -webkit-text-fill-color: #aeb3bd !important; }
  [data-theme="dark"] body:not(.search-home) #topbar .tab-btn.on { background: rgba(65, 145, 255, .18) !important; color: #7cbcff !important; -webkit-text-fill-color: #7cbcff !important; }
  [data-theme="dark"] body:not(.search-home) .results-wrap { background: #101115 !important; }
  [data-theme="dark"] body:not(.search-home) .r-meta { border-color: rgba(255,255,255,.09) !important; }
  [data-theme="dark"] body:not(.search-home) .r-meta-txt { color: #a8afba !important; }
  [data-theme="dark"] body:not(.search-home) .r-meta-txt strong { color: #f1f3f6 !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) {
    border-color: rgba(255,255,255,.09) !important;
    background: #191a20 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
  }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card):active { border-color: rgba(102,171,255,.54) !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-top { color: #aeb5c0 !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-fav { border-color: rgba(255,255,255,.10) !important; background: #23242b !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-title { color: #7db7ff !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-desc { color: #c1c6cf !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .rc-acts { border-color: rgba(255,255,255,.08) !important; }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .dom-pill {
    border-color: rgba(255,255,255,.09) !important;
    background: #23242b !important;
    color: #aeb5c0 !important;
  }
  [data-theme="dark"] body:not(.search-home) #results-list > .qx-results-main > .result-card:not(.video-card) .act-btn { color: #c6cbd3 !important; -webkit-text-fill-color: #c6cbd3 !important; }
  [data-theme="dark"] body:not(.mobile-search-open) #bottom-nav { background: rgba(27,28,33,.97) !important; border-color: rgba(255,255,255,.10) !important; }
}
[data-theme="dark"] .search-home .home-mode-btn,
[data-theme="dark"] .search-home .home-mode-btn.on { color: #aeb3be !important; }
[data-theme="dark"] .search-home .home-mode-btn.on,
[data-theme="dark"] body.home-ai.search-home .home-mode-btn.on { color: #fff !important; -webkit-text-fill-color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.search-home .home-mode{position:relative!important;touch-action:pan-y!important;user-select:none!important;-webkit-user-select:none!important;cursor:grab!important;background:rgba(246,248,252,.9)!important;border:1px solid rgba(35,48,70,.13)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(35,48,70,.07)!important;backdrop-filter:blur(18px) saturate(160%)!important;-webkit-backdrop-filter:blur(18px) saturate(160%)!important}
.search-home .home-mode:active{cursor:grabbing!important}
.search-home .home-mode-btn,.search-home .home-mode-btn:hover,.search-home .home-mode-btn.on,.search-home .home-mode-btn.on:hover{position:relative!important;z-index:2!important;background:transparent!important;box-shadow:none!important;transition:color .24s ease,opacity .24s ease!important}
.search-home .home-mode::before{display:block!important;content:""!important;position:absolute!important;z-index:1!important;top:4px!important;bottom:4px!important;left:4px!important;width:calc(50% - 6px)!important;border-radius:999px!important;background:linear-gradient(145deg,#fff,#edf3ff)!important;box-shadow:0 4px 14px rgba(37,75,145,.13),inset 0 0 0 1px rgba(67,107,177,.05)!important;transform:translateX(var(--mode-swipe,0px))!important;transition:transform .32s cubic-bezier(.22,1,.36,1)!important;pointer-events:none!important}
body.home-ai.search-home .home-mode::before{transform:translateX(calc(100% + 4px + var(--mode-swipe,0px)))!important}
.search-home .home-mode.is-swiping::before{transition:none!important}
.search-home .home-mode-btn.on,.search-home .home-mode-btn.on:hover{color:#075ee8!important;-webkit-text-fill-color:#075ee8!important}
[data-theme=dark] .search-home .home-mode{background:rgba(24,27,34,.9)!important;border-color:rgba(255,255,255,.12)!important}
[data-theme=dark] .search-home .home-mode::before{background:linear-gradient(145deg,#343a48,#242936)!important;box-shadow:0 5px 16px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.07)!important}
[data-theme=dark] .search-home .home-mode-btn.on{color:#72a7ff!important;-webkit-text-fill-color:#72a7ff!important}

/* 2026 interaction polish */
:root{--qx-fluid:cubic-bezier(.2,.8,.2,1);--qx-spring:cubic-bezier(.16,1,.3,1)}
html{scroll-behavior:smooth}
body{transition:background-color .5s var(--qx-fluid),color .35s var(--qx-fluid)!important}
#hero,.results-wrap,.settings-panel,.lens-panel,.login-sheet,.acc-pop{transition:opacity .35s var(--qx-fluid),transform .45s var(--qx-spring),background-color .4s var(--qx-fluid)!important}
.hero-srch,.nav-srch,.result-card,.ai-card,.qx-company,.related-box,.smart-answer{transition:transform .3s var(--qx-spring),box-shadow .35s var(--qx-fluid),border-color .3s var(--qx-fluid),background-color .35s var(--qx-fluid)!important}
.hero-srch:focus-within,.nav-srch:focus-within{transform:translateY(-2px)!important;box-shadow:0 18px 48px rgba(25,55,105,.12),0 0 0 4px rgba(0,113,227,.07)!important}
.result-card:hover,.qx-company:hover,.related-box:hover,.smart-answer:hover{transform:translateY(-3px)!important;box-shadow:0 16px 42px rgba(31,45,72,.10)!important}
.act-btn,.icon-btn,.mic-btn,.nav-go,.tab-btn,.bnav,.chip,.filter-btn,.smart-map-btn{transition:transform .22s var(--qx-spring),opacity .22s ease,color .22s ease,background-color .25s ease,box-shadow .28s ease!important}
.act-btn:hover,.icon-btn:hover,.mic-btn:hover,.tab-btn:hover,.chip:hover,.filter-btn:hover,.smart-map-btn:hover{transform:translateY(-1px) scale(1.025)!important}
.act-btn:active,.icon-btn:active,.mic-btn:active,.nav-go:active,.tab-btn:active,.bnav:active,.chip:active,.filter-btn:active,.smart-map-btn:active{transform:scale(.95)!important;transition-duration:.09s!important}
.search-home .home-mode::before{transition:transform .42s var(--qx-spring),background .3s ease,box-shadow .3s ease!important}
.search-home .home-mode.is-swiping::before{transition:none!important;box-shadow:0 7px 20px rgba(37,75,145,.18),inset 0 0 0 1px rgba(67,107,177,.08)!important}
.search-home .home-mode.is-swiping{transform:scale(.995)}
.search-home .home-mode-btn{letter-spacing:-.01em!important}
.ai-card,.qx-company,.smart-answer{backdrop-filter:blur(22px) saturate(155%);-webkit-backdrop-filter:blur(22px) saturate(155%)}
@media(max-width:640px){.result-card:hover,.qx-company:hover,.related-box:hover,.smart-answer:hover{transform:none!important}.hero-srch:focus-within,.nav-srch:focus-within{transform:none!important}.results-wrap{padding-left:14px!important;padding-right:14px!important}}

/* Complete reversible dark theme */
[data-theme=dark],[data-theme=dark] body,[data-theme=dark] #main-content,[data-theme=dark] #hero,[data-theme=dark] #results-pg,[data-theme=dark] .results-wrap{background:#090a0d!important;color:#fff!important}
[data-theme=dark] #topbar,[data-theme=dark] #bottom-nav,[data-theme=dark] #main-footer,[data-theme=dark] .settings-panel,[data-theme=dark] .lens-panel,[data-theme=dark] .login-sheet,[data-theme=dark] .acc-pop,[data-theme=dark] #shortcuts-panel .sc-card,[data-theme=dark] #mobile-search-sheet{background:#111318!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important}
[data-theme=dark] .result-card,[data-theme=dark] .ai-card,[data-theme=dark] .qx-company,[data-theme=dark] .related-box,[data-theme=dark] .smart-answer,[data-theme=dark] .state-card,[data-theme=dark] .sp-section,[data-theme=dark] .sp-about,[data-theme=dark] .pop-stat,[data-theme=dark] .field-inp,[data-theme=dark] .hist-srch,[data-theme=dark] .mobile-translation-result{background:#17191f!important;color:#fff!important;border-color:rgba(255,255,255,.11)!important;box-shadow:none!important}
[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] h4,[data-theme=dark] p,[data-theme=dark] span,[data-theme=dark] strong,[data-theme=dark] label,[data-theme=dark] a,[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select,[data-theme=dark] .rc-title,[data-theme=dark] .rc-title a,[data-theme=dark] .rc-desc,[data-theme=dark] .sp-title,[data-theme=dark] .sp-row-lbl,[data-theme=dark] .sp-row-sub,[data-theme=dark] .mobile-history-query,[data-theme=dark] .mobile-history-query strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select,[data-theme=dark] #mobile-search-sheet .mobile-translate-languages input{background:#1b1e25!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:rgba(255,255,255,.14)!important}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#9da3ae!important;-webkit-text-fill-color:#9da3ae!important}
[data-theme=dark] .hero-srch,[data-theme=dark] .nav-srch{background:#15171c!important;border-color:rgba(255,255,255,.14)!important}
[data-theme=dark] .amb{opacity:.3!important}
[data-theme=light],[data-theme=light] body{color-scheme:light}
[data-theme=dark]{color-scheme:dark}

/* Google Trends is the only home trend source. */
body.search-home #hero .trend-wrap{display:block!important;width:min(760px,100%)!important;margin:24px auto 0!important}
body.search-home #hero .trends-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.search-home #hero .trend-card{cursor:pointer!important;text-decoration:none!important}
@media(max-width:640px){body.search-home #hero .trend-wrap{margin-top:18px!important}body.search-home #hero .trends-grid{grid-template-columns:1fr!important;max-height:210px!important;overflow:auto!important;scrollbar-width:none!important}}

/* Strict light/dark separation; prevents mixed-colour states. */
html[data-theme=light],html[data-theme=light] body,html[data-theme=light] #main-content,html[data-theme=light] #hero,html[data-theme=light] #results-pg,html[data-theme=light] .results-wrap{background:#fff!important;color:#111318!important}
html[data-theme=light] .hero-srch,html[data-theme=light] .nav-srch,html[data-theme=light] .hero-srch input,html[data-theme=light] .nav-srch input{background:#fff!important;color:#111318!important;-webkit-text-fill-color:#111318!important}
html[data-theme=light] .hero-srch input::placeholder,html[data-theme=light] .nav-srch input::placeholder{color:#747983!important;-webkit-text-fill-color:#747983!important}
html[data-theme=light] .search-home .home-mode{background:#f3f5f8!important;border-color:#dce1e8!important}
html[data-theme=light] .search-home .home-mode-btn{color:#68707c!important;-webkit-text-fill-color:#68707c!important}
html[data-theme=light] .search-home .home-mode-btn.on{color:#075ee8!important;-webkit-text-fill-color:#075ee8!important}
html[data-theme=light] #topbar,html[data-theme=light] #bottom-nav,html[data-theme=light] #main-footer,html[data-theme=light] .settings-panel,html[data-theme=light] .lens-panel,html[data-theme=light] .login-sheet,html[data-theme=light] .acc-pop{background:#fff!important;color:#111318!important}
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] #main-content,html[data-theme=dark] #hero,html[data-theme=dark] #results-pg,html[data-theme=dark] .results-wrap{background:#090a0d!important;color:#fff!important}
html[data-theme=dark] .hero-srch,html[data-theme=dark] .nav-srch,html[data-theme=dark] .hero-srch input,html[data-theme=dark] .nav-srch input{background:#15171c!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] .hero-srch input::placeholder,html[data-theme=dark] .nav-srch input::placeholder{color:#a3a8b2!important;-webkit-text-fill-color:#a3a8b2!important}
html[data-theme=dark] .search-home .home-mode-btn{color:#aeb4bf!important;-webkit-text-fill-color:#aeb4bf!important}
html[data-theme=dark] .search-home .home-mode-btn.on{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* High-specificity theme repair for legacy home rules. */
html[data-theme=dark] body.search-home #topbar,html[data-theme=dark] body #topbar{background:#0d0f13!important;border-color:rgba(255,255,255,.10)!important}
html[data-theme=dark] body.search-home #hero .hero-mark::after{color:#f7f8fb!important;-webkit-text-fill-color:#f7f8fb!important}
html[data-theme=dark] body.search-home #hero .hero-srch,html[data-theme=dark] body.search-home #hero .hero-srch:hover,html[data-theme=dark] body.search-home #hero .hero-srch:focus-within{background:#17191f!important;border-color:rgba(255,255,255,.14)!important;box-shadow:0 10px 30px rgba(0,0,0,.32)!important}
html[data-theme=dark] body.search-home #hero .hero-srch input{background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] body.search-home #hero .hero-srch button{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] body.search-home #hero .home-mode{background:#17191f!important;border-color:rgba(255,255,255,.14)!important}
html[data-theme=dark] body.search-home #hero .home-mode::before{background:#292d36!important;box-shadow:0 5px 16px rgba(0,0,0,.35)!important}
html[data-theme=dark] body.search-home #hero .home-mode-btn,html[data-theme=dark] body.search-home #hero .home-mode-btn:hover{background:transparent!important;color:#aeb4bf!important;-webkit-text-fill-color:#aeb4bf!important}
html[data-theme=dark] body.search-home #hero .home-mode-btn.on,html[data-theme=dark] body.search-home #hero .home-mode-btn.on:hover{background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=dark] body.search-home #hero .trend-card{background:#151820!important;border-color:rgba(255,255,255,.11)!important;color:#fff!important}
html[data-theme=dark] body.search-home #hero .trend-card *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme=light] body.search-home #hero .hero-mark::after{color:#202124!important;-webkit-text-fill-color:#202124!important}
html[data-theme=light] body.search-home #hero .hero-srch,html[data-theme=light] body.search-home #hero .hero-srch:hover,html[data-theme=light] body.search-home #hero .hero-srch:focus-within{background:#fff!important;border-color:#dfe1e5!important}
html[data-theme=light] body.search-home #hero .hero-srch input{background:transparent!important;color:#202124!important;-webkit-text-fill-color:#202124!important}
