#s2-auth-root:not(.s2-auth-root--headless) {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99998;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
}

#s2-auth-root.s2-auth-root--headless {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
}

#s2-auth-root.s2-auth-root--headless .s2-auth-dialog:not([hidden]) {
  pointer-events: auto;
}

.s2-auth-bar[hidden] {
  display: none !important;
}

.s2-auth-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom-left-radius: 10px;
  border: 1px solid #334155;
  border-top: none;
  border-right: none;
  color: #f1f5f9;
  backdrop-filter: blur(8px);
}

.s2-auth-bar__who {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.s2-auth-bar button {
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font: inherit;
  background: #6366f1;
  color: #fff;
}

.s2-auth-bar__ghost {
  background: transparent !important;
  border: 1px solid #475569 !important;
  color: #cbd5e1 !important;
}

.s2-auth-dialog[hidden] {
  display: none !important;
}

.s2-auth-dialog {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.s2-auth-dialog__panel {
  width: min(420px, 92vw);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  color: #f8fafc;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.s2-auth-dialog__panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.s2-auth-dialog__panel label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.s2-auth-dialog__panel input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  font: inherit;
}

.s2-auth-dialog__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.s2-auth-status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.s2-auth-status--ok {
  color: #86efac;
}

.s2-auth-status--err {
  color: #fca5a5;
}

.s2-auth-otp-wrap {
  margin-top: 0.25rem;
}
