/* ============================================================
   classify.css — styles for /classify (single signal) page
   ============================================================ */

/* ── Code block ───────────────────────────────────────── */
.ac-code-block {
  font-family: monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding: 12px 16px; background: var(--surface-hover); border-radius: 8px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
  justify-content: space-between;
}

/* ── KV rows ──────────────────────────────────────────── */
.clf-kv { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.clf-kv-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.clf-kv-key { color: var(--text-muted); min-width: 130px; }
.clf-kv-val { font-family: monospace; font-weight: 600; font-size: 12px; }

/* ── Code parts strip (horizontal chips) ──────────────── */
.clf-code-parts {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px;
}
.clf-code-part {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--surface-hover); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px; min-width: 44px;
}
.clf-code-part-key {
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
  font-size: 9px; font-weight: 600;
}
.clf-code-part-val {
  font-family: monospace; font-weight: 700; font-size: 12px; color: var(--text);
  white-space: nowrap;
}

/* ── Per-step confidence ──────────────────────────────── */
.step-conf-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.step-conf-name { font-size: 12px; color: var(--text-muted); min-width: 110px; }
.step-conf-pct  { font-size: 12px; font-weight: 600; min-width: 36px; text-align: right; }

/* ── Clarification box ────────────────────────────────── */
.clarify-box {
  border: 1px solid var(--conf-medium); border-radius: 8px;
  background: color-mix(in srgb, var(--conf-medium) 5%, var(--surface)); overflow: hidden;
}
.clarify-box-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: color-mix(in srgb, var(--conf-medium) 10%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--conf-medium) 20%, transparent);
}

/* ── Signal context interpretation ───────────────────── */
.ctx-interpretation {
  font-size: 13px; color: var(--text); line-height: 1.6;
  padding: 14px 20px 18px; border-top: 1px solid var(--border);
}
.ctx-interpretation p { margin: 0 0 10px; }
.ctx-interpretation p:last-child { margin-bottom: 0; }
.ctx-interpretation ul, .ctx-interpretation ol {
  margin: 4px 0 10px 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 3px;
}
.ctx-interpretation li { padding-left: 2px; }
.ctx-interpretation strong { color: var(--text); font-weight: 600; }
.ctx-interpretation h1, .ctx-interpretation h2, .ctx-interpretation h3 {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); margin: 14px 0 6px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ctx-interpretation h1:first-child,
.ctx-interpretation h2:first-child,
.ctx-interpretation h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.ctx-interpretation code {
  font-family: monospace; font-size: 12px; font-weight: 600;
  background: var(--surface-hover); padding: 1px 5px; border-radius: 3px;
}

/* ── Method tag (matched / rules) ─────────────────────── */
.clf-method-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.clf-method-match {
  background: color-mix(in srgb, var(--conf-high) 12%, transparent);
  color: #16a34a;
}
.clf-method-rules {
  background: var(--accent-light); color: var(--accent);
}
