.a6-user-manager-frontend .a6-auth-shell {
  --a6-card: #ffffff;
  --a6-text: #121926;
  --a6-muted: #5f6b7a;
  --a6-brand: #0f4fa8;
  --a6-brand-hover: #0b3f85;
  --a6-border: #d8e0ea;
  --a6-success-bg: #e9f8f0;
  --a6-success-text: #175d3b;
  --a6-error-bg: #fdecec;
  --a6-error-text: #9a1a1a;
  margin: 2rem auto;
  max-width: 620px;
}

.a6-user-manager-frontend .a6-auth-card {
  background: var(--a6-card);
  border: 1px solid var(--a6-border);
  border-radius: 12px;
  box-shadow: 0 18px 35px rgba(14, 27, 46, 0.08);
  color: var(--a6-text);
  margin: 0 auto;
  max-width: 520px;
  padding: 2rem;
}

.a6-user-manager-frontend .a6-auth-card--wide {
  max-width: 620px;
}

.a6-user-manager-frontend .a6-auth-card h2 {
  margin: 0 0 1rem;
}

.a6-user-manager-frontend .a6-auth-form {
  display: grid;
  gap: 0.9rem;
}

.a6-user-manager-frontend .a6-auth-form label {
  color: var(--a6-text);
  display: grid;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.35rem;
}

.a6-user-manager-frontend .a6-auth-form input {
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.a6-user-manager-frontend .a6-password-field {
  align-items: center;
  background: transparent;
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  display: flex;
  min-height: calc(1em + 1.4rem + 2px);
  overflow: hidden;
  width: 100%;
}

.a6-user-manager-frontend .a6-password-field > input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  padding-bottom: 0.7rem;
  padding-right: 0.35rem;
  padding-top: 0.7rem;
  width: 100%;
}

.a6-user-manager-frontend .a6-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #98a3b3;
  cursor: pointer;
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  line-height: 0;
  margin: 0 0.75rem 0 0;
  padding: 0;
  position: static;
  user-select: none;
  width: 1.25rem;
  flex: 0 0 1.25rem;
}

.a6-user-manager-frontend .a6-password-toggle svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 1rem;
}

.a6-user-manager-frontend .a6-password-toggle__pupil {
  fill: currentColor;
  stroke: none;
}

.a6-user-manager-frontend .a6-password-toggle__slash {
  display: none;
}

.a6-user-manager-frontend .a6-password-toggle.is-visible .a6-password-toggle__slash {
  display: block;
}

.a6-user-manager-frontend .a6-password-toggle:hover {
  color: #6b7787;
}

.a6-user-manager-frontend .a6-password-toggle:focus,
.a6-user-manager-frontend .a6-password-toggle:focus-visible {
  color: var(--a6-brand);
  outline: none;
}

.a6-user-manager-frontend .a6-password-field:focus-within {
  border-color: var(--a6-brand);
  box-shadow: 0 0 0 3px rgba(15, 79, 168, 0.17);
}

.a6-user-manager-frontend .a6-auth-form textarea {
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  min-height: 110px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
}

.a6-user-manager-frontend .a6-auth-form input:focus {
  border-color: var(--a6-brand);
  box-shadow: 0 0 0 3px rgba(15, 79, 168, 0.17);
  outline: none;
}

/* Keep browser autofill from overriding field background/colors. */
.a6-user-manager-frontend .a6-auth-form input:-webkit-autofill,
.a6-user-manager-frontend .a6-auth-form input:-webkit-autofill:hover,
.a6-user-manager-frontend .a6-auth-form input:-webkit-autofill:focus,
.a6-user-manager-frontend .a6-auth-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--a6-card) inset !important;
  box-shadow: 0 0 0 1000px var(--a6-card) inset !important;
  -webkit-text-fill-color: var(--a6-text) !important;
  caret-color: var(--a6-text);
  transition: background-color 5000s ease-in-out 0s;
}

.a6-user-manager-frontend .a6-auth-form textarea:focus {
  border-color: var(--a6-brand);
  box-shadow: 0 0 0 3px rgba(15, 79, 168, 0.17);
  outline: none;
}

.a6-user-manager-frontend .a6-auth-form button[type="submit"] {
  background: var(--a6-brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.78rem 1rem;
}

.a6-user-manager-frontend .a6-auth-form button[type="submit"]:hover {
  background: var(--a6-brand-hover);
}

.a6-user-manager-frontend .a6-account-photo {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  margin: 0 auto 0.2rem;
}

.a6-user-manager-frontend .a6-account-photo__upload {
  cursor: pointer;
  display: block;
  position: relative;
}

.a6-user-manager-frontend .a6-account-photo__preview {
  align-items: center;
  background: #eceff3;
  border: 1px solid var(--a6-border);
  border-radius: 999px;
  color: #8f98a3;
  display: flex;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.a6-user-manager-frontend .a6-account-photo__preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.a6-user-manager-frontend .a6-account-photo__silhouette {
  fill: none;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  width: 34px;
}

.a6-user-manager-frontend .a6-account-photo__overlay {
  align-items: center;
  background: rgba(15, 79, 168, 0.78);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.a6-user-manager-frontend .a6-account-photo__upload:hover .a6-account-photo__overlay,
.a6-user-manager-frontend .a6-account-photo__upload:focus-within .a6-account-photo__overlay {
  opacity: 1;
}

.a6-user-manager-frontend .a6-account-photo__input {
  display: none !important;
}

.a6-user-manager-frontend .a6-account-photo__fields {
  display: flex;
  justify-content: center;
}

.a6-user-manager-frontend .a6-account-photo__fields label {
  margin: 0;
}

.a6-user-manager-frontend .a6-account-photo__remove-form {
  margin: 0;
}

.a6-user-manager-frontend .a6-account-photo__remove-button {
  background: #fff;
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  color: var(--a6-text);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.3rem 0.55rem;
}

.a6-user-manager-frontend .a6-account-photo__remove-button:hover {
  border-color: var(--a6-brand);
  color: var(--a6-brand);
}

.a6-user-manager-frontend .a6-inline {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.a6-user-manager-frontend .a6-auth-form label.a6-inline {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.a6-user-manager-frontend .a6-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--a6-border);
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  min-width: 18px;
  padding: 0;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 18px;
}

.a6-user-manager-frontend .a6-inline input[type="checkbox"]:hover {
  border-color: var(--a6-brand);
}

.a6-user-manager-frontend .a6-inline input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(15, 79, 168, 0.18);
  outline: none;
}

.a6-user-manager-frontend .a6-inline input[type="checkbox"]:checked {
  background: var(--a6-brand);
  border-color: var(--a6-brand);
}

.a6-user-manager-frontend .a6-inline input[type="checkbox"]:checked::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 6px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 4px;
}

.a6-user-manager-frontend .a6-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.a6-user-manager-frontend .a6-auth-links--compact {
  margin-top: 0.35rem;
}

.a6-user-manager-frontend .a6-auth-links a {
  color: var(--a6-brand);
  font-weight: 600;
  text-decoration: none;
}

.a6-user-manager-frontend .a6-auth-links a:hover {
  text-decoration: underline;
}

.a6-user-manager-frontend .a6-social-auth {
  margin-top: 0.75rem;
}

.a6-user-manager-frontend .a6-social-auth-divider {
  margin: 0.7rem 0 0.9rem;
  text-align: center;
}

.a6-user-manager-frontend .a6-google-auth-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  color: #1f2937;
  display: inline-flex;
  font-weight: 700;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.72rem 1rem;
  text-decoration: none;
  width: 100%;
}

.a6-user-manager-frontend .a6-apple-auth-button {
  align-items: center;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.72rem 1rem;
  text-decoration: none;
  width: 100%;
}

.a6-user-manager-frontend .a6-google-auth-button:hover {
  border-color: #c0cad8;
  box-shadow: 0 1px 0 rgba(15, 79, 168, 0.06);
  color: #111827;
}

.a6-user-manager-frontend .a6-apple-auth-button:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.a6-user-manager-frontend .a6-google-auth-button svg {
  display: inline-block;
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.a6-user-manager-frontend .a6-apple-auth-button svg {
  display: inline-block;
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.a6-user-manager-frontend .a6-passkey-login {
  margin-top: 0.75rem;
}

.a6-user-manager-frontend .a6-passkey-login-button {
  background: #fff;
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  color: var(--a6-brand);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  width: 100%;
}

.a6-user-manager-frontend .a6-passkey-login-button:hover {
  background: rgba(15, 79, 168, 0.06);
  border-color: var(--a6-brand);
}

.a6-user-manager-frontend .a6-passkey-button-icon {
  display: inline-block;
  fill: currentColor;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  position: relative;
  top: 0.06rem;
}

.a6-user-manager-frontend .a6-auth-notice {
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
}

.a6-user-manager-frontend .a6-auth-notice--success {
  background: var(--a6-success-bg);
  color: var(--a6-success-text);
}

.a6-user-manager-frontend .a6-auth-notice--error {
  background: var(--a6-error-bg);
  color: var(--a6-error-text);
}

.a6-user-manager-frontend .a6-device-section {
  margin-top: 1.25rem;
}

.a6-user-manager-frontend .a6-accordion-section {
  border: 1px solid var(--a6-border);
  border-radius: 10px;
  overflow: hidden;
}

.a6-user-manager-frontend .a6-accordion-toggle {
  align-items: center;
  background: #f8fbff;
  border: 0;
  color: var(--a6-text);
  cursor: pointer;
  display: flex;
  font-size: 1.02rem;
  font-weight: 700;
  justify-content: space-between;
  margin: 0 !important;
  padding: 0.95rem 1rem;
  text-align: left;
  width: 100%;
}

.a6-user-manager-frontend .a6-accordion-section.is-open .a6-accordion-toggle {
  margin-bottom: 16px !important;
}

.a6-user-manager-frontend .a6-accordion-toggle:hover {
  background: rgba(15, 79, 168, 0.09);
}

.a6-user-manager-frontend .a6-accordion-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(15, 79, 168, 0.25);
  outline: none;
}

.a6-user-manager-frontend .a6-accordion-caret {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
  height: 0.5rem;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  width: 0.5rem;
}

.a6-user-manager-frontend .a6-accordion-section.is-open .a6-accordion-caret {
  transform: rotate(-135deg);
}

.a6-user-manager-frontend .a6-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.a6-user-manager-frontend .a6-accordion-panel-inner {
  padding: 0 1rem 1rem;
}

.a6-user-manager-frontend .a6-accordion-section:not(.is-open) .a6-accordion-panel {
  max-height: 0 !important;
}

.a6-user-manager-frontend .a6-accordion-section:not(.is-open) .a6-accordion-panel-inner {
  padding: 0;
}

.a6-user-manager-frontend .a6-device-section h3 {
  margin: 0 0 0.75rem;
}

.a6-user-manager-frontend .a6-device-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.a6-user-manager-frontend .a6-device-item {
  border: 1px solid var(--a6-border);
  border-radius: 10px;
  box-sizing: border-box;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  padding: 0.9rem;
}

.a6-user-manager-frontend .a6-device-item__meta {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.a6-user-manager-frontend .a6-device-item__headline {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.a6-user-manager-frontend .a6-device-item__meta span {
  color: var(--a6-muted);
  font-size: 0.9rem;
}

.a6-user-manager-frontend .a6-device-badge {
  align-items: center;
  background: rgba(15, 79, 168, 0.1);
  border-radius: 999px;
  color: var(--a6-brand);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.3rem;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  width: fit-content;
}

.a6-user-manager-frontend .a6-device-badge--trusted {
  background: #dff7e7;
  color: #1f7a3d;
}

.a6-user-manager-frontend .a6-device-badge__icon {
  font-size: 0.66rem;
  line-height: 1;
  transform: translateY(-0.01rem);
}

.a6-user-manager-frontend .a6-device-item__actions {
  align-items: start;
  display: flex;
  justify-self: end;
}

.a6-user-manager-frontend .a6-device-remove-button {
  align-items: center;
  background: rgba(219, 39, 39, 0.12);
  border: 1px solid rgba(219, 39, 39, 0.28);
  border-radius: 8px;
  color: #b91c1c;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  width: 34px;
}

.a6-user-manager-frontend .a6-device-remove-button:hover {
  background: rgba(219, 39, 39, 0.18);
  border-color: rgba(185, 28, 28, 0.42);
  color: #991b1b;
}

.a6-user-manager-frontend .a6-device-remove-button:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
  outline: none;
}

.a6-user-manager-frontend .a6-device-empty {
  color: var(--a6-muted);
  margin: 0.2rem 0 0;
}

.a6-user-manager-frontend .a6-device-details summary {
  align-items: center;
  color: var(--a6-brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  list-style: none;
  margin-top: 0.25rem;
}

.a6-user-manager-frontend .a6-device-details summary::-webkit-details-marker {
  display: none;
}

.a6-user-manager-frontend .a6-device-details summary::marker {
  content: "";
}

.a6-user-manager-frontend .a6-device-details__chevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
  height: 0.42rem;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.16s ease;
  width: 0.42rem;
}

.a6-user-manager-frontend .a6-device-details[open] .a6-device-details__chevron {
  transform: rotate(-135deg);
}

.a6-user-manager-frontend .a6-device-details p {
  color: var(--a6-muted);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
  word-break: break-word;
}

.a6-user-manager-frontend .a6-device-add-current {
  margin: 0.35rem 0 0.9rem;
}

.a6-user-manager-frontend .a6-device-add-current button {
  width: fit-content;
}

.a6-user-manager-frontend .a6-google-account-card,
.a6-user-manager-frontend .a6-apple-account-card {
  align-items: center;
  border: 1px solid var(--a6-border);
  border-radius: 10px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  margin: 0.35rem 0 0.9rem;
  padding: 0.85rem;
}

.a6-user-manager-frontend .a6-google-account-card__avatar {
  border-radius: 999px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.a6-user-manager-frontend .a6-apple-account-card__icon {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.a6-user-manager-frontend .a6-apple-account-card__icon svg {
  height: 22px;
  width: 22px;
}

.a6-user-manager-frontend .a6-google-account-card__meta,
.a6-user-manager-frontend .a6-apple-account-card__meta {
  display: grid;
  gap: 0.25rem;
}

.a6-user-manager-frontend .a6-google-account-card__meta span,
.a6-user-manager-frontend .a6-apple-account-card__meta span {
  color: var(--a6-muted);
  font-size: 0.9rem;
}

.a6-user-manager-frontend .a6-google-unlink-button {
  background: rgba(219, 39, 39, 0.12) !important;
  border: 1px solid rgba(219, 39, 39, 0.28) !important;
  color: #991b1b !important;
}

.a6-user-manager-frontend .a6-google-unlink-button:hover {
  background: rgba(219, 39, 39, 0.18) !important;
}

.a6-user-manager-frontend .a6-apple-unlink-button {
  background: rgba(219, 39, 39, 0.12) !important;
  border: 1px solid rgba(219, 39, 39, 0.28) !important;
  color: #991b1b !important;
}

.a6-user-manager-frontend .a6-apple-unlink-button:hover {
  background: rgba(219, 39, 39, 0.18) !important;
}

.a6-user-manager-frontend .a6-passkey-actions {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.9rem;
}

.a6-user-manager-frontend .a6-passkey-register-button {
  background: var(--a6-brand);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  width: fit-content;
}

.a6-user-manager-frontend .a6-passkey-label-input {
  border: 1px solid var(--a6-border);
  border-radius: 8px;
  max-width: 420px;
  padding: 0.7rem 0.85rem;
}

.a6-user-manager-frontend .a6-modal {
  display: none;
}

.a6-user-manager-frontend .a6-modal.is-open {
  display: block;
}

.a6-user-manager-frontend .a6-modal__backdrop {
  background: rgba(10, 18, 33, 0.48);
  inset: 0;
  position: fixed;
  z-index: 9998;
}

.a6-user-manager-frontend .a6-modal__dialog {
  background: #fff;
  border: 1px solid var(--a6-border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(10, 18, 33, 0.18);
  left: 50%;
  max-width: 430px;
  padding: 1rem;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  z-index: 9999;
}

.a6-user-manager-frontend .a6-modal__dialog h3 {
  margin: 0 0 0.45rem;
}

.a6-user-manager-frontend .a6-modal__dialog p {
  color: var(--a6-muted);
  margin: 0 0 0.9rem;
}

.a6-user-manager-frontend .a6-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.a6-user-manager-frontend .a6-modal__actions form {
  margin: 0;
}

.a6-user-manager-frontend .a6-modal__button {
  align-items: center;
  background: var(--a6-brand, #0f4fa8);
  border: 1px solid var(--a6-brand, #0f4fa8);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: center;
  padding: 0.45rem 0.75rem;
}

.a6-user-manager-frontend .a6-modal__button--secondary {
  background: #fff;
  border-color: var(--a6-border, #d7deea);
  color: var(--a6-text, #10203a);
}

.a6-user-manager-frontend .a6-hp {
  display: none !important;
}

@media (max-width: 640px) {
  .a6-user-manager-frontend .a6-auth-shell {
    margin: 1rem;
  }

  .a6-user-manager-frontend .a6-auth-card {
    padding: 1.2rem;
  }

  .a6-user-manager-frontend .a6-account-photo {
    justify-items: center;
  }

  .a6-user-manager-frontend .a6-device-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .a6-user-manager-frontend .a6-device-item__actions {
    align-items: stretch;
    display: flex;
  }
}
