/* Prayogshala — design tokens
   Palette comes from the bench itself: bottle-glass teal, the phenolphthalein end-point pink,
   copper sulfate blue, slate bench top and beech cupboard. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../vendor/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../vendor/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #12262b; --bottle: #0f4c5c; --bottle-deep: #0a3540; --endpoint: #d81e78; --copper: #1e88e5; --paper: #f3f7f6; --line: #d5e0df; --beech: #c9a46b; --slate: #2f3b3f;
  --ok: #2e7d5b; --warn: #b26a00; --bad: #b3261e;
  --font-body: "Atkinson Hyperlegible", "Noto Sans Devanagari", "Mangal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif;
  --bs-body-font-family: var(--font-body); --bs-body-color: var(--ink); --bs-body-bg: var(--paper); --bs-primary: var(--bottle); --bs-primary-rgb: 15, 76, 92;
  --bs-link-color: var(--bottle); --bs-link-color-rgb: 15, 76, 92; --bs-link-hover-color: var(--bottle-deep); --bs-link-hover-color-rgb: 10, 53, 64; --bs-border-color: var(--line); --bs-border-radius: 6px;
}
body { font-size: 1.02rem; line-height: 1.55; }
h1, h2, h3, .navbar-brand, .display-5 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
p, li { max-width: 72ch; }
:focus-visible { outline: 3px solid var(--endpoint); outline-offset: 2px; }
.skip-link { position: absolute; top: 4px; left: 4px; z-index: 2000; background: #fff; padding: .5rem 1rem; }

.btn-primary { --bs-btn-bg: var(--bottle); --bs-btn-border-color: var(--bottle); --bs-btn-hover-bg: var(--bottle-deep); --bs-btn-hover-border-color: var(--bottle-deep); --bs-btn-active-bg: var(--bottle-deep); --bs-btn-active-border-color: var(--bottle-deep); --bs-btn-disabled-bg: var(--bottle); --bs-btn-disabled-border-color: var(--bottle); }
.btn-outline-primary { --bs-btn-color: var(--bottle); --bs-btn-border-color: var(--bottle); --bs-btn-hover-bg: var(--bottle); --bs-btn-hover-border-color: var(--bottle); --bs-btn-active-bg: var(--bottle); --bs-btn-active-border-color: var(--bottle); }
.btn-accent { background: var(--endpoint); border-color: var(--endpoint); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: #b5165f; border-color: #b5165f; color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--bottle); box-shadow: 0 0 0 .2rem rgba(15, 76, 92, .2); }
.form-check-input:checked { background-color: var(--bottle); border-color: var(--bottle); }
.nav-tabs .nav-link { color: var(--ink); } .nav-tabs .nav-link.active { font-weight: 700; border-bottom-color: #fff; }
.text-bg-success { background-color: var(--ok) !important; }

/* top bar */
.topbar { background: var(--bottle-deep); padding-block: .35rem; }
.topbar .navbar-brand, .topbar .nav-link, .topbar .navbar-toggler { color: #e6f1f1; }
.topbar .navbar-brand { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 20px; height: 24px; display: inline-block; background: linear-gradient(to top, var(--endpoint) 0 45%, transparent 45%); border: 2px solid #e6f1f1; border-top-width: 0; border-radius: 2px 2px 9px 9px; position: relative; }
.brand-mark::before { content: ""; position: absolute; top: -3px; left: -5px; right: -5px; height: 2px; background: #e6f1f1; }
.topbar .nav-link { border-radius: 4px; padding-inline: .6rem !important; white-space: nowrap; }
.topbar .nav-link:hover, .topbar .nav-link.active { background: rgba(255, 255, 255, .13); color: #fff; }
.topbar .navbar-toggler { border-color: rgba(255, 255, 255, .4); font-size: 1.3rem; }
.search-box { min-width: 150px; max-width: 190px; background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.search-box::placeholder { color: #b8d0d2; } .search-box:focus { background: #fff; color: var(--ink); }
.notif-dot { position: absolute; top: 2px; right: 0; background: var(--endpoint); color: #fff; font-size: .68rem; border-radius: 9px; padding: 0 5px; line-height: 16px; }
.admin-menu { min-width: min(92vw, 560px); } .menu-group { font-weight: 700; font-size: .85rem; color: var(--bottle); padding: 0 .75rem .25rem; }
.site-footer { margin-top: 4rem; padding: 1.25rem 0; border-top: 1px solid var(--line); color: #50666b; font-size: .9rem; }

/* generic page furniture */
.page-head { padding: 1.75rem 0 1.25rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.25rem; }
.panel > h2:first-child { margin-bottom: .75rem; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--bottle); border-radius: 6px; padding: .8rem 1rem; height: 100%; }
.stat .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; } .stat .l { color: #50666b; font-size: .92rem; }
.stat.pink { border-left-color: var(--endpoint); } .stat.blue { border-left-color: var(--copper); } .stat.beech { border-left-color: var(--beech); }
.empty-state { border: 1px dashed #b7c7c6; border-radius: 8px; padding: 1.5rem; text-align: center; color: #50666b; background: #fff; }
.empty-state p { margin-inline: auto; }
.table { --bs-table-bg: #fff; } .table thead th { font-size: .85rem; color: #50666b; font-weight: 700; border-bottom-width: 2px; white-space: nowrap; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; } .table-wrap .table { margin: 0; }
.auth-wrap { max-width: 460px; padding-top: 3rem; } .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2rem; } .auth-card h1 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.prose { white-space: pre-line; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; } .kv dt { color: #50666b; font-weight: 400; } .kv dd { margin: 0; font-weight: 700; }

/* experiment cards: a coloured spine shows the topic, like a labelled reagent bottle */
.exp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; border-top: 6px solid var(--bottle); padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.exp-card:hover { transform: translateY(-2px); border-color: var(--bottle); color: inherit; }
.exp-card .cat { font-size: .85rem; color: #50666b; } .exp-card h3 { font-size: 1.12rem; font-weight: 700; font-family: var(--font-body); margin: .2rem 0 .4rem; }
.exp-card p { font-size: .95rem; color: #3d5358; flex: 1; } .exp-card .meta { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .86rem; color: #50666b; }
.exp-card.c0 { border-top-color: #0f4c5c; } .exp-card.c1 { border-top-color: #d81e78; } .exp-card.c2 { border-top-color: #1e88e5; } .exp-card.c3 { border-top-color: #43a047; } .exp-card.c4 { border-top-color: #fb8c00; } .exp-card.c5 { border-top-color: #7e57c2; } .exp-card.c6 { border-top-color: #c9a46b; }
.reason { font-size: .85rem; color: var(--endpoint); font-weight: 700; }
.diff-easy::before, .diff-medium::before, .diff-hard::before { content: "●"; margin-right: .25rem; } .diff-easy::before { color: var(--ok); } .diff-medium::before { color: #e09a00; } .diff-hard::before { color: var(--bad); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; }

/* home */
.hero { background: var(--bottle-deep); color: #e9f3f3; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem); line-height: 1.02; color: #fff; max-width: 14ch; }
.hero p.lead { color: #c6dcdd; max-width: 46ch; }
.hero .btn-outline-light:hover { color: var(--bottle-deep); }
.titrator { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 1.25rem; max-width: 380px; margin-inline: auto; }
.titrator svg { display: block; margin: 0 auto; width: 100%; max-width: 260px; height: auto; } .titrator label { font-weight: 700; }
.titrator .ph { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; } .titrator input[type=range] { width: 100%; accent-color: var(--endpoint); }
.band { padding: 3.5rem 0; } .band.alt { background: #fff; border-block: 1px solid var(--line); }
.role-col h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-body); } .role-col ul { padding-left: 1.1rem; }

/* score bars + heatmap */
.rubric-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr max-content; gap: .75rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid #edf2f1; }
.bar { height: 10px; background: #e5eded; border-radius: 5px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--bottle); }
.score-big { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.heat td.cell { text-align: center; font-weight: 700; min-width: 74px; } .heat .hi { background: #cfe9dc; color: #124a33; } .heat .mid { background: #fff0c2; color: #6b4a00; } .heat .low { background: #ffd9b8; color: #7a3300; } .heat .bad { background: #f7c5c1; color: #7d1410; } .heat .none { color: #9aa; font-weight: 400; }
.legend span { display: inline-block; padding: 0 .5rem; border-radius: 3px; font-size: .82rem; margin-right: .25rem; }

/* periodic table */
.ptable { display: grid; grid-template-columns: repeat(18, minmax(42px, 1fr)); gap: 3px; min-width: 820px; }
.el { border: 0; border-radius: 4px; padding: 3px 2px 4px; text-align: center; line-height: 1.1; background: #dfe8e8; color: var(--ink); font: inherit; cursor: pointer; }
.el .z { font-size: .62rem; display: block; text-align: left; padding-left: 3px; } .el .s { font-weight: 700; font-size: 1.05rem; display: block; } .el .m { font-size: .58rem; display: block; }
.el:hover, .el.sel { outline: 3px solid var(--ink); outline-offset: -1px; } .el.dim { opacity: .22; }
.cat-alkali-metal { background: #f7b6b0; } .cat-alkaline-earth-metal { background: #f9d6a5; } .cat-transition-metal { background: #f3e59a; } .cat-post-transition-metal { background: #c5e0b4; } .cat-metalloid { background: #a8dcc8; } .cat-nonmetal { background: #a9d4f2; } .cat-halogen { background: #c3c2f2; } .cat-noble-gas { background: #e2bdf0; } .cat-lanthanide { background: #f6c3d8; } .cat-actinide { background: #e9b9c9; } .cat-unknown { background: #dfe8e8; }

/* physics rig */
.rig-wrap #toasts { left: .6rem; transform: none; width: min(70%, 340px); } @media (min-width: 992px) { .lab-main.phys { grid-template-rows: auto minmax(0, 1fr) 320px; } }
.rig-wrap { background: #f7faf9 !important; display: grid; place-items: center; padding: .5rem; } .rig-wrap svg { position: absolute; inset: .5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); font-family: var(--font-body); }
#panel-right .steps li { font-size: .93rem; }

/* achievements, tutor, QR */
.badge-card { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .75rem .9rem; height: 100%; color: #6b7f84; }
.badge-card .bi { font-size: 1.7rem; line-height: 1; color: #b7c7c6; } .badge-card.got { color: var(--ink); border-color: var(--ok); } .badge-card.got .bi { color: var(--endpoint); }
.tutor { display: flex; flex-direction: column; height: 100%; max-width: 760px; } .tutor-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; min-height: 60px; }
.tutor-msg { max-width: 85%; padding: .4rem .7rem; border-radius: 10px; font-size: .95rem; white-space: pre-wrap; } .tutor-msg.me { align-self: flex-end; background: var(--bottle); color: #fff; } .tutor-msg.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.tutor-msg.wait { color: #50666b; font-style: italic; } .tutor-msg.err { background: #fdecea; border-color: #f1b5b0; color: var(--bad); }
.qr-box { width: 150px; max-width: 100%; background: #fff; padding: 4px; border: 1px solid var(--line); border-radius: 6px; } .qr-box svg { display: block; width: 100%; height: auto; }
.xp-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; } .xp-strip .bar { flex: 1; min-width: 140px; }

/* molecule viewer */
.mol-stage { position: relative; background: radial-gradient(circle at 50% 40%, #ffffff 0, #e3edee 100%); border: 1px solid var(--line); border-radius: 8px; height: min(62vh, 520px); min-height: 320px; overflow: hidden; }
#mol-view { position: absolute; inset: 0; } #mol-view canvas { display: block; touch-action: none; cursor: grab; }
.mol-tools { position: absolute; left: .6rem; bottom: .6rem; right: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; background: rgba(255, 255, 255, .88); border-radius: 6px; padding: .35rem .5rem; }
.mol-list { max-height: min(62vh, 480px); overflow-y: auto; } .mol-list .tool-item { border-radius: 4px; } .mol-list .tool-item.needed { background: #e9f1f0; }
@media (max-width: 991.98px) { .mol-list { max-height: 160px; } }

/* ---------- laboratory ---------- */
body.is-lab { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.is-lab .topbar { padding-block: 0; } body.is-lab .search-box { display: none; }
.lab-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) 232px; grid-template-areas: "bar bar bar" "left bench right" "left bottom right"; background: #fff; }
.lab-bar { grid-area: bar; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .4rem .75rem; border-bottom: 1px solid var(--line); background: #fff; }
.lab-bar h1 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin: 0 .5rem 0 0; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-bar .step-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: .1rem .7rem; font-size: .88rem; white-space: nowrap; }
.lab-bar .btn { --bs-btn-padding-y: .22rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: .88rem; white-space: nowrap; }
.lab-bar .exam-timer { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; } .lab-bar .exam-timer.low { background: var(--bad); border-color: var(--bad); }
#btn-ppe.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.save-status { font-size: .82rem; color: #50666b; white-space: nowrap; } .save-status.ok { color: var(--ok); } .save-status.err { color: var(--bad); font-weight: 700; }
#safety-count { color: var(--bad); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.lab-panel { overflow-y: auto; background: #fbfdfc; } #panel-left { grid-area: left; border-right: 1px solid var(--line); } #panel-right { grid-area: right; border-left: 1px solid var(--line); padding: .75rem; }
.lab-panel h2 { font-size: .95rem; font-family: var(--font-body); font-weight: 700; margin: 0; padding: .6rem .75rem .3rem; position: sticky; top: 0; background: #fbfdfc; z-index: 1; }
#panel-right h2 { padding: 0 0 .4rem; position: static; }
.tool-tabs { position: sticky; top: 0; background: #fbfdfc; z-index: 2; padding: .35rem .5rem 0; } .tool-tabs .nav-link { padding: .3rem .8rem; font-size: .92rem; }
.tool-group { font-size: .8rem; color: #50666b; padding: .5rem .75rem .15rem; }
.tool-item { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; border: 0; border-left: 3px solid transparent; background: none; padding: .32rem .75rem; font-size: .92rem; line-height: 1.2; color: var(--ink); }
.tool-item:hover { background: #e9f1f0; } .tool-item.needed { border-left-color: var(--endpoint); } .tool-item small { display: block; color: #50666b; font-size: .76rem; } .tool-item > span:nth-child(2) { flex: 1; min-width: 0; }
.tool-item .haz { color: var(--warn); font-weight: 700; } .tool-item .bi { color: #7c9195; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #9fb2b4; flex: none; }
.app-ico { width: 22px; height: 24px; flex: none; border: 2px solid var(--bottle); border-top: 0; border-radius: 0 0 4px 4px; opacity: .8; }
.app-conical_flask, .app-volumetric_flask { clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 100%, 0 100%, 35% 35%); background: var(--bottle); border: 0; opacity: .55; }
.app-round_flask { border: 2px solid var(--bottle); border-radius: 50%; } .app-test_tube, .app-measuring_cylinder, .app-burette, .app-thermometer { width: 9px; margin-inline: 6.5px; border-radius: 0 0 5px 5px; }
.app-thermometer { border-color: #d32f2f; } .app-bunsen { border: 0; background: radial-gradient(ellipse at 50% 30%, #3fa0ff 0 35%, transparent 37%), linear-gradient(to top, var(--slate) 0 30%, transparent 30%); opacity: 1; }
.app-evaporating_dish, .app-crucible { height: 11px; margin-top: 10px; border-radius: 0 0 12px 12px; } .app-balance, .app-ph_meter { border: 2px solid var(--slate); border-radius: 3px; height: 14px; margin-top: 6px; }
.app-funnel { border: 0; background: var(--bottle); clip-path: polygon(0 0, 100% 0, 58% 55%, 58% 100%, 42% 100%, 42% 55%); opacity: .55; }
#bench-wrap { grid-area: bench; position: relative; min-height: 0; background: #dfe9ea; } #bench { position: absolute; inset: 0; } #bench canvas { display: block; touch-action: none; outline-offset: -3px; }
#toasts { position: absolute; top: .6rem; left: 50%; transform: translateX(-50%); width: min(92%, 480px); display: flex; flex-direction: column; gap: .4rem; pointer-events: none; z-index: 5; }
.lab-toast { display: flex; gap: .6rem; background: #fff; border-left: 5px solid var(--bottle); border-radius: 6px; padding: .5rem .75rem; font-size: .92rem; box-shadow: 0 4px 14px rgba(18, 38, 43, .18); pointer-events: auto; transition: opacity .3s; }
.lab-toast.out { opacity: 0; } .lab-toast .bi { font-size: 1.15rem; color: var(--bottle); } .lab-toast.success { border-color: var(--ok); } .lab-toast.success .bi { color: var(--ok); }
.lab-toast.warning { border-color: #e09a00; background: #fff8e6; } .lab-toast.warning .bi { color: var(--warn); } .lab-toast.danger { border-color: var(--bad); background: #fdecea; } .lab-toast.danger .bi { color: var(--bad); }
.lab-toast.reaction { border-color: var(--endpoint); } .lab-toast.reaction .bi { color: var(--endpoint); }
.replay-bar { display: none; position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 6px; padding: .4rem .75rem; gap: .75rem; align-items: center; z-index: 6; font-size: .92rem; max-width: 92%; }
body.replaying .replay-bar { display: flex; } body.replaying .lab-panel, body.replaying #lab-bottom { opacity: .5; pointer-events: none; }
.mobile-toggles { display: none; position: absolute; left: .5rem; bottom: .5rem; gap: .4rem; z-index: 4; }
#lab-bottom { grid-area: bottom; border-top: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
#lab-bottom .nav-tabs { padding: 0 .5rem; flex: none; background: var(--paper); } #lab-bottom .nav-link { padding: .35rem .8rem; font-size: .92rem; }
#lab-bottom .tab-content { flex: 1; overflow-y: auto; padding: .6rem .9rem; min-height: 0; }
.steps { list-style: none; padding: 0; margin: 0; } .steps li { display: flex; gap: .6rem; padding: .3rem .4rem; border-radius: 6px; max-width: none; color: #50666b; }
.steps .mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #b7c7c6; display: grid; place-items: center; font-size: .82rem; font-weight: 700; }
.steps li.current { background: #fdeef5; color: var(--ink); font-weight: 700; } .steps li.current .mark { border-color: var(--endpoint); color: var(--endpoint); }
.steps li.done { color: var(--ink); } .steps li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; } .steps .hint { font-weight: 400; font-size: .9rem; color: #7a3d00; background: #fff5dd; border-radius: 4px; padding: .2rem .5rem; margin-top: .25rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: .1rem .6rem; font-size: .84rem; margin: 0 .2rem .25rem 0; color: var(--ink); } .chip.active { background: var(--bottle); border-color: var(--bottle); color: #fff; }
.readings { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: .5rem; } .reading { background: var(--paper); border-radius: 5px; padding: .25rem .5rem; } .reading span { display: block; font-size: .74rem; color: #50666b; } .reading strong { font-size: .95rem; }
.contents ul { padding-left: 1.1rem; margin: 0; font-size: .9rem; } .lbl { font-size: .8rem; color: #50666b; font-weight: 700; margin-bottom: .15rem; display: block; }
.act { border-top: 1px solid #e6eeed; padding-top: .55rem; margin-top: .55rem; } .measure-out { font-size: .92rem; margin-top: .3rem; min-height: 1.3rem; } .safety-note { color: var(--warn); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .92rem; } .timeline .t { font-variant-numeric: tabular-nums; color: #50666b; margin-right: .5rem; }
.question { border: 0; padding: 0; margin: 0 0 1rem; } .question legend { font-size: 1rem; font-weight: 700; float: none; margin-bottom: .3rem; } .question .marks { font-weight: 400; color: #50666b; font-size: .84rem; } .q-text { max-width: 260px; }
@media (max-width: 991.98px) {
  .lab-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) 40%; grid-template-areas: "bar" "bench" "bottom"; }
  .lab-panel { position: fixed; top: 0; bottom: 0; width: min(86vw, 320px); z-index: 1040; transition: transform .2s; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
  #panel-left { left: 0; transform: translateX(-105%); } #panel-right { right: 0; transform: translateX(105%); } .lab-panel.open { transform: none !important; }
  .mobile-toggles { display: flex; } .lab-bar h1 { max-width: 100%; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* printable lab report */
.report-sheet { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1rem, 3vw, 2.5rem); } .report-sheet h2 { font-size: 1.1rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; margin-top: 1.4rem; }
@media print {
  .topbar, .site-footer, .no-print, .alert { display: none !important; } body { background: #fff; font-size: 11pt; } .report-sheet { border: 0; padding: 0; } .container { max-width: 100%; } a { text-decoration: none; color: inherit; } .panel { break-inside: avoid; }
}
