.sheet-wrap { max-width: 1000px; margin: auto; padding: 26px 18px 50px; }
.sheet-controls h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; margin: 18px 0 12px; }
.sheet-controls p { line-height: 1.6; }
.sheet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.sheet-options label { display: grid; gap: 7px; font-weight: 700; }
.sheet-options[hidden] { display: none; }
.sheet-options input, .sheet-options select { width: 100%; min-width: 0; box-sizing: border-box; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.sheet-hint { font-size: .88rem; color: var(--muted, #b9bec5); }
.paper { position: relative; isolation: isolate; background: #fff; color: #151515; padding: 28px; margin-top: 28px; border-radius: 8px; font: 14px Arial, sans-serif; }
.paper-content { position: relative; z-index: 1; }
.watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-32deg); color: #e5e5e5; font: bold clamp(30px, 7vw, 75px) Arial, sans-serif; white-space: nowrap; pointer-events: none; }
.paper-heading { display: flex; gap: 12px; justify-content: space-between; border-bottom: 2px solid #222; padding-bottom: 10px; }
.paper-heading strong { font-size: 22px; }
.paper-heading h2 { font: bold 17px Arial, sans-serif; margin: 6px 0 0; color: #111; }
.paper-heading > span { font-size: 10px; text-align: right; }
.layout-title { font-weight: bold; margin: 12px 0 6px; }
.format-note { font-size: 11px; line-height: 1.3; margin: 0 0 10px; }
.paper-details { display: grid; grid-template-columns: 2fr 1fr; gap: 8px 18px; margin-bottom: 14px; }
.paper-details div { border-bottom: 1px solid #888; min-height: 21px; overflow-wrap: anywhere; }
.paper-details .wide { grid-column: 1 / -1; }
.score-grid { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; margin-top: 0; }
.score-grid caption { text-align: left; font-size: 11px; margin-bottom: 6px; }
.score-grid th, .score-grid td { border: 1px solid #555; text-align: center; height: 28px; padding: 2px; color: #111; }
.score-grid th { text-transform: none; letter-spacing: normal; font-size: 12px; }
.score-grid .notes-column { width: 34%; }
.score-grid tfoot th { text-align: right; padding-right: 10px; }
.paper-notes { margin-top: 16px; }
.paper-notes div { height: 24px; border-bottom: 1px solid #888; }
.paper footer { border-top: 1px solid #555; padding-top: 9px; margin-top: 16px; text-align: center; font-size: 10px; line-height: 1.5; }
@media (max-width: 600px) {
  .sheet-options { grid-template-columns: 1fr; }
  .paper { padding: 12px; font-size: 12px; }
  .score-grid { font-size: 10px; }
  .score-grid th { font-size: 9px; overflow-wrap: anywhere; }
  .paper-heading strong { font-size: 18px; }
  .paper-heading h2 { font-size: 14px; }
}
@page { size: auto; margin: 10mm; }
@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .sheet-controls, noscript { display: none !important; }
  .sheet-wrap { max-width: none; padding: 0; margin: 0; }
  .paper { margin: 0; padding: 0; border-radius: 0; font-size: 10pt; break-inside: avoid; }
  .paper + .paper { break-before: page; page-break-before: always; }
  .watermark { font-size: 52pt; color: #e5e5e5; }
  .paper-heading { padding-bottom: 2mm; }
  .paper-heading strong { font-size: 17pt; }
  .paper-heading h2 { font-size: 12pt; }
  .layout-title { margin: 2mm 0 1mm; }
  .format-note { font-size: 8pt; margin-bottom: 2mm; }
  .paper-details { gap: 1.5mm 6mm; margin-bottom: 2mm; }
  .paper-details div { min-height: 5mm; }
  .score-grid { font-size: 9pt; }
  .score-grid th, .score-grid td { height: 6mm; padding: 0; box-sizing: border-box; }
  .score-grid th { font-size: 8pt; }
  .score-grid.compact-grid th, .score-grid.compact-grid td { height: 4.8mm; }
  .paper-notes { margin-top: 3mm; }
  .paper-notes div { height: 5mm; }
  .paper footer { margin-top: 3mm; padding-top: 2mm; font-size: 8pt; }
}
