.button,
.op-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--fdx-control-height);
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--fdx-purple);
  border-radius: var(--fdx-radius-xs);
  color: #fff;
  background: var(--fdx-purple);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button:hover,
.op-filter button:hover {
  border-color: var(--fdx-purple-dark);
  background: var(--fdx-purple-dark);
  text-decoration: none;
}

.button-secondary {
  color: var(--fdx-purple);
  background: #fff;
}

.button-secondary:hover {
  color: #fff;
  background: var(--fdx-purple);
}

.button-danger {
  border-color: var(--fdx-red);
  background: var(--fdx-red);
}

.button-danger:hover {
  border-color: #8f1c13;
  background: #8f1c13;
}

.panel,
.op-card,
.metric,
.op-kpi,
.country-card,
.coverage-source-card,
.coverage-domain-card {
  background: var(--fdx-surface);
  border: 1px solid var(--fdx-line);
  border-radius: var(--fdx-radius-sm);
}

.panel,
.op-card {
  padding: var(--fdx-space-5);
}

.metric,
.op-kpi {
  padding: var(--fdx-space-5);
  border-top: 3px solid var(--fdx-purple);
}

.metric strong,
.op-kpi strong {
  display: block;
  margin-bottom: var(--fdx-space-2);
  color: var(--fdx-purple);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.metric span,
.op-kpi span {
  color: var(--fdx-muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--fdx-radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-neutral {
  background: #e6e6e6;
}

.badge-plain {
  background: var(--fdx-surface-muted);
}

.badge-blue {
  color: var(--fdx-blue);
  background: #e8f0fe;
}

.badge-violet {
  color: var(--fdx-purple);
  background: #f0e7f8;
}

.badge-green {
  color: var(--fdx-green);
  background: #e4f4eb;
}

.badge-red {
  color: var(--fdx-red);
  background: #fde8e6;
}

.badge-amber {
  color: var(--fdx-amber);
  background: #fff1cc;
}

.table-wrap,
.op-table-wrap {
  overflow: auto;
  border: 1px solid var(--fdx-line);
  border-radius: var(--fdx-radius-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--fdx-line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--fdx-ink);
  background: var(--fdx-surface-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbf9fd;
}

.notice,
.error-box {
  margin-bottom: var(--fdx-space-5);
  padding: 0.9rem 1rem;
  border-left: 4px solid;
  border-radius: 0;
}

.notice {
  color: #14532d;
  background: #eef9f2;
  border-color: var(--fdx-green);
}

.error-box {
  color: #7a271a;
  background: #fff1f0;
  border-color: var(--fdx-red);
}

.empty-state {
  padding: var(--fdx-space-8) var(--fdx-space-6);
  background: #fff;
  border: 1px solid var(--fdx-line);
  border-top: 4px solid var(--fdx-purple);
  text-align: center;
}

.endpoint-line,
.review-form-note,
.query-advanced,
.filter-advanced,
.evidence-item,
.review-source-form,
.review-link-form {
  border-radius: var(--fdx-radius-sm);
}

pre {
  min-height: 28rem;
  max-height: 55rem;
  margin: 0;
  padding: var(--fdx-space-4);
  overflow: auto;
  color: #e6edf3;
  background: #1e1e1e;
  border-radius: var(--fdx-radius-sm);
  font: 0.78rem/1.55 var(--fdx-font-mono);
}
