.session-expiry-notice {
  position: fixed;
  left: 50%;
  top: 4.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 2rem);
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 0.5rem;
  background: rgba(255, 251, 235, 0.97);
  color: #92400e;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
}

.session-expiry-notice[hidden] {
  display: none !important;
}

.session-expiry-notice--expired {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(254, 242, 242, 0.97);
  color: #991b1b;
}

.dark .session-expiry-notice {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(69, 26, 3, 0.95);
  color: #fde68a;
}

.dark .session-expiry-notice--expired {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(69, 10, 10, 0.95);
  color: #fecaca;
}

@media (max-width: 640px) {
  .session-expiry-notice {
    top: auto;
    right: 0.75rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    width: auto;
    min-height: 2.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    transform: none;
  }
}
