/* assess: "Check my work" and "Defend it" oral checks (app/routes/assess.py).
   Uses the tokens in app.css, so light and dark themes follow automatically. */

.as-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.as-grow { flex: 1 1 auto; }
.btn.disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- text alternative for page images */
.textview { margin-top: .6rem; }
.textview > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--maroon-ink); }
.textview-body { white-space: pre-wrap; font-size: .92rem; line-height: 1.5; background: var(--surface-2); border-radius: 8px;
  padding: .6rem .8rem; margin-top: .4rem; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Check my work */
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .9rem; }
.check-actions .notice { flex: 1 1 100%; }
#check-result:not(:empty) { margin-top: .8rem; }
.check-wait { padding: .6rem .2rem; }
.checkfb { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: .7rem .9rem; background: var(--surface); }
.checkfb + .checkfb { margin-top: .6rem; }
.checkfb.v-correct { border-left-color: var(--ok); }
.checkfb.v-on-track { border-left-color: var(--concept); }
.checkfb.v-issue { border-left-color: var(--warn); }
.checkfb-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.verdict { font-weight: 700; border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; background: var(--surface-2); color: var(--ink-2); }
.verdict.v-correct { background: var(--ok-bg); color: var(--ok); }
.verdict.v-on-track { background: var(--info-bg); color: var(--concept); }
.verdict.v-issue { background: var(--warn-bg); color: var(--warn); }
.checklist { list-style: none; padding: 0; margin: .6rem 0 .4rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .4rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.st-icon { font-weight: 800; text-align: center; border-radius: 50%; width: 1.35rem; height: 1.35rem; line-height: 1.35rem; font-size: .8rem; }
.st-ok .st-icon { background: var(--ok-bg); color: var(--ok); }
.st-issue .st-icon { background: var(--bad-bg); color: var(--bad); }
.st-missing .st-icon { background: var(--surface-2); color: var(--muted); }
.st-comment { color: var(--ink-2); }
.nextstep { background: var(--info-bg); border-radius: 8px; padding: .5rem .75rem; margin: .5rem 0; }
.nextstep p { margin: .2rem 0 0; }
.check-next-actions { margin-top: .5rem; gap: .4rem; }
.check-history { margin-top: .6rem; }
.check-history > summary { cursor: pointer; color: var(--muted); }
.check-history-list { margin-top: .5rem; }

/* ---------------------------------------------------------------- Defend it */
.defend-card .defend-list { margin-top: .6rem; }
.lab-defend { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.oral-wrap { max-width: 760px; }
.oral-card { min-height: 14rem; }
.oral-intro ul { padding-left: 1.2rem; }
.oral-intro li { margin: .25rem 0; }
.oral-purpose { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: .8rem 0; }
.oral-purpose label { display: block; padding: .3rem 0; cursor: pointer; }
.oral-voice { display: block; margin: .2rem 0 .9rem; }
.oral-progress { display: flex; gap: .3rem; }
.oral-progress span { width: 28px; height: 6px; border-radius: 4px; background: var(--line); }
.oral-progress span.done { background: var(--ok); }
.oral-progress span.cur { background: var(--maroon); }
.oral-question { font-size: 1.15rem; line-height: 1.5; margin: .7rem 0 .5rem; font-weight: 550; }
.oral-question p { margin: 0; }
.oral-tools { gap: .4rem; margin-bottom: .5rem; align-items: center; }
#mic.live { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.oral-q textarea { width: 100%; margin-bottom: .6rem; }
.oral-result .score { line-height: 1; }
.oral-summary { background: var(--surface-2); border-radius: 8px; padding: .55rem .8rem; margin: .8rem 0; }
.oral-summary p { margin: .2rem 0; }
.rubric { display: grid; gap: .7rem; margin: .8rem 0; }
.rubric-row .bar { margin: .25rem 0; }
.oral-transcript { margin-top: .6rem; }
.oral-transcript > summary { cursor: pointer; }
.tr-q { margin-top: .7rem; }
.tr-a { white-space: pre-wrap; border-left: 3px solid var(--line); padding: .15rem 0 .15rem .7rem; margin-top: .25rem; color: var(--ink-2); overflow-wrap: anywhere; }
pre.frozen { white-space: pre-wrap; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem;
  font-size: .85rem; max-height: 22rem; overflow: auto; }

/* ---------------------------------------------------------------- instructor review */
.pill.flag { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
tr.flagrow td { background: color-mix(in srgb, var(--warn-bg) 60%, transparent); }
tr.flagrow td a { color: var(--maroon-ink); }
.oral-kpis { margin-top: .4rem; }
.oral-score { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.oral-score legend { margin-bottom: .3rem; width: 100%; }
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .oral-question { font-size: 1.05rem; }
  .oral-progress span { width: 18px; }
  .check-actions .as-grow { flex-basis: 100%; }
}
