/* ---------------------------------------------------------------------------
   auth-test-lab — visual language

   This tool holds two protocols at once, so colour is not decoration here:
   it is the index. The chrome is deliberately achromatic — cool grey paper,
   graphite ink — and the only saturated colours in the interface are the two
   protocol accents: violet for SAML, teal for OIDC. Once you have read the
   legend once, every badge, rule and column on the compare spine tells you
   which protocol you are looking at without a label.

   Type: Space Grotesk carries the headings, Inter the prose, IBM Plex Mono
   every claim name, URI and value — because all of that is material you will
   copy into something else.
--------------------------------------------------------------------------- */

:root {
  --paper: #E7E8EC;
  --paper-deep: #D8DAE2;
  --card: #FBFBFD;
  --ink: #14161C;
  --ink-2: #343845;
  --muted: #6B7084;
  --rule: #C6C9D4;

  --saml: #5B35C9;
  --saml-soft: #E4DDFB;
  --oidc: #0D7490;
  --oidc-soft: #D2E8EF;

  --ok: #1B7A52;
  --ok-soft: #D5EBE0;
  --warn: #AE3520;
  --warn-soft: #F5DCD7;
  --differ: #99500F;
  --differ-soft: #F6E5CE;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* Protocol scoping: set --accent once, everything downstream follows. */
.p-saml { --accent: var(--saml); --accent-soft: var(--saml-soft); }
.p-oidc { --accent: var(--oidc); --accent-soft: var(--oidc-soft); }
.p-none { --accent: var(--ink-2); --accent-soft: var(--paper-deep); }

/* --- top bar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar__mark { font-weight: 600; white-space: nowrap; color: var(--ink); text-decoration: none; }
.topbar__spacer { flex: 1; }

.topbar__link { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar__link:hover { color: var(--ink); }
.topbar__link--on { color: var(--accent, var(--ink)); }

/* A lit dot per protocol: the session state of both, always visible. */
.pip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}
.pip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.pip--saml.is-on { color: var(--saml); }
.pip--oidc.is-on { color: var(--oidc); }
.pip.is-on::before { background: currentColor; }
.pip:hover { text-decoration: underline; }

/* --- layout --------------------------------------------------------------- */

.shell { max-width: 1120px; margin: 0 auto; padding: 40px 24px 96px; }
.shell--narrow { max-width: 900px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.eyebrow__count { color: var(--accent, var(--ink)); }

.hed {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hed--id {
  font-size: clamp(24px, 4.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.subline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: -6px 0 18px;
  word-break: break-all;
}

.dek { max-width: 62ch; margin: 0 0 32px; color: var(--ink-2); font-size: 16px; }

.section { margin-top: 44px; }

/* --- panels --------------------------------------------------------------- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.panel__body { padding: 18px; }

.panel__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- protocol cards on the home page -------------------------------------- */

.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.deck {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
/* The one place the accent is a solid block: the card's spine. */
.deck__rail { height: 4px; background: var(--accent); }
.deck--off .deck__rail { background: var(--rule); }

.deck__head { padding: 18px 18px 0; }

.deck__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.deck__state {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}
.deck__state--idle { background: var(--paper-deep); color: var(--muted); }
.deck__state--bad { background: var(--warn-soft); color: var(--warn); }

.deck__body { padding: 16px 18px; flex: 1; }
.deck__foot { padding: 0 18px 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* --- wiring rows ---------------------------------------------------------- */

.wire__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.wire__row:first-child { border-top: 0; padding-top: 0; }

.wire__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.wire__alias {
  display: block;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: #939AAC;
}
.wire__value {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
  color: var(--ink);
  /* Sits inside .wire__label, so the label's casing must be undone here —
     these are values you copy into the IdP verbatim. */
  text-transform: none;
  letter-spacing: 0;
}
.wire__value--empty { color: var(--muted); font-style: italic; }

/* --- checklist ------------------------------------------------------------ */

.check { list-style: none; margin: 0; padding: 0; }

.check__item {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12.5px;
}
.check__item:first-child { border-top: 0; padding-top: 0; }

.check__mark { color: var(--ok); font-weight: 600; }
.check__mark--off { color: var(--warn); }
.check__mark--skip { color: var(--muted); }
.check__note { color: var(--muted); font-family: var(--sans); font-size: 13px; }

/* --- verification banner -------------------------------------------------- */

.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}
.verdict--bad { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.verdict__detail { color: var(--ink-2); font-size: 12px; }

.problems { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.problems li { margin-bottom: 4px; }

/* --- lifetime ladder ------------------------------------------------------ */

.ladder__row {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--rule);
}
.ladder__row:first-child { border-top: 0; }

.ladder__label { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.ladder__note {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.ladder__track {
  --spent: 0%;
  position: relative;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 36px),
    var(--paper-deep);
  overflow: hidden;
}
.ladder__spent {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--spent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-right: 2px solid var(--accent);
  transition: width 900ms linear;
}
.ladder__row--dead .ladder__spent { background: var(--warn-soft); border-right-color: var(--warn); }

.ladder__track--unknown {
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper-deep);
}

.ladder__time { font-family: var(--mono); font-size: 12px; text-align: right; }
.ladder__time .is-ok { color: var(--ok); font-weight: 600; }
.ladder__time .is-bad { color: var(--warn); font-weight: 600; }
.ladder__span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* --- key/value ------------------------------------------------------------ */

.kv { display: grid; grid-template-columns: 190px 1fr; }

.kv__k, .kv__v {
  padding: 11px 4px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-word;
}
.kv__k:first-child, .kv__k:first-child + .kv__v { border-top: 0; }
.kv__k { color: var(--muted); }
.kv__line { display: block; }
.kv__v--empty { color: var(--muted); font-style: italic; }
.kv__note {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* --- claims --------------------------------------------------------------- */

.claim {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
}
.claim:first-child { border-top: 0; }
.claim:hover { background: var(--accent-soft); }

.claim__name { font-family: var(--mono); font-size: 13px; font-weight: 600; word-break: break-word; }

.claim__raw {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  word-break: break-all;
}
.claim__desc {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.claim__values { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.claim__value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  word-break: break-word;
  white-space: pre-wrap;
}
.claim__value--multi::before { content: '·'; color: var(--muted); margin-right: 7px; }

.claim__conflict {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--differ-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--differ);
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--paper-deep);
  color: var(--muted);
}
.badge--both { background: var(--accent-soft); color: var(--accent); }
.badge--userinfo { background: var(--ok-soft); color: var(--ok); }
.badge--conflict { background: var(--differ-soft); color: var(--differ); }

.empty-claims { padding: 28px 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ===========================================================================
   The compare spine — the signature of this tool.
   Two protocol columns flanking a centre gutter that names the concept and
   draws the verdict as a connector between them.
   =========================================================================== */

.spine__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.spine__legend b { font-weight: 600; }
.spine__legend .k-before { color: var(--saml); }
.spine__legend .k-after { color: var(--oidc); }
.spine__legend .k-match { color: var(--ok); }
.spine__legend .k-differ { color: var(--differ); }

.spine__heads {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spine__head--before { color: var(--saml); font-weight: 600; }
.spine__head--after { color: var(--oidc); font-weight: 600; text-align: right; }
.spine__head--mid { text-align: center; color: var(--muted); }

.spine__row {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 0;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--rule);
}
.spine__row:first-of-type { border-top: 0; }
.spine__row:hover { background: #F3F4F8; }

.spine__side { min-width: 0; padding: 0 16px; }
.spine__side--before { --accent: var(--saml); }
.spine__side--after { --accent: var(--oidc); text-align: right; }

.spine__claim {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 4px;
}
.spine__uri {
  display: block;
  font-size: 10px;
  color: #969CAD;
  word-break: break-all;
}

.spine__value {
  display: block;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--accent);
  word-break: break-word;
  white-space: pre-wrap;
}
.spine__value + .spine__value { margin-top: 3px; }

.spine__missing {
  font-family: var(--mono);
  font-size: 12px;
  color: #A4AAB9;
  font-style: italic;
}

/* The gutter: concept name over a connector that encodes the verdict. */
.spine__mid { text-align: center; padding: 0 6px; }

.spine__concept {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.spine__link {
  position: relative;
  height: 14px;
  margin-top: 7px;
}
.spine__link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid var(--rule);
}
.spine__link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}

/* Agreement: an unbroken rule with a solid node. */
.is-match .spine__link::before { border-top: 1px solid var(--ok); }
.is-match .spine__link::after { background: var(--ok); border-color: var(--ok); }

/* Disagreement: the rule breaks, and the node turns into a diamond. */
.is-differ .spine__link::before { border-top: 1px dashed var(--differ); }
.is-differ .spine__link::after {
  background: var(--differ);
  border-color: var(--differ);
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* One-sided: the rule only reaches from the side that has the claim. */
.is-removed .spine__link::before { right: 50%; border-top: 1px solid var(--saml); }
.is-removed .spine__link::after { background: var(--saml); border-color: var(--saml); }
.is-added .spine__link::before { left: 50%; border-top: 1px solid var(--oidc); }
.is-added .spine__link::after { background: var(--oidc); border-color: var(--oidc); }

.spine__verdict {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.is-match .spine__verdict { color: var(--ok); }
.is-differ .spine__verdict { color: var(--differ); }
.is-removed .spine__verdict { color: var(--saml); }
.is-added .spine__verdict { color: var(--oidc); }

.spine__note {
  grid-column: 1 / -1;
  margin: 10px 16px 0;
  padding-top: 9px;
  border-top: 1px dotted var(--rule);
  font-size: 12px;
  color: var(--muted);
  max-width: 78ch;
}

/* Tally strip above the spine. */
.tally { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tally__cell {
  flex: 1 1 130px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
}
.tally__n {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tally__k {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.tally__cell--match .tally__n { color: var(--ok); }
.tally__cell--differ .tally__n { color: var(--differ); }
.tally__cell--removed .tally__n { color: var(--saml); }
.tally__cell--added .tally__n { color: var(--oidc); }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent, var(--ink-2)); border-color: var(--accent, var(--ink-2)); }
.btn[aria-disabled='true'] {
  background: var(--paper-deep);
  border-color: var(--rule);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.btn--tiny { padding: 5px 10px; font-size: 10.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* --- raw payloads --------------------------------------------------------- */

.raw { border-top: 1px solid var(--rule); }
.raw:first-child { border-top: 0; }

.raw__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  list-style: none;
}
.raw__summary::-webkit-details-marker { display: none; }
.raw__summary::before { content: '+'; color: var(--accent, var(--ink)); font-weight: 600; }
.raw[open] .raw__summary::before { content: '\2212'; }
.raw__summary:hover { color: var(--accent, var(--ink)); }

.raw__body { padding: 0 18px 18px; }

.code {
  margin: 0;
  padding: 16px;
  max-height: 460px;
  overflow: auto;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  tab-size: 2;
}
.code--wrap { white-space: pre-wrap; word-break: break-all; }

/* --- failure -------------------------------------------------------------- */

.failure__msg {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: 8px;
  padding: 16px 18px;
  white-space: pre-wrap;
  word-break: break-word;
}
.failure__desc { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 68ch; }

/* --- toast ---------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .decks { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .shell { padding: 28px 16px 72px; }
  .topbar { padding: 10px 16px; gap: 10px; font-size: 10px; flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; }
  .kv__k { padding-bottom: 0; }
  .kv__k + .kv__v { border-top: 0; padding-top: 4px; }
  .claim { grid-template-columns: 1fr; gap: 8px; }
  .claim .btn { justify-self: start; }
  .ladder__row { grid-template-columns: 1fr; gap: 10px; }
  .ladder__time { text-align: left; }

  /* The spine folds into stacked pairs, keeping the verdict between them. */
  .spine__heads { display: none; }
  .spine__row { grid-template-columns: 1fr; gap: 0; padding: 16px; }
  .spine__side { padding: 0; }
  .spine__side--after { text-align: left; }
  .spine__mid { text-align: left; padding: 12px 0; }
  .spine__link { display: none; }
  .spine__concept::before { content: '↕ '; color: var(--muted); }
  .spine__side--before::before,
  .spine__side--after::before {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--accent);
  }
  .spine__side--before::before { content: 'BEFORE'; }
  .spine__side--after::before { content: 'AFTER'; }
  .spine__note { margin: 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ */
/* Settings form — runtime SAML configuration                          */
/* ------------------------------------------------------------------ */
.form { margin: 8px 0 0; }
.field { margin: 0 0 22px; }
.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}
.field__hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.field__input,
.field__area {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
}
.field__area { resize: vertical; line-height: 1.5; }
.field__input::placeholder,
.field__area::placeholder { color: var(--muted); opacity: .7; }
.field__input:focus,
.field__area:focus { outline: 2px solid var(--accent, var(--ink)); outline-offset: 1px; border-color: var(--accent, var(--ink)); }

.src {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  background: var(--paper-deep);
  color: var(--muted);
}
.src--runtime { background: var(--accent-soft, var(--saml-soft)); color: var(--accent, var(--saml)); }
.src--env { background: var(--ok-soft); color: var(--ok); }
.src--bad { background: var(--warn-soft); color: var(--warn); }

.flash {
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
}
.flash--ok { background: var(--ok-soft); color: var(--ok); }
.flash--bad { background: var(--warn-soft); color: var(--warn); }

.certinfo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper-deep);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 8px;
  line-height: 1.6;
  word-break: break-all;
}
.certinfo--bad { background: var(--warn-soft); color: var(--warn); }
.certinfo__fp { color: var(--muted); }

.advanced { margin: 0 0 22px; }
.advanced > summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.advanced > summary:hover { color: var(--ink); }
