.trust-page {
  padding: 28px 0 48px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--muted);
}
.trust-intro {
  max-width: 48rem;
  margin: 32px 0 24px;
}
.trust-intro h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: var(--track);
}
.trust-title-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--accent);
}
.trust-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-form,
.evidence-summary,
.evidence-panel,
.manual-sources,
.checklist,
.tool-notes details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.trust-form {
  padding: 22px;
}
.trust-form > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.url-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.url-input-wrap {
  position: relative;
  min-width: 0;
}
.url-control input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-h);
  padding: 10px 12px 10px 42px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--strong);
  border-radius: var(--r-control);
  font: 16px/1.5 var(--font);
}
.url-input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.trust-submit,
.report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.trust-submit svg,
.report-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.trust-page .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgb(23 32 42 / 0.14);
}
.trust-page .btn:focus-visible {
  box-shadow: var(--focus-ring);
}
.url-control input:hover {
  border-color: var(--accent);
}
.url-control input:focus-visible {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.disclosure,
.form-error {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.disclosure {
  color: var(--muted);
}
.form-error {
  color: var(--warning);
  font-weight: 600;
}
.trust-status {
  margin: 16px 0;
  padding: 12px 14px;
  color: var(--fg);
  background: var(--accent-subtle);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-control) var(--r-control) 0;
  font-size: 14px;
}
.trust-results {
  margin-top: 24px;
}
.result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.result-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.identity-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.identity-details div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
}
.identity-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.identity-details dd {
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.evidence-summary {
  margin: 0 0 16px;
  padding: 20px;
}
.summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.summary-heading h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.summary-finding,
.summary-action {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.summary-action {
  color: var(--muted);
}
.summary-counts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--bg);
}
.summary-counts div {
  min-width: 0;
  padding: 9px;
  border-inline-end: 1px solid var(--border);
}
.summary-counts div:last-child {
  border-inline-end: 0;
}
.summary-counts dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.summary-counts dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.evidence-panel {
  min-width: 0;
  padding: 20px;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading h2,
.manual-sources h2,
.checklist h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.panel-heading h2,
.manual-sources h2,
.checklist h2 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.panel-heading h2 svg,
.manual-sources h2 svg,
.checklist h2 svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--accent);
}
.state-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
}
.state-pill.is-warning {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
  background: #fff5eb;
}
.state-pill.is-checking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-subtle);
}
.state-pill.is-checking::before {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  content: "";
}
.panel-note,
.manual-sources p,
.checklist p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.finding-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.finding {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.finding:first-child {
  border-top: 0;
  padding-top: 0;
}
.finding__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.finding h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}
.finding__severity {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.finding__severity.warning {
  color: var(--warning);
}
.finding > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.finding details {
  margin-top: 7px;
}
.finding summary,
.tool-notes summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.finding details p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.manual-sources,
.checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.92fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
  padding: 20px;
}
.source-links {
  display: grid;
  gap: 8px;
}
.source-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.source-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.source-link small {
  grid-column: 1;
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.source-link .trust-external-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.source-link:hover .trust-external-icon {
  color: var(--accent);
}
.checklist-items {
  display: grid;
  gap: 10px;
}
.checklist-items label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--fg);
  font-size: 14px;
}
.checklist-items input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tool-notes {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}
.tool-notes details {
  padding: 0 18px;
}
.tool-notes summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--fg);
  font-size: 14px;
}
.tool-notes details > div {
  padding: 0 0 16px;
}
.tool-notes p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .summary-counts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .summary-counts div:nth-child(4) {
    border-inline-end: 0;
  }
  .summary-counts div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 720px) {
  .identity-details,
  .evidence-grid,
  .manual-sources,
  .checklist {
    grid-template-columns: 1fr;
  }
  .manual-sources,
  .checklist {
    gap: 16px;
  }
  .summary-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .summary-counts div {
    border-inline-end: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .summary-counts div:nth-child(3n) {
    border-inline-end: 0;
  }
  .summary-counts div:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}
@media (max-width: 520px) {
  .trust-page {
    padding-top: 20px;
  }
  .trust-form,
  .evidence-summary,
  .evidence-panel,
  .manual-sources,
  .checklist {
    padding: 16px;
  }
  .url-control {
    grid-template-columns: 1fr;
  }
  .url-control .btn {
    width: 100%;
  }
  .result-heading,
  .summary-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .summary-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-counts div:nth-child(3n) {
    border-inline-end: 1px solid var(--border);
  }
  .summary-counts div:nth-child(2n) {
    border-inline-end: 0;
  }
  .summary-counts div:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trust-page *,
  .trust-page *::before,
  .trust-page *::after {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes trust-result-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes trust-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .trust-page .btn {
    transition:
      transform 140ms var(--ease),
      background-color 140ms var(--ease),
      border-color 140ms var(--ease),
      box-shadow 140ms var(--ease);
  }
  .trust-results.is-entering {
    animation: trust-result-in 220ms var(--ease) both;
  }
  .state-pill.is-checking::before {
    animation: trust-spin 700ms linear infinite;
  }
}

.evidence-data {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  max-height: 16rem;
  overflow: auto;
}
