
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#232821;background:#f8f9f5;font-synthesis:none;--accent:#4d6842;--line:#e2e6dc;--muted:#737b6d}*{box-sizing:border-box}body{margin:0;display:flex}button,input,select{font:inherit}button,select,input[type=checkbox],input[type=range]{cursor:pointer}button{border:0;border-radius:8px;background:#edf0e8;color:inherit;padding:9px 13px;transition:background .15s}button:hover{background:#dfe7d7}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #819b65;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.outline{border:1px solid var(--line);background:transparent}select,input[type=number],input[type=text],input:not([type]){border:1px solid var(--line);border-radius:7px;background:white;padding:8px 10px;min-width:0;color:inherit}label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--muted)}.library{width:250px;height:100vh;position:sticky;top:0;padding:28px 18px;flex-shrink:0;background:#edf0e8;border-right:1px solid var(--line);overflow-y:auto}.brand{display:flex;gap:8px;align-items:center;color:#263322;text-decoration:none;font-size:27px;line-height:1;margin:0 8px 42px;font-weight:800}.brand b{font-size:17px;letter-spacing:-.5px}.brand span{color:#91a977}.library>.eyebrow{margin:0 10px 20px}.song{width:100%;display:flex;text-align:left;align-items:center;gap:10px;padding:12px 10px;margin:3px 0;background:transparent}.song.active{background:#fff;box-shadow:0 2px 8px #26332207}.song .number{font-size:10px;color:#85907d;min-width:18px}.song b{display:block;font-size:14px;line-height:1.5}.song small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.aside-note{font-size:12px;line-height:1.7;color:var(--muted);margin:28px 10px}main{max-width:1360px;width:calc(100% - 250px);margin:auto;padding:38px 44px 70px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}header h1{font-size:34px;line-height:1.5;margin:8px 0;letter-spacing:-.7px}header p{margin:0;color:var(--muted);font-size:13px}header .eyebrow{font-size:11px}.performance{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;align-items:center;gap:28px;box-shadow:0 6px 30px #25311b03;position:sticky;top:12px;z-index:5}.chord-now{min-width:150px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px;padding-right:22px}.chord-now strong{font-size:44px;line-height:1.3;font-weight:650;letter-spacing:-1.5px;overflow-wrap:anywhere}.chord-now>span:last-child{font-size:11px;color:var(--muted)}.transport{min-width:0;flex:1}.transport-top{display:flex;align-items:center;gap:12px;font-size:12px}.play{background:#4d6842;color:white;width:42px;height:42px;border-radius:50%;font-size:17px}.play:hover{background:#3a5330}.speed-label{margin-left:auto}.speed-label select{padding:5px}#clock{white-space:nowrap;font-variant-numeric:tabular-nums;color:#636d5d}#seek{width:100%;height:4px;margin:22px 0 18px;accent-color:var(--accent)}.audio-views{display:flex;gap:7px;flex-wrap:wrap}.audio-views button{font-size:10px;padding:5px 9px;background:transparent;color:var(--muted)}.audio-views button.active{background:#edf2e7;color:#35512a}.toolbar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:25px 0}.toolbar label{flex-direction:column;align-items:flex-start;gap:6px}.toolbar select{min-width:140px}.tempo{margin-left:auto;font-size:12px;color:var(--muted);max-width:160px;line-height:1.5}.toolbar .follow{flex-direction:row;align-items:center}.toolbar .follow input{accent-color:var(--accent)}.grid-options{display:flex;gap:15px;align-items:end;flex-wrap:wrap;background:#eef1e9;padding:16px;border-radius:10px;margin-bottom:20px}.grid-options[hidden]{display:none}.grid-options label{flex-direction:column;align-items:start}.grid-options input{max-width:110px}.grid-options small{flex-basis:100%;font-size:11px;color:var(--muted)}.chart-heading{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.chart-heading h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.chart-heading span{font-size:11px;color:var(--muted)}.notice{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 22px}#chart{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 5px}.bar{min-width:0;scroll-margin-top:245px}.bar-head{display:flex;width:100%;justify-content:space-between;background:transparent;border-radius:0;padding:8px 5px;color:#8a9085;font-size:10px}.bar-head:hover{background:transparent;color:#35412d}.bar.current .bar-head{color:#35412d}.bar-lane{display:grid;gap:2px;border-left:3px solid #838a7d;padding-left:3px}.beat-cell{position:relative;min-width:0;height:76px;padding:10px 5px 22px;text-align:left;border:1px solid #e1e4dc;border-radius:4px;background:#fff;display:flex;align-items:center;overflow:hidden}.beat-cell:hover{background:#edf0e8}.beat-cell.active{background:#343833;color:white;border-color:#343833}.chord-name{white-space:nowrap;font-size:20px;letter-spacing:-.6px;line-height:1.2;overflow:hidden;text-overflow:ellipsis}.chord-name sup{font-size:11px;letter-spacing:-.3px;vertical-align:super;margin-left:1px}.beat-number{position:absolute;bottom:6px;left:7px;font-size:9px;color:#9da493}.beat-cell.active .beat-number{color:#c2c9b9}.view-switch{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;margin-left:auto;margin-right:15px}.view-switch button{background:transparent;padding:6px 15px;font-size:12px;border-radius:5px}.view-switch button[aria-pressed=true]{background:#343833;color:white}#edit-current{background:transparent;text-align:left;padding:0}#chart.raw-chart{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.raw-chord{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:5px}.raw-time{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}
.diagnostics{margin-top:30px;font-size:12px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);padding-top:18px}.diagnostics summary{cursor:pointer}.diagnostics p{max-width:800px}.status{font-size:12px;color:var(--muted);margin-top:20px}dialog{border:1px solid var(--line);border-radius:16px;padding:25px;width:430px;max-width:calc(100vw - 24px);box-shadow:0 20px 90px #17201030;color:inherit;background:#fafbf8}dialog::backdrop{background:#14201055;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:20px;margin:0}.dialog-head button{background:transparent;font-size:23px}.dialog-head+p{font-size:12px;color:var(--muted)}dialog label{display:flex;flex-direction:column;align-items:stretch;margin-top:15px}.time-inputs{display:flex;gap:14px}.time-inputs label{width:50%}#alternatives{display:flex;gap:8px;flex-wrap:wrap}#alternatives button{font-size:12px}.dialog-actions{display:flex;justify-content:space-between;margin:24px 0 14px}.primary{background:var(--accent);color:white}dialog small{color:var(--muted);font-size:11px}#edit-error{color:#a2382a;font-size:12px}.saved-dot{color:#55863c}@media(min-width:1600px){main{padding:50px 60px}}@media(max-width:1150px){.library{width:210px}main{width:calc(100% - 210px);padding:25px}.performance{gap:16px;padding:18px}.chord-now{min-width:115px}.transport-top{gap:7px}.transport-top>button:not(.play){font-size:10px;padding:8px}.speed-label{font-size:0}.toolbar{gap:12px}#chart{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){body{display:block}.library{position:static;width:100%;height:auto;padding:18px}.brand{margin:0 0 15px}.library>.eyebrow,.aside-note{display:none}#song-list{display:flex;overflow:auto;gap:5px}.song{width:180px;min-width:180px;margin:0}.song b{font-size:12px;max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}main{width:100%;padding:22px}.performance{top:0}header h1{font-size:27px}.toolbar label{flex-grow:1}.toolbar select{width:100%}.tempo{margin-left:0}#chart{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:570px){main{padding:18px 12px}.performance{padding:15px;display:block}.chord-now{border-right:0;flex-direction:row;align-items:center;gap:12px;padding:0 0 12px}.chord-now>.eyebrow{display:none}.chord-now strong{font-size:30px;min-width:75px}.transport-top{gap:7px}.play{width:34px;height:34px}.speed-label{margin-left:auto}.transport-top>button:not(.play){padding:7px}.transport-top #loop{font-size:0}.transport-top #loop:after{content:'Loop';font-size:10px}#seek{margin:17px 0 13px}header{gap:10px;margin-bottom:20px}header h1{font-size:25px}header>button{font-size:10px;white-space:nowrap}.toolbar{gap:12px;padding:20px 0}.toolbar>label:first-child{width:100%}.toolbar .tempo{font-size:11px}#chart{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bar{scroll-margin-top:205px}.chart-heading span{max-width:160px;text-align:right;font-size:10px}.notice{font-size:11px}}
.speed-label select{font-size:12px;min-width:47px}@media(max-width:1150px){#chart{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:570px){#chart{grid-template-columns:minmax(0,1fr);gap:12px}.beat-cell{height:74px;padding-left:10px}.chord-name{font-size:24px}.chord-name sup{font-size:13px}#chart.raw-chart{grid-template-columns:minmax(0,1fr)}.view-switch{margin-right:10px}.chart-heading h2{font-size:15px}}
/* Sticky playback sync control. */
.sync-toggle{display:flex;flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 9px;color:var(--muted);white-space:nowrap}.sync-toggle input{accent-color:var(--accent)}.sync-toggle:has(input:checked){background:#edf2e7;color:#35512a;border-color:#cbd8c0}
.bar{scroll-margin-top:0!important}

/* Compact, neutral scroll rails across demo pages and their libraries. */
:root{scrollbar-color:#626861 #202121;scrollbar-width:thin}
.library,#song-list{scrollbar-width:thin;scrollbar-color:#575e57 transparent;scrollbar-gutter:stable}
.library:hover,#song-list:hover{scrollbar-color:#8b9388 transparent}
::-webkit-scrollbar{width:7px;height:7px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#575e57;border:2px solid transparent;background-clip:padding-box;border-radius:10px}
::-webkit-scrollbar-thumb:hover{background-color:#8b9388}
.play{position:relative;display:inline-flex;align-items:center;justify-content:center;color:#fff!important;font-size:0!important;flex-shrink:0}
.play::before{content:"";width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid #fff;margin-left:3px}
.play[aria-label="Pause"]::before{width:12px;height:16px;border-top:0;border-bottom:0;border-left:4px solid #fff;border-right:4px solid #fff;margin-left:0}
.chord-artwork{width:62px;height:62px;flex:0 0 62px;border-radius:7px;overflow:hidden;background:#dfe5da;display:grid;place-items:center}
.chord-artwork img{width:100%;height:100%;object-fit:cover}
.song>img{width:38px;height:38px;flex:0 0 38px;object-fit:cover;border-radius:5px}
.chords-demo header{justify-content:flex-start}
.chords-demo header .chord-title{display:flex;align-items:center;gap:14px;margin-right:auto}
.chords-demo header .chord-title-text{display:flex;flex-direction:column;gap:2px}
.chords-demo header .chord-title>p,.chords-demo header .chord-title>h1{margin-top:0;margin-bottom:0}
@media(max-width:570px){.chord-artwork{width:50px;height:50px;flex-basis:50px}}
