/*
  Track A — Groq scoring UI styles.
  Owned by Track A only. Consume the tokens from style.css
  (--ink, --panel, --panel-border, --fg, --muted, --signal,
  --font-sans, --font-mono, --space-*, --radius) — don't redefine them.
  #sms-text's base look lives in style.css (shared contract); extend
  it here if needed rather than duplicating the rule.
*/

/* risk ramp — local to this section, not part of the shared contract */
#scorer-app {
  --risk-low: #4fd1c5;
  --risk-mid: #f0a23a;
  --risk-high: #e5484d;
}

#check-btn {
  margin-top: var(--space-2);
  padding: 0.6rem 1.1rem;
  background: var(--signal);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

#check-btn:hover {
  background: #6fe0d5;
}

#check-btn:disabled {
  background: var(--signal-dim);
  color: var(--muted);
  cursor: progress;
}

.score-error {
  margin-top: var(--space-2);
  color: var(--risk-high, #e5484d);
  font-size: 0.9375rem;
}

.score-result {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--panel-border);
}

.score-readout {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  min-width: 3.2ch;
}

.score-factors-bar {
  display: flex;
  height: 10px;
  margin-top: var(--space-2);
  background: var(--ink);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  overflow: hidden;
}

.score-factor-segment {
  height: 100%;
  min-width: 0;
}

.score-verdict {
  margin: var(--space-2) 0 0;
  font-weight: 500;
}

.score-factors-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.score-factor-item {
  padding: 0.5rem 0.625rem;
  background: var(--ink);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.score-factor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-factor-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.score-factor-name {
  flex: 1;
  font-weight: 500;
}

.score-factor-points {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.score-factor-detail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.score-factor-item.is-not-applicable {
  opacity: 0.55;
}

.score-factor-item.is-not-applicable .score-factor-points {
  font-style: italic;
}

.score-reasons {
  margin: var(--space-2) 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.score-reasons li {
  margin-bottom: 0.25rem;
}

.score-flags {
  margin: var(--space-1) 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.score-trace {
  margin: var(--space-1) 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
}
