.nmx {
  color-scheme: light;
  --nmx-accent: #a6192e;
  --nmx-band-90: rgba(166, 25, 46, 0.2);
  --nmx-band-50: rgba(166, 25, 46, 0.4);
  --nmx-wash: rgba(166, 25, 46, 0.06);
  --nmx-commended: #42556f;
  --nmx-commended-band-90: rgba(19, 41, 75, 0.2);
  --nmx-commended-band-50: rgba(19, 41, 75, 0.4);
  --nmx-ink: #212322;
  --nmx-ink-2: #4d4f4e;
  --nmx-muted: #646564;
  --nmx-grid: #e8e8e6;
  --nmx-rule: #d9d9d6;
  --nmx-surface: #ffffff;
  --nmx-surface-2: #f7f7f7;
  --nmx-peer: #a6a7a7;
  --nmx-table-head: #13294b;
  --nmx-selected: #fcf0d3;
  --nmx-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--nmx-ink);
  background: var(--nmx-surface);
  max-width: 100%;
  margin: 1.5em 0;
}
.nmx *, .nmx *::before, .nmx *::after { box-sizing: border-box; }
.nmx [hidden] { display: none !important; }
.nmx :where(p) { margin: 0 0 0.5em; padding: 0; }
.nmx-notice {
  font-size: 14px;
  color: var(--nmx-ink);
  border-left: 3px solid var(--nmx-accent);
  padding: 2px 0 2px 12px;
  margin: 0 0 14px;
}
.nmx-controls {
  scroll-margin-top: 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  padding: 14px 16px;
  background: var(--nmx-surface-2);
  border-radius: var(--nmx-radius);
}
.nmx-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nmx-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--nmx-ink-2);
  letter-spacing: normal;
  text-transform: none;
}
.nmx select.nmx-select,
.nmx input.nmx-input {
  font: inherit;
  font-size: 16px;
  color: var(--nmx-ink);
  background: var(--nmx-surface);
  border: 1px solid var(--nmx-rule);
  border-radius: 4px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  box-shadow: none;
  line-height: normal;
  text-transform: none;
  letter-spacing: normal;
}
.nmx input.nmx-input { font-size: 16px !important; }
.nmx select.nmx-select { width: auto; min-width: 190px; padding-right: 28px; }
.nmx input.nmx-input { width: 92px; }
.nmx input.nmx-input::placeholder { color: var(--nmx-peer) !important; opacity: 1; }
.nmx select.nmx-select:focus,
.nmx input.nmx-input:focus { outline: 2px solid var(--nmx-accent); outline-offset: 1px; border-color: var(--nmx-accent); }
.nmx input.nmx-input[aria-invalid="true"] { border-color: var(--nmx-accent); background: var(--nmx-wash); }
.nmx-toggle {
  display: inline-flex;
  border: 1px solid var(--nmx-rule);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}
.nmx button.nmx-toggle-btn {
  font: inherit;
  font-size: 14px;
  background: var(--nmx-surface);
  color: var(--nmx-ink-2);
  border: 0;
  border-radius: 0 !important;
  margin: 0;
  padding: 0 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  line-height: normal;
  height: auto;
}
.nmx button.nmx-toggle-btn + .nmx-toggle-btn { border-left: 1px solid var(--nmx-rule); }
.nmx button.nmx-toggle-btn[aria-pressed="true"] { background: var(--nmx-accent); color: #fff; font-weight: 700; }
.nmx button.nmx-toggle-btn:focus-visible { outline: 2px solid var(--nmx-accent); outline-offset: -3px; }
.nmx-score-fields { display: flex; gap: 10px; align-items: flex-end; }
.nmx-si-readout { font-size: 14px; color: var(--nmx-ink-2); padding-bottom: 9px; white-space: nowrap; }
.nmx-si-readout strong { color: var(--nmx-ink); font-size: 16px; }
.nmx-hint { flex-basis: 100%; font-size: 13px; color: var(--nmx-muted); margin: -4px 0 0; }
.nmx-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px 24px;
  margin: 20px 0 8px;
  align-items: start;
}
.nmx-kicker { font-size: 13px; font-weight: 700; color: var(--nmx-ink-2); margin: 0 0 2px; }
.nmx-hero { font-size: 52px; font-weight: 700; line-height: 1; color: var(--nmx-ink); margin: 2px 0 6px; }
.nmx-hero-sub { font-size: 14px; color: var(--nmx-ink-2); }
.nmx-hero-sub b { color: var(--nmx-ink); font-variant-numeric: normal; }
.nmx-counts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--nmx-grid); }
.nmx-count { display: flex; flex-direction: column; line-height: 1.2; }
.nmx-count b { font-size: 20px; font-weight: 700; color: var(--nmx-ink); font-variant-numeric: tabular-nums; }
.nmx-count span { font-size: 13px; color: var(--nmx-ink-2); }
.nmx-count-note { flex-basis: 100%; font-size: 12px; color: var(--nmx-muted); margin: 2px 0 0; }
.nmx-position { font-size: 15px; margin: 0 0 6px; }
.nmx-position strong { font-weight: 700; }
.nmx-empty { font-size: 14px; color: var(--nmx-muted); }
.nmx-prompt { font-size: 15px; color: var(--nmx-ink-2); margin: 14px 0 0; }
.nmx-section { margin: 28px 0 0; }
.nmx .nmx-h {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--nmx-ink) !important;
  margin: 0 0 2px !important;
  padding: 0;
  text-transform: none;
  letter-spacing: normal !important;
}
.nmx-sub { font-size: 14px; color: var(--nmx-ink-2); margin: 0 0 8px; }
.nmx-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--nmx-ink-2); margin: 0 0 6px; }
.nmx-key { display: inline-flex; align-items: center; gap: 6px; }
.nmx-key-line { width: 16px; height: 2px; border-radius: 1px; display: inline-block; }
.nmx-key-box { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.nmx-key-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nmx-key-dots {
  width: 16px;
  height: 3px;
  display: inline-block;
  background: radial-gradient(circle, var(--nmx-ink) 1.3px, transparent 1.5px) 0 50% / 5px 3px repeat-x;
}
.nmx-chart { position: relative; width: 100%; }
.nmx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.nmx-chart svg:focus { outline: none; }
.nmx-chart svg:focus-visible { outline: 2px solid var(--nmx-accent); outline-offset: 2px; border-radius: 2px; }
.nmx-chart text { font-family: inherit; fill: var(--nmx-ink-2); font-size: 12px; }
.nmx-chart .nmx-tick { font-variant-numeric: tabular-nums; }
.nmx-chart .nmx-label-strong { fill: var(--nmx-ink); font-weight: 700; }
.nmx-note { font-size: 13px; color: var(--nmx-muted); margin: 6px 0 0; }
.nmx-note:empty, .nmx-qualified:empty { display: none; }
.nmx-qualified { font-size: 15px; font-weight: 700; color: var(--nmx-ink); margin: 8px 0 0; }
.nmx-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: var(--nmx-surface);
  border: 1px solid var(--nmx-rule);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  min-width: 140px;
  opacity: 0;
  transition: opacity 0.08s;
}
.nmx-tip[data-show="true"] { opacity: 1; }
.nmx-tip-title { font-size: 12px; color: var(--nmx-muted); margin-bottom: 4px; }
.nmx-tip-row { display: flex; align-items: center; gap: 8px; }
.nmx-tip-row b { font-size: 14px; color: var(--nmx-ink); min-width: 30px; font-variant-numeric: tabular-nums; }
.nmx-tip-row span { color: var(--nmx-ink-2); }
.nmx-states-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 4px; }
.nmx table.nmx-states {
  border-collapse: collapse;
  width: 100%;
  margin: 0 !important;
  font-size: 14px;
  letter-spacing: normal;
  border: 0 !important;
}
.nmx table.nmx-states th,
.nmx table.nmx-states td {
  text-align: right !important;
  padding: 6px 8px !important;
  border: 0 !important;
  height: auto;
  font-size: inherit !important;
  background: var(--nmx-surface);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.35;
}
.nmx table.nmx-states thead th {
  background: var(--nmx-table-head);
  color: #fff;
  font-weight: 700;
  font-size: 13px !important;
  vertical-align: bottom;
}
.nmx table.nmx-states thead th.nmx-group { text-align: center !important; font-weight: 400; padding-bottom: 2px !important; }
.nmx table.nmx-states thead th.nmx-group-start { border-left: 1px solid rgba(255, 255, 255, 0.35) !important; }
.nmx table.nmx-states tbody td.nmx-group-start,
.nmx table.nmx-states tfoot td.nmx-group-start { border-left: 1px solid var(--nmx-grid) !important; }
.nmx table.nmx-states th:first-child { text-align: left !important; position: sticky; left: 0; z-index: 1; }
.nmx table.nmx-states tbody tr:nth-child(even) > * { background: var(--nmx-surface-2); }
.nmx table.nmx-states tbody tr.is-selected > * { background: var(--nmx-selected); }
.nmx table.nmx-states tbody tr.is-selected > th { box-shadow: inset 3px 0 0 var(--nmx-accent); }
.nmx table.nmx-states tbody tr.is-selected .nmx-state-link { font-weight: 700; }
.nmx table.nmx-states tfoot > tr > * { border-top: 2px solid var(--nmx-rule) !important; color: var(--nmx-ink-2); }
.nmx table.nmx-states tfoot th { font-weight: 700; }
.nmx button.nmx-sort,
.nmx button.nmx-state-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 2px;
  margin: 0;
  padding: 0;
  height: auto;
  line-height: inherit;
  text-align: inherit;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  cursor: pointer;
}
.nmx button.nmx-sort { font-weight: 700; color: #fff; }
.nmx button.nmx-sort::after { content: "\2195"; display: inline-block; width: 1em; margin-left: 2px; text-align: center; opacity: 0.45; font-weight: 400; }
.nmx th[aria-sort="ascending"] button.nmx-sort::after { content: "\25B2"; opacity: 1; font-size: 0.7em; vertical-align: 1px; }
.nmx th[aria-sort="descending"] button.nmx-sort::after { content: "\25BC"; opacity: 1; font-size: 0.7em; vertical-align: 1px; }
.nmx button.nmx-sort:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nmx button.nmx-state-link { color: var(--nmx-accent); }
.nmx button.nmx-state-link:hover { text-decoration: underline; }
.nmx button.nmx-state-link:focus-visible { outline: 2px solid var(--nmx-accent); outline-offset: 2px; }
.nmx details.nmx-details { margin: 24px 0 0; font-size: 14px; }
.nmx details.nmx-details summary { cursor: pointer; color: var(--nmx-accent); font-weight: 700; }
.nmx table.nmx-table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 0 !important;
  font-size: 14px;
  letter-spacing: normal;
  border: 0 !important;
}
.nmx table.nmx-table th,
.nmx table.nmx-table td {
  text-align: right !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nmx-grid) !important;
  height: auto;
  font-size: inherit !important;
  line-height: 1.35;
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.nmx table.nmx-table th:first-child,
.nmx table.nmx-table td:first-child { text-align: left !important; }
.nmx table.nmx-table th { color: var(--nmx-ink-2); font-weight: 700; font-size: 13px !important; }
.nmx table.nmx-table td.nmx-result-sf { font-weight: 700; color: var(--nmx-ink); }
.nmx-footnote { font-size: 13px; color: var(--nmx-muted); margin: 20px 0 0; border-top: 1px solid var(--nmx-grid); padding-top: 10px; }
.nmx-error { padding: 14px 16px; background: var(--nmx-wash); border-radius: var(--nmx-radius); font-size: 14px; }
.nmx .nmx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .nmx-summary { grid-template-columns: minmax(0, 1fr); }
  .nmx select.nmx-select { min-width: 0; width: 100%; }
  .nmx-field-state { flex-basis: 100%; }
  .nmx input.nmx-input { width: 80px; }
  .nmx-hero { font-size: 44px; }
  .nmx table.nmx-states { font-size: 13px; }
  .nmx table.nmx-states th, .nmx table.nmx-states td { padding: 6px 6px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nmx-tip { transition: none; }
}
