body.auth-expired {
  overflow: hidden;
  background: #151817;
}

body.auth-expired .app-shell {
  pointer-events: none;
  user-select: none;
  filter: grayscale(1);
  opacity: 0.28;
}

.expired-account-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(720px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #202522;
  background: #ffffff;
  border: 1px solid #d8dedb;
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.expired-account-dialog::backdrop {
  background: rgba(18, 22, 20, 0.82);
}

.expired-account-content {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.expired-account-status-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: #f2f4f3;
  border: 1px solid #d9dedb;
  border-radius: 8px;
}

.expired-account-status-mark::before {
  width: 16px;
  height: 13px;
  content: "";
  border: 2px solid #555e59;
  border-radius: 3px;
}

.expired-account-status-mark span {
  position: absolute;
  width: 10px;
  height: 9px;
  margin-top: -12px;
  border: 2px solid #555e59;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.expired-account-heading {
  display: grid;
  gap: 8px;
}

.expired-account-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.expired-account-heading > span {
  color: #626b66;
  font-size: 14px;
  line-height: 1.7;
}

.expired-account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #e5e9e7;
  border-bottom: 1px solid #e5e9e7;
}

.expired-account-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px 0;
}

.expired-account-summary div + div {
  padding-left: 20px;
  border-left: 1px solid #e5e9e7;
}

.expired-account-summary dt {
  color: #78807c;
  font-size: 12px;
}

.expired-account-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.expired-account-feedback {
  min-height: 20px;
  margin: -10px 0 0;
  color: #626b66;
  font-size: 13px;
}

.expired-account-feedback:empty {
  display: none;
}

.expired-account-feedback[data-tone="warning"] {
  color: #a33b2e;
}

.expired-account-feedback[data-tone="success"] {
  color: #1d6b50;
}

.expired-account-contact {
  padding: 18px;
  background: #f7f9f8;
  border: 1px solid #dfe5e2;
  border-radius: 6px;
}

.expired-account-contact > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.expired-account-contact p {
  grid-column: 1 / -1;
  margin: 0;
  color: #616a65;
  font-size: 13px;
  line-height: 1.6;
}

.expired-account-contact-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.expired-account-contact-value span {
  grid-column: 1 / -1;
  color: #737b77;
  font-size: 12px;
}

.expired-account-contact-value strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.expired-account-contact-value button {
  min-height: 32px;
  padding: 0 12px;
  color: #235c49;
  background: #ffffff;
  border: 1px solid #b9c9c2;
  border-radius: 5px;
  cursor: pointer;
}

.expired-account-contact figure {
  margin: 0;
  text-align: center;
}

.expired-account-contact img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e1e5e3;
}

.expired-account-contact figcaption {
  margin-top: 6px;
  color: #737b77;
  font-size: 11px;
}

.expired-account-actions {
  display: grid;
  gap: 10px;
}

.expired-account-actions button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.expired-account-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.expired-account-primary {
  color: #ffffff;
  background: #176c51;
  border: 1px solid #176c51;
}

.expired-account-secondary {
  color: #26302b;
  background: #ffffff;
  border: 1px solid #bdc7c2;
}

.expired-account-logout {
  color: #68706c;
  background: transparent;
  border: 0;
}

@media (max-width: 560px) {
  .expired-account-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .expired-account-content {
    gap: 18px;
    padding: 24px 20px;
  }

  .expired-account-heading h1 {
    font-size: 21px;
  }

  .expired-account-summary {
    grid-template-columns: 1fr;
  }

  .expired-account-summary div + div {
    padding-left: 0;
    border-top: 1px solid #e5e9e7;
    border-left: 0;
  }

  .expired-account-contact > div {
    grid-template-columns: 1fr;
  }

  .expired-account-contact figure {
    justify-self: start;
  }
}
