.p70b-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.p70b-auth-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p70b-auth-button,
.p70b-auth-logout {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.p70b-auth-button {
  flex-direction: column;
  align-items: flex-start;
  min-width: 96px;
  padding: 6px 10px;
}

.p70b-auth-button span {
  display: block;
}

.p70b-auth-button small {
  display: block;
  max-width: 128px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p70b-auth-button:hover,
.p70b-auth-button:focus-visible,
.p70b-auth-logout:hover,
.p70b-auth-logout:focus-visible {
  border-color: #155eef;
  color: #155eef;
  background: #f8fbff;
  outline: none;
}

.p70b-auth-button--signed-in {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.p70b-auth-button--signed-in span {
  color: #0f766e;
}

.p70b-auth-logout {
  min-width: 50px;
  padding: 0 10px;
}

.p70b-auth-entry--floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
}

.p70b-auth-modal[hidden] {
  display: none !important;
}

.p70b-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.p70b-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.p70b-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 24px;
}

.p70b-auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.p70b-auth-modal__close:hover,
.p70b-auth-modal__close:focus-visible {
  border-color: #155eef;
  color: #155eef;
  outline: none;
}

.p70b-auth-modal__eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.p70b-auth-modal h2 {
  margin: 0 40px 10px 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.p70b-auth-modal__copy,
.p70b-auth-user-email,
.p70b-auth-message,
.p70b-auth-dev-code {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.p70b-auth-user-email {
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.p70b-auth-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.p70b-auth-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  outline: none;
}

.p70b-auth-field input:focus {
  border-color: #155eef;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.p70b-auth-turnstile {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.p70b-auth-turnstile[hidden] {
  display: none !important;
}

.p70b-auth-turnstile__box {
  min-height: 65px;
}

.p70b-auth-turnstile__status {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.p70b-auth-turnstile__status[data-type="error"] {
  color: #be123c;
}

.p70b-auth-turnstile__status[data-type="success"] {
  color: #0f766e;
}

.p70b-auth-primary {
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.p70b-auth-primary--dark {
  border-color: #155eef;
  background: #155eef;
}

.p70b-auth-primary:hover,
.p70b-auth-primary:focus-visible {
  filter: brightness(0.95);
  outline: none;
}

.p70b-auth-primary:disabled,
.p70b-auth-button:disabled,
.p70b-auth-logout:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.p70b-auth-message,
.p70b-auth-dev-code {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
}

.p70b-auth-message[data-type="error"] {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.p70b-auth-message[data-type="success"] {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

.p70b-auth-message[data-type="info"],
.p70b-auth-dev-code {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.p70b-auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin-top: 14px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: #f0fdfa;
  padding: 10px 12px;
  color: #115e59;
}

.p70b-auth-hint span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.p70b-auth-hint p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body.p70b-auth-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .p70b-header-actions {
    justify-self: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .p70b-header-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .p70b-auth-entry,
  .p70b-auth-button,
  .p59u-header__cta {
    flex: 1 1 150px;
  }

  .p70b-auth-button {
    align-items: center;
    min-width: 0;
  }

  .p70b-auth-button small {
    max-width: 100%;
  }

  .p70b-auth-logout {
    flex: 0 0 auto;
  }

  .p70b-auth-modal {
    padding: 12px;
  }

  .p70b-auth-modal__panel {
    padding: 20px;
  }
}
