/* ==========================================================================
   Swiss OMS Ai - account pages (sign in, two-step verification, password reset, security)
   Split layout: animated "intelligence mesh" hero + glass sign-in card.
   Dark by default; light variant via html[data-bs-theme="light"].
   Tenant colours come from --brand-* (Views/Shared/_BrandStyle). No inline styles or scripts.
   ========================================================================== */

.oms-bare:has(.lx) { background: #050912; }
[data-bs-theme="light"] .oms-bare:has(.lx) { background: #f3f6fb; }

.lx {
  --lx-bg: #050912;
  --lx-hero-bg: #04070f;
  --lx-text: #eef3fb;
  --lx-text-2: #b8c3d6;
  --lx-muted: #8593ab;
  --lx-line: rgba(148, 170, 210, .14);
  --lx-line-strong: rgba(148, 170, 210, .26);
  --lx-card: rgba(12, 19, 32, .66);
  --lx-card-border: rgba(148, 170, 210, .16);
  --lx-field: rgba(6, 11, 21, .72);
  --lx-field-hover: rgba(10, 17, 30, .9);
  --lx-accent: var(--brand-on-dark, #22d3ee);
  --lx-accent-rgb: var(--brand-on-dark-rgb, 34, 211, 238);
  --lx-accent-ink: var(--brand-ink-dark, #03161c);
  --lx-primary: var(--brand-primary, #0b7285);
  --lx-accent-2: var(--brand-accent, #22d3ee);
  --lx-violet: #8b7bff;
  --lx-ok: #34d399;
  --lx-warn: #fbbf24;
  --lx-bad: #fb7185;
  --lx-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05) inset;
  --lx-radius: 20px;
  --lx-ease: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr);
  background: var(--lx-bg);
  color: var(--lx-text);
  font-family: var(--oms-font-sans, "Inter", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

[data-bs-theme="light"] .lx {
  --lx-bg: #f3f6fb;
  --lx-text: #0c1628;
  --lx-text-2: #334158;
  --lx-muted: #5d6b82;
  --lx-line: rgba(15, 32, 64, .10);
  --lx-line-strong: rgba(15, 32, 64, .2);
  --lx-card: rgba(255, 255, 255, .8);
  --lx-card-border: rgba(15, 32, 64, .09);
  --lx-field: #ffffff;
  --lx-field-hover: #fbfcfe;
  --lx-accent: var(--brand-on-light, #0b7285);
  --lx-accent-rgb: var(--brand-on-light-rgb, 11, 114, 133);
  --lx-accent-ink: var(--brand-ink-light, #ffffff);
  --lx-ok: #0f9d63;
  --lx-warn: #a86b06;
  --lx-bad: #d42a4a;
  --lx-shadow: 0 30px 70px rgba(15, 32, 64, .14), 0 1px 0 rgba(255, 255, 255, .8) inset;
}

/* ---------- Hero ---------- */
.lx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(var(--lx-accent-rgb), .16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(139, 123, 255, .14), transparent 60%),
    linear-gradient(160deg, #060b16 0%, #03060d 100%);
  color: #eef3fb;
  border-right: 1px solid rgba(148, 170, 210, .08);
}

/* The hero stays dark in both themes: it is the product's "night view". */
[data-bs-theme="light"] .lx-hero { border-right-color: transparent; }

.lx-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.lx-hero-glow {
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--lx-accent-rgb), .18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: lx-breathe 9s ease-in-out infinite alternate;
}

.lx-hero::after {
  /* fine grid + vignette for depth */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 170, 210, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(148, 170, 210, .045) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%);
}

.lx-hero-inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
}

.lx-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lx-logo {
  display: block;
  max-height: 44px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lx-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.lx-wordmark .brand-mark,
.lx-mobile-brand .brand-mark { width: 38px; height: 38px; flex: none; }
.lx-wordmark-text { font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }

.lx-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 170, 210, .18);
  background: rgba(8, 14, 26, .55);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #d9e2f1;
}

.lx-dot,
.lx-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lx-ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: lx-ping 2.4s var(--lx-ease) infinite;
  flex: none;
  display: inline-block;
}

.lx-copy { position: relative; max-width: 640px; }

.lx-copy::before {
  /* soft scrim so the mesh never competes with the headline */
  content: "";
  position: absolute;
  inset: -60px -80px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(4, 7, 15, .78), rgba(4, 7, 15, .35) 60%, transparent);
  pointer-events: none;
}

.lx-eyebrow {
  margin: 0 0 18px;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-on-dark, #22d3ee) 85%, #ffffff);
}

.lx-headline {
  margin: 0;
  font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #f5f8ff;
  text-wrap: balance;
}

.lx-dash { color: rgba(238, 243, 251, .45); font-weight: 400; }

.lx-grad {
  background: linear-gradient(100deg, var(--brand-on-dark, #22d3ee) 0%, #9ae6ff 38%, #b9a8ff 78%, var(--lx-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: lx-shimmer 12s ease-in-out infinite alternate;
}

.lx-sub {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: clamp(1rem, .95rem + .2vw, 1.12rem);
  line-height: 1.6;
  color: #aebbd0;
}

.lx-chips {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 550;
  color: #e3eaf6;
  background: linear-gradient(180deg, rgba(20, 30, 50, .72), rgba(10, 16, 28, .72));
  border: 1px solid rgba(148, 170, 210, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .06) inset;
  backdrop-filter: blur(12px);
  animation: lx-rise .8s var(--lx-ease) both;
}

.lx-chip:nth-child(2) { animation-delay: .08s; }
.lx-chip:nth-child(3) { animation-delay: .16s; }

.lx-chip .bi {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--brand-ink-dark, #03161c);
  background: linear-gradient(135deg, var(--brand-on-dark, #22d3ee), color-mix(in srgb, var(--brand-on-dark, #22d3ee) 45%, var(--lx-violet)));
}

.lx-hero-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 170, 210, .14);
  background: rgba(148, 170, 210, .12);
}

.lx-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(7, 12, 22, .78);
  backdrop-filter: blur(10px);
}

.lx-stat-k {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

.lx-stat-v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  color: #dbe4f2;
}

/* ---------- Panel ---------- */
.lx-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 20px clamp(20px, 4vw, 48px) 20px;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(var(--lx-accent-rgb), .10), transparent 65%),
    radial-gradient(600px 380px at 0% 100%, rgba(139, 123, 255, .08), transparent 60%),
    var(--lx-bg);
}

.lx-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 44px;
}

.lx-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 650;
}

.lx-mobile-brand .lx-logo { max-height: 34px; max-width: 170px; }
.lx-logo-dark { display: none; }
.lx .lx-mobile-brand .lx-logo-light { display: none; }
.lx .lx-mobile-brand .lx-logo-dark { display: block; }
[data-bs-theme="light"] .lx .lx-mobile-brand .lx-logo-light { display: block; }
[data-bs-theme="light"] .lx .lx-mobile-brand .lx-logo-dark { display: none; }

.lx-theme,
.lx-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-card);
  color: var(--lx-text-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .2s var(--lx-ease);
}

.lx-theme:hover,
.lx-icon-btn:hover { color: var(--lx-text); border-color: var(--lx-line-strong); transform: translateY(-1px); }
.lx-theme .lx-theme-light { display: none; }
[data-bs-theme="light"] .lx-theme .lx-theme-dark { display: none; }
[data-bs-theme="light"] .lx-theme .lx-theme-light { display: inline; }

.lx-mobile-tag { display: none; }

.lx-card-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.lx-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--lx-radius);
  background: var(--lx-card);
  border: 1px solid var(--lx-card-border);
  box-shadow: var(--lx-shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: lx-rise .7s var(--lx-ease) both;
}

.lx-card::before {
  /* luminous edge */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--lx-accent-rgb), .55), transparent 32%, transparent 68%, rgba(139, 123, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}

[data-bs-theme="light"] .lx-card::before { opacity: .45; }

.lx-card-head { margin-bottom: 26px; }

.lx-title {
  margin: 0;
  font-size: clamp(1.55rem, 1.3rem + .6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--lx-text);
}

.lx-lead {
  margin: 8px 0 0;
  color: var(--lx-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.lx-lead b { color: var(--lx-text-2); font-weight: 600; }

.lx-step-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--lx-accent);
  background: rgba(var(--lx-accent-rgb), .12);
  border: 1px solid rgba(var(--lx-accent-rgb), .28);
  box-shadow: 0 0 0 6px rgba(var(--lx-accent-rgb), .05);
}

.lx-step-ok { color: var(--lx-ok); background: color-mix(in srgb, var(--lx-ok) 12%, transparent); border-color: color-mix(in srgb, var(--lx-ok) 35%, transparent); }

/* ---------- Notices ---------- */
.lx-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--lx-text);
  background: rgba(var(--lx-accent-rgb), .08);
  border: 1px solid rgba(var(--lx-accent-rgb), .25);
  animation: lx-shake-in .45s var(--lx-ease) both;
}

.lx-notice .bi { font-size: 1.05rem; line-height: 1.3; color: var(--lx-accent); flex: none; }
.lx-notice-success { background: color-mix(in srgb, var(--lx-ok) 10%, transparent); border-color: color-mix(in srgb, var(--lx-ok) 35%, transparent); }
.lx-notice-success .bi { color: var(--lx-ok); }
.lx-notice-warning { background: color-mix(in srgb, var(--lx-warn) 10%, transparent); border-color: color-mix(in srgb, var(--lx-warn) 38%, transparent); }
.lx-notice-warning .bi { color: var(--lx-warn); }
.lx-notice-danger { background: color-mix(in srgb, var(--lx-bad) 10%, transparent); border-color: color-mix(in srgb, var(--lx-bad) 40%, transparent); }
.lx-notice-danger .bi { color: var(--lx-bad); }

/* ---------- Form ---------- */
.lx-form { display: grid; gap: 18px; }

.lx-field { display: grid; gap: 8px; }

.lx-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.lx-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--lx-text-2);
}

.lx-input-wrap { position: relative; }

.lx-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lx-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color .2s;
}

.lx-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-field);
  color: var(--lx-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.lx-input::placeholder { color: color-mix(in srgb, var(--lx-muted) 70%, transparent); }
.lx-input:hover { background: var(--lx-field-hover); border-color: var(--lx-line-strong); }

.lx-input:focus,
.lx-input:focus-visible {
  border-color: var(--lx-accent);
  box-shadow: 0 0 0 4px rgba(var(--lx-accent-rgb), .18);
}

.lx-input-wrap:focus-within .lx-input-icon { color: var(--lx-accent); }
.lx-input.lx-has-toggle { padding-right: 52px; }
.lx-input[aria-invalid="true"] { border-color: var(--lx-bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-bad) 16%, transparent); }

.lx-input:-webkit-autofill {
  -webkit-text-fill-color: var(--lx-text);
  -webkit-box-shadow: 0 0 0 1000px var(--lx-field) inset;
  caret-color: var(--lx-text);
}

.lx-code {
  font-family: var(--oms-font-mono, ui-monospace, monospace);
  font-size: 1.3rem;
  letter-spacing: .32em;
  font-variant-numeric: tabular-nums;
}

.lx-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lx-muted);
  cursor: pointer;
}

.lx-toggle:hover { color: var(--lx-text); background: rgba(var(--lx-accent-rgb), .08); }

.lx-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: .8rem;
  color: var(--lx-muted);
}

.lx-hint[hidden] { display: none; }
.lx-hint-warn { color: var(--lx-warn); }
.lx-hint-bad { color: var(--lx-bad); }

.lx-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: .9rem;
  color: var(--lx-text-2);
  cursor: pointer;
  user-select: none;
}

.lx-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lx-check-box {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--lx-line-strong);
  background: var(--lx-field);
  transition: background-color .2s, border-color .2s;
}

.lx-check-box .bi { font-size: .95rem; color: var(--lx-accent-ink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--lx-ease); }
.lx-check input:checked + .lx-check-box { background: var(--lx-accent); border-color: var(--lx-accent); }
.lx-check input:checked + .lx-check-box .bi { opacity: 1; transform: none; }
.lx-check input:focus-visible + .lx-check-box { box-shadow: 0 0 0 4px rgba(var(--lx-accent-rgb), .25); }

/* ---------- Buttons ---------- */
.lx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--lx-accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lx-accent) 88%, #ffffff) 0%, var(--lx-accent) 45%, color-mix(in srgb, var(--lx-accent) 70%, var(--lx-violet)) 100%);
  box-shadow: 0 10px 30px rgba(var(--lx-accent-rgb), .28), 0 1px 0 rgba(255, 255, 255, .35) inset;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s var(--lx-ease), box-shadow .2s, filter .2s;
}

.lx-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--lx-ease);
}

.lx-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(var(--lx-accent-rgb), .36), 0 1px 0 rgba(255, 255, 255, .35) inset; color: var(--lx-accent-ink); }
.lx-btn:hover::after { transform: translateX(120%); }
.lx-btn:active { transform: translateY(0); filter: brightness(.96); }
.lx-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--lx-accent-rgb), .35), 0 10px 30px rgba(var(--lx-accent-rgb), .28); }
.lx-btn-icon { transition: transform .25s var(--lx-ease); }
.lx-btn:hover .lx-btn-icon { transform: translateX(3px); }

.lx-btn-ghost {
  color: var(--lx-text);
  background: var(--lx-card);
  border: 1px solid var(--lx-line-strong);
  box-shadow: none;
}

.lx-btn-ghost:hover { color: var(--lx-text); border-color: var(--lx-accent); box-shadow: 0 0 0 4px rgba(var(--lx-accent-rgb), .1); }

.lx-btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 10px 26px rgba(225, 29, 72, .25);
}

.lx-btn-danger:hover { color: #fff; box-shadow: 0 12px 30px rgba(225, 29, 72, .35); }

.lx-btn-sm { width: auto; min-height: 38px; padding: 8px 14px; font-size: .88rem; border-radius: 10px; }

.lx-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: lx-spin .7s linear infinite;
}

.lx-btn[aria-busy="true"] { pointer-events: none; filter: saturate(.8); }
.lx-btn[aria-busy="true"] .lx-spinner { display: inline-block; }
.lx-btn[aria-busy="true"] .lx-btn-icon { display: none; }
.lx-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.lx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lx-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.lx-link:hover { color: color-mix(in srgb, var(--lx-accent) 80%, var(--lx-text)); text-decoration: underline; text-underline-offset: 3px; }
.lx-link:focus-visible,
.lx a:focus-visible,
.lx button:focus-visible { outline: 2px solid var(--lx-accent); outline-offset: 3px; }
.lx-small { font-size: .82rem; }

.lx-fineprint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--lx-line);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--lx-muted);
}

.lx-alt { margin: 22px 0 0; text-align: center; font-size: .9rem; }

.lx-tips {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
}

.lx-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--lx-text-2); }
.lx-tips .bi { color: var(--lx-accent); }

.lx-rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 4px 0 0;
  padding: 0;
  font-size: .8rem;
  color: var(--lx-muted);
}

.lx-rules li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.lx-rules li.pass { color: var(--lx-ok); }

/* ---------- Footer ---------- */
.lx-footer {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  font-size: .78rem;
  color: var(--lx-muted);
}

.lx-footer p { margin: 0; }
.lx-footer b { color: var(--lx-text-2); font-weight: 650; }
.lx-footer a { color: var(--lx-text-2); text-decoration: none; }
.lx-footer a:hover { color: var(--lx-accent); }
.lx-support { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.lx-support > * { display: inline-flex; align-items: center; gap: 6px; }
.lx-mono { font-family: var(--oms-font-mono, ui-monospace, monospace); }
.lx-muted { color: var(--lx-muted); }

/* ---------- Security page (wide variant) ---------- */
.lx-wide { grid-template-columns: minmax(0, 1fr); }
.lx-wide .lx-hero { position: fixed; inset: 0; border: 0; opacity: .55; }
.lx-wide .lx-hero-inner { display: none; }
[data-bs-theme="light"] .lx-wide .lx-hero { opacity: .08; }
.lx-wide .lx-panel { background: transparent; }
.lx-wide .lx-mobile-brand { display: inline-flex; }
.lx-wide .lx-card-wrap { place-items: start center; }
.lx-wide .lx-card { max-width: 860px; }

.lx-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.lx-eyebrow-sm { margin: 0 0 6px; font-size: .82rem; color: var(--lx-muted); }
.lx-eyebrow-sm b { color: var(--lx-text-2); }
.lx-sec-actions { display: flex; gap: 8px; align-items: center; }
.lx-sec-actions [hidden] { display: none; }
.lx-inline-form { margin: 0; }

.lx-block {
  padding: 22px 0;
  border-top: 1px solid var(--lx-line);
}

.lx-block-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.lx-block-head .lx-step-icon { margin: 0; width: 42px; height: 42px; font-size: 1.1rem; }
.lx-block-head p { margin: 2px 0 0; font-size: .88rem; }
.lx-block-title { margin: 0; font-size: 1.08rem; font-weight: 650; color: var(--lx-text); }
.lx-block-body { margin-top: 18px; }

.lx-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .03em;
  border: 1px solid var(--lx-line-strong);
  color: var(--lx-text-2);
}

.lx-badge.on { color: var(--lx-ok); border-color: color-mix(in srgb, var(--lx-ok) 40%, transparent); background: color-mix(in srgb, var(--lx-ok) 10%, transparent); }
.lx-badge.off { color: var(--lx-warn); border-color: color-mix(in srgb, var(--lx-warn) 40%, transparent); background: color-mix(in srgb, var(--lx-warn) 10%, transparent); }
.lx-badge[hidden] { display: none; }

.lx-steps {
  counter-reset: lx-step;
  list-style: none;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.lx-steps > li {
  counter-increment: lx-step;
  position: relative;
  padding-left: 44px;
}

.lx-steps > li::before {
  content: counter(lx-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  color: var(--lx-accent-ink);
  background: var(--lx-accent);
}

.lx-steps h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 650; color: var(--lx-text); }
.lx-steps p { margin: 0; font-size: .88rem; }

.lx-qr-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 12px; }

.lx-qr {
  width: 184px;
  height: 184px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--lx-line), 0 12px 32px rgba(0, 0, 0, .25);
}

.lx-qr svg { display: block; width: 100%; height: 100%; }
.lx-key { display: grid; gap: 10px; min-width: 0; flex: 1 1 220px; }
.lx-key p { margin: 0; }

.lx-keytext {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .95rem;
  letter-spacing: .06em;
  word-break: break-all;
  color: var(--lx-text);
  background: var(--lx-field);
  border: 1px dashed var(--lx-line-strong);
}

.lx-key .lx-btn { justify-self: start; }

.lx-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
}

.lx-form-row .lx-input-wrap { flex: 1 1 200px; max-width: 260px; }
.lx-form-row .lx-btn { width: auto; }
.lx-form-row[hidden] { display: none; }

.lx-status-row { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 16px; }
.lx-status-item { display: grid; gap: 4px; }
.lx-ok { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; color: var(--lx-ok); }
.lx-button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lx-button-row .lx-btn { width: auto; }

.lx-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.lx-codes li {
  padding: 9px 12px;
  border-radius: 10px;
  text-align: center;
  font-family: var(--oms-font-mono, ui-monospace, monospace);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--lx-text);
  background: var(--lx-field);
  border: 1px solid var(--lx-line);
}

.lx-sessions {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.lx-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--lx-line);
  background: var(--lx-field);
  transition: border-color .2s;
}

.lx-session:hover { border-color: var(--lx-line-strong); }
.lx-session.current { border-color: rgba(var(--lx-accent-rgb), .45); }

.lx-session-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--lx-accent);
  background: rgba(var(--lx-accent-rgb), .1);
}

.lx-session-main { min-width: 0; }
.lx-session-title { margin: 0; font-weight: 600; color: var(--lx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-session-meta { margin: 2px 0 0; font-size: .8rem; color: var(--lx-muted); }
.lx-session-tag { margin-left: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-accent); }
.lx-empty { padding: 18px; text-align: center; font-size: .9rem; color: var(--lx-muted); border: 1px dashed var(--lx-line); border-radius: 14px; }

.lx-skeleton {
  height: 16px;
  margin: 8px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lx-line) 0%, var(--lx-line-strong) 50%, var(--lx-line) 100%);
  background-size: 200% 100%;
  animation: lx-shimmer 1.4s linear infinite;
  list-style: none;
}

.lx-skeleton.short { width: 60%; }

/* ---------- Motion ---------- */
@keyframes lx-rise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes lx-spin { to { transform: rotate(360deg); } }
@keyframes lx-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
@keyframes lx-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes lx-breathe { from { opacity: .55; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes lx-shake-in { 0% { opacity: 0; transform: translateX(-6px); } 40% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lx *,
  .lx *::before,
  .lx *::after { animation: none !important; transition: none !important; }
}

html.reduce-motion .lx *,
html.reduce-motion .lx *::before,
html.reduce-motion .lx *::after { animation: none !important; transition: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lx { grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); }
  .lx-hero-foot { display: none; }
}

@media (max-width: 960px) {
  .lx { grid-template-columns: minmax(0, 1fr); }
  .lx-hero {
    position: absolute;
    inset: 0;
    height: 300px;
    border: 0;
    mask-image: linear-gradient(#000 40%, transparent);
  }
  .lx-hero-inner { display: none; }
  .lx-panel { background: transparent; }
  .lx-mobile-brand { display: inline-flex; color: #eef3fb; }
  [data-bs-theme="light"] .lx-mobile-brand { color: var(--lx-text); }
  [data-bs-theme="light"] .lx-hero { opacity: .12; }
  .lx-card-wrap { place-items: start center; padding-top: 20px; }
  .lx-mobile-tag {
    display: block;
    max-width: 440px;
    margin: 28px auto 0;
    width: 100%;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #eef3fb;
    text-wrap: balance;
  }
  [data-bs-theme="light"] .lx-mobile-tag { color: var(--lx-text); }
  .lx-mobile-tag .lx-dash { color: color-mix(in srgb, currentColor 45%, transparent); font-weight: 400; }
}

@media (max-width: 520px) {
  .lx-panel { padding: 14px 16px; }
  .lx-card { padding: 24px 20px; border-radius: 18px; }
  .lx-card-wrap { padding-top: 28px; }
  .lx-rules { grid-template-columns: minmax(0, 1fr); }
  .lx-session { grid-template-columns: auto minmax(0, 1fr); }
  .lx-session .lx-btn { grid-column: 1 / -1; width: 100%; }
  .lx-block-head { grid-template-columns: auto minmax(0, 1fr); }
  .lx-block-head > :last-child:not(div) { grid-column: 1 / -1; justify-self: start; }
  .lx-qr { width: 164px; height: 164px; }
  .lx-sec-actions { width: 100%; }
}

@media (forced-colors: active) {
  .lx-card::before,
  .lx-btn::after { display: none; }
  .lx-btn { border: 1px solid ButtonText; }
}

@media print {
  .lx-hero, .lx-topbar, .lx-footer, .lx-sec-actions, .lx-button-row { display: none !important; }
  .lx, .lx-panel { display: block; background: #fff; color: #000; }
  .lx-card { box-shadow: none; border: 0; backdrop-filter: none; }
}
