:root {
  --paper:#f6f3ea;
  --ink:#282c27;
  --orange:#935038;
  --line:#d7d5c9;
}
.mast {border-bottom:1px solid var(--line)}
.mast-inner,.page-shell {width:min(1420px,100%);margin-inline:auto;padding-inline:clamp(16px,4.4vw,65px)}
.mast-inner,.mast nav,.mast a,.record-crate header {display:flex;align-items:center}
.mast-inner,.record-crate header {justify-content:space-between;gap:16px}
.mast a {color:var(--ink);text-decoration:none}
.mast .brand {gap:7px;font:600 27px/1 Georgia,serif;letter-spacing:-1.4px}
.strings-logo {width:18px;height:24px;transform:skew(-14deg);background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px);clip-path:polygon(0 34%,100% 0,100% 67%,0 100%)}
.mast nav {gap:clamp(18px,2.4vw,38px)}
.mast nav a {min-height:63px;border-bottom:3px solid transparent;padding-top:3px;font-size:15px}
.mast nav a[aria-current] {border-color:var(--orange);font-weight:650}
.app-header {margin-top:16px;padding:clamp(14px,2vw,28px) clamp(14px,2.2vw,32px) 6px;background:var(--stage);color:#f8f3e6;border-radius:8px 8px 0 0}
.song-title img {flex:none;width:60px;height:60px;object-fit:cover;border-radius:2px}
.song-title h1 {font:normal clamp(27px,3.15vw,48px)/1.03 Georgia,serif;letter-spacing:-.045em;overflow-wrap:anywhere}
.song-title p {margin:5px 0 0;font-size:13px;line-height:1.25;color:#bfc5b8}
.header-actions {flex:none;flex-wrap:wrap;justify-content:flex-end}
.header-actions a,.header-actions .text-button {color:#e3e7db;font-size:12px;text-underline-offset:4px}
.header-actions .text-button:hover {background:#364139}
.header-actions .small-button {color:#f2efde;background:transparent;border-color:#677063;border-radius:4px;min-height:36px;font-size:12px;padding-inline:12px}
.header-actions .small-button:hover,.header-actions .small-button[aria-pressed=true] {background:#465346}
.header-actions a {margin-right:5px}
.instrument-panel {border:0;border-radius:0 0 8px 8px}
.instrument-header {padding-inline:clamp(14px,2.2vw,32px)}
.instrument-heading {flex-wrap:wrap;gap:7px clamp(12px,1.8vw,24px)}
.instrument-heading h2 {display:block;color:#d7dece;font-size:13px;line-height:1.25}
.instrument-heading .board-legend {color:#bac4b2;font-size:11px;gap:10px}
.instrument-heading .performance-readout {border-inline-start:1px solid #64705f;padding-inline-start:12px}
.instrument-panel .board-scroll {margin-bottom:5px}
.transport,.phrase-panel,.full-song-panel {border-radius:5px}
.transport {padding:14px 18px 9px}
.transport-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 14px;border-top:1px solid #e3e1d7;margin-top:7px;padding-top:3px}
.transport-metadata {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 16px;min-width:0;font:12px/1.45 var(--sans);color:#59614f}
.transport-notes {white-space:nowrap;font-variant-numeric:tabular-nums}
.transport-notes strong {font-weight:600}
.practice-toggle {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:5px 0 5px 7px;min-height:33px;margin-left:auto;white-space:nowrap;color:#4a5545;background:transparent;font:600 12px/1.2 var(--sans)}
.practice-toggle::after {content:'';width:6px;height:6px;border-right:1.5px solid;border-bottom:1.5px solid;transform:translateY(-2px) rotate(45deg)}
.practice-toggle[aria-expanded=true]::after {transform:translateY(2px) rotate(225deg)}
.practice-toggle:hover,.practice-toggle:focus-visible {color:#813c27}
.phrase-tools[role=group] {display:inline-flex;align-items:stretch;gap:0;padding:2px;border:1px solid #c9cdbf;border-radius:5px}
.phrase-tools button {background:transparent;border:0;border-radius:3px;padding:6px 10px;min-height:30px;font:500 12px/1.2 var(--sans);color:#555f4c;white-space:nowrap}
.phrase-tools button[aria-pressed=true] {background:#354539;color:#fffaf0}
.share-preview-link {display:inline-flex;align-items:center;min-height:36px;font-size:13px;color:#714532;text-decoration:underline;text-underline-offset:3px}
.small-print,.transport label,.control-label,.inline-choice,.options-panel {color:#58614f}
.primary-controls .play-button {background:var(--orange)}
.phrase-panel .section-heading h2,.full-song-panel .section-heading h2 {font-size:24px}
.section-heading .small-button,.section-actions .small-button,.transport .small-button {font-size:12px}
.record-crate {padding-block:clamp(24px,4vw,48px)}
.record-crate h2 {margin:0;font:normal clamp(25px,3vw,36px)/1.1 Georgia,serif;letter-spacing:-.04em}
.record-crate header a {color:#764a39;text-underline-offset:4px}
#crate-records {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(10px,1.6vw,22px);margin-top:18px}
#crate-records a {color:var(--ink);text-decoration:none;min-width:0}
#crate-records img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:2px;background:#e4dfd3}
#crate-records strong,#crate-records span {display:block}
#crate-records strong {font:normal clamp(14px,1.5vw,20px)/1.14 Georgia,serif;margin-top:7px}
#crate-records span {font-size:12px;color:#66695d;margin-top:3px}
#crate-records a:hover strong {text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px) {
  .mast-inner,.page-shell {padding-inline:12px}
  .mast .brand {font-size:22px;gap:4px}
  .strings-logo {width:13px;height:20px}
  .mast nav {gap:clamp(8px,2.7vw,15px)}
  .mast nav a {font-size:13px;min-height:48px}
  .app-header {margin-top:9px;align-items:start;flex-wrap:wrap;gap:8px;padding:14px 12px 3px}
  .song-title {width:100%}
  .song-title img {width:46px;height:46px}
  .song-title p {font-size:12px}
  .header-actions {flex:1;justify-content:flex-start;gap:10px}
  .header-actions .fullscreen-button {margin-left:auto;font-size:0;gap:0}
  .header-actions .small-button {min-height:36px}
  .header-actions a {min-height:36px;display:inline-flex;align-items:center}
  .instrument-header {flex-wrap:wrap;gap:5px 10px}
  .instrument-heading {gap:5px 10px}
  .instrument-heading .board-legend {gap:6px;font-size:10px}
  .instrument-heading .performance-readout {padding-inline-start:7px}
  .board-settings {margin-left:auto}
  .transport-metadata {font-size:11px;gap:2px 9px}
  .transport {padding:10px 10px 7px}
  .section-actions .small-button,.transport .small-button {font-size:10px}
  .phrase-panel .section-heading h2,.full-song-panel .section-heading h2 {font-size:20px}
  #crate-records {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:16px}
}
@media(max-width:550px) {
  .mast-inner {flex-wrap:wrap;gap:0;padding-top:8px}
  .mast nav {width:100%;justify-content:space-between;gap:4px}
  .mast nav a {font-size:13px;min-height:40px}
}
@media(max-width:1100px) and (max-height:600px) and (orientation:landscape) {
  .mast nav a {min-height:34px;font-size:12px}
  .mast .brand {font-size:21px}
  .app-header {margin-top:4px;padding:5px 12px 2px;min-height:36px;flex-wrap:nowrap;align-items:center}
  .song-title {width:auto}
  .song-title img {width:33px;height:33px}
  .song-title h1 {font-size:23px}
  .song-title p {margin-top:1px;font-size:10px}
  .header-actions {flex:none;gap:8px}
  .header-actions .small-button,.header-actions .text-button {min-height:30px}
  .transport {padding:5px 10px 6px}
  .is-phone-landscape .control-foot {position:relative;right:auto;bottom:auto}
  .is-phone-landscape .practice-row #status {margin-right:0}
  .is-phone-landscape .control-foot .options-panel {margin-left:auto}
  .is-phone-landscape .transport-footer {margin-top:3px;padding-top:1px}
}
@media(pointer:coarse) {
  .practice-toggle,.phrase-tools button {min-height:44px}
}
@media print {body>.mast {display:none!important}}
