.audiotrace-protection {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  margin-top: 18px;
  padding: 20px;
}

.audiotrace-protection__header,
.audiotrace-protection__actions,
.audiotrace-verification__top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.audiotrace-protection__header h2 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.02em;
  margin: 4px 0 7px;
}

.audiotrace-protection__header p,
.audiotrace-protection__copy,
.audiotrace-verification__copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}

.audiotrace-protection__eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audiotrace-protection__state {
  border: 1px solid #d6e5fb;
  border-radius: 999px;
  color: #2563b8;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  white-space: nowrap;
}

.audiotrace-protection__state.is-ready {
  background: #edf6ff;
  border-color: #c6ddfb;
}

.audiotrace-protection__state.is-muted {
  background: #f5f7fa;
  border-color: var(--line);
  color: #778496;
}

.audiotrace-protection__body {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .75fr);
  margin-top: 17px;
}

.audiotrace-protection__metric,
.audiotrace-verification {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 14px;
}

.audiotrace-protection__metric strong,
.audiotrace-verification strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}

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

.audiotrace-protection__metric-value {
  color: var(--blue);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.audiotrace-protection__metric-label {
  color: #7a8594;
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.audiotrace-protection__actions {
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 15px;
}

.audiotrace-protection__buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.audiotrace-protection__button {
  border: 1px solid #2e74de;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-height: 39px;
  padding: 0 13px;
}

.audiotrace-protection__button--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.audiotrace-protection__button--primary:hover {
  background: var(--navy-2);
}

.audiotrace-protection__button--secondary {
  background: #fff;
  color: #1760c8;
}

.audiotrace-protection__button--secondary:hover {
  background: #f0f6ff;
}

.audiotrace-protection__button:disabled {
  background: #edf1f5;
  border-color: #d7dde5;
  color: #97a2b1;
  cursor: not-allowed;
}

.audiotrace-protection__hint {
  color: #7a8594;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  max-width: 420px;
}

.audiotrace-protection__notice {
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 12px;
  padding: 10px 12px;
}

.audiotrace-protection__notice.is-success,
.audiotrace-verification.is-success {
  background: #effaf4;
  border: 1px solid #c6ead5;
  color: #176c43;
}

.audiotrace-protection__notice.is-error,
.audiotrace-verification.is-error {
  background: #fff5f3;
  border: 1px solid #f2d0c9;
  color: #a1493c;
}

.audiotrace-protection__notice.is-pending {
  background: #f5f8fd;
  border: 1px solid #d7e3f4;
  color: #365d91;
}

.audiotrace-verification {
  margin-top: 12px;
}

.audiotrace-verification__top {
  align-items: center;
}

.audiotrace-verification__badge {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

.audiotrace-verification__badge.is-success {
  background: #d9f3e3;
  color: #176c43;
}

.audiotrace-verification__badge.is-warning {
  background: #fff0d0;
  color: #8a5d06;
}

.audiotrace-verification__badge.is-muted {
  background: #edf0f4;
  color: #697689;
}

.audiotrace-verification__details {
  border-top: 1px solid #e6ebf1;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 11px;
}

.audiotrace-verification__details span {
  color: #7a8594;
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}

.audiotrace-verification__details strong {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Human-facing result bands used by the restored UI. */
.segment-block.human-confident,
.legend-dot.human-confident {
  background: #2e74de;
}

.segment-block.human-relative,
.legend-dot.human-relative {
  background: #83b2f3;
}

.segment-block.mixed-signal,
.legend-dot.mixed-signal {
  background: #aab2bf;
}

.segment-label.human-confident,
.detail-list strong.human-confident {
  color: #236bd0;
}

.segment-label.human-relative,
.detail-list strong.human-relative {
  color: #4d82c8;
}

.segment-label.mixed-signal,
.detail-list strong.mixed-signal {
  color: #798391;
}

@media (max-width: 840px) {
  .audiotrace-protection__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .audiotrace-protection {
    padding: 16px;
  }

  .audiotrace-protection__header,
  .audiotrace-protection__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .audiotrace-protection__state {
    order: -1;
  }

  .audiotrace-protection__buttons,
  .audiotrace-protection__button {
    width: 100%;
  }

  .audiotrace-protection__details {
    grid-template-columns: 1fr;
  }
}
