:root{font-family:"DM Sans",system-ui,sans-serif;color:#1b3127;background:#f5f3eb;color-scheme:light;--green:#21563e;--line:#dddccf;--paper:#fffef8}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);color:inherit;padding:.62rem .85rem;border-radius:.6rem}button:hover:not(:disabled){border-color:#7d9d89}button:disabled{opacity:.45;cursor:default}:focus-visible{outline:3px solid #bf8148;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green)}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#17382d;color:#fffef8;padding:1rem max(1rem,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:1}.brand{display:flex;align-items:center;gap:.65rem;font-family:Georgia,serif;font-size:1.6rem;color:inherit;text-decoration:none}.brand img{flex:none;border:1px solid #e4d3a3;border-radius:.45rem}nav{display:flex;gap:.25rem}nav button{background:transparent;border-color:transparent;color:inherit}nav button[aria-pressed=true]{background:#335747}
main{max-width:1220px;margin:auto;padding:clamp(1rem,4vw,2.5rem)}h1,h2{font-family:Georgia,serif;margin:0;line-height:1.12}h1{font-size:clamp(2.2rem,5vw,3.8rem);letter-spacing:-.045em}h2{font-size:clamp(1.65rem,4vw,2.6rem);overflow-wrap:anywhere}p{color:#526357;margin:.65rem 0}.heading,.actions,.tools,.entry{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.heading,.entry{justify-content:space-between}.heading{margin-bottom:1.5rem}.layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2.5fr);gap:1rem;align-items:start}aside,section,form{background:var(--paper);border:1px solid var(--line);border-radius:1rem;padding:1rem}section{min-height:440px;padding:clamp(1rem,3vw,2rem)}ul,ol{margin:.6rem 0 0;padding:0;list-style:none}li+li{margin-top:.3rem}.row{width:100%;text-align:left;overflow-wrap:anywhere}.row[aria-current=true]{background:#e5eee4;border-color:#94ae98}.row small{display:block;color:#526357;margin-top:.25rem}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:.5rem;padding:.65rem;background:var(--paper);color:inherit}select{width:auto;max-width:100%}textarea{resize:vertical;font-family:monospace}label{display:grid;gap:.3rem;margin:1rem 0}[hidden]{display:none!important}.empty{display:grid;min-height:330px;align-content:center;text-align:center}.tools{margin:1rem 0}.chart{overflow:auto;min-height:10rem;max-height:55vh;border-top:1px solid var(--line);padding-top:1rem;font:1rem/1.55 ui-monospace,monospace}.line{white-space:pre;min-height:1.55em}.mixed{display:flex;width:max-content}.segment{display:grid;white-space:pre}.chord{color:#226745;font-weight:700}.section-name{color:#526357;font-weight:700}.pdf{width:100%;height:55vh;border:0}.entry{border-bottom:1px solid var(--line);padding:.55rem 0}.entry span{overflow-wrap:anywhere}dialog{border:0;padding:0;background:var(--paper);color:inherit;border-radius:1rem;width:min(92vw,620px)}dialog::backdrop{background:#102b21a0}form .actions{justify-content:flex-end}#stage{width:100%;max-width:none;height:100%;max-height:none;margin:0;border-radius:0;background:#142720;color:#f9f4df;padding:clamp(1rem,4vw,3rem)}#stage-body{height:100%;display:flex;flex-direction:column;gap:.65rem}#stage .chart,#stage .pdf{flex:1;max-height:none;min-height:0}#stage .chord{color:#b5d79d}#stage p,#stage .section-name{color:#d1ddc6}#stage button{background:#264239;color:white;border-color:#637b6e}#status{background:#e4eee5;border-radius:.5rem;padding:.65rem}button.danger{color:#9b3d2a}
@media(max-width:650px){.layout{grid-template-columns:1fr}aside ul{max-height:32vh;overflow:auto}header{padding:.7rem 1rem}.heading{gap:.85rem}section{min-height:330px}.empty{min-height:220px}}
.tools label{margin:0;flex:0 1 8rem;font-size:.85rem}.tools label input{padding:.4rem .55rem}.pdf+a,a:visited{color:inherit}#stage a{color:#d1ddc6}
