/* Nuboc IP LLC. All rights reserved. */

/* =============================================================================
   Identity — Split-panel auth layout
   Used by: login, create account, reset password, verify account
   ============================================================================= */

/* Account main content */
.nax-id-main {
  min-height: calc(100vh - 48px);
}

/* Page shell */
.nax-id-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--nax-canvas);
  font-family: var(--nax-font-sans);
}

/* Card wrap */
.nax-id-wrap {
  display: flex;
  width: 700px;
  min-height: 520px;
  border-radius: var(--nax-r-xl);
  overflow: hidden;
  border: 1px solid var(--nax-ink-10);
  box-shadow: var(--nax-sh-md);
}

.nax-id-form-inner > svg[viewBox] {
  width: 140px !important;
  height: 140px !important;
}

.nax-id-form-inner code {
  color: var(--nax-ink);
  background: var(--nax-ink-05);
  border-color: var(--nax-ink-10);
}

/* Context bar — white strip below topnav with breadcrumbs */
.nax-id-context-bar {
  background: var(--nax-surface);
  border-bottom: 1px solid var(--nax-ink-08);
  padding: 0 20px;
  height: 40px;
  display: flex;
  align-items: center;
}

.nax-id-context-bar .nax-breadcrumbs {
  padding: 0;
  font-size: 0.846rem;
  gap: 6px;
}

.nax-id-context-bar .nax-breadcrumbs-sep {
  font-size: 0.769rem;
}

.nax-id-context-bar .nax-breadcrumbs-current {
  color: var(--nax-ink);
  font-weight: 500;
}

/* Top nav */
.nax-id-topnav {
  height: 48px;
  background: var(--nax-body);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nax-id-topnav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Navy source logo rendered white to read on the dark topnav */
.nax-id-topnav__logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nax-id-topnav__name {
  font-size: 14px;
  font-weight: 500;
  color: #f3f2ef;
  letter-spacing: -.2px;
}

.nax-id-topnav__sub {
  font-size: 9px;
  color: rgba(243,242,239,.3);
  letter-spacing: .5px;
}

.nax-id-topnav__divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.nax-id-topnav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nax-id-topnav__link {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  color: rgba(243,242,239,.55);
  transition: all var(--nax-t);
}

.nax-id-topnav__link:hover {
  background: rgba(255,255,255,.08);
  color: rgba(243,242,239,.9);
  text-decoration: none;
}

.nax-id-topnav__link.is-active {
  background: rgba(255,255,255,.12);
  color: #f3f2ef;
}

.nax-id-topnav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nax-id-topnav__email {
  font-size: 12px;
  color: rgba(243,242,239,.35);
}

.nax-id-sso-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nax-id-topnav__signout {
  font-size: 12px;
  color: rgba(243,242,239,.45);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  transition: all var(--nax-t);
}

.nax-id-topnav__signout:hover {
  border-color: rgba(255,255,255,.2);
  color: rgba(243,242,239,.7);
  text-decoration: none;
}

/* Theme toggle */
.nax-id-topnav__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: rgba(243,242,239,.45);
  cursor: pointer;
  transition: background var(--nax-t), color var(--nax-t);
  flex-shrink: 0;
}

.nax-id-topnav__theme-btn:hover {
  background: rgba(255,255,255,.08);
  color: #f3f2ef;
}

.nax-theme-icon--dark { display: none; }
.nax-theme-icon--light { display: block; }

[data-theme="dark"] .nax-theme-icon--dark { display: block; }
[data-theme="dark"] .nax-theme-icon--light { display: none; }

/* Mobile menu — hidden checkbox toggle */
.nax-id-topnav__toggle {
  display: none;
}

.nax-id-topnav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  color: rgba(243,242,239,.6);
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--nax-t);
}

.nax-id-topnav__hamburger:hover {
  background: rgba(255,255,255,.08);
  color: #f3f2ef;
}

.nax-id-topnav__dropdown {
  display: none;
}

/* Dropdown link styles (shared for mobile + desktop overflow) */
.nax-id-topnav__drop-link {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(243,242,239,.7);
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--nax-t);
}

.nax-id-topnav__drop-link:hover {
  background: rgba(255,255,255,.06);
  color: #f3f2ef;
  text-decoration: none;
}

.nax-id-topnav__drop-link.is-active {
  background: rgba(255,255,255,.1);
  color: #f3f2ef;
}

.nax-id-topnav__drop-link--signout {
  color: rgba(232,123,114,.8);
}

.nax-id-topnav__drop-link--signout:hover {
  background: rgba(232,123,114,.1);
  color: #e87b72;
}

.nax-id-topnav__drop-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 6px 12px;
}

.nax-id-topnav__drop-email {
  display: block;
  padding: 6px 16px;
  font-size: 11.5px;
  color: rgba(243,242,239,.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nax-id-topnav__links,
  .nax-id-topnav__divider,
  .nax-id-topnav__user {
    display: none;
  }

  .nax-id-topnav__hamburger {
    display: flex;
  }

  .nax-id-topnav__dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--nax-body);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    flex-direction: column;
    z-index: 99;
  }

  .nax-id-topnav__toggle:checked ~ .nax-id-topnav__dropdown {
    display: flex;
  }

  .nax-id-topnav__toggle:checked ~ .nax-id-topnav__hamburger {
    background: rgba(255,255,255,.1);
    color: #f3f2ef;
  }

  .nax-id-topnav {
    position: relative;
  }
}

/* Dark left panel */
.nax-id-panel {
  width: 240px;
  flex-shrink: 0;
  background: var(--nax-body);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.nax-id-panel-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Navy source logo rendered white to read on the dark auth panel */
.nax-id-panel-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nax-id-panel-wordmark {
  font-size: 15px;
  font-weight: 500;
  color: #f3f2ef;
  letter-spacing: -.2px;
}

.nax-id-panel-wordmark-sub {
  font-size: 9.5px;
  color: rgba(243, 242, 239, .28);
  letter-spacing: .5px;
  margin-top: 2px;
}

.nax-id-panel-tagline {
  font-family: var(--nax-font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(243, 242, 239, .9);
  margin: auto 0;
  padding: 24px 0;
}

.nax-id-panel-footer {
  font-size: 10px;
  color: rgba(243, 242, 239, .2);
  letter-spacing: .3px;
  margin-top: auto;
}

.nax-id-panel-watermark {
  position: absolute;
  bottom: -32px;
  right: -32px;
  opacity: .05;
  pointer-events: none;
}

/* White right panel */
.nax-id-form-panel {
  flex: 1;
  background: var(--nax-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
}

.nax-id-form-inner {
  width: 100%;
}

/* Heading block */
.nax-id-heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--nax-ink);
  letter-spacing: -.5px;
  margin-top: 0;
  margin-bottom: 5px;
  font-family: var(--nax-font-sans);
}

.nax-id-subheading {
  font-size: 13px;
  color: var(--nax-ink-45);
  margin-bottom: 24px;
}

/* Full-width ink submit button */
.nax-id-btn {
  width: 100%;
  height: 44px;
  background: var(--nax-ink);
  color: #f3f2ef;
  border: none;
  border-radius: var(--nax-r);
  font-size: 0.846rem;
  font-weight: 500;
  font-family: var(--nax-font-sans);
  cursor: pointer;
  margin-top: 6px;
  transition: background var(--nax-t);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nax-id-btn:hover {
  background: #1c1f24;
}

/* Visible keyboard focus (WCAG 2.4.7). Solid ring reads on both the light
   form panel and — with the light variant — the dark topnav. */
.nax-id-btn:focus-visible,
.nax-id-sso-btn:focus-visible,
.nax-id-form-inner a:focus-visible,
.nax-id-footer-link:focus-visible {
  outline: 2px solid var(--nax-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.nax-id-topnav__brand:focus-visible,
.nax-id-topnav__link:focus-visible,
.nax-id-topnav__signout:focus-visible {
  outline: 2px solid #f3f2ef;
  outline-offset: 2px;
  border-radius: 2px;
}

[data-theme="dark"] .nax-id-btn {
  background: #f3f2ef;
  color: #0c0e11;
}

[data-theme="dark"] .nax-id-btn:hover {
  background: #e0dfdc;
}

/* SSO divider */
.nax-id-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.nax-id-divider-line {
  flex: 1;
  height: 1px;
  background: var(--nax-ink-10);
}

.nax-id-divider-text {
  font-size: 12px;
  color: var(--nax-ink-30);
}

/* SSO buttons */
.nax-id-sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nax-id-sso-btn {
  height: 40px;
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-10);
  border-radius: var(--nax-r);
  font-size: 13px;
  font-family: var(--nax-font-sans);
  cursor: pointer;
  color: var(--nax-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background var(--nax-t);
  text-decoration: none;
}

.nax-id-sso-btn:hover {
  background: var(--nax-canvas);
  text-decoration: none;
  color: var(--nax-ink);
}

.nax-id-sso-btn--full {
  width: 100%;
}

.nax-id-btn--danger {
  background: var(--nax-red);
}

.nax-id-btn--danger:hover {
  background: var(--nax-red-dark);
}

/* The dark theme's light button would otherwise win over the danger red. */
[data-theme="dark"] .nax-id-btn--danger {
  background: var(--nax-red);
  color: #0c0e11;
}

[data-theme="dark"] .nax-id-btn--danger:hover {
  background: var(--nax-red);
  filter: brightness(1.08);
}


/* Footer */
.nax-id-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--nax-ink-08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nax-id-footer-link {
  font-size: 11.5px;
  color: var(--nax-ink-20);
  text-decoration: none;
}

.nax-id-footer-link:hover {
  color: var(--nax-ink-45);
  text-decoration: none;
}

/* Back link */
.nax-id-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nax-ink-45);
  text-decoration: none;
  margin-bottom: 24px;
}

.nax-id-back:hover {
  color: var(--nax-ink);
  text-decoration: none;
}

/* One selectable card per choice — a radio inside a label, such as which
   passkey to remove. The radio stays in the form and the tab order; the card
   shows hover, focus and the selection. */
.nax-id-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 24px;
}

.nax-id-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--nax-ink-10);
  border-radius: var(--nax-r);
  background: var(--nax-ink-03);
  cursor: pointer;
  transition: border-color var(--nax-t), background var(--nax-t);
}

.nax-id-choice:hover {
  border-color: var(--nax-ink-20);
}

.nax-id-choice:has(:checked) {
  border-color: var(--nax-accent);
  background: var(--nax-accent-dim);
}

.nax-id-choice:has(:focus-visible) {
  box-shadow: 0 0 0 2px var(--nax-accent-dim);
}

.nax-id-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nax-id-choice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--nax-r);
  background: var(--nax-ink-06);
  color: var(--nax-ink-70);
}

.nax-id-choice__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nax-id-choice__title {
  font-size: 0.846rem;
  font-weight: 500;
  color: var(--nax-ink);
}

.nax-id-choice__meta {
  font-size: 0.769rem;
  color: var(--nax-ink-45);
}

.nax-id-choice__id {
  font-family: var(--nax-font-mono);
  font-size: 0.692rem;
  color: var(--nax-ink-30);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nax-id-choice__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--nax-ink-20);
  border-radius: 50%;
  transition: border-color var(--nax-t), background var(--nax-t);
}

.nax-id-choice:has(:checked) .nax-id-choice__check {
  border-color: var(--nax-accent);
  background: var(--nax-accent);
}

.nax-id-choice:has(:checked) .nax-id-choice__check::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Input override — taller than default nax-input for auth pages */
.nax-id-form-inner .nax-input {
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

/* Field spacing */
.nax-id-form-inner .nax-field + .nax-field {
  margin-top: 14px;
}

/* Label row — label + forgot link */
.nax-id-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--nax-surface) inset;
  -webkit-text-fill-color: var(--nax-ink);
  transition: background-color 5000s ease-in-out 0s;
}


/* nax-identity.css */
.nax-id-login-banner {
  padding: 10px 20px;
  background: var(--nax-blue-bg);
  border-bottom: 1px solid var(--nax-ink-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 16px;
}

.nax-id-login-banner__info {
  color: var(--nax-ink-70);
}

.nax-id-login-banner__warning {
  color: var(--nax-amber);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nax-id-login-banner__warning a {
  color: var(--nax-red);
  text-decoration: underline;
  margin-left: 4px;
}

/* Dashboard — security score hero */
.nax-sec-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 28px;
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-08);
  border-radius: var(--nax-r-lg);
  margin-bottom: 16px;
}

.nax-sec-hero__ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.nax-sec-hero__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.nax-sec-hero__arc {
  transition: stroke-dasharray .6s cubic-bezier(.4, 0, .2, 1);
}

.nax-sec-hero__ring--green .nax-sec-hero__arc { stroke: var(--nax-green); }
.nax-sec-hero__ring--amber .nax-sec-hero__arc { stroke: var(--nax-amber); }
.nax-sec-hero__ring--red .nax-sec-hero__arc   { stroke: var(--nax-red); }

.nax-sec-hero__score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.nax-sec-hero__number {
  font-family: var(--nax-font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--nax-ink);
  line-height: 1;
}

.nax-sec-hero__pct {
  font-size: 0.846rem;
  font-weight: 600;
  color: var(--nax-ink-35);
  margin-top: 4px;
}

.nax-sec-hero__body {
  flex: 1;
  min-width: 0;
}

.nax-sec-hero__headline {
  font-size: 1.077rem;
  font-weight: 600;
  color: var(--nax-ink);
  margin: 0 0 4px;
  letter-spacing: -.02em;
}

.nax-sec-hero__sub {
  font-size: 0.846rem;
  color: var(--nax-ink-45);
  margin: 0;
}

/* Dashboard — security checklist */
.nax-sec-checks {
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-08);
  border-radius: var(--nax-r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.nax-sec-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--nax-ink-06);
}

.nax-sec-check:last-child {
  border-bottom: none;
}

.nax-sec-check__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.769rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.nax-sec-check.is-pass .nax-sec-check__icon {
  background: var(--nax-green-bg);
  color: var(--nax-green);
}

.nax-sec-check.is-fail .nax-sec-check__icon {
  background: var(--nax-ink-06);
  color: var(--nax-ink-30);
}

.nax-sec-check__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nax-sec-check__title {
  font-size: 0.846rem;
  font-weight: 600;
  color: var(--nax-ink);
}

.nax-sec-check.is-fail .nax-sec-check__title {
  color: var(--nax-ink-45);
}

.nax-sec-check__hint {
  font-size: 0.731rem;
  color: var(--nax-ink-35);
}

/* Dashboard — stats row */
.nax-sec-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.nax-sec-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-08);
  border-radius: var(--nax-r-lg);
}

.nax-sec-stat__number {
  font-family: var(--nax-font-sans);
  font-size: 1.385rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--nax-ink);
  line-height: 1;
}

.nax-sec-stat__label {
  font-size: 0.692rem;
  font-weight: 500;
  color: var(--nax-ink-35);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  .nax-sec-hero {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .nax-sec-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dashboard — quick-links grid */
.nax-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.nax-dash-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-08);
  border-radius: var(--nax-r-lg);
  text-decoration: none;
  color: var(--nax-ink);
  transition: border-color var(--nax-t), box-shadow var(--nax-t);
}

.nax-dash-card:hover {
  border-color: var(--nax-ink-20);
  box-shadow: var(--nax-sh);
  text-decoration: none;
  color: var(--nax-ink);
}

.nax-dash-card--compact {
  padding: 14px 16px;
}

.nax-dash-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--nax-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nax-dash-card__icon--md {
  width: 34px;
  height: 34px;
}

.nax-dash-card__icon--accent {
  background: var(--nax-accent-lt);
  color: var(--nax-accent);
}

.nax-dash-card__icon--green {
  background: var(--nax-green-bg);
  color: var(--nax-green);
}

.nax-dash-card__icon--amber {
  background: var(--nax-amber-bg);
  color: var(--nax-amber);
}

.nax-dash-card__icon--blue {
  background: var(--nax-blue-bg);
  color: var(--nax-blue);
}

.nax-dash-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nax-dash-card__title {
  font-size: 0.923rem;
  font-weight: 600;
  color: var(--nax-ink);
  letter-spacing: -0.01em;
}

.nax-dash-card__desc {
  font-size: 0.769rem;
  color: var(--nax-ink-45);
}

.nax-dash-card__arrow {
  flex-shrink: 0;
  color: var(--nax-ink-20);
  transition: color var(--nax-t), transform var(--nax-t);
}

.nax-dash-card:hover .nax-dash-card__arrow {
  color: var(--nax-ink-45);
  transform: translateX(2px);
}

@media (max-width: 600px) {
  .nax-dash-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive — mobile */
@media (max-width: 600px) {
  .nax-id-page {
    padding: 0;
    align-items: flex-start;
    background: var(--nax-surface);
  }

  .nax-id-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .nax-id-panel {
    width: 100%;
    min-height: auto;
    padding: 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nax-id-panel-tagline,
  .nax-id-panel-footer,
  .nax-id-panel-watermark {
    display: none;
  }

  .nax-id-form-panel {
    padding: 28px 24px;
    align-items: flex-start;
    flex: 1;
  }

  .nax-id-form-inner {
    max-width: 100%;
  }
}

/* Responsive — tablet */
@media (min-width: 601px) and (max-width: 800px) {
  .nax-id-wrap {
    width: 100%;
    max-width: 700px;
  }

  .nax-id-panel {
    width: 200px;
  }

  .nax-id-panel-tagline {
    font-size: 17px;
  }
}

/* ── Utilities the views used to write inline ────────────────────────────────
   The Content-Security-Policy allows no inline style attributes, so the
   browser dropped them; these carry the same values as classes. */
.nax-m-0 { margin: 0; }
.nax-mt-5 { margin-top: 20px; }
.nax-mb-5 { margin-bottom: 20px; }
.nax-text-md { font-size: 0.923rem; }
.nax-color-ink-40 { color: var(--nax-ink-40); }
.nax-color-warning-dark { color: var(--nax-amber-dark); }
.nax-cursor-pointer { cursor: pointer; }
.nax-w-full { width: 100%; }
.nax-max-w-60 { max-width: 60%; }
.nax-cell-tight { padding: 6px 0; }
.nax-border-b { border-bottom: 1px solid var(--nax-ink-08); }
.nax-pre-wrap { white-space: pre-wrap; word-break: break-all; }
.nax-check-accent { accent-color: var(--nax-blue); }

.nax-self-start { align-self: flex-start; }
.nax-max-w-400 { max-width: 400px; }
.nax-w-200 { width: 200px; }
.nax-p-6 { padding: 24px; }
.nax-my-5 { margin: 20px 0; }
.nax-list-plain { list-style: none; padding: 0; margin: 0; }
.nax-list-indent { margin: 4px 0 0 16px; }
.nax-table-plain { border-collapse: collapse; width: 100%; }
.nax-label-cell { width: 100px; }

/* ── Small components the views used to write inline ──────────────────────── */

.nax-alert--warning {
  background: var(--nax-amber-bg);
  border: 1px solid var(--nax-amber-light);
  border-radius: var(--nax-r);
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--nax-amber-dark);
}

/* A shaded panel set apart from the form around it. */
.nax-panel {
  background: var(--nax-ink-03);
  border: 1px solid var(--nax-ink-08);
  border-radius: var(--nax-r-lg);
  padding: 20px;
}

.nax-note {
  padding: 12px 16px;
  background: var(--nax-ink-03);
  border-radius: var(--nax-r);
  font-size: 1rem;
}

.nax-callout--info {
  padding: 14px 16px;
  background: var(--nax-accent-dim);
  border: 1px solid rgba(var(--nax-accent-rgb), .25);
  border-radius: var(--nax-r);
}

.nax-callout__title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.nax-callout__text  { font-size: 1rem; color: var(--nax-ink-45); margin: 0 0 10px; }

.nax-prose { font-size: 1rem; line-height: 1.6; color: var(--nax-ink-45); }

.nax-steps { font-size: 1rem; color: var(--nax-ink-45); margin-top: 8px; padding-left: 18px; line-height: 1.8; }
.nax-steps--numbered { margin: 0 0 0 20px; padding: 0; line-height: 1.9; font-size: inherit; color: inherit; }
.nax-steps--nested { margin: 4px 0 4px 20px; }

.nax-disclosure { font-size: 1rem; font-weight: 600; cursor: pointer; user-select: none; }

.nax-code {
  font-size: 0.846rem;
  background: var(--nax-ink-03);
  padding: 1px 4px;
  border-radius: 3px;
}

.nax-code-block {
  display: block;
  font-family: var(--nax-font-mono);
  font-size: 0.846rem;
  background: var(--nax-ink-03);
  padding: 8px 12px;
  border-radius: var(--nax-r);
  word-break: break-all;
}

.nax-pill--success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--nax-green-bg);
  border-radius: 999px;
  font-size: 1rem;
}

.nax-form__card-body--row { flex-direction: row; padding-left: 0; }
.nax-form__card--danger   { border-color: var(--nax-red-light); }
.nax-form__card--info     { border-left: 3px solid var(--nax-blue); }
.nax-form__card--warning  { border: 1px solid var(--nax-amber-light); background: var(--nax-amber-bg); }
.nax-form__meta-row--padded { padding: 12px 20px; border-bottom: 1px solid var(--nax-ink-05); }

.nax-dash-card__icon--neutral { background: var(--nax-ink-05); color: var(--nax-ink-45); }
.nax-table-wrap--flush { border: none; border-radius: 0; }
.nax-avatar--accent { background: var(--nax-accent-lt); color: var(--nax-accent); }

.nax-id-topnav__back { font-size: 11px; color: rgba(243, 242, 239, .4); }
.nax-id-heading--sub { font-size: 18px; }

/* The consent screen's list of what an application asks for. */
.nax-scope-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--nax-ink-08);
}

.nax-scope-item__label { font-size: 14px; color: var(--nax-ink); }

/* Recovery codes, two to a row. */
.nax-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.nax-recovery-code {
  font-family: var(--nax-font-mono);
  font-size: 0.846rem;
  color: var(--nax-ink);
  letter-spacing: .05em;
}

.nax-code-input { font-family: var(--nax-font-mono); letter-spacing: .05em; }

/* Authenticator app setup: the QR code beside its manual key. */
.nax-otp-setup {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.nax-otp-setup__qr {
  flex-shrink: 0;
  background: #fff;
  padding: 10px;
  border-radius: var(--nax-r);
  border: 1px solid var(--nax-ink-10);
}

.nax-otp-setup__key {
  display: block;
  font-family: var(--nax-font-mono);
  font-size: 0.846rem;
  background: var(--nax-surface);
  border: 1px solid var(--nax-ink-10);
  border-radius: var(--nax-r-sm);
  padding: 6px 10px;
  letter-spacing: .1em;
  color: var(--nax-ink);
}

.nax-otp-input {
  width: 160px;
  font-family: var(--nax-font-mono);
  font-size: 1.2rem;
  letter-spacing: .3em;
  text-align: center;
}

@media (max-width: 600px) {
  .nax-otp-setup { flex-direction: column; }
  .nax-code-grid { grid-template-columns: 1fr; }
}

/* Pages with more to show get a wider card; phones and tablets keep theirs. */
@media (min-width: 801px) {
  .nax-id-wrap--wide { width: 800px; }
  .nax-id-wrap--tall { min-height: 580px; }
}
