.text-button,
.button {
  border: 0;
  font-weight: 750;
}

.text-button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.text-button:hover {
  color: var(--accent-dark);
}

.field-hint,
.field-footer,
.status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.field-hint {
  margin: 10px 0 0;
}

.field-hint code,
.footer code {
  padding: 2px 4px;
  color: #56665f;
  background: #edf1ed;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.field-footer {
  margin-top: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 17px;
}

.criteria-fields {
  margin-top: 17px;
}

.action-row {
  justify-content: end;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 11px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #fffaf5;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(221, 93, 55, 0.2);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.secondary-button {
  color: #53625d;
  background: #edf1ed;
}

.secondary-button:hover {
  background: #e1e9e3;
}

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 250, 245, 0.42);
  border-top-color: #fffaf5;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.status {
  min-height: 18px;
  margin: 12px 0 0;
}

.status[data-state="error"] {
  color: #bd442d;
}

.status[data-state="success"] {
  color: var(--teal);
}

.empty-state {
  display: grid;
  min-height: 465px;
  place-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cdd9d1;
  border-radius: 15px;
}

.empty-state p {
  max-width: 220px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
}

.empty-icon {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 48px;
  line-height: 1;
}

.answer-list {
  display: grid;
  gap: 13px;
}

.answer-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e3e9e4;
  border-radius: 14px;
}

.answer-card-header,
.metric-line,
.probability-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.answer-card-header {
  margin-bottom: 15px;
}

.answer-id {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.type-chip {
  padding: 4px 7px;
  color: var(--teal);
  background: var(--mint);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.metric-line {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.metric-value {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.metric-value.accent {
  color: var(--accent-dark);
}

.probability-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.probability-label {
  margin-bottom: 4px;
  color: #66756f;
  font-size: 10px;
}

.probability-label strong {
  color: var(--ink);
  font-weight: 750;
}

.probability-track {
  height: 5px;
  overflow: hidden;
  background: #e6ede8;
  border-radius: 999px;
}

.probability-fill {
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.usage-strip {
  margin-top: 17px;
  padding: 12px 13px;
  color: var(--muted);
  background: #f0f5f1;
  border-radius: 10px;
  font-size: 10px;
}

.usage-strip strong {
  color: var(--ink);
}

.raw-details {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.raw-details summary {
  cursor: pointer;
  font-weight: 700;
}

.raw-details pre {
  max-height: 300px;
  margin: 12px 0 0;
  padding: 13px;
  overflow: auto;
  color: #4f625b;
  background: #edf2ee;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.footer {
  padding: 22px 0 30px;
  color: #84908a;
  font-size: 10px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
