/* Signed-out pages and Verify (WEB-18 lane E): sign-in, password reset, accept invite
 * (app.html, chromeless routes) and verify.html. The approved canvas is the spec
 * (docs/assets/design-canvas: Main.dc.html's seal mark, buttons, empty-state art and
 * skeleton; Signer.dc.html's secure-open loader and sealed receipt). Colours come from
 * the --os-* tokens; the few the tokens do not have (seal gradients, the receipt frame)
 * are --auth-* here, with dark values below. Fluid rem throughout; px only for hairlines.
 */

:root {
  --auth-hair: rgba(24, 24, 27, 0.06);
  --auth-hair-strong: rgba(24, 24, 27, 0.1);
  --auth-frame: rgba(24, 24, 27, 0.03);
  --auth-ink-2: #52525b;
  --auth-faint: #a1a1aa;
  --auth-card-shadow: 0 1px 0.125rem rgba(24, 24, 27, 0.05), 0 1.5rem 3rem -1.5rem rgba(24, 24, 27, 0.22);
  --auth-lift-shadow: 0 0 0 1px rgba(24, 24, 27, 0.06), 0 0.75rem 2rem -1rem rgba(24, 24, 27, 0.25);
  --auth-well: #fafaf9;
  --auth-glow: #fdf3f3;
  --auth-glow-ok: #eef8f1;
  --auth-glow-warn: #fdf6ea;
  --auth-red: #c01622;
  --auth-red-hover: #a8121d;
  --auth-seal-red: radial-gradient(circle at 35% 30%, #e0434c, #8e0b14);
  --auth-seal-red-ring: #fdf0f1;
  --auth-seal-red-drop: rgba(142, 11, 20, 0.5);
  --auth-seal-ok: radial-gradient(circle at 35% 30%, #34b46a, #0e5a2c);
  --auth-seal-ok-ring: #eaf6ee;
  --auth-seal-ok-drop: rgba(14, 90, 44, 0.45);
  --auth-seal-warn: radial-gradient(circle at 35% 30%, #f0a43a, #9a4a07);
  --auth-seal-warn-ring: #fdf3e2;
  --auth-seal-warn-drop: rgba(154, 74, 7, 0.45);
  --auth-ok: #15803d;
  --auth-warn: #b45309;
  --auth-bad: #c01622;
  --auth-ok-soft: #f0fdf4;
  --auth-warn-soft: #fffbeb;
  --auth-bad-soft: #fef2f2;
  --auth-sk: #f1f0ed;
  --auth-sk-hi: #f8f7f5;
  --auth-dark-btn: #18181b;
  --auth-dark-btn-hover: #27272a;
  --auth-on-dark: #ffffff;
  --auth-enter: cubic-bezier(.16, 1, .3, 1);
  --auth-change: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  --auth-hair: rgba(255, 255, 255, 0.08);
  --auth-hair-strong: rgba(255, 255, 255, 0.14);
  --auth-frame: rgba(255, 255, 255, 0.03);
  --auth-ink-2: #c4c4cc;
  --auth-faint: #8a8a94;
  --auth-card-shadow: 0 1px 0.125rem rgba(0, 0, 0, 0.4), 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.7);
  --auth-lift-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0.75rem 2rem -1rem rgba(0, 0, 0, 0.7);
  --auth-well: rgba(255, 255, 255, 0.04);
  --auth-glow: rgba(192, 22, 34, 0.14);
  --auth-glow-ok: rgba(21, 128, 61, 0.16);
  --auth-glow-warn: rgba(180, 83, 9, 0.16);
  --auth-seal-red-ring: rgba(224, 67, 76, 0.18);
  --auth-seal-ok-ring: rgba(52, 180, 106, 0.18);
  --auth-seal-warn-ring: rgba(240, 164, 58, 0.18);
  --auth-ok: #5fd38d;
  --auth-warn: #f2c14e;
  --auth-bad: #ff8a92;
  --auth-ok-soft: rgba(95, 211, 141, 0.1);
  --auth-warn-soft: rgba(242, 193, 78, 0.1);
  --auth-bad-soft: rgba(255, 138, 146, 0.1);
  --auth-sk: #22262d;
  --auth-sk-hi: #2c3139;
  --auth-dark-btn: #f4f4f5;
  --auth-dark-btn-hover: #ffffff;
  --auth-on-dark: #18181b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --auth-hair: rgba(255, 255, 255, 0.08);
    --auth-hair-strong: rgba(255, 255, 255, 0.14);
    --auth-frame: rgba(255, 255, 255, 0.03);
    --auth-ink-2: #c4c4cc;
    --auth-faint: #8a8a94;
    --auth-card-shadow: 0 1px 0.125rem rgba(0, 0, 0, 0.4), 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.7);
    --auth-lift-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0.75rem 2rem -1rem rgba(0, 0, 0, 0.7);
    --auth-well: rgba(255, 255, 255, 0.04);
    --auth-glow: rgba(192, 22, 34, 0.14);
    --auth-glow-ok: rgba(21, 128, 61, 0.16);
    --auth-glow-warn: rgba(180, 83, 9, 0.16);
    --auth-seal-red-ring: rgba(224, 67, 76, 0.18);
    --auth-seal-ok-ring: rgba(52, 180, 106, 0.18);
    --auth-seal-warn-ring: rgba(240, 164, 58, 0.18);
    --auth-ok: #5fd38d;
    --auth-warn: #f2c14e;
    --auth-bad: #ff8a92;
    --auth-ok-soft: rgba(95, 211, 141, 0.1);
    --auth-warn-soft: rgba(242, 193, 78, 0.1);
    --auth-bad-soft: rgba(255, 138, 146, 0.1);
    --auth-sk: #22262d;
    --auth-sk-hi: #2c3139;
    --auth-dark-btn: #f4f4f5;
    --auth-dark-btn-hover: #ffffff;
    --auth-on-dark: #18181b;
  }
}

/* ---- Motion (canvas: rise, pop, float, seal, breathe, scan, shimmer) ------------------- */
@keyframes os-auth-rise { from { opacity: 0; transform: translateY(0.75rem) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes os-auth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes os-auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.375rem); } }
@keyframes os-auth-stamp { 0% { opacity: 0; transform: scale(0.6) rotate(-20deg); } 60% { opacity: 1; transform: scale(1.06) rotate(4deg); } 100% { transform: none; } }
@keyframes os-vfy-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes os-vfy-scan { 0% { transform: translateY(0); } 50% { transform: translateY(5.25rem); } 100% { transform: translateY(0); } }
@keyframes os-vfy-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes os-vfy-ldrise { from { opacity: 0; transform: translateY(0.375rem); } to { opacity: 1; transform: none; } }
.os-auth-rise { animation: os-auth-rise 340ms var(--auth-enter) both; }
.os-auth-fade { animation: os-auth-fade 220ms var(--auth-change) both; }
.os-auth-float { animation: os-auth-float 4s cubic-bezier(.45, 0, .55, 1) infinite; }
.os-auth-stamp { animation: os-auth-stamp 700ms cubic-bezier(.34, 1.56, .64, 1) both; }
.os-vfy-breathe { animation: os-vfy-breathe 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .os-auth-rise, .os-auth-fade, .os-auth-float, .os-auth-stamp, .os-vfy-breathe,
  .os-vfy__scan-bar, .os-vfy__skel, .os-vfy__step { animation: none; }
}

/* ---- The seal mark and seals -------------------------------------------------------------- */
.os-auth-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(145deg, #d42a35, #8e0b14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0.125rem rgba(142, 11, 20, 0.4);
}
.os-auth-mark--md { width: 2rem; height: 2rem; border-radius: 0.5625rem; }
.os-auth-mark .os-icon { width: 1rem; height: 1rem; stroke-width: 2.6; }

.os-auth-seal {
  flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--auth-seal-red);
  box-shadow: inset 0 0.125rem 0.125rem rgba(255, 255, 255, 0.3), 0 0 0 0.375rem var(--auth-seal-red-ring), 0 0.75rem 1.5rem -0.5rem var(--auth-seal-red-drop);
}
.os-auth-seal .os-icon { width: 1.75rem; height: 1.75rem; stroke-width: 2.2; }
.os-auth-seal--ok { background: var(--auth-seal-ok); box-shadow: inset 0 0.125rem 0.125rem rgba(255, 255, 255, 0.3), 0 0 0 0.375rem var(--auth-seal-ok-ring), 0 0.75rem 1.5rem -0.5rem var(--auth-seal-ok-drop); }
.os-auth-seal--warn { background: var(--auth-seal-warn); box-shadow: inset 0 0.125rem 0.125rem rgba(255, 255, 255, 0.3), 0 0 0 0.375rem var(--auth-seal-warn-ring), 0 0.75rem 1.5rem -0.5rem var(--auth-seal-warn-drop); }

/* ---- Signed-out layout ----------------------------------------------------------------- */
.is-chromeless .os-main:has(.os-auth) { padding: 0; max-width: none; }
/* The demo banner sits above the page: the canvas fills what is left, no scroll. */
body:has(.os-mock-banner:not([hidden])) .os-auth { min-height: calc(100vh - 1.75rem); min-height: calc(100dvh - 1.75rem); }
.os-auth {
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(40rem 24rem at 50% 28%, var(--auth-glow), transparent 70%), var(--os-canvas);
  color: var(--os-text); font-size: 0.875rem;
}
.os-auth__grid { width: 100%; max-width: 26rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4rem; align-items: center; }
.os-auth__col { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; min-width: 0; }
.os-auth__brand { align-self: center; display: inline-flex; align-items: center; gap: 0.625rem; color: var(--os-text); text-decoration: none; }
.os-auth__word { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }

.os-auth__frame { padding: 0.375rem; border-radius: 1.25rem; background: var(--auth-frame); box-shadow: 0 0 0 1px var(--auth-hair); }
.os-auth__card {
  border-radius: 0.9375rem; background: var(--os-bg); box-shadow: var(--auth-card-shadow);
  padding: 2.25rem 2.25rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0;
}
.os-auth__head { display: flex; flex-direction: column; gap: 0.375rem; }
.os-auth__title { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.os-auth__lede { margin: 0; color: var(--auth-ink-2); line-height: 1.55; }

.os-auth__form { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.os-auth__field { display: flex; flex-direction: column; min-width: 0; }
.os-auth__field + .os-auth__field { margin-top: 0.5rem; }
.os-auth__label { margin: 0 0 0.375rem; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.os-auth__input { width: 100%; min-height: 2.75rem; box-sizing: border-box; }
.os-auth__error { margin: 0.375rem 0 0; min-height: 0; font-size: 0.8125rem; }
.os-auth__error:empty { display: none; }
.os-auth__secret { position: relative; display: flex; }
.os-auth__input--secret { padding-right: 3.25rem; } /* clears the 44 px reveal target plus its 0.25rem inset */
.os-auth__reveal {
  position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; min-width: var(--os-target-min); min-height: var(--os-target-min);
  border: 0; border-radius: 0.4375rem; background: transparent; color: var(--os-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms var(--auth-change), color 160ms var(--auth-change);
}
.os-auth__reveal:hover { background: var(--auth-hair); color: var(--os-text); }
.os-auth__reveal.is-on { color: var(--os-text); }
.os-auth__reveal.is-on .os-auth__eye { position: relative; }
.os-auth__reveal.is-on .os-auth__eye::after { /* a stroke through the eye: "hide" */
  content: ""; position: absolute; left: -0.0625rem; right: -0.0625rem; top: 50%; height: 0.09375rem;
  background: currentColor; transform: rotate(-40deg); border-radius: 1px;
}
.os-auth__eye { display: inline-flex; }

.os-auth__row { display: flex; justify-content: flex-end; margin-top: 0.25rem; }
.os-auth__link {
  border: 0; background: none; padding: 0 0.125rem; min-height: var(--os-target-min); font: inherit; font-size: 0.8125rem;
  font-weight: 500; color: var(--auth-ink-2); cursor: pointer; white-space: nowrap; border-radius: 0.25rem;
}
.os-auth__link:hover { color: var(--auth-red); text-decoration: underline; text-underline-offset: 0.1875rem; }

.os-auth__submit { width: 100%; margin-top: 0.75rem; white-space: nowrap; }
.os-auth .os-btn--primary {
  background: var(--auth-red); border-color: var(--auth-red); color: #fff; font-weight: 500;
  border-radius: 0.625rem; min-height: 2.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0.125rem rgba(142, 11, 20, 0.35);
  transition: transform 160ms var(--auth-change), background 160ms var(--auth-change), box-shadow 160ms var(--auth-change);
}
.os-auth .os-btn--primary:hover { background: var(--auth-red-hover); border-color: var(--auth-red-hover); }
.os-auth .os-btn:active { transform: scale(0.97); }
.os-auth .os-btn--secondary.os-auth__submit { border-radius: 0.625rem; min-height: 2.75rem; }
.os-auth__back { align-self: flex-start; white-space: nowrap; }

.os-auth__alert {
  display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.75rem 0.875rem; margin-bottom: 0.75rem;
  border-radius: 0.75rem; background: var(--auth-bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--auth-bad) 22%, transparent);
  color: var(--os-text); font-size: 0.8125rem; line-height: 1.5;
}
.os-auth__alert[hidden] { display: none; }
.os-auth__alert-icon { color: var(--auth-bad); display: inline-flex; padding-top: 0.125rem; }
.os-auth__alert-body p { margin: 0; }
.os-auth__alert-title { font-weight: 600; }
.os-auth__formerror { margin: 0.5rem 0 0; color: var(--os-danger); font-size: 0.8125rem; }
.os-auth__formerror:empty { display: none; }

.os-auth__note {
  display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; padding: 0.75rem 0.875rem; border-radius: 0.75rem;
  background: var(--auth-well); box-shadow: inset 0 0 0 1px var(--auth-hair); color: var(--auth-ink-2); line-height: 1.5;
}
.os-auth__note .os-icon { flex: none; margin-top: 0.1875rem; color: var(--os-muted); }
.os-auth__note--ok { background: var(--auth-ok-soft); }
.os-auth__note--ok .os-icon { color: var(--auth-ok); }

.os-auth__rules { list-style: none; margin: 0.625rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; font-size: 0.8125rem; color: var(--os-muted); }
.os-auth__rules li { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; transition: color 200ms var(--auth-change); }
.os-auth__rule-dot {
  width: 1rem; height: 1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--auth-faint); transition: background 240ms var(--auth-change), color 240ms var(--auth-change);
}
.os-auth__rules li.is-met { color: var(--os-text); }
.os-auth__rules li.is-met .os-auth__rule-dot { background: var(--auth-ok); color: #fff; }
.os-auth__rule-dot .os-icon { stroke-width: 3; }

.os-auth__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 0.5rem 0; }
.os-auth__done .os-auth-seal { margin-bottom: 0.75rem; }
.os-auth__done-title { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

.os-auth__or { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; color: var(--os-muted); font-size: 0.75rem; }
.os-auth__or::before, .os-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--auth-hair-strong); }
.os-auth__sso { display: grid; gap: 0.5rem; }
.os-auth__sso[hidden] { display: none; }
.os-auth__sso-btn { width: 100%; justify-content: center; border-radius: 0.625rem; white-space: nowrap; }
.os-auth__sso-btn span { overflow: hidden; text-overflow: ellipsis; }
.os-auth__hint {
  display: flex; gap: 0.5rem; align-items: center; margin: 0; padding: 0.625rem 0.75rem; border-radius: 0.625rem;
  background: var(--os-canvas); color: var(--auth-ink-2); font-size: 0.8125rem;
}
.os-auth__hint .os-icon { flex: none; color: var(--os-muted); }

.os-auth__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; font-size: 0.8125rem; }
.os-auth__footlink { color: var(--os-muted); text-decoration: none; min-height: var(--os-target-min); display: inline-flex; align-items: center; white-space: nowrap; }
.os-auth__footlink:hover { color: var(--os-text); text-decoration: underline; text-underline-offset: 0.1875rem; }

/* The side panel: only where there is room for it, and quiet. */
.os-auth__aside { display: none; }
@media (min-width: 64em) {
  .os-auth__grid.has-aside { max-width: 56rem; grid-template-columns: minmax(0, 26rem) minmax(0, 22rem); justify-content: center; }
  .os-auth__aside { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 0 1rem 2.5rem; box-shadow: inset 1px 0 0 var(--auth-hair-strong); }
}
.os-auth__art { width: 12.5rem; height: auto; margin-left: -0.5rem; }
.os-auth__aside-title { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.os-auth__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; color: var(--auth-ink-2); line-height: 1.5; }
.os-auth__points li { display: flex; gap: 0.75rem; align-items: flex-start; }
.os-auth__point-icon {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--os-bg); box-shadow: 0 0 0 1px var(--auth-hair), 0 1px 0.125rem rgba(24, 24, 27, 0.04); color: var(--os-text);
}

/* Drawn art (side panel, drop zone): strokes and fills in the canvas's palette. */
.art-shadow { fill: var(--os-text); opacity: 0.06; }
.art-page { fill: var(--os-bg); stroke: #d4d4d8; stroke-width: 1.5; }
.art-band { fill: var(--auth-seal-red-ring); }
.art-ink { fill: #d4d4d8; }
.art-line { fill: #e4e4e7; }
.art-sign { fill: none; stroke: #1e3a8a; stroke-width: 2; stroke-linecap: round; }
.art-rule { stroke: #a1a1aa; stroke-width: 1; }
.art-seal { fill: var(--auth-red); }
.art-tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-dot-a { fill: #f2c98f; }
.art-dot-b { fill: #fca5a5; }
:root[data-theme="dark"] .art-page { stroke: #3f3f46; }
:root[data-theme="dark"] .art-line, :root[data-theme="dark"] .art-ink { fill: #3f3f46; }
:root[data-theme="dark"] .art-sign { stroke: #93c5fd; }

@media (max-width: 30em) {
  .os-auth { padding: 1.5rem 1rem; align-items: flex-start; }
  .os-auth__frame { padding: 0; background: none; box-shadow: none; }
  .os-auth__card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 1rem; }
}

/* ---- Verify ------------------------------------------------------------------------------ */
.os-verify { background: radial-gradient(48rem 28rem at 50% 0, var(--auth-glow), transparent 70%), var(--os-canvas); }
.os-vfy { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; font-size: 0.875rem; }
.os-vfy__intro { text-align: center; display: flex; flex-direction: column; gap: 0.5rem; max-width: 36rem; }
.os-vfy__title { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.os-vfy__lede { margin: 0; color: var(--auth-ink-2); line-height: 1.55; }
.os-vfy__muted { color: var(--os-muted); }
.os-vfy__small { font-size: 0.8125rem; }
.os-vfy__ellipsis { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.os-vfy__drop {
  width: 100%; max-width: 40rem; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 2rem 1.5rem 1.75rem; border-radius: 1.25rem; background: var(--os-bg);
  box-shadow: var(--auth-lift-shadow); outline: 0.09375rem dashed var(--auth-hair-strong); outline-offset: -0.75rem;
  transition: background 200ms var(--auth-change), outline-color 200ms var(--auth-change), transform 200ms var(--auth-change);
}
.os-vfy__drop.is-dropping { outline-color: var(--auth-red); background: var(--auth-bad-soft); transform: scale(1.01); }
.os-vfy__art { width: 10rem; height: 7.5rem; }
.os-vfy__drop-title { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 600; }
.os-vfy__drop-or { margin: 0; color: var(--os-muted); font-size: 0.8125rem; }
.os-vfy__drop .os-btn--primary {
  margin-top: 0.25rem; white-space: nowrap; background: var(--auth-red); border-color: var(--auth-red); color: #fff; border-radius: 0.625rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0.125rem rgba(142, 11, 20, 0.35);
}
.os-vfy__drop .os-btn--primary:hover { background: var(--auth-red-hover); border-color: var(--auth-red-hover); }
.os-vfy__drop-note { margin: 0.5rem 0 0; display: inline-flex; align-items: center; gap: 0.375rem; color: var(--os-muted); font-size: 0.75rem; text-align: center; }
.os-vfy__drop-note .os-icon { flex: none; }

.os-vfy__engine { margin: 0; min-height: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--os-muted); }
.os-vfy__engine[data-state="ready"] .os-icon { color: var(--auth-ok); }
.os-vfy__engine[data-state="missing"] { color: var(--auth-warn); }
.os-vfy__skel {
  display: inline-block; border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--auth-sk) 0%, var(--auth-sk-hi) 40%, var(--auth-sk) 80%); background-size: 200% 100%;
  animation: os-vfy-shimmer 1.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.os-vfy__skel--dot { width: 1rem; height: 1rem; border-radius: 50%; }
.os-vfy__skel--line { width: 15rem; max-width: 60vw; height: 0.625rem; }

.os-vfy__trust {
  width: 100%; max-width: 40rem; box-sizing: border-box; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.25rem; border-radius: 0.875rem; background: var(--auth-frame); box-shadow: inset 0 0 0 1px var(--auth-hair);
}
.os-vfy__trust-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.os-vfy__trust-title { margin: 0; font-size: 0.875rem; font-weight: 600; }
.os-vfy__trust-text p { margin: 0; line-height: 1.5; }
.os-vfy__trust .os-btn { flex: none; white-space: nowrap; }
.os-vfy__chips { list-style: none; margin: 0.375rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.os-vfy__chip {
  max-width: 100%; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0 0.125rem 0 0.5rem; min-height: 1.75rem;
  border-radius: 0.875rem; background: var(--os-bg); box-shadow: inset 0 0 0 1px var(--auth-hair-strong); font-size: 0.75rem;
}
.os-vfy__chip .os-icon:first-child { flex: none; color: var(--auth-ok); }

/* Scanning: the canvas's secure-open loader, with a page being read. */
.os-vfy__scanning { font-size: 0.875rem;
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  width: 100%; max-width: 24rem; margin: 0 auto;
}
.os-vfy__scan-wrap { padding: 0.5rem; }
.os-vfy__scan-page {
  position: relative; width: 5.5rem; height: 7rem; box-sizing: border-box; overflow: hidden; border-radius: 0.375rem; background: var(--os-bg);
  box-shadow: 0 0 0 1px var(--auth-hair-strong), 0 0.5rem 1.25rem -0.625rem rgba(142, 11, 20, 0.35);
  padding: 0.75rem 0.625rem; display: flex; flex-direction: column; gap: 0.4375rem;
}
.os-vfy__scan-line { height: 0.1875rem; border-radius: 1px; background: #e4e4e7; }
.os-vfy__scan-line:nth-child(1) { height: 0.25rem; width: 60%; background: #d4d4d8; }
.os-vfy__scan-line:nth-child(3) { width: 85%; }
.os-vfy__scan-line:nth-child(5) { width: 70%; background: #f6c9cc; }
.os-vfy__scan-line:nth-child(7) { width: 50%; background: #f6c9cc; }
:root[data-theme="dark"] .os-vfy__scan-line { background: #3f3f46; }
.os-vfy__scan-bar {
  position: absolute; left: 0; right: 0; top: 0.375rem; height: 1.25rem;
  background: linear-gradient(180deg, rgba(192, 22, 34, 0), rgba(192, 22, 34, 0.16), rgba(192, 22, 34, 0));
  border-bottom: 0.09375rem solid var(--auth-red);
  animation: os-vfy-scan 2.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.os-vfy__scan-head { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; width: 100%; min-width: 0; }
.os-vfy__scan-title { margin: 0; font-size: 1.0625rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-vfy__scan-sub { margin: 0; color: var(--os-muted); font-size: 0.8125rem; }
.os-vfy__steps-card { width: 100%; box-sizing: border-box; padding: 1rem; border-radius: 0.875rem; background: var(--os-bg); box-shadow: var(--auth-lift-shadow); }
.os-vfy__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.os-vfy__step { display: flex; align-items: center; gap: 0.625rem; font-size: 0.8125rem; color: var(--auth-faint); animation: os-vfy-ldrise 360ms var(--auth-enter) both; }
.os-vfy__step.is-done, .os-vfy__step.is-active { color: var(--os-text); }
.os-vfy__step-dot {
  width: 1.125rem; height: 1.125rem; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: var(--auth-well); box-shadow: inset 0 0 0 1px var(--auth-hair-strong); transition: background 240ms var(--auth-change);
}
.os-vfy__step.is-active .os-vfy__step-dot { background: var(--os-bg); box-shadow: inset 0 0 0 0.125rem var(--auth-red); }
.os-vfy__step.is-done .os-vfy__step-dot { background: #15803d; box-shadow: none; }
.os-vfy__step-dot .os-icon { stroke-width: 3; }

/* The sealed receipt. */
.os-vfy__result { font-size: 0.875rem;
  display: flex; justify-content: center; padding: 1rem 0 2rem; margin: -1rem -1rem 0;
  background: radial-gradient(36rem 20rem at 50% 30%, var(--auth-glow), transparent 70%);
}
.os-vfy__result.is-ok { background: radial-gradient(36rem 20rem at 50% 30%, var(--auth-glow-ok), transparent 70%); }
.os-vfy__result.is-warn { background: radial-gradient(36rem 20rem at 50% 30%, var(--auth-glow-warn), transparent 70%); }
.os-vfy__receipt-frame { width: 100%; max-width: 34rem; box-sizing: border-box; }
.os-vfy__receipt {
  border-radius: 0.9375rem; background: var(--os-bg); box-shadow: var(--auth-card-shadow);
  padding: 2.25rem 2.25rem 1.75rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem;
}
.os-vfy__verdict { margin: 0.5rem 0 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; outline: none; }
.os-vfy__verdict-text { margin: 0; color: var(--auth-ink-2); line-height: 1.55; max-width: 26rem; }
.os-vfy__hint {
  margin: 0; display: flex; gap: 0.5rem; align-items: flex-start; text-align: left; padding: 0.625rem 0.75rem; border-radius: 0.625rem;
  background: var(--auth-warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--auth-warn) 22%, transparent); font-size: 0.8125rem; line-height: 1.5;
}
.os-vfy__hint .os-icon { flex: none; margin-top: 0.125rem; color: var(--auth-warn); }
.os-vfy__facts {
  width: 100%; box-sizing: border-box; margin: 0.75rem 0 0; padding: 0.875rem 1rem; border-radius: 0.75rem;
  background: var(--auth-well); box-shadow: inset 0 0 0 1px var(--auth-hair);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1rem; text-align: left; font-size: 0.8125rem;
}
.os-vfy__facts dt { color: var(--os-muted); white-space: nowrap; }
.os-vfy__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.os-vfy__facts code { font-family: var(--os-font-mono); font-size: 0.75rem; color: var(--auth-ink-2); }
.os-vfy__facts--plain { margin: 0; background: none; box-shadow: none; padding: 0; }
.os-vfy__actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.os-vfy__dark.os-btn {
  height: 2.5rem; padding: 0 1.125rem; border: 0; border-radius: 0.625rem; white-space: nowrap;
  background: var(--auth-dark-btn); color: var(--auth-on-dark); font-weight: 500;
  transition: transform 160ms var(--auth-change), background 160ms var(--auth-change);
}
.os-vfy__dark.os-btn:hover { background: var(--auth-dark-btn-hover); color: var(--auth-on-dark); }
.os-vfy__dark.os-btn:active { transform: scale(0.97); }

/* Detail cards under the receipt. */
.os-vfy__details { font-size: 0.875rem; width: 100%; max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.os-vfy__card {
  border-radius: 0.875rem; background: var(--os-bg); box-shadow: 0 0 0 1px var(--auth-hair), 0 1px 0.125rem rgba(24, 24, 27, 0.04);
  padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.os-vfy__card-title { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.os-vfy__sigs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.os-vfy__sig { border-radius: 0.75rem; box-shadow: inset 0 0 0 1px var(--auth-hair-strong); padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.os-vfy__sig-head { display: flex; align-items: center; gap: 0.75rem; justify-content: space-between; min-width: 0; }
.os-vfy__sig-title { margin: 0; font-size: 0.9375rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-vfy__pill {
  flex: none; display: inline-flex; align-items: center; gap: 0.3125rem; height: 1.5rem; padding: 0 0.625rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
.os-vfy__pill.is-ok { background: var(--auth-ok-soft); color: var(--auth-ok); }
.os-vfy__pill.is-bad { background: var(--auth-bad-soft); color: var(--auth-bad); }
.os-vfy__pill.is-warn { background: var(--auth-warn-soft); color: var(--auth-warn); }
.os-vfy__why { margin: 0; font-size: 0.8125rem; color: var(--auth-ink-2); overflow-wrap: anywhere; }
.os-vfy__checks-title { margin: 0.25rem 0 0; font-size: 0.75rem; font-weight: 600; color: var(--os-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.os-vfy__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: 0.625rem; background: var(--auth-well); box-shadow: inset 0 0 0 1px var(--auth-hair); }
.os-vfy__check {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.625rem; row-gap: 0.125rem;
  padding: 0.5rem 0.75rem; font-size: 0.8125rem;
}
.os-vfy__check + .os-vfy__check { box-shadow: inset 0 1px 0 var(--auth-hair); }
.os-vfy__check-dot {
  width: 1.125rem; height: 1.125rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: var(--auth-well); box-shadow: inset 0 0 0 1px var(--auth-hair-strong);
}
.os-vfy__check-dot .os-icon { stroke-width: 3; }
.os-vfy__check.is-ok .os-vfy__check-dot { background: #15803d; box-shadow: none; }
.os-vfy__check.is-bad .os-vfy__check-dot { background: var(--auth-red); box-shadow: none; }
.os-vfy__check-name { min-width: 0; }
.os-vfy__check-status { color: var(--os-muted); white-space: nowrap; font-size: 0.75rem; }
.os-vfy__check.is-bad .os-vfy__check-status { color: var(--auth-bad); font-weight: 500; }
.os-vfy__check.is-ok .os-vfy__check-status { color: var(--auth-ok); }
.os-vfy__check-why { grid-column: 2 / -1; font-family: var(--os-font-mono); font-size: 0.6875rem; color: var(--os-muted); overflow-wrap: anywhere; }

.os-vfy__line { margin: 0; display: flex; gap: 0.5rem; align-items: center; font-size: 0.8125rem; }
.os-vfy__line.is-ok .os-icon { color: var(--auth-ok); }
.os-vfy__line.is-bad { color: var(--auth-bad); }
.os-vfy__line.is-warn .os-icon { color: var(--auth-warn); }
.os-vfy__anchor-head { font-size: 0.9375rem; font-weight: 600; }
.os-vfy__details p { margin: 0; }
.os-vfy__trail { list-style: none; margin: 0.25rem 0 0; padding: 0 0 0 1rem; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: inset 0.09375rem 0 0 var(--auth-hair-strong); }
.os-vfy__event { position: relative; }
.os-vfy__event-dot { position: absolute; left: -1.3125rem; top: 0.3125rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--os-bg); box-shadow: inset 0 0 0 0.125rem var(--auth-red); }
.os-vfy__event-body { display: flex; flex-wrap: wrap; gap: 0.125rem 0.5rem; align-items: baseline; }
.os-vfy__event-what { font-weight: 500; }
.os-vfy__event-at { flex-basis: 100%; font-variant-numeric: tabular-nums; }
.os-vfy__head code { font-family: var(--os-font-mono); font-size: 0.6875rem; overflow-wrap: anywhere; }

@media (max-width: 30em) {
  .os-vfy__title { font-size: 1.375rem; }
  .os-vfy__drop { padding: 1.5rem 1rem; border-radius: 1rem; }
  .os-vfy__trust { flex-direction: column; }
  .os-vfy__receipt { padding: 1.75rem 1.25rem 1.5rem; }
  .os-vfy__receipt-frame { padding: 0; background: none; box-shadow: none; }
  .os-vfy__card { padding: 1rem; }
  .os-vfy__sig { padding: 0.875rem; }
  .os-vfy__result { margin: 0; padding: 0 0 1.5rem; }
}
.os-auth__card > .os-auth__alert { margin-bottom: 0; }
