.worksheet-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 12px}.worksheet-toolbar button{width:auto}.worksheet-toolbar [hidden]{display:none!important}.worksheet-toolbar button:disabled{opacity:.5;cursor:default}.worksheet-toolbar span{font-size:14px;color:#52616e}.worksheet-mode #notation{display:block;padding:8px 12px}.worksheet-exercise{padding:18px 0;border-bottom:1px solid #d6dfe6;break-inside:avoid;page-break-inside:avoid}.worksheet-exercise:last-child{border-bottom:0}.exercise-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 8px 8px;font-size:14px}.exercise-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-size:16px}.exercise-select{width:20px!important;height:20px;accent-color:#a92339}.worksheet-system{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0}.worksheet-system svg{width:100%;height:auto;min-width:0}.worksheet-mode .system{margin:4px 0}.worksheet-mode .hint{display:none}@media print{@page{size:portrait;margin:10mm}body{background:white!important;color:#17232c}header,nav,form,.controls,details,.drum-controls,.worksheet-toolbar,.heading,.lab-heading,.hint,.footnote,.legend,footer,#error,.exercise-select,.actions{display:none!important}main{padding:0!important;max-width:none!important;margin:0!important}.sheet,.score{border:0!important;border-radius:0;margin:0!important;padding:0!important;background:white!important;overflow:visible}.scoretop{padding:0 0 8px!important;display:block!important}.scoretop h2,.sheet h2{font-size:16pt!important;margin:0 0 5px}.scoretop .meta,.sheet #summary{display:block;font-size:9pt;margin:0 0 8px}.worksheet-mode #notation{padding:0!important;display:block!important}.worksheet-exercise{padding:7px 0!important;border:0!important;break-inside:avoid;page-break-inside:avoid}.exercise-heading{margin:0 0 2px!important;font-size:9pt}.exercise-choice{font-size:10pt!important}.worksheet-mode .system{margin:0!important}.worksheet-system{margin:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.worksheet-mode .system{aspect-ratio:1600/215}.worksheet-mode .worksheet-exercise .system{height:auto}#notation:not(.unused){gap:8px 0}body:not(.worksheet-mode) #notation{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Pitched worksheets keep the staff size; remove blank vertical padding only. */
@media print{body.pitched-worksheet .worksheet-exercise{padding:2px 0!important}body.pitched-worksheet .exercise-heading{margin:0 0 1px!important;line-height:1.15}body.pitched-worksheet .exercise-choice{font-size:9pt!important}body.pitched-worksheet .system{aspect-ratio:auto!important;margin:0!important}body.pitched-worksheet .sheet #summary{margin-bottom:5px!important;line-height:1.25}body.pitched-worksheet .sheet h2{margin-bottom:3px!important}}
