/* Perfil principal desktop: bordas somente nas laterais; cards sem linhas internas. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px 26px 36px !important;
    border-top: 0 !important;
    border-right: 1px solid #e3e3e3 !important;
    border-bottom: 0 !important;
    border-left: 1px solid #e3e3e3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-account-card,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .profile-menu.sd-profile-menu,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-logout {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .profile-menu.sd-profile-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item:hover,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item:focus {
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-menu-item::after,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .profile-menu.sd-profile-menu::before,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .profile-menu.sd-profile-menu::after {
    content: none !important;
    display: none !important;
  }

  /* Correção isolada no desktop: cartões de 80px e ícones locais,
     sem depender da pasta assets ausente no pacote recebido. */
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary {
    --sd-summary-border: #e3e3e3;
    --sd-summary-icon: #000000;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 8px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-card {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding: 10px 8px !important;
    border: 1px solid var(--sd-summary-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-divider {
    display: none !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: var(--sd-summary-icon) !important;
    background: transparent !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-icon img {
    display: block !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-icon::after {
    content: none !important;
    display: none !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-spark::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9Z'/%3E%3C/svg%3E") !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-copy {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-copy > span,
  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-copy > small {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-copy > strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-copy > strong > small {
    font-size: 14px !important;
    line-height: inherit !important;
  }

  html body.sd-desktop #overlay.sd-profile-overlay:has(.sd-profile-screen) > .drawer.profile-drawer:has(.sd-profile-screen) .sd-profile-screen .sd-profile-summary-arrow {
    flex: 0 0 6px !important;
    width: 6px !important;
    margin: 0 !important;
  }
}
