:root {
  --table-corner: 24px;
  --modal-corner: 30px;
}

html,
body,
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-color: transparent transparent !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.panel,
.metric-card,
.search-panel,
.custom-panel,
.settings-card,
.sidebar,
.search-row,
.history-toolbar,
.tools-section,
.permission-box,
.game-card,
.game-art,
.game-art-shell,
.mini-avatar,
.brand-mark,
.side-nav,
.activity-dialog,
.title-picker-dialog,
.game-update-dialog,
body > .custom-body:not(.hidden) {
  background-clip: padding-box !important;
  overflow-clip-margin: 0 !important;
  isolation: isolate !important;
}

.activity-table-wrap,
.history-table-wrap,
.users-table-wrap,
.account-history-wrap,
.user-log-wrap,
.activity-modal-table,
.user-log-modal-table,
.title-picker-results,
.sidebar,
.side-nav,
.game-update-dialog,
body > .custom-body:not(.hidden) {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.activity-table-wrap,
.history-table-wrap,
.users-table-wrap,
.account-history-wrap,
.user-log-wrap,
.activity-modal-table,
.user-log-modal-table {
  border-radius: var(--table-corner) !important;
  clip-path: inset(0 round var(--table-corner)) !important;
  overflow: auto !important;
  background-clip: padding-box !important;
  contain: paint !important;
}

#view-history .history-table-wrap,
#view-users .users-table-wrap {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding: 12px !important;
  border-radius: var(--table-corner) !important;
  clip-path: inset(0 round var(--table-corner)) !important;
}

#view-history .history-account-table,
#view-users .users-table,
#view-history .history-account-table thead,
#view-users .users-table thead,
#view-history .history-account-table tbody,
#view-users .users-table tbody {
  min-width: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}

#view-history .history-account-table thead tr,
#view-users .users-table thead tr {
  background: transparent !important;
  box-shadow: none !important;
}

#view-history .history-account-table th,
#view-users .users-table th,
#view-history .history-account-table td,
#view-users .users-table td {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#view-history .history-account-table tbody tr,
#view-users .users-table tbody tr {
  overflow: hidden !important;
  clip-path: inset(0 round 20px) !important;
  background-clip: padding-box !important;
}

#accountActivityModal .account-history-wrap,
#userLogsModal .user-log-modal-table,
#userLogsModal .user-log-wrap {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow: auto !important;
  border-radius: var(--table-corner) !important;
  clip-path: inset(0 round var(--table-corner)) !important;
  contain: paint !important;
}

#accountActivityModal .account-history-table,
#userLogsModal .activity-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

#accountActivityModal .activity-table th,
#userLogsModal .activity-table th {
  background: rgba(5, 10, 23, .96) !important;
  background-clip: padding-box !important;
}

#accountActivityModal .activity-table thead th:first-child,
#userLogsModal .activity-table thead th:first-child {
  border-top-left-radius: calc(var(--table-corner) - 1px) !important;
}

#accountActivityModal .activity-table thead th:last-child,
#userLogsModal .activity-table thead th:last-child {
  border-top-right-radius: calc(var(--table-corner) - 1px) !important;
}

#accountActivityModal .activity-table tbody tr:last-child td:first-child,
#userLogsModal .activity-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: calc(var(--table-corner) - 1px) !important;
}

#accountActivityModal .activity-table tbody tr:last-child td:last-child,
#userLogsModal .activity-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: calc(var(--table-corner) - 1px) !important;
}

.activity-dialog,
.title-picker-dialog,
.game-update-dialog,
body > .custom-body:not(.hidden) {
  border-radius: var(--modal-corner) !important;
  clip-path: inset(0 round var(--modal-corner)) !important;
  contain: paint !important;
}

.title-picker-results,
.game-update-dialog,
body > .custom-body:not(.hidden),
.sidebar {
  overflow: auto !important;
}

@media (max-width: 900px) {
  #view-history .history-table-wrap,
  #view-users .users-table-wrap {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    clip-path: none !important;
    overflow: visible !important;
  }

  #view-history .history-account-table tbody tr,
  #view-users .users-table tbody tr {
    clip-path: inset(0 round 18px) !important;
  }
}

@media (max-width: 700px) {
  :root {
    --table-corner: 18px;
    --modal-corner: 24px;
  }
}

#view-users .users-table-wrap,
#view-history .history-table-wrap {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  border-radius: 24px !important;
  clip-path: inset(0 round 24px) !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#view-users .users-table-wrap::-webkit-scrollbar,
#view-history .history-table-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

#view-users .users-table,
#view-users .users-table thead,
#view-users .users-table tbody,
#view-history .history-account-table,
#view-history .history-account-table thead,
#view-history .history-account-table tbody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#view-users .users-table thead tr,
#view-users .users-table tbody tr,
#view-history .history-account-table thead tr,
#view-history .history-account-table tbody tr {
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  background-image: none !important;
}

#view-users .users-table thead tr,
#view-users .users-table tbody tr {
  grid-template-columns: minmax(150px, 1.05fr) minmax(92px, .5fr) minmax(230px, 1.7fr) minmax(190px, .95fr) !important;
  column-gap: 14px !important;
}

#view-history .history-account-table thead tr,
#view-history .history-account-table tbody tr {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.25fr) minmax(90px, .32fr) !important;
  column-gap: 12px !important;
}

#view-users .users-table thead tr,
#view-history .history-account-table thead tr {
  padding: 0 18px 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#view-users .users-table tbody,
#view-history .history-account-table tbody {
  display: grid !important;
  gap: 12px !important;
}

#view-users .users-table tbody tr,
#view-history .history-account-table tbody tr {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border-radius: 20px !important;
  border: 1px solid rgba(219, 231, 255, .09) !important;
  background: rgba(5, 10, 23, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.14) !important;
}

#view-users .users-table tbody tr {
  min-height: 72px !important;
  padding: 16px 18px !important;
}

#view-history .history-account-table tbody tr {
  min-height: 64px !important;
  padding: 13px 16px !important;
}

#view-users .users-table tbody tr::before,
#view-history .history-account-table tbody tr::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(255,255,255,.038), rgba(255,255,255,.014)) !important;
  pointer-events: none !important;
}

#view-users .users-table tbody tr:hover,
#view-history .history-account-table tbody tr:hover {
  border-color: rgba(var(--accent-rgb), .18) !important;
  background: rgba(6, 12, 27, .82) !important;
}

#view-users .users-table tbody tr:hover::before,
#view-history .history-account-table tbody tr:hover::before {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .055), rgba(255,255,255,.020)) !important;
}

#view-users .users-table th,
#view-users .users-table td,
#view-users .users-table tbody td,
#view-users .users-table tbody td:first-child,
#view-users .users-table tbody td:last-child,
#view-history .history-account-table th,
#view-history .history-account-table td,
#view-history .history-account-table tbody td,
#view-history .history-account-table tbody td:first-child,
#view-history .history-account-table tbody td:last-child {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  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;
  text-align: left !important;
}

#view-users .users-table tr:hover td,
#view-history .history-account-table tr:hover td,
#view-users .users-table tbody tr:hover td,
#view-history .history-account-table tbody tr:hover td {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#view-users .users-table th,
#view-history .history-account-table th {
  color: rgba(224, 233, 250, .72) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

#view-users .users-table th:last-child,
#view-users .users-table td:last-child,
#view-users .users-table td.table-actions,
#view-history .history-account-table th:last-child,
#view-history .history-account-table td:last-child {
  justify-content: flex-end !important;
  text-align: right !important;
}

@media (min-width: 901px) {
  #view-users .users-table td::before,
  #view-users .users-table td::after,
  #view-users .users-table th::before,
  #view-users .users-table th::after,
  #view-history .history-account-table td::before,
  #view-history .history-account-table td::after,
  #view-history .history-account-table th::before,
  #view-history .history-account-table th::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

#accountActivityModal .activity-table tr:hover td,
#userLogsModal .activity-table tr:hover td,
.activity-modal-table .activity-table tr:hover td,
.user-log-modal-table .activity-table tr:hover td {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#accountActivityModal .activity-modal-table,
#userLogsModal .user-log-modal-table,
#accountActivityModal .account-history-wrap,
#userLogsModal .user-log-wrap {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow: auto !important;
  border-radius: 24px !important;
  clip-path: inset(0 round 24px) !important;
}

#accountActivityModal .activity-modal-table::-webkit-scrollbar,
#userLogsModal .user-log-modal-table::-webkit-scrollbar,
#accountActivityModal .account-history-wrap::-webkit-scrollbar,
#userLogsModal .user-log-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

@media (max-width: 900px) {
  #view-users .users-table-wrap,
  #view-history .history-table-wrap {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    clip-path: none !important;
  }

  #view-users .users-table thead,
  #view-history .history-account-table thead {
    display: none !important;
  }

  #view-users .users-table tbody tr,
  #view-history .history-account-table tbody tr {
    display: block !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  #view-users .users-table td,
  #view-history .history-account-table td {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 9px 0 !important;
  }

  #view-users .users-table td::before,
  #view-history .history-account-table td::before {
    content: attr(data-label) !important;
    display: block !important;
    color: rgba(224, 233, 250, .56) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

#view-users .users-table-wrap,
#view-history .history-table-wrap {
  overflow: hidden !important;
  padding: 12px !important;
  border-radius: 24px !important;
  background: rgba(3, 8, 20, .26) !important;
  border: 1px solid rgba(219, 231, 255, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  clip-path: inset(0 round 24px) !important;
}

#view-users .users-table,
#view-users .users-table thead,
#view-users .users-table tbody,
#view-history .history-account-table,
#view-history .history-account-table thead,
#view-history .history-account-table tbody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#view-users .users-table thead,
#view-history .history-account-table thead {
  margin: 0 0 10px !important;
}

#view-users .users-table thead tr,
#view-history .history-account-table thead tr {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  column-gap: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(4, 9, 22, .96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(255,255,255,.035) !important;
}

#view-users .users-table thead tr {
  grid-template-columns: minmax(150px, 1.05fr) minmax(92px, .5fr) minmax(230px, 1.7fr) minmax(190px, .95fr) !important;
}

#view-history .history-account-table thead tr {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.25fr) minmax(90px, .32fr) !important;
}

#view-users .users-table thead th,
#view-history .history-account-table thead th {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
  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;
  color: rgba(224, 233, 250, .74) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#view-users .users-table thead th:last-child,
#view-history .history-account-table thead th:last-child {
  justify-content: flex-end !important;
  text-align: right !important;
}

#view-users .users-table tbody,
#view-history .history-account-table tbody {
  display: grid !important;
  gap: 12px !important;
}

#view-users .users-table tbody tr,
#view-history .history-account-table tbody tr {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  column-gap: 14px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border-radius: 20px !important;
  border: 1px solid rgba(219, 231, 255, .09) !important;
  background: rgba(6, 12, 27, .78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.12) !important;
}

#view-users .users-table tbody tr {
  grid-template-columns: minmax(150px, 1.05fr) minmax(92px, .5fr) minmax(230px, 1.7fr) minmax(190px, .95fr) !important;
  min-height: 72px !important;
  padding: 16px 18px !important;
}

#view-history .history-account-table tbody tr {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.25fr) minmax(90px, .32fr) !important;
  min-height: 64px !important;
  padding: 13px 16px !important;
}

#view-users .users-table tbody tr::before,
#view-history .history-account-table tbody tr::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(255,255,255,.038), rgba(255,255,255,.012)) !important;
  pointer-events: none !important;
}

#view-users .users-table tbody tr:hover,
#view-history .history-account-table tbody tr:hover {
  border-color: rgba(var(--accent-rgb), .22) !important;
  background: rgba(7, 14, 31, .86) !important;
}

#view-users .users-table tbody tr:hover::before,
#view-history .history-account-table tbody tr:hover::before {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .06), rgba(255,255,255,.018)) !important;
}

#view-users .users-table tbody td,
#view-users .users-table tbody td:first-child,
#view-users .users-table tbody td:last-child,
#view-history .history-account-table tbody td,
#view-history .history-account-table tbody td:first-child,
#view-history .history-account-table tbody td:last-child {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  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;
  text-align: left !important;
}

#view-users .users-table tbody td:last-child,
#view-users .users-table tbody td.table-actions,
#view-history .history-account-table tbody td:last-child {
  justify-content: flex-end !important;
  text-align: right !important;
}

#view-users .users-table tr:hover td,
#view-history .history-account-table tr:hover td,
#view-users .users-table tbody tr:hover td,
#view-history .history-account-table tbody tr:hover td {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

@media (max-width: 1120px) {
  #view-users .users-table thead tr,
  #view-users .users-table tbody tr {
    grid-template-columns: minmax(140px, 1fr) minmax(82px, .5fr) minmax(190px, 1.35fr) minmax(150px, .9fr) !important;
  }
}

@media (max-width: 900px) {
  #view-users .users-table thead,
  #view-history .history-account-table thead {
    display: none !important;
  }

  #view-users .users-table-wrap,
  #view-history .history-table-wrap {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
  }

  #view-users .users-table tbody tr,
  #view-history .history-account-table tbody tr {
    display: block !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  #view-users .users-table tbody td,
  #view-history .history-account-table tbody td {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: stretch !important;
    padding: 9px 0 !important;
    text-align: left !important;
  }

  #view-users .users-table tbody td::before,
  #view-history .history-account-table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    color: rgba(224, 233, 250, .56) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

#view-users .users-table-wrap,
#view-history .history-table-wrap {
  position: relative !important;
  overflow: hidden !important;
  padding: 12px !important;
  border-radius: 24px !important;
  background: rgba(3, 8, 20, .26) !important;
  border: 1px solid rgba(219, 231, 255, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  clip-path: inset(0 round 24px) !important;
  contain: paint !important;
}

#view-users .users-table,
#view-history .history-account-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
}

#view-users .users-table thead,
#view-history .history-account-table thead {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(4, 9, 22, .96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(255,255,255,.035) !important;
  clip-path: inset(0 round 18px) !important;
  contain: paint !important;
}

#view-users .users-table thead tr,
#view-history .history-account-table thead tr {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  column-gap: 0 !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  clip-path: inset(0 round 18px) !important;
}

#view-users .users-table thead tr {
  grid-template-columns: minmax(150px, 1.05fr) minmax(92px, .5fr) minmax(230px, 1.7fr) minmax(190px, .95fr) !important;
}

#view-history .history-account-table thead tr {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.25fr) minmax(90px, .32fr) !important;
}

#view-users .users-table thead th,
#view-history .history-account-table thead th {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#view-users .users-table thead th:last-child,
#view-history .history-account-table thead th:last-child {
  justify-content: flex-end !important;
}

#accountActivityModal .account-history-wrap,
#userLogsModal .user-log-wrap,
#userLogsModal .user-log-modal-table,
.activity-modal-table {
  position: relative !important;
  overflow: auto !important;
  border-radius: 24px !important;
  clip-path: inset(0 round 24px) !important;
  contain: paint !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#accountActivityModal .account-history-wrap::-webkit-scrollbar,
#userLogsModal .user-log-wrap::-webkit-scrollbar,
#userLogsModal .user-log-modal-table::-webkit-scrollbar,
.activity-modal-table::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

#accountActivityModal .activity-table,
#userLogsModal .activity-table {
  width: 100% !important;
  min-width: 760px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

#accountActivityModal .activity-table thead,
#userLogsModal .activity-table thead {
  overflow: hidden !important;
  border-radius: 24px 24px 0 0 !important;
  clip-path: inset(0 round 24px 24px 0 0) !important;
  background: rgba(4, 9, 22, .96) !important;
}

#accountActivityModal .activity-table thead th,
#userLogsModal .activity-table thead th {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#accountActivityModal .activity-table thead th:first-child,
#userLogsModal .activity-table thead th:first-child {
  border-top-left-radius: 24px !important;
}

#accountActivityModal .activity-table thead th:last-child,
#userLogsModal .activity-table thead th:last-child {
  border-top-right-radius: 24px !important;
}

@media (max-width: 900px) {
  #view-users .users-table-wrap,
  #view-history .history-table-wrap {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
    contain: initial !important;
  }
}

:root {
  --surface-radius: 28px;
  --surface-radius-sm: 18px;
  --table-radius: 24px;
  --control-radius: 16px;
  --audit-surface: rgba(10, 15, 31, .80);
  --audit-surface-strong: rgba(5, 10, 23, .92);
  --audit-surface-soft: rgba(255, 255, 255, .048);
  --audit-border: rgba(219, 231, 255, .115);
  --audit-border-strong: rgba(219, 231, 255, .17);
  --audit-hover: rgba(var(--accent-rgb), .075);
}

html,
body,
html body,
html body * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scrollbar-color: transparent transparent !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
html body *::-webkit-scrollbar,
html body .sidebar::-webkit-scrollbar,
html body .side-nav::-webkit-scrollbar,
html body .activity-dialog::-webkit-scrollbar,
html body .title-picker-dialog::-webkit-scrollbar,
html body .game-update-dialog::-webkit-scrollbar,
html body .activity-table-wrap::-webkit-scrollbar,
html body .users-table-wrap::-webkit-scrollbar,
html body .history-table-wrap::-webkit-scrollbar,
html body .account-history-wrap::-webkit-scrollbar,
html body .user-log-wrap::-webkit-scrollbar,
html body .activity-modal-table::-webkit-scrollbar,
html body .user-log-modal-table::-webkit-scrollbar,
html body .title-picker-results::-webkit-scrollbar,
html body .custom-body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

html body .sidebar,
html body .side-nav,
html body .activity-dialog,
html body .title-picker-dialog,
html body .game-update-dialog,
html body .activity-table-wrap,
html body .users-table-wrap,
html body .history-table-wrap,
html body .account-history-wrap,
html body .user-log-wrap,
html body .activity-modal-table,
html body .user-log-modal-table,
html body .title-picker-results,
html body > .custom-body:not(.hidden) {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.panel,
.metric-card,
.game-card,
.empty-card,
.permission-box,
.setting-facts,
.history-toolbar,
.search-row,
.tools-section,
.title-picker-result,
.activity-dialog,
.title-picker-dialog,
.game-update-dialog,
body > .custom-body:not(.hidden),
.login-simple .simple-card {
  border-color: var(--audit-border) !important;
  background-clip: padding-box !important;
  overflow-clip-margin: 0 !important;
  isolation: isolate !important;
}

.panel,
.metric-card,
.game-card,
.login-simple .simple-card {
  box-shadow: 0 18px 56px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.panel::before,
.sidebar::before {
  pointer-events: none !important;
}

input,
select,
textarea {
  color: #f8fbff !important;
  border-color: rgba(219, 231, 255, .13) !important;
  background-color: rgba(4, 9, 23, .74) !important;
  background-clip: padding-box !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(219, 231, 255, .19) !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
.title-picker-result:focus-visible,
.console-choice:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), .55) !important;
  outline-offset: 3px !important;
}

button.ghost::before,
.ghost::before,
button.danger::before,
.title-picker-result::before,
.console-choice::before {
  content: none !important;
  display: none !important;
}

button.ghost,
.ghost,
.admin-lock,
.permission-pill,
.log-inline,
.log-detail-pill,
.activity-status,
.row-status,
.console-badge,
.title-id,
.status-badge,
.user-badge {
  border-color: rgba(219, 231, 255, .12) !important;
  background: rgba(255,255,255,.055) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.12) !important;
}

button.ghost:hover:not(:disabled),
.ghost:hover:not(:disabled),
.title-picker-result:hover,
.console-choice:hover {
  border-color: rgba(var(--accent-rgb), .24) !important;
  background: rgba(var(--accent-rgb), .085) !important;
}

button.danger,
.ghost.danger {
  color: #ffd4df !important;
  border-color: rgba(255, 107, 154, .28) !important;
  background: rgba(255, 107, 154, .09) !important;
}

.activity-status,
.row-status {
  gap: 8px !important;
  white-space: nowrap !important;
}

.activity-status::before,
.row-status::before {
  flex: 0 0 auto !important;
}

.activity-status.ok,
.activity-status.success,
.row-status.success {
  color: #ddfff1 !important;
  border-color: rgba(54, 226, 166, .24) !important;
  background: rgba(54, 226, 166, .09) !important;
}

.activity-status.ok::before,
.activity-status.success::before,
.row-status.success::before {
  background: var(--good) !important;
  box-shadow: 0 0 18px rgba(54, 226, 166, .85) !important;
}

.activity-status.bad,
.activity-status.error,
.row-status.error {
  color: #ffd7e3 !important;
  border-color: rgba(255, 107, 154, .28) !important;
  background: rgba(255, 107, 154, .09) !important;
}

.activity-status.bad::before,
.activity-status.error::before,
.row-status.error::before {
  background: var(--bad) !important;
  box-shadow: 0 0 18px rgba(255, 107, 154, .78) !important;
}

.row-status.waiting,
.row-status.warning,
.activity-status.warning {
  color: #fff2c7 !important;
  border-color: rgba(255, 209, 102, .24) !important;
  background: rgba(255, 209, 102, .08) !important;
}

.row-status.waiting::before,
.row-status.warning::before,
.activity-status.warning::before {
  background: var(--warn) !important;
  box-shadow: 0 0 18px rgba(255, 209, 102, .75) !important;
}

.row-status.loading,
.message.loading {
  color: #dff5ff !important;
}

.row-status.loading::before {
  background: var(--accent) !important;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .85) !important;
  animation: auditPulse 1s ease-in-out infinite alternate !important;
}

@keyframes auditPulse {
  from { opacity: .45; transform: scale(.88); }
  to { opacity: 1; transform: scale(1.08); }
}

#view-users .users-table-wrap,
#view-history .history-table-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--audit-border) !important;
  border-radius: var(--table-radius) !important;
  background: rgba(3, 8, 20, .28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.052) !important;
  clip-path: inset(0 round var(--table-radius)) !important;
  contain: paint !important;
}

#view-users .users-table,
#view-history .history-account-table,
#view-users .users-table thead,
#view-history .history-account-table thead,
#view-users .users-table tbody,
#view-history .history-account-table tbody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 0 !important;
  border-spacing: 0 !important;
  border-collapse: separate !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#view-users .users-table thead,
#view-history .history-account-table thead {
  margin: 0 0 10px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: rgba(4, 9, 22, .97) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(255,255,255,.035) !important;
  clip-path: inset(0 round 18px) !important;
  contain: paint !important;
}

#view-users .users-table thead tr,
#view-history .history-account-table thead tr,
#view-users .users-table tbody tr,
#view-history .history-account-table tbody tr {
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

#view-users .users-table thead tr,
#view-users .users-table tbody tr {
  grid-template-columns: minmax(150px, 1.05fr) minmax(92px, .5fr) minmax(210px, 1.7fr) minmax(180px, .95fr) !important;
}

#view-history .history-account-table thead tr,
#view-history .history-account-table tbody tr {
  grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.25fr) minmax(88px, .32fr) !important;
}

#view-users .users-table thead tr,
#view-history .history-account-table thead tr {
  min-height: 38px !important;
  padding: 0 !important;
  column-gap: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  clip-path: inset(0 round 18px) !important;
}

#view-users .users-table thead th,
#view-history .history-account-table thead th {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(224, 233, 250, .76) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#view-users .users-table thead th:last-child,
#view-history .history-account-table thead th:last-child {
  justify-content: flex-end !important;
  text-align: right !important;
}

#view-users .users-table tbody,
#view-history .history-account-table tbody {
  display: grid !important;
  gap: 12px !important;
}

#view-users .users-table tbody tr,
#view-history .history-account-table tbody tr {
  position: relative !important;
  isolation: isolate !important;
  column-gap: 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(219, 231, 255, .09) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(6, 12, 27, .78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.12) !important;
}

#view-users .users-table tbody tr { min-height: 72px !important; padding: 16px 18px !important; }
#view-history .history-account-table tbody tr { min-height: 64px !important; padding: 13px 16px !important; }

#view-users .users-table tbody tr:hover,
#view-history .history-account-table tbody tr:hover {
  border-color: rgba(var(--accent-rgb), .22) !important;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), .055), rgba(255,255,255,.014)),
    rgba(7, 14, 31, .86) !important;
}

#view-users .users-table th,
#view-users .users-table td,
#view-history .history-account-table th,
#view-history .history-account-table td {
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#view-users .users-table tbody td,
#view-history .history-account-table tbody td {
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
}

#view-users .users-table tbody td:last-child,
#view-users .users-table tbody td.table-actions,
#view-history .history-account-table tbody td:last-child {
  justify-content: flex-end !important;
  text-align: right !important;
}

#view-users .users-table tbody tr > td[colspan],
#view-history .history-account-table tbody tr > td[colspan] {
  grid-column: 1 / -1 !important;
  justify-content: center !important;
  min-height: 46px !important;
  color: var(--muted) !important;
  font-weight: 800 !important;
  text-align: center !important;
}

#view-users .table-actions,
#view-history .history-account-table .table-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#view-users .permission-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
}

#view-users .user-name-cell b,
#view-history .history-account-table b,
#view-history .history-account-table code {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#view-history .history-account-table code {
  max-width: 100% !important;
  display: inline-flex !important;
  min-height: 30px !important;
  align-items: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #dbe7ff !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(219,231,255,.10) !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

#accountActivityModal .account-history-wrap,
#userLogsModal .user-log-wrap,
#userLogsModal .user-log-modal-table,
.activity-modal-table {
  position: relative !important;
  overflow: auto !important;
  border: 1px solid var(--audit-border) !important;
  border-radius: var(--table-radius) !important;
  background: rgba(3, 8, 20, .32) !important;
  clip-path: inset(0 round var(--table-radius)) !important;
  contain: paint !important;
}

#accountActivityModal .account-history-table,
#userLogsModal .activity-table {
  width: 100% !important;
  min-width: 920px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: transparent !important;
}

#accountActivityModal .activity-table thead,
#userLogsModal .activity-table thead {
  background: rgba(4, 9, 22, .97) !important;
}

#accountActivityModal .activity-table th,
#userLogsModal .activity-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  height: 42px !important;
  color: rgba(224, 233, 250, .78) !important;
  background: rgba(4, 9, 22, .97) !important;
  box-shadow: none !important;
}

#accountActivityModal .activity-table td,
#userLogsModal .activity-table td {
  background: transparent !important;
  background-image: none !important;
}

#accountActivityModal .activity-table tr:hover td,
#userLogsModal .activity-table tr:hover td {
  background: rgba(var(--accent-rgb), .035) !important;
}

#accountActivityModal .activity-table th:first-child,
#userLogsModal .activity-table th:first-child { border-top-left-radius: calc(var(--table-radius) - 1px) !important; }
#accountActivityModal .activity-table th:last-child,
#userLogsModal .activity-table th:last-child { border-top-right-radius: calc(var(--table-radius) - 1px) !important; }
#accountActivityModal .activity-table tr:last-child td:first-child,
#userLogsModal .activity-table tr:last-child td:first-child { border-bottom-left-radius: calc(var(--table-radius) - 1px) !important; }
#accountActivityModal .activity-table tr:last-child td:last-child,
#userLogsModal .activity-table tr:last-child td:last-child { border-bottom-right-radius: calc(var(--table-radius) - 1px) !important; }

#view-settings .settings-grid,
#view-users .users-page-grid {
  gap: clamp(14px, 1.6vw, 20px) !important;
}

#view-settings .settings-card,
#view-users .user-form-panel,
#view-users .users-list-panel,
#view-history .history-panel {
  border-radius: var(--surface-radius) !important;
}

#view-settings .setting-facts,
#view-settings .permission-box,
#view-users .permission-box {
  background: rgba(3, 8, 20, .30) !important;
  border-color: var(--audit-border) !important;
}

#view-settings .setting-facts span,
#view-settings .rate-limit-row,
#view-users .permission-toggle,
#view-users .compact-toggle {
  border-color: rgba(219, 231, 255, .10) !important;
  background: rgba(255,255,255,.04) !important;
}

#view-settings .rate-limit-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, .55fr) minmax(160px, .7fr) !important;
  align-items: end !important;
  min-height: 76px !important;
}

#view-settings .rate-limit-row strong {
  align-self: center !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

#view-search .search-panel,
#view-search .tools-section,
#view-search .metric-card,
#view-search .custom-panel,
#view-search .game-card {
  border-color: var(--audit-border) !important;
}

#view-search .game-card:hover,
.title-picker-result:hover {
  transform: translateY(-2px) !important;
}

.title-picker-dialog,
.game-update-dialog,
.activity-dialog,
body > .custom-body:not(.hidden) {
  border-color: var(--audit-border-strong) !important;
}

.title-picker-results {
  padding-right: 0 !important;
}

.title-picker-result {
  min-height: 72px !important;
}

.login-body .login-simple {
  width: min(390px, 100%) !important;
}

.login-simple .simple-card {
  padding: clamp(24px, 4vw, 34px) !important;
  border-radius: 28px !important;
}

.login-simple .auth-form {
  gap: 16px !important;
}

.login-simple input {
  min-height: 56px !important;
  border-radius: 18px !important;
}

.login-simple button {
  min-height: 56px !important;
  border-radius: 18px !important;
}

@media (max-width: 1120px) {
  #view-users .users-table thead tr,
  #view-users .users-table tbody tr {
    grid-template-columns: minmax(140px, 1fr) minmax(82px, .48fr) minmax(180px, 1.25fr) minmax(150px, .82fr) !important;
  }
}

@media (max-width: 900px) {
  #view-users .users-table-wrap,
  #view-history .history-table-wrap {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
    contain: initial !important;
  }

  #view-users .users-table thead,
  #view-history .history-account-table thead {
    display: none !important;
  }

  #view-users .users-table tbody,
  #view-history .history-account-table tbody {
    display: grid !important;
    gap: 12px !important;
  }

  #view-users .users-table tbody tr,
  #view-history .history-account-table tbody tr {
    display: block !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  #view-users .users-table tbody td,
  #view-history .history-account-table tbody td {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px !important;
    justify-content: stretch !important;
    padding: 9px 0 !important;
    text-align: left !important;
  }

  #view-users .users-table tbody td::before,
  #view-history .history-account-table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    color: rgba(224, 233, 250, .56) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
  }

  #view-users .users-table tbody tr > td[colspan],
  #view-history .history-account-table tbody tr > td[colspan] {
    display: flex !important;
  }

  #view-users .table-actions,
  #view-history .history-account-table td:last-child {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #view-settings .rate-limit-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  #accountActivityModal .account-history-wrap,
  #userLogsModal .user-log-wrap,
  #userLogsModal .user-log-modal-table,
  .activity-modal-table {
    border-radius: 18px !important;
    clip-path: inset(0 round 18px) !important;
  }
}

@media (max-width: 560px) {
  :root {
    --surface-radius: 22px;
    --table-radius: 18px;
    --control-radius: 14px;
  }

  .panel,
  .metric-card,
  .game-card,
  .activity-dialog,
  .title-picker-dialog,
  .game-update-dialog,
  body > .custom-body:not(.hidden),
  .login-simple .simple-card {
    border-radius: var(--surface-radius) !important;
  }

  .activity-head,
  .title-picker-head,
  .game-update-head,
  .custom-body-head {
    gap: 10px !important;
  }
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  overscroll-behavior-x: none !important;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

body {
  position: relative !important;
}

main,
section,
article,
aside,
header,
footer,
nav,
div,
form,
label,
ul,
ol,
li,
table,
thead,
tbody,
tr,
th,
td {
  min-width: 0 !important;
}

img,
svg,
video,
canvas,
input,
select,
textarea,
button {
  max-width: 100% !important;
}

.shell,
.main,
.view,
.panel,
.search-layout,
.search-main-column,
.search-side-column,
.hero-grid,
.games-section,
.games-grid,
.admin-page-grid,
.settings-grid,
.users-page-grid,
.history-panel,
.users-list-panel,
.user-form-panel,
.settings-card,
.activity-dialog,
.title-picker-dialog,
.game-update-dialog,
body > .custom-body:not(.hidden) {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.activity-table-wrap,
.history-table-wrap,
.users-table-wrap,
.account-history-wrap,
.user-log-wrap,
.activity-modal-table,
.user-log-modal-table,
.title-picker-results,
.sidebar,
.side-nav,
.game-update-dialog,
body > .custom-body:not(.hidden) {
  overscroll-behavior-x: none !important;
}

@media (max-width: 780px) {
  :root {
    --phone-pad: clamp(10px, 3.6dvw, 16px);
  }

  html,
  body {
    max-width: 100dvw !important;
    overflow-x: clip !important;
  }

  body.modal-open,
  body.sidebar-open {
    overflow-x: clip !important;
  }

  .shell {
    width: 100% !important;
    max-width: 100dvw !important;
    padding: 10px var(--phone-pad) 34px !important;
    overflow-x: clip !important;
  }

  .main,
  .view,
  .search-layout,
  .search-main-column,
  .search-side-column,
  .games-section,
  .games-grid,
  .admin-page-grid,
  .settings-grid,
  .users-page-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .topbar {
    min-height: auto !important;
    padding: 8px 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .topbar-title {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .topbar h1 {
    max-width: 100% !important;
    font-size: clamp(32px, 11dvw, 48px) !important;
    line-height: .98 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .mobile-menu {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
  }

  .sidebar {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    overflow-x: clip !important;
  }

  .side-nav {
    overflow: visible !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nav-item {
    min-width: 0 !important;
    width: 100% !important;
  }

  .nav-item b,
  .brand-copy strong,
  .brand-copy span,
  .user-badge,
  .status-badge {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .panel,
  .search-panel,
  .metric-card,
  .custom-panel,
  .history-panel,
  .users-list-panel,
  .user-form-panel,
  .settings-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(14px, 4.2dvw, 18px) !important;
    border-radius: 22px !important;
    overflow-x: clip !important;
  }

  .panel-head,
  .history-head,
  .activity-head,
  .title-picker-head,
  .game-update-head {
    min-width: 0 !important;
    gap: 10px !important;
  }

  .search-row,
  .history-toolbar,
  .title-picker-search,
  .tools-section,
  .custom-grid,
  .custom-footer,
  .button-row,
  .user-form-actions,
  .settings-grid,
  .admin-page-grid,
  .users-page-grid,
  .rate-limit-grid,
  .psn-token-layout,
  .game-update-grid,
  .game-update-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .search-row > *,
  .history-toolbar > *,
  .title-picker-search > *,
  .tools-section > *,
  .custom-footer > *,
  .button-row > *,
  .user-form-actions > *,
  .game-update-actions > * {
    min-width: 0 !important;
    width: 100% !important;
  }

  .field,
  .toggle-row,
  .rate-limit-row,
  .permission-toggle {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .setting-facts,
  .permission-box,
  .permission-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .setting-facts span,
  .permission-summary,
  .permission-chips,
  .log-detail-pill,
  .log-inline,
  code,
  .message,
  .row-status {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .history-table-wrap,
  .users-table-wrap,
  .activity-table-wrap,
  .account-history-wrap,
  .user-log-wrap,
  .activity-modal-table,
  .user-log-modal-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .activity-table,
  .history-account-table,
  .users-table,
  .account-history-table,
  .user-log-table,
  #accountActivityModal .activity-table,
  #userLogsModal .activity-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  .activity-table td,
  .activity-table th,
  .history-account-table td,
  .users-table td,
  .account-history-table td,
  .user-log-table td {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  #view-users .users-table tbody tr,
  #view-history .history-account-table tbody tr,
  #accountActivityModal .activity-table tr,
  #userLogsModal .activity-table tr {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  #view-users .users-table td,
  #view-history .history-account-table td {
    grid-template-columns: minmax(76px, 30%) minmax(0, 1fr) !important;
  }

  .table-actions,
  .permission-chips,
  .log-detail-list,
  .history-detail-list {
    display: flex !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }

  .games-grid,
  body.compact .games-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .game-card,
  body.compact .game-card {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(60px, 70px) minmax(0, 1fr) !important;
    padding: 12px !important;
    overflow-x: clip !important;
  }

  .game-copy,
  .game-top,
  .game-meta-row,
  .last-played,
  .console-badge,
  .title-id,
  .hours-pill {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .game-top h3 {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .card-actions,
  .card-actions.compact-actions,
  .send-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .title-picker-modal,
  .activity-modal,
  .game-update-modal {
    width: 100dvw !important;
    max-width: 100dvw !important;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
    overflow-x: clip !important;
  }

  .activity-dialog,
  .title-picker-dialog,
  .game-update-dialog,
  #accountActivityModal .activity-dialog,
  #userLogsModal .activity-dialog,
  body > .custom-body:not(.hidden) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 14px !important;
    overflow-x: clip !important;
  }

  body > .custom-body:not(.hidden) {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    width: auto !important;
    max-width: none !important;
    transform: translateY(-50%) !important;
  }

  .title-picker-result {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    overflow-x: clip !important;
  }

  .title-picker-result strong,
  .title-picker-result span,
  .title-picker-result small {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 430px) {
  .side-nav,
  .side-footer,
  .current-profile,
  #view-search .current-profile {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .brand {
    gap: 10px !important;
  }

  .game-card,
  body.compact .game-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .game-side,
  body.compact .game-side {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .game-art,
  .game-art img,
  body.compact .game-art,
  body.compact .game-art img {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .title-id,
  body.compact .title-id {
    width: auto !important;
    max-width: 100% !important;
    justify-self: start !important;
  }

  #view-users .users-table td,
  #view-history .history-account-table td {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .panel-head,
  .history-head,
  .activity-head,
  .title-picker-head,
  .game-update-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .panel-head button,
  .history-head button,
  .activity-head button,
  .title-picker-head button,
  .game-update-head button {
    width: 100% !important;
  }
}

@media (max-width: 430px) {
  #view-search .current-profile {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    grid-template-areas:
      "avatar name"
      "avatar id"
      "copy copy" !important;
    align-items: center !important;
  }

  #view-search #copyAccountButton {
    justify-self: stretch !important;
    width: 100% !important;
  }
}

@media (max-width: 360px) {
  #view-search .current-profile {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

.shell,
.main,
.view,
.panel,
.settings-card,
.search-panel,
.custom-panel,
.history-panel,
.users-list-panel,
.user-form-panel,
.activity-dialog,
.title-picker-dialog,
.game-update-dialog,
.rate-limit-grid,
.rate-limit-row,
.settings-stack,
.button-row,
.field {
  min-width: 0 !important;
  max-width: 100% !important;
}

.field > input,
.field > select,
.field > textarea,
.rate-limit-row input,
.game-update-grid input,
.game-update-grid select,
body > .custom-body .custom-grid input,
body > .custom-body .custom-grid select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#view-settings .settings-card,
#view-settings .rate-panel,
#view-users .user-form-panel,
#view-users .users-list-panel,
#view-history .history-panel,
.activity-dialog,
.title-picker-dialog,
.game-update-dialog {
  overflow-x: clip !important;
}

#view-settings .rate-limit-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

#view-settings .rate-limit-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(74px, 96px) minmax(96px, 126px) !important;
  align-items: end !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#view-settings .rate-limit-row > *,
#view-settings .rate-limit-row .field,
#view-settings .rate-limit-row strong {
  min-width: 0 !important;
  max-width: 100% !important;
}

#view-settings .rate-limit-row strong {
  overflow-wrap: anywhere !important;
}

#view-settings .rate-limit-row .field span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#view-settings .rate-actions {
  width: 100% !important;
  max-width: 100% !important;
}

#view-settings #saveRateLimitsBtn,
#view-settings #saveAppSettingsBtn,
#view-settings #saveProjectSettingsBtn {
  max-width: 100% !important;
}

@media (min-width: 641px) and (max-width: 1180px) {
  #view-settings .rate-limit-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  #view-settings .rate-limit-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #view-settings .rate-limit-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  #view-settings .rate-limit-row .field span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

@media (min-width: 781px) {
  body.app-body .shell > .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    z-index: 30 !important;
  }

  body.app-body.sidebar-open .shell > .sidebar {
    transform: none !important;
  }

  body.app-body .main {
    padding-top: 0 !important;
  }
}

#view-search #toolsSection.tools-section {
  position: sticky !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  z-index: 35 !important;
  align-self: start !important;
  isolation: isolate !important;
  border-color: rgba(219, 231, 255, .14) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.092), rgba(255,255,255,.04)),
    rgba(12, 16, 31, .88) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
}

#view-search #toolsSection.tools-section::before {
  pointer-events: none !important;
}

#view-search #toolsSection.tools-section .field,
#view-search #toolsSection.tools-section .inline-count,
#view-search #toolsSection.tools-section button {
  position: relative !important;
  z-index: 1 !important;
}

@media (min-width: 1261px) {
  #view-search #toolsSection.tools-section {
    top: 14px !important;
  }
}

@media (max-width: 900px) {
  #view-search #toolsSection.tools-section {
    position: sticky !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    z-index: 35 !important;
  }
}

@media (max-width: 780px) {
  #view-search #toolsSection.tools-section {
    position: sticky !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    z-index: 35 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  #view-search #toolsSection.tools-section .inline-count {
    min-height: 38px !important;
    justify-content: center !important;
  }

  #view-search #toolsSection.tools-section button {
    min-height: 44px !important;
  }
}

@media (max-width: 430px) {
  #view-search #toolsSection.tools-section {
    top: max(6px, env(safe-area-inset-top)) !important;
  }
}

.games-section,
.games-grid,
.pager,
[data-games-pager] {
  overflow-anchor: none !important;
}

[data-games-step] {
  touch-action: manipulation;
}

:root {
  --safe-primary-text: #06111f;
  --safe-primary-text-hover: #03101d;
  --safe-ghost-text: #e8f1ff;
  --safe-ghost-bg: rgba(255,255,255,.060);
  --safe-ghost-bg-hover: rgba(255,255,255,.095);
  --safe-ghost-border: rgba(219,231,255,.155);
  --safe-ghost-border-hover: rgba(219,231,255,.235);
  --safe-control-hover: rgba(255,255,255,.075);
}

button:not(.nav-item):not(.mobile-menu):not(.custom-toggle):not(.title-picker-result):not(.console-choice):not(.ghost),
a.token-link,
#view-settings .psn-token-head .token-link {
  color: var(--safe-primary-text) !important;
  border-color: rgba(255,255,255,.18) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), .22), inset 0 1px 0 rgba(255,255,255,.42) !important;
  filter: none !important;
}

button:not(.nav-item):not(.mobile-menu):not(.custom-toggle):not(.title-picker-result):not(.console-choice):not(.ghost):hover:not(:disabled),
a.token-link:hover,
#view-settings .psn-token-head .token-link:hover {
  color: var(--safe-primary-text-hover) !important;
  border-color: rgba(255,255,255,.26) !important;
  background: linear-gradient(135deg, var(--accent-3), var(--accent)) !important;
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), .26), inset 0 1px 0 rgba(255,255,255,.48) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

button.ghost,
.ghost,
button.ghost.small,
.ghost.small {
  color: var(--safe-ghost-text) !important;
  border-color: var(--safe-ghost-border) !important;
  background: var(--safe-ghost-bg) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 10px 24px rgba(0,0,0,.14) !important;
  filter: none !important;
}

button.ghost:hover:not(:disabled),
.ghost:hover:not(:disabled),
button.ghost.small:hover:not(:disabled),
.ghost.small:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: var(--safe-ghost-border-hover) !important;
  background: var(--safe-ghost-bg-hover) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 28px rgba(0,0,0,.16) !important;
  filter: none !important;
  transform: translateY(-1px) !important;
}

button.danger,
.ghost.danger,
button.ghost.danger {
  color: #ffdce6 !important;
  border-color: rgba(255, 107, 154, .30) !important;
  background: rgba(255, 107, 154, .095) !important;
}

button.danger:hover:not(:disabled),
.ghost.danger:hover:not(:disabled),
button.ghost.danger:hover:not(:disabled) {
  color: #fff3f7 !important;
  border-color: rgba(255, 107, 154, .42) !important;
  background: rgba(255, 107, 154, .145) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(255,107,154,.10) !important;
}

.console-choice-group,
.game-update-grid .console-choice-group,
body > .custom-body .custom-grid .console-choice-group {
  border-color: rgba(219,231,255,.15) !important;
  background: rgba(4, 8, 21, .88) !important;
}

.console-choice,
.game-update-grid .console-choice,
body > .custom-body .custom-grid .console-choice {
  color: #dce7fb !important;
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.console-choice:hover:not(.active):not([aria-pressed="true"]),
.game-update-grid .console-choice:hover:not(.active):not([aria-pressed="true"]),
body > .custom-body .custom-grid .console-choice:hover:not(.active):not([aria-pressed="true"]) {
  color: #ffffff !important;
  border-color: rgba(219,231,255,.14) !important;
  background: var(--safe-control-hover) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
  filter: none !important;
  transform: none !important;
}

.console-choice.active,
.console-choice[aria-pressed="true"],
.game-update-grid .console-choice.active,
.game-update-grid .console-choice[aria-pressed="true"],
body > .custom-body .custom-grid .console-choice.active,
body > .custom-body .custom-grid .console-choice[aria-pressed="true"] {
  color: var(--safe-primary-text) !important;
  border-color: rgba(255,255,255,.25) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), .24), inset 0 1px 0 rgba(255,255,255,.36) !important;
  filter: none !important;
  transform: none !important;
}

.console-choice.active:hover,
.console-choice[aria-pressed="true"]:hover,
.game-update-grid .console-choice.active:hover,
.game-update-grid .console-choice[aria-pressed="true"]:hover,
body > .custom-body .custom-grid .console-choice.active:hover,
body > .custom-body .custom-grid .console-choice[aria-pressed="true"]:hover {
  color: var(--safe-primary-text-hover) !important;
  border-color: rgba(255,255,255,.32) !important;
  background: linear-gradient(135deg, var(--accent-3), var(--accent)) !important;
  background-image: linear-gradient(135deg, var(--accent-3), var(--accent)) !important;
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255,255,255,.42) !important;
  filter: none !important;
  transform: none !important;
}

.title-picker-result:hover,
.nav-item:hover,
.permission-toggle:hover,
.compact-toggle:hover,
.title-picker-open:hover {
  color: #ffffff !important;
}

@media (hover: none) {
  button:not(.nav-item):not(.mobile-menu):not(.custom-toggle):not(.title-picker-result):not(.console-choice):not(.ghost):hover:not(:disabled),
  button.ghost:hover:not(:disabled),
  .ghost:hover:not(:disabled),
  .console-choice:hover,
  .title-picker-result:hover,
  .nav-item:hover {
    transform: none !important;
  }

  .console-choice:hover:not(.active):not([aria-pressed="true"]) {
    color: #dce7fb !important;
    border-color: transparent !important;
    background: transparent !important;
  }
}
