.edit-application {
  background: #eef0f6;
  color: #59627a;
}

.manage-devices {
  background: #e8f1ff;
  color: #3273d4;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 48, .58);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(500px, 100%);
  padding: 28px;
  border: 1px solid #e5e8f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 31, 61, .28);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #f0f2f7;
  color: #697289;
  font-size: 22px;
}

.modal-form {
  max-width: none;
  margin-top: 22px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.device-modal-card {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.device-session-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.device-session {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e8eaf2;
  border-radius: 16px;
  background: #fafbfe;
}

.device-session-heading,
.device-session-actions,
.device-revoke-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-session-heading strong,
.device-session-heading span,
.device-empty strong,
.device-empty span {
  display: block;
}

.device-session-heading strong {
  color: #17213b;
  font-size: 15px;
}

.device-session-heading div > span,
.device-empty span {
  margin-top: 5px;
  color: #929aad;
  font-size: 12px;
}

.device-session-type {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.device-session-type.temporary {
  background: #e9e6ff;
  color: #5f4ed6;
}

.device-session-type.persistent {
  background: #e4f6ef;
  color: #168862;
}

.device-session-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.device-session-times > div {
  padding: 11px 12px;
  border-radius: 11px;
  background: #fff;
}

.device-session-times span,
.device-session-times strong {
  display: block;
}

.device-session-times span {
  margin-bottom: 5px;
  color: #9aa2b5;
  font-size: 10px;
  font-weight: 750;
}

.device-session-times strong {
  color: #4f5870;
  font-size: 11px;
  line-height: 1.45;
}

.device-session-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.device-revoke {
  padding: 9px 12px;
  background: #fff0f2;
  color: #d84456;
}

.device-revoke-confirm {
  width: 100%;
  justify-content: flex-end;
}

.device-revoke-confirm > span {
  margin-right: auto;
  color: #d84456;
  font-size: 12px;
  font-weight: 750;
}

.device-empty {
  padding: 34px 20px;
  border: 1px dashed #dfe3ed;
  border-radius: 16px;
  text-align: center;
}

.device-loading {
  padding: 28px 0;
}

.device-modal-actions {
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}

@media (max-width: 640px) {
  .access-actions {
    flex-wrap: wrap;
  }

  .edit-application {
    flex-basis: 100% !important;
  }

  .manage-devices {
    flex-basis: 100% !important;
  }

  .device-session-times {
    grid-template-columns: 1fr;
  }

  .device-revoke-confirm {
    align-items: stretch;
    flex-direction: column;
  }

  .device-revoke-confirm > span {
    margin-right: 0;
  }
}
