.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.no-top-margin { margin-top: 0; }
.prompt-context, .library-filters { margin-top: 14px; }
.v2-prompt-checkbox { align-self: end; min-height: 42px; }

.selection-summary {
  color: var(--accent);
  border: 1px solid #2b3a6b;
  border-radius: 999px;
  padding: 7px 12px;
}

.v2-point-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.v2-point-card {
  border: 1px solid #2b3a6b;
  border-radius: 14px;
  background: color-mix(in oklab, var(--card), black 7%);
  overflow: hidden;
}

.v2-point-summary {
  display: grid;
  grid-template-columns: auto 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.v2-point-summary input[type="checkbox"] { width: 18px; height: 18px; }

.v2-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #2b3a6b;
  border-radius: 12px;
  color: var(--accent);
  background: #162047;
  font-weight: 700;
}

.v2-point-title { font-size: 17px; font-weight: 650; }
.v2-point-meta { color: var(--muted); font-size: 13px; margin-top: 5px; }

.v2-count {
  min-width: 76px;
  text-align: center;
  color: var(--muted);
}

.v2-point-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px 114px;
}

.v2-point-actions button, .v2-question-actions button { padding: 6px 10px; font-size: 13px; }

.v2-point-details {
  border-top: 1px solid #2b3a6b;
  padding: 16px;
  background: rgba(6, 10, 24, .26);
}

.v2-knowledge-block { margin-bottom: 18px; }
.v2-knowledge-block h4 { margin: 0 0 8px; color: var(--muted); }
.v2-knowledge-block p { margin: 0; line-height: 1.65; }
.v2-knowledge-block ul { margin: 8px 0 0; padding-left: 22px; }

.v2-question-list { display: flex; flex-direction: column; gap: 10px; }
.v2-question {
  border: 1px solid #2b3a6b;
  border-radius: 10px;
  padding: 12px;
  background: #0f1630;
}
.v2-question-head { display: flex; justify-content: space-between; gap: 12px; }
.v2-question-type { color: var(--accent); font-size: 12px; }
.v2-question-stem { margin: 8px 0; line-height: 1.6; }
.v2-question-answer { color: var(--good); font-size: 13px; }
.v2-question-explanation { color: var(--muted); font-size: 13px; margin-top: 6px; }
.v2-question-actions { display: flex; gap: 6px; }

.v2-empty {
  color: var(--muted);
  text-align: center;
  padding: 28px;
  border: 1px dashed #2b3a6b;
  border-radius: 12px;
}

.v2-exam {
  margin-top: 16px;
  border: 1px solid #2b3a6b;
  border-radius: 14px;
  padding: 18px;
  background: #0f1630;
}
.v2-exam-head { display: flex; justify-content: space-between; color: var(--muted); }
.v2-exam-point { color: var(--accent); margin-top: 20px; }
.v2-exam-instruction {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0 0;
}
.v2-exam-stem { font-size: 21px; line-height: 1.7; margin: 12px 0 18px; }
.v2-reading-actions { margin: -8px 0 12px; }
.v2-exam-reading {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: -4px 0 16px;
  padding: 10px 12px;
  border-left: 3px solid #2b3a6b;
  background: rgba(255, 255, 255, .025);
}
.v2-answer-area { display: flex; flex-direction: column; gap: 10px; }
.v2-answer-area > label {
  flex-direction: row;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #2b3a6b;
  border-radius: 10px;
  cursor: pointer;
}
.v2-answer-area input[type="text"] { width: min(100%, 520px); font-size: 17px; }
.v2-feedback { margin-top: 14px; line-height: 1.65; }
.v2-feedback.good, .v2-feedback.bad { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.v2-exam-result { margin-top: 16px; padding: 18px; border: 1px solid #2b3a6b; border-radius: 14px; }

.v2-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  color: var(--ink);
  background: #121a33;
  border: 1px solid #2b3a6b;
  border-radius: 16px;
  padding: 20px;
}
.v2-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.v2-dialog h3 { margin-top: 0; }
.v2-dialog label { margin-bottom: 12px; }
.dialog-actions { justify-content: flex-end; }

@media (max-width: 700px) {
  body { padding: 12px; }
  .v2-point-summary { grid-template-columns: auto 42px minmax(0, 1fr); }
  .v2-count { grid-column: 3; text-align: left; }
  .v2-point-actions { padding-left: 80px; }
}
