/* Exam Papers: the one-screen maker (.xp), the build stage (.pb) and the ready header (.pv).
   The maker speaks the app's own language: the pale-cyan hero with a Toppu scene (Home), pink and
   blue subject colours (Question Bank), DM Sans headings, the bright blue main button, gold and
   pink accents, and the flat ocean art in /elements. */

/* ── Maker ─────────────────────────────────────────────────────────────── */

.pm-pastlist { display: grid; gap: 6px; max-height: min(46vh, 380px); overflow-y: auto; padding-right: 4px; }
.pm-pastrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border: 1.5px solid #e6e6e6; border-radius: 12px; background: #fff; color: #111; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .16s ease; }
.pm-pastrow:hover { border-color: #bbb; }
.pm-pastrow i { width: 16px; height: 16px; border: 2px solid #c9c9c9; border-radius: 50%; transition: border-color .16s ease, box-shadow .16s ease; }
.pm-pastrow small { font-size: 12.5px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.pm-pastrow[aria-checked="true"] { border-color: #111; }
.pm-pastrow[aria-checked="true"] i { border-color: #111; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px #111; }
@keyframes pm-open { from { opacity: 0; transform: translateY(-6px); } }

.pm-dots { display: inline-flex; gap: 4px; }
.pm-dots b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pm-dot .9s ease-in-out infinite; }
.pm-dots b:nth-child(2) { animation-delay: .12s; }
.pm-dots b:nth-child(3) { animation-delay: .24s; }
@keyframes pm-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── Build stage ───────────────────────────────────────────────────────── */
.pb { max-width: 1060px; }
.pb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pb-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.pb-status { margin: 0; min-height: 1.25em; font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.pb-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 28px; align-items: start; }

.pb-sheet { --sheet-h: min(72vh, 720px); --rh: clamp(13px, calc((var(--sheet-h) - 168px - var(--secs) * 26px) / var(--rows)), 21px);
  position: relative; height: var(--sheet-h); padding: 22px 26px 26px; overflow: hidden auto; scrollbar-width: none; border: 1px solid #e3e1da; border-radius: 6px; background: #fff; color: #111;
  font-family: 'Times New Roman', Times, var(--font-noto-serif), serif; box-shadow: 0 1px 0 #f1efe8, 0 26px 50px -30px rgba(16, 43, 62, .4), 0 3px 10px -4px rgba(0, 0, 0, .08);
  opacity: 0; transform: translateY(28px) rotate(-1.4deg) scale(.985); transform-origin: 50% 100%; }
.pb-sheet::-webkit-scrollbar { display: none; }
.pb.is-go .pb-sheet { opacity: 1; transform: none; transition: opacity .32s ease, transform .62s cubic-bezier(.2, .9, .25, 1.06); }

.pb-head { text-align: center; }
.pb-head > * { opacity: 0; transform: translateY(5px); }
.pb.is-headed .pb-head > * { opacity: 1; transform: none; transition: opacity .3s ease, transform .36s ease; }
.pb.is-headed .pb-head > :nth-child(2) { transition-delay: .08s; }
.pb.is-headed .pb-head > :nth-child(3) { transition-delay: .16s; }
.pb.is-headed .pb-head > :nth-child(4) { transition-delay: .24s; }
.pb-brand { margin: 0; font-size: 9px; letter-spacing: .08em; }
.pb-head h2 { margin: 1px 0 0; font-size: 19px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
.pb-kind { margin: 1px 0 0; font-size: 10.5px; font-weight: 700; }
.pb-meta { display: flex; justify-content: space-between; margin-top: 8px; padding-bottom: 5px; border-bottom: 1.5px solid #111; font-size: 10.5px; font-weight: 700; }
.pb-inst { display: grid; gap: 4px; margin: 8px 0 2px; font-size: 9.5px; }
.pb-inst b { font-weight: 700; text-decoration: underline; opacity: 0; }
.pb-inst i { height: 4px; border-radius: 2px; background: #e4e2dc; transform: scaleX(0); transform-origin: 0 50%; }
.pb-inst i:nth-of-type(1) { width: 92%; } .pb-inst i:nth-of-type(2) { width: 76%; } .pb-inst i:nth-of-type(3) { width: 58%; }
.pb.is-headed .pb-inst b { opacity: 1; transition: opacity .25s ease .3s; }
.pb.is-headed .pb-inst i { transform: scaleX(1); transition: transform .42s cubic-bezier(.2, .8, .2, 1) .36s; }
.pb.is-headed .pb-inst i:nth-of-type(2) { transition-delay: .43s; } .pb.is-headed .pb-inst i:nth-of-type(3) { transition-delay: .5s; }

.pb-sec { margin-top: 10px; opacity: 0; }
.pb-sec.is-in { opacity: 1; }
.pb-sec h3 { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 2px; padding: 3px 0; border-block: 1px solid #111; font-size: 10.5px; line-height: 1.3; clip-path: inset(0 50% 0 50%); }
.pb-sec.is-in h3 { clip-path: inset(0 0 0 0); transition: clip-path .34s cubic-bezier(.3, .8, .3, 1); }
.pb-sec h3 b { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pb-sec h3 span { font-size: 9.5px; font-style: italic; font-weight: 400; }
.pb-sec ol { margin: 0; padding: 0; list-style: none; }
.pb-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 16px; align-items: center; gap: 6px; height: var(--rh); border-bottom: 1px dotted #e6e3dc; font-size: calc(var(--rh) * .6); line-height: 1; }
.pb-n { font-weight: 700; opacity: .22; white-space: nowrap; }
.pb-t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: 0; }
.pb-m { grid-column: 4; font-weight: 700; text-align: right; opacity: 0; }
.pb-or { grid-column: 3; }
.pb-row.is-in { animation: pb-land .5s ease-out; }
.pb-row.is-in .pb-n { opacity: 1; transition: opacity .15s ease; }
.pb-row.is-in .pb-t { opacity: 1; animation: pb-write .36s cubic-bezier(.2, .7, .2, 1); }
.pb-row.is-in .pb-m { opacity: 1; transition: opacity .2s ease .16s; }
@keyframes pb-land { 0% { background: #fff3c4; } 100% { background: transparent; } }
@keyframes pb-write { from { clip-path: inset(0 100% 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.pb-or { padding: 0 3px; border: 1px solid #111; border-radius: 3px; font-size: .78em; font-style: normal; font-weight: 700; opacity: 0; transform: scale(.4); }
.pb.is-chosen .pb-or { opacity: 1; transform: none; transition: transform .32s cubic-bezier(.3, 1.7, .5, 1), opacity .18s ease; }

.pb-dot { position: absolute; top: 0; left: 0; z-index: 5; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #102b3e; box-shadow: 0 0 0 4px rgba(16, 43, 62, .13); pointer-events: none; will-change: transform; }
.pb-stamp { position: absolute; top: 70px; right: 22px; padding: 5px 13px 4px; border: 3px solid #1c7c54; border-radius: 8px; color: #1c7c54; font: 700 15px/1 var(--tp-font); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: rotate(-9deg) scale(2.3); pointer-events: none; }
.pb.is-ready .pb-stamp { opacity: .92; transform: rotate(-9deg) scale(1); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1), opacity .1s ease; }

.pb-hud { position: sticky; top: 8px; display: grid; gap: 20px; font-family: var(--tp-font); opacity: 0; transform: translateX(14px); }
.pb.is-go .pb-hud { opacity: 1; transform: none; transition: opacity .4s ease .14s, transform .5s cubic-bezier(.2, .8, .2, 1) .14s; }
.pb-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pb-count { padding: 14px 16px; border: 2px solid #eee; border-radius: 16px; }
.pb-count strong { display: block; font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pb-count span { display: block; margin-top: 5px; font-size: 12.5px; color: #737373; }
.pb-block h3 { margin: 0 0 9px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.pb-units { display: grid; gap: 10px; }
.pb-unit { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.pb-unit__name { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #333; }
.pb-units.is-many { gap: 7px; }
.pb-units.is-many .pb-unit { grid-template-columns: minmax(0, 1fr) 84px 42px; }
.pb-units.is-many .pb-unit__name { grid-column: auto; }
.pb-bar { display: block; width: calc(var(--w, 1) * 100%); height: 8px; overflow: hidden; border-radius: 4px; background: #eceeed; }
.pb-bar i { display: block; height: 100%; border-radius: 4px; background: #102b3e; transform: scaleX(0); transform-origin: 0 50%; transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.pb-unit__n { color: #737373; text-align: right; font-variant-numeric: tabular-nums; }
.pb-unit__n b { display: inline-block; color: #111; font-weight: 600; }
.pb-unit.is-hit .pb-unit__n b { animation: pb-pop .28s ease-out; }
@keyframes pb-pop { 40% { transform: scale(1.4); } }
.pb-meters { display: grid; gap: 14px; }
.pb-meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 12.5px; color: #333; }
.pb-meter > b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-meter .pb-bar { grid-column: 1 / -1; width: 100%; }
.pb-meter .pb-bar i { background: #1c7c54; }
.pb-mix { grid-column: 1 / -1; display: flex; gap: 2px; height: 8px; overflow: hidden; border-radius: 4px; background: #eceeed; }
.pb-mix i { flex: 0 1 0; min-width: 0; transition: flex-grow .36s ease; }
.pb-mix i:nth-child(1) { background: #b7c6d0; } .pb-mix i:nth-child(2) { background: #5b7d94; } .pb-mix i:nth-child(3) { background: #102b3e; }
.pb-mix__key { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; color: #8a8a8a; }
.pb-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pb-checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; opacity: 0; transform: translateY(4px); }
.pb-checks li.is-in { opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.pb-checks svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #1c7c54; color: #fff; transform: scale(0); }
.pb-checks li.is-in svg { transform: scale(1); transition: transform .32s cubic-bezier(.3, 1.8, .5, 1) .05s; }

/* Skipped or reduced motion: everything in its final place, nothing moving. */
.pb.is-done *, .pb.is-done *::before, .pb.is-done *::after { animation: none !important; transition: none !important; }
.pb.is-done .pb-sheet, .pb.is-done .pb-hud, .pb.is-done .pb-head > *, .pb.is-done .pb-sec, .pb.is-done .pb-n, .pb.is-done .pb-t, .pb.is-done .pb-m, .pb.is-done .pb-or, .pb.is-done .pb-inst b, .pb.is-done .pb-checks li { opacity: 1; transform: none; }
.pb.is-done .pb-sec h3 { clip-path: none; }
.pb.is-done .pb-inst i, .pb.is-done .pb-checks svg { transform: scale(1); }
.pb.is-done .pb-stamp { opacity: .92; transform: rotate(-9deg); }

/* ── Ready header on the paper ─────────────────────────────────────────── */
.pv-head { margin: 4px 0 18px; }
.pv-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 10px; }
.pv-head .paper-step-intro { margin: 8px 0 0; max-width: 640px; }
.pv-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pv-facts li { padding: 5px 12px; border: 1.5px solid #e8e8e8; border-radius: 999px; font-size: 12.5px; color: #333; font-variant-numeric: tabular-nums; }
.pv-focus { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #555; }
.pv-head.is-fresh .pv-facts li { animation: pv-chip .42s cubic-bezier(.2, .8, .2, 1) backwards; }
.pv-head.is-fresh .pv-facts li:nth-child(2) { animation-delay: .05s; } .pv-head.is-fresh .pv-facts li:nth-child(3) { animation-delay: .1s; }
.pv-head.is-fresh .pv-facts li:nth-child(4) { animation-delay: .15s; } .pv-head.is-fresh .pv-facts li:nth-child(5) { animation-delay: .2s; }
@keyframes pv-chip { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.pv-sheet.is-fresh { animation: pv-rise .55s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes pv-rise { from { opacity: 0; transform: translateY(18px); } }

/* ── Small screens ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pb-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* The counters and unit bars sit above the sheet; the checks come after it. */
  .pb-hud { display: contents; }
  .pb-counts { order: -3; }
  .pb-hud > .pb-block:not(.pb-meters) { order: -2; }
  .pb-checks { order: 2; }
  .pb-count { padding: 10px 14px; }
  .pb-count strong { font-size: 26px; }
  .pb-block h3 { display: none; }
  .pb-units { display: flex; gap: 4px; }
  .pb-unit { display: block; flex: var(--w, 1) 1 0; min-width: 0; }
  .pb-unit__name, .pb-unit__n, .pb-meters { display: none; }
  .pb-unit .pb-bar { width: 100%; }
  .pb-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; }
  .pb-checks li { font-size: 12px; }
  .pb-sheet { --sheet-h: min(56vh, 540px); padding: 16px 16px 20px; }
  .pb-status { font-size: 21px; }
}
@media (max-width: 600px) {
  .pv-head__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
}
body.reduce-motion .xp *, body.reduce-motion .xp-drawer-wrap *, body.reduce-motion .pb *, body.reduce-motion .pv-head *, body.reduce-motion .pv-sheet { animation: none !important; transition: none !important; }
@media print { .pv-sheet { animation: none; } }

/* ── Switches, steppers and notes used in the Customise menu (.hx) ──────── */
.hx-sub { padding-left: 14px; border-left: 2px solid #e4e4e4; }
.hx-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8a8a8a; }
.hx-switch { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border: 1.5px solid #e2e2e2; border-radius: 999px; background: #fff; color: #555; font: inherit; font-size: 13px; cursor: pointer; transition: border-color .16s ease, color .16s ease; }
.hx-switch i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #d6d6d6; transition: background .18s ease; }
.hx-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.hx-switch.is-on { border-color: #111; color: #111; }
.hx-switch.is-on i { background: #1c7c54; }
.hx-switch.is-on i::after { transform: translateX(12px); }
.hx-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1.5px solid #e2e2e2; border-radius: 999px; background: #fff; }
.hx-stepper button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2f3f3; font-size: 17px; line-height: 1; cursor: pointer; }
.hx-stepper b { min-width: 86px; font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

/* ── The start card on the paper's page (.ac). With the admit card on it is drawn as one; without, it is plain. ── */
.ac { position: relative; max-width: 760px; margin: 0 0 22px; padding: 28px 30px 24px; overflow: hidden; border: 2px solid #111; border-radius: 18px; background: #fffdf7; animation: ac-in .5s cubic-bezier(.2, .9, .3, 1.05) backwards; }
@keyframes ac-in { from { opacity: 0; transform: translateY(20px) rotate(-.8deg); } }
.ac::before { content: ''; position: absolute; inset: 6px; border: 1px solid #111; border-radius: 13px; pointer-events: none; }
.ac-head { position: relative; padding-bottom: 14px; border-bottom: 2px solid #111; text-align: center; }
.ac-head p { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ac-head h2 { margin: 4px 0 0; font: 700 30px/1.1 'Times New Roman', Times, serif; letter-spacing: .04em; text-transform: uppercase; }
.ac-code { position: absolute; top: 0; right: 0; padding: 3px 9px; border: 1.5px solid #111; border-radius: 6px; font: 700 13px/1.3 ui-monospace, Menlo, monospace; }
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 6px 0 0; }
.ac-grid > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dotted #b9b4a6; }
.ac-grid dt { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #6f6a5d; align-self: center; }
.ac-grid dd { margin: 0; font-size: 15px; font-weight: 600; }
.ac-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ac-slots li { flex: 1 1 150px; padding: 10px 14px; border-radius: 12px; background: #102b3e; color: #fff; }
.ac-slots b { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ac-slots span { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ac h3 { margin: 20px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f6a5d; }
.ac-rules { display: grid; gap: 6px; margin: 0; padding-left: 20px; list-style: decimal; font-size: 14px; line-height: 1.5; }
.ac-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 2px solid #111; font-size: 13px; color: #6f6a5d; }
.ac-go { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border: 0; border-radius: 14px; background: #111; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.ac-go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.ac-go:hover { box-shadow: 0 0 0 4px rgba(17, 17, 17, .12); }
.ac-go:hover svg { transform: translateX(3px); }
.ac-go:active { transform: scale(.97); }
.ac-go:disabled { opacity: .6; cursor: progress; }
.ac-foot > span:first-child { flex: 1 1 240px; line-height: 1.5; }
.ac-actions { display: inline-flex; align-items: center; gap: 10px; }
.ac--plain { padding: 20px 22px; border-color: #e2e2e2; background: #fff; }
.ac--plain::before { display: none; }
.ac--plain .ac-slots { margin-top: 0; }
.ac--plain .ac-foot { border-top: 1px solid #e6e6e6; }

/* ── In the hall: countdown, calls, warnings, camera ───────────────────── */
.hall-count { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-content: center; gap: 6px; background: #102b3e; color: #fff; text-align: center; font-family: var(--tp-font); }
.hall-count p { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.hall-count strong { font-size: min(34vh, 240px); font-weight: 600; line-height: 1; letter-spacing: -.06em; animation: hall-num .8s cubic-bezier(.2, .9, .3, 1); }
@keyframes hall-num { 0% { opacity: 0; transform: scale(1.5); } 30% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
.hall-call { position: fixed; top: 66px; left: 50%; z-index: 2147481000; display: flex; align-items: center; gap: 11px; max-width: min(560px, calc(100vw - 24px)); padding: 12px 20px 12px 14px; border-radius: 16px; background: #102b3e; color: #fff; box-shadow: 0 18px 40px -18px rgba(16, 43, 62, .7); font-family: var(--tp-font); font-size: 15px; line-height: 1.4; transform: translateX(-50%); animation: hall-call-in .5s cubic-bezier(.2, 1.2, .3, 1); }
.hall-call svg { flex: none; width: 26px; height: 26px; transform-origin: 50% 10%; animation: hall-ring .9s ease-in-out 2; }
.hall-call b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.hall-call.is-out { opacity: 0; transform: translate(-50%, -16px); transition: opacity .35s ease, transform .35s ease; }
@keyframes hall-call-in { from { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes hall-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.hall-warn { position: fixed; inset: 0; z-index: 2147482500; display: grid; place-items: center; padding: 16px; background: rgba(120, 20, 14, .82); backdrop-filter: blur(4px); font-family: var(--tp-font); }
.hall-warn__card { width: min(440px, 100%); padding: 26px; border-radius: 20px; background: #fff; text-align: center; animation: plink-rise .28s cubic-bezier(.2, .9, .3, 1.1); }
.hall-warn h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #a3261c; }
.hall-warn p { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.5; color: #444; }
.hall-warn button { height: 46px; padding: 0 22px; border: 0; border-radius: 13px; background: #111; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hall-cam { position: fixed; left: 14px; bottom: 76px; z-index: 40; width: 148px; overflow: hidden; border: 2px solid #111; border-radius: 12px; background: #000; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.hall-cam video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1); }
.hall-cam span { display: block; padding: 3px 6px; background: #111; color: #fff; font: 500 10.5px/1.4 var(--tp-font); text-align: center; }
.qbx-guard-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: #fdecea; color: #a3261c; font-size: 12px; font-weight: 600; white-space: nowrap; }
.qbx-guard-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c0392b; animation: plink-pulse 1.6s ease-in-out infinite; }
body.hall-guarded .qbx-practice { -webkit-user-select: none; user-select: none; }
body.hall-guarded .qbx-practice textarea, body.hall-guarded .qbx-practice input { -webkit-user-select: text; user-select: text; }
.qbx-phase.is-upload { color: #a3261c; }
.qbx-reading-bar.is-upload { background: #a3261c; color: #fff; font-weight: 500; }
.qbx-paper-sit.is-upload .qbx-paper { opacity: .45; }
.qbx-conduct { margin: 8px 0 0; font-size: 13.5px; color: #1c7c54; }
.qbx-conduct.is-flag { color: #a3261c; }

/* ── Three ways to add pages ───────────────────────────────────────────── */
.qbx-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.qbx-way { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px; border: 2px solid #eee; border-radius: 14px; background: #fff; color: #111; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .12s ease, background .16s ease; }
.qbx-way svg { grid-row: 1 / 3; width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: #f2f4f3; color: #102b3e; transition: background .2s ease, color .2s ease; }
.qbx-way strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.qbx-way span { font-size: 12.5px; line-height: 1.4; color: #737373; }
.qbx-way:hover { border-color: #111; }
.qbx-way:hover svg { background: #102b3e; color: #fff; }
.qbx-way:active { transform: scale(.985); }
.qbx-way:disabled, .qbx-way.is-off { opacity: .45; pointer-events: none; }
.qbx-way em { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #1c7c54; color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.qbx-way.is-best { border-color: #1c7c54; }
.qbx-way.is-best strong { padding-right: 44px; }
.qbx-way:focus-within { outline: 2px solid #161616; outline-offset: 3px; }
ul.qbx-photos--pages { margin-top: 12px; }
.qbx-photos--pages li { animation: scan-drop .42s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.qbx-photos--pages b { position: absolute; left: 6px; bottom: 6px; min-width: 20px; padding: 0 5px; border-radius: 6px; background: #102b3e; color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.qbx-sheet .qbx-upload { align-items: stretch; }

@media (max-width: 760px) {
  .qbx-ways { grid-template-columns: minmax(0, 1fr); }
  .ac { padding: 22px 18px 18px; }
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-code { position: static; display: inline-block; margin-top: 8px; }
  .ac-foot { flex-direction: column; align-items: stretch; }
  .ac-go { justify-content: center; }
  .ac-actions { flex-direction: column-reverse; align-items: stretch; }
  .hall-cam { width: 104px; bottom: 70px; left: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ac, .hall-call, .hall-call svg, .hall-warn__card, .qbx-photos--pages li { animation: none !important; } }
body.reduce-motion .ac, body.reduce-motion .hall-call, body.reduce-motion .hall-call svg,  body.reduce-motion .qbx-photos--pages li { animation: none !important; }
@media print { .hall-cam, .hall-call { display: none !important; } }

/* The printed paper numbers its general instructions (the shell's reset removes list numbers). */
.qbx-sqp-list { list-style: decimal; }

/* ── The maker (.xp) ───────────────────────────────────────────────────── */
.xp { --xp-blue: #1cb0f6; --xp-cyan: #cefbff; --xp-pink: #d665bd; --xp-sky: #16a6e5; --xp-navy: #102b3e; --xp-ring: #f0f0f0; --xp-display: "DM Sans", "DM Sans Fallback", var(--tp-font, Inter, system-ui, sans-serif);
  max-width: 980px; display: grid; gap: 20px; padding-bottom: 4px; }
.xp > * { min-width: 0; }
.xp :focus-visible, .xp-drawer :focus-visible { outline: 3px solid rgba(28, 176, 246, .55); outline-offset: 2px; }
.xp-drawer:focus { outline: none; }

/* Hero: the same pale-cyan block as Home, with the Exam Papers scene. */
.xp-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 152px; border-radius: 16px; background: rgba(206, 251, 255, .42); box-shadow: inset 0 0 0 2px rgba(10, 10, 10, .05); }
.xp-hero__art { position: absolute; z-index: -1; right: 0; bottom: 0; width: 52%; height: 100%; object-fit: cover; object-position: 100% 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 6%, #000 44%); mask-image: linear-gradient(to right, transparent 6%, #000 44%); }
.xp-hero__text { max-width: 470px; padding: 22px 28px; }
.xp-hero h1 { margin: 0; font-family: var(--xp-display); font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1.12; color: #0a0a0a; }
.xp-hero p { margin: 10px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; color: rgba(10, 10, 10, .72); }

.xp-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--xp-display); font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: #0a0a0a; }
.xp-step h2 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--xp-navy); color: #fff; font-family: var(--tp-font, Inter, sans-serif); font-size: 13px; font-weight: 600; }

/* Subjects: Question Bank's pink and blue. The chosen one fills with its colour. */
.xp-subjects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.xp-subject { --c: var(--xp-pink); position: relative; overflow: hidden; display: flex; align-items: flex-end; height: 88px; padding: 12px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); color: #0a0a0a; font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease, transform .12s ease; }
.xp-subject--blue { --c: var(--xp-sky); }
.xp-subject img { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; object-fit: contain; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.xp-subject span { position: relative; }
.xp-subject:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.xp-subject:active { transform: scale(.97); }
.xp-subject[aria-checked="true"] { background: var(--c); color: #fff; }
.xp-subject[aria-checked="true"] img { transform: scale(1.22) rotate(-7deg); }

/* Papers: one card each, with its picture. */
.xp-papers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xp-paper, .xp-custom { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px 14px 12px 10px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--xp-ring); color: #0a0a0a; font: inherit; text-align: left; cursor: pointer; transition: box-shadow .18s ease, background .18s ease, transform .12s ease; }
.xp-paper__art { grid-row: 1 / 3; width: 70px; height: 70px; object-fit: contain; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.xp-paper__text { align-self: end; padding-right: 22px; }
.xp-paper__text strong { display: block; font-family: var(--xp-display); font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.xp-paper__text span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: #737373; }
.xp-chips { align-self: start; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-chips i { padding: 3px 8px; border-radius: 8px; background: var(--xp-cyan); color: #0879b3; font-size: 12px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.xp-paper:hover, .xp-custom:hover { box-shadow: inset 0 0 0 2px #d9d9d9; }
.xp-paper:active, .xp-custom:active { transform: scale(.985); }
.xp-paper[aria-checked="true"], .xp-custom.is-on { background: rgba(206, 251, 255, .42); box-shadow: inset 0 0 0 2.5px var(--xp-blue); }
.xp-paper[aria-checked="true"] .xp-paper__art { transform: scale(1.08) rotate(-4deg); }
.xp-paper[aria-checked="true"] .xp-chips i, .xp-custom.is-on .xp-chips i { background: #fff; }
.xp-tick { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--xp-blue); transform: scale(0); transition: transform .28s cubic-bezier(.3, 1.7, .5, 1); }
.xp-paper[aria-checked="true"] .xp-tick, .xp-custom.is-on .xp-tick, .xp-method.is-on .xp-tick { transform: scale(1); }
.xp-custom { grid-template-columns: 52px minmax(0, 1fr) auto; width: 100%; margin-top: 12px; padding: 10px 14px; box-shadow: inset 0 0 0 2px var(--xp-ring); }
.xp-custom img { width: 44px; height: 44px; margin-left: 6px; object-fit: contain; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.xp-custom:hover img { transform: rotate(60deg); }
.xp-custom .xp-paper__text { align-self: center; padding-right: 0; }
.xp-custom__go { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px 0 14px; border-radius: 999px; background: linear-gradient(135deg, #fce8b2, #f2c55c); color: #451a03; font-size: 14px; font-weight: 500; }
.xp-custom__go svg { width: 18px; height: 18px; opacity: .7; transition: transform .2s ease; }
.xp-custom:hover .xp-custom__go svg { transform: translateX(2px); }
.xp-custom.is-on .xp-custom__go { margin-right: 30px; }

/* The bar: what you are about to make, how the time runs, and the one button. */
.xp-bar { position: sticky; bottom: 12px; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px) auto; gap: 16px; align-items: center; padding: 12px 12px 12px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px var(--xp-ring), 0 18px 36px -22px rgba(16, 43, 62, .45); }
.xp-bar__sum { min-width: 0; }
.xp-bar__sum strong { display: block; overflow: hidden; font-family: var(--xp-display); font-size: 16.5px; font-weight: 500; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.xp-bar__sum span { display: block; margin-top: 1px; overflow: hidden; font-size: 13px; color: #737373; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp-time { display: flex; gap: 3px; min-width: 0; }
.xp-time__seg { flex: 1 0 auto; display: grid; align-content: center; min-width: 0; height: 42px; padding: 0 10px; font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; transition: flex-grow .35s cubic-bezier(.2, .8, .2, 1); }
.xp-time__seg b { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.xp-time__seg:first-child { border-radius: 12px 4px 4px 12px; }
.xp-time__seg:last-child { border-radius: 4px 12px 12px 4px; }
.xp-time__seg:only-child { border-radius: 12px; }
.xp-time__seg.is-read { background: linear-gradient(135deg, #fce8b2, #f2c55c); color: #451a03; }
.xp-time__seg.is-write { background: var(--xp-blue); color: #fff; }
.xp-time__seg.is-up { background: var(--xp-pink); color: #fff; }
.xp-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--xp-blue); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .16s ease, transform .12s ease, box-shadow .2s ease; }
.xp-go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.xp-go:hover { background: #12a3e8; box-shadow: 0 0 0 4px rgba(28, 176, 246, .2); }
.xp-go:hover svg { transform: translateX(3px); }
.xp-go:active { transform: scale(.97); }
.xp-go.is-busy { cursor: progress; opacity: .9; }
.xp-go:disabled:not(.is-busy) { opacity: .5; cursor: default; }

/* The Customise menu: a panel from the right (a sheet from the bottom on a phone). */
.xp-drawer-wrap { --xp-blue: #1cb0f6; --xp-cyan: #cefbff; --xp-pink: #d665bd; --xp-navy: #102b3e; --xp-ring: #f0f0f0; --xp-display: "DM Sans", "DM Sans Fallback", var(--tp-font, Inter, system-ui, sans-serif); position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; }
.xp-scrim { position: absolute; inset: 0; background: rgba(16, 43, 62, .45); }
.xp-drawer { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(500px, 100%); height: 100%; overflow: hidden; border-radius: 24px 0 0 24px; background: #fff; box-shadow: -24px 0 60px -24px rgba(16, 43, 62, .4); }
.xp-drawer-wrap.is-fresh .xp-drawer { animation: xp-in .34s cubic-bezier(.2, .85, .25, 1); }
.xp-drawer-wrap.is-fresh .xp-scrim { animation: xp-fade .26s ease-out; }
@keyframes xp-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes xp-up { from { transform: translateY(48px); opacity: 0; } }
@keyframes xp-fade { from { opacity: 0; } }
.xp-drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px 22px; background: rgba(206, 251, 255, .45); box-shadow: inset 0 -2px 0 rgba(10, 10, 10, .05); }
.xp-drawer__head img { width: 40px; height: 40px; }
.xp-drawer__head h2 { margin: 0; font-family: var(--xp-display); font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.xp-drawer__head p { margin: 1px 0 0; font-size: 13px; color: rgba(10, 10, 10, .62); }
.xp-x { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(10, 10, 10, .06); color: #404040; cursor: pointer; }
.xp-x svg { width: 18px; height: 18px; }
.xp-x:hover { background: #f5f5f5; }
.xp-drawer__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 18px; }
.xp-group { padding: 20px 0; }
.xp-group + .xp-group { box-shadow: inset 0 2px 0 var(--xp-ring); }
.xp-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--xp-display); font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.xp-group h3 img { width: 26px; height: 26px; object-fit: contain; }
.xp-field { margin-top: 16px; scroll-margin-top: 12px; }
.xp-group h3 + .xp-field { margin-top: 0; }
.xp-field__name { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #525252; }
.xp-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xp-pill { height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #ececec; color: #262626; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .1s ease; }
.xp-pill:hover { box-shadow: inset 0 0 0 2px #d4d4d4; }
.xp-pill:active { transform: scale(.96); }
.xp-pill.is-on { background: var(--xp-navy); box-shadow: none; color: #fff; }
.xp-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: #8a8a8a; }
.xp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: #f7f7f7; color: #0a0a0a; font: inherit; text-align: left; cursor: pointer; transition: background .16s ease; }
.xp-toggle strong { display: block; font-size: 14.5px; font-weight: 500; }
.xp-toggle small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #737373; }
.xp-toggle i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #d4d4d4; transition: background .2s ease; }
.xp-toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .24s cubic-bezier(.3, 1.5, .5, 1); }
.xp-toggle[aria-checked="true"] { background: rgba(206, 251, 255, .5); }
.xp-toggle[aria-checked="true"] i { background: var(--xp-blue); }
.xp-toggle[aria-checked="true"] i::after { transform: translateX(18px); }
.xp-sub { margin: 4px 0 0 8px; padding-left: 12px; border-left: 3px solid var(--xp-cyan); animation: pm-open .22s cubic-bezier(.2, .8, .2, 1); }
.xp-methods { display: grid; gap: 8px; }
.xp-method { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 42px 10px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #ececec; color: #0a0a0a; font: inherit; text-align: left; cursor: pointer; transition: box-shadow .16s ease, background .16s ease; }
.xp-method img { width: 40px; height: 40px; object-fit: contain; }
.xp-method strong { display: block; font-size: 14.5px; font-weight: 500; }
.xp-method small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #737373; }
.xp-method.is-on { background: rgba(206, 251, 255, .42); box-shadow: inset 0 0 0 2.5px var(--xp-blue); }
.xp-method .xp-tick { top: 50%; margin-top: -11px; }
.xp-fold { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: #f7f7f7; color: #0a0a0a; font: inherit; text-align: left; cursor: pointer; }
.xp-fold .xp-field__name { margin: 0; color: #0a0a0a; font-size: 14.5px; font-weight: 500; }
.xp-fold b { margin-left: auto; font-size: 13px; font-weight: 600; color: #0879b3; }
.xp-fold svg { width: 18px; height: 18px; color: #737373; transition: transform .2s ease; }
.xp-fold[aria-expanded="true"] svg { transform: rotate(90deg); }
.xp-chapters { display: grid; gap: 4px; margin-top: 10px; animation: pm-open .22s cubic-bezier(.2, .8, .2, 1); }
.xp-chapters .qbx-facet { margin: 0 0 6px; }
.xp-drawer .pm-pastlist { max-height: none; margin-top: 12px; }
.xp-drawer__foot { display: grid; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: inset 0 2px 0 var(--xp-ring); }
.xp-drawer__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xp-ghost { height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: #525252; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.xp-ghost:hover { background: #f5f5f5; color: #0a0a0a; }
.xp-drawer__actions .xp-go { height: 44px; min-width: 120px; }
.xp--again { max-width: 640px; }
.xp-panel { padding: 0 22px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--xp-ring); }
.xp--again .xp-bar { grid-template-columns: minmax(0, 1fr) minmax(200px, 280px) auto; }

@media (max-width: 900px) {
  .xp-subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xp-papers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-bar, .xp--again .xp-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px; }
  .xp-bar .xp-time { grid-column: 1 / -1; grid-row: 1; }
  .xp-bar__sum { padding-left: 6px; }
}
@media (max-width: 600px) {
  .xp { gap: 20px; }
  .xp-hero { min-height: 184px; align-items: flex-start; }
  .xp-hero__art { width: 100%; height: 60%; -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 46%); mask-image: linear-gradient(to bottom, transparent 4%, #000 46%); object-position: 82% 100%; }
  .xp-hero__text { padding: 18px 18px 0; }
  .xp-hero h1 { font-size: 26px; }
  .xp-hero p { margin-top: 6px; font-size: 14px; }
  .xp-subject { height: 84px; padding: 10px; font-size: 13.5px; }
  .xp-subject img { width: 40px; height: 40px; top: 7px; right: 7px; }
  .xp-papers { gap: 8px; }
  .xp-paper { grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; padding: 12px; }
  .xp-paper__art { grid-row: auto; width: 58px; height: 58px; }
  .xp-paper__text { padding-right: 0; }
  .xp-paper__text strong { font-size: 15.5px; }
  .xp-paper__text span { font-size: 12.5px; }
  .xp-chips { gap: 4px; flex-wrap: nowrap; }
  .xp-chips i { padding: 3px 6px; font-size: 11.5px; white-space: nowrap; }
  .xp-custom { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .xp-custom img { width: 36px; height: 36px; margin: 0; }
  .xp-custom__go { display: none; }
  .xp-bar { bottom: 8px; border-radius: 18px; }
  .xp-bar__sum span { display: none; }
  .xp-time__seg { height: 36px; padding: 0 8px; font-size: 12px; }
  .xp-go { padding: 0 18px; }
  .xp-drawer-wrap { align-items: flex-end; }
  .xp-drawer { width: 100%; height: min(92dvh, 100%); border-radius: 24px 24px 0 0; }
  .xp-drawer-wrap.is-fresh .xp-drawer { animation-name: xp-up; }
  .xp-drawer__body { padding: 0 16px 14px; }
  .xp-panel { padding: 0 14px; }
}

/* Resources tabs (Notes, Formula sheets, NCERT books, Simulations): the sidebar's glyphs, in the tab's text colour. */
.resource-tabs .tab-icon { flex: none; width: 20px; height: 20px; }
@media (max-width: 767px) { .resource-tabs .tab-icon { display: none; } }
