/* PRISM note: components on top of styles/notes.css. */

/* ---------- Worst-group readout ---------- */

.note .wg {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 2px 0 6px;
}

.note .wg .big {
  font-size: 40px;
  font-weight: 500;
}

.note .wg-from {
  color: var(--muted);
  font-size: 13.5px;
}

.note .check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.note .check input {
  accent-color: var(--link);
}

/* ---------- Stage 1 panel ---------- */

.note .llm {
  display: grid;
  gap: 18px;
}

.note .llm > div {
  display: grid;
  gap: 8px;
}

.note .llm-prompt p {
  padding: 10px 14px;
  border-left: 2px solid var(--rule);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.note .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note .chips button {
  border-radius: 999px;
}

.note .chips button .kind {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.note .chips button[aria-pressed='true'] .kind {
  color: inherit;
  opacity: 0.7;
}

.note .scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.note .scene {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
}

.note .scene .tag {
  color: var(--muted);
  font-size: 12px;
}

.note .scene p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.note .scene .c {
  font-weight: 600;
}

.note .scene .a {
  border-bottom: 1.5px dashed var(--muted);
}

/* ---------- Evidence ---------- */

.note .umap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note .umap figure {
  margin: 0;
}

.note .umap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ffffff;
}

.note .umap figcaption {
  margin: 6px 0 0;
  text-align: center;
}

.note tr.ref td {
  color: var(--muted);
}

.note tr.ref small {
  margin-left: 4px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .note .scenes,
  .note .umap {
    grid-template-columns: minmax(0, 1fr);
  }
}
