/* Bundles · notary desk. One document on the desk, executed in place: the
   approval receipt. Its edge carries the four steps; its seal carries the
   approval's real state (blank, the broker's expiry window counting down,
   signing, signed, refused).

   One DEFXN system: Flux Launch structure (Albert Sans, flat hairline
   panels, no shadows, a .dx-frame with corner ticks around the figure, the
   sx-* schematic grammar) with defxn.com's Ember roles. The identity color
   marks exactly one live thing on this page: the seal while the approval is
   pending (its expiry ring, then the signature in flight). Signed and refused
   are state colors (sx-ok / sx-x). Mono carries the document; Albert Sans is
   spent on the receipt's title.

   Color, type and components come from /vendor/defxn/defxn-product.css
   (flux/defxn-product-kit); this file is composition only, read through
   hsl(var(--token)). This origin's CSP allows only 'self' for scripts,
   fonts and images: the kit's Albert Sans is served from this origin, no
   data: images. Inline <style> is allowed only because the shared sign-in
   and the review element add their own (src/local-broker.js). */

[data-dx-product="bundles"] {
  --nd-edge: 56px;
  --nd-pad: 32px;
  --nd-seal: 120px;
}

/* The desk: nothing on it but the document. ------------------------------ */
.nd-desk { max-width: 960px; padding-top: 28px; }

/* The receipt: a .dx-frame (flat hairline panel, corner ticks). ------------ */
.nd-receipt.dx-frame {
  overflow: hidden; padding: 0;
  display: grid; grid-template-columns: var(--nd-edge) minmax(0, 1fr);
  border-color: hsl(var(--border-default));
  transition: border-color .3s var(--dx-ease);
}
.nd-receipt[data-stage="signed"] { border-color: hsl(var(--success-300)); }

/* Edge: the four steps as the document's margin, read bottom to top. */
.nd-edge.dx-steps {
  grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 0; border-right: 1px dashed hsl(var(--border-default));
}
.nd-edge .dx-step {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  justify-items: center; align-content: start; gap: 8px;
  padding: 16px 0 12px; border-radius: 0;
  border-bottom: 1px dotted hsl(var(--border-subtle));
}
.nd-edge .dx-step:last-child { border-bottom: 0; }
.nd-edge .dx-step::before { grid-row: auto; }
.nd-edge .dx-step__title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 10.5px/1 var(--dx-font-mono); letter-spacing: .18em; text-transform: uppercase;
}
/* The note is read from the caption under the title; kept for assistive tech. */
.nd-edge .dx-step__note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nd-sheet { min-width: 0; padding: 24px var(--nd-pad) 20px; display: grid; }

/* Stub: title, caption and the seal, torn from the body by a perforation. */
.nd-stub {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--nd-seal); gap: 24px; align-items: center;
  padding-bottom: 20px; border-bottom: 1px dashed hsl(var(--border-strong));
}
.nd-stub::before, .nd-stub::after {
  content: ""; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: hsl(var(--canvas)); border: 1px solid hsl(var(--border-default));
}
.nd-stub::before { left: calc(-1 * var(--nd-pad) - var(--nd-edge) - 9px); }
.nd-stub::after { right: calc(-1 * var(--nd-pad) - 9px); }
.nd-stub__text { display: grid; gap: 12px; min-width: 0; }
.nd-meta { display: flex; align-items: center; gap: 10px; font: 500 11px/1.3 var(--dx-font-mono); letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--text-muted)); overflow-wrap: anywhere; }
.nd-meta__glyph {
  flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--dx-radius-sm);
  color: hsl(var(--text-strong)); border: 1px solid hsl(var(--border-default)); background: hsl(var(--raised));
}
.nd-meta #receipt-number { color: hsl(var(--text-strong)); text-transform: none; letter-spacing: .04em; }
.nd-title { max-width: none; }
.nd-caption { font: 400 12px/1.5 var(--dx-font-mono); color: hsl(var(--text-muted)); }

/* The seal (sx schematic) ------------------------------------------------- */
.nd-seal { position: relative; width: var(--nd-seal); height: var(--nd-seal); justify-self: end; }
.nd-seal__svg.dx-sx { width: 100%; height: 100%; }
.dx-sx .nd-seal__inner { stroke-dasharray: 2 3; }
.dx-sx .nd-seal__track { fill: none; }
.dx-sx .nd-seal__arc { stroke: none; stroke-width: 3; stroke-linecap: butt; transition: stroke .3s var(--dx-ease); }
.dx-sx .nd-seal__arc:is(.sx-now, .sx-ok, .sx-x) { stroke-width: 3; }
.dx-sx .nd-seal__orbit { font: 500 7.2px var(--dx-font-mono); letter-spacing: .08em; }
.nd-seal__face {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
}
.nd-seal__value { font: 600 20px/1 var(--dx-font-mono); color: hsl(var(--text-strong)); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nd-seal__label { font: 500 9px/1 var(--dx-font-mono); letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--text-muted)); }

.nd-seal[data-seal="blank"] .nd-seal__value { color: hsl(var(--text-faint)); }
/* Pending (expiry running, or the signature in flight): the one live thing. */
.nd-seal:is([data-seal="live"], [data-seal="low"], [data-seal="signing"]) .nd-seal__value { color: hsl(var(--primary)); }
.nd-seal:is([data-seal="live"], [data-seal="low"], [data-seal="signing"]) .sx-box { stroke: hsl(var(--primary-400)); }
/* Under a minute left, the readout states it: danger is state, not decoration. */
.nd-seal[data-seal="low"] .nd-seal__label, .nd-seal[data-seal="expired"] :is(.nd-seal__value, .nd-seal__label) { color: hsl(var(--danger-700)); }
.nd-seal[data-seal="signed"] .sx-box { stroke: hsl(var(--success-400)); }
.nd-seal[data-seal="signed"] .dx-sx .nd-seal__inner { fill: hsl(var(--success-100)); stroke: hsl(var(--success-300)); stroke-dasharray: none; }
.nd-seal[data-seal="signed"] .dx-sx .nd-seal__orbit { fill: hsl(var(--success-700)); }
.nd-seal[data-seal="signed"] :is(.nd-seal__value, .nd-seal__label) { color: hsl(var(--success-700)); }
.nd-seal[data-seal="signed"] { transform: rotate(-6deg); }
.nd-seal[data-seal="refused"] .dx-sx .nd-seal__inner { fill: hsl(var(--danger-100)); stroke: hsl(var(--danger-300)); stroke-dasharray: none; }
.nd-seal[data-seal="refused"] :is(.nd-seal__value, .nd-seal__label) { color: hsl(var(--danger-700)); }

/* One settle-in when the outcome lands (class toggled by the page, never looped). */
@keyframes nd-stamp {
  from { transform: scale(1.2) rotate(-14deg); opacity: .15; }
  to { transform: rotate(-6deg); opacity: 1; }
}
@keyframes nd-stamp-flat {
  from { transform: scale(1.1); opacity: .2; }
  to { transform: none; opacity: 1; }
}
.nd-seal--stamp[data-seal="signed"] { animation: nd-stamp .5s var(--dx-ease) both; }
.nd-seal--stamp[data-seal="refused"] { animation: nd-stamp-flat .35s var(--dx-ease) both; }

/* Clauses ------------------------------------------------------------------- */
.nd-clause { display: grid; gap: 10px; align-content: start; padding: 18px 0; border-bottom: 1px solid hsl(var(--border-subtle)); min-width: 0; }
.nd-stub + .nd-clause { padding-top: 22px; }
.nd-clause__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nd-clause__no { font: 600 11px/1.3 var(--dx-font-mono); letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.nd-line { font: 400 13px/1.55 var(--dx-font-mono); color: hsl(var(--text)); overflow-wrap: anywhere; }

.nd-terms .warning { font-size: 13.5px; line-height: 1.5; color: hsl(var(--text)); }
.nd-terms__kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; margin: 0; }
.nd-terms__kv dt { font: 500 10px/1.4 var(--dx-font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-faint)); }
.nd-terms__kv dd { margin: 2px 0 0; font: 400 12px/1.45 var(--dx-font-mono); color: hsl(var(--text-strong)); overflow-wrap: anywhere; }

.nd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 4px 0 0; }
.nd-form__wide { grid-column: 1 / -1; }
.nd-form__act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nd-mono { font-family: var(--dx-font-mono); font-size: 13px; }
#unlock-refusal:empty, #refusal:empty { display: none; }

/* The deed: the exact record, field by field. */
.nd-deed { gap: 14px; }
.nd-deed__name { font: 600 clamp(22px, 3vw, 30px)/1.15 var(--dx-font-mono); color: hsl(var(--text-strong)); letter-spacing: -.01em; overflow-wrap: anywhere; }
.nd-deed__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.nd-field { min-width: 0; display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px dotted hsl(var(--border-default)); }
.nd-field dt { font: 500 10px/1.4 var(--dx-font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-faint)); }
.nd-field dd { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 400 12.5px/1.5 var(--dx-font-mono); color: hsl(var(--text-strong)); }
.nd-field dd { overflow-wrap: anywhere; word-break: break-all; }
.nd-field .dx-copy { flex: 0 0 auto; margin-left: auto; height: 20px; padding: 0 6px; font-size: 10px; }

/* Signature lines: the exact message, then the line the signature lands on. */
.nd-sig { display: grid; gap: 6px; min-width: 0; }
.nd-sig__msg {
  --dx-scroll-max: 64px; margin: 0; padding: 8px 10px;
  background: hsl(var(--depth)); border-left: 2px solid hsl(var(--border-strong)); border-radius: 0 4px 4px 0;
  font: 400 12px/1.55 var(--dx-font-mono); color: hsl(var(--text)); white-space: pre-wrap; overflow-wrap: anywhere;
}
.nd-sig__rule {
  display: flex; align-items: baseline; gap: 10px; padding: 4px 2px 5px;
  border-bottom: 1px solid hsl(var(--text-faint)); font: 400 12px/1.4 var(--dx-font-mono); color: hsl(var(--text-faint));
}
.nd-sig__x { font-size: 15px; color: hsl(var(--text-muted)); }
.nd-sig__value { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.nd-sig[data-signed="true"] .nd-sig__rule { border-bottom-color: hsl(var(--success-400)); color: hsl(var(--success-700)); }
.nd-sig[data-signed="true"] .nd-sig__msg { border-left-color: hsl(var(--success-400)); }
.nd-sig[data-signed="true"] .nd-sig__x { color: hsl(var(--success-700)); }

.bundle-proposal { --dx-scroll-max: 250px; margin: 0; font-size: 12px; }

/* Once the record exists, the finished clauses (terms, signer, instrument)
   fold into one band across the sheet, and the deed sets its full JSON as an
   annex column beside the fields and signature lines. Desktop only. */
@media (min-width: 761px) {
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-sheet {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px;
  }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) :is(.nd-stub, .nd-deed, .nd-outcome) { grid-column: 1 / -1; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-terms__kv { display: none; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-terms .warning { font-size: 12.5px; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-clause__head .dx-badge { height: 20px; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-clause:is(.nd-terms, .nd-signer, .nd-stage) { padding: 14px 0 12px; }
  .nd-receipt:is([data-stage="signed"], [data-stage="refused"]) .nd-outcome { padding-top: 8px; }
  .nd-stage__edit { font-size: 13px; }

  .nd-deed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; }
  .nd-deed > * { grid-column: 1 / -1; }
  .nd-deed > :is(.nd-deed__name, .nd-deed__fields, .nd-sig) { grid-column: 1; }
  .nd-deed__fields { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .nd-deed__fields .nd-field:has(.dx-copy) { grid-column: 1 / -1; }
  .nd-deed > .nd-deed__annex { grid-column: 2; grid-row: 2 / span 4; position: relative; min-height: 260px; align-content: start; }
  .nd-deed__annex .bundle-proposal { position: absolute; top: 24px; left: 0; right: 0; bottom: 0; max-height: none; }
}
.nd-execute { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* Outcome: progress, the exact publish result, or a refusal. */
.nd-outcome { border-bottom: 0; padding-bottom: 0; }
.nd-outcome:not(:has(.dx-refusal)):has(#status[hidden]) { display: none; }
#status { --dx-scroll-max: 120px; max-height: var(--dx-scroll-max); overflow: auto; }
/* A neutral progress line reads as a caption; results and failures keep the log box. */
#status:not([data-tone]) { padding: 0; background: transparent; border: 0; color: hsl(var(--text-muted)); font-size: 12.5px; }
#status[data-tone="danger"] { border-color: hsl(var(--danger-300)); color: hsl(var(--danger-700)); }
#status[data-tone="live"] { border-color: hsl(var(--success-300)); }

/* Filed with: where this document came from and where it goes. */
.nd-filed { margin-top: 12px; }
.nd-filed .dx-handoff { background: transparent; border-style: dashed; }
.nd-filed .dx-handoff__col { padding: 10px 14px; gap: 6px; }
.nd-filed .dx-handoff__list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nd-filed .dx-handoff__self { background: transparent; padding: 10px 16px; gap: 2px; }

/* Tablet ---------------------------------------------------------------------- */
@media (max-width: 760px) {
  .nd-terms__kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: the edge becomes the receipt's top stub (four cells across); the
   terms keep their sentence, the deed one field per row. ------------------- */
@media (max-width: 640px) {
  [data-dx-product="bundles"] { --nd-pad: 16px; --nd-seal: 88px; }
  .nd-desk { padding-top: 12px; }
  .nd-meta { align-items: flex-start; }
  .nd-receipt.dx-frame { grid-template-columns: minmax(0, 1fr); }
  .nd-edge.dx-steps {
    grid-template-rows: none; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0; border-right: 0; border-bottom: 1px dashed hsl(var(--border-default));
  }
  .nd-edge .dx-step { grid-template-rows: none; padding: 6px 2px; gap: 4px; border-bottom: 0; border-right: 1px dotted hsl(var(--border-subtle)); }
  .nd-edge .dx-step:last-child { border-right: 0; }
  .nd-edge .dx-step::before { width: 22px; height: 22px; font-size: 11px; }
  .nd-edge .dx-step__title { writing-mode: horizontal-tb; transform: none; font-size: 10px; letter-spacing: .12em; }
  .nd-sheet { padding: 16px var(--nd-pad) 12px; }
  /* The title takes the full width under the meta line and the seal. */
  .nd-stub { gap: 12px; padding-bottom: 16px; align-items: start; }
  .nd-stub__text { display: contents; }
  .nd-meta { grid-column: 1; grid-row: 1; align-self: center; }
  .nd-seal { grid-column: 2; grid-row: 1; }
  .nd-title { grid-column: 1 / -1; grid-row: 2; }
  .nd-stub::before { left: calc(-1 * var(--nd-pad) - 11px); }
  .nd-caption { font-size: 12px; }
  .nd-seal__value { font-size: 16px; }
  .nd-seal__label { font-size: 8px; letter-spacing: .06em; }
  .nd-seal__orbit { font-size: 7.4px; }
  .nd-clause { padding: 12px 0; }
  .nd-terms .warning { font-size: 13px; }
  .nd-terms__kv { display: none; }
  .nd-form, .nd-deed__fields { grid-template-columns: minmax(0, 1fr); }
  .nd-deed__fields { gap: 8px; }
  .nd-deed { gap: 10px; }
  .nd-sig__msg { --dx-scroll-max: 74px; }
  .bundle-proposal { --dx-scroll-max: 190px; }
  .nd-filed { display: none; }
  .nd-caption { display: none; }
  .nd-deed__fields { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); column-gap: 14px; }
  .nd-deed__fields .nd-field:has(.dx-copy) { grid-column: 1 / -1; }
  /* One group per screen: once the record exists, the finished clauses step
     aside (the step strip shows them done; the seal names the signer origin). */
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) :is(.nd-terms, .nd-signer) { display: none; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) .nd-stage { padding: 10px 0; gap: 4px; }
  .nd-receipt:is([data-stage="review"], [data-stage="publish"], [data-stage="signed"], [data-stage="refused"]) #stage-filled { display: none; }
  /* After signing, the signature lines and the publish result are the record;
     the pre-signing annex steps aside on a phone. */
  .nd-receipt:is([data-stage="signed"], [data-stage="refused"]) .nd-deed__annex { display: none; }
  /* A refused approval is spent: the refusal is this screen's group, and the
     spent messages step aside (the signatures that were made stay listed). */
  .nd-receipt[data-stage="refused"] .nd-sig__msg { display: none; }
  .nd-sig__msg { --dx-scroll-max: 52px; }
  .bundle-proposal { --dx-scroll-max: 140px; }
  /* Sign and Discard share one row; the long, exact label wraps inside its pill. */
  .nd-execute { flex-wrap: nowrap; }
  .nd-execute #publish { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; text-align: center; }
  .nd-desk { padding-bottom: 24px; }
}

/* =========================================================================
   Release an app (2026-10-28) and the shared signing-key strip.
   Type comes from one scale (design laws 78-83), set once here and used by
   name: 11 tertiary (labels, notes), 18 secondary (lede, step names), 29
   primary (the view's heading). One dominant action: Release (dx-btn--solid).
   Fits 1280x720 with no scroll: the form and the steps sit side by side.
   ========================================================================= */
[data-dx-product="bundles"] {
  --fs-tertiary: 11px;
  --fs-secondary: 18px;
  --fs-primary: 29px;
}
.nd-desk:has(#view-release:not([hidden])) { max-width: 1160px; padding-top: 16px; }

/* Signing key: one line above both views. */
.bd-signer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px;
  padding: 0 0 12px; margin-bottom: 16px; border-bottom: 1px solid hsl(var(--border-subtle));
}
.bd-signer__key { margin: 0; font: 400 var(--fs-tertiary)/1.5 var(--dx-font-mono); color: hsl(var(--text-strong)); overflow-wrap: anywhere; }
.bd-signer__key[data-state="out"], .bd-signer__key[data-state="other"] { color: hsl(var(--text-muted)); }
.bd-signer__who { margin: 0; font: 400 var(--fs-tertiary)/1.5 var(--dx-font-mono); color: hsl(var(--text-muted)); }
.nd-desk:has(#view-site:not([hidden])) .bd-signer { max-width: 960px; }

/* The release view: the form, then the steps beside it. */
.rl { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.rl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.rl-wide { grid-column: 1 / -1; }
.rl-head { display: grid; gap: 6px; }
.rl-head .dx-title { font-size: var(--fs-primary); line-height: 1.15; }
.rl-lede { margin: 0; font: 400 var(--fs-tertiary)/1.6 var(--dx-font-mono); color: hsl(var(--text-muted)); max-width: 62ch; }
.rl-form .dx-field { gap: 6px; }
.rl-testers.dx-textarea { min-height: 0; height: 72px; font-size: var(--fs-tertiary); line-height: 1.5; }
.rl-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.rl-act .dx-help { overflow-wrap: anywhere; }
.rl-form[aria-busy="true"] :is(input, textarea) { opacity: .7; }

.rl-run { display: grid; gap: 12px; align-content: start; padding-top: 6px; min-width: 0; }
.rl-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid hsl(var(--border-subtle)); counter-reset: rl; }
.rl-steps > li {
  counter-increment: rl; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px;
  padding: 10px 0; border-bottom: 1px solid hsl(var(--border-subtle));
}
.rl-steps > li::before {
  content: counter(rl); grid-row: 1 / span 3; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid hsl(var(--border-default)); font: 500 var(--fs-tertiary)/1 var(--dx-font-mono); color: hsl(var(--text-muted));
}
.rl-steps__name { font: 500 var(--fs-tertiary)/1.4 var(--dx-font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-muted)); }
.rl-steps__note { font: 400 var(--fs-tertiary)/1.5 var(--dx-font-mono); color: hsl(var(--text-faint)); overflow-wrap: anywhere; }
.rl-steps__bar { width: 100%; height: 4px; margin-top: 4px; accent-color: hsl(var(--primary)); }
.rl-steps > li[data-state="current"]::before { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.rl-steps > li[data-state="current"] :is(.rl-steps__name, .rl-steps__note) { color: hsl(var(--text-strong)); }
.rl-steps > li[data-state="done"]::before { content: "✓"; border-color: hsl(var(--success-400)); color: hsl(var(--success-700)); }
.rl-steps > li[data-state="done"] .rl-steps__note { color: hsl(var(--text)); }
.rl-steps > li[data-state="skipped"] { opacity: .6; }
.rl-steps > li[data-state="failed"]::before { content: "×"; border-color: hsl(var(--danger-300)); color: hsl(var(--danger-700)); }
#rl-refusal:empty { display: none; }

.rl-result { display: grid; gap: 8px; margin: 0; padding: 12px 0 0; border-top: 1px solid hsl(var(--success-300)); }
.rl-result dt { font: 500 var(--fs-tertiary)/1.4 var(--dx-font-mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--text-faint)); }
.rl-result dd { margin: 2px 0 0; font: 400 var(--fs-tertiary)/1.5 var(--dx-font-mono); color: hsl(var(--text-strong)); overflow-wrap: anywhere; word-break: break-all; }

@media (max-width: 860px) {
  .rl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bd-signer { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-signer > .dx-label { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rl-form { grid-template-columns: minmax(0, 1fr); }
}
