.header-actions,.section-actions{display:flex;align-items:center;gap:8px}.header-actions .small-button{min-height:34px}.inline-choice{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#79866e;white-space:nowrap}.inline-choice input{accent-color:var(--orange)}.phrase-tools{display:flex;align-items:center;gap:12px}.step-sound-choice{margin-bottom:12px}.share-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #d9ddcf;border-radius:12px;background:#fcfaf4;color:var(--ink);padding:22px;box-shadow:0 16px 80px #18251c45}.share-dialog::backdrop{background:#18251c80}.share-dialog-fallback{position:fixed;inset:0;margin:auto;z-index:99}.share-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.share-dialog h2{font:24px var(--serif);margin:0}.share-dialog p{font-size:12px;color:#7a846e;line-height:1.6}.share-dialog label{display:block;font-size:11px;color:#748069}.share-dialog input{display:block;width:100%;padding:10px;border:1px solid #d6ddca;border-radius:5px;background:#fffef9;font:11px var(--mono);color:#4c5a42;margin:7px 0 12px}.share-dialog-buttons{display:flex;gap:8px;flex-wrap:wrap}.share-dialog .small-button{min-height:42px;text-decoration:none}.share-download{display:flex;align-items:center;justify-content:center;margin-top:18px;padding:11px;border:1px solid #cdd6bd;border-radius:5px;color:#5a7049;background:#f1f3e9;text-decoration:none;font-size:12px}.share-dialog #share-status{min-height:20px;color:#9f562f}.share-close{font-size:24px;background:transparent;color:#7d8c70;min-width:40px;min-height:40px}#seek{touch-action:none;min-height:30px}#seek::-webkit-slider-thumb{width:17px;height:17px;margin-top:-7px}body.is-scrubbing #seek{cursor:grabbing}#lesson-print-root{display:none}
@media(max-width:620px){.header-actions{gap:3px}.header-actions .small-button{padding:6px 9px;min-height:40px}.section-actions{gap:5px}.section-actions .small-button{font-size:9px;padding:6px 8px;min-height:40px}.phrase-tools .small-print{display:none}.inline-choice{font-size:10px;min-height:38px}.phrase-tools{gap:4px}.share-dialog{padding:16px}#seek{min-height:34px}.section-heading{gap:8px}.section-heading h2{font-size:18px}}
@media(max-width:1100px) and (max-height:600px) and (orientation:landscape){.header-actions .small-button{min-height:28px;font-size:9px}#seek{min-height:22px}}
@media print{
  @page{size:A4 portrait;margin:12mm}
  html,body{width:auto!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body>.page-shell,body>.share-dialog{display:none!important}
  #lesson-print-root{display:block!important;width:100%}
  .lesson-print-page{break-after:page;page-break-after:always;break-inside:avoid;page-break-inside:avoid;box-shadow:none!important;border:0!important;margin:0!important}
  .lesson-print-page:last-child{break-after:auto;page-break-after:auto}
  .chord-chart-paper.lesson-print-page{width:100%;min-width:0;padding:0}
  .lesson-print-page .chord-chart-paper-heading{padding:0 0 8mm;font-size:12pt}
  .lesson-print-page .chord-chart-cells{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:44mm;min-height:220mm}
  .lesson-print-page .chord-chart-cell{width:auto;height:44mm;border:0;background:transparent;box-shadow:none}
  .lesson-print-page .legacy-chord-diagram{width:100%;height:44mm}
  .lesson-print-page .chord-chart-bar-label{top:0;left:3mm;width:19mm;height:6mm;font-size:10pt;border-color:#222;color:#111}
  .lesson-print-page .chord-chart-bar-line{top:10mm;bottom:3mm;left:9mm;background:#222}
  .lesson-print-page .has-beat-before:before{top:10mm;bottom:3mm;left:-2mm}
  .lesson-print-page .chord-chart-paper-footer{padding:5mm 0 0;font-size:9pt}
  .lesson-print-page svg text{fill:#111!important}
}
.phrase-panel #tab-roll svg{max-height:none}

.instrument-footer{justify-content:flex-end}
