/* CISM 5-Day Workshop: practice pages (learning activities and labs).
   Layered on cisa-lesson.css so activities share the lessons' nav, hero, headings,
   quiz cards, tips, pager, and footer. Adds only the station rail, sort controls,
   and the summary report. Light-only. */
:root { color-scheme: light; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Breadcrumb current item, badge, chips already come from cisa-lesson.css */
.px-layout { max-width: 1240px; margin: 0 auto; padding: 2.5rem 2rem 3rem; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; }

/* ---------- Left station rail ---------- */
.px-rail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 1.1rem 1rem 1rem; }
.px-rail::before { content: ''; display: block; height: 3px; background: var(--gold); margin: -1.1rem -1rem 1rem; border-radius: 4px 4px 0 0; }
.px-rail .eyebrow { margin-bottom: .6rem; }
.px-steps { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.px-steps li { margin: 0 0 .2rem; }
.px-step { width: 100%; display: flex; gap: .6rem; align-items: center; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: .45rem .5rem; cursor: pointer; color: var(--text-secondary); font: 600 .84rem/1.3 Arial, sans-serif; }
.px-step:hover { background: var(--blue-pale); }
.px-step[aria-current="step"] { background: var(--blue-pale); border-color: var(--blue-pale-border); color: var(--text-primary); box-shadow: inset 3px 0 0 var(--gold); }
.px-step .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font: 900 .7rem 'Arial Narrow', Arial, sans-serif; flex-shrink: 0; background: var(--card-bg); color: var(--text-muted); }
.px-step[aria-current="step"] .dot { border-color: var(--gold); color: var(--gold); }
.px-step.done .dot { background: var(--correct); border-color: var(--correct); color: #fff; }

.px-mastery { border-top: 1px solid var(--border); padding-top: .9rem; margin-bottom: 1rem; }
.px-m-item { font: .76rem Arial, sans-serif; color: var(--text-secondary); margin-bottom: .55rem; }
.px-m-row { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.px-m-row b { color: var(--text-primary); font-family: 'Arial Narrow', Arial, sans-serif; }
.px-bar { height: 6px; border-radius: 3px; background: var(--section-alt); overflow: hidden; }
.px-bar > i { display: block; height: 100%; width: 0; background: var(--navy-light); transition: width .3s; }
.px-bar.hi > i { background: var(--correct); } .px-bar.lo > i { background: var(--gold); }

.px-more { border-top: 1px solid var(--border); padding-top: .8rem; font: .78rem Arial, sans-serif; }
.px-more summary { cursor: pointer; list-style: none; font: 700 .68rem Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: .25rem 0; }
.px-more summary::-webkit-details-marker { display: none; }
.px-more summary::after { content: " \25BE"; color: var(--text-muted); }
.px-catalog { list-style: none; margin: .3rem 0 .6rem; padding: 0; }
.px-catalog a, .px-catalog span { display: flex; gap: .45rem; padding: .25rem .35rem; border-radius: 3px; text-decoration: none; color: var(--text-secondary); line-height: 1.35; }
.px-catalog a:hover { background: var(--blue-pale); }
.px-catalog .cur { background: var(--blue-pale); font-weight: 700; color: var(--text-primary); }
.px-catalog .soon { color: var(--text-muted); cursor: default; }
.px-catalog .soon em { margin-left: auto; font: 700 .6rem 'Arial Narrow', Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; font-style: normal; }
.px-catalog b { font: 900 .72rem 'Arial Narrow', Arial, sans-serif; color: var(--gold); min-width: 1.4rem; }
.px-hub { display: block; margin-top: .4rem; font-weight: 700; color: var(--navy); }

/* ---------- Station content ---------- */
.px-content { min-width: 0; }
.px-content .lead-p { font-family: Arial, sans-serif; font-size: .95rem; color: var(--text-secondary); line-height: 1.65; margin: 0 0 1.3rem; max-width: 820px; }
.px-content .lead-p b { color: var(--text-primary); }
.px-content .quiz-card .q:first-child { border-top: none; padding-top: .3rem; }

/* Sort: segmented choice buttons under each item */
.px-seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.px-seg button { border: 1px solid var(--border); background: var(--card-bg); color: var(--text-secondary); border-radius: 4px; padding: .5rem .95rem; font: 700 .76rem Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: border-color .15s, background .15s; }
.px-seg button:hover:not(:disabled) { border-color: var(--gold); }
.px-seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.px-seg button:disabled { cursor: default; }
.px-seg button.is-answer { border-color: var(--correct); background: var(--correct-bg); color: var(--correct); }
.px-seg button.is-wrong[aria-pressed="true"] { background: var(--wrong); border-color: var(--wrong); }
.px-seg button.is-right[aria-pressed="true"] { background: var(--correct); border-color: var(--correct); }
.rationale.ok { border-left-color: var(--correct); }
.rationale.bad { border-left-color: var(--wrong); }

/* Scenario case box */
.px-case { margin: 0 0 1rem; padding: .9rem 1.1rem; background: var(--blue-pale); border: 1px solid var(--blue-pale-border); border-left: 4px solid var(--navy); border-radius: 0 4px 4px 0; font: .92rem/1.6 Arial, sans-serif; color: var(--text-primary); }
.px-case-block { border-top: 1px solid var(--border); padding: 1.4rem 0 .4rem; }
.px-case-block:first-child { border-top: none; padding-top: .3rem; }
.px-case-block .q { border-top: none; padding: .6rem 0 .9rem; }
.opt.locked { cursor: default; }
.opt input { accent-color: var(--navy); margin-top: .25rem; }
fieldset.options legend.sr-only { position: absolute; }

/* Reflection */
.px-conf-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--border); font: .9rem Arial, sans-serif; }
.px-conf-row:first-child { border-top: none; }
.px-conf-row > span { min-width: 220px; color: var(--text-primary); font-weight: 700; }
.px-conf-row .px-seg button { min-width: 2.6rem; }
.px-field label { display: block; font: 700 .9rem/1.5 Georgia, serif; color: var(--text-primary); margin: 1rem 0 .4rem; }
.px-field textarea, .px-field input[type=text] { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: .65rem .8rem; font: .9rem/1.55 Arial, sans-serif; color: var(--text-primary); background: #fff; }
.px-field textarea { min-height: 110px; resize: vertical; }
.px-field textarea:focus, .px-field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-pale); }

/* Actions row (uses .btn from cisa-lesson.css) */
.px-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.px-actions .btn:disabled { background: var(--section-alt); color: var(--text-muted); cursor: not-allowed; }
.btn.ghost { background: var(--card-bg); color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost:hover { background: var(--blue-pale); }
.px-actions .score.ok { color: var(--correct); } .px-actions .score.bad { color: var(--wrong); }
.px-content .tip { margin: 1rem 0 0; }

/* Pager: buttons styled like the lesson pager links */
.px-pager .pager-inner { padding-left: 0; padding-right: 0; max-width: none; margin-top: 2rem; }
.px-pager .pager-inner > a, .px-pager .pager-inner > span { min-width: 0; }
.px-pager a.disabled { visibility: hidden; }

/* ---------- Summary report ---------- */
.px-report-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1.4rem; margin-bottom: 1rem; }
.px-report-head .px-field label { margin-top: 0; }
.px-report h3 { font: 400 .68rem Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 1.6rem 0 .5rem; }
.px-report table.data { margin: 0; }
.px-report td.num, .px-report th.num { text-align: right; white-space: nowrap; }
.px-report tr.px-total td { font-weight: 700; color: var(--text-primary); background: var(--blue-pale); }
.px-review { font: .86rem/1.6 Arial, sans-serif; color: var(--text-secondary); margin: 0; padding-left: 1.2rem; }
.px-review li { margin-bottom: .55rem; }
.px-review b { color: var(--text-primary); }
.px-refl { font: .88rem/1.6 Arial, sans-serif; color: var(--text-secondary); margin: 0 0 .9rem; }
.px-refl b { display: block; font-family: Georgia, serif; color: var(--text-primary); margin-bottom: .2rem; }
.px-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; font: .8rem Arial, sans-serif; color: var(--text-secondary); }
.px-sign div { border-top: 1px solid var(--text-primary); padding-top: .3rem; }
.px-print-only, .px-print-inline, .px-print-banner { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .px-layout { grid-template-columns: 1fr; gap: 1.3rem; padding: 1.5rem 1rem 2rem; }
  .px-rail { position: static; max-height: none; }
  .px-steps { display: flex; flex-wrap: wrap; gap: .3rem; }
  .px-steps li { margin: 0; }
  .px-step { width: auto; }
  .px-mastery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .px-mastery .eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  nav.topnav .nav-links { display: none; }
  .lesson-hero { padding: 2rem 1rem 1.8rem; }
  .px-pager .pager-inner { grid-template-columns: 1fr; }
}

/* ---------- Print: summary report only ---------- */
@media print {
  @page { size: letter; margin: 0.6in; }
  body { background: #fff; font-size: 11pt; }
  nav.topnav, .lesson-hero, .px-rail, .px-pager, footer, .px-actions, .px-no-print { display: none !important; }
  .px-layout { display: block; padding: 0; max-width: none; }
  .quiz-card { border: 0; padding: 0; }
  .quiz-card::before { display: none; }
  .px-print-only, .px-print-banner { display: block; }
  .px-print-inline { display: inline; }
  .px-print-banner { border-bottom: 3px solid var(--gold); padding-bottom: .4rem; margin-bottom: .9rem; }
  .px-print-banner .t { font: 700 8.5pt Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .px-print-banner .h { font: 700 17pt Georgia, serif; color: var(--text-primary); }
  .px-field input[type=text], .px-field textarea { border: 0; padding: 0; font-size: 12pt; box-shadow: none; }
  .px-field.px-empty { display: none; }
  table.data th, tr.px-total td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .px-report tr, .px-review li, .px-refl { break-inside: avoid; }
  .px-report h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Align the hero with the wider practice layout (rail + content) */
#app .lesson-hero-inner { max-width: 1176px; }
.px-review a, .px-refl a { color: var(--navy-light); }

/* Context tables inside stations */
.px-ctx { margin: 0 0 1.2rem; }
.px-ctx table.data th[scope=row] { background: transparent; color: var(--text-primary); font-family: Arial, sans-serif; font-size: .84rem; font-weight: 700; text-transform: none; letter-spacing: 0; text-align: left; }
.px-ctx caption { caption-side: top; text-align: left; font: 700 .8rem Arial, sans-serif; color: var(--text-secondary); padding: .55rem .9rem .45rem; background: var(--card-bg); }

/* Order station */
.px-order { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.px-ord-item { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; border: 1px solid var(--border); border-radius: 4px; padding: .6rem .8rem; background: var(--card-bg); font: .9rem/1.5 Arial, sans-serif; color: var(--text-primary); }
.px-ord-item.ok { border-color: var(--correct); background: var(--correct-bg); }
.px-ord-item.bad { border-color: var(--wrong); background: var(--wrong-bg); }
.px-ord-item .rationale { grid-column: 1 / -1; margin-top: .2rem; }
.px-ord-n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 900 .85rem 'Arial Narrow', Arial, sans-serif; }
.px-ord-btns { display: flex; gap: .3rem; }
.px-ord-btns button { width: 2.2rem; height: 2.2rem; border: 1px solid var(--border); background: var(--card-bg); color: var(--navy); border-radius: 4px; cursor: pointer; font-size: .8rem; }
.px-ord-btns button:hover:not(:disabled) { border-color: var(--gold); }
.px-ord-btns button:disabled { opacity: .35; cursor: default; }
.px-ord-end { font: 700 .66rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: .5rem 0 .4rem; }

/* Calc station */
.px-calc { display: flex; align-items: center; gap: .6rem; }
.px-calc input { width: 10rem; border: 1px solid var(--border); border-radius: 4px; padding: .6rem .75rem; font: 700 1rem Arial, sans-serif; color: var(--text-primary); background: #fff; }
.px-calc input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-pale); }
.px-calc input.ok { border-color: var(--correct); background: var(--correct-bg); }
.px-calc input.bad { border-color: var(--wrong); background: var(--wrong-bg); }
.px-calc span { font: .9rem Arial, sans-serif; color: var(--text-secondary); }

.px-nw { white-space: nowrap; color: inherit !important; }
@media (max-width: 700px) {
  .px-ctx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .px-ctx table.data { min-width: 560px; }
}

/* ===================== Hands-on labs ===================== */
.lb-check { list-style: none; margin: .6rem 0 0; padding: 0; }
.lb-check li { margin: 0 0 .15rem; }
.lb-ci { width: 100%; display: flex; gap: .5rem; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 4px; padding: .3rem .35rem; cursor: pointer; font: .78rem/1.3 Arial, sans-serif; color: var(--text-secondary); }
.lb-ci:hover { background: var(--blue-pale); }
.lb-ci-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font: 900 .66rem 'Arial Narrow', Arial, sans-serif; flex-shrink: 0; color: var(--text-muted); background: var(--card-bg); }
.lb-ci.ok .lb-ci-dot { background: var(--correct); border-color: var(--correct); color: #fff; }
.lb-ci.bad .lb-ci-dot { border-color: var(--wrong); color: var(--wrong); }
.lb-ci.rev .lb-ci-dot { background: var(--gold-pale); border-color: var(--gold); color: var(--gold); }

.lb-ticket { background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: 0 4px 4px 0; padding: 1.1rem 1.3rem; }
.lb-ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.lb-tno { font: 900 .95rem 'Arial Narrow', Arial, sans-serif; letter-spacing: .06em; color: var(--navy); }
.lb-prio { font: 700 .7rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--gold-pale); border: 1px solid var(--gold); border-radius: 3px; padding: .15rem .5rem; }
.lb-meta { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .25rem .8rem; margin: 0 0 .9rem; font: .86rem/1.5 Arial, sans-serif; color: var(--text-secondary); padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.lb-meta dt { font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; padding-top: .2rem; }
.lb-meta dd { margin: 0; color: var(--text-primary); }
.lb-body p { font: .92rem/1.65 Arial, sans-serif; color: var(--text-secondary); margin: 0 0 .7rem; }
.lb-body b { color: var(--text-primary); }
.lb-brief-list { margin: 0; padding-left: 1.3rem; font: .9rem/1.8 Arial, sans-serif; color: var(--text-primary); }
.lb-pts { font: 700 .7rem 'Arial Narrow', Arial, sans-serif; letter-spacing: .05em; color: var(--text-muted); background: var(--section-alt); border-radius: 3px; padding: .1rem .4rem; margin-left: .3rem; vertical-align: middle; white-space: nowrap; }
.lb-h3 { font: 700 1.25rem Georgia, serif; color: var(--text-primary); margin: 2rem 0 .8rem; scroll-margin-top: 80px; }
.lb-item { scroll-margin-top: 80px; }
.lb-item.ok .q-stem .qn { color: var(--correct); }
.lb-item .px-field input[type=text] { font-family: 'Courier New', monospace; }
.lb-debrief { margin-top: 1rem; background: var(--blue-pale); border: 1px solid var(--blue-pale-border); border-left: 4px solid var(--gold); border-radius: 0 4px 4px 0; padding: .9rem 1.1rem; font: .88rem/1.62 Arial, sans-serif; color: var(--text-secondary); }
.lb-debrief b { color: var(--text-primary); }
.lb-debrief-label { display: block; font: 900 .72rem Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }
.lb-debrief p { margin: 0 0 .5rem; }
.lb-debrief p:last-child { margin-bottom: 0; }
.lb-exp { color: var(--wrong); }

/* Tool tabs */
.lb-tool { background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; }
.lb-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--blue-pale); border-radius: 4px 4px 0 0; }
.lb-tabs [role=tab] { border: 0; background: transparent; padding: .75rem 1.1rem; font: 700 .76rem Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.lb-tabs [role=tab][aria-selected=true] { color: var(--text-primary); border-bottom-color: var(--gold); background: var(--card-bg); }
.lb-panel { padding: 1.1rem 1.2rem 1.2rem; }
.lb-doc { margin-bottom: 1.4rem; }
.lb-doc h4 { font: 700 1rem Georgia, serif; color: var(--text-primary); margin: 0 0 .5rem; }
.lb-doc ul { margin: 0; padding-left: 1.2rem; font: .88rem/1.6 Arial, sans-serif; color: var(--text-secondary); }
.lb-doc code, .lead-p code { font: .82rem 'Courier New', monospace; background: var(--section-alt); padding: .05rem .3rem; border-radius: 3px; color: var(--text-primary); }

/* SQL console */
.sq-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .7rem; }
.sq-lab { font: 700 .72rem Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sq-bar select { font: .86rem Arial, sans-serif; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text-primary); max-width: 100%; }
.sq-status { font: .78rem Arial, sans-serif; color: var(--text-muted); margin-left: auto; }
.sq-status.ok { color: var(--correct); } .sq-status.bad { color: var(--wrong); font-weight: 700; }
.sq-ed { width: 100%; min-height: 170px; resize: vertical; font: .88rem/1.55 'Courier New', monospace; color: #0b2440; background: #f7f9fc; border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: 4px; padding: .75rem .9rem; tab-size: 2; }
.sq-ed:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
.sq-run { display: flex; align-items: center; gap: .7rem; margin: .7rem 0 .2rem; }
.sq-run .btn:disabled { background: var(--section-alt); color: var(--text-muted); cursor: wait; }
.sq-kbd { font: .72rem Arial, sans-serif; color: var(--text-muted); }
.sq-meta { font: .78rem Arial, sans-serif; color: var(--text-muted); margin: .6rem 0 .4rem; }
.sq-res { max-height: 380px; overflow: auto; }
.sq-res table.data th { position: sticky; top: 0; }
.sq-res table.data td { font: .8rem 'Courier New', monospace; white-space: nowrap; padding: .35rem .7rem; }
.sq-null { color: var(--text-muted); font-style: italic; }
@media print { .lb-tool, .lb-h3, #lb-items { display: none !important; } }

.lb-locked { opacity: .7; }
.lb-locked .q-stem .qn { color: var(--text-muted); }

/* Headings receive programmatic focus on step change; they are not interactive, so no outline */
#px-h2:focus, #px-h2:focus-visible { outline: none; }

/* ===================== View tools: pop-out windows and side-by-side ===================== */
.lb-viewbar, .px-viewbar { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: center; margin: 0 0 1rem; padding: .6rem .8rem; background: var(--blue-pale); border: 1px solid var(--blue-pale-border); border-radius: 4px; font: .8rem/1.4 Arial, sans-serif; color: var(--text-secondary); }
.lb-viewbar-label { font: 700 .68rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.lb-viewbar select { font: .84rem Arial, sans-serif; padding: .42rem .55rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text-primary); max-width: 100%; }
.lb-viewbar .btn, .px-viewbar .btn { padding: .45rem .9rem; font-size: .72rem; }
.lb-viewbar .btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 1100px) {
  body.lb-split-on .px-layout { grid-template-columns: minmax(0, 1fr); max-width: 1720px; }
  body.lb-split-on .px-rail { display: none; }
  body.lb-split-on #app .lesson-hero-inner { max-width: 1656px; }
  body.lb-split-on .lb-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(380px, 1fr); gap: 1.4rem; align-items: start; }
  body.lb-split-on .lb-split-tool, body.lb-split-on .lb-split-list { position: sticky; top: 72px; max-height: calc(100vh - 86px); overflow: auto; overscroll-behavior: contain; }
  body.lb-split-on .lb-split-list .lb-h3 { margin-top: 0; position: sticky; top: 0; z-index: 2; background: var(--body-bg); padding: .1rem 0 .5rem; }
}
@media (max-width: 1099px) { #lb-split-btn { display: none; } }

/* Pop-out window document */
body.px-popwin { margin: 0; background: var(--body-bg); }
.px-pop-head { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--card-bg); border-bottom: 3px solid var(--gold); padding: .7rem 1.1rem; }
.px-pop-kicker { margin: 0; font: 700 .64rem Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.px-pop-head h1 { margin: .15rem 0 0; font: 700 1.2rem/1.25 Georgia, serif; color: var(--text-primary); }
.px-pop-note { margin: .2rem 0 0; font: .74rem Arial, sans-serif; color: var(--text-muted); }
.px-pop-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.px-pop-actions .btn { padding: .45rem .9rem; font-size: .72rem; }
.px-pop-main { padding: 1rem 1.1rem 2rem; }
.px-pop-main [role="tabpanel"] { display: block !important; }
.px-pop-main [disabled], .px-pop-main button, .px-pop-main select, .px-pop-main input, .px-pop-main textarea, .px-pop-main summary { pointer-events: none; cursor: default; }
.px-pop-main button[disabled] { opacity: .7; }
@media print {
  .lb-viewbar, .px-viewbar { display: none !important; }
  body.px-popwin .px-pop-actions { display: none !important; }
  body.px-popwin .px-pop-head { position: static; }
  body.px-popwin .lb-tool, body.px-popwin #lb-tool { display: block !important; }
}
