.session-expired-active {
  overflow: hidden;
}

/* Applied synchronously before an old QVis tab navigates to the login page. */
html.qvis-session-logged-out body {
  visibility: hidden !important;
  pointer-events: none !important;
}

.session-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}

.session-expired-card {
  width: min(360px, calc(100vw - 48px));
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  padding: 22px 24px 24px;
  color: #111827;
  text-align: left;
}

.session-expired-kicker {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-expired-card h2 {
  margin: 0 0 8px;
  padding: 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.session-expired-card p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.session-expired-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 6px;
  background: #166534;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.16), 0 8px 18px rgba(22, 101, 52, 0.22);
}

.session-expired-action:hover,
.session-expired-action:focus-visible {
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
}
