/* vle-quiz-student — QuizVerse inside the VLE, the student's side (28 Oct 2026): the quiz home by module, Results,
   My work, the preview, and the sitting's additions (the full-screen gate, warnings, numbering under subheadings).
   Built on the VLE's own tokens (vle.css :root) and the quiz accents (vle-quiz.css .qv-k-*). Phone first. */

.qs-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.qs-pane { min-height: 120px; }

/* ---- tiles (QuizVerse's meters) ---- */
.qs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.qs-tile { background: var(--vbg2); border: 1px solid var(--vhair); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.qs-tile b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.15; }
.qs-tile span { font-size: 12px; color: var(--vmuted); }
.qs-tile b.is-good { color: var(--vgreen); } .qs-tile b.is-ok { color: #F6C35A; } .qs-tile b.is-low { color: #FF8FB0; }

/* ---- what needs doing now ---- */
.qs-todo { border: 1px solid rgba(246, 195, 90, .35); background: rgba(246, 195, 90, .06); border-radius: 14px; padding: 12px; margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 8px; }
.qs-todo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px 4px 4px; }
.qs-todo-head svg { width: 16px; height: 16px; color: #F6C35A; flex: none; }
.qs-todo-head b { font-size: 14px; }
.qs-todo-head span { flex-basis: 100%; font-size: 12px; color: var(--vmuted); }
.qs-todo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mod cta" "title cta" "when cta"; gap: 3px 12px; align-items: center;
  text-decoration: none; color: inherit; background: var(--vbg2); border: 1px solid var(--vhair); border-left: 3px solid var(--qv-k); border-radius: 10px; padding: 10px 12px; }
.qs-todo-row:hover { border-color: rgba(var(--qv-k-rgb), .6); }
.qs-todo-mod { grid-area: mod; font-size: 11.5px; color: var(--vmuted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-todo-title { grid-area: title; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.qs-todo-title b { font-size: 14.5px; }
.qs-todo-title em { font-style: normal; font-size: 12px; color: var(--vmuted); }
.qs-todo-row .qs-when { grid-area: when; }
.qs-todo-row .qs-cta { grid-area: cta; }
.qs-when { font-size: 11.5px; color: var(--vmuted); }

/* ---- a module and its quizzes ---- */
.qs-mod { margin-bottom: 20px; }
.qs-mod-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.qs-mod-head h3 { font-size: 15.5px; font-weight: 800; margin: 0; min-width: 0; }
.qs-mod-head span { font-size: 12px; color: var(--vmuted); margin-left: auto; white-space: nowrap; }
.qs-none { font-size: 13px; color: var(--vmuted); margin: 0; padding: 10px 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qs-none svg { width: 14px; height: 14px; color: var(--vgreen); }
.qs-none a { color: var(--vgold); font-weight: 700; }
.qs-rows { display: flex; flex-direction: column; gap: 6px; }
.qs-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; width: 100%; text-align: left;
  font: inherit; color: inherit; text-decoration: none; background: var(--vbg2); border: 1px solid var(--vhair); border-left: 3px solid var(--qv-k);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.qs-row:hover { border-color: rgba(var(--qv-k-rgb), .55); }
.qs-row:focus-visible, .qs-todo-row:focus-visible, .qs-res:focus-visible { outline: 2px solid var(--qv-k); outline-offset: 2px; }
.qs-row-n { font-size: 12px; font-weight: 800; color: var(--qv-k, var(--vmuted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-row-n em, .qs-mark em { font-style: normal; font-weight: 600; color: var(--vdim); }
.qs-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qs-row-main b { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qs-row-main > span { font-size: 12px; color: var(--vmuted); }
.qs-cta { font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 2px; color: var(--qv-k, var(--vgold)); white-space: nowrap; }
.qs-cta svg { width: 14px; height: 14px; }

/* ---- badges and marks (QuizVerse's state badge and mark band) ---- */
.qs-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--vmuted); white-space: nowrap; justify-self: start; }
.qs-badge.is-gold { background: rgba(246, 195, 90, .16); color: #F6C35A; }
.qs-badge.is-info { background: rgba(var(--vaccent-rgb), .16); color: var(--vgold); }
.qs-badge.is-good { background: rgba(52, 211, 153, .15); color: var(--vgreen); }
.qs-badge.is-bad { background: rgba(255, 143, 176, .14); color: #FF8FB0; }
.qs-badge.is-warn { background: rgba(246, 195, 90, .14); color: #F6C35A; }
.qs-mark { font-weight: 900; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.qs-mark.is-none { font-weight: 600; font-size: 12px; color: var(--vmuted); }
.qs-mark.is-done { font-size: 12px; color: var(--vgreen); }
.qs-mark.is-good, .qs-pct.is-good { color: var(--vgreen); }
.qs-mark.is-ok, .qs-pct.is-ok { color: #F6C35A; }
.qs-mark.is-low, .qs-pct.is-low { color: #FF8FB0; }
.qs-pct { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- results ---- */
.qs-res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.qs-res { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--vbg2); border: 1px solid var(--vhair);
  border-top: 3px solid var(--qv-k); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.qs-res:hover { border-color: rgba(var(--qv-k-rgb), .55); }
.qs-res-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qs-res > b { font-size: 14.5px; line-height: 1.35; }
.qs-res-meta { font-size: 12px; color: var(--vmuted); }
.qs-res-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.qs-res-foot .qs-cta { margin-left: auto; }

/* ---- my work: one attempt read back ---- */
.qs-back { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.qs-doc { max-width: 820px; }
.qs-doc .qv-card-top { margin: 0 0 8px; }
.qs-doc-title { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.25; margin: 0 0 6px; }
.qs-doc-meta { font-size: 13px; color: var(--vmuted); margin: 0 0 12px; }
.qs-doc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.qs-q { background: var(--vbg2); border: 1px solid var(--vhair); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; user-select: text; -webkit-user-select: text; }
.qs-q-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: var(--vmuted); margin-bottom: 8px; }
.qs-q-text { font-size: 15px; line-height: 1.6; margin: 0 0 10px; white-space: pre-wrap; }
.qs-ans { display: flex; flex-direction: column; gap: 4px; }
.qs-ans-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vdim); }
.qs-ans-text { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.qs-ans .qv-rich-read b { font-size: inherit; text-transform: none; letter-spacing: normal; color: inherit; }
.qs-blank { margin: 0 0 6px; font-size: 13px; color: var(--vdim); font-style: italic; }
.qs-words { font-size: 11.5px; color: var(--vmuted); }
.qs-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qs-opts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--vhair); font-size: 14px; line-height: 1.5; }
.qs-opts li em { font-style: normal; font-size: 11.5px; color: var(--vmuted); margin-left: 4px; }
.qs-opts li.is-picked { border-color: var(--qv-k); background: rgba(var(--qv-k-rgb), .1); }
.qs-opts li.is-right { border-color: rgba(52, 211, 153, .55); background: rgba(52, 211, 153, .08); }
.qs-opts li.is-wrong { border-color: rgba(255, 143, 176, .55); background: rgba(255, 143, 176, .08); }

/* ---- notices ---- */
.qs-alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; border: 1px solid var(--vhair); background: var(--vbg2); }
.qs-alert > span { display: block; font-size: 12.5px; color: var(--vmuted); margin-top: 4px; }
.qs-alert.is-info { border-color: rgba(var(--vaccent-rgb), .35); background: rgba(var(--vaccent-rgb), .08); }
.qs-alert.is-danger { border-color: rgba(255, 143, 176, .45); background: rgba(255, 143, 176, .08); }
.qs-alert.is-danger b { color: #FFC2D3; }
.qs-alert.is-warn { border-color: rgba(246, 195, 90, .4); background: rgba(246, 195, 90, .08); }
.qs-credit { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vmuted); margin: -6px 0 14px; }
.qs-credit svg { width: 15px; height: 15px; color: var(--vgreen); flex: none; }
.qs-credit b { color: #fff; }

/* ---- the front page: the tick ---- */
.qs-tick { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--vtext); margin: 0 0 14px; cursor: pointer; flex-basis: 100%; }
.qs-tick input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--qv-k, var(--vgold)); }
.qs-tick.is-static { cursor: default; opacity: .8; }

/* ---- the sitting's additions ---- */
.qs-of { font-size: 12px; color: var(--vmuted); font-weight: 700; }
.qs-nav-sec { display: block; width: 56px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--qv-k, var(--vgold));
  text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; flex: none; }
.qs-warn { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; width: min(560px, calc(100% - 32px)); background: #2A1A12;
  border: 1px solid rgba(246, 195, 90, .55); color: #FFE2A8; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.qv-lock.is-gate { background: var(--vbg); }
.qv-lock.is-gate svg { color: var(--qv-k, var(--vgold)); }

/* ---- the preview ---- */
.qs-pv-flag { color: #F6C35A; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-pv-intro { background: var(--vbg2); border: 1px solid var(--vhair); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.qs-pv-intro .cw-facts { margin-bottom: 12px; }
.qs-pv-intro .qv-rules { background: transparent; border: 0; padding: 0; margin-bottom: 12px; }
.qs-pv-box { border: 1px dashed rgba(255,255,255,.2); border-radius: 10px; min-height: 110px; padding: 14px 16px; color: var(--vdim); font-size: 13.5px; }
.qv-opt.is-static { cursor: default; }
.qv-opt.is-static:hover { background: none; }

@media (max-width: 760px) {
  .qs-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n badge" "main main" "mark cta"; gap: 6px 10px; }
  .qs-row-n { grid-area: n; }
  .qs-row .qs-badge { grid-area: badge; justify-self: end; }
  .qs-row-main { grid-area: main; }
  .qs-row .qs-mark { grid-area: mark; }
  .qs-row .qs-cta { grid-area: cta; justify-self: end; }
}
@media (max-width: 640px) {
  .qs-tiles { gap: 8px; }
  .qs-tile { padding: 10px 11px; }
  .qs-tile b { font-size: 20px; }
  .qs-tile span { font-size: 11px; }
  .qs-res-list { grid-template-columns: minmax(0, 1fr); }
  .qs-mod-head span { margin-left: 0; }
}
