/* ---------- ISO 20022 ---------- */
.ball {
  --c: var(--ink-2);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  display: inline-block;
  flex: none;
  vertical-align: -1px;
}
.b-native {
  background: var(--c);
}
.b-mixed {
  background: linear-gradient(90deg, var(--c) 50%, transparent 50%);
}
.b-adaptable {
  background: conic-gradient(var(--c) 0 25%, transparent 0);
}
.b-none {
  background: transparent;
}
.b-provider {
  border-style: dotted;
  --c: var(--ink-3);
}
.ep .ball {
  --c: var(--ink-3);
  width: 8px;
  height: 8px;
  align-self: center;
  border-width: 1.25px;
}
.lvl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.iso-via {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.iface {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.msgs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.msgs.inline {
  margin-top: 0;
}
.msg {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.4;
}
.msg i {
  font-style: normal;
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}
.msgs .via {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 4px;
}
.msg b {
  font-family: var(--mono);
  font-weight: 600;
}
.msg small {
  color: var(--ink-2);
  font-size: 11.5px;
}
.msg-later {
  border-style: dotted;
}
.msg-alt,
.msg-none {
  border-style: dashed;
  background: transparent;
  color: var(--ink-3);
}
.msg-alt b {
  font-weight: 500;
}
.why {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 13.5px;
  max-width: 68ch;
}
.gaps {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.gaps li {
  margin: 3px 0;
}
.iso-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.fit {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface);
}
.fit-same {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.fit-format,
.fit-code {
  background: var(--surface-2);
}
.fit-bcb {
  border-color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.fit-provider {
  font-style: italic;
  color: var(--ink-2);
}
.fit-other {
  border-style: dashed;
  color: var(--ink-2);
}
.fit-none {
  color: var(--ink-3);
  text-decoration: line-through;
  background: transparent;
}
.inferred {
  font-size: 11px;
  font-style: italic;
  color: var(--ink-3);
  border-bottom: 1px dotted var(--ink-3);
  cursor: help;
  white-space: nowrap;
}
.isofields td.iso-el {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
}
.isofields td:first-child {
  white-space: normal;
}
.isofields tr.sub td {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  padding-top: 12px;
  border-bottom-color: var(--rule-strong);
}
.isofields tr.sub .mono {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
/* The request pane is narrow: each mapping row reads as field, fit, element, then the note under them. */
.isofields.stacked thead {
  display: none;
}
.isofields.stacked tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.isofields.stacked tr.sub {
  display: block;
  padding: 0;
}
.isofields.stacked td {
  padding: 0;
  border: 0;
  max-width: none;
}
.isofields.stacked td.iso-el {
  grid-column: 1 / -1;
}
.isofields.stacked td.note {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.isofields.stacked td.note:empty {
  display: none;
}
.isofields.stacked tr.has-note {
  cursor: pointer;
}
.isofields.stacked tr.has-note.open td.note {
  -webkit-line-clamp: unset;
  display: block;
}
.isofields.stacked td.fld {
  color: var(--ink-2);
}
.isofields.stacked td.iso-el {
  color: var(--pix-strong);
  font-weight: 600;
}
.isofields.stacked td.val {
  grid-column: 1 / -1;
}
.isofields.stacked td.val .mono {
  overflow-wrap: anywhere;
}
.isofields.stacked td.fitcell {
  text-align: right;
}
