/* Hayzart AI — a quiet, responsive score-reading room. */
.rescue-invitation{display:flex;align-items:center;gap:9px;width:fit-content;min-height:44px;margin:8px 0 0;color:#705184;text-decoration:none;font-size:12px;font-weight:550;letter-spacing:.015em}
.rescue-invitation>svg{width:19px;height:19px;transition:transform .25s}.rescue-invitation:hover>svg{transform:rotate(-8deg)}.rescue-invitation>span{border-bottom:1px solid #cabbcf;padding-bottom:2px}.rescue-invitation>i{font-style:normal;margin-left:3px}
.bio-piano .piano-wrap{display:flex;flex-direction:column;align-items:stretch;gap:10px}.bio-piano .rescue-invitation{align-self:flex-start;margin:0 0 2px}
.rescue-is-open{overflow:hidden}
.rescue-dialog{width:min(1120px,calc(100vw - 48px));height:min(940px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;border:1px solid #e6dfed;border-radius:24px;background:#f8f6fc;color:#302839;box-shadow:0 28px 100px #20152c45;overflow:hidden}
.rescue-dialog::backdrop{background:#251c39a6;backdrop-filter:blur(12px)}
.rescue-shell{--r-ink:#40304f;--r-muted:#796b89;--r-line:#e4deed;--r-soft:#eee8f8;--r-accent:#69508b;height:100%;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;background:radial-gradient(ellipse at 90% 0%,#eee8f780,transparent 65%),#f8f6fc;color:var(--r-ink);isolation:isolate}
.rescue-shell *{box-sizing:border-box}.rescue-shell button,.rescue-shell select,.rescue-shell a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.rescue-shell button{font-family:inherit}
.rescue-header{justify-content:space-between;flex:none}
.rescue-header>div:first-child{min-width:0}.rescue-eyebrow{margin:0 0 9px;font-size:12px;font-weight:500;letter-spacing:.12em;color:#867595;line-height:1.5}.rescue-header :is(h1,h2){font:normal 38px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.035em;margin:0;color:#302538;overflow-wrap:anywhere}.rescue-dedication{margin:9px 0 0;font-size:13px;color:var(--r-muted)}
.rescue-close{display:grid;place-items:center;width:42px;height:42px;padding:0;flex:none;border:1px solid #e1d9e9;border-radius:50%;background:#ffffffc9;box-shadow:0 2px 6px #3c284b06;color:#665174;cursor:pointer}.rescue-close svg{display:block;width:19px;height:19px}.rescue-close:hover{background:#fff}
.rescue-header-actions{display:flex;align-items:center;gap:14px;flex:none}.rescue-language{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:36px;padding:0 9px;border:1px solid var(--r-line);border-radius:50px;background:#ffffffa6;color:#705280;text-decoration:none;font-size:12px;font-weight:600}.rescue-back{font-size:12px;color:#705280;text-decoration:none;white-space:nowrap}
.rescue-works{display:flex;gap:9px;padding:0 30px 22px;overflow-x:auto;scrollbar-width:none;flex:none}.rescue-works::-webkit-scrollbar{display:none}
.rescue-work{display:flex;align-items:center;flex:1;min-width:0;border:1px solid var(--r-line);border-radius:50px;font:inherit;cursor:pointer;transition:background .2s,border-color .2s}.rescue-work-number{font-size:12px;font-variant-numeric:tabular-nums;color:inherit;opacity:.8}.rescue-work-copy{display:block;min-width:0}.rescue-work-copy>span{display:block;font-weight:500}.rescue-work-copy>small{display:none}
.rescue-body{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:0;flex:1}
.rescue-aside{min-width:0;padding:4px 24px 20px 30px;overflow:auto;border-right:1px solid #e6e0ee}.rescue-kicker{margin:0 0 13px;font-size:12px;font-weight:500;letter-spacing:.1em;color:#897694}.rescue-description{margin:0 0 20px;font-size:13px;line-height:1.85;color:var(--r-muted)}
.rescue-sections{display:flex;flex-direction:column;gap:6px;margin:0 0 22px}.rescue-section{display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;color:#7b6989;font:inherit;font-size:12px;cursor:pointer}.rescue-section>span:first-child{width:21px;flex:none;text-align:center}.rescue-section[aria-current="page"]{background:#eee7f7;color:#503965;border-color:#d9cdea}.rescue-section:hover{background:#f0eaf7}
.rescue-downloads{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;gap:9px}.rescue-download-choice{min-width:0;position:relative}.rescue-download-choice select{appearance:none;-webkit-appearance:none;width:100%;height:40px;margin:0;padding:0 33px 0 12px;border:1px solid var(--r-line);border-radius:11px;background:#ffffffc9;color:#665274;font:inherit;font-size:12px;line-height:1.3;cursor:pointer}.rescue-download-choice:after{content:"";position:absolute;right:14px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid #897395;border-bottom:1.5px solid #897395;transform:rotate(45deg);pointer-events:none}
.rescue-download-trigger{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;text-decoration:none}.rescue-download-trigger svg{display:block}
.rescue-attribution{margin:19px 0 0;font-size:12px;line-height:1.7;color:#8b7b96}.rescue-notes{margin-top:20px;padding-top:14px;border-top:1px solid var(--r-line);font-size:12px;color:#7a6887}.rescue-notes summary{min-height:36px;cursor:pointer;color:#695279}.rescue-notes p{margin:8px 0;line-height:1.8}.rescue-piece-note{font-size:12px}
.rescue-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 26px 0 24px}
.rescue-player{align-items:center;border-bottom:0;flex:none}
.rescue-play{display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#eee7f8;color:#4e356c;cursor:pointer}.rescue-play svg{display:block;width:20px;height:20px;fill:currentColor;stroke-width:1}.rescue-player-label{display:flex;align-items:center;gap:7px;margin-bottom:3px;font-size:12px;color:#897794}.rescue-clock{font-size:12px;color:#877592;font-variant-numeric:tabular-nums;white-space:nowrap}
.rescue-seek{display:block;appearance:none;-webkit-appearance:none;width:100%;height:22px;margin:0;background:transparent;accent-color:#735390;cursor:pointer}.rescue-seek::-webkit-slider-runnable-track{height:4px;background:#ded3ed;border-radius:10px}.rescue-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin-top:-4px;border:0;border-radius:50%;background:#695087}.rescue-seek::-moz-range-track{height:4px;border-radius:10px;background:#ded3ed}.rescue-seek::-moz-range-progress{height:4px;border-radius:10px;background:#695087}.rescue-seek::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#695087}
.rescue-loading-indicator{display:none;width:12px;height:12px;flex:none;border:1.5px solid #d9cde1;border-top-color:#755289;border-radius:50%}.rescue-player.is-loading .rescue-loading-indicator{display:inline-block;animation:rescue-spin .72s linear infinite}.rescue-player.is-loading .rescue-player-label{color:#654979}.rescue-player-error{margin:0;font-size:12px;color:#a14f63}.rescue-player-error:empty{display:none}.rescue-tool:hover:not(:disabled){background:#f3eef9;border-color:#e7dff0}
.rescue-follow{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3d9ef;background:#faf7fd;color:#877495;font:inherit;white-space:nowrap;cursor:pointer}.rescue-follow svg{display:block;width:16px;height:16px;flex:none}
.rescue-score-window{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;padding:0 0 12px;scrollbar-width:thin;scrollbar-color:#cfc0de transparent;scroll-padding:12px;scroll-behavior:auto}
.rescue-score-paper{display:block;margin:0 auto;background:#fff;border:1px solid #ece7f1;border-radius:15px;overflow:hidden;box-shadow:0 5px 20px #4b315d06}.rescue-score-paper img{display:block;width:100%;height:auto;max-width:none}.rescue-score-status{margin:0;padding:5px 0;font-size:12px;color:#8a6684}.rescue-score-status:empty{display:none}
.rescue-footer{flex:none;text-align:center;padding:10px 20px 14px;font-size:12px;letter-spacing:.12em;color:#9786a3}
.rescue-shell :is(button,a,input,select,summary):focus-visible{outline:2px solid #9978b7;outline-offset:3px}.rescue-score-window:focus-visible{outline:2px solid #b39ac9;outline-offset:2px;border-radius:15px}
.rescue-standalone{margin:0;padding:22px;min-height:100dvh;background:#eeebf4}.rescue-standalone .rescue-shell{max-width:1120px;height:calc(100dvh - 44px);margin:auto;border:1px solid #e4dcec;border-radius:24px;overflow:hidden}.rescue-fallback{padding:30px;max-width:700px;margin:auto;font-size:14px}.rescue-fallback h1{font-family:Georgia,serif;font-weight:normal}.rescue-fallback a{display:inline-block;margin-right:16px}
@keyframes rescue-spin{to{transform:rotate(360deg)}}
@media(max-width:800px){.rescue-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px)}.rescue-header{padding:22px 22px 18px}.rescue-works{padding:0 22px 20px}.rescue-body{grid-template-columns:200px minmax(0,1fr)}.rescue-aside{padding-left:22px;padding-right:16px}.rescue-main{padding:0 18px}.rescue-player{gap:9px;padding:14px 12px}.rescue-header :is(h1,h2){font-size:34px}.rescue-header-actions{gap:9px}}
@media(max-width:600px){
 .rescue-dialog{inset:0;margin:0;width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none}.rescue-standalone{padding:0}.rescue-standalone .rescue-shell{height:100dvh;border:0;border-radius:0}.rescue-header :is(h1,h2){font-size:32px;letter-spacing:-.035em}.rescue-eyebrow{font-size:12px;letter-spacing:.085em;margin-bottom:8px;max-width:290px}.rescue-dedication{font-size:12px;margin-top:7px}.rescue-close{width:38px;height:38px}.rescue-header-actions{flex-direction:column;align-items:flex-end;gap:8px}.rescue-back{font-size:12px;max-width:78px;text-align:right;white-space:normal}.rescue-language{height:30px;min-width:34px}
 .rescue-works{padding:0 16px 16px;gap:8px}.rescue-work-number{font-size:12px}
 .rescue-body{display:flex;flex-direction:column;overflow:hidden}.rescue-aside{border:0;overflow:visible;flex:none}.rescue-aside>.rescue-kicker,.rescue-description,.rescue-attribution,.rescue-notes{display:none}
 .rescue-sections{flex-direction:row;margin:0 0 14px;overflow-x:auto;scrollbar-width:none}.rescue-section{justify-content:center;width:auto;flex:1;padding:6px 0;border:1px solid #e4ddec;background:#ffffffa8;border-radius:9px;gap:0}.rescue-section>span:first-child{width:auto;font-size:12px}.rescue-section>span:last-child{display:none}
 .rescue-downloads{justify-content:space-between}.rescue-download-choice select{height:38px;border-radius:11px;font-size:12px}.rescue-download-trigger{width:38px;height:38px}
 .rescue-main{flex:1}.rescue-player{column-gap:12px;row-gap:0;border-radius:15px 15px 0 0}.rescue-play{grid-row:1/3}.rescue-player-label{margin-bottom:0;font-size:12px}.rescue-clock{grid-column:2;margin-top:0;line-height:1.3}.rescue-player-error{margin-top:6px}.rescue-footer{padding:9px 16px calc(11px + env(safe-area-inset-bottom,0px));font-size:12px;letter-spacing:.11em}
}
@media(max-width:360px){.rescue-header :is(h1,h2){font-size:29px}.rescue-header{padding-left:16px;padding-right:16px}.rescue-follow>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rescue-follow{width:36px;padding:0}.rescue-section{min-width:28px}.rescue-sections{gap:4px}}
@media(max-height:700px) and (max-width:600px){.rescue-header{padding-top:14px;padding-bottom:12px}.rescue-header :is(h1,h2){font-size:28px}.rescue-eyebrow{margin-bottom:5px}.rescue-dedication{margin-top:5px}.rescue-works{padding-bottom:11px}.rescue-aside{padding-bottom:11px}.rescue-sections{margin-bottom:10px}.rescue-footer{display:none}.rescue-score-window{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.rescue-invitation>svg,.rescue-work{transition:none}.rescue-loading-indicator{animation-duration:1.5s}}

/* Score reader: compact navigation, fitted notation and a quiet active-bar wash. */
.rescue-score-svg,.rescue-score-svg>svg{display:block;width:100%;height:auto}
.rescue-score-svg{line-height:0}
.rescue-score-window{margin-top:10px}
@media(max-width:600px){
 .rescue-score-window{padding-bottom:3px}
 .rescue-score-paper{border-radius:10px}
}
@media(prefers-reduced-motion:reduce){.rescue-score-svg .rescue-measure-highlight{transition:none}}

/* The score is centered at a reading scale that leaves room for two systems. */
.rescue-score-paper{width:min(100%,660px);min-width:0}
.rescue-score-svg{width:100%;max-width:100%}
@media(max-width:600px){.rescue-score-paper{width:100%}}

/* V43: aligned header, softly separated works and one compact player row. */
.rescue-header{display:grid;grid-template-columns:minmax(225px,260px) minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px 28px 20px}
.rescue-header .rescue-works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;padding:0;overflow:visible;align-self:center}
.rescue-work{--work-bg:#f0ebf7;--work-border:#ded1ed;--work-ink:#72548a;--work-active:#dfeee7;background:var(--work-bg);border-color:var(--work-border);color:var(--work-ink);min-height:44px;padding:9px 12px;gap:7px;justify-content:center;text-align:center}
.rescue-work:hover{background:#e9e1f2}
.rescue-work[aria-selected="true"]{background:var(--work-active);border-color:#456b5d;color:#456b5d;box-shadow:inset 0 0 0 .5px #456b5d}
.rescue-work-copy>span{font-size:12px;line-height:1.35;white-space:normal}
.rescue-download-trigger{border:1px solid #ded2e9;background:#eee7f5;color:#806492;box-shadow:none;transition:background .18s,color .18s}
.rescue-download-trigger:hover{background:#e5d9ef;color:#654777}.rescue-download-trigger svg{width:18px;height:18px;stroke-width:1.6}
.rescue-player{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:0 12px;padding:12px 14px;border:1px solid #e5ddec;border-radius:15px;background:#ffffffdf;box-shadow:0 3px 12px #4f356505}
.rescue-play{grid-column:1;grid-row:1/3;width:40px;height:40px}
.rescue-player-track{grid-column:2;grid-row:1;min-width:0}.rescue-player-label{line-height:1.35;margin:0;min-height:17px}.rescue-player-label>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rescue-clock{grid-column:2;grid-row:2;line-height:1.4;margin:0}
.rescue-follow{grid-column:3;grid-row:1/3;align-self:center;justify-self:end;gap:5px;min-height:36px;padding:7px 9px;border-radius:10px;font-size:12px;font-weight:500;line-height:1.3;max-width:100%}
.rescue-follow[aria-pressed="true"]{background:#ede6f6;border-color:#cdbbdf;color:#67477f}.rescue-follow[aria-pressed="false"]{background:#fcfaff;border-color:#e6deed;color:#8d7d97}
.rescue-player-error{grid-column:1/-1;grid-row:3}.rescue-player audio{display:none}
.rescue-score-svg .rescue-measure-highlight{opacity:0;pointer-events:none;transition:none}
.rescue-score-svg .measure.is-active .rescue-measure-highlight{opacity:1}
@media(max-width:1000px) and (min-width:601px){.rescue-header{grid-template-columns:minmax(180px,215px) minmax(0,1fr) auto;gap:12px;padding:22px}.rescue-header :is(h1,h2){font-size:32px}.rescue-work{padding:9px 7px;gap:5px}.rescue-work-number{display:none}}
@media(max-width:600px){
 .rescue-header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px 10px;padding:calc(16px + env(safe-area-inset-top,0px)) 14px 14px}
 .rescue-header>div:first-child{grid-column:1;grid-row:1}.rescue-header>.rescue-close,.rescue-header>.rescue-header-actions{grid-column:2;grid-row:1}
 .rescue-header .rescue-works{grid-column:1/-1;grid-row:2;width:100%;gap:5px;align-self:stretch}
 .rescue-work{flex:1;min-width:0;min-height:42px;padding:8px 5px;gap:4px;border-radius:13px}
 .rescue-work-number{display:none}.rescue-work-copy{width:100%}.rescue-work-copy>span{font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:normal}
 .rescue-aside{padding:0 14px 12px}.rescue-sections{gap:5px;margin-bottom:11px}.rescue-section{min-width:0;min-height:36px}
 .rescue-main{padding:0 12px}.rescue-player{grid-template-columns:34px minmax(0,1fr) auto;gap:0 8px;padding:10px}
 .rescue-play{width:34px;height:34px}.rescue-play svg{width:17px;height:17px}
 .rescue-follow{width:auto;gap:4px;min-height:34px;padding:6px 7px;font-size:12px}
 .rescue-follow>span{position:static;display:inline;width:auto;height:auto;padding:0;overflow:visible;clip:auto;white-space:nowrap}
 .rescue-follow svg{width:14px;height:14px}.rescue-player-label{min-height:16px}.rescue-seek{height:20px}.rescue-clock{font-size:12px}
 .rescue-score-window{margin-top:9px}.rescue-downloads{grid-template-columns:minmax(0,1fr) 38px;gap:12px}
}
@media(max-width:360px){.rescue-header{padding-inline:12px}.rescue-follow{gap:3px;padding-inline:5px}.rescue-player{gap:0 6px;padding:9px}.rescue-follow svg{width:13px;height:13px}}
@media(max-height:550px) and (orientation:landscape){.rescue-header{padding:10px 16px;gap:8px 12px}.rescue-eyebrow,.rescue-dedication{display:none}.rescue-header :is(h1,h2){font-size:25px}.rescue-header .rescue-works{grid-column:auto;grid-row:auto}.rescue-footer{display:none}.rescue-player{padding:6px 10px}.rescue-header .rescue-works .rescue-work{min-height:36px}.rescue-aside{padding-bottom:8px}}
/* Keep the active-bar outline equally legible at desktop and phone scales. */
.rescue-score-svg .rescue-measure-highlight{vector-effect:non-scaling-stroke;stroke-width:1.25;fill:#b5d7c745;stroke:#759f8b}
