.print-workbench { display: grid; grid-template-columns: 16rem minmax(0,1fr); gap: 1rem; align-items: start; }
.print-controls h2 { font-size: 1.17rem; }
.print-controls fieldset { margin: .7rem 0 1rem; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: .55rem; font-size: .9rem; }
.print-controls legend { padding-inline: .3rem; color: var(--muted); }
.print-controls .toggle { display: flex; gap: .6rem; align-items: center; min-height: 36px; }
.print-controls input { accent-color: var(--accent); width: 1.1em; height: 1.1em; }
.print-trigger { width: 100%; }
#print-status { margin: .6rem 0 0; }
#print-status:empty { display: none; }
.preview h2 { font-size: 1.07rem; }
.phone-instructions { display: none; }
.preview-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: .65rem; box-shadow: 0 12px 40px #0006; }
.paper { background: #fff; color: #141924; padding: 1.35rem; min-width: 780px; color-scheme: light; }
.paper-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.paper-heading h3 { margin: 0; font-size: 1.5rem; }
.paper-heading span { font-size: .8rem; font-weight: 740; color: #4b5463; white-space: nowrap; }
.element-grid { display: grid; grid-template-columns: repeat(18,minmax(0,1fr)); grid-template-rows: 1.2rem repeat(7,minmax(2.76rem,auto)) .7rem repeat(2,minmax(2.76rem,auto)); gap: 2px; margin-top: .45rem; }
.group-label { display: grid; place-content: end center; font-size: .65rem; font-weight: 650; color: #536070; }
.tile, .f-note { border: 1px solid #626b78; min-width: 0; padding: .13rem .13rem .15rem; }
.tile { background: var(--paper-color,#fff); line-height: 1.04; }
.tile > span, .tile > strong { display: block; }
.tile > strong { font-size: .94rem; min-height: .94rem; }
.tile .z { font-size: .52rem; min-height: .56rem; font-weight: 600; }
.tile .name { font-size: clamp(.32rem,.55vw,.5rem); letter-spacing: -.015em; overflow-wrap: anywhere; }
.tile .mass { font-size: .52rem; }
.f-note { display: grid; place-items: center; text-align: center; font-size: .59rem; color: #515b6b; background: #f4f4f5; }
.paper[data-layout="practice"] .tile, .paper[data-layout="mono"] .tile { background: white; }
.paper[data-layout="practice"] .tile { border-color: #92969d; }
.paper[data-layout="practice"] .tile .z { color: #444f61; }
.paper-key { margin: .7rem 0 0; padding: 0; list-style: none; display: flex; gap: .17rem .55rem; flex-wrap: wrap; color: #3a4656; font-size: .57rem; }
.paper-key li { display: flex; gap: .19rem; align-items: center; }
.paper-key li::before { content: ""; width: .52rem; height: .52rem; background: var(--paper-color); border: 1px solid #7d8896; }
.paper-note { margin: .48rem 0 0; font-size: .58rem; color: #434b59; }
.download-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.download-grid > section { padding: .9rem; border: 1px solid var(--border); background: var(--bg); border-radius: .7rem; }
@media (max-width: 950px) {
  .print-workbench { grid-template-columns: minmax(0,1fr); }
  .phone-instructions { display: block; }
}
@media (max-width: 650px) {
  .download-grid { grid-template-columns: 1fr; }
}
@media print {
  :root { font-size: 14px; color-scheme: light; }
  html, body { margin: 0; background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > .page-header, body > footer, main > h1, main > p, .downloads, .print-controls, .preview > h2, .preview > p { display: none !important; }
  main.wrap, main.wrap > .print-workbench { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
  .preview-scroll { overflow: visible; border: 0; box-shadow: none; }
  .paper { min-width: 0; width: 100%; padding: 0; }
  .element-grid { gap: 1.5px; grid-template-rows: 1rem repeat(7, minmax(2.45rem, auto)) .65rem repeat(2, minmax(2.45rem, auto)); }
  .tile .name { font-size: .51rem; }
  .paper-heading, .element-grid, .paper-key, .paper-note { break-inside: avoid; }
}

#classroom-packs { margin-top: 1.8rem; }
.classroom-downloads img { display: block; width: 100%; height: 8rem; object-fit: contain; background: #111622; border: 1px solid #495872; border-radius: .5rem; margin-bottom: .65rem; }
.classroom-downloads .button { min-height: 44px; display: inline-flex; align-items: center; }
