.na-view {
  --na-line: var(--line, #dae1e6);
  --na-ink: var(--ink, #172538);
  --na-muted: var(--muted, #5f6e83);
  min-width: 0; max-width: 100%; color: var(--na-ink);
}
.na-view [data-shade="auth"] { --na-fill: #cee9da; }
.na-view [data-shade="cost"] { --na-fill: #ffdfba; }
.na-view [data-shade="program"] { --na-fill: #cee8eb; }
.na-view [data-shade="supply"] { --na-fill: #dce1f6; }
.na-view [data-shade="contact"] { --na-fill: #e6e6e0; }
.na-view [data-shade="rx"] { --na-fill: #e5d9f0; }
.na-view [data-shade="safety"] { --na-fill: #f8d6d9; }
.na-view [data-shade="therapy"] { --na-fill: #d9e7c5; }
.na-view [data-shade="signal"] { --na-fill: #f5e7bb; }
.na-view [data-shade="other"] { --na-fill: #e1e6ea; }
.na-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 8px 0 11px; border-bottom: 1px solid var(--na-line); margin-bottom: 10px;
}
.na-title { margin: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.na-meta, .na-scope { color: var(--na-muted); font-size: 12px; }
.na-scope { margin-left: auto; }
.na-panel {
  background: #fff; border: 1px solid var(--na-line); border-radius: 9px; padding: 12px; margin: 8px 0;
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.na-section-title {
  margin: 0 0 9px; font-size: 11px; font-weight: 700; color: var(--na-muted);
  text-transform: uppercase; letter-spacing: .075em;
}
.na-view .na-source {
  display: block; margin: 0; border: 0; border-radius: 6px; background: #f8f9f8;
  color: #192634; padding: 11px 12px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 14px/2.0 var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.na-source .na-part { color: inherit; }
.na-source mark { background: var(--na-fill, #e1e6ea); border-radius: 3px; padding-block: 2px; cursor: pointer; }
.na-source mark.na-overlap { box-shadow: inset 0 -2px 0 #8898ac; }
.na-source mark.na-active { outline: 2px solid #345995; outline-offset: 1px; }
.na-speaker-cue, .na-view button:is(.na-speaker,.na-entity) {
  text-decoration: underline dotted #627284; text-underline-offset: .26em; text-decoration-thickness: 1.5px;
}
.na-view button { font-family: inherit; }
.na-view .na-badge, .na-view .na-index {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; white-space: nowrap; overflow-wrap: normal; flex: none;
  height: 17px; padding: 0 4px; margin: 0; border: 0; border-radius: 999px; line-height: 1;
  font: 650 11px/1 var(--sans, system-ui, sans-serif); color: #fff; background: #222b34; cursor: pointer;
}
.na-view .na-badge { vertical-align: .13em; margin-inline: 2px 1px; }
.na-view .na-badge::before { content: attr(data-number); }
.na-view .na-badge.na-active, .na-selected .na-index { background: #2d51a2; }
.na-view :is(button, .na-table-scroll, .na-source):focus-visible {
  outline: 2px solid var(--accent, #315dba); outline-offset: 3px;
}
.na-legend {
  display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 9px 0 0; list-style: none;
  color: var(--na-muted); font-size: 11.5px;
}
.na-legend li { display: inline-flex; align-items: center; gap: 5px; }
.na-swatch { display: inline-block; width: 11px; height: 11px; flex: none; border-radius: 3px; background: var(--na-fill,#e1e6ea); }
.na-dotted { display: inline-block; width: 16px; border-bottom: 2px dotted #627284; }
.na-source .na-participant { border-bottom: 1px dashed #536c76; cursor: pointer; }
.na-dashed { display: inline-block; width: 16px; border-bottom: 1px dashed #536c76; }
.na-table-scroll { max-width: 100%; overflow-x: auto; }
.na-table {
  font-size: 12.5px; width: 100%; min-width: 635px; border-collapse: collapse; text-align: left;
  table-layout: auto; line-height: 1.45;
}
.na-table th, .na-table td { border: 0; padding: 7px 5px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.na-table thead th { border-bottom: 1px solid var(--na-line); font-weight: 650; color: var(--na-muted); font-size: 10.5px; letter-spacing: .045em; text-transform: uppercase; }
.na-table tbody :is(td,th) { border-bottom: 1px solid var(--na-line); }
.na-table tbody tr:last-child :is(td,th) { border-bottom: 0; }
.na-table tr.na-selected { background: #f1f5ff; }
.na-table .na-number, .na-table thead th:first-child { width: 3ch; white-space: nowrap; overflow-wrap: normal; }
.na-table .na-name { font-weight: 650; min-width: 94px; }
.na-name-wrap { display: flex; align-items: baseline; gap: 5px; }
.na-table .na-status {
  white-space: nowrap; border-radius: 4px; background: #edf0f2; color: #3e4c5f; padding: 1px 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.na-table .na-affirmed { color: #17583e; background: #e1f3e9; }
.na-table .na-open { color: #8d490c; background: #fff0d9; }
.na-time { display: block; color: var(--na-muted); margin-top: 2px; font-size: 11px; }
.na-entities, .na-role { color: var(--na-muted); }
.na-entities > div { color: var(--na-ink); }
.na-view :is(.na-score,.na-offset,.na-speaker,.na-entity) {
  display: inline; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: inherit; font-size: inherit; text-align: left; font-variant-numeric: tabular-nums; line-height: inherit;
}
.na-view .na-score { white-space: nowrap; text-decoration: underline dotted #728197; text-underline-offset: .23em; }
.na-view .na-offset { color: var(--accent-ink,#244b92); white-space: nowrap; font: 11.5px/1.5 var(--mono,ui-monospace,monospace); }
.na-offset-note, .na-empty { color: var(--na-muted); margin: 7px 0 0; font-size: 11.5px; }
.na-explanation { margin-top: 10px; background: #f5f7fa; border-radius: 5px; padding: 8px 10px; font-size: 12px; }
.na-explanation p { margin: 3px 0 0; }
.na-counts { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 7px 0 12px; color: var(--na-muted); font-size: 12px; }
.na-counts strong { font-size: 15px; font-weight: 650; color: var(--na-ink); }
@media (max-width: 700px) {
  .na-panel { padding: 9px; }
  .na-head { padding-bottom: 7px; }
  .na-counts { gap: 3px 8px; }
}

.na-uncovered { margin-top: .7rem; }
.na-uncovered summary { cursor: pointer; font-weight: 600; }
.na-uncovered .na-offset { white-space: pre-wrap; text-align: left; }
.na-grade summary { cursor: pointer; }
.na-grade summary .na-meta { margin-inline-start: .75rem; }
.na-grade ul { margin-bottom: 0; }
