/* The enclosed dashboard and trace share the printed hierarchy of Figures 7–8. */
.qd-frame {
  --qd-rule: #ddddd7; --qd-ink:#181a17; --qd-muted:#62645f; --qd-green:#19815f;
  width:100%; max-width:1160px; margin:0 auto; overflow:hidden;
  border:1px solid #c9cac4; border-radius:16px; background:#fff; color:var(--qd-ink);
  font:14px/1.43 Arial, Helvetica, sans-serif; overflow-wrap:break-word;
}
.qd-frame *, .qd-frame *::before, .qd-frame *::after {box-sizing:border-box}
.qd-frame .qd-head {display:flex;align-items:baseline;gap:14px;padding:12px 18px;background:#fafaf8;border-bottom:1px solid var(--qd-rule);color:var(--qd-ink)}
.qd-frame .qd-head h2 {margin:0;font-size:19px;letter-spacing:-.03em;color:#121411}
.qd-meta {flex:1;color:#545651;overflow-wrap:anywhere}
.qd-source {background:#f0f1ee;font-size:12px;font-weight:650;color:#555752;border-radius:1rem;padding:2px 10px;align-self:center}
.qd-grid {display:grid;gap:13px;padding:16px}
.qd-grid .qd-scope {margin:0;font-size:15px;line-height:1.4;color:var(--qd-ink)}
.qd-tiles {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.qd-frame .qd-tile,.qd-frame .qd-card {min-width:0;background:#fff;border:1px solid var(--qd-rule);border-radius:11px;padding:13px 14px;color:var(--qd-ink)}
.qd-frame .qd-tile {display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;justify-content:flex-start}
.qd-tile > span,.qd-frame small,.qd-frame .qd-foot {font-size:12px;color:var(--qd-muted)}
.qd-frame .qd-tile strong {font-size:clamp(20px,2.1vw,29px);line-height:1.12;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.qd-frame .qd-tile strong.qd-unmeasured {font-size:16px;font-weight:600;letter-spacing:0;line-height:1.5}
.qd-tile small {line-height:1.7}
.qd-tile:is(button):hover {background:#f3f8f5;border-color:var(--qd-green)}
.qd-columns {display:grid;grid-template-columns:1.08fr 1fr 1fr;gap:12px}
.qd-frame .qd-card h3 {margin:0 0 10px;font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:#686a65;font-weight:700}
.qd-frame .qd-card h3:not(:first-child) {margin-top:15px}
.qd-frame .qd-foot {margin:10px 0 0;line-height:1.55}
.qd-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;border-bottom:1px solid #e8e9e4;padding:6px 0}
.qd-row:last-of-type {border-bottom:0}
.qd-frame .qd-label {display:inline;color:inherit;text-align:left;font:inherit;padding:0;background:none;border:0}
.qd-frame button.qd-count {padding:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-decoration-color:#c3cec8;text-underline-offset:3px;cursor:pointer}
.qd-frame .qd-row strong.qd-missing {color:#72756e;font-weight:500}
.qd-row small,.qd-trace-row span {display:block}
.qd-row strong {font-variant-numeric:tabular-nums}
.qd-challenges .qd-row {grid-template-columns:minmax(0,1fr) auto minmax(22px,30%)}
.qd-queue .qd-row {grid-template-columns:9px minmax(0,1fr) auto;gap:6px}
.qd-dot {width:9px;height:9px;border-radius:3px;display:inline-block;margin-top:5px;background:#a4a59f}
.qd-dot-0{background:#db483b}.qd-dot-1{background:#df8022}.qd-dot-2{background:#dcb336}.qd-dot-3{background:#4c5993}
.qd-frame progress {appearance:none;border:0;width:100%;height:8px;align-self:start;margin-top:6px;border-radius:8px;background:#eeeFEB;overflow:hidden}
.qd-frame progress::-webkit-progress-bar{background:#eeeFEB;border-radius:8px}
.qd-frame progress::-webkit-progress-value{background:var(--qd-green);border-radius:8px}
.qd-frame progress::-moz-progress-bar{background:var(--qd-green);border-radius:8px}
.qd-stack{width:100%;height:20px;display:block;border-radius:5px;overflow:hidden;margin:4px 0 8px}
.qd-frame .qd-family{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.qd-frame .qd-family th,.qd-frame .qd-family td{border:0;padding:6px 3px;border-bottom:1px solid #dfdfda;text-align:right;vertical-align:middle;color:var(--qd-ink);font-variant-numeric:tabular-nums}
.qd-frame .qd-family th:first-child,.qd-frame .qd-family tbody th{text-align:left;width:35%}
.qd-family th:last-child {width:36%}
.qd-frame .qd-family thead th {text-transform:uppercase;color:var(--qd-muted);font-size:11px;letter-spacing:.06em}
.qd-frame .qd-family td:nth-child(4) {font-weight:700}
.qd-frame .qd-family tr:last-child td,.qd-frame .qd-family tbody tr:last-child th {border:0}
.qd-family progress {display:block;margin:0}
.qd-source-text {white-space:pre-wrap;background:#f8f8f6;border-radius:6px;padding:12px;font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace}
.qd-source-text mark {background:#d9e9e0;color:inherit;border-radius:4px;padding:1px 0}
.qd-source-text .qd-mark-red {background:#f6d3cf}.qd-source-text .qd-mark-indigo{background:#dce0f3}.qd-source-text .qd-mark-gold{background:#ffebac}
.qd-stages {display:grid;grid-template-columns:.72fr 1.06fr 1fr;gap:12px}
.qd-trace-row {display:grid;grid-template-columns:minmax(20px,auto) minmax(0,1fr);gap:9px;padding:7px 0;border-bottom:1px solid #e8e9e4}
.qd-trace-row:last-child {border:0}.qd-trace-row small {font-weight:700}
.qd-tone-bad {color:#a93427}.qd-tone-good{color:#106b4b}
.qd-outcome {padding:13px;border:1px solid #bfdfcd;background:#f3f8f4;border-radius:10px}
.quality-page {display:block;height:auto;min-height:100%;background:#f7f8f5}
.quality-main {width:min(1220px,100%);margin:auto;padding:14px clamp(10px,3vw,34px) 48px}
.quality-controls,.quality-note-tools,#published-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quality-controls,.quality-note-tools {padding:4px 0;color:#424740}
.quality-page #build,.quality-page #filter{width:auto}
.quality-page .tabs {background:transparent;margin:5px 0 14px;padding-inline:0;position:static;overflow-x:auto}
.quality-page .tabpanels,.quality-page .tabpanel{display:block;overflow:visible;padding:0;background:transparent}
.quality-page .tabpanels [hidden]{display:none}
.quality-page #detail:focus{outline:0}
.quality-note-tools select{max-width:100%}
.quality-page #note-list {padding:0 12px;margin:8px 0 12px}
.quality-page #notes {max-height:230px;overflow-y:auto;margin:0 0 8px}
.quality-page #runs {min-width:0}
.quality-extra {margin-top:15px}
@media(max-width:940px){
  .qd-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qd-columns,.qd-stages{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qd-frame .qd-card {padding:10px}
  .qd-challenges .qd-row {grid-template-columns:minmax(0,1fr) auto 22px}
}
@media(max-width:700px){
  .qd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qd-grid{padding:10px;gap:10px}
  .qd-columns,.qd-stages{grid-template-columns:minmax(0,1fr)}
  .qd-frame .qd-head{flex-wrap:wrap;gap:4px 10px;padding:10px 12px}
  .qd-meta{flex:1 1 60%}.qd-source{font-size:11px}
  .qd-family th:last-child{width:14%}.qd-frame .qd-family th:first-child{width:40%}
  .qd-frame .qd-family thead th{font-size:9px;letter-spacing:0}
  .quality-page .top-controls{flex-wrap:wrap}
}
@media(min-width:941px){
  .qd-frame {container-type:inline-size}
  .qd-frame:not(.qd-trace) .qd-card {font-size:clamp(14px,1.46cqi,17px);padding:clamp(12px,1.5cqi,18px)}
  .qd-frame:not(.qd-trace) .qd-grid {padding:clamp(16px,1.9cqi,22px);gap:clamp(13px,1.6cqi,18px)}
  .qd-frame:not(.qd-trace) .qd-tile {padding:clamp(12px,1.35cqi,16px)}
  .qd-frame:not(.qd-trace) .qd-tile > span,.qd-frame:not(.qd-trace) small,
  .qd-frame:not(.qd-trace) .qd-foot {font-size:clamp(12px,1.34cqi,15.5px)}
  .qd-frame:not(.qd-trace) .qd-tile strong:not(.qd-unmeasured) {font-size:clamp(25px,2.8cqi,32px)}
  .qd-frame:not(.qd-trace) .qd-card h3 {font-size:clamp(12px,1.35cqi,15.5px)}
  .qd-frame:not(.qd-trace) .qd-family {font-size:clamp(13px,1.43cqi,16.5px)}
  .qd-frame:not(.qd-trace) .qd-family thead th {font-size:clamp(11px,1.2cqi,14px)}
  .qd-frame:not(.qd-trace) .qd-row {padding-block:clamp(6px,.78cqi,9px)}
  .qd-frame:not(.qd-trace) .qd-head {font-size:clamp(14px,1.4cqi,16px)}
  .qd-trace .qd-trace-row {font-size:clamp(14px,1.34cqi,15.5px)}
  .qd-trace .qd-source-text {font-size:clamp(14px,1.45cqi,16.5px)}
}
.qd-frame .qd-family tbody tr:last-child progress {--qd-green:#aaa9a3}
.qd-frame .qd-columns>section:nth-child(2) .qd-row:nth-last-child(3) strong:not(.qd-missing) {color:#a34d08}
.qd-frame .qd-drill {position:relative;background:#f9fcfa}
.qd-drill .qd-dismiss {position:absolute;inset:8px 10px auto auto;background:#fff;border:1px solid var(--qd-rule);border-radius:5px;padding:3px 9px;cursor:pointer}
.qd-contributors {padding:0;margin:10px 0 0;list-style:none;max-height:22rem;overflow:auto}
.qd-contributors>li {border-top:1px solid var(--qd-rule);padding:7px 0}
.qd-drill time,.qd-contributors small {margin-inline-start:10px;font-size:12px;color:var(--qd-muted)}
.qd-drill .qd-note-link,.qd-drill .qd-evidence {padding:0;background:none;border:0;text-align:left;color:#146048;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.qd-drill .qd-evidence {display:block;font-size:13px}
.qd-drill details {background:#fff;margin:4px 0 1px;padding:4px 8px;border:1px solid var(--qd-rule);border-radius:5px}
.qd-drill summary {cursor:pointer}
.qd-drill ul {padding-left:18px}
.qd-drill li li+li {margin-top:7px}

.qd-frame .qd-basis {margin:0 0 8px;color:var(--qd-muted);font-size:.88em;line-height:1.45}
.qd-family th .qd-family-count {display:block;margin-top:2px;color:var(--qd-muted);font-size:.77em;font-weight:400}
.qd-differences {margin-top:10px;border-top:1px solid var(--qd-rule);padding-top:8px}
.qd-differences summary {cursor:pointer;font-size:14px;font-weight:600}
.qd-passages {margin:8px 0 0;padding:0;list-style:none;max-height:23rem;overflow-y:auto}
.qd-passages li {padding:8px 2px;border-bottom:1px solid var(--qd-rule)}
.qd-passages li p {margin:2px 0;font-size:13px;color:var(--qd-muted)}
.qd-passages .qd-evidence {display:block;margin-top:3px;padding:0;border:0;background:none;color:#18664c;line-height:1.45;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.qd-frame .qd-columns>section:nth-child(2) .qd-row:has(.qd-label) strong {color:inherit}
.qd-frame .qd-columns>section:nth-child(2) .qd-row strong.qd-missing {color:#72756e}
.qd-review-action {margin-top:10px}
.qd-frame .qd-review-button {padding:6px 12px;background:#fff;border:1px solid #a4b8ad;border-radius:8px;color:#14583e;cursor:pointer}
.qd-frame .qd-review-button:disabled {cursor:wait;opacity:.65}

/* A reviewer compares the saved passage with one linked event at a time. */
.qd-audit {max-width:54rem;color:var(--qd-ink)}
.qd-audit-head,.qd-audit-actions {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.qd-audit-head {justify-content:space-between;margin-bottom:.3rem}
.qd-audit-head h3 {margin:0!important}
.qd-audit-body {display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}
.qd-audit-summary,.qd-audit-status {margin:0;font-size:.9em}
.qd-audit-status {min-height:1.4em;color:#425047}
.qd-audit-picker,.qd-audit-meta {display:block;font-size:.88em}
.qd-audit-picker {font-weight:600}
.qd-audit-picker select {display:block;max-width:100%;width:min(100%,38rem);min-height:2.5rem;margin-top:.2rem}
.qd-audit-evidence {display:grid;grid-template-columns:1fr 1.4fr;gap:.7rem;padding-top:.55rem;border-top:1px solid var(--qd-rule)}
.qd-audit-evidence h4 {margin:0 0 .12rem;font-size:.8em;color:var(--qd-muted)}
.qd-audit-meta {color:var(--qd-muted);overflow-wrap:anywhere}
.qd-audit blockquote {margin:0;padding:.6rem .8rem;background:white;border-left:3px solid #8bb5a2;white-space:pre-wrap;line-height:1.5}
.qd-audit-close,.qd-audit-choice,.qd-audit-source {justify-self:start;min-height:2.4rem;padding:.3rem .65rem;cursor:pointer;font:inherit}
.qd-audit-close,.qd-audit-choice {border:1px solid #b9c3ba;border-radius:7px;background:white;color:#253b2d}
.qd-audit-choice[aria-pressed=true] {border-color:#267553;background:#e2f1e8;color:#11462f;font-weight:650}
.qd-audit-choice[data-verdict=incorrect][aria-pressed=true] {border-color:#9c5745;background:#fff0e9;color:#763c2c}
.qd-audit-choice:disabled {cursor:wait;opacity:.65}
.qd-audit-source {border:0;padding-inline:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#175e43}
.qd-audit :is(button,select,h3):focus-visible {outline:2px solid #246b51;outline-offset:2px}
@media(max-width:560px) {.qd-audit-evidence {grid-template-columns:1fr}}
.qd-frame .qd-family.qd-volumes th:last-child {width:auto}
.qd-frame .qd-family.qd-volumes td:nth-child(2){font-weight:650}
.qd-frame .qd-family.qd-volumes td:nth-child(4){font-weight:400}
