/* =====================================================================================
   Hosted signer flow (/sign/{token}) — public, mobile-first (opened from invite emails).
   Builds on the shared "Trust Ink" tokens in _content/Kyc.Dashboards.Shared/app.css.
   Everything is prefixed .sgn- so nothing leaks into the authenticated portal pages.
   ===================================================================================== */

.sgn-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); --control-h: 46px; }
.sgn-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sgn-brand { display: inline-flex; color: inherit; text-decoration: none; }
.sgn-secure { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--success); white-space: nowrap; }
.sgn-secure .rzi { font-size: 1rem; }
.sgn-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.sgn-foot { padding: 16px 16px 40px; text-align: center; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }

.sgn-card { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; }
.sgn-card h2 { font-size: 1.125rem; margin: 0 0 4px; }
.sgn-card .sgn-lede { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; margin: 0 0 16px; }
.sgn-substep { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
@media (min-width: 640px) {
  .sgn-main { padding-top: 32px; gap: 16px; }
  .sgn-card { padding: 28px; }
}

/* ---- document header ---- */
.sgn-doc h1 { font-size: 1.375rem; line-height: 1.2; margin: 4px 0 6px; overflow-wrap: anywhere; letter-spacing: -.02em; }
.sgn-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--ink-2); margin-top: 8px; }
.sgn-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.sgn-meta .rzi { font-size: 1rem; color: var(--ink-4); flex: none; }
.sgn-meta .mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
.sgn-message { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 6px; font-size: var(--fs-sm); color: var(--ink-2); white-space: pre-wrap; line-height: 1.55; }
.sgn-message b { color: var(--ink); }

.sgn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; list-style: none; padding: 0; }
.sgn-step { display: flex; flex-direction: column; gap: 7px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.sgn-step i { display: block; height: 4px; border-radius: 2px; background: var(--ink-100); }
.sgn-step span { display: inline-flex; align-items: center; gap: 4px; }
.sgn-step .rzi { font-size: .9375rem; }
.sgn-step.active { color: var(--ink); } .sgn-step.active i { background: var(--accent); }
.sgn-step.done { color: var(--success); } .sgn-step.done i { background: var(--success); }

/* ---- forms (large touch targets; 16px inputs stop iOS auto-zoom) ---- */
.sgn-card .field { margin-bottom: 14px; }
.sgn-card .field label { font-size: var(--fs-sm); }
.sgn-card .field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.sgn-card .rz-textbox, .sgn-card .rz-numeric, .sgn-card .rz-numeric input, .sgn-card .rz-dropdown, .sgn-card input.rz-textbox { font-size: 16px; }
.sgn-card input.rz-textbox { width: 100%; height: var(--control-h); border-radius: 8px; border: 1px solid transparent; background: var(--surface-2); padding: 0 var(--s3); font-family: var(--font-body); color: var(--ink); box-sizing: border-box; outline: none; }
.sgn-card input.rz-textbox:hover { border-color: var(--line-strong); }
.sgn-card input.rz-textbox:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.sgn-card input.rz-textbox:disabled { background: var(--ink-050); color: var(--ink-4); }
.sgn-card input[type=date].rz-textbox { -webkit-appearance: none; appearance: none; min-width: 0; }
.sgn-card .rz-button { height: 46px; font-size: 15px; }
.sgn-card .rz-button.rz-button-sm { height: 36px; font-size: var(--fs-sm); }
.sgn-card .rz-button.rz-button-xs { height: 28px; font-size: .75rem; }
.sgn-card .rz-selectbar { display: flex; width: 100%; }
.sgn-card .rz-selectbar .rz-button { flex: 1; height: 38px; font-size: var(--fs-sm); }
.sgn-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sgn-actions .rz-button { width: 100%; }
.sgn-actions .sgn-link { align-self: center; }
@media (min-width: 640px) {
  .sgn-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .sgn-actions .rz-button { width: auto; min-width: 180px; }
  .sgn-actions .sgn-link { align-self: auto; margin-left: auto; }
}
.sgn-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .sgn-grid2 { grid-template-columns: 1fr 1fr; } }
.sgn-code, .sgn-card input.sgn-code { text-align: center; font-family: var(--font-mono); font-size: 1.5rem !important; letter-spacing: .4em; height: 58px; padding-left: calc(var(--s3) + .4em); }
.sgn-link { background: none; border: none; padding: 0; color: var(--accent-deep); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sgn-link:disabled { color: var(--ink-4); cursor: default; text-decoration: none; }
.sgn-fine { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.sgn-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; }
.sgn-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.sgn-list li:last-child { border-bottom: none; }
.sgn-list .n { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .6875rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep); flex: none; }
.sgn-list .s { color: var(--ink-3); font-size: var(--fs-xs); }
.sgn-divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---- alerts & chips ---- */
.sgn-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 8px; padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 14px; }
.sgn-alert > .rzi { font-size: 1.125rem; flex: none; margin-top: 1px; }
.sgn-alert .t { font-weight: 600; }
.sgn-alert .d { margin-top: 2px; }
.sgn-alert .c { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: .6875rem; opacity: .75; overflow-wrap: anywhere; }
.sgn-alert.error { background: var(--breach-soft); color: var(--breach-ink); }
.sgn-alert.warn { background: var(--caution-soft); color: var(--warning-ink); }
.sgn-alert.info { background: var(--accent-soft); color: var(--accent-deep); }
.sgn-alert.success { background: var(--verified-soft); color: var(--success); }
.sgn-sandbox { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--caution-soft); color: var(--warning-ink); font-size: var(--fs-xs); font-weight: 600; margin: 0 0 14px; }
.sgn-sandbox .rzi { font-size: .9375rem; }
.sgn-sandbox code { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; }
.sgn-wait { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 14px; }
.sgn-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink-100); border-top-color: var(--accent); animation: sgn-spin .9s linear infinite; flex: none; }
@keyframes sgn-spin { to { transform: rotate(360deg); } }

/* ---- file pickers & previews ---- */
.sgn-file { display: block; position: relative; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 20px 16px; text-align: center; background: var(--surface-2); cursor: pointer; margin-bottom: 14px; }
.sgn-file:hover, .sgn-file:focus-within { border-color: var(--accent); }
.sgn-file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sgn-file > .rzi { font-size: 2rem; color: var(--ink-4); }
.sgn-file .t { font-weight: 600; font-size: var(--fs-sm); margin-top: 6px; }
.sgn-file .s { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 3px; }
.sgn-file.has { border-style: solid; border-color: var(--success); background: var(--verified-soft); }
.sgn-file.has > .rzi { color: var(--success); }
.sgn-preview { display: flex; gap: 12px; align-items: center; margin: -4px 0 14px; }
.sgn-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--surface-2); flex: none; }
.sgn-preview .ph { width: 88px; height: 88px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-4); flex: none; }
.sgn-preview .ph .rzi { font-size: 1.75rem; }
.sgn-preview .n { font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.sgn-preview .s { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }

/* ---- liveness challenge ---- */
.sgn-challenge { text-align: center; padding: 20px 16px; border-radius: 12px; background: var(--ink-900); color: #fff; margin: 0 0 14px; }
.sgn-challenge .l { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-ink); font-weight: 600; }
.sgn-challenge .code { font-family: var(--font-mono); font-size: 3rem; letter-spacing: .3em; padding-left: .3em; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.sgn-challenge .exp { font-size: var(--fs-xs); color: rgba(244,246,251,.72); margin-top: 6px; font-variant-numeric: tabular-nums; }
.sgn-challenge.expired .code { color: rgba(244,246,251,.35); text-decoration: line-through; }
.sgn-challenge.expired .exp { color: #FBD2CF; }

/* ---- signature pad + placement ---- */
.sgn-tabs { margin-bottom: 14px; }
.sgn-pad { position: relative; margin-bottom: 10px; }
.sgn-pad canvas { display: block; width: 100%; height: 190px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); touch-action: none; cursor: crosshair; }
.sgn-pad .line { position: absolute; left: 24px; right: 24px; bottom: 46px; border-top: 1px dashed var(--ink-200); pointer-events: none; }
.sgn-pad .hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: var(--fs-xs); color: var(--ink-4); pointer-events: none; }
.sgn-pad.inked .hint { display: none; }
.sgn-pad .clear { position: absolute; top: 8px; right: 8px; }
.sgn-hidden { display: none !important; }
.sgn-place { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 4px; }
/* Real-page placement (pdf-placer.js): the page fitted to the card width, a draggable box on top. */
.sgn-pdf { position: relative; max-width: 560px; margin: 14px auto 0; }
.sgn-pdf .sheet { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-strong), 0 6px 20px rgba(11,18,32,.07); overflow: hidden; }
.sgn-pdf canvas { display: block; }
.sgn-pdf .status { display: grid; place-items: center; min-height: 220px; border-radius: 8px; background: var(--surface-2); color: var(--ink-4); font-size: var(--fs-sm); }
.sgn-pdf .box { position: absolute; border: 1.5px solid var(--accent); background: rgba(47,91,234,.10); border-radius: 3px; cursor: grab; touch-action: none; user-select: none; }
.sgn-pdf .box.dragging { cursor: grabbing; background: rgba(47,91,234,.16); }
.sgn-pdf .box:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.sgn-pdf .box img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sgn-pdf .box .handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(11,18,32,.3); cursor: nwse-resize; touch-action: none; }
.sgn-pdf .box .tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; white-space: nowrap; font-size: .6875rem; font-weight: 600; line-height: 1; color: #fff; background: var(--accent); padding: 4px 6px; border-radius: 4px; pointer-events: none; }
.sgn-pdf .box .tag.below { bottom: auto; top: 100%; margin: 4px 0 0; }
.sgn-pdf .box .tag.right { left: auto; right: -1.5px; }
.sgn-pdf-meta { text-align: center; margin-top: 8px; }
.sgn-pagebox { position: relative; width: 100%; max-width: 176px; aspect-ratio: 612 / 792; background: #fff; box-shadow: 0 0 0 1px var(--line-strong); border-radius: 4px; margin: 0 auto; overflow: hidden; }
.sgn-pagebox::before { content: ""; position: absolute; left: 12%; right: 12%; top: 12%; height: 52%; background: repeating-linear-gradient(180deg, var(--ink-050) 0 3px, transparent 3px 9px); }
.sgn-pagebox .sig { position: absolute; background: rgba(47,91,234,.16); outline: 1.5px solid var(--accent); border-radius: 2px; }
.sgn-pagebox .lbl { position: absolute; left: 6px; bottom: 4px; font-size: .625rem; color: var(--ink-4); }
.sgn-adv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ---- final state ---- */
.sgn-done { text-align: center; padding: 8px 0 4px; }
.sgn-done .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--verified-soft); color: var(--success); margin: 0 auto 14px; }
.sgn-done .ico .rzi { font-size: 2rem; }
.sgn-done h2 { font-size: 1.375rem; }
.sgn-done .sgn-actions { margin-top: 18px; }
@media (min-width: 640px) { .sgn-done .sgn-actions { justify-content: center; } .sgn-done .sgn-actions .rz-button { min-width: 220px; } }

.sgn-fatal { text-align: center; padding: 12px 0; }
.sgn-fatal .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--breach-soft); color: var(--breach-ink); margin: 0 auto 12px; }
.sgn-fatal .ico .rzi { font-size: 1.75rem; }

.sgn-skel { display: flex; flex-direction: column; gap: 10px; }
.sgn-skel .sk { height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .sgn-spinner { animation: none; border-color: var(--accent); border-top-color: var(--ink-100); }
  .sgn-page * { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================================
   Shared hosted KYC steps (Hosted/KycWizard, PhotoCapture, VideoCapture) + new signer states.
   ===================================================================================== */
.sgn-anchor { height: 0; scroll-margin-top: 16px; }
.sgn-need { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink-2); margin: 2px 0 14px; }
.sgn-need .rzi { font-size: 1.125rem; color: var(--accent-deep); flex: none; }
.sgn-alert-list { margin: 6px 0 0; padding-left: 18px; }
.sgn-alert-list li { margin: 2px 0; }
.sgn-steps.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sgn-steps.six .sgn-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* the design system freezes motion globally; a waiting spinner that doesn't spin reads as "stuck" */
.sgn-spinner { animation: sgn-spin .9s linear infinite !important; }

/* waiting / review cards */
.sgn-review { text-align: center; }
.sgn-review .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--caution-soft); color: var(--warning-ink); margin: 4px auto 14px; }
.sgn-review .ico.info { background: var(--accent-soft); color: var(--accent-deep); }
.sgn-review .ico .rzi { font-size: 2rem; }
.sgn-review .sgn-lede { max-width: 46ch; margin-left: auto; margin-right: auto; }
.sgn-review .sgn-wait, .sgn-review .sgn-alert { text-align: left; }
.sgn-review .sgn-actions { align-items: center; }
@media (min-width: 640px) { .sgn-review .sgn-actions { justify-content: center; } }
.sgn-bullets { list-style: none; padding: 0; margin: 0 auto 14px; max-width: 420px; text-align: left; display: flex; flex-direction: column; }
.sgn-bullets li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.sgn-bullets li:last-child { border-bottom: none; }
.sgn-bullets .rzi { font-size: 1.1rem; color: var(--ink-3); flex: none; margin-top: 1px; }

/* capture: choose camera or file */
.kc { margin-bottom: 4px; }
.kc-choose { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 520px) { .kc-choose { grid-template-columns: 1fr 1fr; } }
.kc-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 124px; padding: 18px 14px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-family: var(--font-body); text-align: center; cursor: pointer; }
.kc-opt:hover, .kc-opt:focus-within, .kc-opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.kc-opt:disabled, .kc-opt.off { opacity: .55; cursor: default; }
.kc-opt input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kc-opt > .rzi { font-size: 1.9rem; color: var(--accent-deep); }
.kc-opt .t { font-weight: 600; font-size: var(--fs-sm); margin-top: 4px; }
.kc-opt .s { font-size: var(--fs-xs); color: var(--ink-3); }

/* capture: live camera */
.kc-live { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-900); aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto 14px; width: 100%; }
@media (min-width: 560px) { .kc-live { aspect-ratio: 4 / 3; } }
.kc-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-live video.mirror { transform: scaleX(-1); }
.kc-guide { position: absolute; pointer-events: none; box-shadow: 0 0 0 9999px rgba(11,18,32,.45); border: 2px solid rgba(255,255,255,.9); }
.kc-live.face .kc-guide { left: 50%; top: 46%; width: 58%; aspect-ratio: 3 / 4; max-height: 76%; transform: translate(-50%, -50%); border-radius: 50%; }
.kc-live.doc .kc-guide { left: 50%; top: 50%; width: 84%; aspect-ratio: 1.42; max-height: 70%; transform: translate(-50%, -50%); border-radius: 12px; }
@media (min-width: 560px) { .kc-live.face .kc-guide { width: 36%; } .kc-live.doc .kc-guide { width: 72%; } }
.kc-cue { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: var(--fs-sm); font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.kc-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: var(--fs-sm); background: rgba(11,18,32,.6); }
.kc-say { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 10px; background: rgba(11,18,32,.78); color: #fff; }
.kc-say span { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-ink); font-weight: 600; }
.kc-say b { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: .25em; font-weight: 600; }
.kc-rec { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(208,57,47,.92); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kc-rec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.kc-progress { position: absolute; left: 12px; right: 12px; bottom: 44px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.28); }
.kc-progress i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.kc-progress b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--caution); }
.kc-live:has(.kc-rec) .kc-cue { display: none; }

/* capture: result */
.kc-result, .kc-clip { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--verified-soft); margin-bottom: 14px; }
.kc-clip { flex-direction: column; align-items: stretch; }
@media (min-width: 560px) { .kc-clip { flex-direction: row; align-items: center; } }
.kc-shot { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--ink-900); flex: none; }
.kc-shot.doc { width: 136px; height: 96px; }
.kc-shot.ph { display: grid; place-items: center; color: rgba(255,255,255,.5); }
.kc-player { width: 100%; max-width: 320px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--ink-900); object-fit: cover; }
.kc-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.kc-meta .n { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--success); }
.kc-meta .n .rzi { font-size: 1.1rem; }
.kc-meta .s { font-size: var(--fs-xs); color: var(--ink-2); overflow-wrap: anywhere; }
.kc-meta .sgn-link { margin-top: 4px; }

/* the signer flow embedded in the portal shell (My signatures → Sign) */
.sgn-embed { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; --control-h: 46px; }
.sgn-embed-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.sgn-embed-back:hover { color: var(--ink); }
.sgn-embed-back .rzi { font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .sgn-spinner { animation: none !important; }
}

/* keep the card's side padding on the centered result cards (.sgn-done/.sgn-fatal only set it vertically before) */
.sgn-card.sgn-done { padding: 28px 22px 24px; }
.sgn-card.sgn-fatal { padding: 24px 22px; }
@media (max-width: 420px) { .kc-say b { font-size: 1.25rem; letter-spacing: .18em; } }
/* .sgn-card .rz-button (46px touch targets) also matched the numeric spinner buttons, which carry rz-button too */
.sgn-card .rz-numeric .rz-numeric-button.rz-button { height: 18px; width: 28px; min-width: 0; padding: 0; font-size: 13px; }
.sgn-card .rz-numeric .rz-numeric-button.rz-numeric-up { inset-block-start: 4px; }
.sgn-card .rz-numeric .rz-numeric-button.rz-numeric-down { inset-block-end: 4px; }
.sgn-pagebox .lbl { bottom: auto; top: 4px; left: auto; right: 6px; }
.sgn-step.failed { color: var(--danger); } .sgn-step.failed i { background: var(--danger); }
