/* STOCKDIVAR_RESPONSIVE_HEADER_THEME_V776 */

/* Explicit user choice must override the device color-scheme. */
html[data-theme="light"] {
  color-scheme: light;
  --sd-app-bg-v772: #ffffff;
  --sd-app-text-v772: #172033;
  --sd-app-muted-v772: #667085;
  --sd-app-line-v772: #e4e7ec;
  --sd-app-shadow-v772: 0 -10px 30px rgba(15, 23, 42, .10);
  --sd-theme-control-bg-v776: #ffffff;
  --sd-theme-control-hover-v776: #f6f7f9;
  --sd-theme-control-icon-v776: #566074;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sd-app-bg-v772: #111827;
  --sd-app-text-v772: #f8fafc;
  --sd-app-muted-v772: #a8b1bf;
  --sd-app-line-v772: #2b3545;
  --sd-app-shadow-v772: 0 -12px 34px rgba(0, 0, 0, .32);
  --sd-theme-control-bg-v776: #182130;
  --sd-theme-control-hover-v776: #202b3d;
  --sd-theme-control-icon-v776: #f8c95c;
}

.sd-mobile-actions-v776,
.sd-mobile-theme-v776 {
  display: none;
}

@media (max-width: 900px) {
  .sd-mobile-header-row-v772 {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .sd-mobile-actions-v776 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .sd-mobile-theme-v776 {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sd-app-line-v772);
    border-radius: 14px;
    background: var(--sd-theme-control-bg-v776, var(--sd-app-bg-v772));
    color: var(--sd-theme-control-icon-v776, var(--sd-app-text-v772));
    box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, color .18s ease,
      border-color .18s ease, transform .18s ease;
  }

  .sd-mobile-theme-v776:active {
    transform: scale(.94);
  }

  .sd-mobile-theme-v776:hover {
    background: var(--sd-theme-control-hover-v776, var(--sd-app-bg-v772));
  }

  .sd-mobile-theme-v776 svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sd-mobile-theme-sun-v776 {
    display: none;
  }

  html[data-theme="dark"] .sd-mobile-theme-moon-v776 {
    display: none;
  }

  html[data-theme="dark"] .sd-mobile-theme-sun-v776 {
    display: block;
  }

  html[data-theme="dark"] .sd-mobile-header-v772,
  html[data-theme="dark"] .sd-bottom-nav-v772 {
    background: color-mix(in srgb, #111827 95%, transparent) !important;
  }

  html[data-theme="dark"] .sd-mobile-search-v772,
  html[data-theme="dark"] .sd-mobile-back-v772,
  html[data-theme="dark"] .sd-mobile-account-v772,
  html[data-theme="dark"] .sd-mobile-logo-v772 {
    background: #182130 !important;
  }

  html[data-theme="light"] .sd-mobile-header-v772,
  html[data-theme="light"] .sd-bottom-nav-v772 {
    background: color-mix(in srgb, #ffffff 95%, transparent) !important;
  }

  html[data-theme="light"] .sd-mobile-search-v772 {
    background: #f7f8fa !important;
  }

  html[data-theme="light"] .sd-mobile-back-v772,
  html[data-theme="light"] .sd-mobile-account-v772,
  html[data-theme="light"] .sd-mobile-logo-v772 {
    background: #ffffff !important;
  }

  .sd-mobile-theme-v776:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(167, 25, 40, .14);
  }
}

/* Native app keeps the responsive header even on wider WebViews. */
html.sd-native-app-v772 .sd-mobile-actions-v776 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

html.sd-native-app-v772 .sd-mobile-theme-v776 {
  display: grid;
}

@media (max-width: 360px) {
  .sd-mobile-header-row-v772 {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }

  .sd-mobile-back-v772,
  .sd-mobile-account-v772,
  .sd-mobile-theme-v776 {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 12px !important;
  }

  .sd-mobile-actions-v776 {
    gap: 4px;
  }

  .sd-mobile-brand-v772 {
    gap: 6px !important;
  }

  .sd-mobile-logo-v772 {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .sd-mobile-brand-v772 strong {
    font-size: 15px !important;
  }

  .sd-mobile-brand-v772 small {
    font-size: 9px !important;
  }
}
