/* Shared mobile layout for the account modal on the boats, news and auction pages. */
@media (max-width: 720px) {
  #accountModal,
  #accountModal *,
  .account-section-modal,
  .account-section-modal * {
    box-sizing: border-box;
  }

  #accountModal.modal,
  #accountModal.modal.open {
    inset: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #accountModal .account-box,
  #accountModal > .sheet {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #accountModal .auction-notif-head,
  #accountModal .sheet-head,
  .account-section-modal .auction-notif-head,
  .account-section-modal .sheet-head {
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
    flex: 0 0 auto !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px !important;
    border-radius: 0 !important;
  }

  #accountModal .auction-notif-head > div {
    min-width: 0;
  }

  .account-section-modal .auction-notif-head {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  .account-section-modal .auction-notif-title,
  .account-section-modal .sheet-head b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #accountModal #accountSummary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #accountModal #accountClose,
  #accountModal .sheet-head .icon-btn,
  .account-section-modal [data-account-section-close],
  .account-section-modal .sheet-head .icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    margin-left: auto !important;
  }

  #accountModal .account-body,
  #accountModal .sheet-body {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    scrollbar-gutter: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #accountModal .account-panel,
  #accountModal .account-user-row,
  #accountModal .account-request-row,
  #accountModal .account-key-row,
  #accountModal .account-section-body {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }

  #accountModal .account-panel,
  #accountModal .account-form,
  #accountModal .account-list,
  #accountModal .account-actions,
  #accountModal .account-rating-summary,
  #accountModal .account-rating-grid,
  #accountModal .account-section-grid,
  #accountModal .account-toggle-grid,
  #accountModal .account-key-create,
  #accountModal .account-user-row,
  #accountModal .account-request-row,
  #accountModal .account-key-row {
    width: 100% !important;
    max-width: 100% !important;
  }

  #accountModal code,
  #accountModal pre,
  #accountModal a,
  #accountModal span,
  #accountModal b,
  #accountModal small {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #accountModal table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #accountModal .account-form,
  #accountModal .account-rating-summary,
  #accountModal .account-rating-grid,
  #accountModal .account-section-grid,
  #accountModal .account-toggle-grid,
  #accountModal .account-user-row,
  #accountModal .account-request-row,
  #accountModal .account-key-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #accountModal input,
  #accountModal select,
  #accountModal textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  #accountModal .account-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  #accountModal .account-actions .btn,
  #accountModal .account-section-open {
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    white-space: normal !important;
  }

  #accountModal .account-section-open::after {
    flex: 0 1 auto;
    min-width: 0;
  }

  .account-section-modal.modal,
  .account-section-modal.modal.open {
    inset: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .account-section-modal .account-section-box,
  .account-section-modal > .sheet {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
  }

  .account-section-modal-body,
  .account-section-modal > .sheet > .sheet-body {
    flex: 1 1 auto !important;
    display: grid !important;
    align-content: start !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .account-section-modal .account-panel,
  .account-section-modal .account-form,
  .account-section-modal .account-list,
  .account-section-modal .account-actions,
  .account-section-modal .account-rating-summary,
  .account-section-modal .account-rating-grid,
  .account-section-modal .account-section-grid,
  .account-section-modal .account-toggle-grid,
  .account-section-modal .account-key-create,
  .account-section-modal .account-user-row,
  .account-section-modal .account-request-row,
  .account-section-modal .account-key-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .account-section-modal .account-panel {
    align-self: start !important;
    align-content: start !important;
    min-height: 0 !important;
    gap: 10px !important;
  }

  .account-section-modal .account-form,
  .account-section-modal .account-rating-summary,
  .account-section-modal .account-rating-grid,
  .account-section-modal .account-section-grid,
  .account-section-modal .account-toggle-grid,
  .account-section-modal .account-key-create,
  .account-section-modal .account-user-row,
  .account-section-modal .account-request-row,
  .account-section-modal .account-key-row {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
  }

  .account-section-modal .account-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .account-section-modal input,
  .account-section-modal select,
  .account-section-modal textarea,
  .account-section-modal .account-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .account-section-modal input,
  .account-section-modal select,
  .account-section-modal textarea {
    font-size: 16px !important;
  }

  .account-section-modal .account-toggle-row {
    min-height: 44px !important;
    height: auto !important;
    align-items: center !important;
    padding: 9px 10px !important;
  }

  .account-section-modal .account-toggle-row input {
    margin-top: 0 !important;
  }

  .account-section-modal .account-key-create {
    gap: 7px !important;
  }

  .account-section-modal .archive-empty,
  .account-section-modal .empty {
    min-height: auto !important;
    padding: 14px !important;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  #accountModal .auction-notif-head,
  #accountModal .sheet-head {
    min-height: calc(48px + env(safe-area-inset-top, 0px)) !important;
    padding-top: calc(4px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 4px !important;
  }
}

/* Installed iOS/Android PWA: keep the dialog below system UI and above the fixed footer. */
@media (display-mode: standalone) and (max-width: 720px) {
  html body #accountModal.modal,
  html body #accountModal.modal.open {
    --account-modal-safe-top: var(--efuel-safe-top, env(safe-area-inset-top, 0px));
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding:
      var(--account-modal-safe-top)
      max(var(--efuel-safe-right, env(safe-area-inset-right, 0px)), 0px)
      max(var(--efuel-safe-bottom, env(safe-area-inset-bottom, 0px)), 20px)
      max(var(--efuel-safe-left, env(safe-area-inset-left, 0px)), 0px) !important;
    z-index: 1000 !important;
  }

  html body #accountModal.modal.open > .sheet,
  html body #accountModal.modal.open > .account-box {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }

  html body #accountModal .auction-notif-head,
  html body #accountModal .sheet-head {
    min-height: 56px !important;
    padding: 8px 12px !important;
  }

  html body .account-section-modal {
    z-index: 1010 !important;
  }

  html body .account-section-modal.modal,
  html body .account-section-modal.modal.open {
    --account-modal-safe-top: var(--efuel-safe-top, env(safe-area-inset-top, 0px));
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding:
      var(--account-modal-safe-top)
      max(var(--efuel-safe-right, env(safe-area-inset-right, 0px)), 0px)
      max(var(--efuel-safe-bottom, env(safe-area-inset-bottom, 0px)), 20px)
      max(var(--efuel-safe-left, env(safe-area-inset-left, 0px)), 0px) !important;
  }

  html body .account-section-modal.modal.open > .sheet,
  html body .account-section-modal.modal.open > .account-section-box {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }

  html body .account-section-modal .auction-notif-head,
  html body .account-section-modal .sheet-head {
    min-height: 56px !important;
    padding: 8px 12px !important;
  }

  html body.modal-open .site-footer,
  html body:has(#accountModal.open) .site-footer {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* The JS helper adds this class on iOS, including the first paint before media settles. */
@media (max-width: 720px) {
  html.is-pwa-standalone body #accountModal.modal,
  html.is-pwa-standalone body #accountModal.modal.open {
    --account-modal-safe-top: var(--efuel-safe-top, env(safe-area-inset-top, 0px));
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding:
      var(--account-modal-safe-top)
      max(var(--efuel-safe-right, env(safe-area-inset-right, 0px)), 0px)
      max(var(--efuel-safe-bottom, env(safe-area-inset-bottom, 0px)), 20px)
      max(var(--efuel-safe-left, env(safe-area-inset-left, 0px)), 0px) !important;
    z-index: 1000 !important;
  }

  html.is-pwa-standalone body #accountModal.modal.open > .sheet,
  html.is-pwa-standalone body #accountModal.modal.open > .account-box {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }

  html.is-pwa-standalone body #accountModal .auction-notif-head,
  html.is-pwa-standalone body #accountModal .sheet-head {
    min-height: 56px !important;
    padding: 8px 12px !important;
  }

  html.is-pwa-standalone body .account-section-modal.modal,
  html.is-pwa-standalone body .account-section-modal.modal.open {
    --account-modal-safe-top: var(--efuel-safe-top, env(safe-area-inset-top, 0px));
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding:
      var(--account-modal-safe-top)
      max(var(--efuel-safe-right, env(safe-area-inset-right, 0px)), 0px)
      max(var(--efuel-safe-bottom, env(safe-area-inset-bottom, 0px)), 20px)
      max(var(--efuel-safe-left, env(safe-area-inset-left, 0px)), 0px) !important;
    z-index: 1010 !important;
  }

  html.is-pwa-standalone body .account-section-modal.modal.open > .sheet,
  html.is-pwa-standalone body .account-section-modal.modal.open > .account-section-box {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }

  html.is-pwa-standalone body .account-section-modal .auction-notif-head,
  html.is-pwa-standalone body .account-section-modal .sheet-head {
    min-height: 56px !important;
    padding: 8px 12px !important;
  }

  html.is-pwa-standalone body:has(#accountModal.open) .site-footer {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (display-mode: standalone) and (max-width: 720px) {
  @supports (-webkit-touch-callout: none) {
    html body #accountModal.modal,
    html body #accountModal.modal.open,
    html body .account-section-modal.modal,
    html body .account-section-modal.modal.open {
      --account-modal-safe-top: max(var(--efuel-safe-top, env(safe-area-inset-top, 0px)), 59px);
    }
  }
}

@media (max-width: 720px) {
  @supports (-webkit-touch-callout: none) {
    html.is-pwa-standalone body #accountModal.modal,
    html.is-pwa-standalone body #accountModal.modal.open,
    html.is-pwa-standalone body .account-section-modal.modal,
    html.is-pwa-standalone body .account-section-modal.modal.open {
      --account-modal-safe-top: max(var(--efuel-safe-top, env(safe-area-inset-top, 0px)), 59px);
    }
  }
}

@media (max-width: 720px) {
  body #accountModal .account-user-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body #accountModal .account-user-row > div:first-child {
    min-width: 0 !important;
    padding-right: 6px !important;
  }

  body #accountModal .account-user-row .account-actions {
    display: flex !important;
    grid-template-columns: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 46px !important;
    justify-self: end !important;
    align-self: center !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0 !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle::before {
    inset: 0 !important;
    border-radius: 999px !important;
    background:
      radial-gradient(circle at 13px 50%, rgba(255,255,255,.95) 0 2px, transparent 2.5px),
      linear-gradient(145deg, #991b1b, #ef4444) !important;
    border: 1px solid rgba(248,113,113,.52) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 4px 12px rgba(239,68,68,.2) !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle::after {
    width: 14px !important;
    height: 14px !important;
    left: 2px !important;
    top: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #fff, #dbeafe) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.32) !important;
    transform: translateX(0) !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle.is-active::before {
    background:
      radial-gradient(circle at 33px 50%, rgba(255,255,255,.95) 0 2px, transparent 2.5px),
      linear-gradient(145deg, #15803d, #22c55e) !important;
    border-color: rgba(74,222,128,.58) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 4px 12px rgba(34,197,94,.2) !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle.is-active::after {
    transform: translateX(28px) !important;
  }
}

body.account-switch-mobile #accountModal .account-user-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
}

body.account-switch-mobile #accountModal .account-user-row > div:first-child {
  min-width: 0 !important;
  padding-right: 6px !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions {
  display: flex !important;
  grid-template-columns: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 46px !important;
  justify-self: end !important;
  align-self: center !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions .account-status-toggle {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions .account-status-toggle::before {
  inset: 0 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 13px 50%, rgba(255,255,255,.95) 0 2px, transparent 2.5px),
    linear-gradient(145deg, #991b1b, #ef4444) !important;
  border: 1px solid rgba(248,113,113,.52) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 4px 12px rgba(239,68,68,.2) !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions .account-status-toggle::after {
  width: 14px !important;
  height: 14px !important;
  left: 2px !important;
  top: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #fff, #dbeafe) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.32) !important;
  transform: translateX(0) !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions .account-status-toggle.is-active::before {
  background:
    radial-gradient(circle at 33px 50%, rgba(255,255,255,.95) 0 2px, transparent 2.5px),
    linear-gradient(145deg, #15803d, #22c55e) !important;
  border-color: rgba(74,222,128,.58) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 4px 12px rgba(34,197,94,.2) !important;
}

body.account-switch-mobile #accountModal .account-user-row .account-actions .account-status-toggle.is-active::after {
  transform: translateX(28px) !important;
}

@media (max-width: 720px) and (orientation: portrait) {
  body #accountModal .account-user-row {
    display: block !important;
    position: relative !important;
    min-height: 86px !important;
    padding-right: 38px !important;
  }

  body #accountModal .account-user-row > div:first-child {
    min-width: 0 !important;
    padding-right: 0 !important;
  }

  body #accountModal .account-user-row .account-actions {
    position: absolute !important;
    top: 18px !important;
    right: 4px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    justify-content: flex-end !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    flex-basis: 24px !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle::before {
    background:
      radial-gradient(circle at 7px 50%, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
      linear-gradient(145deg, #991b1b, #ef4444) !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle::after {
    width: 7px !important;
    height: 7px !important;
    left: 1px !important;
    top: 1px !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle.is-active::after {
    transform: translateX(15px) !important;
  }

  body #accountModal .account-user-row .account-actions .account-status-toggle.is-active::before {
    background:
      radial-gradient(circle at 17px 50%, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
      linear-gradient(145deg, #15803d, #22c55e) !important;
  }
}

body.account-switch-portrait #accountModal .account-user-row {
  display: block !important;
  position: relative !important;
  min-height: 86px !important;
  padding-right: 38px !important;
}

body.account-switch-portrait #accountModal .account-user-row > div:first-child {
  min-width: 0 !important;
  padding-right: 0 !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions {
  position: absolute !important;
  top: 18px !important;
  right: 4px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  justify-content: flex-end !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions .account-status-toggle {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 9px !important;
  min-height: 9px !important;
  max-height: 9px !important;
  flex-basis: 24px !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions .account-status-toggle::before {
  background:
    radial-gradient(circle at 7px 50%, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
    linear-gradient(145deg, #991b1b, #ef4444) !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions .account-status-toggle::after {
  width: 7px !important;
  height: 7px !important;
  left: 1px !important;
  top: 1px !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions .account-status-toggle.is-active::after {
  transform: translateX(15px) !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-actions .account-status-toggle.is-active::before {
  background:
    radial-gradient(circle at 17px 50%, rgba(255,255,255,.95) 0 1px, transparent 1.4px),
    linear-gradient(145deg, #15803d, #22c55e) !important;
}

@media (max-width: 720px) and (orientation: portrait) {
  body #accountModal .account-user-row,
  body .account-section-modal .account-user-row {
    display: block !important;
    position: relative !important;
    min-height: 78px !important;
    padding: 12px 58px 12px 12px !important;
  }

  body #accountModal .account-user-row > div:first-child,
  body .account-section-modal .account-user-row > div:first-child {
    min-width: 0 !important;
    padding-right: 0 !important;
  }

  body #accountModal .account-user-row .account-status-action,
  body .account-section-modal .account-user-row .account-status-action {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }

  body #accountModal .account-user-row .account-status-action .account-status-toggle,
  body .account-section-modal .account-user-row .account-status-action .account-status-toggle {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    flex: 0 0 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
  }

  body #accountModal .account-user-row .account-status-action .account-status-toggle::before,
  body .account-section-modal .account-user-row .account-status-action .account-status-toggle::before {
    inset: 0 !important;
    border-radius: 999px !important;
    background:
      radial-gradient(circle at 10px 50%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
      linear-gradient(145deg, #991b1b, #ef4444) !important;
    border: 1px solid rgba(248,113,113,.52) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 3px 9px rgba(239,68,68,.18) !important;
  }

  body #accountModal .account-user-row .account-status-action .account-status-toggle::after,
  body .account-section-modal .account-user-row .account-status-action .account-status-toggle::after {
    width: 12px !important;
    height: 12px !important;
    left: 2px !important;
    top: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #fff, #dbeafe) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,.28) !important;
    transform: translateX(0) !important;
  }

  body #accountModal .account-user-row .account-status-action .account-status-toggle.is-active::before,
  body .account-section-modal .account-user-row .account-status-action .account-status-toggle.is-active::before {
    background:
      radial-gradient(circle at 24px 50%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
      linear-gradient(145deg, #15803d, #22c55e) !important;
    border-color: rgba(74,222,128,.58) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 3px 9px rgba(34,197,94,.18) !important;
  }

  body #accountModal .account-user-row .account-status-action .account-status-toggle.is-active::after,
  body .account-section-modal .account-user-row .account-status-action .account-status-toggle.is-active::after {
    transform: translateX(18px) !important;
  }
}

body.account-switch-portrait #accountModal .account-user-row,
body.account-switch-portrait .account-section-modal .account-user-row {
  display: block !important;
  position: relative !important;
  min-height: 78px !important;
  padding: 12px 58px 12px 12px !important;
}

body.account-switch-portrait #accountModal .account-user-row > div:first-child,
body.account-switch-portrait .account-section-modal .account-user-row > div:first-child {
  min-width: 0 !important;
  padding-right: 0 !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  display: flex !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  grid-template-columns: none !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action .account-status-toggle,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action .account-status-toggle {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action .account-status-toggle::before,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action .account-status-toggle::before {
  inset: 0 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 10px 50%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
    linear-gradient(145deg, #991b1b, #ef4444) !important;
  border: 1px solid rgba(248,113,113,.52) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 3px 9px rgba(239,68,68,.18) !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action .account-status-toggle::after,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action .account-status-toggle::after {
  width: 12px !important;
  height: 12px !important;
  left: 2px !important;
  top: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #fff, #dbeafe) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.28) !important;
  transform: translateX(0) !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action .account-status-toggle.is-active::before,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action .account-status-toggle.is-active::before {
  background:
    radial-gradient(circle at 24px 50%, rgba(255,255,255,.95) 0 1.5px, transparent 2px),
    linear-gradient(145deg, #15803d, #22c55e) !important;
  border-color: rgba(74,222,128,.58) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 3px 9px rgba(34,197,94,.18) !important;
}

body.account-switch-portrait #accountModal .account-user-row .account-status-action .account-status-toggle.is-active::after,
body.account-switch-portrait .account-section-modal .account-user-row .account-status-action .account-status-toggle.is-active::after {
  transform: translateX(18px) !important;
}
