:root {
  --quality-ink: #171b2a;
  --quality-muted: #53647b;
  --quality-line: #c9d6e5;
  --quality-blue: #1473e6;
  --quality-red: #ef3f34;
  --quality-panel-red: #ef3733;
  --quality-green: #00c767;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.quality-page {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: #fbfdff;
  color: var(--quality-ink);
  font-family: Inter, Arial, sans-serif;
}

.quality-page main {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 16px 24px;
  background: transparent;
}

.quality-page main::before {
  position: fixed;
  z-index: -1;
  inset: 63px 0 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 115, 230, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(20, 115, 230, 0.14) 1.5px, transparent 1.5px),
    radial-gradient(at 16% 18%, rgba(20, 115, 230, 0.32), transparent 48%),
    radial-gradient(at 86% 82%, rgba(239, 63, 52, 0.42), transparent 54%),
    linear-gradient(#fbfdff 0%, #f7f8fb 58%, #f4f7ff 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.quality-hero {
  width: 100%;
  min-height: 104px;
  padding: 12px 16px 0;
  display: grid;
  place-items: center;
}

.quality-heading {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.quality-heading h1 {
  margin: 0;
  color: var(--quality-ink);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.quality-tool-shell {
  width: 1120px;
  max-width: 100%;
  margin: 0 auto;
}

.quality-engine { width: 100%; }

.engine-stage {
  width: 100%;
  height: 310px;
  padding: 18px 12px 12px;
  border-radius: 11px;
  background: var(--quality-panel-red);
  box-shadow: 0 18px 42px rgba(27, 36, 52, 0.16);
}

.checker-shell {
  width: 100%;
  min-height: 280px;
  padding: 16px 48px 14px;
  border: 2px dashed rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.checker-icon {
  width: 40px;
  height: 44px;
  margin-bottom: 4px;
  overflow: visible;
  fill: rgba(255, 255, 255, 0.12);
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.checker-icon .checker-mark { fill: none; stroke-width: 5; }

.engine-label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checker-shell h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.checker-shell > p {
  margin: 4px 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.engine-entry {
  width: min(760px, 100%);
  text-align: left;
}

.engine-entry > label {
  display: block;
  margin: 0 0 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.engine-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.engine-input-wrap {
  position: relative;
  min-width: 0;
}

.engine-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: #65768d;
  pointer-events: none;
}

.engine-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 39px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #263247;
  font: 600 13px/1 Inter, Arial, sans-serif;
  box-shadow: 0 5px 13px rgba(27, 36, 52, 0.12);
}

.engine-input-wrap input::placeholder { color: #718096; opacity: 1; }

.engine-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #202738;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #202738;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.engine-button:hover { background: #151b29; }

.button-plus {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.source-types {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.source-types span {
  min-width: 39px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.quality-steps {
  width: 780px;
  max-width: 100%;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quality-steps > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #263247;
  font-size: 14px;
  font-weight: 750;
  line-height: 18.9px;
}

.quality-steps > div:nth-child(2) { justify-content: center; }
.quality-steps > div:nth-child(3) { justify-content: flex-end; }

.quality-steps span {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--quality-green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.engine-status {
  width: 760px;
  max-width: 100%;
  min-height: 58px;
  margin: 22px auto 0;
  padding: 8px 14px;
  border: 1px solid #c9d8e9;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  background: #f5f9ff;
  box-shadow: 0 12px 26px rgba(58, 78, 105, 0.08);
}

.status-copy { min-width: 0; }

.status-copy strong,
.status-copy small { display: block; }

.status-copy strong {
  color: #263247;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.status-copy small {
  margin-top: 2px;
  color: #68798f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  align-items: center;
}

.status-metrics > span {
  min-height: 36px;
  border-left: 1px solid #d7e0ec;
  display: grid;
  place-content: center;
  text-align: center;
}

.status-metrics strong,
.status-metrics small { display: block; }

.status-metrics strong {
  color: #263247;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
}

.status-metrics small {
  margin-top: 2px;
  color: #68798f;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.1;
}

.engine-status > a {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202738;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.engine-settings {
  width: 760px;
  max-width: 100%;
  min-height: 50px;
  margin: 12px auto 0;
  padding: 0 16px;
  border: 1px solid #c8d8eb;
  border-radius: 7px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.engine-settings strong {
  color: #263247;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.engine-settings > span {
  overflow: hidden;
  color: #607087;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-settings b {
  color: #273247;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.quality-section {
  width: 1260px;
  max-width: 100%;
  margin: 58px auto 0;
  padding: 0;
}

.section-heading {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-pill {
  min-width: 202px;
  min-height: 40px;
  padding: 0 36px;
  border: 1px solid var(--quality-red);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--quality-red);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow-grid article {
  position: relative;
  min-height: 184px;
  padding: 22px;
  border: 1px solid #c9d8e5;
  border-top: 4px solid var(--quality-blue);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 28px auto 1fr;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.workflow-grid article > span {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #fff0ee;
  color: var(--quality-red);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.workflow-grid h3 {
  margin: 0;
  color: var(--quality-ink);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.workflow-grid p {
  margin: 0;
  color: var(--quality-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--quality-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.feature-grid article > span {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fff0ee;
  color: var(--quality-red);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-grid p {
  margin: 0;
  color: var(--quality-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

#faq {
  width: 1132px;
  padding: 0 24px 0;
}

.faq-stack {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.faq-stack details + details { border-top: 1px solid #d7e0ec; }

.faq-stack summary {
  position: relative;
  min-height: 62px;
  padding: 22px 72px 20px 22px;
  display: flex;
  align-items: center;
  color: #c8312b;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  line-height: 18px;
  letter-spacing: 0.035em;
  list-style: none;
  text-transform: uppercase;
}

.faq-stack summary::-webkit-details-marker { display: none; }

.faq-stack summary span {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #263247;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.faq-stack details[open] summary span { transform: translateY(-50%) rotate(90deg); }

.faq-stack details > div {
  padding: 0 22px 22px;
  color: var(--quality-muted);
}

.faq-stack h3 {
  margin: 0 0 8px;
  color: var(--quality-ink);
  font-size: 16px;
  line-height: 1.3;
}

.faq-stack p { margin: 0; font-size: 13px; line-height: 1.6; }

.guides-section { margin-bottom: 96px; }
.guides-section .section-heading { margin-bottom: 18px; }

.guide-list {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.guide-list a {
  min-height: 62px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 279px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: #263247;
  text-decoration: none;
}

.guide-list a + a { border-top: 1px solid #d7e0ec; }
.guide-list a:hover { background: #f5f9ff; }

.guide-list strong {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.guide-list span {
  color: #5d6e84;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.guide-list b {
  color: var(--quality-red);
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .quality-page main {
    padding: 0 12px 20px;
  }

  .quality-page main::before { inset: 59px 0 0; }

  .quality-hero {
    min-height: 92px;
    padding: 12px 4px 0;
  }

  .quality-heading h1 {
    font-size: clamp(29px, 8.1vw, 34px);
    line-height: 1.08;
  }

  .quality-tool-shell { width: 100%; }

  .engine-stage {
    height: auto;
    min-height: 338px;
    padding: 12px;
  }

  .checker-shell {
    min-height: 314px;
    padding: 18px 16px;
  }

  .checker-icon { width: 36px; height: 40px; }

  .checker-shell h2 {
    max-width: 270px;
    font-size: 21px;
  }

  .checker-shell > p {
    max-width: 270px;
    margin-bottom: 12px;
  }

  .engine-entry > label { text-align: center; }

  .engine-entry-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .engine-button { width: 100%; }

  .source-types { flex-wrap: wrap; }

  .quality-steps {
    width: 100%;
    margin-top: 18px;
    gap: 6px;
  }

  .quality-steps > div {
    gap: 6px;
    font-size: 12px;
  }

  .quality-steps > div:nth-child(2) { justify-content: center; }
  .quality-steps > div:nth-child(3) { justify-content: flex-end; }

  .quality-steps span {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 12px;
  }

  .engine-status {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .status-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-top: 1px solid #d7e0ec;
    padding-top: 7px;
  }

  .status-metrics > span:first-child { border-left: 0; }
  .engine-status > a { grid-column: 2; grid-row: 1; }

  .engine-settings {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .engine-settings > span { display: none; }

  .quality-section {
    width: 100%;
    margin-top: 48px;
  }

  .section-heading { margin-bottom: 18px; }

  .section-pill {
    min-width: 180px;
    min-height: 40px;
    padding: 0 30px;
  }

  .workflow-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article { min-height: 174px; }
  .feature-grid article { min-height: 132px; }

  #faq { width: 100%; padding: 0; }

  .faq-stack summary {
    padding: 20px 54px 18px 18px;
    font-size: 13px;
    letter-spacing: 0.025em;
  }

  .faq-stack summary span { right: 18px; }

  .guide-list a {
    min-height: 78px;
    padding: 13px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
  }

  .guide-list span { grid-column: 1; }
  .guide-list b { grid-column: 2; grid-row: 1 / span 2; }
  .guides-section { margin-bottom: 72px; }
}

@media (max-width: 390px) {
  .quality-page main { padding-inline: 10px; }
  .engine-stage { padding: 10px; }
  .checker-shell { padding-inline: 12px; }
  .engine-status { padding-inline: 11px; }
  .engine-status > a { padding-inline: 10px; }
}

/* Interactive citation evidence engine */

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quality-hero {
  min-height: 244px;
  padding: 54px 16px 38px;
}

.quality-heading { max-width: 880px; }

.quality-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--quality-red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quality-kicker::before,
.quality-kicker::after {
  width: 26px;
  height: 1px;
  content: "";
  background: currentColor;
}

.quality-heading h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.quality-heading > p {
  max-width: 720px;
  margin: 18px auto 0;
  color: #4e6078;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.62;
}

.quality-tool-shell {
  width: 1240px;
  scroll-margin-top: 84px;
}

.audit-workspace {
  width: 100%;
}

.audit-input-card {
  position: relative;
  padding: 34px 42px 28px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--quality-panel-red);
  box-shadow: 0 24px 65px rgba(40, 57, 80, 0.16);
}

.audit-input-card::before {
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  content: "";
  pointer-events: none;
}

.audit-input-card::after {
  position: absolute;
  top: -104px;
  right: -92px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 68%);
}

.audit-input-card > * { position: relative; z-index: 1; }

.audit-input-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.audit-heading-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.audit-heading-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.audit-input-heading .engine-label {
  margin: 1px 0 5px;
  color: #fff;
  font-size: 10px;
}

.audit-input-heading h2 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.audit-input-heading p {
  max-width: 780px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.audit-mode-tabs {
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  display: flex;
  gap: 24px;
}

.audit-mode-tabs button {
  position: relative;
  min-height: 46px;
  padding: 0 2px 13px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: 750 13px/1 Inter, Arial, sans-serif;
}

.audit-mode-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  content: "";
  background: transparent;
}

.audit-mode-tabs button.is-active { color: #fff; }
.audit-mode-tabs button.is-active::after { background: #fff; }

.audit-mode-tabs svg,
.audit-primary-button svg,
.audit-search svg,
.audit-upload-icon svg,
.audit-trust-strip svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.audit-mode-tabs svg { width: 18px; height: 18px; }

.audit-input-panel { margin-top: 20px; }

.audit-input-panel > label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

#quality-input {
  width: 100%;
  min-height: 196px;
  resize: vertical;
  padding: 18px 19px;
  border: 1px solid #bfcddd;
  border-radius: 9px;
  outline: none;
  background: #fbfdff;
  color: #202a3d;
  font: 500 13px/1.65 Inter, Arial, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

#quality-input::placeholder { color: #8290a2; }

#quality-input:focus {
  border-color: var(--quality-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.13);
}

.audit-textarea-meta {
  min-height: 30px;
  padding: 8px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.audit-textarea-meta b { color: #fff; }

.audit-drop-zone {
  width: 100%;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed #aebfd3;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  color: #263247;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.audit-drop-zone:hover,
.audit-drop-zone.is-dragging {
  border-color: var(--quality-blue);
  background: #f0f7ff;
  transform: translateY(-1px);
}

.audit-upload-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f2ff;
  color: var(--quality-blue);
}

.audit-upload-icon svg { width: 23px; height: 23px; }
.audit-drop-zone strong { font-size: 14px; line-height: 1.3; }
.audit-drop-zone > span:not(.audit-upload-icon) { margin-top: 5px; color: #66788f; font-size: 12px; }
.audit-drop-zone em { margin-top: 13px; color: #7c8a9d; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: 0.02em; }

.audit-file-card {
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid #bed0e3;
  border-radius: 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: #f6faff;
}

.audit-file-type {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e3efff;
  color: #145eaf;
  font-size: 9px;
  font-weight: 850;
}

.audit-file-card strong,
.audit-file-card small { display: block; }
.audit-file-card strong { overflow: hidden; color: #263247; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.audit-file-card small { margin-top: 4px; color: #718096; font-size: 10px; }

.audit-file-card button {
  padding: 8px 10px;
  border: 1px solid #d1dce8;
  border-radius: 6px;
  background: #fff;
  color: #596a80;
  cursor: pointer;
  font: 750 10px/1 Inter, Arial, sans-serif;
}

.audit-controls {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #d4dee9;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 190px 180px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  background: #f8fafc;
}

.audit-controls > label {
  display: grid;
  gap: 6px;
  color: #44546b;
  font-size: 10px;
  font-weight: 800;
}

.audit-controls select {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid #bdcad9;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #27354a;
  font: 650 11px/1 Inter, Arial, sans-serif;
}

.audit-controls select:focus { border-color: var(--quality-blue); box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.1); }

.audit-control-copy {
  min-height: 38px;
  padding-left: 15px;
  border-left: 1px solid #d3dde8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.audit-control-copy strong { color: #2d3b4f; font-size: 11px; }
.audit-control-copy span { margin-top: 3px; color: #68798f; font-size: 10px; line-height: 1.35; }

.audit-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.audit-actions > div { display: flex; align-items: center; gap: 8px; }

.audit-primary-button,
.audit-secondary-button,
.audit-text-button,
.audit-summary-actions button {
  border-radius: 7px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.audit-primary-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #202738;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(31, 39, 56, 0.18);
}

.audit-primary-button svg { width: 19px; height: 19px; stroke-width: 2.4; }
.audit-primary-button:hover { background: #f4f7fb; transform: translateY(-1px); }
.audit-primary-button:disabled { cursor: wait; opacity: 0.66; transform: none; }

.audit-secondary-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.audit-secondary-button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.2); }

.audit-text-button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
}

.audit-text-button:hover { color: #fff; }

.audit-progress {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #bbd3ee;
  border-radius: 8px;
  background: #f1f7ff;
}

.audit-progress-copy {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.audit-progress-copy strong { color: #244161; font-size: 11px; }
.audit-progress-copy span { color: #607994; font-size: 10px; }

.audit-progress-track {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: #dce9f7;
}

.audit-progress-track span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, var(--quality-blue), #2fa7f4);
  transition: width 220ms ease;
}

.audit-status {
  min-height: 17px;
  margin: 15px 1px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.audit-status[data-tone="error"] { color: #fff4b8; }
.audit-status[data-tone="success"] { color: #e3fff2; }

.audit-trust-strip {
  min-height: 62px;
  margin: 13px 14px 0;
  padding: 14px 20px;
  border: 1px solid #d3dfeb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(49, 68, 91, 0.07);
}

.audit-trust-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #67778c;
  font-size: 10px;
  white-space: nowrap;
}

.audit-trust-strip b { color: #314158; }
.audit-trust-strip svg { width: 17px; height: 17px; color: var(--quality-blue); }

.audit-results {
  margin-top: 30px;
  scroll-margin-top: 82px;
}

.audit-summary-card {
  min-height: 180px;
  padding: 26px 28px;
  border: 1px solid #c7d5e4;
  border-radius: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(44, 61, 82, 0.12);
}

.audit-score-ring {
  --ring-color: var(--quality-blue);
  width: 118px;
  height: 118px;
  padding: 9px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), #e4ebf2 0);
}

.audit-score-ring::before {
  grid-area: 1 / 1;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

.audit-score-ring > span {
  z-index: 1;
  grid-area: 1 / 1;
  display: flex;
  align-items: baseline;
  color: #253248;
}

.audit-score-ring strong { font-family: Manrope, Inter, sans-serif; font-size: 35px; line-height: 1; }
.audit-score-ring small { color: #738196; font-size: 10px; font-weight: 700; }
.audit-score-ring[data-tone="good"] { --ring-color: #11a86b; }
.audit-score-ring[data-tone="warn"] { --ring-color: #ef9e24; }
.audit-score-ring[data-tone="risk"] { --ring-color: #dc3d35; }

.audit-eyebrow {
  color: var(--quality-red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audit-summary-copy h2 {
  margin: 5px 0 6px;
  color: #1f2a3d;
  font-family: Manrope, Inter, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.audit-summary-copy p {
  max-width: 710px;
  margin: 0;
  color: #596a80;
  font-size: 12px;
  line-height: 1.55;
}

.audit-summary-badges { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }

.audit-summary-badges span,
.detail-badges span {
  padding: 5px 8px;
  border: 1px solid #cfdbe8;
  border-radius: 999px;
  background: #f8fafc;
  color: #52657d;
  font-size: 9px;
  font-weight: 750;
}

.audit-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.audit-summary-actions button {
  min-width: 118px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c2cede;
  background: #fff;
  color: #36475e;
  font-size: 10px;
  font-weight: 750;
}

.audit-summary-actions button:hover { border-color: #92a8c0; background: #f6faff; }

.audit-metric-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.audit-metric-card {
  min-height: 93px;
  padding: 15px 14px;
  border: 1px solid #cfdae6;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
}

.audit-metric-card strong { color: #243148; font-family: Manrope, Inter, sans-serif; font-size: 24px; line-height: 1; }
.audit-metric-card span { color: #6a7b91; font-size: 9px; font-weight: 700; line-height: 1.3; }
.audit-metric-card[data-tone="good"] { border-top: 3px solid #11a86b; }
.audit-metric-card[data-tone="warn"] { border-top: 3px solid #ef9e24; }
.audit-metric-card[data-tone="risk"] { border-top: 3px solid #dc3d35; }
.audit-metric-card[data-tone="info"] { border-top: 3px solid var(--quality-blue); }

.audit-report-toolbar {
  min-height: 60px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid #ccd8e5;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.audit-filters { display: flex; flex-wrap: wrap; gap: 5px; }

.audit-filters button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #63758b;
  cursor: pointer;
  font: 700 10px/1 Inter, Arial, sans-serif;
}

.audit-filters button span {
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 999px;
  background: #eaf0f6;
  color: #53667e;
  text-align: center;
}

.audit-filters button.is-active { border-color: #c0d3e7; background: #eef6ff; color: #155fae; }
.audit-filters button.is-active span { background: #d5e9ff; color: #155fae; }

.audit-search {
  position: relative;
  width: 205px;
  flex: 0 0 205px;
}

.audit-search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #71839a;
}

.audit-search input {
  width: 100%;
  height: 35px;
  padding: 0 10px 0 32px;
  border: 1px solid #c6d2df;
  border-radius: 7px;
  outline: none;
  color: #2b3a50;
  font: 600 10px/1 Inter, Arial, sans-serif;
}

.audit-search input:focus { border-color: var(--quality-blue); box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.1); }

.audit-report-layout {
  min-height: 640px;
  border: 1px solid #ccd8e5;
  border-top: 0;
  border-radius: 0 0 11px 11px;
  display: grid;
  grid-template-columns: 342px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 58, 79, 0.11);
}

.audit-reference-list {
  min-width: 0;
  border-right: 1px solid #d5dfe9;
  background: #f7f9fc;
}

.audit-list-heading {
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid #d5dfe9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2d3b50;
}

.audit-list-heading strong { font-size: 11px; }
.audit-list-heading span { color: #748398; font-size: 9px; font-weight: 650; }

#quality-reference-list {
  max-height: 760px;
  overflow-y: auto;
}

.reference-result {
  width: 100%;
  min-height: 104px;
  padding: 14px 15px;
  border: 0;
  border-bottom: 1px solid #dbe3ec;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  background: transparent;
  color: #2c3a50;
  cursor: pointer;
  text-align: left;
  font-family: Inter, Arial, sans-serif;
}

.reference-result:hover { background: #eef5fd; }
.reference-result.is-active { background: #fff; box-shadow: inset 3px 0 var(--quality-blue); }

.reference-status-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #8291a3;
}

.reference-result[data-status="verified"] .reference-status-dot { background: #10a269; box-shadow: 0 0 0 3px rgba(16, 162, 105, 0.12); }
.reference-result[data-status="review"] .reference-status-dot { background: #e99a20; box-shadow: 0 0 0 3px rgba(233, 154, 32, 0.13); }
.reference-result[data-status="risk"] .reference-status-dot { background: #d73c35; box-shadow: 0 0 0 3px rgba(215, 60, 53, 0.13); }

.reference-result strong {
  display: -webkit-box;
  overflow: hidden;
  color: #26354a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reference-result small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #718096;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-result-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reference-result-meta span { color: #66788f; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.reference-result-meta b { color: #31445e; font-size: 10px; }

.audit-detail {
  min-width: 0;
  padding: 26px 28px 34px;
  background: #fff;
}

.detail-empty {
  min-height: 520px;
  display: grid;
  place-content: center;
  color: #738296;
  text-align: center;
}

.detail-empty strong { color: #34445a; font-size: 14px; }
.detail-empty span { margin-top: 6px; font-size: 11px; }

.detail-header {
  padding-bottom: 22px;
  border-bottom: 1px solid #d9e2ec;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
}

.detail-verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #5d6e84;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-verdict::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: #8291a3;
}

.detail-header[data-status="verified"] .detail-verdict { color: #08764b; }
.detail-header[data-status="verified"] .detail-verdict::before { background: #10a269; }
.detail-header[data-status="review"] .detail-verdict { color: #9d6004; }
.detail-header[data-status="review"] .detail-verdict::before { background: #e99a20; }
.detail-header[data-status="risk"] .detail-verdict { color: #b42f29; }
.detail-header[data-status="risk"] .detail-verdict::before { background: #d73c35; }

.detail-header h2 {
  margin: 0;
  color: #202d42;
  font-family: Manrope, Inter, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.detail-header p { margin: 8px 0 0; color: #5e7087; font-size: 11px; line-height: 1.55; }
.detail-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }

.detail-score {
  min-width: 76px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #cad7e4;
  border-radius: 10px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #f8fafc;
}

.detail-score strong { color: #25354b; font-family: Manrope, Inter, sans-serif; font-size: 24px; line-height: 1; }
.detail-score span { margin-top: 5px; color: #728096; font-size: 8px; font-weight: 750; text-transform: uppercase; }

.detail-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #cbd9e7;
  border-left: 4px solid var(--quality-blue);
  border-radius: 7px;
  background: #f4f8fd;
  color: #4f6178;
  font-size: 10px;
  line-height: 1.55;
}

.detail-callout[data-status="verified"] { border-left-color: #10a269; background: #f0faf6; }
.detail-callout[data-status="review"] { border-left-color: #e99a20; background: #fff9ef; }
.detail-callout[data-status="risk"] { border-left-color: #d73c35; background: #fff4f3; }
.detail-callout strong { display: block; margin-bottom: 3px; color: #2b3b51; font-size: 11px; }

.detail-record-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.detail-record-actions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #bfd0e2;
  border-radius: 6px;
  background: #fff;
  color: #3d526c;
  cursor: pointer;
  font: 750 9px/1 Inter, Arial, sans-serif;
}

.detail-record-actions button:hover { border-color: #8eabc8; background: #f3f8fe; }

.detail-section { margin-top: 25px; }

.detail-section-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.detail-section-heading h3 { margin: 0; color: #26354a; font-size: 13px; font-weight: 800; }
.detail-section-heading span { color: #7a8899; font-size: 9px; }

.field-audit-table {
  border: 1px solid #d3dee9;
  border-radius: 8px;
  overflow: hidden;
}

.field-audit-row {
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 92px minmax(0, 0.9fr) minmax(0, 0.9fr) 92px;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.field-audit-row + .field-audit-row { border-top: 1px solid #e0e7ef; }
.field-audit-row:nth-child(even) { background: #fbfcfe; }
.field-audit-row.field-audit-head { min-height: 38px; background: #f1f5f9; color: #64758b; font-size: 8px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }

.field-name { color: #394a60; font-size: 9px; font-weight: 800; }
.field-value { min-width: 0; color: #4f6178; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.field-value.is-empty { color: #9aa5b2; font-style: italic; }
.field-value.verified-value { color: #24364e; font-weight: 650; }

.field-status {
  justify-self: start;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.field-status[data-status="match"] { background: #def5e9; color: #08764b; }
.field-status[data-status="missing"] { background: #fff0d5; color: #955a04; }
.field-status[data-status="mismatch"] { background: #ffe2df; color: #ad302a; }
.field-status[data-status="unchecked"] { background: #e8eef5; color: #607087; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.evidence-source {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #d3dee9;
  border-radius: 7px;
  background: #fbfcfe;
}

.evidence-source > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.evidence-source strong { color: #2e4058; font-size: 10px; }
.evidence-source b { padding: 4px 6px; border-radius: 999px; background: #e9eff6; color: #61738a; font-size: 7px; text-transform: uppercase; }
.evidence-source[data-status="used"] b { background: #def5e9; color: #08764b; }
.evidence-source[data-status="failed"] b,
.evidence-source[data-status="unavailable"] b { background: #ffe4e1; color: #aa302a; }
.evidence-source p { margin: 7px 0 0; color: #6b7c91; font-size: 9px; line-height: 1.45; }

.issue-list { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.issue-list li { padding: 10px 12px; border: 1px solid #d5dfe9; border-radius: 7px; display: flex; gap: 9px; color: #53657c; font-size: 9px; line-height: 1.45; }
.issue-list li::before { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; flex: 0 0 7px; content: ""; background: #e99a20; }
.issue-list li.is-risk::before { background: #d73c35; }
.issue-list li.is-good::before { background: #10a269; }

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.integrity-card {
  min-height: 90px;
  padding: 12px;
  border: 1px solid #d4dee9;
  border-radius: 7px;
  background: #fbfcfe;
}

.integrity-card strong { display: block; color: #304159; font-size: 9px; }
.integrity-card span { display: block; margin-top: 7px; color: #6a7b90; font-size: 8px; line-height: 1.45; }

.raw-citation-details {
  border: 1px solid #d5dfe9;
  border-radius: 7px;
  background: #fbfcfe;
}

.raw-citation-details summary {
  padding: 11px 13px;
  color: #44566d;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.raw-citation-details pre {
  max-height: 220px;
  margin: 0;
  padding: 13px;
  border-top: 1px solid #d5dfe9;
  overflow: auto;
  color: #4d5e74;
  font: 500 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 1040px) {
  .audit-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audit-report-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .audit-trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .quality-hero { min-height: 220px; padding-top: 42px; }
  .quality-heading > p { font-size: 15px; }
  .audit-input-card { padding: 27px 24px 24px; }
  .audit-controls { grid-template-columns: 1fr 1fr; }
  .audit-control-copy { grid-column: 1 / -1; padding: 11px 0 0; border-top: 1px solid #d3dde8; border-left: 0; }
  .audit-summary-card { grid-template-columns: auto minmax(0, 1fr); }
  .audit-summary-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .audit-report-layout { min-height: 0; grid-template-columns: 1fr; }
  .audit-reference-list { border-right: 0; border-bottom: 1px solid #d5dfe9; }
  #quality-reference-list { max-height: 330px; display: grid; grid-template-columns: repeat(2, 1fr); }
  .reference-result:nth-child(even) { border-left: 1px solid #dbe3ec; }
  .audit-detail { padding: 24px 22px 30px; }
}

@media (max-width: 620px) {
  .quality-hero { min-height: 210px; padding: 35px 4px 30px; }
  .quality-heading h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .quality-heading > p { margin-top: 14px; font-size: 13px; }
  .audit-input-card { padding: 23px 16px 20px; border-radius: 12px; }
  .audit-input-heading { gap: 12px; }
  .audit-heading-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .audit-heading-icon svg { width: 24px; height: 24px; }
  .audit-input-heading h2 { font-size: 20px; }
  .audit-input-heading p { font-size: 11px; }
  .audit-mode-tabs { margin-top: 22px; gap: 18px; }
  #quality-input { min-height: 220px; padding: 15px; font-size: 12px; }
  .audit-textarea-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .audit-controls { grid-template-columns: 1fr; }
  .audit-control-copy { grid-column: auto; }
  .audit-actions { align-items: stretch; flex-direction: column-reverse; }
  .audit-actions > div { justify-content: center; }
  .audit-primary-button { width: 100%; }
  .audit-progress-copy { align-items: flex-start; flex-direction: column; gap: 3px; }
  .audit-trust-strip { margin-inline: 5px; padding: 12px; grid-template-columns: 1fr 1fr; }
  .audit-trust-strip > span { align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .audit-summary-card { padding: 22px 18px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .audit-summary-badges { justify-content: center; }
  .audit-summary-actions { grid-column: auto; width: 100%; justify-content: center; }
  .audit-summary-actions button { min-width: 0; flex: 1; }
  .audit-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-report-toolbar { align-items: stretch; flex-direction: column; }
  .audit-filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .audit-filters button { justify-content: space-between; }
  .audit-search { width: 100%; flex-basis: auto; }
  #quality-reference-list { grid-template-columns: 1fr; }
  .reference-result:nth-child(even) { border-left: 0; }
  .audit-detail { padding: 20px 15px 26px; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-score { justify-self: start; min-width: 70px; min-height: 65px; }
  .field-audit-row { grid-template-columns: 80px minmax(0, 1fr) 80px; gap: 8px; }
  .field-audit-row > .field-value:nth-child(3) { grid-column: 2 / -1; grid-row: 2; padding-top: 5px; border-top: 1px dashed #dbe3ec; }
  .field-audit-row.field-audit-head > :nth-child(3) { display: none; }
  .field-audit-row.field-audit-head { min-height: 38px; grid-template-columns: 80px minmax(0, 1fr) 80px; }
  .evidence-grid,
  .integrity-grid { grid-template-columns: 1fr; }
}
