.profileSecurityDialogTf14 {
  width: min(1240px, calc(100vw - 48px));
  max-width: 1240px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.profileSecurityDialogTf14 .dialogHeader {
  background: linear-gradient(115deg, #0d2f58 0%, #164e86 62%, #1e6da9 100%);
  border-bottom: 0;
}

.profileSecurityDialogTf14 .profileSecurityBody {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  max-height: calc(100vh - 184px);
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 3%, rgba(28, 126, 172, 0.11), transparent 24%),
    #f4f7fb;
}

.profileSecurityDialogTf14 .profileSecuritySection {
  border-color: #dce5ef;
  box-shadow: 0 12px 32px rgba(18, 51, 88, 0.07);
}

.profileSessionsSection {
  grid-column: 1 / -1;
  border-top: 3px solid #16807b !important;
}

.profileSessionsHeading {
  align-items: center;
}

.profileSessionsHeading > div {
  flex: 1;
}

.profileSessionRefresh,
.profileRevokeAll,
.profileSessionRevoke {
  min-height: 36px;
  padding: 0 13px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}

.profileSessionRefresh {
  color: #245273;
  background: #f2f7fb;
  border: 1px solid #cddde9;
}

.profileSessionsToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  margin-bottom: 13px;
  background: #f7fafc;
  border: 1px solid #e0e8ef;
  border-radius: 11px;
}

.profileSessionsToolbar > div {
  display: grid;
  gap: 3px;
}

.profileSessionsToolbar strong {
  color: #173b5d;
  font-size: 0.78rem;
}

.profileSessionsToolbar span,
.profileSessionsPrivacy {
  color: #6d7f90;
  font-size: 0.66rem;
  line-height: 1.5;
}

.profileRevokeAll {
  color: #9d2f2f;
  background: #fff7f6;
  border: 1px solid #efc9c5;
  white-space: nowrap;
}

.profileRevokeAll:disabled {
  color: #8996a3;
  background: #f2f4f6;
  border-color: #dfe4e8;
  cursor: default;
}

.profileSessionsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profileSessionCard {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
}

.profileSessionCard.isCurrent {
  background: linear-gradient(135deg, #f2fbfa, #fff 58%);
  border-color: #a9d9d4;
  box-shadow: inset 3px 0 0 #16807b;
}

.profileSessionCardHeading,
.profileSessionCardHeading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profileSessionCardHeading {
  justify-content: space-between;
}

.profileSessionCardHeading > div > div {
  display: grid;
  gap: 2px;
}

.profileSessionCardHeading strong {
  color: #173450;
  font-size: 0.74rem;
}

.profileSessionCardHeading span:not(.profileSessionMarker):not(.profileCurrentSessionBadge) {
  color: #718193;
  font-size: 0.65rem;
}

.profileSessionMarker {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #235476;
  background: #eaf3f8;
  border: 1px solid #cfe0eb;
  border-radius: 10px;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.isCurrent .profileSessionMarker {
  color: #0b6863;
  background: #dcf3f0;
  border-color: #b6dfda;
}

.profileCurrentSessionBadge {
  padding: 5px 8px;
  color: #0c6d65;
  background: #e1f5f2;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 850;
}

.profileSessionRevoke {
  min-height: 32px;
  color: #a13b35;
  background: #fff;
  border: 1px solid #e9c9c6;
}

.profileSessionMeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #edf1f5;
}

.profileSessionMeta > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profileSessionMeta small {
  color: #8090a0;
  font-size: 0.59rem;
}

.profileSessionMeta strong {
  overflow: hidden;
  color: #42586d;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profileSessionsEmpty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #718193;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #ccd8e3;
  border-radius: 11px;
  font-size: 0.72rem;
}

.profileSessionsEmpty.isError {
  color: #a13b35;
  background: #fff7f6;
  border-color: #e8c5c1;
}

.profileSessionsPrivacy {
  margin: 12px 0 0;
}

.profileSecurityDialogTf14 .profileDialogFooter {
  position: sticky;
  bottom: 0;
}

@media (max-width: 820px) {
  .profileSecurityDialogTf14 {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 12px;
  }

  .profileSecurityDialogTf14 .profileSecurityBody {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 174px);
    padding: 10px;
  }

  .profileSessionsSection {
    grid-column: auto;
  }

  .profileSessionsList,
  .profileSessionMeta {
    grid-template-columns: 1fr;
  }

  .profileSessionsToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .profileRevokeAll,
  .profileSessionRefresh {
    width: 100%;
  }

  .profileSessionsHeading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profileSessionsHeading .profileSessionRefresh {
    flex-basis: 100%;
  }

  .profileSessionMeta > span {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .profileSessionMeta strong {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .profileSecurityDialogTf14 .profileSecuritySection {
    padding: 14px;
  }

  .profileSessionCardHeading {
    align-items: flex-start;
  }

  .profileSessionCardHeading > div {
    min-width: 0;
  }
}
