.spf-counter-page .decoder-heading > div:first-child {
  max-width: 790px;
}

.live-state {
  color: #24527b;
  background: #e8f3fc;
  border-color: #b6d2e8;
}

.live-state span {
  background: #2873b8;
}

.spf-workbench .decoder-input,
.spf-workbench .decoder-output {
  min-height: 470px;
}

#spf-counter-form {
  display: grid;
  gap: 10px;
}

#spf-counter-form label {
  color: #34443f;
  font-size: 12px;
  font-weight: 800;
}

#spf-domain,
.spf-counter-actions button,
.full-scan-action {
  border-radius: 6px;
  font: inherit;
  letter-spacing: 0;
}

#spf-domain {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bac8c3;
  outline: 0;
}

#spf-domain:focus {
  border-color: #238b7e;
  box-shadow: 0 0 0 3px rgba(35, 139, 126, 0.13);
}

.spf-counter-actions {
  min-height: 46px;
  margin-top: 5px;
}

.spf-counter-actions button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #087e73;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.spf-counter-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.spf-metrics {
  margin: 20px 0 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d8e1de;
  border-bottom: 1px solid #d8e1de;
}

.spf-metrics > div {
  min-width: 0;
  padding: 14px 12px;
}

.spf-metrics > div + div {
  border-left: 1px solid #d8e1de;
}

.spf-metrics dt {
  color: #65746f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.spf-metrics dd {
  margin: 6px 0 0;
  color: #172c27;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.budget-track {
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #e3e9e7;
  border-radius: 5px;
}

.budget-track span {
  width: 0;
  height: 100%;
  display: block;
  background: #218c5b;
  transition: width 180ms ease;
}

.budget-track span[data-tone="temporary"] {
  background: #c28716;
}

.budget-track span[data-tone="permanent"] {
  background: #bd3d3d;
}

.budget-track span[data-tone="unknown"] {
  background: #71817c;
}

.full-scan-action {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #2873b8;
  border: 1px solid #2873b8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.full-scan-action:hover {
  background: #215f96;
}

.evidence-boundary {
  margin: 10px 0 0;
  color: #667570;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .spf-metrics {
    grid-template-columns: 1fr;
  }

  .spf-metrics > div + div {
    border-top: 1px solid #d8e1de;
    border-left: 0;
  }

  .full-scan-action {
    width: 100%;
  }
}
