/* Ngeblogging collapsed sidebar precision authority v122.
   Desktop/laptop/large-device goals:
   - Pengaturan and Keluar use the exact 48 x 44 centered geometry used by
     collapsed workspace navigation rows.
   - Their visible fallback icons remain independent from legacy SVG hiding.
   - Domain never gains a separator, outline, border card, or pseudo decoration.
   Mobile/app drawer presentation is intentionally untouched. */
:root {
  --sidebar-account-collapsed-icons-v122: 1;
}

@media (min-width: 761px) {
  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    background: #fff !important;
    transform: none !important;
  }

  /* Match .sn-side.collapsed > nav > button exactly: 48 x 44, margin auto. */
  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    .sn-account-logout-v88,
    [data-account-action="settings"],
    [data-account-action="logout"]
  ) {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    place-items: center !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 2px auto !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transform: none !important;
    background-image: none !important;
  }

  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    [data-account-action="settings"]
  ) {
    border: 0 !important;
    background-color: #f7f9fc !important;
    color: #52647c !important;
    box-shadow: none !important;
  }

  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-logout-v88,
    [data-account-action="logout"]
  ) {
    border: 0 !important;
    background-color: #fff2f3 !important;
    color: #a23c49 !important;
    box-shadow: none !important;
  }

  /* Dedicated centered flex-independent icons survive legacy direct-SVG rules. */
  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    .sn-account-logout-v88,
    [data-account-action="settings"],
    [data-account-action="logout"]
  )::before {
    content: "" !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    place-self: center !important;
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 17px 17px !important;
    transform: none !important;
    filter: none !important;
    pointer-events: none !important;
  }

  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    [data-account-action="settings"]
  )::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2352647c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  }

  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-logout-v88,
    [data-account-action="logout"]
  )::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a23c49' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3C/svg%3E") !important;
  }

  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    .sn-account-logout-v88,
    [data-account-action="settings"],
    [data-account-action="logout"]
  ) > svg,
  html body #root .sn-shell > .sn-side.collapsed > .sn-account-footer > button:is(
    .sn-account-settings-v88,
    .sn-account-logout-v88,
    [data-account-action="settings"],
    [data-account-action="logout"]
  ) > span {
    position: absolute !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Domain is always part of the workspace list, never a separated card. */
  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ) {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ):not(.active),
  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ):not(.active):hover,
  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ):not(.active):focus,
  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ):not(.active):focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  ) > svg {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  )::before,
  html body #root .sn-shell > .sn-side > nav > button:is(
    [data-sidebar-domain-order-v113="true"],
    [data-sidebar-domain-v91="true"],
    [data-sidebar-domain-alignment-v115="true"],
    :last-child
  )::after {
    content: none !important;
    display: none !important;
  }
}
