/* alevel-study.css — see docs/ALEVEL.md §5.2, §6.2, §6.4, §3.6. Brand tokens from app.css only; everything works at
   360 px. Prefixes: .alp-* practice (#/alevel/cs/practice: hub, sessions, summary — on top of the SAT practice's
   .prc-* from report.css and study.css) · .ale-* exam-style questions (#/alevel/cs/exam) · .alm-* mock papers (the
   hub #/alevel/cs/mocks on top of plan.css .tst-*, and the full-screen paper runner, marking, result and review of
   #/alevel/cs/mocks/:id). The quick question card (.alq-*) and the exam-style question (.alx-*) themselves are in
   alevel-lesson.css; the shell, course map and progress parts (.al-*) in alevel.css. */

/* `hidden` must win over component display rules. */
.alp [hidden], .alm-run [hidden] { display: none !important; }

/* =========================================================================
   Practice and exam hubs: smart practice, review link, topic picker
   ========================================================================= */
.alp .alp-smart-actions { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
@media (max-width: 560px) {
  .alp .alp-smart-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alp .alp-smart-actions .btn-primary { grid-column: 1 / -1; }
}
.alp-review-none { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; }
.alp-review-none .icon { flex: none; margin-top: 2px; }
.alp-picker { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.alp-picker .al-level-head p { margin: 2px 0 0; }
.alp-paper-head { min-width: 0; }
.alp-paper-head h2 { overflow-wrap: anywhere; }
.alp-paper-head p { margin: 2px 0 0; }
.alp-topic-body { gap: 0; }

/* a subtopic row: the SAT skill row as a link (.prc-skill), with the mastery chip beside the counts */
a.alp-sub { text-decoration: none; color: inherit; }
a.alp-sub:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.alp-sub .prc-skill-name .al-sub-id { margin-right: 2px; }
.alp-sub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.alp-sub.is-empty { cursor: default; background: var(--surface-2); grid-template-columns: minmax(0, 1fr) 92px; }
.alp-sub.is-empty .prc-skill-name { color: var(--muted); }
@media (max-width: 380px) { .alp-sub.is-empty { grid-template-columns: minmax(0, 1fr) 62px; } }

/* accuracy bars: red under 50 %, amber under 75 %, green from 75 % (the percentage is always written beside) */
.alp-acc > span { background: var(--line-strong); }
.alp-acc.is-low > span { background: var(--bad); }
.alp-acc.is-mid > span { background: var(--warn); }
.alp-acc.is-high > span { background: var(--ok); }

/* =========================================================================
   Sessions (practice and exam): bar, reason line, question, summary
   ========================================================================= */
.alp-session { max-width: 52rem; margin: 0 auto; }
.alp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.alp-bar .prc-back { margin-right: auto; }
.alp-tally { white-space: nowrap; }
.alp-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.alp-learn { padding: 0 10px; }
@media (max-width: 520px) {
  .alp-bar .prc-back { order: 1; }
  .alp-bar-actions { order: 2; margin-left: auto; }
  .alp-tally { order: 3; flex: 1 1 100%; text-align: center; }
}
.alp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.alp-reason {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere;
}
.alp-host { min-height: 160px; }
.alp-host .alq { margin-bottom: 0; }

/* summary */
.alp-summary { max-width: 52rem; margin: 0 auto; }
.alp-kpis { margin-bottom: 16px; }
.alp-sum { margin-bottom: 16px; }
.alp-sum-list { list-style: none; margin: 0; padding: 0; }
.alp-sum-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.alp-sum-row:last-child { border-bottom: 0; }
.alp-sum-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.alp-sum-name { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.alp-sum-main .progress { height: 6px; max-width: 260px; }
@media (max-width: 560px) { .alp-sum-row { padding: 12px 14px; } }
.alp-sum-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 480px) { .alp-sum-actions .btn { flex: 1 1 100%; } }

/* =========================================================================
   Exam-style questions: navigator, question, review notes, pager
   ========================================================================= */
.ale-how { margin-bottom: 20px; }
.ale-session { max-width: 56rem; }
.ale-nav { margin: 0 0 14px; }
.ale-cells, .alm-cells {
  list-style: none; margin: 0; padding: 2px; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ale-cell, .alm-cell {
  position: relative; min-width: 46px; min-height: 46px; padding: 4px 6px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card);
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
}
.ale-cell:hover:not(:disabled), .alm-cell:hover:not(:disabled) { border-color: var(--brand); }
.ale-cell:disabled, .alm-cell:disabled { cursor: not-allowed; opacity: .55; }
.ale-cell-num, .alm-cell-num { font-size: 15px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ale-cell-sub, .alm-cell-sub { min-height: 14px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ale-cell.is-part, .alm-cell.is-part { border-color: var(--warn); background: var(--warn-soft); }
.ale-cell.is-done, .alm-cell.is-done { border-color: var(--ok-line); background: var(--ok-soft); }
.ale-cell.is-done .ale-cell-sub, .alm-cell.is-done .alm-cell-sub { color: var(--ok-text); }
.ale-cell.is-current, .alm-cell.is-current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ale-host { min-height: 200px; }
.ale-notes { display: flex; flex-direction: column; gap: 6px; }
.ale-notes:empty { display: none; }
.ale-note { margin: 10px 0 0; border: 1px solid var(--line); background: var(--card); }
.ale-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; }
@media (max-width: 480px) { .ale-pager .btn { flex: 1 1 auto; } }

/* =========================================================================
   Mock papers hub
   ========================================================================= */
.alm-running { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.alm-running .alm-running-link { margin-bottom: 0; }
.alm-paper { margin-bottom: 24px; }
.alm-paper-head { margin-bottom: 12px; }
.alm-paper-head .section-title { margin: 0; overflow-wrap: anywhere; }
.alm-paper-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; }
.alm-contrib { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.alm-paper-head .alm-contrib { margin-top: 8px; background: var(--card); border: 1px solid var(--line); }
.alm-contrib strong { color: var(--ink); }
.alm-atts .alm-att { display: flex; align-items: center; gap: 4px; }
.alm-att-link { flex: 1 1 auto; min-width: 0; }
.alm-att-del { flex: none; color: var(--muted); }
.alm-att-del:hover:not(:disabled) { color: var(--bad); background: var(--bad-soft); }
.alm-missing { margin: -8px 0 20px; }
.alm-start .tst-start-list { padding-left: 18px; }

/* =========================================================================
   Paper runner (bare layout): header, navigator, paper, footer, insert
   ========================================================================= */
.alm-run { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.alm-loading, .alm-msg { align-items: center; justify-content: center; padding: 24px 16px; }
.alm-msg-card { width: 100%; max-width: 520px; }
.alm-msg-card .section-title { margin: 0; }
.alm-msg-card .error-box { box-shadow: none; }

.alm-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--card); border-bottom: 1px solid var(--line);
}
.alm-head-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.alm-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.alm-sub { font-size: 12.5px; color: var(--muted); }
.alm-head-clock { display: flex; align-items: center; gap: 6px; }
.alm-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (min-width: 700px) and (min-height: 560px) {
  .alm-head { position: sticky; top: 0; z-index: 20; }
}
@media (max-width: 560px) {
  .alm-head { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .alm-head-clock { order: 3; flex: 1 1 100%; }
  .alm-head-tools { margin-left: auto; }
}

/* the clock: amber in the last 10 minutes, red with the overtime after */
.alm-clock {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); white-space: nowrap;
}
.alm-clock-time { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.alm-clock-label { font-size: 12px; color: var(--muted); }
.alm-clock.is-warn { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-text-strong); }
.alm-clock.is-warn .alm-clock-label { color: var(--warn-text-strong); }
.alm-clock.is-over { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad-text-strong); }
.alm-clock.is-over .alm-clock-label { color: var(--bad-text-strong); }
.alm-clock.is-hidden .alm-clock-time { font-size: 13px; font-weight: 600; color: var(--muted); }
.alm-clock.is-paused { opacity: .7; }
.alm-total { display: inline-flex; align-items: baseline; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-text-strong); white-space: nowrap; }
.alm-total-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.alm-total strong { font-size: 17px; font-variant-numeric: tabular-nums; }

/* navigator */
.alm-nav { padding: 8px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.alm-cells { max-width: 1180px; margin: 0 auto; }
.alm-cell.is-word { padding: 4px 12px; }
.alm-cell-word { font-size: 13px; font-weight: 700; }
.alm-cell.is-empty { border-style: dashed; }
.alm-cell.is-paper { border-style: solid; }

/* body: the paper column, and the insert beside it on wide screens */
.alm-body { flex: 1 1 auto; display: flex; align-items: flex-start; gap: 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px; }
.alm-col { flex: 1 1 auto; min-width: 0; max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.alm-run.has-insert .alm-col { margin: 0; }
@media (max-width: 560px) { .alm-body { padding: 12px; } }
.alm-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.alm-notice-main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.alm-notice-main > span { flex: 1 1 240px; min-width: 0; }
.alm-notice .alm-notice-main { padding-top: 5px; }
.alm-notice-x { flex: none; width: 30px; min-height: 30px; color: inherit; }
.alm-screen { min-width: 0; }
.alm-screen-title { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.alm-screen-title:focus { outline: none; }

/* the question, as a printed paper */
.alm-run .alx { padding: 22px 26px 26px; border-radius: 6px; font-size: 16.5px; }
.alm-run .alx-qnum { min-width: 36px; height: 36px; font-size: 17px; }
@media (max-width: 560px) { .alm-run .alx { padding: 14px 14px 18px; } }

/* paused: the paper is hidden */
.alm-paused { text-align: center; }
.alm-paused .card-body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 18px; }
.alm-paused h2 { margin: 0; font-size: 20px; }
.alm-paused p { margin: 0; max-width: 440px; }
.alm-paused-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }

/* instructions, check your work, totals */
.alm-intro .card-body, .alm-check .card-body { gap: 14px; }
.alm-intro p { margin: 0; }
.alm-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; }
.alm-facts li { display: inline-flex; align-items: center; gap: 6px; }
.alm-facts .icon { color: var(--brand); }
.alm-instructions { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.alm-instructions .rich p { margin: 0 0 .6em; }
.alm-instructions .rich p:last-child { margin-bottom: 0; }
.alm-notes { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.alm-check-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.alm-check-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.alm-check-row:last-child { border-bottom: 0; }
.alm-check-num { flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.alm-check-text { flex: 1 1 auto; min-width: 0; font-size: 14.5px; }
.alm-check-row.is-done .alm-check-text { color: var(--ok-text); font-weight: 600; }
.alm-check-row.is-part .alm-check-text { color: var(--warn-text-strong); font-weight: 600; }
.alm-check-row.is-empty .alm-check-text { color: var(--bad-text-strong); font-weight: 600; }
.alm-big { margin: 0; font-size: 18px; }
.alm-big strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* footer: Back · where you are + save state · Next */
.alm-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line);
}
@media (min-width: 700px) and (min-height: 560px) {
  .alm-foot { position: sticky; bottom: 0; z-index: 20; }
}
.alm-foot-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; }
.alm-where { font-size: 14px; font-weight: 700; }
.alm-save { font-size: 12px; color: var(--muted); }
.alm-save.is-offline, .alm-save.is-error { color: var(--bad-text-strong); font-weight: 600; }
.alm-save.is-saved::before { content: "✓ "; color: var(--ok); }
@media (max-width: 480px) {
  .alm-foot { padding: 8px 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .alm-foot .btn { padding: 0 12px; }
  /* only the chevron shows; the word stays for screen readers (the chevron is aria-hidden, so it is the button's name) */
  .alm-prev span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
}
.alm-run.is-paused .alm-nav, .alm-run.is-paused .alm-foot { opacity: .6; }

/* the insert (Paper 2): beside the paper on wide screens, a full-screen sheet on phones and tablets (then a modal
   dialog: mock.js makes the rest of the runner inert) */
.alm-insert { flex: 0 0 400px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.alm-insert-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.alm-insert-title { margin: 0; font-size: 16px; }
.alm-insert-title:focus { outline: none; }
.alm-insert-head .btn-icon { color: var(--muted); }
.alm-run .alm-insert-body.alx { padding: 14px 16px; border: 0; border-radius: 0; box-shadow: none; font-size: 15px; overflow-x: auto; }
@media (min-width: 1100px) {
  .alm-insert { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
}
@media (max-width: 1099.98px) {
  .alm-insert { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; border-radius: 0; border: 0; overflow-y: auto; }
  .alm-insert-head { position: sticky; top: 0; z-index: 1; background: var(--card); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
}

/* Paper 4: run a code part */
.alm-runbox { margin: 10px 0 0 var(--alx-indent, 0px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.alm-runbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.alm-runbox-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.alm-runbox-btns { display: inline-flex; gap: 6px; }
.alm-stdin-label { display: block; margin: 8px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.alm-stdin { min-height: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.alm-run-status { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.alm-run-status:empty { display: none; }
.alm-run-out {
  margin: 6px 0 0; max-height: 260px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.alm-run-err { color: var(--bad); font-weight: 600; }
.alm-run-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.alm-run-files { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

/* Paper 4: a question's text files (§3.6), and the files a run wrote */
.alm-files { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.alm-files-title, .alm-run-files-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; }
.alm-files-title .icon { color: var(--brand); }
.alm-file { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.alm-file > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 40px; padding: 6px 12px; background: var(--bg);
  cursor: pointer; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere;
}
.alm-file > summary { list-style: none; }
.alm-file > summary::-webkit-details-marker { display: none; }
.alm-file > summary::before {
  content: ""; flex: none; margin-right: 4px; border: 5px solid transparent; border-right-width: 0;
  border-left-color: currentColor; transition: transform .12s;
}
.alm-file[open] > summary::before { transform: rotate(90deg); }
.alm-file > summary .muted { font-weight: 500; }
.alm-file[open] > summary { border-bottom: 1px solid var(--line); }
.alm-file-text {
  margin: 0; padding: 8px 12px; max-height: 240px; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.5; white-space: pre;
}

/* "Compare versions": an answer changed on two copies of the attempt */
.alm-versions { display: flex; flex-direction: column; gap: 16px; }
.alm-versions > p { margin: 0; }
.alm-version { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.alm-version-title { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.alm-version-title:focus { outline: none; }
.alm-version-label { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.alm-version-text {
  margin: 0; max-height: 220px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px;
  line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.alm-version-actions { flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* =========================================================================
   Result and review
   ========================================================================= */
.alm-result .card-header { flex-wrap: wrap; }
.alm-result .alp-sum-actions { margin-top: 0; }
.alm-score .card-body { text-align: center; padding: 24px 18px; }
.alm-score-big { margin: 0; font-size: 22px; color: var(--muted); }
.alm-score-big strong { font-size: 52px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.alm-score-pct { margin: 2px 0 6px; font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.alm-score p:last-child { margin-bottom: 0; }
.alm-cmp-line { margin: 0; font-size: 14.5px; }
.alm-ladder { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.alm-ladder-step { flex: 1 1 74px; display: flex; flex-direction: column; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 12px; line-height: 1.35; }
.alm-ladder-step strong { font-size: 16px; }
.alm-ladder-step.is-yours { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.alm-ladder-step.is-yours strong { color: var(--brand-dark); }
.alm-q-subs { font-size: 13px; color: var(--muted); }
.alm-q-table tbody th, .alm-total-table tbody th { font-size: 14px; }
.alm-weak { list-style: none; margin: 0; padding: 0; }
.alm-weak-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.alm-weak-row:last-child { border-bottom: 0; }
.alm-weak-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alm-weak-main strong { font-size: 14.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .alm-weak-row { padding: 12px 14px; } .alm-score-big strong { font-size: 44px; } }

/* =========================================================================
   Print: the paper (or the result) only
   ========================================================================= */
@media print {
  .alm-head-tools, .alm-head-clock, .alm-nav, .alm-foot, .alm-runbox, .alp-bar, .ale-nav, .ale-pager, .alp-sum-actions { display: none !important; }
  .alm-run, .alm-body { display: block; min-height: 0; padding: 0; background: none; }
  .alm-head { position: static; border: 0; }
  .alm-run .alx, .alm-result .card { box-shadow: none; break-inside: avoid; }
}
