/* ── Tokens ─────────────────────────────────────────────────────
   Customer branding overrides `brand_primary_color` /
   `brand_accent_color`; `--hover`, `--subtle`, `--emerald-bg`
   derive from the primary so a custom brand stays coherent. Legacy
   `--ink-*` / `--rule-*` names are kept so the older `hl-*` screens
   (profile, MFA enrol, passkey nudge) render unchanged. */
:root {
  --brand-primary: #0E5B47;
  --brand-primary-fg: #FFFFFF;
  --canvas-ink: #0A0A0A;
  --brand-accent: #0E5B47;
  --brand-background: #F7F7F7;
  --brand-surface: #FFFFFF;
  --brand-text: #0A0A0A;
  --brand-radius: 18px;
  --brand-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;

  --primary:   var(--brand-primary);
  --primary-2: color-mix(in oklab, var(--primary) 88%, white);
  --hover:     color-mix(in oklab, var(--primary) 82%, black);
  --link:      #0E5B47;
  --accent:    var(--brand-accent);
  --subtle:    color-mix(in oklab, var(--primary) 22%, white);
  --emerald-bg: color-mix(in oklab, var(--primary) 9%, white);

  --bg:   var(--brand-background);
  --bg-2: color-mix(in oklab, var(--brand-background) 94%, var(--brand-text));
  --card: var(--brand-surface);

  --ink:   var(--brand-text);
  --ink-2: #2E2E2E;
  --ink-3: #5D6B65;
  --ink-4: #8A948F;
  --fg:  var(--ink);
  --mut: var(--ink-3);
  --mut2: var(--ink-4);

  --rule:   color-mix(in oklab, var(--brand-text) 10%, var(--brand-surface));
  --rule-2: color-mix(in oklab, var(--brand-text) 16%, var(--brand-surface));
  --hair:  var(--rule);
  --hair2: #EEF0EE;

  --ok:   #1F8A5B;
  --warn: #B68C2E;
  --err:  #B42318;
  --bad:  var(--err);
  --bad-bg: #FDECEA;
  --amber: #B45309;
  --amber-bg: #FEF3E2;
  --amber-line: #F5D9A8;
  --info: #1D4ED8;
  --info-bg: #E8EEFC;

  --shadow-lg:
    0 1px 2px rgba(10, 12, 20, .04),
    0 24px 64px -28px rgba(10, 12, 20, .22);

  --plus: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}
body.dark {
  --bg:   #0F1A16;
  --bg-2: #17231E;
  --card: #15201C;
  --ink:   #F5F7F5;
  --ink-2: #D4E0DA;
  --ink-3: #9FB3AA;
  --ink-4: #6F857B;
  --rule:   #23332D;
  --rule-2: #2C3F38;
  --hair2:  #1D2C27;
  --emerald-bg: #1D2C27;
  --bad-bg: color-mix(in oklab, var(--err) 22%, #15201C);
  --info-bg: color-mix(in oklab, var(--info) 22%, #15201C);
  --link: #CFE3DA;
}
@media (prefers-color-scheme: dark) {
  body.brand-system {
    --bg: #0F1A16; --bg-2: #17231E; --card: #15201C;
    --ink: #F5F7F5; --ink-2: #D4E0DA; --ink-3: #9FB3AA; --ink-4: #6F857B;
    --rule: #23332D; --rule-2: #2C3F38; --hair2: #1D2C27;
    --emerald-bg: #1D2C27;
    --link: #CFE3DA;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--brand-font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
button[aria-busy="true"] { cursor: wait; opacity: .76; pointer-events: none; }

/* ── Card shell ─────────────────────────────────────────────── */
.hl {
  width: 100%;
  min-width: 0;
  max-width: 448px;
  background: color-mix(in oklab, var(--card) 96%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, var(--card));
  border-radius: var(--brand-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hl-page {
  width: 100%;
  min-height: 100vh;
}
.hl-auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hl-flow {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(900px 520px at 15% -8%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 68%),
    radial-gradient(760px 500px at 100% 100%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 66%),
    var(--bg);
}
.hl-flow::before,
.hl-flow::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 360px; height: 360px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .72;
}
.hl-flow::before {
  top: -260px; right: -140px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 14%, transparent), transparent 68%);
}
.hl-flow::after {
  bottom: -260px; left: -170px;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 12%, transparent), transparent 68%);
}
.hl-flow > * { position: relative; z-index: 1; }
.hl-page-background {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .16; pointer-events: none;
}
body.brand-align-left .lc-brand { align-items: flex-start; text-align: left; }
body.brand-align-left .lc-brand-name { text-align: left; }
body.brand-density-compact .hl-body { padding: 20px 24px; }
body.brand-layout-minimal .hl-flow {
  justify-content: flex-start; padding-top: clamp(56px, 12vh, 120px);
  background: var(--card);
}
body.brand-layout-minimal .hl-flow::before,
body.brand-layout-minimal .hl-flow::after { display: none; }
body.brand-layout-minimal .hl,
body.brand-layout-minimal .hl-page-header { max-width: 392px; }
body.brand-layout-minimal .hl {
  border-color: transparent; box-shadow: none; background: transparent;
}
body.brand-layout-minimal .hl-page-header,
body.brand-layout-minimal .hl-page-footer,
body.brand-layout-minimal .hl-page-footer-links a { color: var(--ink-2); }
body.brand-layout-minimal .hl-body { padding-inline: 0; }
.hl-brand-panel { display: none; }
body.brand-layout-split .hl-auth-shell {
  display: grid; grid-template-columns: minmax(300px, .9fr) minmax(480px, 1.1fr);
}
body.brand-layout-split .hl-brand-panel {
  position: relative; isolation: isolate; display: flex; min-height: 100vh;
  flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: clamp(36px, 6vw, 88px); background: var(--primary); color: var(--brand-primary-fg);
}
body.brand-layout-split .hl-brand-panel.has-image { color: #fff; }
body.brand-layout-split .hl-brand-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, color-mix(in oklab, var(--primary) 32%, transparent) 5%, rgba(0,0,0,.56));
}
body.brand-layout-split .hl-brand-panel .hl-page-background {
  z-index: 0; opacity: .88;
}
body.brand-layout-split .hl-brand-panel > :not(.hl-page-background) { position: relative; z-index: 2; }
.hl-brand-panel-logo { max-width: 180px; max-height: 56px; object-fit: contain; object-position: left center; margin-bottom: auto; }
.hl-brand-panel picture { display: block; margin-bottom: auto; }
.hl-brand-panel h1 { max-width: 620px; margin: 0; color: inherit; font-size: clamp(32px, 4vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.hl-brand-panel p { max-width: 560px; margin: 18px 0 0; color: inherit; opacity: .78; font-size: 16px; }
@media (max-width: 800px) {
  body.brand-layout-split .hl-auth-shell { display: flex; }
  body.brand-layout-split .hl-brand-panel { display: none; }
}
.hl-page-header {
  width: 100%; max-width: 448px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--ink) 9%, var(--card));
  border-radius: 14px;
  background: color-mix(in oklab, var(--card) 88%, transparent);
  box-shadow: 0 8px 24px -20px rgba(10, 12, 20, .3);
  backdrop-filter: blur(18px);
  color: var(--ink-2); font-size: 14px; font-weight: 650; letter-spacing: -.012em;
}
.hl-page-header-brand {
  display: flex; align-items: center; gap: 9px; min-width: 0;
}
.hl-page-header-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.hl-page-header-brand-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hl-page-header-destination {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-3); font-size: 10px;
  font-weight: 500; letter-spacing: 0;
}
.hl-page-header-logo {
  width: 28px; height: 28px; object-fit: contain; border-radius: 7px; display: block;
}
.hl-security-badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  min-height: 28px; padding: 5px 9px;
  border: 1px solid color-mix(in oklab, var(--primary) 22%, var(--rule));
  border-radius: 999px; background: var(--emerald-bg); color: var(--link);
  font-size: 9.5px; font-weight: 650; line-height: 1; text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.hl-security-badge:hover {
  border-color: color-mix(in oklab, var(--primary) 48%, var(--rule));
  background: color-mix(in oklab, var(--primary) 14%, var(--card));
}
.hl-security-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hl-security-badge-label { white-space: nowrap; }
.hl-page-footer {
  width: 100%; max-width: 448px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 6px 12px; color: var(--ink-3); font-size: 11px; flex-wrap: wrap;
  border: 1px solid color-mix(in oklab, var(--ink) 8%, var(--card));
  border-radius: 999px; background: color-mix(in oklab, var(--card) 84%, transparent);
  backdrop-filter: blur(16px);
}
.hl-page-footer-links { display: flex; align-items: center; gap: 12px; }
.hl-page-footer-links a { color: inherit; text-decoration: none; font-size: 11.5px; }
.hl-page-footer-links a:hover { color: var(--ink); }
.hl-method-switch { width: 100%; margin-top: 14px; }
.hl-method-switch > summary {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 13px; cursor: pointer; list-style: none;
  border: 1px solid var(--rule-2); border-radius: 11px;
  color: var(--ink-2); background: var(--card); font-size: 12px; font-weight: 700;
}
.hl-method-switch > summary::-webkit-details-marker { display: none; }
.hl-method-switch > summary::after { content: "+"; margin-left: 7px; color: var(--ink-4); }
.hl-method-switch[open] > summary::after { content: "−"; }
.hl-method-switch > summary:hover { border-color: var(--primary); color: var(--link); }
.hl-method-switch-body { padding-top: 14px; }
.hl-identifier-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  margin-bottom: 18px; padding: 4px; border: 1px solid var(--rule);
  border-radius: 11px; background: var(--bg-2);
}
.hl-identifier-tab {
  min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  font: 650 12.5px var(--plus); transition: background .15s, color .15s, box-shadow .15s;
}
.hl-identifier-tab:hover { color: var(--ink); }
.hl-identifier-tab[aria-selected="true"] {
  background: var(--card); color: var(--ink); box-shadow: 0 1px 3px color-mix(in oklab, var(--ink) 10%, transparent);
}
.hl-identifier-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.hl-identifier-panel[hidden] { display: none; }
.lc-community-support {
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: 11px;
  background: var(--bg-2); text-align: center;
}
.lc-community-support p { margin: 0 0 6px; color: var(--ink-3); font-size: 11.5px; }
.lc-community-support a {
  color: var(--link); font-size: 12px; font-weight: 700; text-decoration: none;
}
.lc-community-support a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .hl-flow { padding: 18px 14px; justify-content: flex-start; }
  .hl-page-header { margin-top: 8px; }
  .hl { border-radius: 16px; box-shadow: none; }
  .hl-page-footer { justify-content: center; }
}
.hl-body { padding: clamp(26px, 5vw, 34px); }

/* Phone security widgets use supported Turnstile sizes; never scale or clip the iframe. */
.hl-phone-security { margin-block: 14px; text-align: center; }
.hl-security-title { margin: 0 0 10px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.hl-phone-turnstile { width: 100%; min-height: 65px; display: flex; justify-content: center; }
.hl-phone-turnstile[data-widget-size="compact"] { width: 150px; min-height: 140px; margin-inline: auto; }
.hl-security-status { min-height: 2.8em; margin: 8px 0 0; color: var(--mut); }
.hl-phone-security[data-security-error="true"] .hl-security-status { color: var(--err); }
.hl-security-retry { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--link); font: 600 12.5px var(--plus); text-decoration: underline; }
.hl-security-retry:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hl-phone-resend { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (max-width: 480px) {
  .hl-phone-page .hl-flow { padding-inline: 12px; }
  .hl-phone-page .hl-body { padding: 24px 16px; }
}
.hl-phone-status:empty { display: none; }
.pbtn:disabled, .obtn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
body.dark { --fg: var(--ink); --mut: var(--ink-3); --mut2: var(--ink-4); --hair: var(--rule); }
@media (prefers-color-scheme: dark) {
  body.brand-system { --fg: var(--ink); --mut: var(--ink-3); --mut2: var(--ink-4); --hair: var(--rule); }
}

/* Wide employee portals keep the full application canvas and do not use
   the authentication-stage treatment. */
.hl-page-wide .hl-auth-shell { display: block; min-height: 100vh; }
.hl-page-wide .hl-flow {
  width: 100%; max-width: none; min-height: 100vh;
  justify-content: flex-start;
}
.hl-page-wide .hl-flow::before,
.hl-page-wide .hl-flow::after,
.hl-page-wide .hl-page-header,
.hl-page-wide .hl-page-footer { display: none; }

/* ══ Design system (new hosted-login screens) ═══════════════════ */
.lc-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-bottom: 20px; text-align: center;
}
.lc-logo {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--emerald-bg);
  display: flex; align-items: center; justify-content: center;
  animation: lc-pop .5s cubic-bezier(.2,.8,.2,1) both;
}
.lc-logo-icon { color: var(--link); }
.lc-logo .brand-logo { max-width: 42px; max-height: 42px; border-radius: 8px; display: block; }
.lc-brand-name {
  color: var(--ink-2); font-size: 14px; font-weight: 750; line-height: 1.2;
  text-align: center;
}
@keyframes lc-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lc-logo { animation: none; } }
.lc-h {
  font-size: 24px; font-weight: 720; letter-spacing: -.035em;
  line-height: 1.18; margin: 0; color: var(--ink); text-wrap: balance;
}
.lc-sub { font-size: 13.5px; color: var(--mut); margin: 7px 0 0; line-height: 1.5; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.inp {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--rule-2); border-radius: 12px;
  font-family: inherit; font-size: 14px;
  background: color-mix(in oklab, var(--card) 95%, var(--bg)); color: var(--fg);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.inp::placeholder { color: var(--mut2); }
.inp:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 14%, transparent);
}
.inp.with-ic { padding-left: 40px; }
.inp-wrap { position: relative; }
.inp-wrap .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mut2); display: flex; }
.inp-wrap .tail {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--mut2); font-size: 12px; background: none; border: 0;
}
.inp-wrap .tail:hover { color: var(--link); }

.pbtn {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  background: var(--primary); color: var(--brand-primary-fg); border: 0;
  font-size: 14px; font-weight: 650;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 8px 20px -12px color-mix(in oklab, var(--primary) 72%, transparent);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.pbtn:hover { background: var(--hover); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--primary) 82%, transparent); }
.pbtn:active { transform: translateY(1px); }
.pbtn.block { margin-top: 4px; }
.obtn {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  background: color-mix(in oklab, var(--card) 96%, var(--bg)); border: 1px solid var(--rule-2);
  font-size: 14px; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .15s, background .15s;
}
.obtn:hover { background: var(--bg-2); border-color: var(--mut2); }
.obtn .gl { width: 18px; height: 18px; flex: none; }
.obtn.mt8 { margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }

.hl-social-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-quick-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-quick-methods > :only-child { grid-column: 1 / -1; }
.hl-social-compact { min-width: 0; padding: 9px 10px; text-decoration: none; }
.hl-social-apple { background: #000; border-color: #000; color: #fff; }
.hl-social-apple:hover { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.hl-social-compact > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-social-more { margin-top: 8px; }
.hl-social-more summary {
  min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--hair); border-radius: 10px; color: var(--mut);
  cursor: pointer; list-style: none; font-size: 12px; font-weight: 650;
  user-select: none;
}
.hl-social-more summary::-webkit-details-marker { display: none; }
.hl-social-more summary span {
  display: inline-grid; min-width: 22px; height: 20px; place-items: center;
  border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  font: 600 10px var(--mono);
}
.hl-social-more[open] summary { border-color: var(--primary); color: var(--link); }
.hl-social-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 360px) {
  .hl-social-primary, .hl-social-more-list, .hl-quick-methods { grid-template-columns: 1fr; }
}

.divider {
  display: flex; align-items: center; gap: 12px; margin: 12px 0;
  color: var(--mut2); font-size: 11.5px;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--hair); flex: 1; }

.muted { font-size: 12.5px; color: var(--mut); }
.link {
  color: var(--link); font-weight: 600; text-decoration: none;
  background: none; border: 0; padding: 0; font-size: inherit;
  font-family: inherit; cursor: pointer;
}
.link:hover { text-decoration: underline; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }

/* passkey biometric */
.bio {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 6px auto 14px; display: flex; align-items: center; justify-content: center;
  background: var(--emerald-bg); color: var(--link); position: relative;
}
.bio::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--subtle); opacity: .6; animation: bio-pulse 2.4s ease-out infinite;
}
@keyframes bio-pulse { 0% { transform: scale(.9); opacity: .7; } 70% { opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bio::after { animation: none; } }

/* scope rows (consent + kyc) */
.scopes { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.scope { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--hair2); }
.scope > div { min-width: 0; overflow-wrap: anywhere; }
.scope:last-child { border-bottom: 0; }
.scope .ck {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--emerald-bg); color: var(--link);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.scope.selectable { cursor: pointer; }
.scope.selectable:hover { background: color-mix(in oklab, var(--primary) 4%, transparent); }
.scope input[type=checkbox] {
  width: 20px; height: 20px; padding: 0; margin: 0; flex: none;
  accent-color: var(--primary);
}
.scope .st { font-size: 13px; font-weight: 600; color: var(--ink); }
.scope .sd { font-size: 11.5px; color: var(--mut); margin-top: 2px; line-height: 1.4; }
.scope .sd code { font-size: 11px; }
.consent-targets { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.consent-workspace { padding: 13px 14px; background: var(--bg-2); border-bottom: 1px solid var(--hair2); }
.consent-kicker { color: var(--mut); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.consent-workspace-name { color: var(--ink); font-size: 14px; font-weight: 700; margin-top: 3px; }
.consent-workspace-meta { color: var(--mut); font-size: 11.5px; margin-top: 2px; }
.consent-project { padding: 13px 14px 5px; border-bottom: 1px solid var(--hair2); }
.consent-project:last-child { border-bottom: 0; }
.consent-project-name { color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.consent-environment {
  display: flex; align-items: flex-start; gap: 11px; margin: 0 -7px 8px; padding: 9px 7px;
  border: 1px solid var(--hair2); border-radius: 9px; cursor: pointer;
}
.consent-environment:hover { background: color-mix(in oklab, var(--primary) 4%, transparent); }
.consent-environment input[type=checkbox] {
  width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--primary);
}
.consent-environment-copy { min-width: 0; }
.consent-environment-title { color: var(--ink); font-size: 12.5px; font-weight: 650; }
.consent-environment-detail { color: var(--mut); font-size: 11px; line-height: 1.4; margin-top: 2px; }
.consent-env-badge {
  display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
  color: var(--link); background: var(--emerald-bg);
}
.consent-env-badge.live { color: var(--warn); background: color-mix(in oklab, var(--warn) 10%, var(--card)); }

/* consent app-connection graphic */
.appconn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 14px; }
.appconn .a {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.appconn .a.n { background: var(--emerald-bg); color: var(--link); }
.appconn .a.app { background: #1F2937; color: #fff; }
.appconn .dots { display: flex; gap: 4px; color: var(--mut2); }
.appconn .dots span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* kyc partner + official badge */
.partner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--hair); border-radius: 11px;
  padding: 11px 13px; margin: 12px 0;
}
.partner .pl {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--link); font-size: 12px; flex: none;
}
.partner .badge {
  margin-left: auto; background: var(--emerald-bg); color: var(--link);
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}

/* status (success / error) */
.status-ic {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 8px auto 16px; display: flex; align-items: center; justify-content: center;
}
.status-ic.ok { background: var(--emerald-bg); color: var(--link); }
.status-ic.err { background: var(--bad-bg); color: var(--bad); }
.alertbox {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bad-bg); border-radius: 11px; padding: 12px 13px; margin-bottom: 14px;
}
.alertbox .x { color: var(--bad); flex: none; display: flex; }
.alertbox .t { font-size: 12.5px; color: var(--bad); line-height: 1.45; }

.lc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11px; color: var(--mut2);
  padding: 14px 30px 20px; border-top: 1px solid var(--hair2); margin-top: 8px;
  flex-wrap: wrap;
}
.lc-foot-secured { display: flex; align-items: center; gap: 6px; }
.lc-foot-region { color: var(--mut2); font-variant-numeric: tabular-nums; }
.lc-foot svg { display: block; }
.lc-foot-links {
  display: flex; gap: 12px; align-items: center; margin-left: auto;
}
.lc-foot-links a { color: var(--mut); text-decoration: none; font-size: 11.5px; }
.lc-foot-links a:hover { color: var(--ink); }
@media (max-width: 420px) {
  .lc-foot { justify-content: center; padding-inline: 24px; }
  .lc-foot-links { margin-left: 0; }
}

/* status variants + callouts */
.status-ic.info { background: var(--info-bg); color: var(--info); }
.status-ic.warn { background: var(--amber-bg); color: var(--amber); }
.callout {
  display: flex; gap: 11px; align-items: flex-start;
  border-radius: 11px; padding: 12px 13px; font-size: 12.5px; line-height: 1.5;
}
.callout .x { flex: none; margin-top: 1px; display: flex; }
.callout.info { background: var(--info-bg); color: var(--info); }
.callout.warn { background: var(--amber-bg); color: var(--amber); }
.callout.ok { background: var(--emerald-bg); color: var(--link); }
.callout.bad { background: var(--bad-bg); color: var(--bad); }

/* app ↔ NamoID connection header (consent, sign-in-to-app) */
.appconnect { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.ac-logos { display: flex; align-items: center; }
.ac-tile {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(10,10,10,.10); z-index: 2; flex: none;
}
.ac-tile.app { background: #1F2937; color: #fff; font-weight: 800; font-size: 22px; }
.ac-tile.namo { background: var(--emerald-bg); }
.ac-link { position: relative; width: 66px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0 -4px; }
.ac-track { position: absolute; left: 2px; right: 2px; top: 50%; height: 0; border-top: 2px dashed var(--hair); }
.ac-badge {
  position: relative; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: var(--brand-primary-fg); display: flex; align-items: center; justify-content: center;
}
.ac-badge::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--subtle); opacity: .6; animation: bio-pulse 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .ac-badge::after { animation: none; } }
.ac-sub { font-size: 13px; color: var(--mut); text-align: center; margin: 6px 0 0; line-height: 1.5; }
.ac-sub b { color: var(--ink); font-weight: 700; }

/* field hints (passkey / otp) */
.fieldnote { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mut2); margin: 7px 0 0; line-height: 1.4; }
.fieldnote svg { flex: none; }
.fieldnote.center { justify-content: center; }
/* hidden autofill input (OTC) */
.otp-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* post-login enrollment benefits */
.enroll-benefits { display: flex; gap: 16px; justify-content: center; margin: 14px 0 2px; flex-wrap: wrap; }
.enroll-benefits span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--link); }

/* account chooser */
.acct-list { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.acct {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.acct:hover { border-color: var(--primary); background: var(--emerald-bg); }
.acct-av { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald-bg); color: var(--link); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.acct-av.ghost { background: var(--hair2); color: var(--mut); }
.acct-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-n { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.acct-e { font-size: 12px; color: var(--mut); }
.acct.add .acct-n { color: var(--link); }

/* spinner (interstitial) */
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--primary); margin: 0 auto; animation: hl-spin .8s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* cross-device QR */
.qrbox { width: 180px; height: 180px; margin: 0 auto; border: 1px solid var(--hair); border-radius: 14px; background: #fff; color: #0a0a0a; display: flex; align-items: center; justify-content: center; }

/* new-device row (risk step-up) */
.newdev { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--hair); border-radius: 11px; padding: 12px 13px; margin: 0 0 14px; }
.newdev .sesh-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--card); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--mut); flex: none; }
.newdev .sesh-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.newdev .sesh-d { font-size: 11.5px; color: var(--mut); margin-top: 1px; }

/* config-error rows */
.cfgbox { border: 1px solid var(--hair); border-radius: 11px; overflow: hidden; margin: 2px 0 4px; }
.cfg-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; font-size: 12.5px; border-bottom: 1px solid var(--hair2); }
.cfg-row:last-child { border-bottom: 0; }
.cfg-row span { color: var(--mut); }
.cfg-row b { color: var(--bad); font-family: var(--mono); }

/* WCAG 2.2 — visible focus + minimum target size */
.pbtn, .obtn { min-height: 44px; }
.pbtn:focus-visible, .obtn:focus-visible, .inp:focus-visible,
.link:focus-visible, .acct:focus-visible, .tail:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* ══ Legacy component classes — used by profile / MFA-enrol /
      passkey-nudge / signup-complete screens not yet redesigned.
      Kept verbatim (retargeted onto the shared tokens above). ══ */
.hl-title, h1 { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.14; margin: 6px 0 8px; text-wrap: balance; color: var(--ink); }
.hl-sub { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
h2 { font-weight: 600; font-size: 14px; margin: 16px 0 6px; color: var(--ink-2); }
.hl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.hl-label, label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hl-input,
input[type=email], input[type=text], input[type=tel],
input[type=password], input[type=date], input[type=number] {
  appearance: none; width: 100%; padding: 13px 14px; font: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--card); border: 1px solid var(--rule-2);
  border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input.otp-code {
  font: 700 22px var(--mono);
  letter-spacing: 0.24em;
  text-align: center;
}
.hl-input:focus, input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--subtle); }
.hl-input::placeholder, input::placeholder { color: var(--ink-4); }
.hl-prefix-input { display: flex; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: var(--card); }
.hl-prefix-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--subtle); }
.hl-prefix-input .prefix { padding: 13px 14px; background: var(--bg-2); border-right: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.hl-prefix-input input { border: 0; background: transparent; flex: 1; padding: 13px 14px; font-size: 14.5px; color: var(--ink); outline: none; min-width: 0; }
.hl-prefix-input input:focus { box-shadow: none; }
.hl-btn, button.btn-primary, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; font: inherit; font-size: 14.5px; font-weight: 600;
  border: 0; border-radius: 10px; background: var(--primary); color: white;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.hl-btn:hover, button.btn-primary:hover, .btn-primary:hover { background: var(--hover); }
.hl-btn:active { transform: scale(0.99); }
.hl-btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--rule-2); }
.hl-btn-ghost:hover { background: var(--bg-2); }
.hl-btn-danger { background: var(--card); color: var(--err); border: 1px solid color-mix(in oklab, var(--err) 40%, var(--rule)); }
.hl-btn-danger:hover { background: color-mix(in oklab, var(--err) 6%, var(--card)); }
.btn-row { display: flex; gap: 8px; margin-top: 16px; }
.hl-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--ink-3); font-size: 11.5px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.hl-or::before, .hl-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.hl-social-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2px; }
.hl-social-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.hl-social-btn:hover { border-color: var(--ink-3); background: var(--bg-2); }
.hl-soc-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; }
.hl-soc-icon svg { display: block; width: 20px; height: 20px; }
.hl-inline-note, .hl-privacy-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.hl-privacy-note {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px; line-height: 1.55;
}
.hl-more-options { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.hl-more-options summary { list-style: none; cursor: pointer; color: var(--link); font-size: 13px; font-weight: 600; text-align: center; user-select: none; }
.hl-more-options summary::-webkit-details-marker { display: none; }
.hl-more-options summary::after { content: " ↓"; font-family: var(--mono); font-size: 11px; }
.hl-more-options[open] summary::after { content: " ↑"; }
.hl-secondary-methods { display: grid; gap: 14px; margin-top: 14px; }
.hl-secondary-method { padding-top: 14px; border-top: 1px solid var(--rule); }
.hl-secondary-method:first-child { padding-top: 0; border-top: 0; }
.hl-method-switcher { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.hl-method-choices { display: grid; gap: 7px; margin-top: 12px; }
.hl-method-choice { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--rule); border-radius: 9px; background: var(--card); color: var(--ink-2); cursor: pointer; font: 600 12.5px var(--plus); padding: 10px 12px; text-align: left; }
.hl-method-choice:hover { border-color: var(--primary); background: var(--emerald-bg); color: var(--link); }
.hl-method-choice::after { content: "→"; color: var(--mut2); font-family: var(--mono); }
.hl-method-panel[hidden], .hl-method-choices[hidden], #alternative-method-panels[hidden] { display: none; }
.hl-method-back { display: block; width: 100%; border: 0; background: none; color: var(--link); cursor: pointer; font: 500 12.5px var(--plus); padding: 0; text-align: center; }
.hl-method-back:hover { text-decoration: underline; }
.hl-method-label { margin-bottom: 8px; color: var(--ink-2); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hl-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--emerald-bg); color: var(--link); display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0; }
.hl-meta-link { font-size: 13px; color: var(--link); font-weight: 500; cursor: pointer; background: none; border: 0; padding: 0; font-family: var(--plus); text-decoration: none; }
.hl-meta-link:hover { text-decoration: underline; }
.hl-resend { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; gap: 12px; }
.hl-scope-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.hl-scope-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--rule); align-items: start; font-size: 14px; color: var(--ink-2); }
.hl-scope-list li:first-child { border-top: 0; }
.hl-scope-list .check { width: 18px; height: 18px; border-radius: 999px; background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; flex-shrink: 0; }
.hl-scope-list .ttl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hl-scope-list .desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.hl-consent-head { display: flex; align-items: center; gap: 0; margin: 8px 0 18px; justify-content: center; }
.hl-consent-head .app, .hl-consent-head .acme { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: white; font-size: 14px; }
.hl-consent-head .app { background: color-mix(in oklab, var(--ink) 75%, var(--ink-3)); }
.hl-consent-head .acme { background: var(--primary); }
.hl-consent-head .conn { height: 2px; width: 32px; background: var(--rule-2); position: relative; }
.hl-consent-head .conn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.hl-section-title { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin: 16px 0 8px; font-family: var(--mono); }
.hl-list { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.hl-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.hl-list-item:last-child { border-bottom: 0; }
.hl-list-item .t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hl-list-item .d { font-size: 12px; color: var(--ink-3); margin-top: 1px; font-family: var(--mono); }
.hl-list-item .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.hl-list-glyph { width: 32px; height: 32px; background: var(--bg-2); border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }
.hl-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: 0.06em; font-family: var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--rule); }
.hl-pill.ok { background: color-mix(in oklab, var(--ok) 8%, var(--card)); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 30%, var(--rule)); }
.hl-pill .d { width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.error, .hl-error { background: var(--bad-bg); border: 1px solid color-mix(in oklab, var(--err) 35%, var(--rule)); color: var(--err); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.hl-note, .hl-notice { background: var(--amber-bg); border: 1px solid var(--amber-line); color: color-mix(in oklab, var(--amber) 85%, var(--ink)); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.hl-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-3); margin: 6px 0 18px; }
.hl-check input { width: auto; margin-top: 3px; padding: 0; }
.hl-check a { color: var(--ink-2); text-decoration: underline; }
.hl-qr { width: 168px; height: 168px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 10px; margin: 8px auto 14px; display: grid; place-items: center; }
.hl-qr svg, .hl-qr img { width: 100%; height: 100%; }
.hl-key { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em; margin-bottom: 14px; user-select: all; }
.hl-account-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -2px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.hl-account-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--link); font-size: 13px; font-weight: 600; text-decoration: none;
}
.hl-account-nav a:hover { text-decoration: underline; }
.hl-account-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
