/**
 * AirLode ID hosted product UI — shared stylesheet.
 * Served from /assets/hosted-ui/hosted-ui.css so login CSP (style-src 'self') applies.
 */
:root {
  --bg: #eef2f0;
  --bg-deep: #e2eae6;
  --surface: #ffffff;
  --ink: #12201a;
  --muted: #5a6b62;
  --border: #c9d5ce;
  --accent: #0b3d2e;
  --accent-hover: #0f4f3c;
  --accent-soft: #e7f2ec;
  --cta-fg: #f4faf7;
  --ok: #1a7a45;
  --ok-bg: #e8f6ee;
  --ok-border: #b7dfc6;
  --warn: #8a6a12;
  --warn-bg: #fff7e0;
  --warn-border: #e6d39a;
  --danger: #8b1e1e;
  --danger-bg: #fbeaea;
  --danger-border: #e3b6b6;
  --focus: #1a5c45;
  --pass-bg: linear-gradient(145deg, #0b3d2e 0%, #1a5c45 55%, #0f2f24 100%);
  --shadow: 0 10px 30px rgba(18, 32, 26, 0.08);
  --radius: 0.65rem;
  /* Authenticated portal surface tokens (calm, high-contrast, WCAG AA). */
  --portal-bg: #f5f7f6;
  --portal-surface: #ffffff;
  --portal-border: #e4eae7;
  --portal-ink: #12201a;
  --portal-muted: #51605a;
  --sidebar-w: 15.5rem;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", "Gill Sans", sans-serif;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --max-content: 70rem;
  --max-auth: 26rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1714;
    --bg-deep: #0a110e;
    --surface: #16211c;
    --ink: #e8f0eb;
    --muted: #a3b5ab;
    --border: #2a3b33;
    --accent: #3d9a78;
    --accent-hover: #4cb08a;
    --accent-soft: #1a2f27;
    --cta-fg: #06110c;
    --focus: #5ec49a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --portal-bg: #0f1714;
    --portal-surface: #16211c;
    --portal-border: #2a3b33;
    --portal-ink: #e8f0eb;
    --portal-muted: #a3b5ab;
  }

  body {
    background:
      radial-gradient(ellipse 90% 55% at 8% -10%, #1a3328 0%, transparent 55%),
      radial-gradient(ellipse 70% 45% at 100% 0%, #152028 0%, transparent 50%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 8% -10%, #d7ebe2 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #dce6ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Public shell ─────────────────────────────────────────── */
.site-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.site-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup img {
  height: 2rem;
  width: auto;
  display: block;
}

.brand-lockup .wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.site-footer {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer-status {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.site-footer-status-toggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.site-footer-status-toggle:hover,
.site-footer-status-toggle:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.site-footer-status-panel {
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--bg, #fff) 92%, var(--muted));
  min-width: 12rem;
  max-width: 18rem;
}

.site-footer-status-heading {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer-status-value {
  margin: 0;
  color: var(--fg, inherit);
  font-weight: 600;
}

.site-footer-status-value[data-state='ready']::before,
.site-footer-status-value[data-state='not-ready']::before,
.site-footer-status-value[data-state='unknown']::before,
.site-footer-status-value[data-state='loading']::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--muted);
}

.site-footer-status-value[data-state='ready']::before {
  background: #2f7d4a;
}

.site-footer-status-value[data-state='not-ready']::before {
  background: #b45309;
}

.site-footer-status-value[data-state='loading']::before {
  background: var(--muted);
}

.site-footer-status-noscript {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.site-footer-status-retry {
  appearance: none;
  margin: 0.55rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.site-footer-status-retry:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn,
button.btn,
button[type="submit"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--cta-fg);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
button[type="submit"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--cta-fg);
}

.btn.secondary,
button.secondary {
  background: transparent;
  color: var(--accent);
}

.btn.secondary:hover,
button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-weight: 560;
}

/* ── Landing ──────────────────────────────────────────────── */
.landing-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  max-width: 40rem;
}

.hero .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.hero .lede-secondary {
  margin: -0.5rem 0 1.75rem;
  font-size: 1rem;
}

.hero .hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 560;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(26, 122, 69, 0.2);
}

.section {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(18, 32, 26, 0.08);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}

.section .section-lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 40rem;
}

.capability-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.capability {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.capability h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--cta-fg);
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.steps span {
  color: var(--muted);
}

.privacy-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.privacy-list li + li {
  margin-top: 0.45rem;
}

.business-panel {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.business-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ── Auth / interaction card ────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Transactional OIDC runtime: centred card, no public-footer chrome. */
.auth-shell.auth-runtime {
  min-height: 100dvh;
}

.auth-landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-landing > .landing-main {
  flex: 1 0 auto;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.auth-shell.auth-runtime > .auth-main {
  min-height: 100%;
  width: 100%;
}

@media (max-width: 480px) {
  .auth-shell.auth-runtime > .auth-main {
    align-items: stretch;
    padding: 1rem 0.85rem;
  }

  .auth-shell.auth-runtime .auth-card {
    margin: auto 0;
  }
}

.auth-shell > .site-footer.al-public-footer,
.auth-landing > .site-footer.al-public-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.auth-card {
  width: 100%;
  max-width: var(--max-auth);
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
}

.auth-card .brand-lockup {
  margin-bottom: 1.15rem;
}

.auth-card .brand-lockup img {
  height: 1.85rem;
}

.auth-card h1 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.auth-card .lede {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.field .hint {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/*
 * Auth form fields stay light-surface controls even when the page follows
 * prefers-color-scheme: dark. Inherited --ink becomes light and made typed
 * email text unreadable on the white input background.
 */
.field input[type="email"],
.field input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="text"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c9d5ce;
  border-radius: var(--radius);
  font: inherit;
  color-scheme: light;
  background-color: #ffffff;
  color: #12201a;
  caret-color: #12201a;
  -webkit-text-fill-color: #12201a;
}

.field input[type="email"]::placeholder,
.field input[type="text"]::placeholder,
.auth-card input[type="email"]::placeholder,
.auth-card input[type="text"]::placeholder {
  color: #5a6b62;
  -webkit-text-fill-color: #5a6b62;
  opacity: 1;
}

.field input[type="email"]:focus,
.field input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="text"]:focus {
  outline: 2px solid #1a5c45;
  outline-offset: 2px;
  border-color: #1a5c45;
}

.field input[type="email"]:disabled,
.field input[type="text"]:disabled,
.auth-card input[type="email"]:disabled,
.auth-card input[type="text"]:disabled {
  background-color: #f0f4f2;
  color: #3a4a42;
  -webkit-text-fill-color: #3a4a42;
  caret-color: #3a4a42;
  opacity: 1;
}

.field input[type="email"]:user-invalid,
.field input[type="text"]:user-invalid,
.auth-card input[type="email"]:user-invalid,
.auth-card input[type="text"]:user-invalid,
.field.is-error input[type="email"],
.field.is-error input[type="text"] {
  border-color: #8b1e1e;
}

.field input[type="email"]:-webkit-autofill,
.field input[type="email"]:-webkit-autofill:hover,
.field input[type="email"]:-webkit-autofill:focus,
.field input[type="text"]:-webkit-autofill,
.field input[type="text"]:-webkit-autofill:hover,
.field input[type="text"]:-webkit-autofill:focus,
.auth-card input[type="email"]:-webkit-autofill,
.auth-card input[type="email"]:-webkit-autofill:hover,
.auth-card input[type="email"]:-webkit-autofill:focus,
.auth-card input[type="text"]:-webkit-autofill,
.auth-card input[type="text"]:-webkit-autofill:hover,
.auth-card input[type="text"]:-webkit-autofill:focus {
  -webkit-text-fill-color: #12201a;
  caret-color: #12201a;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 99999s ease-out;
}

/* ── Segmented OTP entry ──────────────────────────────────── */
.otp-field .otp-shell {
  position: relative;
  margin-top: 0.15rem;
}

.otp-cells {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
}

.otp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid #c9d5ce;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
  color: #12201a;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.otp-cell.is-filled {
  border-color: #9bb5a8;
  background: #fbfefc;
}

.otp-cell.is-active {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(26, 92, 69, 0.22);
}

.otp-field.is-error .otp-cell {
  border-color: var(--danger-border);
}

.otp-field.is-error .otp-cell.is-active {
  box-shadow: 0 0 0 2px rgba(139, 30, 30, 0.18);
}

.otp-field.is-submitting .otp-cell {
  opacity: 0.72;
}

.otp-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: var(--radius);
  background: transparent !important;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  letter-spacing: 0;
  outline: none;
  z-index: 1;
  opacity: 0;
}

.otp-input:focus {
  outline: none;
}

.otp-shell:focus-within .otp-cell.is-active {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(26, 92, 69, 0.28);
}

.otp-actions .otp-progress {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.otp-verify-form[data-otp-submitting="1"] [data-otp-progress] {
  display: block;
}

.otp-verify-form[data-otp-submitting="1"] .otp-submit {
  opacity: 0.7;
}

@media (max-width: 420px) {
  .otp-cells {
    gap: 0.28rem;
  }
  .otp-cell {
    min-height: 2.55rem;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otp-cell {
    transition: none;
  }
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.auth-actions--passkey {
  margin-bottom: 1.25rem;
}

form.auth-followup {
  margin-top: 0.75rem;
}

.auth-card .auth-actions + .loading-row,
.auth-card .loading-row + .auth-actions {
  margin-top: 1.25rem;
}

.auth-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-meta details summary {
  cursor: pointer;
  font-weight: 560;
}

.auth-meta code {
  font-size: 0.8rem;
  word-break: break-all;
}

.secure-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding: 0.7rem 0.75rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.88rem;
}

.banner {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.banner h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.banner p {
  margin: 0;
}

.banner.error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.banner.success {
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.banner.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
}

.banner.info {
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: var(--border);
  }
}

/* ── Authenticated portal shell (sidebar + topbar) ─────────── */
.portal-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--portal-bg);
}

/* Sidebar — sticky primary navigation on desktop. */
.portal-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.1rem 0.85rem 1.1rem;
  background: var(--portal-surface);
  border-right: 1px solid var(--portal-border);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: var(--portal-ink);
}

.portal-brand img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.portal-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: var(--portal-muted);
  font-size: 0.94rem;
  font-weight: 560;
  line-height: 1.2;
}

.portal-nav-link .nav-ico {
  flex-shrink: 0;
  color: #7c8a83;
}

.portal-nav-link:hover {
  background: #f0f4f2;
  color: var(--portal-ink);
}

.portal-nav-link:hover .nav-ico {
  color: var(--accent);
}

.portal-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.portal-nav-link.active .nav-ico {
  color: var(--accent);
}

.portal-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--portal-border);
}

.portal-account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.4rem;
  min-width: 0;
  border-radius: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.portal-account:hover {
  background: #f0f4f2;
}

.portal-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cta-fg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portal-account-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-account-text strong {
  font-size: 0.9rem;
  color: var(--portal-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-email {
  font-size: 0.78rem;
  color: var(--portal-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-signout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: var(--portal-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.portal-signout .nav-ico {
  color: #7c8a83;
}

.portal-signout:hover {
  background: #f0f4f2;
  color: var(--danger);
}

.portal-signout:hover .nav-ico {
  color: var(--danger);
}

/* Content column */
.portal-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--portal-border);
  backdrop-filter: blur(8px);
}

.portal-section {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--portal-ink);
  letter-spacing: -0.01em;
}

/* Mobile navigation disclosure — no JavaScript; keyboard-operable summary. */
.portal-mobnav {
  display: none;
}

.portal-mobnav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.55rem;
  background: var(--portal-surface);
  color: var(--portal-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.portal-mobnav-toggle::-webkit-details-marker {
  display: none;
}

.portal-mobnav-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.portal-mobnav-panel .portal-signout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--portal-border);
  border-radius: 0;
  padding-top: 0.7rem;
}

.portal-main {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* Flex-column children must take a definite width; otherwise auto cross-axis
   margins size them to max-content and overflow narrow viewports. */
.portal-content > .site-footer {
  width: 100%;
}

.portal-main:focus {
  outline: none;
}

.portal-main h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-main h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

/* Page + card primitives */
.page-head {
  margin-bottom: 1.5rem;
}

.page-sub {
  margin: 0.4rem 0 0;
  color: var(--portal-muted);
  max-width: 46rem;
}

.page-back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.page-back a {
  text-decoration: none;
  font-weight: 560;
}

.page-note {
  margin: 1rem 0 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.85rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 2px rgba(18, 32, 26, 0.04);
}

.card-title {
  margin: 0 0 0.9rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--portal-muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.detail-list {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.55rem 0.9rem;
  margin: 1rem 0 1.25rem;
}

.muted {
  color: var(--muted);
}

.notice {
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.grid > * {
  min-width: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  background: var(--ops-surface-card, #ffffff);
  border: 1px solid var(--ops-border, var(--portal-border));
  border-radius: 0.6rem;
  padding: 0.85rem 0.9rem;
  color: var(--ops-text-primary, #111111);
}

.stat span {
  order: -1;
  font-size: 0.78rem;
  color: var(--ops-text-secondary, #303832);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ops-text-primary, #111111);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat strong code {
  display: block;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Portal-scoped table polish (does not affect operator console). */
.portal-main table {
  font-size: 0.9rem;
}

.portal-main thead th {
  padding: 0.35rem 0.6rem 0.6rem;
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--portal-border);
}

.portal-main tbody td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--portal-border);
  color: var(--portal-ink);
}

.portal-main tbody tr:last-child td {
  border-bottom: 0;
}

.portal-main td code {
  font-size: 0.82rem;
  color: var(--portal-muted);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn.btn-sm,
button.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
}

/* ── AirLode Pass credential card ──────────────────────────
   Solid, high-contrast values on a deep teal ground. No opacity-faded
   text: labels use a lightened teal, values use near-white, both AA. */
.pass-card {
  margin: 0.25rem 0 0;
  padding: 1.6rem 1.7rem;
  border-radius: 1.1rem;
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    linear-gradient(150deg, #0f4f3c 0%, #0b3d2e 60%, #082a20 100%);
  box-shadow: 0 18px 40px rgba(8, 42, 32, 0.32);
  max-width: 30rem;
}

.pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.6rem;
}

.pass-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfe6d4;
}

.pass-trust {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pass-holder {
  margin-bottom: 1.5rem;
}

.pass-name {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.pass-email {
  margin: 0;
  font-size: 0.98rem;
  color: #d5ede2;
  overflow-wrap: anywhere;
}

.pass-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pass-meta > div {
  min-width: 0;
}

.pass-meta-id {
  grid-column: 1 / -1;
}

.pass-meta dt {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9d8c4;
}

.pass-meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: #ffffff;
}

.pass-meta-id dd code {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.pass-copy-btn {
  margin-top: 0.65rem;
}

.pass-copy-status {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a9d8c4;
  min-height: 1.1em;
}

/* ── Consent ───────────────────────────────────────────────── */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--portal-surface);
}

.consent-item-body {
  flex: 1;
  min-width: 0;
}

.consent-item-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.consent-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

.consent-item .muted {
  margin: 0.3rem 0 0;
}

.consent-item-action {
  flex-shrink: 0;
}

.detail-actions {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-actions li + li {
  margin-top: 0.25rem;
}

dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.75rem 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.85rem;
}

dd {
  margin: 0;
  word-break: break-word;
}

.auth-shell > .site-footer:not(.al-public-footer) {
  max-width: 28rem;
  text-align: center;
}

.auth-shell > .site-footer:not(.al-public-footer) nav {
  justify-content: center;
}

/* Reset legacy .site-footer chrome only — do not zero package padding or
   margin-top:auto (flex sticky footer). Spacing comes from .al-public-footer. */
.auth-shell > .site-footer.al-public-footer,
.auth-landing > .site-footer.al-public-footer {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  text-align: left;
  color: inherit;
}

/* ── Developers ───────────────────────────────────────────── */
.dev-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.dev-main h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.dev-main .lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dev-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.dev-list code,
.dev-list a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

.empty-state {
  padding: 1.25rem;
  border: 1px solid var(--ops-border, var(--border));
  border-radius: var(--radius);
  background: var(--ops-surface-panel, #eef3f0);
  color: var(--ops-text-primary, #111111);
  font-weight: 600;
}

/* Portal-scoped empty state — centred illustration, heading, guidance. */
.portal-main .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.85rem;
  background: var(--portal-surface);
  color: var(--portal-muted);
}

.portal-main .empty-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.portal-main .empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--portal-ink);
}

.portal-main .empty-text {
  margin: 0;
  max-width: 26rem;
  color: var(--portal-muted);
}

/* ── Shared small helpers ─────────────────────────────────── */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.todo {
  color: var(--muted);
  font-size: 0.85rem;
  border-left: 3px solid var(--border);
  padding-left: 0.65rem;
  margin: 0.5rem 0;
}

.btn.danger,
button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn.danger:hover,
button.danger:hover {
  background: #6f1717;
  border-color: #6f1717;
}

form.op-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.op-search label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.op-search input,
.op-search select {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 11rem;
}

/* ── Operator Console shell (Bhanu) ──────────────────────────
   High-readability LIGHT operational theme (Release 1).
   Dark-canvas contrast tuning was rejected by human review.
   Page/cards: light surfaces + near-black text. AirLode green = accent/sidebar. */
.operator-shell,
body.op-console {
  color-scheme: light;
  --ops-surface-page: #f4f7f5;
  --ops-surface-card: #ffffff;
  --ops-surface-panel: #eef3f0;
  --ops-surface-sidebar: #0b3d2e;
  --ops-surface-header: #ffffff;
  --ops-text-primary: #111111;
  --ops-text-secondary: #303832;
  --ops-text-muted: #4a5a52;
  --ops-text-on-accent: #ffffff;
  --ops-border: #c5d0ca;
  --ops-link: #0a3d2e;
  --ops-link-hover: #06281e;
  --ops-focus: #1a5c45;
  --ops-success: #145c38;
  --ops-success-bg: #e6f5ec;
  --ops-warning: #7a5a0a;
  --ops-warning-bg: #fff6db;
  --ops-danger: #8b1e1e;
  --ops-danger-bg: #fbeaea;
  /* Back-compat aliases used by earlier card rules */
  --ops-card-bg: var(--ops-surface-card);
  --ops-card-border: var(--ops-border);
  --ops-card-text-primary: var(--ops-text-primary);
  --ops-card-text-secondary: var(--ops-text-secondary);
  --ops-card-text-muted: var(--ops-text-secondary);
  --ops-sidebar-text: var(--ops-text-on-accent);
  --ops-sidebar-text-muted: #d7ebe2;
  --ops-sidebar-nav: #f2faf6;
  --ops-empty-bg: var(--ops-surface-panel);
  --ops-badge-unknown-bg: #e4ebe7;
  --ops-badge-unknown-fg: #303832;
}

/* Never follow OS dark preference for the Ops console — operational tool. */
@media (prefers-color-scheme: dark) {
  .operator-shell,
  body.op-console {
    color-scheme: light;
    --ops-surface-page: #f4f7f5;
    --ops-surface-card: #ffffff;
    --ops-surface-panel: #eef3f0;
    --ops-surface-sidebar: #0b3d2e;
    --ops-surface-header: #ffffff;
    --ops-text-primary: #111111;
    --ops-text-secondary: #303832;
    --ops-text-muted: #4a5a52;
    --ops-text-on-accent: #ffffff;
    --ops-link: #0a3d2e;
    --ops-link-hover: #06281e;
    --ops-focus: #1a5c45;
    --ops-sidebar-text: #ffffff;
    --ops-sidebar-text-muted: #d7ebe2;
    --ops-sidebar-nav: #f2faf6;
  }
}

body.op-console {
  background: var(--ops-surface-page) !important;
  color: var(--ops-text-primary);
}

.operator-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  background: var(--ops-surface-page);
  color: var(--ops-text-primary);
}

.operator-sidebar {
  width: 15.5rem;
  flex-shrink: 0;
  background: var(--ops-surface-sidebar);
  color: var(--ops-text-on-accent);
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.operator-sidebar .brand-lockup {
  color: var(--ops-text-on-accent);
}

.operator-sidebar .brand-lockup .wordmark {
  color: var(--ops-text-on-accent);
  font-size: 1.05rem;
}

.operator-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--ops-text-on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.operator-nav a {
  color: var(--ops-sidebar-nav);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 650;
}

.operator-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.operator-nav a:focus-visible {
  outline: 2px solid #9ee0c4;
  outline-offset: 2px;
}

.operator-nav a.active {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 750;
}

.operator-signout {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.operator-api-note {
  margin: 0;
  color: var(--ops-sidebar-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 550;
}

.operator-api-note code {
  color: #ffffff;
}

.operator-signout a {
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 700;
}

.operator-signout a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.operator-signout a:focus-visible {
  outline: 2px solid #9ee0c4;
  outline-offset: 2px;
}

.operator-signout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}

.operator-signout-actions a + a {
  margin-top: 0;
}

/* Platform Admin badge + directory readability */
.op-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.op-badge-admin {
  background: var(--ops-success-bg, #e6f5ec);
  color: var(--ops-success, #145c38);
  border: 1px solid #b7dfc8;
}

.op-admin-no {
  color: var(--ops-text-secondary, #303832);
  font-weight: 600;
}

.op-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ops-border, #c5d0ca);
  border-radius: 0.5rem;
  background: var(--ops-surface-card, #fff);
}

.operator-shell .op-directory-table {
  display: table;
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
}

.operator-shell .op-directory-table th,
.operator-shell .op-directory-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.operator-shell .op-directory-table th {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.operator-shell .stat span {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 650;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.op-mfa-status-list {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 1rem;
}

.op-mfa-status-list dt {
  margin: 0;
  color: var(--ops-text-muted, #4a5a52);
  font-weight: 650;
}

.op-mfa-status-list dd {
  margin: 0;
  color: var(--ops-text-primary, #111);
  font-weight: 600;
}

.op-mfa-action-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.op-mfa-panel .btn.danger,
body.op-console .btn.danger {
  background: var(--ops-danger, #8b1e1e);
  border-color: var(--ops-danger, #8b1e1e);
  color: #fff;
}

body.op-console .btn:disabled,
body.op-console button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Login / session-ended: force light auth cards under Ops (no dark-token bleed) */
body.op-console .auth-main {
  background: var(--ops-surface-page, #f4f7f5);
  color: var(--ops-text-primary, #111111);
  min-height: 100vh;
}

body.op-console .auth-card,
body.op-console .session-ended-card {
  background: var(--ops-surface-card, #ffffff) !important;
  color: var(--ops-text-primary, #111111) !important;
  border: 1px solid var(--ops-border, #c5d0ca);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
}

body.op-console .auth-card h1,
body.op-console .session-ended-card h1 {
  color: var(--ops-text-primary, #111111) !important;
  font-size: 1.5rem;
  font-weight: 750;
}

body.op-console .auth-card p,
body.op-console .session-ended-body,
body.op-console .session-ended-label {
  color: var(--ops-text-secondary, #303832) !important;
}

body.op-console .session-ended-status {
  color: var(--ops-text-muted, #4a5a52) !important;
  text-transform: none;
  letter-spacing: normal;
}

body.op-console .auth-card .btn,
body.op-console .session-ended-actions .btn {
  background: var(--ops-surface-sidebar, #0b3d2e);
  border-color: var(--ops-surface-sidebar, #0b3d2e);
  color: #ffffff;
}

body.op-console .auth-card .btn.secondary,
body.op-console .session-ended-actions .btn.secondary {
  background: transparent;
  color: var(--ops-link, #0a3d2e);
  border-color: var(--ops-border, #c5d0ca);
}

@media (prefers-color-scheme: dark) {
  body.op-console .auth-card,
  body.op-console .session-ended-card {
    background: #ffffff !important;
    color: #111111 !important;
  }
}

.operator-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ops-surface-page);
}

.operator-topbar {
  padding: 0.9rem 1.5rem;
  background: var(--ops-surface-header);
  border-bottom: 1px solid var(--ops-border);
  color: var(--ops-text-primary);
}

.operator-topbar h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ops-text-primary);
}

.operator-main {
  flex: 1;
  padding: 1.5rem;
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
  color: var(--ops-text-primary);
}

.operator-main > h2,
.operator-main > h3 {
  color: var(--ops-text-primary);
}

.operator-main > .meta,
.operator-main > p.meta,
.operator-main p > .meta,
.operator-main .meta {
  color: var(--ops-text-muted);
  font-weight: 550;
}

.operator-main > a:not(.btn),
.operator-main > p a:not(.btn),
.operator-main a:not(.btn) {
  color: var(--ops-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 650;
}

.operator-main a:not(.btn):hover {
  color: var(--ops-link-hover);
}

.operator-main a:focus-visible,
body.op-console a:focus-visible {
  outline: 2px solid var(--ops-focus);
  outline-offset: 2px;
}

/* Cards / stats / panels — light surface, near-black ink */
.operator-shell .attention-card,
.operator-shell .stat,
.operator-shell .panel,
.operator-shell .card,
.operator-shell .empty-state,
.operator-shell .operator-confirm,
.operator-shell form.op-search,
body.op-console .op-mfa-panel,
body.op-console .op-access-denied-card {
  background: var(--ops-surface-card);
  border: 1px solid var(--ops-border);
  color: var(--ops-text-primary);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.operator-shell .stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  border-radius: 0.6rem;
  padding: 0.95rem 1rem;
}

.operator-shell .stat span {
  order: -1;
  font-size: 0.8rem;
  color: var(--ops-text-secondary) !important;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 650;
}

.operator-shell .stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ops-text-primary) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.operator-shell .attention-card .label,
.operator-shell .attention-card .window,
.operator-shell .card-title,
.operator-shell .field-hint,
.operator-shell .op-search label,
.operator-shell th {
  color: var(--ops-text-secondary) !important;
  font-weight: 700;
}

.operator-shell .empty-state {
  color: var(--ops-text-primary) !important;
  font-weight: 600;
  background: var(--ops-surface-panel);
}

.operator-shell .attention-card .value,
.operator-shell .panel,
.operator-shell td {
  color: var(--ops-text-primary) !important;
}

.operator-shell .attention-card .meta,
.operator-shell .panel .meta,
.operator-shell .card .meta,
.operator-shell .operator-confirm .meta {
  color: var(--ops-text-muted) !important;
}

.operator-shell .attention-card a:not(.btn),
.operator-shell .stat a:not(.btn),
.operator-shell .panel a:not(.btn),
.operator-shell .card a:not(.btn),
.operator-shell .empty-state a:not(.btn),
.operator-shell .operator-confirm a:not(.btn),
.operator-shell table a:not(.btn),
body.op-console .op-mfa-panel a:not(.btn),
body.op-console .op-access-denied-card a:not(.btn) {
  color: var(--ops-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.operator-shell .btn,
.operator-shell button.btn,
body.op-console .btn,
body.op-console button.btn {
  background: #0b3d2e;
  border-color: #0b3d2e;
  color: var(--ops-text-on-accent, #ffffff);
  -webkit-text-fill-color: var(--ops-text-on-accent, #ffffff);
  text-decoration: none;
}

/* Anchor buttons must keep CTA foreground in every interactive state.
   Card/prose link colour (--ops-link ≈ #0a3d2e) must never win over filled .btn
   (same green family on #0b3d2e → invisible labels until :hover). */
.operator-shell a.btn,
.operator-shell a.btn:link,
.operator-shell a.btn:visited,
.operator-shell a.btn:hover,
.operator-shell a.btn:active,
.operator-shell a.btn:focus,
.operator-shell a.btn:focus-visible,
body.op-console a.btn,
body.op-console a.btn:link,
body.op-console a.btn:visited,
body.op-console a.btn:hover,
body.op-console a.btn:active,
body.op-console a.btn:focus,
body.op-console a.btn:focus-visible {
  color: var(--ops-text-on-accent, #ffffff);
  -webkit-text-fill-color: var(--ops-text-on-accent, #ffffff);
  text-decoration: none;
}

.operator-shell .btn:hover,
body.op-console .btn:hover {
  background: #0f4f3c;
  border-color: #0f4f3c;
  color: var(--ops-text-on-accent, #ffffff);
  -webkit-text-fill-color: var(--ops-text-on-accent, #ffffff);
}

.operator-shell a.btn.secondary,
.operator-shell a.btn.secondary:link,
.operator-shell a.btn.secondary:visited,
.operator-shell a.btn.secondary:hover,
.operator-shell a.btn.secondary:active,
.operator-shell a.btn.secondary:focus,
.operator-shell a.btn.secondary:focus-visible,
body.op-console a.btn.secondary,
body.op-console a.btn.secondary:link,
body.op-console a.btn.secondary:visited,
body.op-console a.btn.secondary:hover,
body.op-console a.btn.secondary:active,
body.op-console a.btn.secondary:focus,
body.op-console a.btn.secondary:focus-visible,
.operator-shell .btn.secondary,
body.op-console .btn.secondary {
  background: transparent;
  border-color: var(--ops-border, #c5d0ca);
  color: var(--ops-link, #0a3d2e);
  -webkit-text-fill-color: var(--ops-link, #0a3d2e);
}

.attention-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  margin: 1rem 0 1.5rem;
}

.attention-card {
  background: var(--ops-surface-card);
  border: 1px solid var(--ops-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--ops-text-primary);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

/* Identity/session summary tiles that are navigable links keep card chrome. */
a.attention-card,
.operator-shell a.attention-card,
.operator-shell a.attention-card:link,
.operator-shell a.attention-card:visited {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.attention-card:hover,
a.attention-card:focus-visible,
.operator-shell a.attention-card:hover,
.operator-shell a.attention-card:focus-visible {
  border-color: var(--ops-link, #0a3d2e);
}

.attention-card .label {
  font-size: 0.8rem;
  color: var(--ops-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 750;
}

.attention-card .value {
  font-size: 1.5rem;
  font-weight: 750;
  margin: 0.25rem 0;
  color: var(--ops-text-primary);
}

.attention-card .window {
  font-size: 0.8rem;
  color: var(--ops-text-muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.status-pill.status-healthy {
  background: var(--ops-success-bg);
  color: var(--ops-success);
}

.status-pill.status-healthy::before {
  background: var(--ops-success);
}

.status-pill.status-degraded {
  background: var(--ops-warning-bg);
  color: var(--ops-warning);
}

.status-pill.status-degraded::before {
  background: var(--ops-warning);
}

.status-pill.status-unavailable {
  background: var(--ops-danger-bg);
  color: var(--ops-danger);
}

.status-pill.status-unavailable::before {
  background: var(--ops-danger);
}

.status-pill.status-unknown {
  background: var(--ops-badge-unknown-bg);
  color: var(--ops-badge-unknown-fg);
}

.status-pill.status-unknown::before {
  background: var(--ops-badge-unknown-fg);
}

.operator-shell table {
  background: var(--ops-surface-card);
  color: var(--ops-text-primary);
}

.operator-shell th {
  color: var(--ops-text-primary) !important;
  font-weight: 750;
  border-bottom: 1px solid var(--ops-border);
}

.operator-shell td {
  color: var(--ops-text-primary) !important;
  border-bottom: 1px solid var(--ops-border);
}

.operator-confirm {
  max-width: 34rem;
  background: var(--ops-surface-card);
  border: 1px solid var(--ops-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  color: var(--ops-text-primary);
}

.operator-confirm form {
  margin-top: 1rem;
}

.operator-confirm .field,
.operator-confirm label {
  display: block;
  margin-bottom: 0.75rem;
}

.operator-confirm input,
.operator-confirm select,
.operator-confirm textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  box-sizing: border-box;
}

.operator-confirm textarea {
  min-height: 5rem;
  resize: vertical;
}

.operator-confirm .field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.operator-confirm .checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.operator-confirm .checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  width: auto;
}

.operator-confirm .checkbox-row input {
  width: auto;
  min-height: auto;
}

.secret-reveal {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.secret-reveal code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  word-break: break-all;
  font-size: 0.85rem;
}

/* Ops MFA + access-denied (shared op-console tokens) */
body.op-console .op-shell-narrow {
  max-width: 28rem;
  margin: 2.5rem auto;
  padding: 0 1rem 2rem;
  color: var(--ops-text-primary);
}

body.op-console .op-brand-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ops-text-muted);
}

body.op-console .op-brand-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ops-text-primary);
  letter-spacing: -0.02em;
}

body.op-console .op-mfa-lede,
body.op-console .op-access-denied-lede {
  margin: 0.75rem 0 1.25rem;
  color: var(--ops-text-secondary);
  font-size: 1.02rem;
  line-height: 1.5;
}

body.op-console .op-mfa-panel,
body.op-console .op-access-denied-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--ops-card-border);
  border-radius: var(--radius);
  background: var(--ops-card-bg);
  color: var(--ops-card-text-primary);
  box-shadow: var(--shadow);
}

body.op-console .op-mfa-panel h2,
body.op-console .op-access-denied-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ops-card-text-primary);
}

body.op-console .op-mfa-panel p,
body.op-console .op-access-denied-card p,
body.op-console .op-mfa-panel .op-mfa-status,
body.op-console .op-access-ref {
  color: var(--ops-text-secondary);
}

body.op-console .op-mfa-lede,
body.op-console .op-policy-meta,
body.op-console .op-brand-kicker {
  color: var(--ops-text-secondary);
}

body.op-console .op-brand-title {
  color: var(--ops-text-primary);
}

body.op-console .op-mfa-methods {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ops-card-border);
}

body.op-console .op-mfa-methods h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ops-card-text-muted);
}

body.op-console .op-mfa-methods ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.op-console .op-mfa-methods a {
  color: var(--ops-link);
  font-weight: 650;
  text-underline-offset: 0.15em;
}

body.op-console .op-mfa-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ops-card-text-muted);
}

body.op-console .op-mfa-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin-top: 1rem;
}

body.op-console .op-mfa-form label {
  flex: 1 1 10rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 650;
  color: var(--ops-card-text-secondary);
}

body.op-console .op-mfa-form input[name="code"] {
  min-height: 2.75rem;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color-scheme: light;
  background: #ffffff;
  color: #12201a;
  border: 1px solid var(--ops-card-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

body.op-console .op-mfa-form input[name="code"]:focus {
  outline: 2px solid var(--ops-focus);
  outline-offset: 2px;
  border-color: var(--ops-focus);
}

body.op-console .op-mfa-form button[type="submit"] {
  min-height: 2.75rem;
}

body.op-console .op-mfa-form button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: wait;
}

body.op-console .op-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

body.op-console .op-access-ref {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ops-card-text-muted);
}

body.op-console .op-policy-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ops-text-muted);
}

@media (max-width: 860px) {
  .operator-shell {
    flex-direction: column;
  }
  .operator-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
  }
  .operator-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .operator-signout {
    margin-top: 0;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
  }
  .operator-api-note {
    display: none;
  }
}

/* ── Authenticated portal — tablet & mobile ────────────────── */
@media (max-width: 900px) {
  .portal-sidebar {
    display: none;
  }
  .portal-topbar {
    position: relative;
  }
  .portal-mobnav {
    display: block;
  }
  .portal-main {
    padding: 1.5rem 1.25rem 2.5rem;
  }
  .pass-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1rem 0.25rem;
  }
  .hero {
    padding: 1.75rem 0 2.25rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  dl {
    grid-template-columns: 1fr;
  }
  table {
    display: block;
    overflow-x: auto;
  }
  .detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .detail-list dt {
    margin-top: 0.6rem;
  }
  .pass-card {
    padding: 1.3rem 1.2rem;
  }
  .pass-meta {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .pass-name {
    font-size: 1.45rem;
  }
  .consent-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .portal-main {
    padding: 1.25rem 1rem 2rem;
  }
  .portal-topbar {
    padding: 0.5rem 1rem;
  }
}

/* ── Operator session-ended page ─────────────────────────────────────── */
.session-ended-card {
  max-width: 30rem;
  margin: 3rem auto;
  text-align: left;
}

.session-ended-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Colour is a secondary cue only; the text label is always present. */
.session-ended-mark {
  color: var(--warn);
  font-size: 0.7rem;
  line-height: 1;
}

.session-ended-status[data-reason="revoked"] .session-ended-mark {
  color: var(--danger);
}

.session-ended-status[data-reason="logged-out"] .session-ended-mark {
  color: var(--ok);
}

.session-ended-body {
  color: var(--ink);
  margin: 0.5rem 0 1.5rem;
}

.session-ended-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .session-ended-card {
    margin: 1.5rem auto;
  }
  .session-ended-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Organisation provisioning guided owner UI ─────────────────────── */
.owner-method {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}

.owner-method legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-weight: 500;
}

/* ── Organisation provisioning guided owner UI ─────────────────────── */
.owner-method {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}

.owner-method legend {
  padding: 0 0.35rem;
  font-weight: 600;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-weight: 500;
}

.owner-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0 0;
}

.owner-lookup-summary {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 92%, var(--ok) 8%);
}

.owner-lookup-summary p {
  margin: 0.25rem 0;
}

.provision-error {
  margin-bottom: 1.25rem;
}

.provision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* === Canonical @airlode/public-footer (keep in sync with packages/airlode-public-footer/styles.css) === */
/**
 * Canonical AirLode public footer styles — single presentation for Auth,
 * public website, and My AirLode ID. No full/compact visual split.
 * Keep in sync with the copy embedded in assets/hosted-ui/hosted-ui.css for Auth.
 */

.al-public-footer {
  /* Section rhythm: comfortable band above brand/headings so the footer
     reads as a distinct page section (not flush against main content). */
  --al-footer-section-gap: 4rem;
  --al-footer-pad-end: 1.5rem;
  border-top: 1px solid #d2ddd6;
  background: #ffffff;
  color: #5a6f66;
  color-scheme: light;
  text-align: left;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: var(--al-footer-section-gap) 0 var(--al-footer-pad-end);
  width: 100%;
  box-sizing: border-box;
}

.al-public-footer *,
.al-public-footer *::before,
.al-public-footer *::after {
  box-sizing: border-box;
}

.al-public-footer__inner {
  /* Align with public/private Identity site max (1120px / 70rem). */
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
  text-align: left;
}

.al-public-footer__app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #dde6e0;
}

.al-public-footer__app-nav a {
  color: #0b3d2e;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.al-public-footer__app-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.al-public-footer__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
  align-items: start;
  justify-items: start;
}

.al-public-footer__brand,
.al-public-footer__col {
  text-align: left;
  max-width: 100%;
  min-width: 0;
}

.al-public-footer__brand {
  display: grid;
  gap: 0.55rem;
  max-width: 17.5rem;
}

.al-public-footer__brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #12201a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.al-public-footer__brand-lockup img {
  display: block;
  height: 1.5rem;
  width: auto;
}

.al-public-footer__brand-name {
  margin: 0;
  color: #12201a;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.al-public-footer__tagline {
  margin: 0;
  color: #5a6f66;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.al-public-footer__heading {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0b3d2e;
}

.al-public-footer__copy {
  margin: 0 0 0.2rem;
  color: #5a6f66;
  overflow-wrap: anywhere;
}

.al-public-footer__copy:last-child {
  margin-bottom: 0;
}

.al-public-footer__tm-line {
  margin: 0 0 0.3rem;
  color: #2a3f37;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.al-public-footer__tm-note {
  margin: 0.3rem 0 0;
  color: #5a6f66;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.al-public-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.al-public-footer__links a {
  color: #2a3f37;
  font-weight: 600;
  text-decoration: none;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
}

.al-public-footer__links a:hover {
  color: #0b3d2e;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.al-public-footer a:focus-visible {
  outline: 2px solid #0b3d2e;
  outline-offset: 3px;
}

.al-public-footer__status {
  margin-top: 0.35rem;
}

.al-public-footer__meta {
  margin-top: 1.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dde6e0;
  color: #5a6f66;
  font-size: 0.75rem;
  text-align: left;
}

.al-public-footer__meta p {
  margin: 0;
}

/* Visually hidden — keep approved identifier string for a11y without duplicating Company */
.al-public-footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .al-public-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
  }

  .al-public-footer__brand {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}

@media (max-width: 768px) {
  .al-public-footer {
    --al-footer-section-gap: 3rem;
    --al-footer-pad-end: 1.25rem;
    padding: var(--al-footer-section-gap) 0 var(--al-footer-pad-end);
  }

  .al-public-footer__inner {
    width: min(100% - 1.75rem, 70rem);
  }

  .al-public-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }

  .al-public-footer__brand {
    order: 1;
  }

  .al-public-footer__col--projects {
    order: 2;
  }

  .al-public-footer__col--legal {
    order: 3;
  }

  .al-public-footer__col--company {
    order: 4;
  }

  .al-public-footer__col--trademarks {
    order: 5;
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .al-public-footer {
    --al-footer-section-gap: 2.5rem;
    --al-footer-pad-end: 1.15rem;
    padding: var(--al-footer-section-gap) 0 var(--al-footer-pad-end);
  }

  .al-public-footer__inner {
    width: min(100% - 1.5rem, 70rem);
  }

  .al-public-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .al-public-footer__brand {
    grid-column: auto;
    order: 1;
    max-width: none;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #dde6e0;
    margin-bottom: 0.15rem;
  }

  .al-public-footer__col--projects {
    order: 2;
  }

  .al-public-footer__col--legal {
    order: 3;
  }

  .al-public-footer__col--company {
    order: 4;
  }

  .al-public-footer__col--trademarks {
    order: 5;
    grid-column: auto;
    padding-top: 0.35rem;
    border-top: 1px solid #dde6e0;
  }

  .al-public-footer__heading {
    font-size: 0.75rem;
  }

  .al-public-footer__copy,
  .al-public-footer__links a {
    font-size: 0.875rem;
  }

  .al-public-footer__tm-line {
    font-size: 0.75rem;
    font-weight: 550;
    color: #5a6f66;
  }

  .al-public-footer__tm-note {
    font-size: 0.7rem;
  }

  .al-public-footer__meta {
    order: 6;
    overflow-wrap: anywhere;
  }
}

.site-footer.al-public-footer {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.auth-shell > .site-footer.al-public-footer,
.auth-landing > .site-footer.al-public-footer {
  max-width: none;
  width: 100%;
}

/* Compact Auth service-status control inside the Legal column */
.al-public-footer .site-footer-status-toggle {
  min-height: 2rem;
  padding: 0.15rem 0;
  font-size: inherit;
  font-weight: 600;
  color: #2a3f37;
}
