#checked-findings-dialog {
  width: min(760px, calc(100vw - 40px));
  height: min(850px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.checked-reader {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.checked-reader [hidden] {
  display: none !important;
}
.checked-reader .dialog-header {
  flex-shrink: 0;
}
.checked-reader .dialog-header h2 {
  font-size: 18px;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}
.checked-reader-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 0;
  flex-shrink: 0;
}
.checked-reader-toolbar .btn {
  min-height: 44px;
  font-size: 12px;
}
.checked-reader-state {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 20px;
  margin: 0;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.checked-reader-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 4px 22px 24px;
}
.checked-product {
  padding-top: 20px;
}
.checked-product + .checked-product {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.checked-product h3 {
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.checked-product-parent,
.checked-product-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.checked-product-review {
  min-height: 36px;
  height: 36px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  cursor: pointer;
}
.checked-product-match-notes {
  height: 100px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 0;
}
.checked-product-match-notes p + p {
  margin-top: 8px;
}
.checked-product[data-applicability="different"] .checked-product-review,
.checked-product[data-applicability="historical"] .checked-product-review,
.checked-product[data-applicability="unclear"] .checked-product-review,
.checked-product[data-final-review="changed"] .checked-product-review,
.checked-product[data-final-review="not_retained"] .checked-product-review {
  color: var(--amber);
}
.checked-product tr[data-final-review="changed"] {
  background: var(--amber-bg);
}
.checked-product tr[data-final-review="changed"] td:first-child {
  box-shadow: inset 3px 0 var(--amber);
}
.checked-product-note,
.checked-container-note,
.checked-source-notes {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.checked-product-note {
  margin-bottom: 12px;
}
.checked-product table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.checked-product th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.checked-product th:nth-child(2) {
  width: 29%;
}
.checked-product th:last-child {
  width: 44px;
}
.checked-product td {
  padding: 12px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.checked-product td:first-child {
  padding-right: 14px;
}
.checked-product td strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.checked-ingredient-role {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.checked-ingredient-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.checked-ingredient-amount {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.checked-citation {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--teal);
  border-radius: 7px;
}
.checked-citation svg {
  width: 17px;
  height: 17px;
}
.checked-citation:hover {
  background: var(--mint);
}
.checked-source-notes {
  margin-top: 20px;
}
.checked-source-notes summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.checked-source-notes p + p {
  margin-top: 10px;
}
.checked-empty {
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  #checked-findings-dialog {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .checked-reader .dialog-header {
    padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  }
  .checked-reader .dialog-header h2 {
    font-size: 16px;
  }
  .checked-reader-toolbar {
    padding-inline: 16px;
    gap: 8px;
  }
  .checked-reader-state {
    padding-inline: 16px;
    font-size: 11px;
  }
  .checked-reader-body {
    padding: 0 16px max(22px, env(safe-area-inset-bottom));
  }
  .checked-product h3 {
    font-size: 15px;
  }
  .checked-product td:first-child {
    padding-right: 9px;
  }
  .checked-product td strong {
    font-size: 12px;
  }
  .checked-product th:nth-child(2) {
    width: 29%;
  }
  .checked-product th:last-child {
    width: 38px;
  }
  .checked-citation {
    width: 38px;
  }
  .checked-ingredient-amount {
    font-size: 12px;
  }
  .checked-product-review {
    font-size: 11px;
  }
}
