/* JWT Signer — a bar with the Sign / Verify switch, then per mode two columns
   of cards (payload or token beside the algorithm and key cards), a status +
   action card, and the output: the signed token, or the verify banner and the
   decoded header / payload / signature / claims cards (layout from
   styles/components/form.css). The text areas are
   styles/components/editor.css panes; decoded blocks use text-output.css
   and claim actions use shared buttons. The token output, claim typography
   and verify banner are the page's own. */

/* ── Section titles ───────────────────────────────────────────────────────── */
h2 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.js-title--header    { color: var(--danger); }
.js-title--payload   { color: var(--accent); }
.js-title--signature { color: var(--success); }

textarea.js-textarea--tall { min-height: 220px; }
textarea.js-textarea--key { min-height: 110px; word-break: break-all; }
textarea.js-textarea[readonly] { color: var(--text-muted); }

/* ── Quick-add claim chips ────────────────────────────────────────────────── */
.js-chips { --gap: var(--space-1); }
.js-chips__label {
  font-size: 12px;
  color: var(--text-muted);
}

.js-chip { font-family: var(--mono); }

/* ── Signed-token output ──────────────────────────────────────────────────── */
.js-token-out {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
  white-space: pre-wrap;
  user-select: all;
  line-height: 1.6;
}

/* ── PASS / FAIL banner ───────────────────────────────────────────────────── */
.js-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--row-pad-y) var(--inset);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  font-size: 15px;
  font-weight: 600;
}
.js-banner__icon { display: inline-flex; flex-shrink: 0; }
.js-banner[data-kind="pass"] {
  color: var(--success);
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
.js-banner[data-kind="fail"] {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

/* ── Decoded claims ─────────────────────────────────────────────────────── */

.js-claims:empty { display: none; }
.js-claim__key code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.js-claim__val { font-size: 12.5px; color: var(--text); }
