/* Desktop header refinement: replace the temporary 3-dot menu with direct theme + profile icons. */
@media (min-width: 761px) {
  .a2t-desktop-more,
  [data-desktop-more] {
    display: none !important;
  }

  .a2t-nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
  }

  .a2t-desktop-theme-toggle,
  .a2t-desktop-profile-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid var(--a2t-line, #dbe4f0) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--a2t-text, #071121) !important;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
  }

  .a2t-desktop-theme-toggle:hover,
  .a2t-desktop-profile-icon:hover,
  .a2t-desktop-theme-toggle:focus-visible,
  .a2t-desktop-profile-icon:focus-visible {
    transform: translateY(-1px) !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14) !important;
    outline: none !important;
  }

  .a2t-desktop-profile-icon span {
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: #071121 !important;
    color: #ffffff !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .a2t-desktop-profile-icon i,
  .a2t-desktop-theme-toggle i {
    font-size: 1.02rem !important;
    line-height: 1 !important;
  }

  .a2t-mobile-theme-toggle {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .a2t-desktop-theme-toggle,
  .a2t-desktop-profile-icon {
    display: none !important;
  }

  .a2t-mobile-theme-toggle {
    display: inline-grid !important;
  }
}

html[data-theme="dark"] .a2t-desktop-theme-toggle,
html[data-theme="dark"] .a2t-desktop-profile-icon,
body.dark-mode .a2t-desktop-theme-toggle,
body.dark-mode .a2t-desktop-profile-icon,
body.dark .a2t-desktop-theme-toggle,
body.dark .a2t-desktop-profile-icon {
  background: rgba(10, 16, 28, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #eef5ff !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .a2t-desktop-profile-icon span,
body.dark-mode .a2t-desktop-profile-icon span,
body.dark .a2t-desktop-profile-icon span {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .a2t-desktop-theme-toggle:hover,
html[data-theme="dark"] .a2t-desktop-profile-icon:hover,
body.dark-mode .a2t-desktop-theme-toggle:hover,
body.dark-mode .a2t-desktop-profile-icon:hover,
body.dark .a2t-desktop-theme-toggle:hover,
body.dark .a2t-desktop-profile-icon:hover {
  background: #0f172a !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
}
