/* ---- the signed answer (js/answer.js): one object at three sizes ----
   Finished as a black titanium card: matte black metal, its labels and line work laser-etched to the
   bare metal beneath, a polished bevel round its edge. One result leads, a row of quiet context, the
   proof beneath in a two-column grid, and a seal drawn from the task's fingerprint. Gold is on
   Theasi's logo and a valid seal alone. */
.sa {
  --sa-pad: 40px;
  --sa-hair: 1px;
  --sa-etch: #C9CBD0;  /* the bare titanium an etched line shows, a cool silver, bright on the gunmetal */
  --sa-line: rgba(167, 169, 174, .15);
  /* an engraved groove, lit from above: its upper wall in shadow, its lower wall catching the light */
  --sa-groove: rgba(0, 0, 0, .62);
  --sa-lip: rgba(255, 255, 255, .09);
  --sa-ok: #4AD68F;
  --sa-bad: var(--fail);
  --sa-hi: inset 0 1px 0 rgba(255, 255, 255, .12);
  position: relative; isolation: isolate; color: var(--on-dark); font-family: var(--text); text-align: left;
  border-radius: 24px;
  /* gunmetal titanium: falling off toward its edges and darker toward its foot, as a slab of metal
     under one light; a soft key light at the top left, a broad cool sheen across it, over a fall from
     a lit grey to graphite */
  background: radial-gradient(120% 110% at 50% 38%, transparent 56%, rgba(0, 0, 0, .3) 100%), linear-gradient(180deg, transparent 66%, rgba(0, 0, 0, .2) 100%), linear-gradient(112deg, transparent 30%, rgba(222, 228, 240, .05) 44%, rgba(222, 228, 240, .02) 52%, transparent 62%), radial-gradient(130% 90% at 6% -16%, rgba(255, 255, 255, .085), transparent 60%), linear-gradient(162deg, #45474D 0%, #36383D 46%, #26272B 100%);
  /* a solid piece of metal: a thin lip of its edge showing beneath before the shadow (its face falls off
     toward the edges in the background, a gradient being cheaper to draw than a blurred inner shadow) */
  /* and a polished bevel round its face: the bright edge (::after), a dark chamfer, a faint inner rim */
  --sa-slab: inset 0 0 0 1.25px rgba(0, 0, 0, .5), inset 0 0 0 2.25px rgba(255, 255, 255, .08), 0 1px 0 0 #3A3C41, 0 2px 0 0 #0A0A0C;
  box-shadow: var(--sa-hi), var(--sa-slab), 0 0 0 1px rgba(0, 0, 0, .55), 0 3px 4px rgba(0, 0, 0, .55), 0 8px 24px -8px rgba(0, 0, 0, .5), 0 32px 80px -24px rgba(0, 0, 0, .65);
}
/* the polished bevel round a metal card's edge: bright where it faces the lights, top left and lower
   right, dim between, drawn as a ring masked out of a sweep of light */
.sa::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: var(--sa-edge, 1px); pointer-events: none;
  background: conic-gradient(from 215deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .2) 9%, rgba(255, 255, 255, .07) 20%, rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, .42) 40%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, .08) 74%, rgba(255, 255, 255, .34) 86%, rgba(255, 255, 255, .78));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* a half-pixel highlight and hairlines on screens that can draw them */
@media (min-resolution: 2dppx) { .sa { --sa-hair: .5px; --sa-edge: .75px; --sa-hi: inset 0 .5px 0 rgba(255, 255, 255, .14); } }
/* the metal's finish, bead-blasted: an even matte tooth a few percent bright, so the gradient never bands */
.sa::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: url("../art/sa-metal.png") 0 0 / 256px 256px; }
/* the engraving (js/answer.js), etched to the bare metal, faint enough never to touch what is read */
.sa-guil { --a: .1; position: absolute; z-index: -1; display: block; overflow: visible; pointer-events: none; }
.sa-guil .g-ln { color: #D2D4D9; opacity: var(--a); }
.sa-guil .g-sh { color: rgba(0, 0, 0, .72); }
.sa-guil .g-hi { color: rgba(255, 255, 255, .09); }
.sa-guil path { vector-effect: non-scaling-stroke; stroke-width: .6px; }
.sa-g-medallion { left: 50%; top: calc(var(--sa-seal) / 2); width: calc(var(--sa-seal) * 1.36); height: calc(var(--sa-seal) * 1.36); transform: translate(-50%, -50%); --a: .13; }
.sa-g-field { right: -150px; top: -128px; width: 420px; height: 420px; --a: .09; }
/* the emblem on the card's face, to the right, clear of the result */
.sa-emblem { right: 30px; top: 50%; width: 214px; height: 214px; transform: translateY(-62%); --a: .23; }
/* the knurl's dots, in the bare metal's silver (a pattern takes its colour from where it is defined) */
.sa-emblem pattern circle { fill: #E4E6EA; fill-opacity: .7; }
.sa-emblem .sa-outline { stroke-width: .8px; }
/* on the proof panel, it fills the corner the proof leaves open, below its codes */
.sa-full > .sa-g-field { top: auto; right: -170px; bottom: -190px; width: 560px; height: 560px; --a: .085; }
:where(.sa) :is(p, dl, dd, figure) { margin: 0; }
.sa-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sa-sizer { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }

/* labels: Title Case, shown uppercase, etched: the bare metal's silver, cut a little into the black */
.sa-kind, .sa-zone, .sa-ctx dt, .sa-grid dt, .sa-seal-k { font: 600 11px/1.25 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--sa-etch); text-shadow: 0 -1px 0 rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .09); }
.sa-ref { color: var(--sa-etch); }
/* codes: the room's sans, a little open. The served Inter has no slashed zero and no set that tells
   1, l and I apart, so neither is asked for; its tabular figures widen a hyphen until it reads as a
   space inside a signature, so only the fingerprint, all hex, takes them */
.sa-code, .sa-code-t, .sa-hash, .sa-ref, .sa-bytes-text, .sa-tip { letter-spacing: .02em; }
.sa-hash { font-variant-numeric: tabular-nums; }

/* ---- the header strip, as a pass has it ---- */
.sa-head { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 var(--sa-pad); border-bottom: 1px solid var(--sa-groove); box-shadow: 0 1px 0 var(--sa-lip); }
/* the logo inlaid in the metal, sitting a hair below its face */
.sa-logo { display: block; height: 15px; width: auto; flex: none; filter: drop-shadow(0 -.5px 0 rgba(0, 0, 0, .8)) drop-shadow(0 .75px 0 rgba(255, 255, 255, .08)); }
.sa-rule { flex: none; width: 1px; height: 16px; background: var(--sa-groove); box-shadow: 1px 0 0 var(--sa-lip); }
.sa-kind { white-space: nowrap; }
.sa-ref { margin-left: auto; min-width: 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }

/* ---- the result ---- */
.sa-q { font: 400 16px/1.45 var(--text); color: var(--on-dark-soft); max-width: 44ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sa-hero { margin-top: 24px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sa-hero[data-layout="stack"] { flex-direction: column; align-items: flex-start; gap: 8px; }
.sa-v, .sa-input, .sa-show { font: 600 72px/.92 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sa-unit { font: 500 20px/1.2 var(--text); color: var(--on-dark-soft); white-space: nowrap; }
.sa-detail { font: 400 14px/1.4 var(--text); color: var(--on-dark-muted); }
.sa-hero[data-kind="unreadable"] .sa-v { font-size: 40px; letter-spacing: -.02em; color: var(--on-dark-soft); }
/* the result in polished titanium: bright where the light falls, cooling to the metal's grey beneath */
.sa-hero:not([data-kind="unreadable"]) .sa-v, .sa-show { color: #ECEDF0; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sa-hero:not([data-kind="unreadable"]) .sa-v, .sa-show { background: linear-gradient(180deg, #FFFFFF 6%, #E7E8EB 42%, #B3B5BA 78%, #9C9EA4 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
/* raised from the metal: its relief laid on the group, never on the gradient-clipped text itself, which
   some browsers then draw blank */
.sa-hero:not([data-kind="unreadable"]) { filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .1)) drop-shadow(0 1.5px 1px rgba(0, 0, 0, .75)); }
.sa-hero[data-kind="flag"] .sa-unit::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--fail); vertical-align: .12em; }
.sa-status { margin-top: 16px; display: flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--text); color: var(--on-dark-soft); }
.sa-status[data-tone="verified"] { color: var(--on-dark); }
.sa-mark { flex: none; display: block; width: 16px; height: 16px; color: var(--on-dark-muted); }
.sa-mark svg { display: block; width: 100%; height: 100%; }
.sa-status[data-tone="answered"] .sa-mark, .sa-c-status[data-tone="answered"] .sa-mark { width: 8px; }
.sa-hint + .sa-status { margin-top: 20px; }
/* a result that could not be read says so once, in its own place */
.sa-hero[data-kind="unreadable"] ~ .sa-status[data-tone="unreadable"] { display: none; }
.sa-ctx { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--sa-groove); box-shadow: inset 0 1px 0 var(--sa-lip); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
.sa-ctx > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--sa-groove); box-shadow: inset 1px 0 0 var(--sa-lip); display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.sa-ctx > div:first-child { padding-left: 0; border-left: 0; box-shadow: none; }
.sa-ctx dd { font: 500 14px/1.4 var(--text); color: var(--on-dark); overflow-wrap: break-word; }
.sa-age { display: block; margin-top: 2px; font-weight: 400; color: var(--on-dark-muted); }

/* the number the reader changes: an input that looks exactly like the number, its digits drawn by a
   twin beneath so a changed one can be highlighted */
.sa-edit { position: relative; display: inline-block; cursor: text; }
.sa-input, .sa-show { margin: 0; padding: 0 0 2px; }
/* the twin sets the width; the input lies over it, a little wider so the caret has room */
.sa-input { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% + .2em); min-width: .5em; border: 0; border-radius: 0; background: transparent; color: transparent; caret-color: var(--accent); outline: none; appearance: none; -webkit-appearance: none; }
.sa-show { display: block; min-width: .5em; pointer-events: none; }
/* the highlight held to the digit's own height, not the line's */
.sa-show mark.chg { --hl: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--on-dark); background: linear-gradient(to bottom, transparent 13%, var(--hl) 13%, var(--hl) 87%, transparent 87%); border-radius: 6px; }
.sa-edit::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--on-dark-muted); opacity: 0; transition: opacity .2s; }
.sa-edit:hover::after, .sa-edit:focus-within::after { opacity: 1; }
.sa-edit:has(.sa-input:focus-visible) { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.sa-hint { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font: 400 14px/1.4 var(--text); color: var(--on-dark-muted); }
.sa-back { padding: 0; border: 0; background: none; font: 500 14px/1.4 var(--text); color: var(--on-dark-soft); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, .3); text-underline-offset: 3px; cursor: pointer; }
.sa-back:hover { color: var(--on-dark); }

/* the check: the room's primary button, its result in words beside it */
.sa-act { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sa .sa-verify { flex: none; background: var(--accent-2); color: var(--dark); border-color: transparent; transition: transform 120ms cubic-bezier(.2, 0, 0, 1), filter .2s; }
.sa .sa-verify:hover { filter: brightness(1.06); background: var(--accent-2); }
.sa .sa-verify:active { transform: scale(.97); }
.sa .sa-verify[aria-disabled="true"] { cursor: progress; }
.sa-say { flex: 1 1 200px; min-width: 0; font: 400 14px/1.45 var(--text); color: var(--on-dark-soft); }
.sa-say b { font-weight: 600; color: var(--on-dark); }
.sa-say[data-tone="good"] b { color: var(--sa-ok); }
.sa-say[data-tone="bad"] b { color: var(--sa-bad); }

/* focus, the same everywhere */
.sa :focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.sa .sa-input:focus-visible { outline: none; }

/* ---- the proof ---- */
.sa-zone { color: var(--on-dark-soft); }
.sa-result > .sa-zone + .sa-q { margin-top: 24px; }
.sa-proof { container: sa-p / inline-size; }
.sa-proof-in { margin-top: 24px; display: grid; gap: 24px; justify-items: center; }
/* the seal ringed by its engraving, its words just clear of the ring */
.sa-sealbox { --sa-seal: 160px; position: relative; isolation: isolate; display: grid; justify-items: center; align-content: start; gap: 24px; text-align: center; }
.sa-seal { display: block; width: var(--sa-seal); height: var(--sa-seal); overflow: visible; }
/* the seal set into the metal as a card's chip is: a shallow well, its upper wall in shadow and its
   lower rim catching the light, the lacework ringing it like a bezel */
.sa-sealbox::before { content: ""; position: absolute; z-index: -1; left: 50%; top: calc(var(--sa-seal) / 2); width: var(--sa-seal); height: var(--sa-seal); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 50% 38%, #17181B 0%, #1C1D21 58%, #24262A 100%);
  /* and a polished chrome rim round its mouth, a dark line outside it */
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .75), inset 0 -1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 1.75px rgba(214, 218, 226, .16), 0 1px 0 1.75px rgba(255, 255, 255, .07), 0 0 0 3px rgba(0, 0, 0, .45); }
.sa-seal-cap { display: grid; gap: 4px; justify-items: center; }
.sa-seal-at { font: 400 12px/1.3 var(--text); color: var(--on-dark-muted); min-height: 1.3em; }
/* the seal draws itself on a layer of its own, for the same reason */
.sa-full .sa-seal { will-change: transform; }
.sa-full[data-seal="valid"] .sa-seal-k { color: var(--sa-ok); }
.sa-full[data-seal="broken"] .sa-seal-k { color: var(--sa-bad); }
.sa-full[data-seal="checking"] .sa-seal-k { color: var(--on-dark-soft); }
.sa-grid { width: 100%; display: grid; gap: 12px; container: sa-g / inline-size; }
.sa-grid > div { position: relative; display: grid; gap: 4px; min-width: 0; }
.sa-grid dd { min-width: 0; font: 500 14px/1.4 var(--text); color: var(--on-dark); }
@container sa-g (min-width: 340px) {
  .sa-grid > div { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}
.sa-code { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sa-grid .sa-code, .sa-hash { font-size: 13.5px; font-weight: 500; }
.sa-code-t { position: relative; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.sa-hash { display: grid; grid-template-columns: repeat(4, max-content); gap: 4px 12px; line-height: 1.4; color: var(--on-dark-muted); }
.sa-hash span:first-child { color: var(--on-dark); }
.sa-copy { flex: none; position: relative; align-self: center; width: 28px; height: 28px; margin: -6px -6px -6px 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--on-dark-muted); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.sa-copy svg { width: 14px; height: 14px; display: block; grid-area: 1 / 1; }
.sa-copy .i-done { opacity: 0; }
.sa-copy.done .i-copy { opacity: 0; }
.sa-copy.done .i-done { opacity: 1; }
.sa-grid > div:hover .sa-copy, .sa-copy:focus-visible, .sa-copy.done { opacity: 1; }
.sa-copy:hover { background: rgba(244, 241, 234, .06); color: var(--on-dark); }
@media (hover: none) { .sa-copy { opacity: 1; } .sa-copy::after { content: ""; position: absolute; inset: -8px; } }
.sa-tip { position: absolute; z-index: 10; left: 0; top: 0; max-width: 36ch; padding: 8px 10px; border-radius: 8px; background: #1E1F23; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .12), 0 8px 24px -8px rgba(0, 0, 0, .6); font: 500 12px/1.45 var(--text); color: var(--on-dark); overflow-wrap: anywhere; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s; }
.sa-tip.on { opacity: 1; transform: none; }

/* ---- the seal, state by state ---- */
.sa-base { stroke: rgba(244, 241, 234, .28); }
.sa-ink { stroke: rgba(244, 241, 234, .9); opacity: 0; }
.sa-ink .sa-rays line, .sa-ink path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sa-ink .sa-rays line { opacity: 0; }
.sa-gold, .sa-bad, .sa-glow { opacity: 0; }
.sa-tick, .sa-cross { stroke-dasharray: 1 1; stroke-dashoffset: 1.01; }

/* ---- the bytes the signature covers ---- */
.sa-foot { padding: 0 var(--sa-pad); border-top: 1px solid var(--sa-groove); box-shadow: inset 0 1px 0 var(--sa-lip); }
.sa-bytes summary { display: flex; align-items: center; gap: 10px; padding: 20px 0; list-style: none; cursor: pointer; font: 500 14px/1.3 var(--text); color: var(--on-dark-soft); border-radius: 8px; }
.sa-bytes summary::-webkit-details-marker { display: none; }
.sa-bytes summary:hover { color: var(--on-dark); }
.sa-chev { width: 12px; height: 12px; flex: none; transition: transform .32s cubic-bezier(.2, 0, 0, 1); }
.sa-bytes[open] .sa-chev { transform: rotate(90deg); }
.sa-bytes-body { overflow: hidden; }
.sa-bytes-in { padding-bottom: 24px; }
.sa-bytes-text { padding: 16px; border-radius: 12px; background: rgba(244, 241, 234, .03); box-shadow: inset 0 0 0 var(--sa-hair) var(--sa-line); font: 500 13px/1.6 var(--text); color: var(--on-dark-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.sa-bytes-text .ans { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, .45); text-underline-offset: 3px; }
.sa-bytes-text mark.chg { color: var(--on-dark); background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; }

/* ---- full: the proof panel in How It Works, laid out by its own width ---- */
.sa-full { margin-top: 32px; max-width: 1120px; container: sa / inline-size;
  box-shadow: var(--sa-hi), var(--sa-slab), 0 0 0 1px rgba(0, 0, 0, .6), 0 3px 5px rgba(0, 0, 0, .5), 0 18px 40px -12px rgba(0, 0, 0, .7), 0 60px 140px -40px rgba(0, 0, 0, .9), 0 50px 160px -60px rgba(255, 140, 60, .16); }
/* the light that follows the pointer, as visionOS lights what is looked at: a soft glare across the
   surface and a brighter stretch of the edge nearest it */
/* each on a layer of its own where there is a pointer to follow, so following it never redraws the
   engraved card beneath; a phone, with no pointer, keeps the memory */
.sa-glare, .sa-rimlight { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s cubic-bezier(.2, 0, 0, 1); }
@media (hover: hover) and (pointer: fine) { .sa-glare, .sa-rimlight { will-change: transform; } }
.sa-glare { background: radial-gradient(560px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .045), transparent 62%); }
.sa-rimlight { padding: var(--sa-hair); background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .38), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.sa-full.lit .sa-glare, .sa-full.lit .sa-rimlight { opacity: 1; }
.sa-full > * { --sa-pad: 40px; }
.sa-body { display: grid; }
.sa-result, .sa-proof { min-width: 0; padding: 32px var(--sa-pad) 40px; }
.sa-proof { border-top: 1px solid var(--sa-groove); box-shadow: inset 0 1px 0 var(--sa-lip); }
@container sa (min-width: 720px) {
  .sa-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .sa-proof { border-top: 0; border-left: 1px solid var(--sa-groove); box-shadow: inset 1px 0 0 var(--sa-lip); }
}
@container sa (min-width: 1000px) {
  .sa-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sa-v, .sa-input, .sa-show { font-size: 88px; }
}
@container sa (max-width: 479px) {
  .sa-full > * { --sa-pad: 20px; }
  .sa-result, .sa-proof { padding-top: 24px; padding-bottom: 28px; }
  .sa-head { height: 48px; gap: 12px; }
  .sa-v, .sa-input, .sa-show { font-size: 64px; }
  .sa-ctx { margin-top: 24px; }
  .sa-ctx > div { padding: 0 10px; }
  .sa-ctx > div:first-child { padding-left: 0; }
}
@container sa-p (min-width: 520px) {
  .sa-proof-in { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; justify-items: stretch; align-items: start; }
}

/* the two steps above the card, each ticked when done */
.sa-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.sa-steps li { display: flex; align-items: center; gap: 12px; font: 400 16px/1.4 var(--text); color: var(--on-dark-soft); }
.sa-steps i { flex: none; position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .22); font: 600 12px/1 var(--text); font-style: normal; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; transition: color .2s, box-shadow .2s; }
.sa-steps li.done { color: var(--on-dark); }
.sa-steps li.done i { color: transparent; box-shadow: inset 0 0 0 1.3px var(--sa-ok, #4AD68F); }
.sa-steps li.done i::after { content: ""; position: absolute; left: 8px; top: 6.5px; width: 7px; height: 4px; border: solid #4AD68F; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }

/* ---- medium: the film's card, laid out at 540 by 340 ---- */
/* a bank card's proportions (85.6 by 54 mm) and corner (3.2 mm), a heavy metal card's thickness */
.sa-piece { --sa-thick: 14px; width: 540px; height: 340px; }
.sa-piece .sh-amb { width: 104%; height: 84px; bottom: -88px; will-change: transform, opacity; }
.sa-piece .sh-con { display: none; }
.sa-flip { position: absolute; inset: 0; transform-style: preserve-3d; }
.sa-face { position: absolute; inset: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(calc(var(--sa-thick) / 2)); }
.sa-face.back { transform: rotateY(180deg) translateZ(calc(var(--sa-thick) / 2)); }
/* a face given as its picture: the picture is the whole face, its metal, bevel and engraving drawn in */
.sa-baked { background: none; box-shadow: none; }
.sa-baked::before, .sa-baked::after { display: none; }
.sa-baked > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border-radius: inherit; }
/* the edge: thin strips stood square to the face round the outline (js/answer.js), as tall as the card
   is thick, each its own small plane in the card's 3D */
.sa-rim { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.sa-strip { position: absolute; height: var(--sa-thick); transform-origin: 50% 50%; }
.sa-medium { --sa-pad: 32px; border-radius: 20px; }
.sa-medium .sa-head { height: 58px; padding-top: 4px; border-bottom: 0; box-shadow: none; }
.sa-fbody { min-height: 0; padding: 4px var(--sa-pad) 26px; display: flex; flex-direction: column; }
.sa-medium .sa-q { font-size: 14px; }
.sa-medium .sa-hero { margin-top: 16px; }
.sa-medium .sa-v { font-size: 64px; }
.sa-medium .sa-unit { font-size: 16px; }
.sa-medium .sa-status { margin-top: 12px; }
.sa-medium .sa-ctx { margin-top: auto; padding-top: 14px; }
.sa-medium .sa-ctx > div { row-gap: 4px; }
.sa-medium .sa-ctx dd { font-size: 13px; }
/* the back's seal and proof as one group, centred on the face */
.sa-bbody { min-height: 0; padding: 0 var(--sa-pad) 34px; display: grid; grid-template-columns: 120px max-content; justify-content: center; gap: 32px; align-items: center; }
.sa-medium .sa-sealbox { --sa-seal: 120px; gap: 18px; }
.sa-medium .sa-seal-k { color: var(--sa-ok); font-size: 10px; }
/* the film's proof list is measured by its contents (a size container would count as no width at
   all, and its rows would spill past the card's edge), so the seal and list centre as one group */
.sa-medium .sa-grid { gap: 10px; container-type: normal; width: max-content; max-width: 100%; }
.sa-medium .sa-grid > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.sa-medium .sa-grid dt { font-size: 10px; }
.sa-medium .sa-grid dd, .sa-medium .sa-hash { font-size: 13px; }
/* the light that crosses the face as it turns, strongest at 45 degrees */
.sa-sheen { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; border-radius: inherit; }
.sa-band { position: absolute; top: 0; bottom: 0; left: 0; width: 80%; opacity: 0; background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, .08) 50%, transparent 90%); will-change: transform, opacity; }

/* ---- compact: one line an agent's reply or a console row cites ---- */
/* one line of 40 px; where it cannot fit, the status, age and seal wrap beneath, never over the value */
.sa-compact { --sa-pad: 12px; display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 6px 12px; min-height: 40px; padding: 8px var(--sa-pad); border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .10), var(--sa-hi), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .45); }
/* every word on one baseline; the marks centred on the line */
.sa-c-mark { flex: none; align-self: center; display: block; width: 14px; height: 14px; color: #C8A66E; }
.sa-c-mark svg, .sa-c-seal svg { display: block; width: 100%; height: 100%; }
.sa-c-val { flex: 0 1 auto; display: flex; align-items: baseline; gap: 8px; }
.sa-c-val b { flex: none; font: 600 18px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sa-c-unit { min-width: 0; font: 500 13px/1.2 var(--text); color: var(--on-dark-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-c-status { flex: none; display: flex; align-items: baseline; gap: 6px; font: 500 12.5px/1 var(--text); color: var(--on-dark); white-space: nowrap; }
.sa-c-status .sa-mark { width: 14px; height: 14px; align-self: center; }
.sa-c-age { flex: none; font: 400 12.5px/1 var(--text); color: var(--on-dark-muted); white-space: nowrap; }
.sa-c-seal { flex: none; align-self: center; display: block; width: 20px; height: 20px; margin-left: auto; }
/* in an agent's light side panel, the cited answer sits under the proof's title */
.aw-proof-h:has(.sa-compact) { display: grid; gap: 10px; align-items: stretch; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sa-tip, .sa-copy, .sa-edit::after, .sa-chev, .sa-steps i { transition: none; }
}
/* where a browser cannot mix colours, the same colours written out */
@supports not (color: color-mix(in srgb, red, blue)) {
  .sa-show mark.chg { --hl: rgba(255, 158, 27, .22); }
  .sa-edit:has(.sa-input:focus-visible), .sa :focus-visible { outline-color: rgba(255, 158, 27, .6); }
  .sa-bytes-text mark.chg { background: rgba(255, 158, 27, .22); }
}

/* at rest in the film, now and then, a soft light glides across the metal, as it does across a card
   turned in the hand (driven by the film, js/film.js) */
.sa-gleam { position: absolute; top: -12%; bottom: -12%; left: 0; width: 60%; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, transparent 0%, rgba(230, 236, 248, .045) 30%, rgba(255, 255, 255, .13) 50%, rgba(230, 236, 248, .045) 70%, transparent 100%); }
/* the moment the signature checks valid, one sweep of light crosses the card */
.sa-sweep { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; }
.sa-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; opacity: 0; transform: translateX(-110%) skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(236, 240, 248, .05) 35%, rgba(255, 255, 255, .11) 50%, rgba(236, 240, 248, .05) 65%, transparent); }
.sa-sweep.go::before { animation: sa-sweep 1.5s cubic-bezier(.3, .55, .2, 1) both; }
@keyframes sa-sweep { 0% { opacity: 0; transform: translateX(-110%) skewX(-16deg); } 14% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(380%) skewX(-16deg); } }
@media (prefers-reduced-motion: reduce) { .sa-sweep, .sa-gleam { display: none; } }
/* on a phone the gliding light is the quietest effect and a layer the size of most of the card: it goes */
@media (hover: none) and (max-width: 760px) { .sa-gleam { display: none; } }
/* the agent's own proof lines: codes with hyphens read as written, without tabular spacing */
.aw-proof dd { font-variant-numeric: normal; }
