#library { --line:#6c627b58; position:relative; }
#nextTabHint { align-self:center; display:inline-flex; flex:none; align-items:center; gap:3px; min-height:26px; padding:0 2px; white-space:nowrap; font:600 10px/1.2 var(--mono); color:#cec5d9; }
#nextTabHint kbd { font:inherit; padding:0 3px; border:1px solid #746a80; border-radius:2px; }
#nextTabHint:hover { color:white; }
@media(max-width:460px) {
  .top .nav { width:calc(100% - 18px); gap:6px; }
  .top .libraryTabs { gap:5px; }
  .top .settingsLink { padding-inline:2px; }
  .top .brand { font-size:0; letter-spacing:0; }
  .top .brand .mark { margin-right:0; }
}
@media(max-width:375px) {
  .top .nav { width:calc(100% - 8px); gap:4px; }
  .top .libraryTabs { gap:3px; }
  .top .navtab { font-size:11px; }
}
#toast { pointer-events:none; }
.lessonHoldGuide { width:100%; max-width:31rem; border-collapse:collapse; text-align:center; font:600 clamp(.7rem,2.5vw,.9rem)/1.4 var(--mono); }
.lessonHoldGuide caption { padding:.5em 0; text-align:left; font-size:.9rem; }
.lessonHoldGuide th,.lessonHoldGuide td { padding:.45em .2em; border-bottom:1px solid var(--stroke); }
.lessonHoldGuide th[scope="row"] { text-align:left; }
.lessonHoldGuide tr:nth-child(2) td { color:var(--lav); }
.enableGameAudio{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:32px;min-height:32px;padding:4px;color:#e5dfec;font:600 13px/1.2 "Segoe UI",sans-serif;white-space:nowrap}
.enableGameAudio[data-audio-state="muted"]{color:#b9acbf}
.enableGameAudio[data-audio-state="blocked"]{color:#ffda9b}
.enableGameAudio[hidden]{display:none}
.enableGameAudio .ico{width:16px;height:16px}
#pauseMixer .pauseMixLevelRow:has(>#stageEnableAudio){grid-template-columns:auto auto minmax(26px,1fr) auto auto;gap:3px}
#pauseMixer #stageEnableAudio{font-size:0;min-width:24px}
.speedSteps { display:inline-flex; align-items:stretch; gap:1px; }
.hdMod { display:inline-flex; align-items:center; gap:4px; }
#hdAhead { padding:4px 0; border:0; border-radius:2px; background-color:transparent; font:600 12px/1.3 var(--mono); color:var(--white); }
#hdAhead option { color:var(--white); background:var(--surface); }
#library .modgroup .mod { gap:5px; }
#library .modRow>.sectionLabel { display:flex; align-items:baseline; gap:4px 8px; flex-wrap:wrap; }
#modScoreFactor { font:500 11px/1.35 var(--mono); text-transform:none; letter-spacing:0; color:var(--muted); white-space:nowrap; }
#modScoreFactor[data-reduced="true"] { color:#ead4ad; }
.modKey { font-size:10px; font-weight:400; opacity:.82; }
.speedStep { min-width:32px; }
.globalMods .mod[aria-pressed="false"] { color:#babac1; background:#25252b; border-color:#525259; opacity:.69; }
.globalMods .mod[aria-pressed="true"] { color:#a9f3b8; background:#22372b; border-color:#76ce8b; box-shadow:0 0 8px #70e78c28; text-shadow:0 0 4px #75dd8d32; }
.globalMods .mod[aria-pressed="false"]:is(:hover,:focus-visible,.piano-focus) { opacity:1; }
#library .titleRow { margin:0; padding:10px 0 8px; align-items:center; justify-content:flex-start; gap:6px 16px; flex-wrap:wrap; }
#library .titleRow h1 { margin:0; }
#library .libraryTools { margin-left:auto; }
.pianoConnection { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-width:0; padding:6px 10px; color:#e3d8f2; background:#272231; border:1px solid #5b4e68; border-radius:5px; font:600 13px/1.25 "Segoe UI",sans-serif; }
.pianoConnection::before { content:''; box-sizing:border-box; width:8px; height:8px; flex:none; border-radius:50%; border:1.5px solid #cbbed7; }
.pianoConnection[data-state="connected"]::before { background:#99e1cd; border-color:#99e1cd; box-shadow:0 0 6px #99e1cd66; }
.pianoConnection[data-state="missing"]::before { border-color:#ffc784; }
.pianoConnection:hover,.pianoConnection:focus-visible { color:#fff; border-color:#cab4e2; }
.pianoConnection span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#libraryPiano { max-width:min(100%,34ch); }
@media(max-width:650px) {
  #library .titleRow { gap:5px 10px; }
  #library .titleRow h1 { flex:1 1 auto; }
  #library #libraryPiano { margin-left:auto; max-width:min(100%,24ch); }
  #library .libraryTools { flex-flow:row wrap; }
}
#library .titleRow h1 { font:600 12px/1.4 var(--mono); text-transform:uppercase; letter-spacing:.15em; color:#d3bfdc; }
#library .titleRow .dot { display:none; }
#sortDir { display:grid; place-items:center; min-width:32px; min-height:32px; border:0; background:transparent; box-shadow:none; padding:5px; }
#sortDir:focus-visible { outline:2px solid #8ee7ff; outline-offset:2px; }
#sortDir .ico { display:block; width:15px; height:15px; stroke-width:2.25; }
#sortDir[aria-pressed=true] .ico { transform:rotate(180deg); }
.publishedCover { width:100%; height:100%; object-fit:cover; display:block; }
#randomChart { display:inline-flex; gap:.3rem; align-items:center; border:0; background:transparent; color:var(--muted); padding:.3rem; }
#randomChart:hover,#randomChart:focus-visible { color:var(--text); }
#randomChart:disabled { opacity:.45; }
#randomChart[hidden] { display:none; }
#library .libraryTools button { min-height:28px; padding:3px 9px; font-size:12px; }
#library .layout { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:20px clamp(22px,5vw,82px); }
#library .focus { grid-column:1/-1; position:relative; isolation:isolate; overflow:hidden; border:0; border-radius:0; border-block:1px solid var(--line); box-shadow:none; background:transparent; }
#library .cover { position:static; aspect-ratio:auto; height:auto; background:none; }
#library .coverHeader,#library .coverTools { display:contents; }
#library .cover #bigArt, #library .coverOverlay { position:absolute; inset:0; z-index:-1; }
#library .cover #bigArt img { object-position:50% 47%; }
#library .coverOverlay { background:linear-gradient(90deg,#14121de8 0%,#15131fdc 26%,#15121b52 76%),linear-gradient(0deg,#15131ff2 0%,#14121e55 49%,#1916233b); }
#library .cover .now { position:static; display:inline-flex; margin:14px 0 0 18px; background:none; padding:0; color:#e3d1ff; border:0; font:650 11px var(--mono); letter-spacing:.08em; }
#library .cover .now .equal { display:none; }
#library .cover .caption { position:static; margin:4px 54px 4px 18px; display:flex; flex-direction:column-reverse; }
#library .cover .caption h2 { font:750 clamp(29px,3.5vw,54px)/1.06 "Segoe UI",sans-serif; letter-spacing:-.04em; }
#library .cover .caption div { font-size:14px; color:#e2d9eb; }
#library .preview { top:14px; right:18px; }
#favoriteSong { position:absolute; z-index:1; right:4rem; top:14px; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; font:26px/1 "Segoe UI Symbol",sans-serif; color:#fff; text-shadow:0 1px 4px #15101f; }
#favoriteSong[aria-pressed=true] { color:#ffadcd; }
#favoriteSong[hidden] { display:none; }
@media(max-width:540px){#library .searchFilters{flex-wrap:wrap;gap:8px 16px}#library .searchFilters .search{flex-basis:100%}}
#library .focusBody { padding:0 18px 12px; display:flex; flex-wrap:wrap; align-items:center; gap:5px 15px; }
#library .metrics { margin:3px 0; min-height:28px; padding:0; gap:14px; border:0; }
#library .albumLine { margin:0; color:#c9c2ce; }
#library .launch { display:flex; width:100%; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 14px; }
.launchPrimary,.launchTools { display:flex; align-items:center; gap:5px; min-width:0; }
.launchPrimary { justify-content:flex-start; }
.launchMode,.playHandPicker { display:flex; align-items:center; gap:.4rem; min-width:0; }
.playHandPicker { color:var(--muted); font-size:.8rem; }
.playHandPicker[hidden] { display:none; }
#playHand { min-width:0; max-width:100%; padding:.36em .2em; font:inherit; color:var(--white); background:var(--surface); border:1px solid var(--line); border-radius:5px; }
#playHand:has(option:checked:not([value="Both"])) { color:var(--lav); border-color:var(--lav); }
@media(max-width:1050px) {
  .playHandPicker>span { display:none; }
}
@media(max-width:500px) {
  .launchMode { flex-direction:column; align-items:stretch; justify-content:center; gap:1px; }
  .launchMode:has(.playHandPicker:not([hidden])) #chartStatus { margin:0; font-size:.67rem; }
  #playHand { padding-block:1px; }
}
.launchTools { justify-content:flex-end; flex-wrap:wrap; margin-inline-start:auto; }
#mapReviewControl {font-size:.78rem;color:var(--muted);display:inline-grid;gap:2px;}
#mapReviewControl[hidden] {display:none;}
#mapReviewStatus {background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:.2em;}
#chartStatus { margin-inline-start:.45rem; color:var(--muted); font-size:.8rem; font-weight:650; line-height:1.2; white-space:nowrap; }
#chartStatus[data-status="ranked"] { color:var(--aqua); }
#chartStatus[data-status="special"] { color:var(--lav); }
#library .launch button { flex:none; min-height:34px; font-size:13px; padding:5px 12px; }
#library .launch .primary { min-width:82px; }
#library .selectedColumn { grid-column:1; min-width:0; }
#library .catalog { grid-column:2; margin:0; min-width:0; }
#library .catalogHead { margin-bottom:9px; }
#library .catalogHead h2,#library .catalogHead h3 { font-size:21px; letter-spacing:-.028em; }
#library .search { border-radius:0; background:transparent; border:0; border-bottom:1px solid var(--line); }
#library .searchFilters { display:flex; align-items:center; gap:14px; }
#library .searchFilters .search { flex:1; min-width:0; }
#library .searchFilters .search input { min-width:0; }
#songScope { flex:none; width:10.1rem; min-width:0; max-width:100%; font-size:13px; color:#c4bfce; }
#library .catalogHead h2 { white-space:nowrap; }
#library .catalogHead #count { display:inline-block; min-width:3ch; text-align:center; font-variant-numeric:tabular-nums; }
#songScope:has(option:checked:not([value="all"])) { color:#e9d8ff; border-color:#9d7eb4; }
@supports (appearance:base-select) {
  :is(#sort,#songScope),:is(#sort,#songScope)::picker(select) { appearance:base-select; }
  :is(#sort,#songScope) { align-items:center; gap:.65rem; }
  :is(#sort,#songScope)::picker-icon { color:#baadc8; font-size:.82em; }
  :is(#sort,#songScope)::picker(select) { background:#211e2a; border:1px solid #51485e; border-radius:6px; padding:4px; color:var(--white); box-shadow:0 8px 22px #07060c88; }
  :is(#sort,#songScope) option { padding:7px 10px; border-radius:3px; font-size:13px; }
  :is(#sort,#songScope) option:is(:hover,:focus) { background:#44394f; }
  :is(#sort,#songScope) option:checked { color:#e9d8ff; background:#342c40; }
}
#freestyleDialog { width:min(1020px,95vw); max-height:94dvh; padding:clamp(15px,3vw,32px); background:#1b1922; border:1px solid #514852; color:var(--white); overflow:auto; }
.freeHeader,.freeSetup,.freeScoreHead,.freeKeys,.freeActions { display:flex; align-items:center; gap:9px 14px; flex-wrap:wrap; }
.freeHeader { justify-content:space-between; margin-bottom:12px; }
.freeHeader h2 { display:flex; gap:9px; align-items:center; font-size:clamp(24px,3vw,34px); }
.freeHeader .close { position:static; }
.freeSetup { align-items:end; padding:12px 0 17px; border-block:1px solid var(--stroke); }
.freeSetup label:not(.freeQuantize),#freeTitleRow { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.freeSetup select,.freeSetup input[type=number],#freeTitle { background:#25232e; padding:6px 7px; border:1px solid var(--stroke); border-radius:3px; color:var(--white); }
.freeTrack { flex:1 1 220px; min-width:0; }.freeTrack select { width:100%; }#freeBpm { width:70px; }.freeQuantize { padding:7px 0; font-size:13px; }
.freeScoreHead { padding:12px 0 7px; font:12px var(--mono); color:var(--muted); }
#freeStatus { margin-right:auto; color:var(--white); }#freestyleDialog[data-state="recording"] #freeStatus { color:#ffa7b7; }
#freeMeasureNav { display:inline-flex; align-items:center; gap:3px; }
#freeMeasureNav button { font-size:19px; padding:0 7px; }
#freeSheet { background:var(--skin-paper,#fffdf6); height:clamp(205px,42vh,430px); overflow:hidden; border-radius:3px; }
#freeSheet .score-toolbar,#freeSheet .score-caption { display:none; }
.freeKeys { padding:8px 0 12px; justify-content:space-between; color:var(--muted); font-size:12px; }
#freePitches { color:var(--white); font:600 16px var(--mono); }
.freeActions { border-top:1px solid var(--stroke); padding-top:13px; }.freeActions kbd { font:11px var(--mono); margin-left:4px; }
#freeTitle { width:min(210px,70vw); }#freeError { color:#ffafbf; }#freestyleDialog #pianoMenu { position:static; margin:11px 0 0; }
@media(max-width:600px) { #freeSheet { height:clamp(190px,33dvh,280px); } }
#library .tracks { gap:1px; padding-right:0; max-height:min(48vh,540px); }
#library .track { border:0; border-bottom:1px solid var(--line); border-radius:0; background:linear-gradient(90deg,transparent,#26233399); box-shadow:none; padding:5px 10px 5px 5px; min-height:53px; }
#library .track:hover { background:#332b4077; }
#library .track.sel { background:linear-gradient(90deg,#714c887d,#352842); box-shadow:inset 3px 0 0 var(--lav); }
#library .chartRow { position:relative; overflow:hidden; }
#library .track .thumb { width:66px; min-height:41px; border-radius:0; margin-left:4px; }
#library .track .stepMarker { height:30px; width:30px; flex-basis:30px; margin-left:7px; }
#library .songPack { min-width:0; }
#library .packArrow { width:7px; height:7px; flex:none; margin:0 5px; border:solid var(--muted); border-width:0 1.5px 1.5px 0; transform:rotate(-45deg); }
#library .track[aria-expanded="true"] .packArrow { transform:rotate(45deg); border-color:var(--lav); }
#library .packCharts { margin:2px 0 5px 28px; border-left:1px solid var(--line); }
#library .packChart { position:relative; display:flex; align-items:center; gap:10px; width:100%; min-height:34px; padding:6px 14px; text-align:left; color:var(--muted); }
#library .packChart::before { content:''; width:6px; height:6px; flex:none; border:1px solid currentColor; border-radius:50%; }
#library .packChart[aria-pressed="true"] { color:var(--white); background:linear-gradient(90deg,#bb99fa26,transparent); }
#library .packChart[aria-pressed="true"]::before { background:var(--lav); border-color:var(--lav); }
#library .packChart:hover { background-color:#b199dc12; }
#library .packChart { overflow:hidden; }
#library .previewPulse { position:absolute; inset:0; pointer-events:none; opacity:0; background:#e4ceff55; mask-image:linear-gradient(90deg,#000 0% 45%,transparent 55% 100%); mask-size:240% 100%; mask-repeat:no-repeat; }
#library .selectedColumn { position:relative; isolation:isolate; align-self:stretch; }
.libraryScoreBackdrop { margin:1.1rem 0 .4rem; padding:clamp(.35rem,1vw,.95rem); overflow:hidden; pointer-events:none; user-select:none; border:1px solid #ddcca6; border-radius:2px; background:linear-gradient(100deg,#eadbb9 0%,#fffaf0 2%,#fffefb 9%,#fffefb 92%,#fbf2dd 98%,#e8d6af 100%); box-shadow:0 3px 9px #08071338; }
.libraryScoreBackdrop:empty { display:none; }
.libraryScoreSlot { flex:1 0 auto; display:grid; place-items:center; padding-block:1rem; }
.libraryScoreSlot .libraryScoreBackdrop { width:min(100%,44rem); margin:0; }
#library:not(.learning) .selectedColumn { display:flex; flex-direction:column; }
#library:not(.learning) .selectedColumn>#selectedRuns { flex-shrink:0; }
#library.learning .libraryScoreSlot { display:none; }
@media(min-width:741px){
  #library:not(.learning) .libraryContent { flex:1; display:flex; flex-direction:column; }
  #library:not(.learning) .layout { flex:1; grid-template-rows:auto 1fr; }
}
.libraryScoreBackdrop .score-svg { display:block; width:100%; height:auto; --score-ink:#403a32; color:#403a32; }
.libraryScoreBackdrop :is(.score-page-kicker,.score-page-number,.score-piece-title,.score-page-tempo,.score-page-footer,.score-playhead,.score-measure-number) { display:none; }
#library.learning .libraryScoreBackdrop { display:none; }
#library .packChart .chartName { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#library .packChart .rankTag { font-size:12px; }
#library .packAdd { margin:0 0 4px 38px; padding:2px 10px; color:var(--lav); font-size:18px; }
#library .originalMidiParts>summary { padding:6px 14px; color:var(--muted); font-size:12px; cursor:pointer; }
#library .packChart:is(:focus-visible,.piano-focus) { outline-offset:-2px; }
#songCredits { margin:16px 0; border-top:1px solid var(--line); padding-top:8px; font-size:13px; color:var(--muted); }
#songCredits summary { width:fit-content; cursor:pointer; }
#creditBody p { margin:6px 0; }
#creditBody a { display:inline-block; margin:3px 14px 0 0; color:var(--lav); text-underline-offset:3px; }
#library.learning .difficultyKeys { display:none; }
#library:has(#libraryDock #pianoMenu:not([hidden])) .foot>span:last-child { display:none; }
#library #selectedRuns { margin:0; padding:0; border:0; border-radius:0; background:transparent; }
#library #selectedRuns .catalogHead { align-items:baseline; padding:0 0 9px; border-bottom:1px solid var(--line); }
#library .runTabs { display:inline-flex; flex-wrap:wrap; gap:4px 11px; align-items:center; }
#library .runTabs button { padding:3px 0; border-bottom:2px solid transparent; color:#b5a9c3; font-size:13px; }
#library .runTabs button[aria-pressed=true] { color:#ead7ff; border-color:var(--lav); }
#library #selectedRuns { display:block; container-type:inline-size; min-height:clamp(10rem,23vh,16rem); }
#library #selectedRuns>.catalogHead { display:flex; align-items:baseline; column-gap:1rem; row-gap:.3rem; flex-wrap:wrap; }
#library #selectedRuns>.catalogHead h3 { margin:0; }
#library #selectedRuns>:nth-child(2) { box-sizing:content-box; min-height:var(--score-list-floor,0px); margin:0; padding-block:.7rem; }
#library #selectedRuns>:is(.selectedRunList,.boardRows) {
  box-sizing:content-box; max-height:var(--score-list-height,none); overflow-y:auto;
  overscroll-behavior-y:contain; scrollbar-gutter:stable;
}
.boardRows { padding-block:10px; color:var(--muted); }
.friendsBoardInvitation { display:flex; align-items:baseline; align-content:start; flex-wrap:wrap; gap:.4rem .8rem; }
.friendsBoardInvitation .note { margin:0; }
.platformScores { list-style:none; margin:0; padding:0; }
.platformScores li { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:baseline; gap:clamp(6px,1.1vw,17px); padding:9px 0; border-bottom:1px solid var(--stroke); font:13px var(--mono); }
.platformScores li a { color:var(--white); font-weight:700; overflow-wrap:anywhere; text-decoration:none; }
.platformScores li a:is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:3px; }
.platformScores li.ownScore a { color:var(--lav); }
#selectedRuns .catalogHead { flex-wrap:wrap; row-gap:4px; }
#library .selectedRunList { margin:0; max-height:42vh; }
#library .selectedRun { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:2px 10px; align-items:baseline; padding:8px 1px; border-bottom:1px solid var(--line); background:none; }
#library .selectedRun .runRank { align-self:center; color:var(--yellow); font:bold italic 22px var(--mono); background:none; padding:0; }
#library .selectedRun .runScore { font:650 16px var(--mono); }
#library .selectedRun button.runScore { justify-self:start; padding:0; text-align:left; }
#library .selectedRun button.runScore:hover { color:var(--lav); text-decoration:underline; }
#library .selectedRun .runReplay { grid-column:2 / -1; justify-self:start; padding:3px 0; color:var(--lav); background:transparent; border:0; font-size:13px; }
#library .selectedRun .runReplay:hover { text-decoration:underline; }
#library .selectedRun small { color:#a99eb9; }
#library .selectedRun .runRank { grid-column:1; grid-row:1 / 3; }
#library .selectedRun .runScore { grid-column:2; grid-row:1; }
#library .selectedRun>span.note { grid-column:2; grid-row:2; min-width:0; overflow-wrap:anywhere; }
#library .selectedRun>time { grid-column:3; grid-row:2; }
#library .selectedRun .runReplay { grid-row:3; }
@container (max-width:25rem) {
  #library .selectedRun:has(.runReplay)>span.note { grid-column:2/-1; }
  #library .selectedRun:has(.runReplay)>time { grid-column:2/-1; grid-row:3; justify-self:end; }
  #library .selectedRun .runReplay { grid-column:2; }
}
body:has(#library:not([hidden])) { display:flex; flex-direction:column; min-height:100dvh; }
main.wrap:has(>#library:not([hidden])) { display:flex; flex-direction:column; flex:1; width:100%; }
#library:not([hidden]) { display:flex; flex:1; flex-direction:column; min-width:0; }
:root { --menu-gutter:clamp(8px,1.15vw,20px); --menu-content:min(1220px,calc(100% - 2 * var(--menu-gutter))); }
body:has(main.wrap > :is(#library,#reading,#records):not([hidden])) .top .wrap.nav,
main.wrap:has(> :is(#reading,#records):not([hidden])) { width:var(--menu-content); }
#library .layout>.focus { margin-inline:calc(0px - var(--menu-gutter)); }
#library .libraryContent,#library .libraryDockInner { width:var(--menu-content); }
#library .libraryContent { padding-bottom:18px; }
#library:not(.learning) #tracks { height:clamp(12rem,calc(100dvh - 43rem),32rem); max-height:none; align-content:start; }
@media(min-width:741px){
  #library:not(.learning) .catalog {
    display:flex; flex-direction:column; align-self:stretch; min-height:0;
    padding-bottom:1rem;
  }
  #library:not(.learning) .catalog>#tracks { flex:1 1 0; height:0; min-height:12rem; }
}
#libraryDock { margin-top:auto; padding:5px 0 max(8px,env(safe-area-inset-bottom)); background:#17151f; border-top:1px solid var(--line); }
#libraryDock .globalMods { flex-wrap:wrap; gap:6px 16px; margin:0; padding:6px 0 7px; border:0; border-radius:0; background:transparent; }
#libraryDock .modRow { min-width:0; flex-wrap:wrap; }
#libraryDock .modgroup { flex-wrap:wrap; }
#libraryDock .foot { margin:0; padding:5px 0; }
#libraryDock #pianoMenu { position:static; width:var(--menu-content); max-width:none; margin:0 auto; padding:4px 0; border:0; border-radius:0; box-shadow:none; background:none; }
#libraryDock .globalMods { display:grid; grid-template-columns:minmax(0,1fr); }
#libraryDock .modRow { display:grid; grid-template-columns:9.7rem minmax(0,1fr); align-items:center; }
#libraryDock .modRow>.sectionLabel { display:grid; gap:.1rem; min-width:0; }
#libraryDock .modLabel {display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}
#resetMods {display:inline-grid;place-items:center;padding:3px;min-width:26px;min-height:26px;background:transparent;border:0;color:var(--muted);border-radius:3px}
#resetMods:is(:hover,:focus-visible,.piano-focus){color:var(--white)}
#resetMods svg {width:16px;height:16px}
#libraryDock #modScoreFactor { overflow:hidden; text-overflow:ellipsis; }
#libraryDock #hdAheadWrap[hidden] { display:inline-block!important; visibility:hidden; pointer-events:none; }
#libraryDock .timingInfo { font-variant-numeric:tabular-nums; min-height:1.5em; }
@media(max-width:680px) {
  #libraryDock .globalMods { display:grid; gap:6px; }
  #libraryDock .modRow { display:grid; grid-template-columns:minmax(0,1fr); gap:5px; }
  #libraryDock .modRow>.sectionLabel { display:flex; flex-wrap:nowrap; gap:.7rem; }
  #libraryDock .timingInfo { min-height:3em; }
  #libraryDock .timingInfo { text-align:left; }
  #libraryDock #pianoLegend { line-height:1.5; }
  #library:not(.learning) #tracks { height:clamp(12rem,35dvh,22rem); }
}
#library.learning #lessonBrief { margin-bottom:16px; }
#recordBody>.recordPanel,#records>.recordPanel { background:transparent; border:0; border-radius:0; padding:16px 0; border-top:1px solid #66596d66; }
#results .resultStats { background:transparent; border-left:0; border-top:1px solid #e2c8ff42; }
#results .resultStats>div { padding-left:0; }
#results .resultStats>div:first-child { background:transparent; }
#results .resultJudgments { display:flex; flex-wrap:wrap; gap:6px 18px; }
#results .resultJudgments .judgmentStrip { flex-basis:100%; display:flex; gap:2px; height:6px; overflow:hidden; border-radius:4px; }
.judgmentStrip i { flex-basis:0; background:var(--tint,#fa92a7); }
#results .resultJudgments>div { display:flex; align-items:baseline; gap:6px; background:transparent; border:0; padding:3px 0; }
#results .resultJudgments>div[hidden] { display:none; }
#results .resultJudgments>div span { font-size:13px; }
#results .resultDetails { background:transparent; padding:10px 0; }
.handComparison { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.handComparison :is(th,td) { text-align:right; padding:.5em .25em; border-bottom:1px solid #b4a0cb2b; overflow-wrap:anywhere; }
.handComparison th:first-child { text-align:left; }
.handComparison tbody th { font-weight:400; color:#d9d0e4; }
.handComparison thead th { color:#f0e7fc; }
.handComparison .handGroup th { padding-top:1.15em; color:var(--lav); font-weight:650; }
.handFootnote { margin:12px 0 0; }
.handBars { display:grid; gap:10px 24px; grid-template-columns:repeat(auto-fit,minmax(min(148px,100%),1fr)); }
.handBar { min-width:0; }
.handBarLabel { display:flex; justify-content:space-between; align-items:baseline; gap:8px; color:#eae6ec; }
.handBarLabel strong { font-variant-numeric:tabular-nums; }
.handRail { display:block; height:7px; margin-top:5px; overflow:hidden; border-radius:4px; background:#ffffff20; }
.handRail i { display:block; height:100%; background:var(--hand-color,#c7bccb); }
.handBar[data-hand="Left"] { --hand-color:#8adccd; }
.handBar[data-hand="Right"] { --hand-color:#d3bafa; }
.handMeasurements { margin-top:12px; }
.handMeasurements>summary { width:fit-content; font-size:13px; color:#d2c7dd; cursor:pointer; }
.historyLine>.resultDetails { grid-column:1/-1; }

#records { --heat-hit:#87c9c2; --heat-late:#e7bc76; --heat-miss:#ec839f; padding-bottom:32px; }
#records .titleRow { padding:22px 0 12px; }
#records .titleRow .eyebrow,#records .titleRow .dot { display:none; }
#records .titleRow h1 { font-size:clamp(28px,3vw,42px); margin:0; letter-spacing:-.045em; }
#records>.field { max-width:620px; margin:0 0 20px; }
#records .recordEmpty { border-top:1px solid var(--stroke); padding:22px 0; color:var(--muted); }
#records .historyOverview { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(24px,5vw,84px); border-top:1px solid var(--stroke); padding:16px 0; }
#records .historyOverview > * { min-width:0; margin:0; padding:0; background:none; border:0; border-radius:0; }
#records h3 { margin:0 0 12px; font-size:18px; letter-spacing:-.025em; }
#records .historyGraphHead { display:flex; gap:8px; margin-bottom:10px; justify-content:space-between; align-items:baseline; }
#records .historyGraphHead h3 { margin:0; }
#records .heatShortcut { color:var(--lav); font-size:13px; padding:1px 2px; }
#records .heatShortcut:hover { text-decoration:underline; }
#records .heat { display:grid; grid-template-columns:repeat(auto-fit,minmax(28px,1fr)); align-content:start; align-items:start; min-height:0; max-height:188px; overflow-y:auto; gap:4px; padding:2px 2px 5px; }
#records .barCol { width:100%; min-width:0; margin:0; padding:2px 0; font:11px/1.5 var(--mono); color:#d4cfde; border-radius:2px; }
#records .barCol i { display:block; height:24px; min-height:0; border-radius:2px; margin-bottom:3px; }
#records .barCol:hover { color:#fff; background:#3c314d; }
#records .barCol:focus-visible { outline-offset:0; }
#records :is(.heatLegend,.trendDates) { display:flex; align-items:center; color:var(--muted); font-size:12px; gap:13px; }
#records .heatLegend { margin-top:5px; flex-wrap:wrap; }
#records .heatLegend span::before { content:''; display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:5px; background:var(--swatch); }
#records .heatLegend .hit { --swatch:var(--heat-hit); }
#records .heatLegend .late { --swatch:var(--heat-late); }
#records .heatLegend .miss { --swatch:var(--heat-miss); }
#records .accuracyTrend .trend { position:relative; display:block; height:68px; margin:15px 5px 7px; }
#records .trend svg { display:block; width:100%; height:100%; overflow:visible; }
#records .trend polyline { stroke:var(--lav); stroke-width:2; vector-effect:non-scaling-stroke; fill:none; stroke-linejoin:round; }
#records .trend polygon { fill:#b798f222; }
#records .trendCol { position:absolute; transform:translate(-50%,-50%); width:7px; height:7px; border:1px solid var(--lav); background:#24212f; border-radius:50%; }
#records .trendCol:last-child { background:var(--lav); }
#records .trendLatest { font:600 18px/1 var(--mono); color:var(--lav); }
#records .trendDates { justify-content:space-between; }
#records .historyLine { display:block; margin:0; padding:0; font-size:14px; }
#records .historyRunSummary { display:flex; align-items:center; gap:12px; min-height:44px; list-style:none; padding:5px 2px; }
#records .historyRunSummary::-webkit-details-marker { display:none; }
#records .historyRunSummary::after { content:'⌄'; font:16px sans-serif; color:var(--muted); }
#records .historyLine[open]>.historyRunSummary::after { transform:rotate(180deg); }
#records .historyRunSummary:is(:hover,:focus-visible) { background:#c6a6ff0a; }
#records :is(.runGrade,.runTN) { min-width:35px; font:bold italic 20px/1 var(--mono); color:var(--yellow); }
#records .runTN { color:var(--lav); }
#records .runAccuracy { font:650 16px/1 var(--mono); }
#records .runRead { font:14px/1 var(--mono); min-width:max-content; }
#records .runProgress { width:min(24%,140px); height:5px; accent-color:var(--lav); border:0; border-radius:8px; }
#records .runDate { margin-left:auto; font-size:12px; color:var(--muted); white-space:nowrap; }
#records .historyRunDetails { display:flex; gap:5px 14px; flex-wrap:wrap; align-items:baseline; padding:5px 0 14px; color:#d6cede; }
#records .historyRunDetails>.resultDetails { flex-basis:100%; margin:6px 0 0; padding:0; background:none; border:0; }
#records .historyRunMeta { color:var(--muted); }
#records .historyReplay { color:var(--lav); font-size:13px; padding:2px 4px; }
#records .historyReplay::before { content:'▷ '; }
#records .historyReplay:hover { text-decoration:underline; }
#records .olderAttempts>summary { padding:9px 0; color:var(--lav); width:fit-content; }
#records .olderRunBatch { padding:9px 0; color:var(--lav); font-size:13px; }
@media(max-width:700px) {
  #records .historyOverview { grid-template-columns:minmax(0,1fr); gap:18px; }
  #records .historyRunSummary { gap:7px; }
  #records .runDate { font-size:11px; }
  #records .runProgress { max-width:54px; }
}
@media (max-width:740px) {
  #library .layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  #library .selectedColumn,#library .catalog { grid-column:1; }
  #library:not(.learning) .catalog { grid-row:2; }
  #library .focusBody { gap:6px; padding-inline:10px; }
  #library .cover .caption,#library .cover .now { margin-left:10px; }
  #library .launch { width:100%; margin:4px 0 0; }
  #library .launch button { min-height:32px; padding-inline:9px; }
  #library .tracks { max-height:45vh; }
  #library .selectedRunList { max-height:240px; }
  #library #selectedRuns .catalogHead { flex-wrap:wrap; gap:4px 15px; }
}
.accompanimentRow {display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:12px 0 3px;}
.accompanimentRow label {font-size:.76rem;color:var(--muted,#c5bdcf);}
.accompanimentRow select {max-width:min(100%,17em);min-width:6em;padding:5px 6px;font:inherit;font-size:.82rem;color:inherit;background:#252031;border:1px solid #4a4356;border-radius:5px;}
.accompanimentRow .textbtn {font-size:.77rem;padding:5px 0;}
#library:not(.learning) .focus {
  --hero-size:clamp(1.85rem,3.5vw,3.35rem);
  --hero-pad:clamp(10px,1.5vw,18px);
  min-width:0;
}
#library.catalogEmpty .focus>.cover,
#library.catalogEmpty .focus>.focusBody,
#library.catalogEmpty .selectedColumn,
#library.catalogEmpty #timingInfo { visibility:hidden; }
#emptySelection {
  position:absolute; inset:0; display:grid; align-content:center; justify-items:start; gap:.55rem;
  padding:var(--hero-pad,16px); z-index:1;
}
#emptySelection[hidden] { display:none; }
#emptySelection h2 { margin:0; font-size:clamp(1.25rem,2.4vw,2rem); }
#library:not(.learning) .cover {
  display:grid; grid-template-columns:minmax(0,1fr); gap:1px;
  padding:10px var(--hero-pad) 3px; align-items:start;
}
#library:not(.learning) .coverHeader,#library:not(.learning) .coverTools {
  display:flex; align-items:center; gap:.5rem; min-width:0;
}
#library:not(.learning) .coverHeader { justify-content:space-between; }
#library:not(.learning) .coverTools { max-width:65%; }
#library:not(.learning) .coverTools button { position:static; flex:none; }
#songCategory {
  min-width:0; max-width:38ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font:500 .78rem/1.5 var(--mono); color:#eee6f4; text-shadow:0 1px 4px #15101f;
}
#library:not(.learning) .cover .now {
  display:block; flex:1; min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#library:not(.learning) .cover .caption {
  margin:0; min-width:0; display:grid; grid-template-rows:auto 1.3rem;
}
#library:not(.learning) #heroTitle { grid-row:1; font-size:var(--hero-size); line-height:1.32; padding-inline-end:.05em; }
#library:not(.learning) #heroComposer { grid-row:2; }
#library:not(.learning) :is(#heroTitle,#heroComposer,#songAlbum,#copyStudyReason) {
  min-width:0; white-space:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; text-overflow:ellipsis;
}
#library:not(.learning) .focusBody {
  display:grid; padding:0 var(--hero-pad) 10px; gap:4px 16px; align-items:center;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows:1.8rem 2.1rem 2.5rem;
  grid-template-areas:"metrics album" "backing reason" "launch launch";
}
#library:not(.learning) #metrics { grid-area:metrics; flex-wrap:nowrap; overflow:auto hidden; scrollbar-width:none; min-height:0; margin:0; }
#library:not(.learning) #metrics span { flex:none; }
#library:not(.learning) #songAlbum { grid-area:album; }
#library:not(.learning) #copyStudyReason {
  grid-area:reason; justify-self:end; max-width:100%; margin:0; font-size:11px; line-height:1.3;
}
#library:not(.learning) .accompanimentRow {
  grid-area:backing; display:grid; grid-template-columns:minmax(0,1fr) 4.8em 6.7em 8.9em;
  align-items:center; gap:4px; min-width:0; margin:0; font-size:13px;
}
#library:not(.learning) .backingLabel { display:none; }
#library:not(.learning) .backingPicker { grid-column:1; display:inline-grid; position:relative; min-width:0; max-width:100%; justify-self:start; }
#library:not(.learning) .backingPicker::after {
  content:''; pointer-events:none; position:absolute; right:3px; top:calc(50% - 4px);
  width:5px; height:5px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); opacity:.68;
}
#library:not(.learning) #backingVersion {
  appearance:none; field-sizing:content; min-width:0; max-width:100%; border:0; box-shadow:none; border-radius:0;
  background:transparent; padding:5px 16px 5px 1px; color:var(--white); font-size:13px; text-overflow:ellipsis;
}
#library:not(.learning) #backingVersion:focus-visible { outline:2px solid #8ee7ff; outline-offset:1px; }
#library:not(.learning) #backingVersion:disabled { opacity:.8; cursor:default; }
#library:not(.learning) #backingVersion option { background:var(--surface); color:var(--white); }
#library:not(.learning) .accompanimentRow .textbtn { justify-self:start; line-height:1.12; text-align:start; }
#library:not(.learning) #backingAdd { grid-column:2; }
#library:not(.learning) #backingRemove { grid-column:3; }
#library:not(.learning) #violinOpen { grid-column:4; }
#library:not(.learning) .launch {
  grid-area:launch; width:100%; margin:0; flex-wrap:nowrap;
}
#library:not(.learning) .launch button { min-width:0; height:2.4rem; line-height:1.1; justify-content:center; padding:3px 10px; }
@media(max-width:365px) {
  #library:not(.learning) .launchPrimary button { padding-inline:5px; gap:4px; }
  #playHand { font-size:.74rem; }
}
#library:not(.learning) .launchTools { flex-wrap:nowrap; }
@media(min-width:741px) and (max-width:930px) {
  #library:not(.learning) .launch { gap:8px; }
  #library:not(.learning) .launch button { padding-inline:6px; }
  #library:not(.learning) .launchTools button { flex:0 1 auto; }
}
@media(max-width:740px) {
  #library:not(.learning) .focusBody {
    grid-template-columns:minmax(0,1fr); grid-template-rows:1.5rem 1.2rem 2.1rem .9rem 5.05rem;
    grid-template-areas:"metrics" "album" "backing" "reason" "launch"; gap:3px;
  }
  #library:not(.learning) .launch {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(2,2.4rem); gap:3px;
  }
  #library:not(.learning) .launchTools { display:grid; width:min(100%,34rem); grid-template-columns:.8fr .9fr 1.4fr 1.05fr 1.35fr; grid-template-areas:"edit publish copy collection practice"; gap:3px; }
  #library:not(.learning) .launchTools button { padding-inline:3px; font-size:clamp(11px,2.9vw,13px); }
  #library:not(.learning) #editMap { grid-area:edit; }
  #library:not(.learning) #publishMap { grid-area:publish; }
  #library:not(.learning) .launchTools:has(#publishMap[hidden]) #editMap { grid-area:publish; }
  #library:not(.learning) #copyStudy { grid-area:copy; }
  #library:not(.learning) #collectionsBtn { grid-area:collection; }
  #library:not(.learning) #practice { grid-area:practice; }
  #library:not(.learning) .launchTools:has(#mapVisibility:not([hidden])) #editMap {grid-area:edit;}
  #library:not(.learning) #mapVisibility {grid-area:publish;}
  #library:not(.learning) #mapReviewControl {grid-area:edit;}
  #library:not(.learning) .focusBody:has(#mapReviewControl:not([hidden])) .launchTools {display:flex; flex-wrap:wrap; width:100%;}
  #library:not(.learning) .focusBody:has(#mapReviewControl:not([hidden])) {grid-template-rows:1.5rem 1.2rem 2.1rem .9rem auto;}
  #library:not(.learning) .launch:has(#mapReviewControl:not([hidden])) {grid-template-rows:2.4rem auto;}
  #library:not(.learning) .accompanimentRow { grid-template-columns:minmax(0,1fr) 4em 5.6em 7.6em; gap:3px; }
}
#violinDialog {width:min(94vw,820px);max-height:90dvh;padding:14px 18px;overflow:auto;}
#violinDialog header,#violinDialog footer {display:flex;align-items:center;justify-content:space-between;gap:10px;}
#violinDialog header {margin-bottom:12px;}
#violinDialog h2,#violinTitle {margin:0;}
#violinTitle,#violinPage {color:var(--muted,#c5bdcf);font-size:.84rem;}
#violinDialog footer {margin-top:10px;}
#violinSheet .score-toolbar,#violinSheet .score-caption,#violinSheet .score-playhead {display:none;}
#violinSheet .score-spread {grid-template-columns:minmax(0,1fr);}
#records .playerProfile {
  display: grid;
  grid-template-columns: minmax(10em, 1fr) minmax(9em, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: .3rem 0 1.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--stroke);
}
.playerIdentity { display:grid; gap:.3rem; min-width:0; }
.playerIdentity span, #playerXp { font-size:.8rem; color:var(--muted); }
#playerName {
  width:100%; min-width:0; box-sizing:border-box;
  background:transparent; color:inherit; border:0; border-bottom:1px solid #91819f;
  border-radius:0; padding:.1rem 0 .3rem; font-family:inherit; font-size:1.25rem; font-weight:650; line-height:1.3;
}
#playerName:focus-visible { outline:2px solid var(--aqua, #93dad5); outline-offset:3px; }
.playerGrowth > div { display:flex; align-items:baseline; justify-content:space-between; gap:.7em; }
#playerProgress { display:block; width:100%; height:.45rem; margin-top:.45rem; accent-color:var(--aqua, #93dad5); }
#playerPP { font-size:1.5rem; color:var(--lav); white-space:nowrap; }
@media (max-width:600px) {
  #records .playerProfile { grid-template-columns:minmax(0,1fr) auto; gap:.8rem 1.25rem; }
  .playerIdentity { grid-column:1 / -1; }
}
