/* The mistake doctor panel (after a wrong answer on /gate, in mock review,
   reviews and the mistake notebook) and the "common mistakes" card on
   /progress. Theme tokens only, so light and dark both come from style.css. */

.doc-panel {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  display: grid;
  gap: 8px;
  min-width: 0;
}
.doc-panel.doc-unsure { border-left-color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.doc-panel p { margin: 0; }
.doc-eyebrow { font: 700 11.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.doc-unsure .doc-eyebrow { color: var(--muted); }
.doc-verdict { font: 600 16px/1.4 var(--display); color: var(--text); }
.doc-explain { line-height: 1.55; }
.doc-actions { gap: 8px; flex-wrap: wrap; }

.doc-odds summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.doc-odds ul { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 6px; }
.doc-odds li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 3.2em; gap: 10px; align-items: center; font-size: 13.5px; }
.doc-odds li b { font: 600 12.5px var(--mono); text-align: right; }
.doc-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.doc-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.doc-ai { min-width: 0; }
.doc-ai:empty { display: none; }
.doc-ai-text { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); line-height: 1.55; }

.doc-tag { margin-left: 8px; padding: 1px 8px; border-radius: 99px; font: 600 11px/1.6 var(--mono); background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

.doc-common .lp-list li { align-items: center; }

@media (max-width: 560px) {
  .doc-panel { padding: 12px; }
  .doc-odds li { grid-template-columns: minmax(0, 1fr) 3.2em; }
  .doc-odds li .doc-bar { display: none; }
}
