.prediction-panel { padding: 0; }
.prediction-types { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.prediction-type { min-height: 36px; border: 0; border-radius: 10px; padding: 8px 20px; background: var(--soft); color: var(--muted, #64748b); font-size: 14px; font-weight: 500; cursor: pointer; }
.prediction-type:hover { background: color-mix(in srgb, var(--soft) 80%, transparent); }
.prediction-type.active { color: #fff; background: var(--cyan, #0ea5e9); box-shadow: 0 4px 6px color-mix(in srgb, var(--cyan) 20%, transparent); }
.prediction-current { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #0ea5e926; border-radius: 9px; background: #0ea5e908; }
.prediction-current-content { min-width: 0; }
.prediction-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted, #64748b); font-size: 12px; }
.prediction-current strong { display: block; margin-top: 4px; color: var(--cyan, #0ea5e9); font-size: 22px; }
.prediction-current p { margin: 5px 0 0; color: var(--muted, #64748b); font-size: 12px; line-height: 1.6; }
.prediction-pending { flex-shrink: 0; border-radius: 5px; padding: 5px 8px; background: #8b5cf61a; color: #7c3aed; font-size: 12px; font-weight: 600; }
.prediction-evidence { margin-bottom: 18px; }
.prediction-evidence-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.prediction-evidence-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.prediction-analysis-link { min-height: 32px; border: 0; border-radius: 6px; padding: 5px 8px; background: var(--soft); color: var(--cyan, #0ea5e9); font-size: 12px; cursor: pointer; }
.prediction-analysis-link:disabled { opacity: .5; cursor: default; }
.prediction-analysis-link:focus-visible { outline: 2px solid var(--cyan, #0ea5e9); outline-offset: 2px; }
.prediction-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; }
.prediction-count { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 9px; padding: 10px 6px; border: 1px solid var(--line, #e2e8f0); border-radius: 7px; background: var(--soft); font-size: 12px; }
.prediction-count.selected { border-color: #0ea5e94d; background: #0ea5e90d; color: var(--cyan, #0ea5e9); }
.prediction-count strong { font-family: var(--number-font); font-size: 17px; }
.prediction-count small { font-family: inherit; font-size: 11px; font-weight: 400; }
.prediction-evidence-note { margin: 7px 0 0; color: var(--muted, #64748b); font-size: 11px; line-height: 1.6; }
.prediction-history-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.prediction-history-title h2 { margin: 0; font-size: 14px; font-weight: 600; }
.prediction-history-title > span { color: var(--muted, #64748b); font-size: 12px; }
.prediction-table { min-width: 510px; width: 100%; border-collapse: collapse; font-size: 14px; }
.prediction-table th { padding: 9px 10px; color: var(--muted, #64748b); background: color-mix(in srgb, var(--soft) 60%, transparent); font-weight: 600; }
.prediction-table th, .prediction-table td { text-align: center; white-space: nowrap; }
.prediction-table td { height: 45px; padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 20%, transparent); }

.prediction-table .prediction-hit { box-shadow: inset 3px 0 oklch(72% .17 160); }
.prediction-table .prediction-miss { box-shadow: inset 3px 0 oklch(57.7% .245 27.325 / .6); }
.prediction-table tr:hover td { background: oklch(68% .15 230 / .06); }
.prediction-issue, .prediction-equation { font-variant-numeric: tabular-nums; font-family: var(--number-font); }
.prediction-issue { font-weight: 600; }
.prediction-equation { color: var(--muted, #64748b); }
.prediction-equation strong { color: var(--ink, #1e293b); }
.prediction-tag { display: inline-block; border-radius: 999px; padding: 2px 8px; background: var(--cyan, #0ea5e9); color: #fff; font-size: 12px; font-weight: 600; }
.prediction-row-basis { display: block; margin-top: 4px; color: var(--muted, #64748b); font-size: 10px; font-weight: 400; white-space: normal; line-height: 1.4; }
.prediction-result { font-size: 21px; font-weight: 700; }
.prediction-result.hit { color: var(--green); }
.prediction-result.miss { color: oklch(57.7% .245 27.325); }
.prediction-table .prediction-empty { padding: 35px 14px; white-space: normal; color: var(--muted, #64748b); font-size: 13px; }
.prediction-method { margin-top: 14px; color: var(--muted, #64748b); font-size: 12px; line-height: 1.8; }
.prediction-method summary { cursor: pointer; color: var(--muted, #64748b); }
.prediction-method p { margin: 6px 0; }
@media (max-width: 600px) {
  .prediction-panel { padding: 0; }
  .prediction-type { min-height: 36px; padding: 8px 17px; font-size: 12px; }
  .prediction-current { gap: 8px; padding: 12px; }
  .prediction-current strong { font-size: 20px; }
  .prediction-pending { padding: 4px 6px; font-size: 11px; }
  .prediction-table { min-width: 0; table-layout: fixed; font-size: 11px; }
  .prediction-table th, .prediction-table td { padding-left: 2px; padding-right: 2px; }
  .prediction-table th { font-size: 10px; }
  .prediction-table th:nth-child(1) { width: 23%; }
  .prediction-table th:nth-child(2) { width: 24%; }
  .prediction-table th:nth-child(3) { width: 33%; }
  .prediction-table th:nth-child(4), .prediction-table th:nth-child(5) { width: 10%; }
  .prediction-tag { padding: 3px; font-size: 10px; white-space: normal; }
  .prediction-row-basis { font-size: 9px; }
  .prediction-counts { gap: 5px; }
  .prediction-count { padding: 8px 4px; }
}

.prediction-model { display: inline-block; border: 1px solid var(--line, #e2e8f0); border-radius: 4px; padding: 1px 5px; background: var(--soft, #f8fafc); color: var(--muted, #64748b); font-size: 10px; font-weight: 500; }

@media (max-width: 359px) {
  .prediction-table { font-size: 10px; }
  .prediction-result { font-size: 17px; }
  .prediction-eyebrow { font-size: 11px; }
  .prediction-current { flex-wrap: wrap; }
  .prediction-pending { margin-left: auto; }
}
