:root{font-family:system-ui,-apple-system,sans-serif;color:#243b37;background:#f6f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #cc922f;outline-offset:4px}header{height:78px;border-bottom:1px solid #dedfd6;display:flex;align-items:center;gap:18px;padding:0 5vw;background:#fafaf6}#brand{text-decoration:none;color:#234e48;font-size:32px;font-weight:700;display:flex;gap:12px;align-items:center}#brand span{font-size:19px;letter-spacing:-.6px}.badge{font-size:9px;letter-spacing:1.8px;border:1px solid #d9dfd4;padding:6px 9px;border-radius:5px;color:#708078}#install{margin-left:auto;background:#e6ede5;padding:10px 16px;border-radius:9px;color:#234e48}main{max-width:1160px;margin:auto;padding:58px 38px 110px}.eyebrow{font-size:10px;letter-spacing:2px;color:#6d7e70;font-weight:700}h1{font-family:Georgia,serif;font-weight:400;font-size:46px;letter-spacing:-1.7px;margin:13px 0}p.sub{color:#7a847c;font-size:14px;line-height:1.8;margin:0}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:38px}.primary{background:#234e48;color:white;border-radius:10px;padding:14px 20px;font-size:13px;box-shadow:0 4px 10px #234e4810}.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}.book{position:relative;background:white;border:1px solid #e1e3da;border-radius:15px;overflow:hidden}.cover{height:205px;background:#dfe8de;display:flex;justify-content:center;align-items:center;cursor:pointer;position:relative}.cover canvas{max-width:84%;max-height:175px;box-shadow:0 5px 15px #243b3725}.cover .music{font:65px Georgia;color:#779b83}.book:nth-child(3n+2) .cover{background:#e9dfcd}.book:nth-child(3n+3) .cover{background:#dce5eb}.bookinfo{padding:19px;cursor:pointer}.book h3{font-size:15px;margin:0 0 9px;overflow-wrap:anywhere}.bookinfo p{font-size:11px;color:#839087;margin:0}.delete{position:absolute;right:10px;top:10px;background:#ffffffde;border-radius:50%;width:30px;height:30px;color:#63736a}.addtile{border:1px dashed #b8c9ba;background:#eef2e9;border-radius:15px;min-height:281px;color:#57725e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.addtile b{font-size:30px;font-weight:300}.addtile span{font-size:13px}.hint{margin-top:32px;padding-top:22px;border-top:1px solid #e0e2d7;font-size:11px;color:#7d8a7f;line-height:1.8}.empty{padding:24px 0 32px;max-width:520px}.empty h2{font-family:Georgia,serif;font-size:26px;font-weight:400}.back{background:transparent;color:#697d6d;padding:0;font-size:12px;margin-bottom:14px}.pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:11px}.pagebtn{height:65px;border:1px solid #dfe3d8;background:white;color:#365b4c;border-radius:10px;font-size:18px;font-weight:500}.pagebtn:hover{background:#234e48;color:white}.pagebtn.seen{border-color:#6f9680;background:#e4ede2}.reader main{padding:0;max-width:none;height:calc(100dvh - 50px);display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e8e9e2;touch-action:none}.reader header{height:50px;padding:0 20px}.reader #brand span{font-size:14px}.reader #brand{font-size:23px}.reader .badge{display:none}.reader canvas{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 1px 15px #0001;touch-action:none}#dock{position:fixed;bottom:20px;right:24px;z-index:5;display:flex;align-items:flex-end;gap:10px}#dock[hidden]{display:none}#menu{background:#234e48;color:white;width:49px;height:49px;border-radius:50%;font-size:22px;box-shadow:0 5px 20px #0002}#actions{display:flex;gap:6px;background:#fffffff2;padding:8px;border:1px solid #e2e6dc;border-radius:14px;box-shadow:0 5px 25px #0001}#actions[hidden]{display:none}#actions button{background:transparent;display:flex;align-items:center;gap:9px;padding:7px 11px;color:#34584a;font-size:23px}#actions span{font-size:11px;text-align:left}#actions small{font-size:9px}button:disabled{opacity:.4;cursor:default}#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#243b37;color:white;padding:12px 20px;border-radius:12px;font-size:13px;z-index:20;display:none;max-width:85vw}dialog{border:1px solid #dfe3d8;border-radius:19px;padding:30px;width:360px;background:#fafbf6;color:#243b37}dialog::backdrop{background:#1a302c66}dialog h2{font:30px Georgia}dialog label{font-size:12px;display:block}dialog input{width:100%;padding:13px;border:1px solid #bdcdbf;border-radius:9px;font-size:26px;margin-top:10px;background:white}dialog .primary{width:100%}.close{float:right;background:none;font-size:24px;color:#738575}#jumpError{font-size:12px;color:#a33b32;min-height:16px}#range{color:#7c8c80}.loading{color:#6b8173;margin:40px} @media(max-width:600px){header{padding:0 20px;height:65px}.badge{font-size:8px}main{padding:32px 20px 100px}h1{font-size:36px}.heading{align-items:flex-start;flex-direction:column;gap:20px}.books{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:13px}.cover{height:170px}.cover canvas{max-height:145px}.bookinfo{padding:14px}.addtile{min-height:245px}.pages{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:8px}.pagebtn{height:58px}#dock{right:14px;bottom:14px}#actions{gap:0}#actions button{padding:6px 8px}#actions span{font-size:10px}}

.delete{z-index:2;width:38px;height:38px;touch-action:manipulation}.delete:hover{background:#fbe4de;color:#963c2c}#pagebar{display:flex;align-items:center;background:#fffffff2;border:1px solid #dfe3d8;border-radius:30px;box-shadow:0 4px 20px #0001;height:49px;padding:4px}#pagebar[hidden]{display:none}#pagebar button{height:39px;background:transparent;color:#34584a;border-radius:24px}#prevPage,#nextPage{width:37px;font-size:28px}#pageIndicator{min-width:78px;padding:0 8px;font-size:12px;font-variant-numeric:tabular-nums}#pagebar button:hover{background:#e8eee4}.numberbar{display:flex;align-items:center;gap:8px;margin-top:12px}.numberbar input{margin:0;text-align:center;min-width:0}.numberbar button{flex-shrink:0;width:42px;height:54px;font-size:30px;background:#e6ede3;color:#234e48;border-radius:9px}#keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}#keypad button{height:48px;border-radius:9px;background:#edf1e8;color:#234e48;font-size:21px;touch-action:manipulation}#keypad button:hover{background:#dae6d6}#keypad #clearNumber{font-size:11px}.dialogbuttons{display:flex;gap:10px;margin-top:24px}.dialogbuttons button{padding:13px 16px;border-radius:9px;background:#e7ece1;color:#34584a}.dialogbuttons .danger{background:#a24333;color:white}#removeName{overflow-wrap:anywhere;font-weight:600}#removeError{font-size:12px;color:#a24333}#removeDialog .sub{font-size:13px}#dock{flex-wrap:wrap;max-width:calc(100vw - 28px);justify-content:flex-end}#actions{order:-1}#dock:has(#actions:not([hidden])) #actions{flex-basis:100%;justify-content:flex-end}dialog{max-height:calc(100dvh - 32px);overflow:auto}

/* Compact portrait tablet layout. */
header{height:64px;padding:0 24px;gap:12px}#brand{font-size:inherit}#brand span{font-size:21px;letter-spacing:-.5px;font-weight:600}main{max-width:980px;padding:24px 24px 110px}.books{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}.cover{height:210px}.addtile{min-height:286px}.reader header{height:48px}.reader main{height:calc(100dvh - 48px);padding:0}.reader #brand span{font-size:15px}.reader #brand{font-size:15px}#dock{bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right))}
@media(orientation:portrait) and (min-width:600px){main{padding:24px 28px 110px}.books{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cover{height:210px}.bookinfo{padding:16px}.book h3{font-size:14px}.addtile{min-height:286px}.pages{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:10px}.pagebtn{height:60px}.heading{margin-bottom:24px}h1{font-size:34px;overflow-wrap:anywhere}.reader main{padding:0}#dock{right:20px;bottom:20px}}
@media(max-width:599px){header{height:58px;padding:0 18px}#brand span{font-size:19px}main{padding:18px 16px 100px}.books{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cover{height:170px}.addtile{min-height:245px}.reader main{padding:0}#install{padding:8px;font-size:11px}}

/* Compact menu without an empty full-width row. */
#dock{display:grid;grid-template-columns:auto auto;gap:8px;max-width:calc(100vw - 28px)}#actions,#dock:has(#actions:not([hidden])) #actions{grid-column:1 / -1;justify-self:end;display:grid;grid-template-columns:repeat(4,54px);gap:2px;padding:6px;width:max-content;max-width:100%;flex-basis:auto;order:initial}#actions[hidden]{display:none}#actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:7px 1px;min-height:55px;font-size:21px;border-radius:8px}#actions button span{text-align:center;font-size:9px;line-height:1.3}#actions button small{font-size:8px}#actions button:hover:not(:disabled){background:#e6ede3}#pagebar{grid-column:1}#pagebar[hidden]+#menu{grid-column:2}#menu{grid-column:2;justify-self:end}#headerSettings{margin-left:auto;background:transparent;color:#46685b;font-size:22px;width:38px;height:38px;border-radius:9px}.reader #headerSettings{width:32px;height:32px;font-size:19px}.themechoices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.themechoices button{display:flex;align-items:center;flex-direction:column;gap:10px;padding:20px 12px;border:2px solid transparent;border-radius:12px;font-size:30px;background:#e9eee5;color:#31564a}.themechoices span{font-size:12px}.themechoices button[aria-pressed=true]{border-color:#3a8370;box-shadow:0 0 0 2px #3a837018}#settingsDialog h3{font-size:14px;font-weight:500}.filterdefs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
html[data-theme=dark]{color-scheme:dark;background:#31393e;color:#d6dcdf}html[data-theme=dark] body{background:#31393e}html[data-theme=dark] header{background:#2b3338;border-color:#465056}html[data-theme=dark] #brand,html[data-theme=dark] #headerSettings{color:#d6dcdf}html[data-theme=dark] .book{background:#384248;border-color:#4b565d}html[data-theme=dark] .cover,html[data-theme=dark] .book:nth-child(n) .cover{background:#283136}html[data-theme=dark] .bookinfo p,html[data-theme=dark] .sub,html[data-theme=dark] .eyebrow,html[data-theme=dark] .back,html[data-theme=dark] .loading,html[data-theme=dark] #range{color:#aebbc1}html[data-theme=dark] .addtile{background:#354248;border-color:#607a7f;color:#bacdd0}html[data-theme=dark] .delete{background:#404d54;color:#d9e1e4}html[data-theme=dark] .primary,html[data-theme=dark] #menu{background:#287b78;color:#eef5f4}html[data-theme=dark] .pagebtn{background:#38434a;color:#d6dcdf;border-color:#4a585f}html[data-theme=dark] .pagebtn.seen,html[data-theme=dark] .pagebtn:hover{background:#285f64;border-color:#45918f}html[data-theme=dark] .reader main{background:#31393e}html[data-theme=dark] .reader canvas,html[data-theme=dark] .cover img{filter:invert(1) hue-rotate(180deg) url('#pdf-night')}html[data-theme=dark] #actions,html[data-theme=dark] #pagebar{background:#2b353bee;border-color:#4d5b64}html[data-theme=dark] #actions button,html[data-theme=dark] #pagebar button{color:#d3dde0}html[data-theme=dark] #actions button:hover:not(:disabled),html[data-theme=dark] #pagebar button:hover{background:#40535b}html[data-theme=dark] dialog{background:#31393e;color:#d6dcdf;border-color:#59666d}html[data-theme=dark] dialog::backdrop{background:#10181bbb}html[data-theme=dark] dialog input{background:#252e33;color:#e1e7e9;border-color:#60747d}html[data-theme=dark] .numberbar button,html[data-theme=dark] #keypad button,html[data-theme=dark] .themechoices button,html[data-theme=dark] .dialogbuttons button,html[data-theme=dark] #install{background:#40515a;color:#dce7e9}html[data-theme=dark] #keypad button:hover{background:#516b74}html[data-theme=dark] .themechoices button[aria-pressed=true]{border-color:#50b4a7}html[data-theme=dark] .close{color:#c0ced3}html[data-theme=dark] .dialogbuttons .danger{background:#a34d40;color:white}html[data-theme=dark] #jumpError,html[data-theme=dark] #removeError{color:#ffa99b}

/* Larger arrows and a quiet page overview. */
#prevPage,#nextPage{width:66px;font-size:62px;line-height:1}#pagebar{height:70px}#pagebar button{height:60px}#pageIndicator{min-width:90px;font-size:14px}.numberbar button{width:62px;height:64px;font-size:60px;line-height:1}.gridview header{display:none}.gridview main{padding-top:22px}.gridview #back{margin-bottom:20px}#inlineSearch{margin-bottom:25px}#inlineSearch #jumpform{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,1fr);gap:10px 30px;align-items:start;max-width:760px;margin:0 auto}#inlineSearch .close,#inlineSearch .eyebrow,#inlineSearch h2{display:none}#inlineSearch label{grid-column:1;grid-row:1;font-size:14px}#inlineSearch .numberbar{grid-column:1;grid-row:2;margin:0}#inlineSearch .numberbar input{width:100%;min-width:0;padding:14px;text-align:center;border:1px solid #bdcdbf;border-radius:9px;font-size:28px;background:white;color:#243b37}#inlineSearch #keypad{grid-column:2;grid-row:1/5;margin:0}#inlineSearch #jumpError{grid-column:1;grid-row:3;margin:0}#inlineSearch .primary{grid-column:1;grid-row:4;align-self:start}#inlineSearch #range{display:none}.filetools{position:absolute;right:10px;top:58px;display:flex;flex-direction:column;gap:6px;z-index:2}.filetools button{width:38px;height:38px;border-radius:50%;background:#fffffff0;color:#49675c;font-size:23px}.filetools button:hover{background:#e0eee3}.book .cover{padding-right:30px}#fileInfo{display:grid;grid-template-columns:105px minmax(0,1fr);gap:15px 10px;font-size:13px;line-height:1.5}#fileInfo dt{color:#7c8c80}#fileInfo dd{margin:0;overflow-wrap:anywhere}#renameError{font-size:12px;color:#a24333}
html[data-theme=dark],html[data-theme=dark] body{background:#20282d;color:#d9dfe1}html[data-theme=dark] header{background:#1b2327}html[data-theme=dark] .reader main{background:#20282d}html[data-theme=dark] .reader canvas{filter:none}html[data-theme=dark] .book{background:#29343b;border-color:#42515b}html[data-theme=dark] dialog{background:#252f35}html[data-theme=dark] .pagebtn{background:#28343b;border-color:#3d505a}html[data-theme=dark] .addtile{background:#27353c}html[data-theme=dark] #actions,html[data-theme=dark] #pagebar{background:#1d2930f5}html[data-theme=dark] .filetools button{background:#293a43;color:#d4e5e7}html[data-theme=dark] #inlineSearch .numberbar input{background:#182229;color:#e4ebee;border-color:#4e6875}html[data-theme=dark] #fileInfo dt{color:#a6b7bf}
@media(max-width:599px){#inlineSearch #jumpform{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}#inlineSearch .numberbar{gap:3px}#inlineSearch .numberbar button{width:32px;font-size:42px;height:54px}#inlineSearch .numberbar input{padding:10px 2px;font-size:23px}#inlineSearch #keypad button{height:40px}#inlineSearch .primary{padding:12px 6px;font-size:11px}#prevPage,#nextPage{width:54px}#pageIndicator{min-width:74px}}

/* Refined controls and page boundary. */
#renameDialog{width:min(760px,calc(100vw - 40px));padding:26px 30px}#renameDialog h2{font-family:inherit;font-size:20px;font-weight:600;margin:3px 0 20px}#renameDialog input{font-size:20px;padding:13px;margin-top:0}#renameDialog .primary{margin-top:12px}#renameError:empty{display:none}.filetools{top:12px;right:10px;gap:12px}.filetools button,.filetools .delete{position:static;display:grid;place-items:center;width:40px;height:40px;font-size:25px;box-shadow:0 1px 5px #0001}.filetools svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.book .cover{padding-right:45px}.appearanceRow{display:flex;align-items:center;gap:22px;justify-content:space-between}.appearanceRow h3{margin:0}.themechoices{display:flex;gap:8px;margin:0}.themechoices button{flex-direction:row;gap:7px;font-size:23px;padding:10px 13px;border-radius:9px}.themechoices span{font-size:12px}#settingsDialog{width:min(420px,calc(100vw - 32px))}#settingsDialog h2{font-family:inherit;font-size:21px;margin:5px 0 25px}.gridview #inlineSearch label{display:block;align-self:end;margin:0 0 -3px;grid-column:1;grid-row:1}.gridview #inlineSearch{border-bottom:1px solid #c6d1c5;padding-bottom:22px;margin-bottom:22px}.gridview #inlineSearch .numberbar{grid-row:2}.gridview #inlineSearch #jumpform{row-gap:10px}html[data-theme=dark] .gridview #inlineSearch{border-color:#52636b}.reader main{background:#cdd1c8}.reader canvas{outline:1px solid #afb6ae;box-shadow:0 0 22px #0003}html[data-theme=dark] .reader main{background:#131b20}html[data-theme=dark] .reader canvas{outline:1px solid #5b6c76;box-shadow:0 0 25px #0008}
#pagebar{height:94px;padding:0 4px;align-items:center}#pagebar button{display:grid;place-items:center;height:88px;line-height:1;padding:0}#prevPage,#nextPage{width:78px;font-size:106px;font-family:Arial,sans-serif;transform:translateY(-4px)}#pageIndicator{min-width:92px;font-size:16px;transform:none}#dock{gap:5px;align-items:center}#menu{align-self:center}#actions,#dock:has(#actions:not([hidden])) #actions{padding:4px;gap:0}#actions button{padding:3px 1px;min-height:43px;gap:3px}#actions button span{font-size:9px}#actions button small{font-size:7px}#dock:has(#actions[hidden]){row-gap:0}
@media(max-width:599px){#prevPage,#nextPage{width:66px;font-size:96px}#pageIndicator{min-width:78px}.appearanceRow{gap:14px}#renameDialog{padding:23px 20px}.themechoices button{padding:9px}#renameDialog input{font-size:17px}}

#prevPage,#nextPage{transform:none}#pagebar svg{width:48px;height:80px;fill:none;stroke:currentColor;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
/* Floating tablet controls and distraction-free reading. */
header,.reader header,.gridview header{position:fixed;z-index:6;top:14px;left:14px;display:flex;height:auto!important;width:auto;padding:0!important;background:transparent!important;border:0!important;gap:8px}#brand{display:none!important}#headerSettings,.reader #headerSettings{margin:0;width:44px;height:44px;font-size:24px;border-radius:50%;background:#f8faf1e8;box-shadow:0 2px 10px #0002}html[data-theme=dark] #headerSettings{background:#24343ce8;color:#dce6e8}main{padding-top:76px}.gridview main{padding-top:76px}.reader main{height:100dvh!important;padding:0!important}.reader canvas{max-height:100dvh}.bubble,#menu{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;font-size:32px;background:#234e48;color:#f5f8f1;box-shadow:0 3px 15px #0002;flex-shrink:0}.bubble[hidden],#menu[hidden]{display:none!important}#dock{display:flex;flex-wrap:nowrap;align-items:center;gap:9px;overflow:visible;max-width:calc(100vw - 28px)}#pagebar{height:70px;padding:0 3px;display:flex;align-items:center}#pagebar button{height:64px}#prevPage,#nextPage{width:56px}#pagebar svg{width:32px;height:53px;stroke-width:6}#pageIndicator{font-size:23px;min-width:108px;padding:0 4px;font-variant-numeric:tabular-nums}#menu{font-size:32px;transition:transform .18s}#menu.expanded{transform:rotate(90deg)}#actions,#dock:has(#actions:not([hidden])) #actions{position:absolute;bottom:80px;right:0;display:flex;flex-direction:column;gap:12px;width:64px;padding:0;background:transparent!important;border:0;box-shadow:none;max-width:none}#actions[hidden]{display:none!important}#actions button{display:grid;place-items:center;width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;background:#f9fbf3f5;color:#34584a;border:1px solid #d6dfd3;font-size:31px;box-shadow:0 3px 14px #0002;animation:rise .18s ease-out}#actions button:disabled{opacity:1;color:#83928a}#actions button:disabled:last-child{opacity:.75}html[data-theme=dark] .bubble,html[data-theme=dark] #actions button{background:#263d47;color:#d3e3e7;border-color:#546b75}html[data-theme=dark] #actions button:disabled{color:#7b939e}#focusPage{position:fixed;z-index:5;bottom:20px;left:20px;width:48px;height:48px}#focusPage svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#focusPage[hidden]{display:none}.focusmode header,.focusmode #dock,.focusmode #focusPage,.focusmode #toast{display:none!important}.focusmode main{cursor:pointer}#gridHome{width:64px;height:64px}#inlineSearch{margin-top:0}@keyframes rise{from{transform:translateY(15px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){#actions button{animation:none}#menu{transition:none}}@media(max-width:599px){#dock{gap:5px;right:10px;bottom:12px}#prevPage,#nextPage{width:40px}#pagebar svg{width:28px;height:47px}#pageIndicator{min-width:82px;font-size:20px}.bubble,#menu,#gridHome{width:54px;height:54px;font-size:28px}#actions,#dock:has(#actions:not([hidden])) #actions{width:54px;bottom:72px}#actions button{width:54px;height:54px;min-height:54px}#focusPage{left:10px;bottom:90px;width:44px;height:44px}}

/* Balanced icon sizes and right-aligned settings. */
header,.reader header,.gridview header{left:auto!important;right:14px;top:14px}#headerSettings svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}#headerSettings,.reader #headerSettings{display:grid;place-items:center;width:46px;height:46px;padding:0}#search,#menu{width:58px;height:58px}#pagebar{height:64px}#pagebar button{height:58px}#search svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}#menu{font-size:30px}#home svg,#gridHome svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#actions,#dock:has(#actions:not([hidden])) #actions{width:58px;bottom:74px}#actions button{width:58px;height:58px;min-height:58px}.gridview #gridHome{position:fixed;top:14px;left:14px;bottom:auto;right:auto;width:46px;height:46px;z-index:7}#gridHome svg{width:32px;height:32px}.themechoices button{padding-top:4px;padding-bottom:4px;font-size:21px;min-height:34px}.themechoices span{font-size:12px}#settingsDialog .appearanceRow{align-items:center}
@media(max-width:599px){#search,#menu{width:50px;height:50px}#search svg{width:31px;height:31px}#actions,#dock:has(#actions:not([hidden])) #actions{width:50px;bottom:70px}#actions button{width:50px;height:50px;min-height:50px}#home svg{width:32px;height:32px}.themechoices button{padding-top:3px;padding-bottom:3px}}

/* Readable numeric navigation. */
.gridview #inlineSearch label{margin-left:70px;margin-bottom:0;font-size:17px;line-height:1.4}.pagebtn{font-size:21px}#keypad button{font-size:24px}#keypad #clearNumber{font-size:14px}#inlineSearch .numberbar input{font-size:31px}dialog #number{font-size:29px}#pageIndicator{font-size:26px}#inlineSearch .primary,#jumpform>.primary{font-size:16px}#jump{position:relative;padding-top:26px}#jumpform h2{margin:0 36px 17px 0;font-size:30px}#jump #close{position:absolute;top:15px;right:20px;float:none}#jump .numbercaption{display:none}#jump #range{font-size:17px;line-height:1.5}#jump label{margin-bottom:12px}#jump .numberbar{margin-top:0}
@media(max-width:599px){.gridview #inlineSearch label{margin-left:35px;font-size:17px}#inlineSearch .numberbar input{font-size:26px}#inlineSearch #keypad button{font-size:24px}#inlineSearch #keypad #clearNumber{font-size:14px}#inlineSearch .primary{font-size:14px}#pageIndicator{font-size:23px}}

/* More legible controls and paired PDF import. */
.numberbar button{font-size:88px!important;line-height:.7}#inlineSearch .primary,#jumpform>.primary{font-size:18px}#keypad #clearNumber,#inlineSearch #keypad #clearNumber{font-size:16px}.libraryintro{margin:0 0 30px}.libraryintro h1{font-family:Georgia,serif;font-size:34px;letter-spacing:-1px;margin:0 0 9px}.libraryintro p{font-size:13px;color:#7c8b81;margin:0}#menu{font-size:0;position:relative}#menu::before{content:'';display:block;width:24px;height:18px;background:linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 50%/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 100%/100% 2px no-repeat}#focusPage{width:58px;height:58px}#focusPage svg{width:29px;height:29px}html[data-theme=dark] .pagebtn{background:#354c59;color:#f2f6f8;border-color:#516d7b}html[data-theme=dark] #keypad button,html[data-theme=dark] .numberbar button{background:#4a6473;color:#f2f7f9}html[data-theme=dark] .pagebtn.seen,html[data-theme=dark] .pagebtn:hover{background:#347f85;color:white}html[data-theme=dark] .libraryintro p{color:#afc2cc}#addDialog{width:min(590px,calc(100vw - 32px))}#addDialog h2{font-family:inherit;font-size:22px;margin:4px 35px 22px 0}.uploadrow{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-top:1px solid #d8e0d4}.uploadrow strong{font-size:15px}.uploadrow p{font-size:12px;line-height:1.5;color:#7b8d80;margin:6px 0 0;overflow-wrap:anywhere}.uploadrow>div{min-width:0}.uploadrow button{padding:11px 16px;border-radius:9px;background:#e1ebe0;color:#34584a;flex-shrink:0}#addError{font-size:13px;line-height:1.5;color:#a14735}#saveBook{width:100%}html[data-theme=dark] .uploadrow{border-color:#526772}html[data-theme=dark] .uploadrow p{color:#abc1ca}html[data-theme=dark] .uploadrow button{background:#496572;color:#edf5f7}html[data-theme=dark] #addError{color:#ffb6a9}#indexDialog{width:min(900px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:15px;overflow:hidden}#indexDialog[open]{display:flex;flex-direction:column;gap:12px}.indexhead{display:flex;justify-content:space-between;align-items:center}.indexhead h2{font-family:inherit;font-size:18px;margin:0}#indexCanvas{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}#indexCanvas canvas{max-width:100%;max-height:100%;object-fit:contain;filter:none!important}.indexnav{display:flex;align-items:center;justify-content:center;gap:16px}.indexnav>button:not(.primary){font-size:38px;background:transparent;color:inherit;width:40px}.indexnav span{font-size:17px}.indexnav .primary{font-size:14px;padding:12px}html[data-theme=dark] #indexCanvas{background:#141d22}
@media(max-width:599px){#focusPage{width:50px;height:50px}#inlineSearch .primary{font-size:16px}.numberbar button{font-size:68px!important}.libraryintro h1{font-size:29px}.uploadrow{gap:10px}.uploadrow strong{font-size:14px}}

.libraryintro{display:flex;align-items:center;justify-content:center;gap:23px;position:relative;padding:10px 0 25px;margin-bottom:26px}.libraryintro h1{font-family:Georgia,serif;font-size:35px;letter-spacing:.3px;margin:0;position:relative}.libraryintro h1::after{content:'';position:absolute;height:1px;bottom:-9px;left:-12px;right:-12px;background:linear-gradient(90deg,transparent,#789386 20%,#789386 80%,transparent)}.musicornament{font-family:Georgia,serif;font-size:27px;color:#809c8b;transform:rotate(-12deg);opacity:.65}.musicornament.rightnote{font-size:21px;transform:rotate(12deg)}html[data-theme=dark] .musicornament{color:#8db7c5}html[data-theme=dark] .libraryintro h1::after{background:linear-gradient(90deg,transparent,#789eab 20%,#789eab 80%,transparent)}#menu,#menu.expanded{transform:none!important;position:relative;padding:0;line-height:1}#menu::before{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%) rotate(0deg);transform-origin:50% 50%;transition:transform .18s ease}#menu.expanded::before{transform:translate(-50%,-50%) rotate(90deg)}@media(prefers-reduced-motion:reduce){#menu::before{transition:none}}@media(max-width:599px){.libraryintro h1{font-size:31px}.libraryintro{gap:18px;padding-top:3px}}

/* Persistent performance queue. */
#addQueue svg,#queueButton svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#queueButton{position:fixed;top:14px;left:74px;width:auto;height:46px;padding:0 16px 0 12px;display:flex;align-items:center;gap:8px;z-index:7;font-size:15px}#queueButton svg{width:23px;height:23px}#queueButton[hidden]{display:none!important}.queueview #gridHome{position:fixed;top:14px;left:14px;bottom:auto;right:auto;width:46px;height:46px;z-index:7}#actions #addQueue.queued,html[data-theme=dark] #actions #addQueue.queued{background:#246ab6;color:white;border-color:#83bdf9;box-shadow:0 0 0 2px #5caaf235}#actions #addQueue.queued::after{content:'✓';position:absolute;right:0;top:-2px;background:#e9f5ff;color:#246ab6;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:14px}#addQueue{position:relative}.queueview main{padding-top:90px}.queueheading h1{font-family:Georgia,serif;font-size:34px;margin:0 0 10px}.queueheading p,.queuehint{font-size:14px;color:#718579}.queuelist{display:flex;flex-direction:column;gap:12px;margin-top:25px}.queueitem{display:flex;align-items:center;background:white;border:1px solid #d8e1d5;border-radius:13px;overflow:hidden}.openqueued{flex:1;display:flex;align-items:center;gap:16px;text-align:left;padding:18px;background:transparent;color:inherit;min-width:0}.queueorder{font-size:13px;color:#779581;min-width:22px}.queuetitle{font-size:16px;font-weight:600;overflow-wrap:anywhere;flex:1}.queuetitle small{display:block;font-size:12px;font-weight:400;color:#7c8e80;margin-top:6px}.queuepagenum{font-size:24px;color:#376859}.removequeued{margin:0 14px 0 0;width:38px;height:38px;font-size:25px;border-radius:50%;background:#eef2e9;color:#637d6a;flex-shrink:0}html[data-theme=dark] .queueitem{background:#2b3d47;border-color:#4f6977}html[data-theme=dark] .queueheading p,html[data-theme=dark] .queuehint,html[data-theme=dark] .queuetitle small{color:#b1c3cb}html[data-theme=dark] .queueorder,html[data-theme=dark] .queuepagenum{color:#9ecaf2}html[data-theme=dark] .removequeued{background:#3e5663;color:#dbeaf0}.focusmode #queueButton{display:none!important}

.libraryintro{justify-content:flex-start;gap:0;padding:0;margin:0 0 28px}.libraryintro h1{font-family:inherit;font-size:27px;font-weight:600;letter-spacing:-.4px}.libraryintro h1::after{display:none}.filetools{gap:8px}.filetools button{width:37px;height:37px}.filetools .attachedIndex{position:relative}.filetools .attachedIndex svg{width:24px;height:24px}.filetools .attachedIndex:disabled{opacity:.5}.slash{position:absolute;width:29px;height:2px;background:currentColor;transform:rotate(-45deg);left:4px;top:18px}.book .cover{min-height:215px}#queueButton{border-radius:12px}.queueitem{display:grid;grid-template-columns:40px minmax(60px,1fr) minmax(100px,1.8fr) 50px;gap:0;min-height:76px;overflow:visible;padding:0 12px}.queueorder{margin:0;text-align:center;font-size:17px}.dragqueue{justify-self:start;display:grid;place-items:center;width:48px;height:52px;background:transparent;color:#789b8b;font-size:30px;touch-action:none;cursor:grab}.queueitem.dragging{opacity:.8;outline:2px solid #649eae;box-shadow:0 6px 20px #0003}.queueitem .openqueued{display:block;text-align:left;padding:18px 10px;font-size:21px;font-weight:500}.removequeued{display:grid;place-items:center;padding:0;margin:0;justify-self:end;width:36px;height:36px}.removequeued svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}html[data-theme=dark] .dragqueue{color:#abc8d5}.indexoverviewtitle h1{font-family:inherit;font-size:25px;margin:0 0 25px}.indexthumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px}.indexthumb{background:#e6ebe2;border:1px solid #cdd9ca;border-radius:12px;padding:12px;color:#355c4d;overflow:hidden}.thumbpaper{height:285px;display:flex;align-items:center;justify-content:center;margin-bottom:13px;background:#d1d9ce}.thumbpaper canvas{max-width:100%;max-height:100%;object-fit:contain;filter:none!important}.thumbpaper span{font-size:12px}.indexthumb>span{font-size:15px}html[data-theme=dark] .indexthumb{background:#2d414c;border-color:#546f7d;color:#deedf2}html[data-theme=dark] .thumbpaper{background:#172127}@media(max-width:599px){.queueitem{grid-template-columns:30px minmax(40px,1fr) minmax(90px,1.8fr) 38px;padding:0 7px}.queueitem .openqueued{font-size:18px;padding:16px 4px}.dragqueue{width:40px}.indexthumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.thumbpaper{height:210px}.libraryintro h1{font-size:25px}}
.dragqueue{font-size:0}.dragqueue::before{content:'';width:14px;height:22px;background:radial-gradient(circle,currentColor 2px,transparent 2.5px) 0 0/7px 7px repeat}.close{display:grid;place-items:center;padding:0;width:32px;height:32px;line-height:1}

/* Adjustable light-to-dark appearance. */
:root{--darkmix:0%;--strength:0;--appbg:color-mix(in srgb,#f6f5ef,#20282d var(--darkmix));--surface:color-mix(in srgb,#ffffff,#2b3d47 var(--darkmix));--ink:color-mix(in srgb,#243b37,#e0e8ec var(--darkmix));--muted:color-mix(in srgb,#718579,#b1c3cb var(--darkmix));--control:color-mix(in srgb,#edf1e8,#4a6473 var(--darkmix));--edge:color-mix(in srgb,#d8e1d5,#526d7b var(--darkmix))}html,html[data-theme=dark],html body,html[data-theme=dark] body{background:var(--appbg);color:var(--ink)}dialog,html[data-theme=dark] dialog,.book,html[data-theme=dark] .book,.queueitem,html[data-theme=dark] .queueitem{background:var(--surface);color:var(--ink);border-color:var(--edge)}.pagebtn,html[data-theme=dark] .pagebtn,#keypad button,html[data-theme=dark] #keypad button,.numberbar button,html[data-theme=dark] .numberbar button,.themechoices button,html[data-theme=dark] .themechoices button{background:var(--control);color:var(--ink);border-color:var(--edge)}.reader main,html[data-theme=dark] .reader main{background:color-mix(in srgb,#cdd1c8,#131b20 var(--darkmix))}dialog input:not([type=range]),#inlineSearch .numberbar input,html[data-theme=dark] #inlineSearch .numberbar input{background:var(--appbg);color:var(--ink);border-color:var(--edge)}.queueheading p,.queuehint,html[data-theme=dark] .queuehint{color:var(--muted)}.intensityControl{margin-top:24px;border-top:1px solid var(--edge);padding-top:18px}.intensityControl label{display:flex;align-items:center;justify-content:space-between;font-size:14px}.intensityControl output{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}dialog .intensityControl input{width:100%;padding:0;height:30px;margin:12px 0 0;accent-color:#4d99b1;cursor:pointer}.intensityEnds{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.libraryintro{padding:0;margin:0 0 32px;transform:translateY(-14px)}.libraryintro h1{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-style:italic;font-weight:400;letter-spacing:.2px;position:relative}.libraryintro h1::after{display:block;content:'';position:absolute;left:0;right:-18px;bottom:-11px;height:7px;border-bottom:2px solid #bd934e;border-radius:0 0 65% 15%;transform:rotate(-1.5deg);background:none}.queueorder{font-size:23px;font-weight:600}.dragqueue{width:52px;height:48px;border:1px solid #c88b2e;border-radius:9px;background:#f6b44727;color:#daa141}.dragqueue::before{width:20px;height:29px;background:radial-gradient(circle,currentColor 3px,transparent 3.5px) 0 0/10px 10px repeat}html[data-theme=dark] .dragqueue{color:#ffc063}.queueitem .openqueued{font-size:24px;touch-action:none;cursor:grab}.queueitem{touch-action:none}.queueitem.lifted{background:var(--surface);box-shadow:0 15px 38px #0006;outline:2px solid #e4aa4d;opacity:.98;cursor:grabbing}.queueplaceholder{border:2px dashed #dcaa55;border-radius:13px;background:#dda74514;min-height:76px}.queuedragging,.queuedragging *{user-select:none!important;cursor:grabbing!important}.queueitem .openqueued:active{cursor:grabbing}@media(max-width:599px){.libraryintro h1{font-size:29px}.queueorder{font-size:21px}.dragqueue{width:40px}.queueitem .openqueued{font-size:21px}}

/* Final library heading and queue details. */
body:not(.reader):not(.gridview):not(.queueview) main{padding-top:17px}.libraryintro{transform:none;margin:0 70px 35px 0;padding:0}.libraryintro h1{font-size:31px;line-height:1.35}.queueitem{grid-template-columns:60px minmax(66px,1fr) minmax(140px,1.8fr) 48px}.queueorder,html[data-theme=dark] .queueorder{font-size:29px;font-weight:700;color:#a96a2b;font-variant-numeric:tabular-nums}.dragqueue{width:54px;height:40px;border-radius:9px;padding:0;display:grid;place-items:center;align-self:center;background:#edac4520}.dragqueue::before{width:26px;height:16px;background:radial-gradient(circle,currentColor 2.2px,transparent 2.7px) 0 0/8.66px 8px repeat;transform:none}.queueitem .openqueued{font-size:20px;line-height:1.5;overflow-wrap:anywhere}.queueitem.lifted .openqueued{pointer-events:none}html[data-theme=dark] .queueorder{color:#d59b60}@media(max-width:599px){body:not(.reader):not(.gridview):not(.queueview) main{padding-top:17px}.libraryintro h1{font-size:27px}.queueitem{grid-template-columns:42px 50px minmax(80px,1fr) 36px}.dragqueue{width:44px;height:38px}.queueorder,html[data-theme=dark] .queueorder{font-size:25px}.queueitem .openqueued{font-size:17px}}

#openQueueDirect svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.queueitem{grid-template-columns:60px minmax(66px,1fr) minmax(140px,1.8fr) 38px 42px}.editqueuedtitle{display:grid;place-items:center;width:32px;height:36px;padding:0;border-radius:8px;background:transparent;color:#73917f;font-size:24px;touch-action:manipulation}html[data-theme=dark] .editqueuedtitle{color:#bad3df}#queueTitleDialog{width:min(650px,calc(100vw - 32px))}#queueTitleDialog h2{font:600 21px system-ui;margin:0 40px 22px 0}#queueTitleInput{font-size:20px}#queueTitleError{font-size:12px;color:#b25c43}#queueTitleForm>.primary{width:100%;margin-top:12px}#addQueue:disabled{opacity:.65;cursor:progress}@media(max-width:599px){.queueitem{grid-template-columns:36px 42px minmax(60px,1fr) 30px 32px;gap:0}.queueitem .openqueued{font-size:16px}.removequeued{width:30px;height:32px}.editqueuedtitle{width:30px}.dragqueue{width:36px}}

.dragqueue,html[data-theme=dark] .dragqueue{border-color:transparent;background:transparent;box-shadow:none}.dragqueue::before{transform:translateY(3px)}.dragqueue:hover{background:#e6ad4520}
/* Tablet descriptions, compact settings, and contents selection. */
#actions button{position:relative}.bubblelabel{position:absolute!important;right:calc(100% + 12px);top:50%;transform:translateY(-50%);white-space:nowrap;border:1px solid var(--edge);border-radius:9px;background:var(--surface);color:var(--ink);padding:9px 12px;box-shadow:0 2px 10px #0002;font:500 13px system-ui;pointer-events:none}#actions button:disabled .bubblelabel{opacity:.7}#addQueue.queued .bubblelabel{color:var(--ink)}.intensityControl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:center}.intensityControl label{margin:0}.intensitySlider input{margin-top:0!important}.intensityEnds{align-items:center}.settingsrow{width:100%;display:block;margin-top:18px;border-radius:9px;padding:12px;text-align:left;background:var(--control);color:var(--ink);font-size:14px}.pedalsettings{margin-top:18px;font-size:13px}.pedalsettings summary{cursor:pointer}.pedalsettings p{line-height:1.6;font-size:12px;color:var(--muted)}.pedalsettings button,.contentschoice>button,#findContents,#configureContents{background:var(--control);color:var(--ink);padding:10px 12px;border-radius:9px;font-size:12px}.pedalsettings>div{display:flex;gap:8px}.feedbacknotice{font-size:12px;color:var(--muted);line-height:1.6}#feedbackText{width:100%;margin:12px 0;resize:vertical;border-radius:9px;padding:12px;border:1px solid var(--edge);background:var(--appbg);color:var(--ink);font:16px system-ui}#feedbackForm>.primary{width:100%}#contentsDialog{width:min(600px,calc(100vw - 32px))}#contentsDialog h2,#feedbackDialog h2{font:600 21px system-ui;margin:0 35px 20px 0}#contentsState{font-size:13px;line-height:1.7;color:var(--muted)}.contentschoice{padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--edge);font-size:14px}.contentschoice.vertical{display:block}.contentschoice input{font-size:18px}.contentsbuttons{display:flex;justify-content:space-between;gap:10px;margin-top:14px}#contentsError{font-size:12px;line-height:1.6;color:var(--muted)}#openExistingContents{width:100%}.indexoverviewtitle{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.indexoverviewtitle h1{margin:0}.queueitem.lifted{transition:transform 65ms linear;will-change:transform}.queueplaceholder{transition:background .2s,border-color .2s}.queuedragging .queueitem:not(.lifted){will-change:transform}.attachedIndex.missingIndex{opacity:.65}.attachedIndex.missingIndex:disabled{opacity:.5}@media(prefers-reduced-motion:reduce){.queueitem.lifted{transition:none}}
#actions button .bubblelabel{font:500 14px system-ui;line-height:1.3;padding:10px 13px}#actions #addQueue.queued::after{pointer-events:none}

/* Named queues, tactile handles, and contents controls. */
.queueitem{grid-template-columns:56px 65px minmax(100px,1fr) 38px 42px}.dragqueue,html[data-theme=dark] .dragqueue{background:#eea43b24;border:0;border-radius:12px;transform:translateY(5px)}.dragqueue::before{transform:translateY(2px)}.queueitem.lifted .dragqueue,.dragqueue:active{background:#f29a22;color:#fff2dc}.queuetabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.queuetabs button,#queueChoices button{padding:12px 16px;border-radius:10px;background:var(--control);color:var(--ink);font-size:17px}.queuetabs .selected{background:#32768f;color:#fff}.queuetabs #newQueue{font-size:26px;padding:6px 15px}#queueChoices{display:grid;gap:12px}#queuePicker h2,#queueNameDialog h2{margin-right:35px}#queueNameForm>.primary{margin-top:18px;width:100%}.indexthumb{position:relative}.thumbopen{display:block;width:100%;padding:0;background:transparent;color:inherit}.trashthumb{display:grid;place-items:center;border-radius:50%;background:var(--control);color:var(--ink);width:40px;height:40px;margin:12px 0 0 auto}.trashthumb svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#closeIndex{width:52px;height:52px;font-size:42px}.indexnav{display:grid;grid-template-columns:1fr auto 1fr;gap:12px}.indexnav #zoomIndex{font-size:15px;width:auto;padding:12px 8px;background:var(--control);border-radius:10px;justify-self:start}.indexnav #fromIndex{font-size:19px;padding:13px 22px;justify-self:center}.indexpaging{display:flex;align-items:center;justify-content:flex-end;gap:8px}.indexpaging button{font-size:46px;background:transparent;color:var(--ink);width:42px;padding:0}.indexpaging span{font-size:17px;white-space:nowrap}#indexCanvas.zoomed{display:block;overflow:auto;touch-action:pan-x pan-y}#indexCanvas.zoomed canvas{max-width:none;max-height:none;display:block;margin:auto}#removePagesDialog p{font-size:14px;line-height:1.6}#confirmRemovePages{padding:14px;border-radius:9px;margin-top:16px;width:100%}@media(max-width:599px){.queueitem{grid-template-columns:34px 48px minmax(60px,1fr) 28px 32px}.indexnav{grid-template-columns:1fr 1fr;gap:6px}.indexnav #fromIndex{grid-row:2;grid-column:1 / -1}.indexpaging span{font-size:13px}.indexnav #zoomIndex{font-size:13px}.indexpaging button{width:26px}}

/* Recording placeholder and Android edge-to-edge presentation. */
#actions #recordSoon,html[data-theme=dark] #actions #recordSoon{background:#bc2633;border-color:#e55962;color:#fff;box-shadow:0 3px 14px #8c142529}#recordSoon svg{width:24px;height:24px;fill:currentColor;stroke:none}#recordSoon .bubblelabel{color:var(--ink)}.fullscreenhint{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 16px}#toast.backhint{font-size:12px;padding:10px 16px}html:fullscreen{background:var(--systembg,var(--appbg))}body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}#headerSettings{top:max(14px,env(safe-area-inset-top,0px))}#dock{bottom:max(18px,env(safe-area-inset-bottom,0px))}#focusPage{bottom:max(18px,env(safe-area-inset-bottom,0px))}@media(max-height:650px){#actions,#dock:has(#actions:not([hidden])) #actions{gap:7px}}

#actions #recordSoon svg{width:19px;height:19px;transform:translateY(-6px)}#actions #recordSoon::after{content:'REC';position:absolute;bottom:7px;font:700 9px system-ui;letter-spacing:1px;color:white}header,.reader header,.gridview header{top:max(14px,env(safe-area-inset-top,0px))}

/* Full-width touch targets and compact queue playback. */
#actions button::before{content:'';position:absolute;right:0;top:-5px;bottom:-5px;width:calc(100% + 255px);border-radius:12px;pointer-events:auto}#actions button .bubblelabel{pointer-events:auto;cursor:pointer}#actions button svg,#actions button::after{pointer-events:none}.queueitem .openqueued{padding-left:4px}.queueitem .queuednumber{display:inline;font-size:calc(1em + 3px);font-weight:800;color:#286d88;font-variant-numeric:tabular-nums}html[data-theme=dark] .queueitem .queuednumber{color:#89d2f3}.dragqueue,html[data-theme=dark] .dragqueue{transform:translateY(5px);align-items:center;justify-items:center}.dragqueue::before{transform:none;width:26px;height:16px;background:radial-gradient(circle,currentColor 2.2px,transparent 2.7px) 0 0/8.6667px 8px repeat}#pageIndicator{font-variant-numeric:tabular-nums}@media(max-width:380px){#actions button::before{width:calc(100% + 235px)}#actions button .bubblelabel{font-size:12px}}
.dragqueue{position:relative}.dragqueue::before{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

/* Live recording controls: never hide a running recording with page controls. */
#recordPanel{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:14px;z-index:15;display:flex;flex-direction:column;align-items:center;gap:10px}#recordPanel[hidden]{display:none}.recordbubble{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--edge);background:var(--surface);color:var(--ink);box-shadow:0 3px 14px #0002;padding:0}#closeRecording{font-size:36px;line-height:1}#recordTimer{display:grid;place-items:center;min-width:94px;height:44px;padding:0 12px;border-radius:22px;background:var(--surface);color:#87918d;border:1px solid var(--edge);font:600 20px system-ui;font-variant-numeric:tabular-nums;transition:background .2s,color .2s}#recordTimer.running{background:#d7eadc;color:#27633d;border-color:#92bd9e}html[data-theme=dark] #recordTimer.running{background:#264b3c;color:#b9e7c5;border-color:#4b7b61}#recordToggle{position:relative;background:#bc2633;color:white;border-color:#e55962}#recordToggle i{position:absolute;top:10px;width:18px;height:18px;border-radius:50%;background:#fff}#recordToggle span{position:absolute;bottom:7px;font:700 9px system-ui;letter-spacing:1px}#recordToggle.stopping i{border-radius:2px}#recordToggle:disabled{opacity:.55}#recordSaveDialog{width:min(780px,calc(100vw - 32px))}#recordSaveDialog h2{font:600 22px system-ui;margin:0 40px 20px 0}#recordName{font-size:19px;width:100%;margin-top:10px}#recordSaveInfo,.recordnotice{font-size:12px;color:var(--muted);line-height:1.6}.recordsavebuttons{display:flex;gap:14px;margin-top:22px}.recordsavebuttons button{flex:1;display:flex;justify-content:center;align-items:center;gap:10px;padding:14px;font-size:17px;border-radius:10px}.recordsavebuttons svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#recordSaveError{color:#bd4e48;font-size:13px}

/* Compact recorder strip and text-bounded action targets. */
#recordPanel{flex-direction:row;gap:0;padding:5px;border-radius:32px;border:1px solid var(--edge);background:var(--surface);box-shadow:0 4px 18px #0002;align-items:center}#recordPanel .recordbubble{width:43px;height:43px;box-shadow:none;border:0}#closeRecording{font-size:30px;background:transparent}#recordTimer{min-width:84px;height:39px;border:0;border-radius:13px;background:transparent;font-size:20px;margin:0 8px 0 2px}#recordToggle i{top:8px;width:16px;height:16px}#recordToggle span{bottom:5px;font-size:8px}#recordSaveInfo{font-size:17px;font-weight:600;line-height:1.6;background:var(--control);color:var(--ink);border-radius:12px;padding:14px 16px;margin:18px 0}#recordName{margin-top:0}#actions button::before{width:calc(100% + 12px + var(--labelwidth,0px));top:0;bottom:0}#actions button .bubblelabel{pointer-events:auto}@media(max-width:380px){#actions button::before{width:calc(100% + 12px + var(--labelwidth,0px))}}

.focusmode #recordPanel:not(.recording-active){display:none!important}#recordingDraftsButton[hidden]{display:none!important}#recordingDraftsList{display:grid;gap:12px}#recordingDraftsList button{display:block;text-align:left;padding:14px;border-radius:12px;background:var(--control);color:var(--ink);font-size:16px;overflow-wrap:anywhere}#recordingDraftsList small{display:block;margin-top:8px;font-size:14px}#recordingDraftsDialog h2{margin-right:40px}

/* Local recording library. */
#savedRecordingsButton{position:fixed;top:max(14px,env(safe-area-inset-top,0px));right:80px;left:auto;z-index:7;background:#234e48;color:#f7fbf8;width:auto;height:46px;padding:0 20px;border-radius:23px;font:600 15px system-ui;box-shadow:0 3px 12px #0002}#savedRecordingsButton[hidden]{display:none!important}body:has(#savedRecordingsButton:not([hidden])) .libraryintro{margin-right:300px;min-height:46px;display:flex;align-items:center}.savedheading{font:600 28px Georgia,serif;margin:0 0 26px}.savedempty{color:var(--muted);font-size:17px;line-height:1.7}.savedrecordings{display:grid;gap:18px}.savedrecord{padding:18px 20px;border:1px solid var(--edge);border-radius:16px;background:var(--surface);color:var(--ink)}.savedrecordrow{display:flex;align-items:center;gap:14px}.savedrecord h2{flex:1;min-width:0;font:600 18px/1.5 system-ui;overflow-wrap:anywhere;margin:0}.recordduration{font:700 19px system-ui;font-variant-numeric:tabular-nums;color:#467660;white-space:nowrap}.recordtools{display:flex;gap:8px;align-items:center}.recordtools button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:42px;padding:8px;border-radius:12px;background:var(--control);color:var(--ink)}.recordtools button span{font:500 12px system-ui;white-space:nowrap}.recordtools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.recordtools .recorddelete{background:#c64e4514;color:#c23d38}.savedrecord audio{display:block;width:100%;height:38px;margin-top:16px}html[data-theme=dark] .recordduration{color:#9dd5ba}html[data-theme=dark] .recordtools .recorddelete{color:#ff8e87}#recordRenameDialog h2{margin-right:30px;font-size:20px}#recordRenameForm .primary{margin-top:18px;width:100%}@media(max-width:800px){.savedrecordrow{flex-wrap:wrap}.savedrecord h2{flex-basis:calc(100% - 95px)}.recordtools{width:100%;justify-content:flex-end}.recordtools button{height:44px}.savedrecord{padding:16px}}@media(max-width:600px){body:has(#savedRecordingsButton:not([hidden])) .libraryintro{margin-right:0;margin-top:62px}#savedRecordingsButton{left:18px;right:auto}.recordtools{justify-content:space-between;gap:6px}.recordtools button span{font-size:11px}.savedrecord h2{font-size:16px}}

/* Buffered audio in gray, actual playback in black. */
.recordplayrow{display:flex;align-items:center;gap:12px;margin-top:16px}.audio-player{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:#f0f1ee;border-radius:24px;padding:8px 12px;color:#202421}.audio-player audio{display:none!important}.audio-player button{border:0;background:transparent;color:#161b18;width:32px;height:32px;padding:0;flex-shrink:0;font-size:21px}.audio-time,.audio-total{font:500 13px system-ui;font-variant-numeric:tabular-nums;white-space:nowrap}.audio-track{position:relative;height:26px;flex:1;min-width:25px;background:linear-gradient(#d1d5d1,#d1d5d1) center/100% 5px no-repeat}.audio-buffered,.audio-progress{position:absolute;left:0;top:calc(50% - 2.5px);height:5px;border-radius:4px;pointer-events:none}.audio-buffered{background:#939a94}.audio-progress{background:#111613}.audio-seek{position:absolute;inset:0;width:100%;height:26px;opacity:0;margin:0!important;padding:0!important;cursor:pointer}.recordpage{display:grid;place-items:center;flex-shrink:0;width:45px;height:45px;border-radius:50%;background:#234e48;color:#f5faf6}.recordpage svg,#practiceHome svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#practiceHome{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:14px;z-index:8;width:48px;height:48px;display:grid;place-items:center;background:#234e48;color:#f5faf6}#practiceHome[hidden],#practicePlayer[hidden]{display:none!important}#practicePlayer{position:fixed;bottom:max(95px,calc(env(safe-area-inset-bottom,0px) + 78px));left:50%;transform:translateX(-50%);width:min(720px,calc(100vw - 32px));padding:10px 14px;border:1px solid var(--edge);border-radius:18px;background:var(--surface);box-shadow:0 4px 22px #0003;z-index:9}#practiceTitle{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin:0 8px 7px;color:var(--muted)}.focusmode #practicePlayer,.focusmode #practiceHome{display:none!important}.focusmode:has(#practicePlayer:not([hidden])) main{padding-bottom:0}.practicereader main{padding-bottom:170px!important}.focusmode.practicereader main{padding-bottom:0!important}.audio-player button:focus-visible,.audio-track:focus-within{outline:2px solid #327a77;outline-offset:2px}@media(max-width:500px){.audio-player{gap:7px;padding:6px 8px}.audio-time,.audio-total{font-size:11px}.audio-mute{display:none}.recordplayrow{gap:8px}}

.focusmode #toast.recording-warning{display:block!important}

.practicereader #recordPanel{left:78px}@media(max-width:500px){.practicereader #recordPanel{left:14px;top:72px}}

.audio-mute svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.audio-progress::after{content:'';position:absolute;right:-4px;top:-2px;width:9px;height:9px;border-radius:50%;background:#111613}

/* One extracted sheet for listening, without reader navigation. */
.practicereader #dock,.practicereader #focusPage,.practicereader #recordPanel{display:none!important}#practiceBack{position:fixed;left:76px;top:max(14px,env(safe-area-inset-top,0px));height:48px;z-index:8;padding:0 18px;border-radius:24px;background:#234e48;color:#f5faf6;font:500 14px system-ui;box-shadow:0 3px 12px #0002}#practiceBack[hidden]{display:none!important}.practicereader #practicePlayer{bottom:max(18px,env(safe-area-inset-bottom,0px))}.practicereader main{padding-top:72px!important;padding-bottom:122px!important}

/* Consistent settings rows. */
#settingsDialog{width:min(600px,calc(100vw - 32px))}#settingsDialog h2{margin:0 35px 22px 0}.settingline,.settingline.intensityControl,.settingline.appearanceRow{display:grid;grid-template-columns:minmax(130px,1fr) minmax(155px,1.15fr);gap:22px;align-items:center;padding:18px 0;margin:0;border:0;border-top:1px solid var(--edge)}.settingline h3,.settingline label{font:500 16px system-ui;margin:0}.settingline .settingaction{width:100%;background:var(--control);color:var(--ink);border:1px solid var(--edge);border-radius:11px;min-height:40px;padding:9px 14px;font:500 14px system-ui}.settingline small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:8px}.settingline .themechoices{width:100%}.settingline .themechoices button{flex:1}.settingline .intensitySlider{min-width:0}.settingline .intensityControl{margin:0}.feedbackname{display:grid;grid-template-columns:65px 1fr;gap:14px;align-items:center;margin:0 0 22px}.feedbackname input{margin:0!important;font-size:16px}#aboutDialog{width:min(680px,calc(100vw - 32px))}#aboutDialog h2{margin-right:40px}.aboutname{font:600 19px Georgia,serif;margin:20px 0 14px}.aboutstory{font-size:16px;line-height:1.8}#aboutStats{display:grid;grid-template-columns:1fr auto;gap:12px 24px;padding:20px 0;margin:20px 0;border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);font-size:14px}#aboutStats dt{color:var(--muted)}#aboutStats dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}.aboutnote,.aboutcredits{font-size:12px;line-height:1.7;color:var(--muted)}.aboutcredits a{color:inherit}#pedalDialog h2{margin-right:35px}.pedalsettings{margin:0}#recordSaveDialog h2{margin-right:0}@media(max-width:400px){.settingline,.settingline.intensityControl,.settingline.appearanceRow{grid-template-columns:minmax(100px,1fr) minmax(130px,1fr);gap:12px}.settingline h3,.settingline label{font-size:14px}}

.aboutassist{font-size:12px;color:var(--muted);margin-top:20px}.settingline small{max-width:290px}

/* Songbook cover editor and lazy page selection. */
#renameDialog{width:min(700px,calc(100vw - 28px));max-height:90dvh;overflow:auto}#renameDialog h2{font-size:22px;margin:0 40px 24px 0}#renameDialog label{display:block;margin-bottom:8px}#renameDialog #docName{width:100%;box-sizing:border-box;font-size:18px}.covereditor{border-top:1px solid var(--edge);margin:24px 0 16px;padding-top:18px}.covereditor h3{margin:0 0 18px;font-size:17px}.covereditbody{display:grid;grid-template-columns:140px 1fr;gap:24px;align-items:center}#editCoverPreview{height:190px;background:var(--control);border-radius:12px;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box}#editCoverPreview img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 3px 12px #0003}.coverchoices{display:grid;gap:10px}.coverchoices button{border:1px solid var(--edge);border-radius:11px;min-height:44px;background:var(--control);color:var(--ink);padding:10px 14px;text-align:left;font-size:15px}.coverchoices button[aria-pressed=true]{border-color:#b77332;box-shadow:inset 3px 0 #b77332}#coverDescription{font-size:13px;line-height:1.5;margin:16px 0 0;overflow-wrap:anywhere}#coverPicker{width:min(1000px,calc(100vw - 24px));height:85dvh;box-sizing:border-box;overflow:auto}#coverPicker h2{font-size:20px;margin-right:40px}#coverPickerName{overflow-wrap:anywhere}#coverPickerStatus{font-size:14px;color:var(--muted)}#coverPages{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:18px;padding:12px 0}#coverPages .coverpage{display:flex;flex-direction:column;gap:12px;align-items:stretch;border:1px solid var(--edge);border-radius:12px;background:var(--control);color:var(--ink);padding:10px;min-width:0}#coverPages .coverpage:hover,#coverPages .coverpage:focus-visible{outline:3px solid #bc843d}#coverPages .coverpaper{height:210px;display:flex;align-items:center;justify-content:center;background:#fff;color:#50605b;font-size:12px;border-radius:4px;overflow:hidden}#coverPages img{width:100%;height:100%;object-fit:contain}#coverPages strong{font-size:16px;font-weight:600}#renameDialog button:disabled,#coverPages button:disabled{opacity:.6}@media(max-width:450px){.covereditbody{grid-template-columns:95px 1fr;gap:14px}#editCoverPreview{height:145px}.coverchoices button{font-size:14px}#coverPages{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#coverPages .coverpaper{height:180px}}

/* Generated song indexes, cross-library search and backups. */
html,body{overscroll-behavior-y:none}dialog,main,.indexthumbs,#coverPages{overscroll-behavior-y:contain}.librarysearch{display:flex;align-items:center;gap:10px;background:#234e48;color:#fff;border-radius:13px;padding:13px 22px;font-size:16px;margin:0 0 26px}.generatedchoices{margin:36px 0 12px;padding-top:24px;border-top:1px solid var(--edge)}.generatedchoices h2{font-size:18px;font-weight:500}.generatedchoices>div{display:grid;grid-template-columns:1fr 1fr;gap:18px}.generatedchoices button{min-height:70px;padding:18px;border-radius:15px;background:#234e48;color:#fff;font-size:18px;line-height:1.4}.generatedheading{display:flex;gap:18px;align-items:center;margin:0 0 20px}.generatedheading h1{font:500 25px Georgia,serif;letter-spacing:0;margin:0}.generatedheading p{font-size:14px;color:var(--muted);margin:7px 0 0}.generatedheading>div{flex:1;min-width:0}.roundtool{width:50px;height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--control);color:var(--ink)}.roundtool svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.generatedpaper{background:var(--paper,var(--control));border:1px solid var(--edge);border-radius:13px;padding:22px 18px;box-shadow:0 5px 22px #0000000a}.generatedcolumns{display:grid;grid-template-columns:repeat(var(--listcolumns),minmax(0,1fr));gap:25px}.generatedcolumn{min-width:0}.songline{display:flex;gap:7px;align-items:baseline;width:100%;min-height:35px;padding:8px 0;background:none;color:var(--ink);font-size:14px;text-align:left}.songline:hover{background:var(--control)}.songnumber{font-weight:700;flex-shrink:0;color:color-mix(in srgb,#a56a2e 55%,var(--ink));font-variant-numeric:tabular-nums}.songtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 40px);flex-shrink:1}.songdots{flex:1;min-width:12px;border-bottom:2px dotted color-mix(in srgb,var(--muted) 55%,transparent);transform:translateY(-3px)}.generatedpaging{display:flex;justify-content:center;align-items:center;gap:22px;margin:20px 0 12px}.generatedpaging button{height:52px;width:58px;border-radius:16px;background:var(--control);color:var(--ink);font-size:44px;line-height:1}.generatedpaging button:disabled{opacity:.3}.generatedpaging strong{font-size:20px;font-variant-numeric:tabular-nums}.backtolists{display:block;background:none;color:var(--muted);padding:10px;margin:0 auto}.generatedsearch label,.globalsearch label{display:block;font-size:15px;margin:12px 0}.generatedsearch input,.globalsearch input{width:100%;box-sizing:border-box;background:var(--control);color:var(--ink);border:1px solid var(--edge);border-radius:12px;font-size:19px;padding:13px 15px;margin-bottom:18px}.generatedsearch[hidden]{display:none}.searchindexactions{margin:16px 0 24px}.searchindexactions button,.indexpartial button{background:#234e48;color:#fff;border-radius:10px;padding:12px 16px}.searchindexactions p,.indexpartial{color:var(--muted);font-size:14px;line-height:1.7}.songmatch{display:flex;flex-direction:column;gap:8px;width:100%;background:var(--control);color:var(--ink);border:1px solid var(--edge);border-radius:13px;margin:12px 0;padding:18px;text-align:left}.songmatch strong{font-size:18px}.songmatch span{font-size:14px;color:var(--muted)}#indexProgressDialog{width:min(560px,calc(100vw - 28px))}#indexProgressDialog h2{font-size:22px}#indexProgressTitle{font-size:17px;overflow-wrap:anywhere}#indexProgressBar{width:100%;height:18px;accent-color:#327768;margin:12px 0 20px}#cancelIndexJob{margin-top:22px;background:var(--control);color:var(--ink);border-radius:10px;padding:13px 20px}#backupDialog{width:min(650px,calc(100vw - 28px));max-height:90dvh;overflow:auto}#backupDialog h2{margin-right:35px}.backupactions{display:grid;gap:14px;margin:24px 0}.backupactions button,#restoreBackup{min-height:48px;border-radius:11px;padding:13px 18px;font-size:16px}.backupactions button:not(.primary){background:var(--control);color:var(--ink);border:1px solid var(--edge)}#backupStatus{font-size:15px;line-height:1.6;overflow-wrap:anywhere}#backupRestorePreview{border-top:1px solid var(--edge);padding-top:18px;margin-top:20px}.restoreoption{display:flex;gap:12px;align-items:center;font-size:15px;line-height:1.5;margin:20px 0}.restoreoption input{width:20px;height:20px;flex-shrink:0}#restoreBackup{margin-top:18px}.generatedview{max-width:1100px;margin:auto}body:has(.generatedview) main{padding-top:28px;padding-bottom:30px}.globalsearch{max-width:800px;margin:auto}@media(max-width:649px){.generatedheading h1{font-size:21px}.generatedcolumns{gap:0}.songline{font-size:16px}.generatedchoices button{font-size:15px;padding:14px 9px}.generatedchoices>div{gap:10px}.generatedpaper{padding:14px}.generatedheading{gap:10px}.roundtool{width:44px;height:44px}.librarysearch{font-size:14px}}

#downloadPreparedBackup{display:inline-block;text-decoration:none;margin:8px 0 18px;font-size:16px}#downloadPreparedBackup[hidden]{display:none}

/* Compact search results: song, songbook and prominent page number. */
.songmatch{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,.85fr) auto;align-items:center;gap:20px;padding:13px 18px;margin:9px 0;min-height:64px}.songmatch .matchtitle{font-size:18px;line-height:1.3;overflow-wrap:anywhere}.songmatch .matchbook{font-size:14px;text-align:right;line-height:1.4;overflow-wrap:anywhere}.songmatch .matchpage{font-size:21px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink)}#songListsDialog{width:min(1000px,calc(100vw - 28px));max-height:88dvh;overflow:auto;padding-top:28px}#songListsBody .indexoverviewtitle{padding-right:40px}#songListsBody h1{font-size:29px;margin:0 0 18px;letter-spacing:0}#songListsBody .generatedchoices{margin-bottom:5px}#songListsBody .indexthumbs{padding-bottom:0}#songListsDialog .close{position:sticky;top:0;float:right;margin:0 -8px -40px 0;z-index:2}@media(max-width:600px){.songmatch{grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;padding:12px 14px}.songmatch .matchtitle{font-size:17px}.songmatch .matchbook{grid-column:1;text-align:left;font-size:12px}.songmatch .matchpage{grid-column:2;grid-row:1 / span 2;font-size:20px}#songListsBody h1{font-size:25px}}

.generatedcolumns{gap:16px}.songline{font-size:16px;min-height:31px;padding:5px 0;gap:4px;line-height:21px}.songnumber{font-size:18px;font-weight:750}.songdots{min-width:6px}.generatedpaper{padding:16px}.generatedpaging{margin:14px 0 6px}.songmatch .matchtitle{font-size:19px}.songmatch .matchbook{font-size:15px}.songmatch .matchpage{font-size:23px}@media(max-width:600px){.songmatch .matchtitle{font-size:18px}.songmatch .matchbook{font-size:13px}.songmatch .matchpage{font-size:22px}}

.listtextsize{display:flex;align-items:center;gap:16px;margin:0 0 18px;padding:10px 14px;border:1px solid var(--edge);border-radius:12px;background:var(--control)}.listtextsize label{font-size:14px;white-space:nowrap}.listtextsize input{flex:1;min-width:60px;accent-color:#327768;height:22px}.listtextsize output{font-size:16px;font-weight:650;min-width:42px;text-align:right;font-variant-numeric:tabular-nums}.generatedview .songline{font-size:calc(16px * var(--listfontscale,1));line-height:calc(21px * var(--listfontscale,1));min-height:calc(21px * var(--listfontscale,1) + 10px)}.generatedview .songnumber{font-size:calc(18px * var(--listfontscale,1))}

.songalphabet{display:flex;flex-wrap:wrap;gap:3px;margin:12px 0 8px;padding:8px 0;justify-content:center}.songalphabet button{flex:1 0 27px;min-width:27px;min-height:32px;padding:5px 3px;border-radius:7px;font-size:14px;font-weight:650;background:var(--control);color:var(--ink);border:1px solid var(--edge)}.songalphabet button:disabled{opacity:.28;cursor:default}.songalphabet button[aria-pressed=true]{background:#b68b2b;color:#182c28;border-color:#b68b2b}.songinitial{background:transparent;color:#a87c19;font-weight:750}[data-theme=dark] .songinitial{color:#d5ad46}.songalphabet button:focus-visible{outline-color:#b68b2b}

.songalphabet button{white-space:nowrap;height:34px;min-height:34px;line-height:20px}

.generatedbacktop{position:fixed;top:max(14px,env(safe-area-inset-top,0px));right:78px;z-index:8;display:flex;align-items:center;justify-content:center;height:48px;margin:0;padding:0 17px;border-radius:13px;background:#234e48;color:#f5faf6;font:500 15px system-ui;box-shadow:0 3px 12px #0002}.generatedheading{padding-right:145px}.songinitial{font-weight:650}@media(max-width:600px){.generatedheading{padding-top:58px;padding-right:0}.generatedbacktop{right:72px;height:44px;font-size:14px;padding:0 13px}}

.generatedview .songline{padding:3px 0;min-height:calc(21px * var(--listfontscale,1) + 6px)}.generatedcolumns{gap:12px}.songalphabet{gap:6px}.songalphabet button{flex:1 1 36px;min-width:36px;height:42px;min-height:42px;font-size:16px;line-height:24px}.generateddigits{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 0}.listdigitclear{width:46px;height:46px;flex-shrink:0;border-radius:50%;font-size:32px;line-height:1;background:var(--control);color:var(--ink);border:1px solid var(--edge)}#listPageDigits{width:92px;height:46px;flex-shrink:0;border-radius:11px;border:1px solid var(--edge);background:var(--control);color:var(--ink);text-align:center;font-size:20px;font-weight:650;margin:0;padding:7px}.listdigitkeys{display:grid;grid-template-columns:repeat(10,minmax(30px,1fr));flex:1;gap:6px;min-width:360px}.listdigitkeys button{height:46px;border-radius:10px;background:var(--control);color:var(--ink);border:1px solid var(--edge);font-size:21px;font-weight:600}.listdigitstatus{font-size:13px;color:var(--muted);margin:8px 0}.numbermatch .songtitle,.numbermatch .songnumber{color:#a87c19;font-weight:650}[data-theme=dark] .numbermatch .songtitle,[data-theme=dark] .numbermatch .songnumber{color:#d5ad46}@media(max-width:649px){.listdigitkeys{min-width:0;flex-basis:100%;grid-template-columns:repeat(5,minmax(0,1fr))}.generateddigits{gap:6px}.songalphabet button{flex-basis:36px}}

.songalphabet{display:grid;grid-template-columns:repeat(var(--lettercolumns,10),minmax(0,1fr));gap:6px}.songalphabet button{width:100%;min-width:0;min-height:44px;height:44px}
.listdigitclear{display:grid;place-items:center;width:36px;height:36px;padding:0;background:color-mix(in srgb,#c55252 15%,var(--control));border-color:color-mix(in srgb,#c55252 30%,var(--edge));color:#a14242}.listdigitclear svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dividerdots{flex:1;min-width:20px;border-bottom:3px dotted #b34d4d;transform:translateY(-2px)}.dividerrow .songnumber{color:#b34d4d}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#generatedEntryDialog{width:min(580px,calc(100vw - 28px))}#generatedEntryDialog h2{margin-right:35px}#generatedEntryTitle{width:100%;font-size:18px;margin-top:10px}

.librarysearchicon{width:32px;height:32px;flex:0 0 32px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.songalphabet{display:grid;grid-template-columns:repeat(var(--lettercolumns,27),minmax(0,1fr));gap:2px;padding:8px 0;overflow:visible}
.songalphabet button{width:100%;min-width:0;height:44px;min-height:44px;padding:5px 0;font-size:clamp(8px,1.8vw,16px);letter-spacing:-.3px}
#allSongsQuery{touch-action:manipulation;font-size:20px;cursor:text}

#libraryActions{position:fixed;top:max(14px,env(safe-area-inset-top,0px));right:80px;z-index:7;display:flex;align-items:center;gap:8px}
#libraryActions[hidden]{display:none!important}
#libraryActions .librarysearch,#libraryActions #savedRecordingsButton{position:static;inset:auto;margin:0;width:auto;height:40px;min-height:40px;padding:7px 13px;border-radius:20px;font:600 13px system-ui;line-height:1.25;box-shadow:0 3px 12px #0002}
#libraryActions .librarysearch{gap:7px}
#libraryActions .librarysearchicon{width:24px;height:24px;flex-basis:24px}
body:has(#libraryActions:not([hidden])) .libraryintro{margin-right:425px}
.songmatch{min-height:46px;padding:7px 14px;margin:5px 0;gap:14px;border-radius:12px}
.songmatch .matchtitle{line-height:1.2}.songmatch .matchbook{line-height:1.2}
@media(max-width:740px){#libraryActions{top:max(70px,calc(env(safe-area-inset-top,0px) + 60px));left:20px;right:20px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:7px}#libraryActions .librarysearch,#libraryActions #savedRecordingsButton{width:100%;height:auto;min-height:40px;padding:7px 8px;font-size:12px}body:has(#libraryActions:not([hidden])) .libraryintro{margin-right:0;margin-top:65px}.songmatch{padding:7px 11px;gap:2px 10px;min-height:48px}}

.book{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.book img{-webkit-user-drag:none}
.booklifted{box-shadow:0 18px 50px #0005;outline:2px solid #cc922f;cursor:grabbing;opacity:.96;will-change:transform}
.bookplaceholder{border:2px dashed #c69543;border-radius:15px;background:color-mix(in srgb,#d8a34e 16%,var(--control));min-width:0}
.bookdragging,.bookdragging *{cursor:grabbing!important}.bookdragging{overscroll-behavior:none}
.filetools .info{display:grid;place-items:center;padding:0;line-height:1}.filetools .info svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.filetools .info .infodot{fill:currentColor;stroke:none}
.booksource{visibility:hidden}.booklifted{opacity:1;outline:1px solid #cc922f;box-shadow:0 14px 32px #0003;backface-visibility:hidden;contain:layout paint}.bookdropmarker{border:1px dashed #c69543;background:color-mix(in srgb,#d8a34e 10%,var(--control));box-shadow:inset 0 0 0 3px color-mix(in srgb,#c69543 8%,transparent)}
.bookdragging .books{overflow-anchor:none}

.reader header{flex-direction:column;gap:9px}
#readerZoom{position:relative;width:46px;height:46px;min-height:46px;padding:0;display:grid;place-items:center;background:var(--control);color:var(--ink);box-shadow:0 2px 10px #0002}
#readerZoom[hidden]{display:none!important}#readerZoom svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}#readerZoom span{position:absolute;right:-3px;bottom:-2px;border-radius:8px;background:#234e48;color:#fff;font:700 10px/1.5 system-ui;padding:0 4px}#readerZoom[aria-pressed=true]{background:#246ab6;color:white}
.reader main.pagezoomed{display:block;overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.reader main.pagezoomed canvas{max-width:none!important;max-height:none!important;object-fit:initial;margin:0 auto;touch-action:pan-x pan-y;flex-shrink:0}

.reader main.pagezoomed,.reader main.pagezoomed canvas{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;scroll-behavior:auto}
.reader main.pagezoomed.pagepanning,.reader main.pagezoomed.pagepanning canvas{cursor:grabbing}

#generatedEntryTitle{display:block;min-height:110px;padding:12px;border:1px solid var(--edge);border-radius:10px;background:var(--appbg);color:var(--ink);font:18px/1.5 system-ui;resize:vertical}
.generatedchoices .rebuildtitles{display:block;width:auto;min-height:40px;margin-top:16px;padding:9px 14px;background:var(--control);color:var(--ink);font-size:14px;border:1px solid var(--edge);border-radius:10px}

.multiplesongsoption{display:flex!important;align-items:center;gap:10px;font-size:14px!important;margin-top:16px;line-height:1.4}.multiplesongsoption input{width:20px;height:20px;margin:0;padding:0;accent-color:#234e48;flex:0 0 20px}
.dividerrow .songtitle{color:#b34d4d}.dividerrow .songdots{border-color:#b34d4d}
#settingsDialog{width:min(510px,calc(100vw - 28px));padding:22px 24px}#settingsDialog h2{margin-bottom:16px}#settingsDialog .settingline{grid-template-columns:minmax(120px,1fr) minmax(150px,1.05fr);gap:13px;padding:11px 0}#settingsDialog .settingline .settingaction{min-height:36px;padding:7px 12px}#settingsDialog .settingline small{margin-top:5px;line-height:1.4}#settingsDialog .settingline h3,#settingsDialog .settingline label{font-size:15px}.orientationoption{display:flex!important;gap:9px;align-items:center;justify-content:flex-end}.orientationoption input{width:22px;height:22px;margin:0;accent-color:#234e48}.orientationoption span{font-size:14px}#orientationStatus{font-size:11px;color:var(--muted);line-height:1.4;margin:5px 0 0}
@media(max-width:400px){#settingsDialog{padding:20px 16px}#settingsDialog .settingline{grid-template-columns:minmax(100px,1fr) minmax(125px,1fr);gap:10px}}

.orientationoption input{padding:0}

[data-theme=dark] .dividerrow .songtitle,[data-theme=dark] .dividerrow .songnumber{color:#ef8981}[data-theme=dark] .dividerrow .songdots,[data-theme=dark] .dividerdots{border-color:#ef8981}

/* Keep PDF-content actions together at the top of the song-list popup. */
#songListsBody .indexoverviewtitle{display:block;padding-right:40px}
.songlisttools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.songlisttools .rebuildtitles,.songlisttools #configureContents{margin:0;padding:10px 12px;font:500 13px system-ui;border-radius:9px;background:var(--control);color:var(--ink)}

/* Android/Samsung long press must lift a book, never select library text. */
.books,.books *,.booklifted,.booklifted *{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none}
.bookdragging,.bookdragging *{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}

/* Let the cover wrapper handle a long press, not Android's native image menu. */
.books .cover img,.books .cover canvas,.booklifted .cover img,.booklifted .cover canvas{pointer-events:none;-webkit-user-drag:none;user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none!important}
.books,.books *,.booklifted,.booklifted *{-webkit-tap-highlight-color:transparent}

.orientationchoices{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#settingsDialog .orientationchoices button{min-width:0;padding:8px 9px;border-radius:9px;background:var(--control);color:var(--ink);font:500 13px system-ui;border:1px solid transparent}
#settingsDialog .orientationchoices button[aria-pressed=true]{background:#234e48;color:#fff}
#settingsDialog .orientationchoices button:disabled{cursor:wait;opacity:.7}

#appUpdateBanner{position:fixed;z-index:25;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(720px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;border:1px solid var(--edge);border-radius:13px;background:var(--surface);color:var(--ink);box-shadow:0 6px 24px #0003;font-size:16px}#appUpdateBanner[hidden]{display:none!important}#applyAppUpdate{background:#234e48;color:white;padding:11px 17px;border-radius:9px;font-size:15px;white-space:nowrap}.rotationchecklink{display:block;margin:8px 0 0 auto;background:transparent;color:var(--muted);font:12px system-ui;text-decoration:underline;padding:5px 0}#rotationCheckDialog{width:min(660px,calc(100vw - 28px))}#rotationCheckDialog h2{font:600 24px system-ui}#rotationCheckDialog p{font:14px/1.6 system-ui}#rotationReport{width:100%;resize:vertical;margin:12px 0;padding:12px;border:1px solid var(--edge);border-radius:9px;background:var(--appbg);color:var(--ink);font:12px/1.5 monospace}#rotationCheckState{color:var(--muted)}

#orientationError{font:12px/1.5 system-ui;color:var(--muted);margin:8px 0 0}#orientationError[hidden]{display:none}

/* Compact song list chooser. */
#songListsDialog{width:min(660px,calc(100vw - 28px))}
#songListsBody .indexoverviewtitle{display:flex;align-items:center;gap:14px;padding-right:38px;margin-bottom:18px}
#songListsBody .indexoverviewtitle h1{margin:0;flex-shrink:0;font-size:26px}
#songListsBody .songlisttools{margin-left:auto;justify-content:flex-end}
#songListsBody .songlisttools .rebuildtitles{max-width:240px;text-align:left;line-height:1.4}
#songListsBody .generatedchoices{margin:16px 0 0;padding:0;border:0}
#songListsBody .generatedchoices>div{grid-template-columns:1fr;gap:12px}
#songListsBody .generatedchoices button{min-height:60px;padding:15px 18px}
#songPreparationStatus{margin:16px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
@media(max-width:450px){#songListsBody .indexoverviewtitle{gap:10px;padding-right:26px}#songListsBody .indexoverviewtitle h1{font-size:21px}#songListsBody .songlisttools .rebuildtitles{font-size:11px;padding:8px;max-width:180px}}

.filetools .attachedIndex.indexReady{background:#b9ddc1;color:#234e38;opacity:1;box-shadow:inset 0 0 0 1px #739b7e44}
html[data-theme=dark] .filetools .attachedIndex.indexReady{background:#76ae8b;color:#112e21;opacity:1}

.filetools .delete{background:#f2cccc;color:#973b3b}
.filetools .rename{background:#cbe2f4;color:#285f87}
html[data-theme=dark] .filetools .delete{background:#d99696;color:#4f1919}
html[data-theme=dark] .filetools .rename{background:#90bcd9;color:#153c57}

.filetools .rename,.filetools .info{display:flex;align-items:center;justify-content:center;padding:0;line-height:0}
.filetools .rename svg,.filetools .info svg{display:block;flex:0 0 24px;width:24px;height:24px;margin:0}

/* Larger, aligned library controls. */
#libraryActions{left:calc(max(24px, calc((100vw - 980px)/2 + 24px)) + 245px);right:82px;gap:12px}
#libraryActions .librarysearch,#libraryActions #savedRecordingsButton{height:56px;min-height:56px;padding:10px 18px;border-radius:28px;font-size:clamp(14px,1.35vw,18px);display:flex;align-items:center;justify-content:center}
#libraryActions .librarysearch{flex:1.45;min-width:0;gap:10px}
#libraryActions #savedRecordingsButton{flex:1;min-width:0}
#libraryActions .librarysearchicon{width:30px;height:30px;flex:0 0 30px}
body:has(#libraryActions:not([hidden])) .libraryintro{margin:0 0 26px;min-height:56px;align-items:center}
body:has(#libraryActions:not([hidden])) .libraryintro h1{white-space:nowrap}
body:has(#libraryActions:not([hidden])) #headerSettings{width:56px;height:56px}
body:has(#libraryActions:not([hidden])) #headerSettings svg{width:33px;height:33px}
.filetools button,.filetools .delete{width:44px;height:44px;min-width:44px;min-height:44px}
.filetools .rename svg,.filetools .info svg{flex-basis:27px;width:27px;height:27px}
.filetools .attachedIndex svg,.filetools .delete svg{width:27px;height:27px}
.filetools .slash{left:7px;top:21px;width:30px}
.book .cover{min-height:240px}
@media(max-width:740px){#libraryActions{left:20px;right:20px;top:max(78px,calc(env(safe-area-inset-top,0px) + 68px));gap:10px}#libraryActions .librarysearch,#libraryActions #savedRecordingsButton{width:100%;font-size:13px;padding:10px;line-height:1.25}body:has(#libraryActions:not([hidden])) .libraryintro{margin:0 70px 88px 0}#libraryActions .librarysearchicon{width:27px;height:27px;flex-basis:27px}}

/* Compact recording rows with one expanded player. */
.recordingsheading{position:fixed;left:76px;right:80px;top:max(14px,env(safe-area-inset-top,0px));height:46px;z-index:7;display:flex;align-items:center;gap:18px;background:var(--appbg)}
.recordingsheading .savedheading{margin:0;font:600 25px/1.2 Georgia,serif;white-space:nowrap}
.recordbatchtools{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}
.recordbatchtools button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:12px;background:#234e48;color:#fff;font-size:14px;white-space:nowrap}
.recordbatchtools button[aria-pressed=true]{background:var(--control);color:var(--ink)}
.recordbatchtools button:disabled{opacity:.5;cursor:default}
.recordbatchtools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:has(.recordingsheading) main{padding-top:88px!important}
.savedrecordings{gap:8px}.savedrecord{padding:8px 12px;border-radius:12px}.savedrecordrow{flex-wrap:nowrap;gap:12px}
.savedrecord h2{flex:1 1 0;min-width:0}.savedrecord .recordtitle{display:flex;align-items:center;width:100%;min-height:44px;padding:4px 0;background:none;color:var(--ink);font:600 17px/1.35 system-ui;text-align:left}
.recordtitle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recordtools{flex:0 0 auto;width:auto;justify-content:flex-end;gap:6px}.recordtools button{width:40px;min-width:40px;height:40px;padding:8px;flex-shrink:0}.recordtools button span{display:none}
.recordduration{font-size:17px}.recordselect{display:grid;place-items:center;width:40px;height:40px;cursor:pointer}.recordselect input{width:29px;height:29px;margin:0;accent-color:#234e48;cursor:pointer}
.recordplayrow[hidden],.recordselect[hidden],.recordtools button[hidden],.recordbatchtools button[hidden]{display:none!important}
.recordplayrow{margin:8px 0 4px;animation:recordReveal .18s ease-out}
@keyframes recordReveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.recordingsheading .savedheading{font-size:20px}.recordbatchtools{gap:6px}.recordbatchtools button{font-size:12px;padding:9px 10px}.recordingsheading{gap:8px}}
@media(max-width:540px){.recordingsheading{left:76px;right:76px;height:auto;min-height:46px;flex-wrap:wrap}.recordingsheading .savedheading{width:100%;font-size:21px;padding-top:9px}.recordbatchtools{margin:12px 0 0;justify-content:flex-start}.recordbatchtools button{min-height:40px}.recordbatchtools{flex-wrap:wrap}body:has(.recordingsheading) main{padding-top:132px!important}.savedrecord{padding:7px 8px}.savedrecordrow{gap:6px}.savedrecord .recordtitle{font-size:14px}.recordduration{font-size:13px}.recordtools{gap:3px}.recordtools button,.recordselect{width:31px;min-width:31px;height:36px;padding:5px}.recordtools svg{width:21px;height:21px}.recordselect input{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.recordplayrow{animation:none}}
@media(max-width:540px){.recordingsheading{height:46px;min-height:46px;flex-wrap:nowrap}.recordingsheading .savedheading{padding-top:0}.recordbatchtools{position:fixed;left:16px;right:16px;top:max(74px,calc(env(safe-area-inset-top,0px) + 64px));margin:0;height:44px;justify-content:flex-end;flex-wrap:nowrap;background:var(--appbg)}.recordbatchtools button{min-height:44px}}

.songqueryfield{position:relative;margin-bottom:7px}.globalsearch .songqueryfield input{padding-right:110px;margin-bottom:0;min-height:56px}
#allSongsQuery::-webkit-search-cancel-button{-webkit-appearance:none;display:none}#allSongsQuery::-ms-clear{display:none}
.songqueryfield button{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;display:grid;place-items:center;padding:0;border-radius:50%;background:none;color:var(--ink)}
#clearSongQuery{right:54px}#clearSongQuery[hidden]{display:none!important}#voiceSongQuery{right:7px;background:#234e48;color:#fff}.songqueryfield svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#voiceSongQuery.listening{background:#bc2633;box-shadow:0 0 0 4px #bc26331f}#voiceSongQuery:disabled{opacity:.5}
.voicesearchstatus{min-height:20px;margin:7px 0 17px;color:var(--muted);font-size:13px;line-height:1.5}
.voiceinstall{width:min(520px,calc(100vw - 30px))}.voiceinstall h2{font-size:22px;margin-right:32px}.voiceinstall p{line-height:1.65;font-size:15px}.voiceinstall .primary{padding:12px 18px;border-radius:11px}.voiceinstall progress{width:100%;height:18px;accent-color:#327768}.voiceinstall progress[hidden]{display:none}

.profiledialog{width:min(580px,calc(100vw - 28px));max-height:90dvh;overflow:auto}.profiledialog h2{margin-right:30px}.profiledialog label{display:block;font-weight:650;margin:16px 0 7px}.profiledialog p{line-height:1.5}.profileidentity{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;overflow-wrap:anywhere}.profileidentity a{color:var(--ink)}.profileselect{display:flex;gap:8px}.profileselect input,.profileselect select{flex:1;min-width:0;width:100%;background:var(--surface);color:var(--ink);border:1px solid #8b9c8e65;padding:12px;border-radius:10px;font-size:17px}.profileselect button{padding:10px 14px;border-radius:10px;flex-shrink:0}.profilebuttons{display:flex;gap:9px}.profilebuttons button{flex:1;border-radius:12px;padding:13px 10px;font-size:16px}.profileauth{display:block;text-align:center;padding:14px;border-radius:12px;text-decoration:none}.profilebackup{margin-top:18px;border-top:1px solid #8b9c8e55;padding-top:6px}.profileconfirm{background:#f2bc5320;border:1px solid #c2924870;padding:14px;border-radius:12px;margin-top:16px}.profileconfirm h3{margin-top:0}.profilehint{font-weight:650;color:#428777;font-size:14px}.profilefooter{display:flex;gap:9px;flex-wrap:wrap}.profilefooter button,.profilefooter a{padding:10px 12px;border-radius:9px}#profileStatus{min-height:24px;font-size:15px;font-weight:550}#profileDialog [hidden]{display:none!important}

.profileoffline{padding:0 0 16px;border-bottom:1px solid #8b9c8e55;margin-bottom:18px}.profileoffline h3{font-size:18px}.profileoffline .primary{width:100%;border-radius:12px;padding:13px 16px;font-size:17px}

/* Continuous horizontal index with native momentum and alignment to columns. */
body:has(.generatedview) main{padding-top:16px;padding-bottom:12px}.generatedview{display:flex;flex-direction:column;min-height:300px;overflow:hidden}.generatedview .generatedheading{flex-shrink:0;margin-bottom:14px}.generatedview .listtextsize{flex-shrink:0;margin-bottom:14px}.generatedview .indexpartial{flex-shrink:0;margin:0 0 10px}.generatedview .generatedpaper{flex:1;min-height:0;padding:0;overflow:hidden}.generatedview .generatedcolumns{position:relative;display:flex;gap:12px;width:100%;height:100%;padding:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;cursor:grab;user-select:none;-webkit-user-select:none}.generatedcolumns::-webkit-scrollbar{display:none}.generatedview .generatedcolumn{flex:0 0 calc((100% - (var(--listcolumns) - 1)*12px)/var(--listcolumns));min-width:0;scroll-snap-align:start}.generatedview .songline{height:var(--listrowheight);min-height:var(--listrowheight);padding:3px 0}.generatedview .generatedcolumns.dragging{cursor:grabbing;scroll-snap-type:none}.generatedview .songalphabet,.generatedview .generateddigits{flex-shrink:0;margin-top:20px;margin-bottom:0;padding-bottom:max(2px,env(safe-area-inset-bottom))}.generatedview .listdigitstatus{flex-shrink:0;margin:3px 0 0}@media(max-width:649px){body:has(.generatedview) main{padding-left:12px;padding-right:12px}.generatedview .generatedheading{gap:8px}.generatedview .songalphabet,.generatedview .generateddigits{margin-top:16px}}

.generatedview .generatedheading{padding-right:205px}.generatedview .generatedpaper{position:relative}.generatedpaper>p{position:absolute;inset:16px;margin:0;pointer-events:none}@media(max-width:600px){.generatedview .generatedheading{padding-right:0}}

#transposeButton{position:fixed;right:78px;top:max(14px,env(safe-area-inset-top));z-index:9;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#ead5b9;color:#4d3422;padding:9px}#transposeButton[hidden]{display:none}#transposeButton svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.6}#transposeButton .freticon-neck{fill:#f7e9d6;stroke-width:2}#transposeButton .freticon-lines{stroke-width:1.1}#transposeButton .freticon-nut{stroke-width:3}#transposeButton .freticon-dot{fill:#4d3422;stroke:#f7e9d6;stroke-width:1}
#transposeDialog{width:min(760px,94vw);max-width:94vw;padding:28px;box-sizing:border-box}#transposeDialog h2{padding-right:35px}#transposeDialog .capoinputs{display:grid;grid-template-columns:1.2fr .8fr 1.2fr;gap:12px;margin-top:24px}#transposeDialog label{font-size:14px;font-weight:600}#transposeDialog select{display:block;width:100%;min-width:0;padding:10px;font-size:19px;border-radius:12px;background:var(--control);color:var(--ink);margin:8px 0;border:1px solid var(--edge)}#transposeResult{font-size:21px;line-height:1.5;font-weight:750;padding:14px 16px;border-radius:14px;background:var(--control);margin:15px 0}.capomodes{display:flex;gap:8px}.capomodes button{flex:1;padding:12px 8px;border:1px solid var(--edge);font-size:14px;border-radius:12px;background:var(--control);color:var(--ink)}.capomodes button[aria-pressed="true"]{background:#234e48;color:#fff;border-color:#234e48}#fretboardHeading{font-size:20px;margin:24px 0 8px}#fretboardHelp{font-size:15px;line-height:1.5;margin:0 0 18px}.fretboardcaption{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.06em;opacity:.75;margin-bottom:10px}#capoFretboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));padding-bottom:8px}.capofret{text-align:center;min-width:0;position:relative}.fretnumber{font-size:16px;font-weight:650;display:block;margin-bottom:10px}.fretstrings{height:90px;border-right:3px solid #b5afa0;border-top:1px solid #817766;border-bottom:1px solid #817766;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 15px,#c6b998 15px,#c6b998 16px),linear-gradient(100deg,#553e2d,#78573d);position:relative}.capofret.nut .fretstrings{border-left:6px solid #dbd2ba}.fretstrings i{position:absolute;width:8px;height:8px;border-radius:50%;background:#e1c992;left:calc(50% - 4px);top:41px}.fretstrings b{position:absolute;top:-4px;bottom:-4px;left:calc(50% - 5px);width:10px;border-radius:5px;background:#e9ac49;box-shadow:0 0 0 2px #3d3324}.capofret strong{display:block;margin:12px 3px 0;padding:10px 0;border-radius:12px;font-size:23px;color:var(--ink);background:var(--control)}.capofret.current strong{background:#c8e4d5;color:#163c33;box-shadow:inset 0 0 0 2px #578a76}.capofret.current .fretnumber{color:var(--ink);text-decoration:underline;text-decoration-color:#db9a38;text-decoration-thickness:3px;text-underline-offset:4px}#capoAlternative{font-size:16px;line-height:1.5;font-weight:650;margin:18px 0}.caponote{font-size:12px;line-height:1.6;opacity:.8;margin-bottom:0}@media(max-width:500px){#transposeDialog{padding:21px 14px}#transposeDialog h2{font-size:22px}.capoinputs{gap:7px!important}#transposeDialog label{font-size:11px}#transposeDialog select{padding:9px 4px;font-size:16px}#transposeResult{font-size:17px;padding:12px}.capomodes button{font-size:12px}.capofret strong{font-size:17px;margin-left:1px;margin-right:1px;padding:10px 0}.fretstrings{height:90px}.capofret.nut .fretstrings{border-left-width:4px}}
#recordTags{display:flex;gap:8px;overflow-x:auto;padding:14px 0;touch-action:pan-x;scrollbar-width:none}.recordtag{flex-shrink:0;border-radius:18px;background:#234e48;color:white;padding:10px 16px;user-select:none;-webkit-user-select:none;transition:opacity .3s,transform .3s}.recordtag.selected{background:#399b68;box-shadow:0 0 0 3px #68b88755}.recordtag.removing{opacity:0;transform:scale(.65)}#recordTags input{width:150px;flex-shrink:0;font-size:16px;margin:0}.generatedview .songalphabet,.generatedview .generateddigits{margin-top:8px!important}

.sharedprofile{border-bottom:1px solid var(--edge);padding-bottom:20px;margin-bottom:20px}.sharedprofile input{font-size:17px}#sharedProfileCode{font-family:monospace;font-size:13px}.checkoption{display:flex!important;align-items:center;gap:10px;margin:15px 0!important;font-size:15px!important}.checkoption input{width:20px;height:20px;margin:0;flex-shrink:0}.checklist{max-width:1000px;margin:auto}.checklistrow{display:grid;grid-template-columns:minmax(140px,1fr) 30px minmax(110px,1fr);align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid var(--edge);font-size:17px}.checklistrow input[type=checkbox]{width:25px;height:25px;accent-color:#327768}.checklistrow input[type=text]{min-width:0;background:var(--control);color:var(--ink);padding:10px;border:1px solid var(--edge);border-radius:8px;font-size:16px}.checklistrow:has(input:checked)>span{color:#398560}.filetools [hidden]{display:none!important}@media(max-width:500px){.checklistrow{gap:8px;font-size:15px;grid-template-columns:minmax(105px,1fr) 26px minmax(90px,.8fr)}}

#shareBookPanel{padding-top:16px;margin-top:18px;border-top:1px solid var(--edge)}#shareBookPanel input{font-size:17px}#shareBookButton{padding:12px;border-radius:10px;margin-top:10px}.sharedprofile button{margin-top:10px}

.checklistrows{display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--checkrows),auto);column-gap:24px}.checklistrow{grid-template-columns:minmax(110px,1fr) 26px minmax(80px,.7fr);font-size:15px;gap:8px}.checklistlegends{display:grid;grid-template-columns:1fr 1fr;gap:24px;color:var(--muted);font-size:13px;font-weight:650;padding-bottom:12px}#teachVoiceQuery{padding:10px 12px;border-radius:10px;background:var(--control);color:var(--ink)}@media(max-width:700px){.checklistrows{display:block}.checklistlegends{display:block}.checklistlegends span+span{display:none}}

/* Compact capo controls and the combined major/minor chord chooser. */
#transposeDialog{padding:18px 24px 22px}.transposehead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}#transposeDialog .transposehead h2{margin:0;padding:0;line-height:1.2;font-size:25px}#transposeDialog .transposehead .close{position:static;flex-shrink:0;margin:0;width:42px;height:42px;display:grid;place-items:center;font-size:31px;line-height:1;padding:0}#transposeDialog .capoinputs{position:relative;grid-template-columns:125px 155px;gap:12px;justify-content:start;margin-top:12px}#transposeDialog .capoinputs label{display:block;font-size:13px}#transposeDialog select,#transposeFrom{height:43px;margin:6px 0 0;padding:8px 11px;font-size:18px}#transposeFrom{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid var(--edge);border-radius:12px;color:var(--ink);background:var(--control)}#transposeFrom svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}#transposeFrom[aria-expanded="true"] svg{transform:rotate(180deg)}#transposeChordName{font-weight:700}#transposeResult{font-size:19px;padding:10px 13px;margin:12px 0}.capomodes button{padding:10px 8px}#fretboardHeading{margin-top:18px;font-size:19px}#fretboardHelp{margin-bottom:12px}#capoAlternative{margin:13px 0}.caponote{font-size:11px;line-height:1.5}#chordPicker[hidden]{display:none}#chordPicker{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:5;padding:15px;border:1px solid var(--edge);border-radius:16px;background:var(--surface);box-shadow:0 10px 35px #0004;animation:chordPickerIn .15s ease-out}#chordPicker h3{font:600 12px system-ui;margin:0 0 9px;color:var(--muted)}#chordPicker h3:not(:first-child){margin-top:15px}.chordchoices{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}.chordchoices button{min-width:0;min-height:43px;padding:7px 0;border-radius:9px;background:var(--control);color:var(--ink);font-size:17px;font-weight:650}.chordchoices button[aria-pressed="true"]{background:#234e48;color:white;box-shadow:inset 0 0 0 2px #6fba91}@keyframes chordPickerIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:500px){#transposeDialog{padding:14px 14px 18px}#transposeDialog .transposehead h2{font-size:21px}#transposeDialog .capoinputs{grid-template-columns:110px 140px;gap:10px!important;margin-top:9px}#chordPicker{padding:12px}.chordchoices{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.chordchoices button{font-size:18px;min-height:43px}#transposeResult{font-size:16px}}@media(prefers-reduced-motion:reduce){#chordPicker{animation:none}}

/* Keep the reader tools on the same header row and the PDF free of selection. */
#transposeButton{position:static;top:auto;right:auto;width:46px;height:46px;margin:0;flex-shrink:0;align-self:center}.reader #headerSettings{align-self:center}.reader #main,.reader #main canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.reader #main::selection,.reader #main *::selection{background:transparent}

/* Home at the upper left; the recorder timer sits on the screen centre line. */
body:not(.reader) #home,.practicereader #home,.focusmode #home{display:none!important}.reader #home{position:fixed;left:14px;top:max(14px,env(safe-area-inset-top,0px));z-index:8;display:grid;place-items:center;width:46px;height:46px;padding:9px;border-radius:50%;background:#234e48;color:#f5f8f1;box-shadow:0 3px 15px #0002}.reader #home svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#recordPanel{left:50%;transform:translateX(-50%);display:grid;grid-template-columns:43px minmax(84px,auto) 43px;gap:6px}#recordTimer{margin:0;min-width:84px;text-align:center}@media(max-width:430px){#recordPanel{top:max(70px,calc(env(safe-area-inset-top,0px) + 56px))}}
.reader header{display:grid;grid-template-columns:46px 46px;gap:9px;align-items:center}.reader #readerZoom{grid-column:2;justify-self:end}

/* Christmas checklist: a compact chord and a wider capo control for each song. */
.checklistrow{grid-template-columns:minmax(0,1fr) 26px 64px 100px;gap:8px}.checklistchord,.checklistcapo{min-width:0;min-height:40px;padding:8px 5px;border:1px solid var(--edge);border-radius:10px;background:var(--control);color:var(--ink);font-size:15px;font-weight:650}.checklistcapo{font-size:14px}.checklistmusicdialog{width:min(760px,94vw);max-width:94vw;padding:20px 24px;color:var(--ink);background:var(--surface)}.checklistmusicdialog .transposehead h2{font:650 22px system-ui;margin:0}.checklistmusicdialog .close{position:static;display:grid;place-items:center;width:42px;height:42px;padding:0;font-size:30px}.checklistmusicsong{font-size:15px;color:var(--muted);margin:10px 0 20px}.checklistmusicdialog h3{font-size:13px;color:var(--muted);margin:18px 0 9px}.checklistclear{margin-top:18px;padding:11px 18px;border-radius:10px;background:var(--control);color:var(--ink)}.checklistcapogrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.checklistcapogrid button{min-height:48px;padding:8px 3px;border-radius:10px;font-size:19px;background:var(--control);color:var(--ink)}.checklistcapogrid button:first-child{grid-column:span 2;font-size:16px}.checklistcapogrid button[aria-pressed=true]{background:#234e48;color:white}@media(max-width:500px){.checklistrow{grid-template-columns:minmax(0,1fr) 25px 56px 84px;gap:7px}.checklistchord{font-size:14px}.checklistcapo{font-size:13px}.checklistmusicdialog{padding:16px}.checklistcapogrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
#recordPanel{top:calc(max(14px,env(safe-area-inset-top,0px)) + 23px);transform:translate(-50%,-50%)}@media(max-width:430px){#recordPanel{top:max(70px,calc(env(safe-area-inset-top,0px) + 56px));transform:translateX(-50%)}}

/* Choose a song before editing its musical settings. */
.checklistchord:disabled,.checklistcapo:disabled{background:color-mix(in srgb,var(--control),#a4a9aa 24%);border-color:color-mix(in srgb,var(--edge),#969c9d 20%);color:transparent;cursor:default;opacity:.65}.checklistrow.selected>span{color:#398560}#checklistHome{display:grid;place-items:center;width:48px;height:48px;padding:9px;border-radius:50%;background:#234e48;color:#f5f8f1;flex-shrink:0}#checklistHome svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#jumpLists{display:grid;gap:9px;padding-top:15px;margin-top:16px;border-top:1px solid var(--edge)}#jumpLists button{padding:13px 12px;border-radius:12px;background:#234e48;color:#fff;font-size:16px;font-weight:600}
/* Match the 58 px lower reader bubbles and keep the icons optically centred. */
.reader header{grid-template-columns:58px 58px;gap:9px}.reader #home,.reader #transposeButton,.reader #headerSettings,.reader #readerZoom{width:58px;height:58px;min-height:58px;display:grid;place-items:center;padding:0;line-height:1}.reader #headerSettings svg,.reader #home svg{display:block;width:35px;height:35px;margin:0}.reader #transposeButton svg{display:block;width:38px;height:38px;margin:0}.reader #readerZoom svg{display:block;width:32px;height:32px;margin:0}.reader #readerZoom span{font-size:12px;right:-2px;bottom:-2px}#recordPanel{grid-template-columns:58px minmax(100px,auto) 58px;top:calc(max(14px,env(safe-area-inset-top,0px)) + 29px)}#recordPanel .recordbubble{display:grid;place-items:center;width:58px;height:58px;padding:0;font-size:29px;line-height:1}#recordTimer{min-width:100px;height:58px;font-size:24px}#recordToggle i{width:19px;height:19px}#recordToggle span{font-size:10px}@media(max-width:500px){#recordPanel{top:max(90px,calc(env(safe-area-inset-top,0px) + 76px));transform:translateX(-50%)}}
#jump[open]{display:flex;flex-direction:column}#jump #jumpform{order:0}#jumpLists{order:1}
/* A single search workspace: keypad on the left and large list cards on the right. */
#jump{width:min(720px,94vw);max-width:94vw;padding:24px}#jump[open]{display:grid;grid-template-columns:minmax(250px,1fr) minmax(220px,.9fr);column-gap:24px;row-gap:18px;align-items:stretch}.jumpheading{grid-column:1/-1;order:0;display:flex;align-items:center;justify-content:space-between;gap:15px}.jumpheading h2{margin:0;font:650 23px system-ui}.jumpheading .close{position:static;width:40px;height:40px;margin:0;display:grid;place-items:center;font-size:29px;padding:0}#jump #jumpform{order:1;min-width:0;margin:0}#jump #jumpform label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px;font-size:14px}#jump .numbercaption{display:inline!important;font-size:14px}#jump .numberbar{margin:0 0 14px}#jump #keypad{margin:0;gap:7px}#jump #keypad button{height:49px}#jump #jumpform>.primary{width:100%;margin-top:12px;padding:15px 10px;font-size:17px}#jumpLists{order:2;padding:0;margin:0;border:0;grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:14px}#jumpLists button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;padding:20px 12px;border:1px solid var(--edge);background:var(--control);color:var(--ink);border-radius:18px;text-align:center}#jumpLists button:hover{background:#234e48;color:#fff}#jumpLists strong{font-size:21px}#jumpLists span{font-size:13px;font-weight:400;opacity:.8}#jumpLists svg{display:block;width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}#jumpLists svg text{fill:currentColor;stroke:none;font:700 10px system-ui}#jumpLists svg .azicon{font-size:20px}@media(max-width:600px){#jump{padding:18px}#jump[open]{grid-template-columns:1fr;gap:14px}.jumpheading h2{font-size:22px}#jumpLists{order:1;grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:10px}#jumpLists button{min-height:104px;padding:12px 8px;gap:6px}#jumpLists svg{width:30px;height:30px}#jumpLists strong{font-size:17px}#jumpLists span{font-size:11px}#jump #jumpform{order:2}#jump #keypad button{height:44px}}
#recordingShareDialog{width:min(600px,94vw);max-width:94vw;padding:24px;background:var(--surface);color:var(--ink)}#recordingShareDialog h2{margin:0;font:650 22px system-ui}#recordingShareDialog .close{position:static;width:40px;height:40px;display:grid;place-items:center;font-size:28px;padding:0}.recordsharecount{font-size:14px;color:var(--muted);margin:15px 0 9px}.recordsharetext{width:100%;resize:vertical;min-height:100px;max-height:220px;padding:14px;border:1px solid var(--edge);border-radius:12px;background:var(--control);color:var(--ink);font:17px/1.5 system-ui;user-select:text;-webkit-user-select:text}#copyRecordingText,#shareAllAudio,.recordsharenav button{padding:11px 14px;border-radius:10px;background:var(--control);color:var(--ink);font-size:14px;margin-top:10px}.recordsharesteps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.recordsharesteps button{padding:17px 10px;min-height:58px;border-radius:13px;background:#234e48;color:#fff;font-size:17px;font-weight:650}.recordsharestatus{font-size:14px;line-height:1.6;margin:16px 0 0}.recordsharenav{display:flex;justify-content:space-between;gap:10px}#shareAllAudio{width:100%;font-size:13px}#recordingShareDialog [hidden]{display:none!important}

#shareBookPanel .sharebookrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:12px;align-items:end}#shareBookPanel .sharebookrow label{display:block;font-size:13px}#shareBookPanel .sharebookrow input{display:block;width:100%;margin:7px 0 0;font-size:16px;min-height:44px}#shareBookPanel #shareBookButton{margin:0;min-height:44px;padding:11px 14px;white-space:nowrap;background:#234e48;color:#fff}#saveBookEdit{margin-bottom:8px}.generatedchoices button{min-height:68px;padding-top:20px;padding-bottom:20px}#songListsBody .generatedchoices{margin-top:18px}.aboutfriends{padding:15px 17px;background:var(--control);border-radius:13px;font-size:15px;line-height:1.6}.aboutfriends span{font-size:13px;color:var(--muted)}@media(max-width:550px){#shareBookPanel .sharebookrow{grid-template-columns:1fr 1fr}#shareBookPanel #shareBookButton{grid-column:1/-1}}

#transposeDetection{font-size:12px;line-height:1.45;color:var(--muted);margin:7px 0 0}#transposeDetection:empty{display:none}

#shareBookPanel #shareBookButton{height:44px;min-height:44px;max-height:44px;align-self:end;margin:0 0 3px;line-height:1.2}#searchHome{display:grid;place-items:center;flex-shrink:0;width:58px;height:58px;padding:0;border-radius:50%;background:#234e48;color:#f5f8f1}#searchHome svg{display:block;width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#songListsBody .generatedchoices button{min-height:120px;padding:30px 18px;font-size:29px;font-weight:750;line-height:1.25}@media(max-width:500px){#songListsBody .generatedchoices button{font-size:26px}}

/* v80: align actual fields, independent of label and inherited input margins. */
#shareBookPanel .sharebookrow{align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto}
#shareBookPanel .sharebookrow label{display:grid;grid-template-rows:18px 44px;row-gap:7px;margin:0;padding:0}
#shareBookPanel .sharebookrow input{height:44px;min-height:44px;box-sizing:border-box;margin:0!important;padding:8px 10px}
#shareBookPanel #shareBookButton{grid-column:auto;align-self:start;margin:25px 0 0!important;height:44px;box-sizing:border-box}
#jumpLists button,html[data-theme=dark] #jumpLists button{background:#234e48;color:#fff;border-color:#40776b}
#queuePicker h2{margin:0 58px 20px 0;min-height:48px;display:flex;align-items:center}
#closeQueuePicker{width:48px;height:48px;font-size:38px;display:grid;place-items:center;padding:0;line-height:1}
#returnQueue{position:fixed;top:calc(env(safe-area-inset-top) + 15px);left:88px;z-index:25;background:#234e48;color:#fff;min-height:58px;padding:10px 18px;border-radius:15px;font-size:17px;font-weight:650}
#returnQueue[hidden]{display:none}
#inlineSearch #jumpform{grid-template-columns:minmax(0,1fr) minmax(190px,1fr);grid-template-rows:auto auto auto auto;gap:12px 24px;max-width:760px}
#inlineSearch #jumpform>label{grid-column:1;grid-row:1;align-self:center;margin:0;font-size:20px;display:flex;flex-wrap:wrap;gap:5px}
#inlineSearch .numberbar{grid-column:1;grid-row:2;margin:0;max-width:100%}
#inlineSearch #prevNumber,#inlineSearch #nextNumber{display:none}
#inlineSearch #keypad{grid-column:2;grid-row:1/5}
#inlineSearch #jumpform>.primary{grid-column:1;grid-row:3;margin:0;min-height:64px;font-size:23px;padding:14px 12px}
#inlineSearch #queueButton{display:flex;position:static;grid-column:1;grid-row:4;width:100%;min-height:64px;border-radius:12px;justify-content:center;align-items:center;gap:12px;background:#234e48;color:white;font-size:23px;padding:14px 12px}
#inlineSearch #queueButton svg{width:31px;height:31px}
#inlineSearch .numberbar{grid-row:1;justify-self:end;width:135px}#inlineSearch #jumpform>label{padding-right:140px;min-height:58px}#inlineSearch #jumpform>.primary{grid-row:2}#inlineSearch #queueButton{grid-row:3}#inlineSearch #jumpError{grid-row:4}
@media(max-width:450px){#shareBookPanel .sharebookrow{gap:6px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}#shareBookPanel #shareBookButton{font-size:12px;padding:6px}#shareBookPanel .sharebookrow label{font-size:11px}#inlineSearch #jumpform{gap:10px;grid-template-columns:minmax(0,1fr) minmax(145px,1fr)}#inlineSearch .numberbar{width:80px}#inlineSearch #jumpform>label{padding-right:85px;font-size:16px}#inlineSearch #jumpform>.primary,#inlineSearch #queueButton{font-size:18px}#returnQueue{font-size:13px;padding:8px;left:82px}}
.focusmode #returnQueue{display:none!important}

.sharedidentityrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.sharedidentityrow label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px}.sharedidentityrow input{width:100%;min-width:0;box-sizing:border-box;margin:0!important}

/* v81: explicit grid cells keep number input out of the action row. */
.reader #returnQueue{top:max(14px,env(safe-area-inset-top,0px));left:82px;width:max-content;max-width:calc(100vw - 100px);height:58px;min-height:58px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;font-size:17px;line-height:1.2;white-space:nowrap;border-radius:29px}
.reader #returnQueue[hidden]{display:none}.reader #returnQueue svg{width:29px;height:29px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gridview #inlineSearch #jumpform{grid-template-columns:minmax(0,.65fr) minmax(85px,.35fr) minmax(145px,1fr);grid-template-rows:minmax(64px,auto) auto auto auto;gap:12px 14px;padding-top:10px;align-items:center}
.gridview #inlineSearch #jumpform>label{grid-column:1;grid-row:1;display:block;margin:0;padding:0;min-height:0;align-self:center;font-size:20px;line-height:1.3}
.gridview #inlineSearch #jumpform>.numberbar{grid-column:2;grid-row:1;width:100%;max-width:140px;justify-self:end;align-self:center;margin:0;padding:0;min-width:0}
.gridview #inlineSearch #jumpform>.numberbar input{width:100%;height:56px;box-sizing:border-box;margin:0;padding:7px;font-size:29px}
.gridview #inlineSearch #jumpform>#keypad{grid-column:3;grid-row:1/5;align-self:start}
.gridview #inlineSearch #jumpform>.primary{grid-column:1/3;grid-row:2;width:94%;justify-self:center;min-height:60px;margin:0;padding:12px 8px;font-size:22px;box-sizing:border-box}
.gridview #inlineSearch #jumpform>#queueButton{grid-column:1/3;grid-row:3;width:100%;height:84px;min-height:84px;box-sizing:border-box;font-size:28px;padding:15px;gap:14px}
.gridview #inlineSearch #jumpform>#queueButton svg{width:38px;height:38px}
.gridview #inlineSearch #jumpform>#jumpError{grid-column:1/3;grid-row:4;margin:0}
@media(max-width:450px){.gridview #inlineSearch #jumpform{column-gap:8px;grid-template-columns:minmax(0,.65fr) minmax(64px,.35fr) minmax(130px,1fr)}.gridview #inlineSearch #jumpform>label{font-size:16px}.gridview #inlineSearch #jumpform>.primary{font-size:18px}.gridview #inlineSearch #jumpform>#queueButton{font-size:24px}.reader #returnQueue{font-size:14px;padding:0 10px;gap:6px}}

#keepAwakeStatus{font-size:12px;line-height:1.5;margin:8px 0 0;color:var(--muted)}

#metronomePanel{position:fixed;z-index:9;display:flex;align-items:center;background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:27px;box-shadow:0 4px 18px #0002;height:52px;padding:3px;gap:2px;box-sizing:border-box}#metronomePanel[hidden],.focusmode #metronomePanel{display:none!important}#metronomePanel button{height:44px;border-radius:22px;background:transparent;color:var(--ink);padding:0 10px;font-size:15px}#metroSettings{display:flex;align-items:center;gap:7px}#metroSettings strong{font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}#metroBeat{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--edge);color:var(--muted);font-size:12px}.pulse #metroBeat{background:#4baf79;color:white;box-shadow:0 0 12px #4baf7966}.pulse.accent #metroBeat{background:#e9a43c;color:#232c23}.running #metroToggle{background:#234e48;color:white}#metronomeDialog{width:min(430px,92vw)}.metroHeading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.metroHeading h2{margin:0}.metroHeading .close{position:static;width:44px;height:44px;line-height:1;padding:0}.metroTempoRow{display:grid;grid-template-columns:58px 1fr 58px;gap:12px;margin:12px 0}.metroTempoRow button,#metroTap{background:var(--control);color:var(--ink);border-radius:12px;min-height:52px;font-size:25px}#metroTempo{width:100%;margin:0;text-align:center;font-size:29px}#metroRange{width:100%;accent-color:#327961;margin:10px 0 20px;padding:0}#metroTap{width:100%;font-size:19px}.metroOptions{display:grid;gap:18px;margin:24px 0}.metroOptions select{display:block;width:100%;margin-top:8px;background:var(--control);color:var(--ink);padding:12px;border:1px solid var(--edge);border-radius:10px;font:17px system-ui}.metroSound{display:flex;align-items:center;gap:12px}.metroSound input{width:23px;height:23px;margin:0!important;accent-color:#327961}#metroDialogToggle{width:100%;font-size:21px;padding:15px}#openMetronome svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Match the adjacent reader bubble height and enlarge all mini-panel content. */
#metronomePanel{height:58px;min-height:58px;border-radius:29px;padding:3px;gap:4px}#metronomePanel button{height:50px;padding:0 14px;font-size:20px;border-radius:25px}#metroSettings{gap:10px}#metroSettings strong{font-size:21px}#metroBeat{width:25px;height:25px;font-size:16px}
@media(max-width:599px){#metronomePanel{height:50px;min-height:50px;padding:2px;border-radius:25px}#metronomePanel button{height:44px;padding:0 11px;font-size:18px}#metroSettings strong{font-size:19px}#metroBeat{width:23px;height:23px;font-size:15px}}

/* Three independent checklist flags; compact music fields retain song-title space. */
.checklist .checklistrow{grid-template-columns:minmax(0,1fr) 25px 25px 25px 48px 64px;gap:6px}.checklist .checklistrow input[type=checkbox]{width:24px;height:24px;margin:0;cursor:pointer}.checklist .checklistchord,.checklist .checklistcapo{padding:7px 3px;min-height:40px;white-space:nowrap;font-size:14px}.checklist .checklistrow:not(.selected)>span{color:var(--ink)}.checklistlegends{font-size:12px;line-height:1.5}.checklist .checklistrow>span{overflow-wrap:anywhere}
@media(max-width:500px){.checklist .checklistrow{grid-template-columns:minmax(0,1fr) 24px 24px 24px 44px 60px;gap:5px}.checklist .checklistchord,.checklist .checklistcapo{font-size:13px}}

.checklist .checklistchord,.checklist .checklistcapo{background:color-mix(in srgb,var(--control),#a4a9aa 24%);border-color:color-mix(in srgb,var(--edge),#969c9d 20%);color:var(--ink);cursor:pointer}.checklist .checklistchord:hover,.checklist .checklistcapo:hover{border-color:#327768}

.checklist .checklistflag{position:relative;display:grid;place-items:center;width:24px;height:24px;min-width:24px;padding:0;border:1px solid #80948a;border-radius:4px;background:var(--appbg);color:white;cursor:pointer;touch-action:manipulation}.checklist .checklistflag[data-state="1"]{background:#327768;border-color:#327768}.checklist .checklistflag[data-state="2"]{background:#bb3a3a;border-color:#bb3a3a}.checklist .checklistflag[data-state="1"]::after{content:'';width:6px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}.checklist .checklistflag[data-state="2"]::after{content:'';width:6px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}.checklist .checklistflag:focus-visible{outline:3px solid #d7a84d;outline-offset:3px}

.checklistsummary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:0 0 24px}.checklistsummaryitem{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--edge);border-left:4px solid #438f70;border-radius:10px;background:var(--control);font-size:15px}.checklistsummaryitem.pending{border-left-color:#c74b4b}.checklistsummaryitem.chosen{grid-column:1/-1;border-left-color:#337d92}.checklistsummaryitem strong{font-size:23px;font-variant-numeric:tabular-nums;white-space:nowrap}.checklistsummaryitem small{font-size:14px;font-weight:400;color:var(--muted)}@media(max-width:500px){.checklistsummary{grid-template-columns:1fr;gap:7px}.checklistsummaryitem{padding:10px 12px}.checklistsummaryitem strong{font-size:21px}}

.checklist #checklistHome{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:max(14px,env(safe-area-inset-left,0px));z-index:10;box-shadow:0 3px 15px #0002}.checklist>.generatedheading{padding-left:62px;padding-right:60px;min-height:48px}.checklist .checklistrow input[data-done]{accent-color:#2b78bf}.checklist .checklistrow.musicready{background:color-mix(in srgb,var(--surface),#9bdda8 36%);border-radius:8px}.checklist .checklistrow.musicready .checklistchord,.checklist .checklistrow.musicready .checklistcapo{background:color-mix(in srgb,var(--control),#9bdda8 24%)}

.checklistsummaryitem.chosen{grid-column:auto}.checklistsummaryitem.complete{border-left-color:#438f70}

.welcomeprogress{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;margin:0 0 20px;border-radius:14px;background:var(--control);color:var(--text);font-size:16px}.welcomeprogress button{padding:10px 16px;white-space:nowrap}

/* Direct link between Brod 2026 and the existing Christmas checklist. */
.christmasbridge{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:76px;z-index:9;display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;max-width:calc(100vw - 155px);padding:8px 16px;border-radius:24px;background:#234e48;color:#f5faf6;font:600 16px/1.25 system-ui;box-shadow:0 3px 12px #0002;box-sizing:border-box}.christmasbridge[hidden]{display:none}.christmasbridge svg{width:27px;height:27px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.reader #christmasTableLink{left:14px;top:84px}.focusmode #christmasTableLink{display:none!important}.checklist.hasbookreturn>.generatedheading{padding-top:56px;padding-left:0}.christmaschooser{width:min(470px,calc(100vw - 28px))}.christmaschoice{display:block;width:100%;margin-top:12px;padding:16px;border-radius:14px;background:#234e48;color:#fff;font-size:17px}@media(max-width:500px){.christmasbridge{font-size:14px;padding:8px 12px;gap:7px}.reader:has(#recordPanel:not([hidden])) #christmasTableLink{top:166px}.reader #christmasTableLink{max-width:calc(100vw - 100px)}}

.checklisttransfer{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 22px}.checklisttransfer button{min-height:48px;padding:12px 18px;border-radius:24px;background:#234e48;color:#f5faf6;font-size:16px;font-weight:600}.checklisttransfer button:disabled{opacity:.6}#checklistImportDialog{width:min(580px,calc(100vw - 28px));max-height:90dvh;overflow:auto}#checklistImportDialog .transferfilename{font-size:21px;font-weight:700;overflow-wrap:anywhere}#checklistImportDialog label{display:block;font-size:16px;margin:20px 0 8px}#checklistImportTarget{width:100%;font-size:17px;min-height:50px;padding:12px 36px 12px 14px;border:1px solid var(--edge);border-radius:12px;background-color:var(--control);color:var(--ink);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236b8580' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}#checklistImportDialog .transferhint,#checklistImportDialog .transfercount{font-size:16px;line-height:1.5;color:var(--muted)}#checklistImportDialog .transfererror{color:#bb3a3a;line-height:1.5}#checklistImportDialog .transferconfirm{width:100%;min-height:52px;padding:12px 18px;margin-top:14px;font-size:18px;border-radius:14px}

#checklistSendDialog{width:min(580px,calc(100vw - 28px));max-height:90dvh;overflow:auto}#checklistSendDialog h2,#checklistImportDialog h2{padding-right:28px}#checklistSendDialog .transferfilename{font-size:21px;font-weight:700;overflow-wrap:anywhere}#checklistTransferCode{box-sizing:border-box;width:100%;padding:14px;border:1px solid var(--edge);border-radius:12px;background:var(--control);color:var(--ink);font:600 22px monospace;text-transform:uppercase}#checklistImportDialog .transferload,#checklistSendDialog .copycode{min-height:48px;margin-top:12px;padding:12px 18px;border-radius:24px;background:#234e48;color:#f5faf6;font-size:17px}#checklistSendDialog .transfercode{display:block;margin:22px 0 12px;padding:16px 8px;border-radius:14px;text-align:center;background:var(--control);font:700 clamp(21px,5vw,31px)/1.4 monospace;letter-spacing:.06em;user-select:text;-webkit-user-select:text}#checklistSendDialog p{font-size:16px;line-height:1.5}#checklistSendDialog .codeexpiry{color:var(--muted)}#checklistSendDialog .transfererror{color:#bb3a3a}
/* Free vertical reading of the same song, including its continuation pages. */
.reader main.continuouspages{display:block;overflow:auto;scroll-snap-type:none;scroll-behavior:auto;overscroll-behavior:contain;align-items:initial;justify-content:initial;-webkit-overflow-scrolling:touch}.songpages{display:flex;flex-direction:column;align-items:center;gap:18px;min-width:100%;width:max-content}.songpage{position:relative;flex:none;background:var(--surface);max-width:none;max-height:none}.reader main.continuouspages .songpage canvas{display:block;max-width:none!important;max-height:none!important;margin:0}.reader main.continuouspages:not(.pagezoomed),.reader main.continuouspages:not(.pagezoomed) canvas{touch-action:pan-y}.reader main.continuouspages.pagezoomed{touch-action:none}#recordBackgroundStatus{position:fixed;bottom:90px;left:14px;z-index:30;max-width:calc(100vw - 28px);padding:10px 16px;border-radius:20px;background:#234e48;color:#fff;font-size:15px;box-shadow:0 3px 15px #0002}#recordBackgroundStatus[hidden],.focusmode #recordBackgroundStatus{display:none!important}#recordTags .recordtag{touch-action:pan-x}
/* Record search and separate share/delete selections. */
.recordingsheading{height:auto;min-height:48px;display:flex;align-items:center;gap:14px}.recordingsheading .savedheading{font-size:23px}.recordsearch{display:flex;align-items:center;flex:1;min-width:130px;border-radius:28px;background:#fff;padding:4px;border:1px solid #cbd8d1}.recordsearch input{width:100%;min-width:0;border:0!important;outline:none;background:#fff!important;color:#233e37!important;padding:8px 10px!important;font-size:16px!important;margin:0!important;border-radius:24px;appearance:none}.recordsearch input::-webkit-search-cancel-button{display:none}.recordsearch button{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;padding:8px;background:#234e48;color:#fff}.recordsearch button.clear{background:#f6dcd8;color:#b43530}.recordsearch svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.recordbatchtools{position:static;margin:0;flex-wrap:wrap;height:auto;background:transparent;gap:7px}.recordbatchtools button{font-size:14px;padding:10px 12px;min-height:46px}#bulkRecordingDeleteMode,#deleteSelectedRecordings{background:#b83f39;color:#fff}.recordbatchtools button[aria-pressed=true]{box-shadow:inset 0 0 0 3px #f1bc62}#bulkRecordingDeleteMode[aria-pressed=true]{background:#a52e2b;color:#fff}.recordselect.deletepick{background:#f6dedb;border-radius:50%}.recordselect.deletepick input{accent-color:#b83f39}.savedrecord[hidden]{display:none!important}.recordprocessing{font-size:14px;color:var(--muted)}.recordprocessing:empty{display:none}#recordingsSearchStatus{font-size:15px;color:var(--muted);margin:0 0 12px}#recordingsSearchStatus:empty{display:none}body:has(.recordingsheading) main{padding-top:98px!important}@media(max-width:1050px){.recordingsheading{flex-wrap:wrap;gap:10px}.recordingsheading .savedheading{font-size:21px}.recordsearch{order:3;flex-basis:100%}.recordbatchtools{margin-left:auto;flex-wrap:wrap}.recordingsheading{right:76px;left:76px}.recordbatchtools button{font-size:14px;padding:9px 12px}body:has(.recordingsheading) main{padding-top:160px!important}}@media(max-width:540px){.recordingsheading{gap:8px;left:14px;right:14px;top:76px}.recordingsheading .savedheading{width:100%;font-size:22px;padding:0}.recordbatchtools{position:static;left:auto;right:auto;top:auto;margin:0;flex-wrap:wrap;justify-content:flex-start}.recordsearch{flex-basis:100%;order:3}.recordbatchtools button{font-size:14px;padding:9px 12px}body:has(.recordingsheading) main{padding-top:256px!important}.savedrecordrow{flex-wrap:wrap}.savedrecordrow h2{flex-basis:calc(100% - 65px)}.recordtools{margin-left:auto}}

#bulkRecordingMode,#shareSelectedRecordings{background:#234e48;color:#fff}#bulkRecordingMode[aria-pressed=true]{background:#2f6b56}
/* Compact recording actions, with the search always between title and actions. */
.recordingsheading{flex-wrap:nowrap;gap:12px}.recordingsheading .recordsearch{order:0;flex:1;flex-basis:auto}.recordbatchtools{flex-wrap:nowrap;flex-shrink:0}.recordbatchtools button{padding:9px 10px;font-size:14px;min-height:43px;gap:6px}.recordbatchtools svg{width:21px;height:21px}.queueitem .editqueuedtitle{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#234e48;color:#fff;font-size:24px}.queueitem .removequeued{width:40px;height:40px;background:#f4d7d3;color:#af332d}.queueitem .removequeued svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.globalsearch .generatedheading{padding-right:260px;position:relative}.globalsearch #prepareAllIndexes{position:fixed;right:78px;top:14px;max-width:220px;min-height:48px;padding:9px 14px;border-radius:24px;background:#234e48;color:#fff;font-size:15px}.globalsearch .searchindexactions{margin:8px 0}.globalsearch #searchIndexSummary{margin:8px 0;font-size:14px}
@media(max-width:1050px){.recordingsheading{flex-wrap:wrap}.recordingsheading .savedheading{order:0}.recordingsheading .recordsearch{order:1;flex:1;min-width:170px}.recordingsheading .recordbatchtools{order:2;margin-left:0;width:100%;justify-content:flex-end}.recordbatchtools button{padding:8px 10px;font-size:14px}}
@media(max-width:540px){.recordingsheading{left:14px;right:14px;top:76px}.recordingsheading .savedheading{width:100%}.recordingsheading .recordsearch{order:1;flex-basis:100%}.recordingsheading .recordbatchtools{order:2;justify-content:flex-start;flex-wrap:wrap}.globalsearch .generatedheading{padding-right:0;padding-top:58px}.globalsearch #prepareAllIndexes{max-width:calc(100vw - 158px);font-size:14px;min-height:44px}.recordbatchtools button{padding:8px 9px}}
/* Interactive tour: the live control stays in the hole between four shields. */
#tutorialPortal{position:fixed;inset:0;margin:0;padding:0;border:0;width:100vw;height:100dvh;max-width:none;max-height:none;background:transparent;color:var(--ink,#243b37);overflow:visible;pointer-events:none;z-index:2147483647;font-family:system-ui,sans-serif}#tutorialPortal::backdrop{background:transparent;pointer-events:none}.tourshade{position:fixed;background:rgba(7,17,15,.67);pointer-events:auto;touch-action:none}.tourfocus{position:fixed;border:3px solid #e6b35c;border-radius:14px;box-shadow:0 0 0 3px #fff9,0 0 22px #f3c36f66;pointer-events:none;transition:left .16s,top .16s,width .16s,height .16s}.tourcard{position:fixed;pointer-events:auto;background:var(--surface,#fff);color:var(--ink,#243b37);border:1px solid var(--edge,#cbd8cf);padding:18px 20px;border-radius:20px;box-shadow:0 14px 50px #0007;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}.tourcard h2{font:700 21px/1.25 system-ui;margin:12px 0 10px;letter-spacing:0}.tourcard .tourtext{font:16px/1.5 system-ui;margin:0;white-space:pre-line}.tourtop{display:flex;justify-content:space-between;align-items:center;gap:12px}.tourprogress{font-size:14px;color:var(--muted,#52675f);font-variant-numeric:tabular-nums}.tourexit{padding:7px 12px;border-radius:16px;background:#f1d5d0;color:#9e302a;font-size:14px}.tourhint{font-size:14px;line-height:1.4;color:var(--muted,#52675f);margin:10px 0 0}.tourhint:empty{display:none}.tourbuttons{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:16px;flex-wrap:wrap}.tourbuttons button{font-size:15px;min-height:42px;padding:9px 14px;border-radius:21px;background:var(--control,#e5ece6);color:var(--ink,#243b37)}.tourbuttons .tournext{background:#234e48;color:white}.tourbuttons .tourback{margin-right:auto}.tourbuttons button:disabled{opacity:.4}.tourbuttons [hidden]{display:none!important}#tutorialWelcome{width:min(520px,calc(100vw - 28px));padding:28px}#tutorialWelcome h2{font-size:26px}#tutorialWelcome p{font-size:17px;line-height:1.6}.tutorialwelcomechoices{display:grid;gap:12px;margin-top:24px}.tutorialwelcomechoices button{min-height:52px;padding:13px;font-size:17px;border-radius:12px}.tutorialwelcomechoices .useapp{background:var(--control);color:var(--ink)}@media(max-width:480px){.tourcard{padding:14px 16px}.tourcard h2{font-size:19px}.tourcard .tourtext{font-size:15px}.tourbuttons{gap:6px}.tourbuttons button{font-size:14px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){.tourfocus{transition:none}}

.installwelcomehint{font-size:16px;line-height:1.6;color:var(--muted);max-width:670px;margin:0 0 24px}
.tourtop{position:sticky;top:0;z-index:2;background:var(--surface,#fff);padding:5px 0}
#tutorialWelcome{max-height:90dvh;overflow:auto;width:min(580px,calc(100vw - 28px))}#tutorialWelcome p{font-size:16px;line-height:1.6}
#releaseHistoryDialog{width:min(650px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:26px}.releaseheading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.releaseheading h2{margin:0;font-size:27px}.releaseheading .close{position:static;width:44px;height:44px;flex:none;line-height:1;padding:0;font-size:32px}.releaseintro,.releaseempty{font-size:16px;line-height:1.6;color:var(--muted)}.releaseitem{padding:18px 0;border-top:1px solid var(--edge)}.releaseitem h3{font-size:19px;line-height:1.4;margin:0 0 4px}.releaseitem time{font-size:14px;color:var(--muted)}.releaseitem ul{padding-left:22px;margin:12px 0 0}.releaseitem li{font-size:16px;line-height:1.55;margin:7px 0}.releaseokay{display:block;width:100%;min-height:49px;font-size:18px;margin-top:16px}

/* Guided actions stay inside the current lesson, including touch scrolling. */
body.tutorial-active{overflow:hidden!important;overscroll-behavior:none;user-select:none;-webkit-user-select:none}
body.tutorial-active #main{overflow:hidden!important;touch-action:none!important}
body.tutorial-active.tutorial-scroll-x #main{touch-action:pan-x!important}
body.tutorial-active #generatedStrip{touch-action:pan-x;overscroll-behavior:contain}
#tutorialPortal .tourmask{position:fixed;inset:0;background:rgba(7,17,15,.67);pointer-events:none}
#tutorialPortal .tourfocus{transition:none;pointer-events:none}
#tutorialPortal .tourcard{overscroll-behavior:contain;touch-action:pan-y}
#tutorialPortal .tourcard::before,#tutorialPortal .tourcard::after{display:none!important;content:none!important}
.queueitem .editqueuedtitle{margin-right:14px;flex-shrink:0}
.book[data-cover-tone="0"] .cover{background:#dfe8de}
.book[data-cover-tone="1"] .cover{background:#e9dfcd}
.book[data-cover-tone="2"] .cover{background:#dce5eb}
html[data-theme=dark] .book[data-cover-tone="0"] .cover{background:#263c33}
html[data-theme=dark] .book[data-cover-tone="1"] .cover{background:#42382c}
html[data-theme=dark] .book[data-cover-tone="2"] .cover{background:#293b49}
.checklist.hasbookreturn>.generatedheading{padding:0 68px 0 62px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:52px}
.checklist.hasbookreturn>.generatedheading>div{flex:1;min-width:120px}
.checklist.hasbookreturn #checklistReturnBook{position:static;flex-shrink:0;max-width:min(45vw,320px);margin-left:auto}
.checklist.hasbookreturn>.generatedheading h1{font-size:clamp(20px,3vw,32px);margin:0;overflow-wrap:anywhere}

/* Search and both batch actions share a single row at every viewport. */
.recordingsheading{display:grid;grid-template-columns:max-content minmax(80px,1fr) max-content;align-items:center;flex-wrap:nowrap;gap:8px;height:auto;min-height:48px}
.recordingsheading .savedheading{width:auto;max-width:none;order:0;margin:0;padding:0;white-space:nowrap}
.recordingsheading .recordsearch{order:0;width:100%;min-width:0;max-width:320px;justify-self:end;flex-basis:auto}
.recordingsheading .recordbatchtools{position:static;inset:auto;order:0;width:auto;flex-wrap:nowrap;gap:6px;margin:0;height:auto;justify-content:flex-end;background:transparent}
.recordingsheading .recordbatchtools button{min-height:44px;padding:8px;font-size:14px;gap:5px}
@media(max-width:700px){.recordingsheading .savedheading{font-size:19px}.recordingsheading .recordbatchtools button span{display:none}.recordingsheading .recordbatchtools button{width:42px;min-width:42px;padding:9px}.recordingsheading .recordsearch input{font-size:14px!important;padding:8px 6px!important}.recordingsheading .recordsearch button{width:34px;height:34px;padding:6px}}
@media(max-width:540px){.recordingsheading{top:76px;left:14px;right:14px;gap:6px;grid-template-columns:minmax(42px,80px) minmax(70px,1fr) max-content}.recordingsheading .savedheading{font-size:18px;overflow:hidden;text-overflow:ellipsis}.recordingsheading .recordbatchtools{gap:4px}.recordingsheading .recordbatchtools button{width:40px;min-width:40px;min-height:42px}.recordingsheading .recordsearch{max-width:none}}
.installpanel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin:0 0 24px;border:2px solid #ba802f;border-radius:20px;background:#fff0d8;color:#49341d;box-shadow:0 6px 22px #72450a16}
.installpanel strong{font-size:22px}.installpanel p{font-size:16px;line-height:1.5;margin:8px 0 0;max-width:580px}
.installpanel #install{display:flex;align-items:center;justify-content:center;flex:none;gap:12px;margin:0;padding:18px 24px;min-height:62px;border-radius:16px;background:#234e48;color:#fff;font-size:20px;font-weight:700;box-shadow:0 4px 12px #123a3628}
.installpanel #install svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html[data-theme=dark] .installpanel{background:#423627;color:#fff0d8;border-color:#cb984b}html[data-theme=dark] .installpanel #install{background:#31715b;color:#fff}
#installHelp{width:min(500px,calc(100vw - 28px))}#installHelp p{font-size:17px;line-height:1.6}
@media(max-width:740px){.installpanel{flex-direction:column;align-items:stretch;gap:16px;padding:20px}.installpanel #install{width:100%;font-size:21px;min-height:66px}.installpanel strong{font-size:21px}}
/* Keep the recording heading, search and bulk actions on one shared row. */
.recordingsheading{display:flex;flex-wrap:nowrap!important;gap:8px;height:50px;min-height:50px}
.recordingsheading .savedheading{order:0;flex:0 1 auto;width:auto;min-width:0;font-size:clamp(18px,2.1vw,23px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0}
.recordingsheading .recordsearch{order:1;flex:1 1 180px;flex-basis:180px;min-width:80px;max-width:310px;margin:0;padding:3px}
.recordingsheading .recordbatchtools{order:2;position:static;inset:auto;display:flex;flex:0 0 auto;flex-wrap:nowrap;width:auto;margin:0 0 0 auto;gap:7px;height:auto;justify-content:flex-end}
.recordingsheading .recordbatchtools button{padding:8px 10px;font-size:14px;min-height:44px}
.recordingsheading .recordsearch input{padding:7px 8px!important;font-size:15px!important}
.recordingsheading .recordsearch button{width:38px;height:38px}
@media(max-width:700px){.recordingsheading .savedheading{max-width:120px}.recordingsheading .recordbatchtools button{padding:8px;min-width:44px}.recordingsheading .recordbatchtools button span{display:none}.recordingsheading .recordbatchtools svg{width:24px;height:24px}}
@media(max-width:540px){.recordingsheading{left:14px;right:14px;top:76px;gap:6px}.recordingsheading .savedheading{max-width:80px;width:auto;font-size:18px}.recordingsheading .recordsearch{min-width:80px;flex:1 1 90px}.recordingsheading .recordbatchtools{gap:5px}.recordingsheading .recordbatchtools button{padding:7px;min-width:40px;min-height:42px}.recordingsheading .recordsearch input{font-size:14px!important;padding:7px 5px!important}}

@media(max-width:540px){.recordingsheading .savedheading{white-space:normal;line-height:1.15;text-overflow:clip}}

/* Short search leaves room for the recording title. */
.recordingsheading .savedheading{font-family:system-ui,sans-serif;font-size:clamp(23px,2.6vw,30px);font-weight:650;flex:0 0 auto;max-width:none;overflow:visible;white-space:nowrap}
.recordingsheading .recordsearch{flex:0 1 235px;flex-basis:235px;max-width:235px;min-width:90px}
.recordingsheading .recordsearch input{flex:1 1 0;width:0;min-width:0}
.recordingsheading .recordsearch button{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0;line-height:1}
.recordingsheading .recordsearch button svg{display:block;width:24px;height:24px;margin:0;padding:0;flex:none;transform:none}
@media(max-width:1050px){.recordingsheading .savedheading{font-size:25px}.recordingsheading .recordsearch{flex-basis:225px;max-width:225px}.recordingsheading .recordbatchtools button{padding:8px}}
@media(max-width:700px){.recordingsheading .savedheading{font-size:22px}.recordingsheading .recordsearch{flex:1 1 160px;max-width:220px}}
@media(max-width:540px){.recordingsheading .savedheading{font-size:21px;line-height:1.1;flex:0 0 105px;max-width:105px;white-space:normal}.recordingsheading .recordsearch{flex:1 1 140px;max-width:185px;min-width:70px}.recordingsheading .recordbatchtools{gap:4px}.recordingsheading .recordbatchtools button{min-width:38px;width:38px}}
.covercolorrow{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;font-size:17px}.covercolorrow button{padding:11px 16px;border-radius:12px;background:#234e48;color:#fff;font-size:16px}
#coverColorDialog{width:min(360px,calc(100vw - 28px));padding:22px;max-height:90dvh;overflow:auto}.colorpickerhead{display:flex;align-items:center;justify-content:space-between}.colorpickerhead h2{margin:0;font:650 23px system-ui}.colorpickerhead .close{float:none;padding:0;width:40px;height:40px;font-size:32px}
#coverColorPreview{height:65px;border:1px solid #8a9c91;border-radius:12px;margin:12px 0}.covercolorswatches{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin-bottom:18px}.covercolorswatches button{height:30px;border-radius:50%;border:1px solid #758778}
#coverColorDialog label{font-size:16px;margin-top:14px}#coverColorValue{width:100%;height:50px;padding:3px;margin:8px 0;border-radius:10px;cursor:pointer}#coverColorTransparency{width:100%;padding:0;height:30px;margin:10px 0;accent-color:#32715b}#coverColorPercent{float:right;font-variant-numeric:tabular-nums}.covercolorbuttons{display:flex;gap:10px;margin-top:18px}.covercolorbuttons button{flex:1;padding:12px 10px;border-radius:12px;font-size:16px}.covercolorbuttons #coverColorAuto{background:var(--control,#e5ece6);color:var(--ink,#234e48)}
.queueitem .editqueuedtitle{margin:0 16px 0 0;padding:0;display:flex;align-items:center;justify-content:center;line-height:1}
.queueitem{grid-template-columns:56px 65px minmax(100px,1fr) 58px 48px}.queueitem .editqueuedtitle{margin:0;justify-self:start}.queueitem .removequeued{margin:0;justify-self:end}
@media(max-width:540px){.queueitem{grid-template-columns:34px 48px minmax(60px,1fr) 56px 44px}}

.queueitem .editqueuedtitle svg{display:block;width:25px;height:25px;margin:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Half the tool gap, and a drag handle centred on the whole song row. */
.queueitem{grid-template-columns:56px 65px minmax(100px,1fr) 49px 44px}
.queueitem .dragqueue,html[data-theme=dark] .queueitem .dragqueue{align-self:center;justify-self:center;transform:none;margin:0;padding:0;display:grid;place-items:center;line-height:1}
.queueitem .dragqueue::before{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
@media(max-width:540px){.queueitem{grid-template-columns:34px 48px minmax(60px,1fr) 48px 42px}}

#queuePicker{width:min(490px,calc(100vw - 28px));padding:24px;max-height:90dvh;overflow:auto;border-radius:24px}
.queuepickerhead{display:flex;align-items:center;gap:12px;margin-bottom:20px}.queuepickermark{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;background:#d1e7e0;color:#234e48}.queuepickermark svg,.queuechoiceicon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#queuePicker .queuepickerhead h2{font:700 25px/1.2 system-ui;margin:0;min-height:0;flex:1}#queuePicker .queuepickerhead .close{float:none;flex:none;width:42px;height:42px;font-size:34px;color:var(--ink)}
.queuepickersong{display:flex;align-items:center;gap:12px;background:var(--control);border-radius:14px;padding:13px 15px}.queuepickersong>span{white-space:nowrap;font-size:17px;font-weight:750;color:var(--ink)}.queuepickersong strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.queuepickerhint{font-size:16px;color:var(--muted);margin:18px 0 12px}
#queueChoices{gap:10px}#queueChoices .queuechoice{position:relative;display:flex;align-items:center;gap:13px;min-height:83px;padding:15px;border:1px solid var(--edge);border-radius:17px;background:var(--surface);color:var(--ink);text-align:left}
#queueChoices .currentqueue{border-color:#5b9e86;background:color-mix(in srgb,var(--surface) 88%,#4d9d77)}.queuechoiceicon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--control);color:var(--ink)}.queuechoicetext{flex:1;min-width:0}.queuechoicetext strong{display:block;font-size:20px;line-height:1.3;overflow-wrap:anywhere}.queuechoicetext small{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:6px}.queuechoiceadd{display:grid;place-items:center;flex:none;background:#234e48;color:white;border-radius:50%;width:34px;height:34px;font-size:25px;line-height:1}.queuealready{font-size:13px;position:absolute;bottom:4px;right:15px}#queueChoices .queuechoice:disabled{opacity:.65}#queueChoices .queuechoice:not(:disabled):hover{border-color:#6fb99c;background:var(--control)}
#coverColorDialog{width:min(420px,calc(100vw - 28px))}.colorspectrum{position:relative;height:250px;margin:18px 0 22px;border-radius:15px;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;background:linear-gradient(to bottom,#fff,transparent 50%,#000),linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);border:1px solid #80948d;overflow:hidden}.spectrummarker{position:absolute;width:24px;height:24px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #000a,0 2px 6px #0006;transform:translate(-50%,-50%);pointer-events:none;box-sizing:border-box}
#coverColorValue[hidden],#coverColorValue[type=hidden]{display:none!important}
@media(max-width:420px){#queuePicker{padding:20px}#queuePicker .queuepickerhead h2{font-size:23px}.queuechoicetext strong{font-size:19px}.colorspectrum{height:230px}}
#queuePicker{width:min(500px,calc(100vw - 28px));padding:24px;max-height:85dvh;overflow:auto}
.queuepickerhead{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.queuepickerhead .queuepickermark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#d1e7e0;color:#234e48;flex:none}
.queuepickermark svg,.queuechoiceicon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#queuePicker .queuepickerhead h2{display:block;flex:1;min-height:0;margin:0;font:700 25px/1.2 system-ui}
#queuePicker .queuepickerhead .close{float:none;flex:none;width:42px;height:42px;font-size:32px;background:var(--control);border-radius:50%;color:var(--ink)}
.queuepickersong{display:flex;gap:12px;align-items:center;background:var(--control);padding:14px 16px;border-radius:14px}
.queuepickersong>span{flex:none;border-radius:9px;background:#234e48;color:#fff;padding:7px 10px;font:700 16px system-ui}
.queuepickersong strong{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.queuepickerhint{font-size:16px;color:var(--muted);margin:20px 0 12px}
#queueChoices{display:grid;gap:10px}
#queueChoices .queuechoice{display:grid;grid-template-columns:40px minmax(0,1fr) 34px;align-items:center;gap:12px;min-height:84px;text-align:left;padding:15px;border-radius:16px;border:2px solid var(--edge);background:var(--surface);color:var(--ink)}
#queueChoices .queuechoice.currentqueue{border-color:#5c9e83;background:color-mix(in srgb,#73b493 14%,var(--surface))}
#queueChoices .queuechoice:not(:disabled):hover{border-color:#3f8b6d;background:color-mix(in srgb,#73b493 24%,var(--surface))}
.queuechoiceicon{display:grid;place-items:center;width:40px;height:40px;color:#438264;background:color-mix(in srgb,#73b493 22%,var(--surface));border-radius:12px}
.queuechoicetext{min-width:0}.queuechoicetext strong{display:block;font-size:20px;line-height:1.3;overflow-wrap:anywhere}.queuechoicetext small{display:block;font-size:14px;line-height:1.4;color:var(--muted);margin-top:5px}
.queuechoiceadd{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#234e48;color:#fff;font-size:26px;line-height:1}
.queuealready{grid-column:2/-1;font-size:14px;color:var(--muted)}#queueChoices .queuechoice:disabled{opacity:.65}
@media(max-width:420px){#queuePicker{padding:20px}#queuePicker .queuepickerhead h2{font-size:22px}.queuechoicetext strong{font-size:19px}}

html[data-theme=dark] .queuechoiceicon{background:#74af9824;color:#a7dac6}

/* Unified page picker: the keypad on the left, large actions on the right. */
.numberbar #prevNumber,.numberbar #nextNumber{display:none!important}
#jump .numberbar{display:block;padding:0;gap:0}#jump .numberbar #number{width:100%;min-width:0;margin:0;text-align:center}
#jump #jumpform>.primary{min-height:72px;margin-top:14px;padding:20px 12px;font-size:22px;font-weight:650;border-radius:15px}
.gridview #inlineSearch{max-width:760px;margin:0 auto 26px;padding:24px;border:1px solid var(--edge);border-radius:23px;background:var(--surface);box-shadow:0 5px 20px #16392c08}
.pagepickerheading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.pagepickerheading h2{font:700 25px/1.2 system-ui;margin:0;color:var(--ink)}.pagepickerheading>span{font-size:15px;color:var(--muted);white-space:nowrap}
.gridview #inlineSearch #jumpform{display:grid;max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);grid-template-rows:auto 58px auto auto;gap:12px 24px;padding:0;margin:0;align-items:stretch}
.gridview #inlineSearch #jumpform>label{grid-column:1;grid-row:1;display:block;min-height:0;margin:0;padding:0;font-size:17px;align-self:center;line-height:1.3}
.gridview #inlineSearch #jumpform>.numberbar{display:block;grid-column:1;grid-row:2;align-self:stretch;justify-self:stretch;max-width:none;width:100%;min-width:0;margin:0;padding:0}
.gridview #inlineSearch #jumpform>.numberbar #number{width:100%;height:58px;min-width:0;margin:0;padding:8px 12px;border-radius:13px;background:var(--appbg);text-align:center;font-size:30px}
.gridview #inlineSearch #jumpform>#keypad{grid-column:1;grid-row:3/5;align-self:stretch;width:100%;margin:0;gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.gridview #inlineSearch #keypad button{height:52px;min-height:52px;padding:0;border-radius:12px;font-size:25px;background:var(--control);color:var(--ink)}
.gridview #inlineSearch #jumpform>.primary{grid-column:2;grid-row:1/3;align-self:stretch;justify-self:stretch;width:100%;height:100%;min-height:100px;margin:0;padding:18px 12px;border-radius:17px;background:#234e48;color:#fff;font-size:24px;font-weight:650;line-height:1.3}
.gridview #inlineSearch #jumpform>#queueButton{position:static;inset:auto;grid-column:2;grid-row:3/5;align-self:stretch;justify-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;min-height:140px;margin:0;padding:20px 12px;gap:14px;border-radius:17px;background:#234e48;color:#fff;font-size:27px;font-weight:650;line-height:1.3;box-shadow:none}
.gridview #inlineSearch #jumpform>#queueButton svg{width:45px;height:45px}
.gridview #inlineSearch #jumpform>#jumpError{grid-column:1/-1;grid-row:5;margin:0;min-height:0;font-size:15px}.gridview #inlineSearch #jumpError:empty{display:none}
.gridview .pages{border-top:1px solid var(--edge);padding-top:24px}
@media(max-width:600px){.gridview #inlineSearch{padding:18px;border-radius:19px}.pagepickerheading h2{font-size:23px}.pagepickerheading{margin-bottom:17px}.gridview #inlineSearch #jumpform{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 54px auto auto;gap:10px}.gridview #inlineSearch #jumpform>label{grid-column:1/-1;grid-row:1;font-size:16px}.gridview #inlineSearch #jumpform>.numberbar{grid-column:1/-1;grid-row:2;max-width:none;width:100%}.gridview #inlineSearch #jumpform>.numberbar #number{height:54px}.gridview #inlineSearch #jumpform>#keypad{grid-column:1/-1;grid-row:3;gap:7px}.gridview #inlineSearch #keypad button{height:46px;min-height:46px;font-size:24px}.gridview #inlineSearch #jumpform>.primary{grid-column:1;grid-row:4;min-height:76px;font-size:20px;padding:13px 8px}.gridview #inlineSearch #jumpform>#queueButton{grid-column:2;grid-row:4;flex-direction:row;gap:8px;min-height:76px;font-size:23px;padding:13px 8px}.gridview #inlineSearch #jumpform>#queueButton svg{width:30px;height:30px}}
.gridview #inlineSearch .pagepickerheading h2{display:block}

/* Equal-height actions alongside a continuous page-number keypad. */
#jump{max-height:90dvh;overflow:auto}
#jump #jumpform{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0}
#jump #jumpform>label{margin:0}#jump .numberbar{margin:0}#jump .numberbar #number{height:58px;font-size:30px}
#jump #keypad{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(58px,1fr));gap:8px;min-height:256px;margin:0}
#jump #keypad button{width:100%;height:100%;min-height:58px;padding:0;font-size:32px;line-height:1}
#jump #keypad button svg{display:block;width:31px;height:31px;margin:auto}
#jump #jumpform>.primary{flex:none;min-height:72px;margin:0;padding:18px 10px;font-size:23px}
#jump #jumpError:empty{display:none}#jump #jumpError{margin:0}
.gridview #inlineSearch #jumpform{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);grid-template-rows:repeat(3,minmax(0,1fr));align-items:stretch;gap:12px 24px}
.gridview #inlineSearch .pagepickerinput{grid-column:1;grid-row:1/4;display:flex;flex-direction:column;gap:11px;min-width:0}
.gridview #inlineSearch .pagepickerinput>label{display:block;margin:0;padding:0;min-height:0;font-size:17px;line-height:1.3}
.gridview #inlineSearch .pagepickerinput>.numberbar{display:block;width:100%;max-width:none;margin:0;padding:0}
.gridview #inlineSearch .pagepickerinput>.numberbar #number{width:100%;height:58px;margin:0;padding:8px 12px;border-radius:13px;font-size:30px;text-align:center}
.gridview #inlineSearch .pagepickerinput>#keypad{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(50px,1fr));gap:8px;margin:0;width:100%}
.gridview #inlineSearch .pagepickerinput>#keypad button{height:100%;min-height:50px;font-size:28px}
.gridview #inlineSearch .pagepickerinput>.primary{width:100%;min-height:72px;margin:0;padding:18px 10px;border-radius:15px;background:#234e48;color:white;font-size:23px;font-weight:650;line-height:1.25}
.gridview #inlineSearch .pagepickerinput>#jumpError{margin:0;min-height:0}.gridview #inlineSearch .pagepickerinput>#jumpError:empty{display:none}
.gridview #inlineSearch #jumpform>#queueButton{grid-column:2;grid-row:1;width:100%;height:100%;min-height:0;margin:0;padding:14px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border-radius:17px;background:#285b7b;color:#fff;font-size:25px}
.gridview #inlineSearch #jumpLists{display:contents}
.gridview #inlineSearch #jumpLists button{grid-column:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;min-height:0;margin:0;padding:14px 10px;border-radius:17px;background:#234e48;color:#fff}
.gridview #inlineSearch #jumpListPages{grid-row:2}.gridview #inlineSearch #jumpListTitles{grid-row:3}
.gridview #inlineSearch #jumpLists strong{font-size:22px;line-height:1.3}.gridview #inlineSearch #queueButton svg,.gridview #inlineSearch #jumpLists svg{display:block;flex:none;width:39px;height:39px}
.generatedchoices button[data-generated]{display:flex;align-items:center;justify-content:center;gap:18px}
.generatedchoices button[data-generated] .listtypeicon{display:block;flex:none;width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.generatedchoices .listtypeicon text{font:700 10px system-ui;fill:currentColor;stroke:none}.generatedchoices .listtypeicon .azicon{font-size:20px}
#jumpLists svg{display:block!important;flex:none}#jumpLists svg text{fill:currentColor;stroke:none}
@media(max-width:600px){#jump #keypad{grid-template-rows:repeat(4,minmax(50px,1fr));min-height:224px}#jump #keypad button{min-height:50px;font-size:29px}.gridview #inlineSearch #jumpform{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:10px 12px}.gridview #inlineSearch .pagepickerinput>label{font-size:15px}.gridview #inlineSearch .pagepickerinput>.numberbar #number{height:53px}.gridview #inlineSearch .pagepickerinput>#keypad{gap:6px;grid-template-rows:repeat(4,minmax(42px,1fr))}.gridview #inlineSearch .pagepickerinput>#keypad button{min-height:42px;font-size:24px}.gridview #inlineSearch .pagepickerinput>.primary{min-height:68px;font-size:19px;padding:12px 6px}.gridview #inlineSearch #jumpform>#queueButton{grid-column:2;grid-row:1;flex-direction:column;font-size:22px;padding:10px 6px}.gridview #inlineSearch #jumpLists button{padding:10px 7px;gap:8px}.gridview #inlineSearch #jumpLists strong{font-size:17px}.gridview #inlineSearch #queueButton svg,.gridview #inlineSearch #jumpLists svg{width:32px;height:32px}.generatedchoices button[data-generated]{gap:12px}.generatedchoices button[data-generated] .listtypeicon{width:38px;height:38px}}
.gridview #inlineSearch .pagepickerinput>label{text-align:left}

/* Compact picker title and a single horizontal queue label. */
.gridview #inlineSearch .pagepickerinput>label,.gridview #inlineSearch .pagepickerinput .numbercaption{font-size:21px;font-weight:750;text-align:left;justify-content:flex-start;align-self:flex-start;margin:0;line-height:1.25}
.gridview #inlineSearch #jumpform>#queueButton{flex-direction:row;gap:14px;font-size:32px;font-weight:750;white-space:nowrap}
.gridview #inlineSearch #queueButton svg{width:42px;height:42px}
.queuetabs #renameQueue{display:grid;place-items:center;width:48px;height:48px;padding:7px;background:#234e48;color:#fff;border-radius:50%}.queuetabs #renameQueue svg{display:block;width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.queueitem .editqueuedtitle svg{width:29px;height:29px}
#queueNameDialog{width:min(470px,calc(100vw - 28px));padding:24px;border-radius:23px}.queuenamehead{display:flex;align-items:center;gap:12px;margin-bottom:25px}.queuenameicon{display:grid;place-items:center;flex:none;width:45px;height:45px;border-radius:14px;background:color-mix(in srgb,#5a8ead 24%,var(--surface));color:var(--ink)}.queuenameicon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#queueNameDialog #queueNameHeading{flex:1;margin:0;min-width:0;font:700 24px/1.2 system-ui}.queuenamehead .close{float:none;flex:none;position:static;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;background:var(--control);font-size:31px}
#queueNameForm>label{font-size:16px;font-weight:600;margin-bottom:9px}#queueNameInput{display:block;width:100%;height:60px;margin:0;padding:12px 15px;border-radius:14px;font-size:23px}.queuenameactions{display:flex;gap:12px;margin-top:23px}.queuenameactions button{flex:1;padding:15px 10px;min-height:54px;font-size:18px;border-radius:14px}.queuenameactions #cancelQueueName{background:var(--control);color:var(--ink)}.queuenameactions .primary{width:auto;background:#234e48;color:#fff;box-shadow:none}
.colorspectrum .spectrummarker{width:72px;height:72px;border-width:4px;box-shadow:0 0 0 2px #000b,0 3px 10px #0006}
#renameDialog .covereditor{padding:20px;border:1px solid var(--edge);border-radius:19px;background:color-mix(in srgb,var(--control) 48%,var(--surface));margin-top:20px}
#renameDialog .covereditor>h3{font:700 20px system-ui;margin:0 0 18px}
#renameDialog .covereditbody{display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;align-items:center}
#renameDialog .coverchoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#renameDialog .coverchoices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:112px;margin:0;padding:14px 10px;border:1px solid var(--edge);border-radius:15px;background:var(--surface);color:var(--ink);font-size:16px;font-weight:600;text-align:center;line-height:1.3}
#renameDialog .coverchoices button[aria-pressed=true]{border-color:#458a70;box-shadow:inset 0 0 0 1px #458a70;background:color-mix(in srgb,#77b091 16%,var(--surface))}
.coverchoiceicon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--control)}.coverchoiceicon svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#renameDialog .covercolorrow{padding:15px;margin-top:18px;border:1px solid #7294aa;border-radius:15px;background:color-mix(in srgb,#4a80a0 16%,var(--surface));gap:14px}
.covercolortitle{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600}.covercolortitle svg{flex:none;display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7}.covercolorrow #coverColorButton{flex:none;background:#285b7b;min-height:46px;font-size:16px}
#coverDescription{margin:15px 0 0;font-size:14px}
@media(max-width:600px){.gridview #inlineSearch .pagepickerinput>label,.gridview #inlineSearch .pagepickerinput .numbercaption{font-size:18px}.gridview #inlineSearch #jumpform>#queueButton{flex-direction:row;font-size:26px;gap:9px}.gridview #inlineSearch #queueButton svg{width:32px;height:32px}#renameDialog .covereditor{padding:15px}#renameDialog .covereditbody{display:flex;flex-direction:column;gap:16px}#renameDialog .coverchoices{width:100%;gap:9px}#renameDialog .coverchoices button{min-height:108px;font-size:15px}#renameDialog .covercolorrow{flex-wrap:wrap;padding:13px;gap:12px}.covercolorrow #coverColorButton{width:100%}#queueNameDialog{padding:20px}#queueNameDialog #queueNameHeading{font-size:22px}}

@media(max-width:360px){.gridview #inlineSearch #jumpform>#queueButton{font-size:21px;gap:6px}.gridview #inlineSearch #queueButton svg{width:24px;height:24px}}

/* v114: keep the queue in its right column and restore its original pencil. */
.gridview #inlineSearch #jumpform>#queueButton{grid-column:2!important;grid-row:1!important;flex-direction:row!important;background:#285b7b;font-size:32px;gap:12px}
.queuetabs #renameQueue{display:grid;place-items:center;background:var(--control);color:var(--ink);border-radius:10px;font:700 35px/1 system-ui;width:48px;height:48px;padding:0}
#queueNameDialog .queuenamehead{align-items:center}#queueNameDialog .queuenamehead .close{display:flex;align-items:center;justify-content:center;line-height:1;font-family:Arial,sans-serif;height:44px;width:44px;padding:0;margin:0;align-self:center}
.colorspectrum .spectrummarker{background:repeating-conic-gradient(#fff 0% 25%,#b7b7b7 0% 50%) 50%/16px 16px;isolation:isolate;overflow:hidden}.colorspectrum .spectrummarker::after{content:"";position:absolute;inset:0;background:var(--selected-color,#000);opacity:var(--selected-opacity,1)}
#removeDialog,#removePagesDialog{width:min(490px,calc(100vw - 28px));padding:27px;border-radius:24px;box-sizing:border-box}#removeDialog .deleteheading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.deleteheading h2{margin:0;font-size:25px}.deleteemblem{display:grid;place-items:center;background:#f9ded9;color:#a6312d;border-radius:15px;min-width:52px;height:52px;font-size:30px}#removeName{padding:17px;border-radius:13px;background:var(--control);font-size:21px;font-weight:700;overflow-wrap:anywhere}#removeDialog .sub,#removePagesDialog p{font-size:16px;line-height:1.6}#removeDialog .dialogbuttons{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin:24px 0 18px}#removeDialog .dialogbuttons button,#confirmRemovePages{min-height:55px;border-radius:13px;font-size:18px}#removeDialog .danger,#removePagesDialog .danger{background:#ad3934;color:#fff}#removeSomePages{width:100%;padding:18px;text-align:center;border-radius:13px;border:1px solid #bf8e86;background:color-mix(in srgb,#bd6f61 10%,var(--surface));color:var(--ink);font-size:18px}#removePagesDialog h2{font-size:24px;padding-right:40px;margin-top:2px}#removePagesRange{height:61px;font-size:23px;border-radius:13px}#removePagesDialog label{font-size:18px;font-weight:700}#removePagesDialog .close{display:flex;align-items:center;justify-content:center;line-height:1;width:42px;height:42px;padding:0;border-radius:50%;font-family:Arial,sans-serif;background:var(--control)}
@media(max-width:600px){.gridview #inlineSearch #jumpform>#queueButton{font-size:25px;gap:8px}#removeDialog,#removePagesDialog{padding:21px}}
@media(max-width:360px){.gridview #inlineSearch #jumpform>#queueButton{font-size:20px;gap:6px}}

/* v115: category sidebar settings, existing controls retain their IDs and values. */
#settingsDialog{width:min(870px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;border-radius:24px;color:var(--ink);background:var(--surface);overflow:auto}
#settingsDialog .settingsheading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 28px;background:var(--surface);border-bottom:1px solid var(--edge)}#settingsDialog .settingsheading h2{margin:0;font-size:30px}#settingsDialog .settingsheading .close{position:static;float:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;margin:0;border-radius:50%;background:var(--control);font:34px/1 Arial;color:var(--ink)}
.settingslayout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:490px}.settingsnav{display:flex;flex-direction:column;gap:9px;padding:23px 13px;background:color-mix(in srgb,var(--control) 60%,var(--surface));border-right:1px solid var(--edge)}.settingsnav button{display:flex;align-items:center;gap:12px;min-height:59px;padding:13px;border-radius:12px;background:transparent;color:var(--ink);text-align:left;font-size:19px;font-weight:650}.settingsnav button[aria-selected=true]{background:#234e48;color:#fff}.settingsnav svg{width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.settingscontent{padding:27px;min-width:0}.settingssectiontitle{margin:0 0 21px;font-size:26px}#settingsDialog .settingline{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:19px 0;margin:0;border-bottom:1px solid var(--edge)}#settingsDialog .settingline h3,#settingsDialog .settingline>label{font-size:18px;margin:0;font-weight:650}#settingsDialog .settingline .settingaction{justify-self:start;min-height:46px;font-size:17px;padding:10px 19px;border-radius:11px}#settingsDialog [data-settings-panel][hidden]{display:none!important}#settingsDialog .themechoices,#settingsDialog .orientationchoices{justify-content:flex-start}#settingsDialog .intensitySlider{width:100%}.settingsappearancepreview{margin-top:26px;font-size:16px;color:var(--muted)}.settingsappearancepreview>div{margin-top:12px;padding:24px;border:1px solid var(--edge);border-radius:15px;background:var(--appbg);color:var(--ink)}.settingsappearancepreview strong{font-size:23px}.settingsappearancepreview p{font-size:17px}.previewchords{color:color-mix(in srgb,#b74925,#f7c975 var(--darkmix));font-weight:700;font-size:21px}
.queuetabs #renameQueue,.queuetabs #newQueue{display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:0;line-height:1}.queuetabs #renameQueue{font-size:31px}.queuetabs #newQueue{font-size:30px}.queuetabs #renameQueue,.queuetabs #newQueue{padding-bottom:3px}
.colorspectrum .spectrummarker{background:var(--appbg)}
@media(max-width:600px){#settingsDialog .settingsheading{padding:18px}#settingsDialog .settingsheading h2{font-size:25px}.settingslayout{grid-template-columns:114px minmax(0,1fr);min-height:420px}.settingsnav{padding:16px 7px;gap:8px}.settingsnav button{flex-direction:column;gap:6px;padding:11px 5px;font-size:15px;text-align:center;min-height:70px}.settingsnav svg{width:25px;height:25px}.settingscontent{padding:20px 14px}.settingssectiontitle{font-size:23px}#settingsDialog .settingline{padding:16px 0}#settingsDialog .themechoices,#settingsDialog .orientationchoices{gap:5px;flex-wrap:wrap}#settingsDialog .themechoices button,#settingsDialog .orientationchoices button{font-size:15px;padding:9px 10px}.settingsappearancepreview>div{padding:16px}.settingsappearancepreview strong{font-size:20px}}

/* v116: profile connection state. */
#sharedCreate.profileconnected{background:#c7e8c7;color:#214c35;opacity:1;font-weight:750;border:1px solid #8bb88f;cursor:default}#sharedDisconnect{border:1.5px solid #bc4b42;color:color-mix(in srgb,#a52d27,#ffb7ad var(--darkmix));background:transparent;border-radius:12px;min-height:48px;padding:12px 17px;font-size:17px}.sharedprofile>.profilebuttons{display:flex;flex-wrap:wrap;gap:12px}.sharedprofile #sharedProfileCode{font-variant-numeric:tabular-nums;letter-spacing:2px}.sharedprofile #sharedProfileCode:read-only{font-size:17px;letter-spacing:1px}#profileDialog .sharedprofile{display:flex;flex-wrap:wrap;gap:14px}#profileDialog .sharedprofile>.sharedidentityrow,#profileDialog .sharedprofile>.sub{width:100%;margin:0}#profileDialog .sharedprofile>.profilebuttons{flex:1;margin:0}#profileDialog #sharedDisconnect{align-self:flex-start}#sharedDisconnect[hidden],#sharedOpen[hidden]{display:none!important}

/* v117: profile connection and transfers live directly in the sidebar panel. */
#profileWorkspace{min-width:0}#profileWorkspace .sharedprofile{display:block;padding:0 0 24px;border:0;border-bottom:1px solid var(--edge);background:transparent}#profileWorkspace .sharedidentityrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,.48fr);gap:14px}#profileWorkspace .sharedidentityrow label{font-size:16px;font-weight:650;min-width:0}#profileWorkspace input:not([type=checkbox]),#profileWorkspace select{width:100%;min-width:0;height:53px;margin-top:8px;border:1px solid var(--edge);border-radius:12px;background:var(--appbg);color:var(--ink);padding:10px 12px;font-size:19px}#profileWorkspace #sharedProfileCode{font-size:23px;font-weight:800;letter-spacing:2px;text-align:center;padding:10px 5px}#profileWorkspace .sub{font-size:15px;line-height:1.6;color:var(--muted)}#profileWorkspace .profilebuttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}#profileWorkspace .profilebuttons button,#profileWorkspace #sharedDisconnect,#profileWorkspace #profileRefresh{padding:12px 16px;min-height:48px;border-radius:12px;font-size:16px;background:var(--control);color:var(--ink)}#profileWorkspace .profilebuttons .primary{background:#234e48;color:white}#profileWorkspace #sharedCreate.profileconnected{background:#c7e8c7;color:#214c35;border:1px solid #8bb88f;opacity:1;flex:1;font-weight:750}#profileWorkspace #sharedDisconnect{border:1.5px solid #bc4b42;background:transparent;color:color-mix(in srgb,#a52d27,#ffb7ad var(--darkmix));margin:0;white-space:nowrap}#profileWorkspace .sharedprofile{display:flex;flex-wrap:wrap;gap:13px}#profileWorkspace .sharedprofile>.sharedidentityrow,#profileWorkspace .sharedprofile>.sub{width:100%;margin:0}#profileWorkspace .sharedprofile>.profilebuttons{flex:1;margin:0}#profileWorkspace .profilebackup{padding:20px 0;margin-top:18px;border-top:1px solid var(--edge)}#profileWorkspace .profileidentity,#profileWorkspace .profilenamesection,#profileWorkspace #profileLocal,#profileWorkspace #profileSignedOut{display:none!important}#profileWorkspace #profileRemote{font-size:18px;font-weight:700;margin-bottom:7px}#profileWorkspace #profileRemoteDetails{font-size:16px;margin:0 0 19px;color:var(--muted)}#profileWorkspace .profilestatusrow{display:flex;align-items:center;gap:14px;margin-top:21px;padding-top:18px;border-top:1px solid var(--edge)}#profileWorkspace #profileStatus{flex:1;font-size:16px;line-height:1.5;margin:0}#profileWorkspace #profileRefresh{flex:none;font-size:15px}#profileWorkspace .profilefooter{margin-top:14px}#profileWorkspace .checkoption{display:flex;align-items:center;gap:10px;font-size:17px}#profileWorkspace .checkoption input{width:21px;height:21px;accent-color:#234e48}#profileWorkspace [hidden]{display:none!important}
@media(max-width:600px){#settingsDialog:has([data-settings-panel=profiles]:not([hidden])) .settingslayout{grid-template-columns:92px minmax(0,1fr)}#settingsDialog:has([data-settings-panel=profiles]:not([hidden])) .settingscontent{padding:18px 10px}#profileWorkspace .sharedidentityrow{grid-template-columns:minmax(0,1fr) 105px;gap:8px}#profileWorkspace #sharedProfileCode{font-size:20px;letter-spacing:1px}#profileWorkspace .sharedidentityrow label{font-size:14px}#profileWorkspace .profilestatusrow{flex-wrap:wrap}#profileWorkspace #profileStatus{flex-basis:100%}#profileWorkspace .profilebuttons button,#profileWorkspace #sharedDisconnect{font-size:14px;padding:11px 9px}}

#settingsDialog .settingline[hidden]{display:none!important}

#settingsDialog .settingssectiontitle{font-size:26px;font-weight:700;margin:0 0 21px}

#profileWorkspace #profileConnectedBadge{display:flex;align-items:center;justify-content:center;flex:1;min-height:48px;padding:12px 16px;border-radius:12px;border:1px solid #8bb88f;background:#c7e8c7;color:#214c35;font-size:17px;font-weight:750}#profileWorkspace #profileConnectedBadge[hidden]{display:none!important}

#settingsDialog .pedalinlineheading{font-size:21px;margin:0 0 18px}#settingsDialog .pedalsettings{padding:0;color:var(--ink)}#settingsDialog .pedalsettings p{font-size:17px;line-height:1.7}#settingsDialog .pedalsettings>div{display:flex;flex-wrap:wrap;gap:12px;margin:23px 0}#settingsDialog .pedalsettings button{flex:1;min-height:56px;padding:14px 18px;border-radius:13px;background:#234e48;color:#fff;font-size:18px}#settingsDialog #pedalStatus{padding:17px;background:var(--control);border-radius:13px;font-size:17px}#profileActionDialog{width:min(500px,calc(100vw - 28px));padding:25px;border-radius:23px;background:var(--surface);color:var(--ink)}.profileactionhead{display:flex;align-items:center;justify-content:space-between;gap:14px}.profileactionhead h2{margin:0;font-size:25px}.profileactionhead button{display:grid;place-items:center;flex:none;width:43px;height:43px;padding:0;background:var(--control);color:var(--ink);border-radius:50%;font:31px/1 Arial}#profileActionMessage{font-size:18px;line-height:1.65;margin:23px 0}.profileactionbuttons{display:flex;gap:12px}.profileactionbuttons button{flex:1;min-height:53px;border-radius:12px;padding:13px;font-size:18px;background:var(--control);color:var(--ink)}.profileactionbuttons .primary{background:#234e48;color:#fff}

/* Uploaded covers retain their own colours and alpha in both themes. */
html .cover img[data-cover-source=image],html #editCoverPreview img[data-cover-source=image]{filter:none!important;background:transparent!important;box-shadow:none!important}

/* Incoming books are invitations, separate from saved books and profile backups. */
#shareBookPanel .sharebookrow{grid-template-columns:minmax(0,1fr) auto;align-items:end}#shareBookPanel #shareBookButton{align-self:end;height:52px;font-size:17px}
.incomingbook{position:relative;border:2px solid #c6534b;border-radius:16px;overflow:hidden;background:var(--surface);color:var(--ink);user-select:none;min-width:0;align-self:stretch}.incomingcover{position:relative;min-height:285px;display:flex;align-items:center;justify-content:center;padding:15px;cursor:default}.incomingcover>img{max-width:80%;max-height:235px;object-fit:contain;opacity:.38;pointer-events:none}.incomingdisabled{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:9px}.incomingdisabled button{width:37px;height:37px;padding:8px;border-radius:50%;background:var(--control);color:var(--muted);opacity:.45;cursor:default}.incomingdisabled svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.incomingprompt{position:absolute;left:12px;right:12px;bottom:16px;z-index:1;padding:17px 12px;border-radius:14px;border:1px solid var(--edge);background:color-mix(in srgb,var(--surface) 96%,transparent);text-align:center;box-shadow:0 4px 18px #0002}.incomingprompt strong{display:block;font-size:18px;line-height:1.4}.incomingbuttons{display:flex;gap:9px;margin-top:15px}.incomingbuttons button{flex:1;min-height:46px;padding:10px 7px;border-radius:11px;font-size:17px;font-weight:700;color:#fff}.incomingbuttons .incomingaccept{background:#287052}.incomingbuttons .incomingreject{background:#b33e37}.incomingbuttons button:disabled{opacity:.55;cursor:default}.incomingstatus{font-size:14px;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}.incomingstatus:empty{display:none}.incomingprompt progress{display:block;width:100%;height:12px;margin-top:10px;border:0;border-radius:9px;overflow:hidden;accent-color:#378ed1;background:var(--control)}.incomingprompt progress[hidden]{display:none}.incomingprompt progress::-webkit-progress-bar{background:var(--control);border-radius:9px}.incomingprompt progress::-webkit-progress-value{background:#378ed1;border-radius:9px}.incomingprompt progress::-moz-progress-bar{background:#378ed1;border-radius:9px}.incominginfo{padding:18px}.incominginfo h3{font-size:18px;margin:0 0 9px;overflow-wrap:anywhere}.incominginfo p{font-size:14px;line-height:1.5;margin:0}.incominginfo small{display:block;margin-top:9px;font-size:14px;color:var(--muted)}

.transferprogressrow{display:flex;align-items:center;gap:10px;width:100%;margin-top:12px;min-width:0}.transferprogressrow[hidden]{display:none!important}.transferprogressrow progress,.incomingprompt .transferprogressrow progress{display:block;flex:1 1 0;width:0;min-width:0;height:12px;margin:0;border:0;border-radius:9px;overflow:hidden;accent-color:#378ed1;background:var(--control)}.transferprogressrow progress::-webkit-progress-bar{background:var(--control);border-radius:9px}.transferprogressrow progress::-webkit-progress-value{background:#378ed1;border-radius:9px}.transferprogressrow progress::-moz-progress-bar{background:#378ed1;border-radius:9px}.transferpercent{flex:0 0 4.5ch;white-space:nowrap;text-align:right;font-size:16px;font-weight:750;font-variant-numeric:tabular-nums;color:var(--ink);line-height:1.3}

/* v128: keep incoming offers inside the normal cover footprint. */
.books{align-items:start}.incomingbook{align-self:start;border-width:1px;border-radius:15px}.incomingcover{height:240px;min-height:0;padding:15px;overflow:hidden}.incomingcover>img{max-height:175px}.incomingdisabled{top:8px;right:8px;flex-direction:row;gap:6px}.incomingdisabled button{width:28px;height:28px;padding:6px}.incomingprompt{top:44px;bottom:8px;left:8px;right:8px;padding:10px;display:flex;flex-direction:column;gap:8px;overflow:hidden;border-radius:12px}.incomingprompt strong{font-size:16px;line-height:1.25;flex:none}.incomingbuttons{margin:0;gap:7px;flex:none}.incomingbuttons button{min-height:40px;padding:8px 5px;font-size:15px}.incomingstatus{font-size:14px;line-height:1.25;margin:0;max-height:2.5em;overflow:auto}.incomingprompt .transferprogressrow{margin-top:0;flex:none;gap:7px}.incomingprompt .transferpercent{font-size:15px}.incominginfo{padding:19px}.incominginfo h3{font-size:15px;line-height:normal;font-weight:700;margin:0 0 9px}.incominginfo p{font-size:11px;line-height:normal;color:var(--muted);margin:0}
@media(orientation:portrait) and (min-width:600px){.incominginfo{padding:16px}.incominginfo h3{font-size:14px}}
@media(max-width:599px){.incominginfo{padding:14px}.incomingprompt{padding:9px;gap:7px}.incomingprompt strong{font-size:15px}.incomingbuttons button{font-size:14px}.incomingstatus{font-size:14px}.incomingprompt .transferpercent{font-size:14px}}

/* v129: preview a PDF before committing anything to the library. */
#addDialog{width:min(680px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:25px;border-radius:24px;background:var(--surface);color:var(--ink)}.adddialoghead{display:flex;align-items:center;gap:12px;margin-bottom:23px}.adddocumenticon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--control);flex:none}.adddocumenticon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#addDialog .adddialoghead h2{font:700 25px/1.25 system-ui;margin:0;flex:1}#addDialog .adddialoghead .close{float:none;display:grid;place-items:center;flex:none;width:43px;height:43px;padding:0;border-radius:50%;font:31px/1 Arial;background:var(--control);color:var(--ink)}.addpickrow{display:flex;align-items:center;gap:17px;padding:17px;border-radius:15px;background:var(--control);margin-bottom:20px}.addpickrow>div{flex:1;min-width:0}.addpickrow strong{font-size:18px}.addpickrow p{font-size:15px;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere}.addpickrow button{min-height:47px;padding:12px 17px;border-radius:11px;background:#234e48;color:#fff;font-size:16px;font-weight:650;flex:none}.addempty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 23px;border:1px dashed var(--edge);border-radius:16px;color:var(--muted)}.addempty svg{width:61px;height:61px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.addempty p{font-size:17px;line-height:1.6;max-width:390px;margin:17px 0 0}.addpreview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:center}.addpreviewimage{height:250px;display:flex;align-items:center;justify-content:center;padding:12px;background:var(--control);border-radius:14px}.addpreviewimage img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 3px 12px #0002}.addpreviewdetails h3{font-size:22px;line-height:1.35;margin:0 0 17px;overflow-wrap:anywhere}.addpreviewdetails dl{display:grid;grid-template-columns:auto 1fr;gap:13px 18px;font-size:16px;margin:0}.addpreviewdetails dt{color:var(--muted)}.addpreviewdetails dd{margin:0;font-weight:700;overflow-wrap:anywhere}.addpreviewdetails p{font-size:15px;line-height:1.6;color:var(--muted);margin:20px 0 0}#addStatus{font-size:16px;font-weight:650;margin:20px 0 0}#addStatus:empty,#addError:empty{display:none}#addError{font-size:16px;line-height:1.5;color:color-mix(in srgb,#a52d27,#ffb7ad var(--darkmix))}.addactions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:24px;padding-top:20px;border-top:1px solid var(--edge)}#addDialog .addactions button{min-height:55px;font-size:20px;font-weight:650;padding:13px;border-radius:13px}#addDialog .adddiscard{background:color-mix(in srgb,#edb5ac 34%,var(--surface));border:1px solid #d59e95;color:color-mix(in srgb,#983f35,#ffd0c7 var(--darkmix))}#addDialog [hidden]{display:none!important}
@media(max-width:520px){#addDialog{padding:19px}.addpickrow{padding:13px;gap:10px}.addpickrow button{padding:11px;font-size:15px}.addpreview{grid-template-columns:105px minmax(0,1fr);gap:15px}.addpreviewimage{height:175px;padding:8px}.addpreviewdetails h3{font-size:18px}.addpreviewdetails dl{font-size:14px;gap:10px}.addpreviewdetails p{font-size:14px;margin-top:14px}#addDialog .adddialoghead h2{font-size:22px}.adddocumenticon{width:37px;height:40px}.addactions{gap:10px}}

#profileRemoteDetails{white-space:pre-line;line-height:1.7}

.transposework{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;align-items:start}.capomodes{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}.capomodes button{white-space:normal!important;line-height:1.3}.pagetranspose{padding:12px;border:1px solid var(--edge);border-radius:15px;background:var(--control)}.pagetranspose label{display:block;font-size:16px}.pagetranspose select{width:100%;font-size:22px;margin:8px 0;padding:9px}.pagetranspose button{width:100%;min-height:48px;font-size:17px}.pagetranspose p{font-size:15px;margin:7px 0 0}#pageTransposeReset{position:fixed;right:155px;top:max(14px,env(safe-area-inset-top));max-width:180px;min-height:58px;padding:8px 13px;border-radius:18px;background:#c8e7c8;color:#183d30;font-size:15px;z-index:16}#pageTransposeReset[hidden]{display:none!important}.focusmode #pageTransposeReset{display:none!important}@media(max-width:550px){.transposework{gap:8px}.pagetranspose{padding:8px}.pagetranspose button{font-size:15px}#pageTransposeReset{right:145px;max-width:120px;font-size:13px}}

.transposeoriginal .capomodes{margin:10px 0 0}.transposeoriginal .capomodes button{font-size:15px;min-height:65px;padding:9px}.transposeoriginal #transposeResult{margin-top:0}#pageTransposeReset{line-height:1.25}

#transposeDialog{width:min(820px,calc(100vw - 28px));padding:24px;border-radius:25px;box-shadow:0 22px 80px #102b2833}#transposeDialog .transposehead{align-items:center;padding-bottom:14px;border-bottom:1px solid var(--edge)}#transposeDialog .transposehead h2{font-size:28px;font-weight:750;margin:0}#transposeDetection{margin:12px 0 18px;font-size:15px;line-height:1.5}.transposework{gap:16px;align-items:stretch}.transposeoriginal,.pagetranspose{min-width:0;padding:17px;border:1px solid var(--edge);border-radius:18px;background:var(--control)}.pagetranspose{background:color-mix(in srgb,var(--control) 80%,#c89966 20%)}#transposeDialog .transposecardtitle{font:750 17px system-ui;margin:0 0 16px;color:var(--ink)}#transposeDialog .capoinputs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px!important;margin:0 0 13px}#transposeDialog .capoinputs label{font-size:15px}#transposeDialog #transposeFrom,#transposeDialog #transposeCapo{width:100%;min-width:0;height:49px;font-size:20px;margin-top:6px;background:var(--surface)}.transposeoriginal #transposeResult{margin:0;padding:11px 0;font-size:18px;background:transparent}.transposeoriginal .capomodes{gap:8px;margin:8px 0 0}.transposeoriginal .capomodes button{font-size:15px;font-weight:650;padding:9px 6px;border:1px solid var(--edge);background:var(--surface)}.transposeoriginal .capomodes button[aria-pressed="true"]{background:#234e48;color:white}.targetchordfield{position:relative;margin:10px 0 15px}.pagetranspose #pageTransposeTarget{display:flex;align-items:center;justify-content:space-between;background:var(--surface);color:var(--ink);height:57px;border:1px solid var(--edge);font-size:27px;font-weight:750;padding:10px 14px}.pagetranspose #pageTransposeTarget svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.pagetranspose #applyPageTranspose{font-size:19px;font-weight:700;min-height:56px;border-radius:13px}.targetchordpicker{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:9;padding:14px;border:1px solid var(--edge);border-radius:17px;background:var(--surface);box-shadow:0 12px 35px #0003}.targetchordpicker[hidden]{display:none!important}.targetchordpicker h3{font:650 15px system-ui;margin:0 0 12px}.targetchordpicker .chordchoices,#transposeDialog #chordPicker .chordchoices{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.targetchordpicker .chordchoices button,#transposeDialog #chordPicker .chordchoices button{font-size:22px;font-weight:750;min-height:48px;padding:8px 0}.targetchordpicker button[aria-pressed="true"]{background:#234e48;color:white;box-shadow:inset 0 0 0 2px #87bc8c}#transposeDialog #fretboardHeading{margin-top:23px}#transposeDialog .caponote{font-size:13px}@media(max-width:600px){#transposeDialog{padding:17px}.transposework{grid-template-columns:1fr}.transposeoriginal,.pagetranspose{padding:14px}#transposeDialog .capomodes button{min-height:49px}#transposeDialog .transposehead h2{font-size:25px}.targetchordpicker .chordchoices button{min-height:53px;font-size:24px}}

.pagetranspose #pageTransposeTarget{border-radius:12px}
/* Guitar Pro notation pilot */
.trebleclef{font-family:'Bravura', 'Noto Music','Segoe UI Symbol',serif;display:grid;place-items:center;font-size:48px;line-height:1}#openNotation>.trebleclef{font-size:52px;width:100%;height:100%;padding-top:2px}#openNotation .bubblelabel{display:block}#addNotation{display:flex;align-items:center;gap:7px;background:#e0eee5;color:#234e48;min-height:43px;padding:6px 12px;border-radius:16px;font-size:16px;margin-left:auto}#addNotation .trebleclef{font-size:32px}.scorebook .notationcover{background:#d7e6d8;cursor:pointer}.notationcover>.trebleclef{font-size:150px;color:#234e48}.notationlibrary{padding:0 20px 40px}.notationlibraryhead{display:flex;align-items:center;gap:16px;margin:10px 75px 25px 0}.notationlibraryhead h1{font-size:27px;flex:1}.notationhome{width:58px;height:58px;padding:11px;background:#234e48;color:white;border-radius:50%}.notationhome svg{width:35px;height:35px;stroke:currentColor;fill:none;stroke-width:1.8}.notationlibraryhead>button:last-child{padding:12px 18px;border-radius:14px}.notationrow{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:10px;border:1px solid var(--edge);background:var(--control);border-radius:18px}.notationopen{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;background:transparent;color:var(--ink);padding:0}.notationopen strong{display:block;font-size:20px;overflow-wrap:anywhere}.notationopen small{display:block;font-size:14px;margin-top:5px;color:var(--muted)}.notationopen .trebleclef{font-size:42px}.notationassign{font-size:16px;border-radius:13px;background:#cde6d6;color:#234e48;padding:12px}.notationrename,.notationtrash{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;padding:10px}.notationrename{background:#cde4ef;color:#224c61}.notationtrash{background:#f5d9d5;color:#a13830}.notationrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2}#notationVeil{position:fixed;inset:0;z-index:35;display:flex;align-items:center;justify-content:center;background:#11241d35;padding:18px;box-sizing:border-box}#notationVeil[hidden]{display:none!important}#notationPaper{width:min(950px,95vw);max-height:85dvh;background:white;color:#111;border-radius:8px;box-shadow:0 16px 60px #0005;overflow:hidden;display:flex;flex-direction:column}#notationDrag{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #d7dfd9;background:#f4f6f1;touch-action:none;cursor:grab;user-select:none}#notationDrag strong{font-size:19px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notationdragmark{font-size:30px;color:#7d8c80}#notationTranspose{background:#dec9ac;color:#473725;border-radius:13px;padding:11px 14px;font-size:16px}#notationClose{background:#e5e9e2;color:#345044;border-radius:50%;width:43px;height:43px;font-size:30px;line-height:1;padding:0}#notationScroll{overflow:auto;overscroll-behavior:contain;padding:5px 12px;min-height:90px}#notationRender{min-width:250px}#notationStatus{padding:7px 12px;color:#516357;font-size:16px}#notationStatus:empty{display:none}#notationOptions,#notationEdit{width:min(660px,92vw);padding:24px;border-radius:22px;max-height:85dvh;overflow:auto}.notationdialoghead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.notationdialoghead h2{margin:0;font-size:24px}.notationdialoghead .close{position:static;width:44px;height:44px;line-height:1;padding:0}#notationOptionsForm{display:grid;gap:18px}#notationOptionsForm label{display:block;font-size:17px;font-weight:650}#notationOptions select,#notationName,#notationAssignQuery{display:block;width:100%;font-size:20px;padding:12px;border-radius:12px;border:1px solid var(--edge);background:var(--control);color:var(--ink);margin-top:7px;box-sizing:border-box}#notationOptionsForm>.primary,#notationRename>.primary{padding:14px;border-radius:14px;font-size:20px}.notationbuttons{display:flex;gap:12px;margin-top:20px}.notationbuttons button{flex:1;padding:13px;border-radius:13px;font-size:17px}#notationAssignRows{max-height:45vh;overflow:auto}.notationassignrow{display:flex;gap:12px;align-items:center;padding:13px;border-bottom:1px solid var(--edge);font-size:17px}.notationassignrow input{width:22px;height:22px;flex:none}#notationPick{display:grid;gap:10px}#notationPick button{padding:14px;border-radius:12px;font-size:19px;background:var(--control);color:var(--ink)}@media(max-width:600px){.notationlibrary{padding:0 5px}.notationlibraryhead{gap:8px;margin-right:55px;flex-wrap:wrap}.notationlibraryhead h1{font-size:22px}.notationrow{gap:8px;flex-wrap:wrap}.notationopen{flex-basis:calc(100% - 120px)}.notationassign{order:2;width:100%;padding:9px}.notationrow .trebleclef{font-size:36px}#notationVeil{padding:6px}#notationDrag{gap:6px;padding:8px}#notationTranspose{font-size:14px;padding:10px}#addNotation{font-size:14px;padding:5px 9px}}
@font-face{font-family:Bravura;src:url('./vendor/alphatab/font/Bravura.woff2') format('woff2');font-display:swap}
svg.trebleclef{display:block;width:29px;height:48px;overflow:visible;flex:none}.notationcover>svg.trebleclef{width:94px;height:176px;margin:auto}#openNotation>svg.trebleclef{display:block;width:30px;height:43px;margin:auto;padding:0}#addNotation>svg.trebleclef{width:19px;height:30px}.notationopen>svg.trebleclef{width:24px;height:43px}
#openNotation[hidden]{display:none!important}.notationmanualpage{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;align-items:end;gap:10px;margin:17px 0}.notationmanualpage label{font-size:15px}.notationmanualpage select,.notationmanualpage input{display:block;box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid var(--edge);border-radius:10px;background:var(--control);color:var(--ink);font-size:17px;margin-top:7px}.notationmanualpage button{padding:11px;border-radius:11px;font-size:16px;background:#234e48;color:white}@media(max-width:550px){.notationmanualpage{grid-template-columns:minmax(0,1fr) 80px}.notationmanualpage button{grid-column:1/-1}}
/* Roomy chord tables: minor and sharp names keep their full labels. */
#transposeDialog{width:min(920px,calc(100vw - 28px));box-sizing:border-box}
#transposeDialog #chordPicker,#transposeDialog .targetchordpicker{width:min(440px,calc(100vw - 90px));max-width:none;box-sizing:border-box;padding:16px}
#transposeDialog #chordPicker{left:0;right:auto}
#transposeDialog .targetchordpicker{left:auto;right:0}
#transposeDialog #chordPicker .chordchoices,#transposeDialog .targetchordpicker .chordchoices{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#transposeDialog #chordPicker .chordchoices button,#transposeDialog .targetchordpicker .chordchoices button{min-height:56px;padding:8px 3px;font-size:24px;white-space:nowrap;line-height:1.2}
#transposeDialog #chordPicker h3,#transposeDialog .targetchordpicker h3{font-size:16px}
#notationOptions{width:min(780px,calc(100vw - 28px));box-sizing:border-box;overflow:visible}
#notationSource{margin:0;padding:12px 15px;border-radius:12px;background:var(--control);font-size:18px;font-weight:650}
.notationoptionfields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.notationoptionfield{position:relative;min-width:0}
.notationchoice{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:65px;margin-top:8px;padding:12px 15px;background:var(--control);color:var(--ink);border:1px solid var(--edge);border-radius:13px;font-size:22px;font-weight:700;text-align:left;box-sizing:border-box}
.notationchoice svg{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
.notationchoicepicker{position:absolute;top:calc(100% + 8px);z-index:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(390px,calc(100vw - 70px));padding:13px;box-sizing:border-box;border:1px solid var(--edge);border-radius:16px;background:var(--surface);box-shadow:0 12px 35px #0003;max-height:50dvh;overflow:auto}
.notationchoicepicker[hidden]{display:none!important}
#notationKeyPicker{left:0}#notationOctavePicker{right:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.notationchoicepicker button{padding:10px 3px;min-height:55px;min-width:0;white-space:nowrap;border-radius:10px;background:var(--control);color:var(--ink);font-size:21px;font-weight:750;line-height:1.2}
.notationchoicepicker button[aria-pressed="true"]{background:#234e48;color:white;box-shadow:inset 0 0 0 2px #87bc8c}
.notationoriginalkey{grid-column:1/-1}
#notationOctavePicker button{font-size:27px}
#notationOptionsError:empty{display:none}
@media(max-width:500px){#notationOptions{padding:17px}.notationoptionfields{gap:10px}.notationchoice{font-size:18px;padding:10px;min-height:68px}.notationchoicepicker button{font-size:20px}#notationOptionsForm label{font-size:15px}#transposeDialog #chordPicker .chordchoices button,#transposeDialog .targetchordpicker .chordchoices button{font-size:22px}}
.notationchoicepicker.above{top:auto;bottom:calc(100% + 8px)}
#appUpdateStatus{grid-column:1/-1;flex-basis:100%;width:100%;margin:5px 0 0;font-size:16px;line-height:1.5;color:var(--muted)}#appUpdateStatus:empty{display:none}#checkAppUpdate{white-space:normal;min-width:150px}
/* A compact pair of cards for notation transposition. */
#notationOptions{width:min(560px,calc(100vw - 28px));padding:22px;border-radius:23px;box-shadow:0 20px 70px #102b2840}
#notationOptions .notationdialoghead{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--edge)}
#notationOptions .notationdialoghead h2{font:750 25px system-ui}
#notationOptions #notationSource{background:transparent;padding:0 2px;font-size:16px;color:var(--muted);font-weight:600}
#notationOptions .notationoptionfields{gap:12px}
#notationOptions .notationoptionfield{padding:12px;border:1px solid var(--edge);border-radius:16px;background:var(--control)}
#notationOptions .notationoptionfield label{font-size:16px;font-weight:700}
#notationOptions .notationchoice{min-height:62px;padding:10px 12px;margin-top:10px;background:var(--surface);font-size:20px;border-radius:11px}
#notationOptions .notationchoicepicker{top:calc(100% + 6px);width:min(350px,calc(100vw - 70px))}
#notationOptions .notationchoicepicker.above{top:auto;bottom:calc(100% + 6px)}
#notationOptionsForm>.primary{min-height:55px;font-weight:750;font-size:19px}
@media(max-width:450px){#notationOptions{padding:16px}#notationOptions .notationoptionfield{padding:9px}#notationOptions .notationchoice{font-size:17px;padding:9px}#notationOptions .notationoptionfield label{font-size:14px}}
.pagetranspose #highlightOriginalChords{width:100%;margin-top:12px;min-height:43px;padding:10px 12px;border:1px solid var(--edge);border-radius:12px;background:color-mix(in srgb,var(--surface) 72%,transparent);color:var(--muted);font-size:16px;font-weight:600;line-height:1.35}.pagetranspose #highlightOriginalChords:hover{color:var(--ink);background:var(--surface)}
#notationEdit.notationrenameedit{width:min(520px,calc(100vw - 28px));box-sizing:border-box;padding:23px;border-radius:23px;box-shadow:0 22px 70px #102b2840}#notationEdit.notationrenameedit .notationdialoghead{padding-bottom:15px;margin-bottom:17px;border-bottom:1px solid var(--edge)}#notationEdit.notationrenameedit h2{font:750 24px system-ui}#notationRename{display:grid;gap:10px}.notationrenamesummary{display:flex;align-items:center;gap:16px;min-width:0;background:var(--control);border-radius:15px;padding:15px;margin-bottom:9px}.notationrenamesummary .trebleclef{width:27px;height:53px;flex:none}.notationrenamesummary span{min-width:0}.notationrenamesummary strong{display:block;font-size:20px;overflow-wrap:anywhere}.notationrenamesummary small{display:block;margin-top:5px;font-size:14px;color:var(--muted)}#notationRename label{font-size:16px;font-weight:650}#notationRename #notationName{margin:0;min-height:57px;padding:13px 15px;font-size:22px;background:var(--surface);border:1px solid var(--edge);border-radius:12px}#notationName:focus-visible{outline:2px solid #568979;outline-offset:2px}.notationrenameactions{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:12px;margin-top:10px}.notationrenameactions button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:51px;padding:12px;border-radius:12px;font-size:18px;font-weight:650}.notationrenameactions button:not(.primary){background:var(--control);color:var(--ink)}.notationrenameactions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2}#notationRenameError{color:#b34236;margin:0;font-size:15px}#notationRenameError:empty{display:none}
#diagnosticsDialog{width:min(760px,94vw);max-height:90dvh}.diagnostichead{display:flex;align-items:center;justify-content:space-between;gap:18px}.diagnostichead h2{margin:0}.diagnostichead .close{position:static;flex:0 0 50px;width:50px;height:50px;display:grid;place-items:center;font-size:36px;line-height:1}.diagnosticintro,.diagnosticnote{line-height:1.55}.diagnosticnote{font-size:15px;opacity:.8}.diagnosticactions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.diagnosticactions button{min-height:50px;padding:12px 18px;border-radius:14px;background:color-mix(in srgb,#e9efe6,var(--ink) 4%);color:var(--ink)}.diagnosticactions .primary{background:#234e48;color:#fff}.diagnosticactions .diagnosticclear{background:color-mix(in srgb,#d67c70 18%,transparent);color:var(--ink)}#diagnosticsStatus{padding:14px;border-radius:14px;background:color-mix(in srgb,#4f9579 13%,transparent);line-height:1.5}#diagnosticsDialog summary{cursor:pointer;font-weight:650;padding:12px 0}#diagnosticsPreview{font-size:13px;line-height:1.55;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:color-mix(in srgb,var(--ink) 5%,transparent);padding:14px;border-radius:12px;user-select:text}
/* Temporary release-148 chord inspection controls. */
.reader header:has(#chordReviewButton){grid-template-columns:58px 58px 58px}.reader #chordReviewButton,.reader #chordReviewMark{display:grid;place-items:center;width:58px;height:58px;padding:0;min-height:58px;border-radius:50%;background:#e9cf9d;color:#503913;font-size:16px;font-weight:800;border:1px solid #aa863f55}.reader #chordReviewButton[aria-pressed=true]{background:#b9dfc6;color:#184c33}.reader #chordReviewMark{grid-column:1;grid-row:2;background:#f2d4cc;color:#913d2d}.reader #chordReviewMark svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8}.reader #chordReviewMark[aria-pressed=true]{background:#b44a34;color:white}.reader #chordReviewButton[hidden],.reader #chordReviewMark[hidden]{display:none!important}.reader header:has(#chordReviewButton) #transposeButton{grid-column:2;grid-row:1}.reader header:has(#chordReviewButton) #headerSettings{grid-column:3;grid-row:1}.reader header:has(#chordReviewButton) #readerZoom{grid-column:3;grid-row:2}.reader:has(#chordReviewButton) #pageTransposeReset{top:148px;right:14px;max-width:192px}.focusmode #chordReviewButton,.focusmode #chordReviewMark{display:none!important}.chord-review-marking #main canvas{cursor:crosshair!important}.chord-review-dot{position:absolute;z-index:4;pointer-events:none;transform:translate(-50%,-50%);width:27px;height:27px;border:2px solid white;border-radius:50%;background:#c93d31;color:white;display:grid;place-items:center;font:700 14px system-ui;box-shadow:0 0 0 2px #c93d31}#chordReviewDialog{width:min(640px,94vw)}#chordReviewDialog p{line-height:1.5}.reviewchoices{display:flex;gap:12px}.reviewchoices button{flex:1;min-height:52px;border-radius:14px;background:var(--control);color:var(--ink);font-size:19px}.reviewchoices button[aria-pressed=true]{background:#234e48;color:white}#reviewExport{padding:14px 20px;border-radius:15px;font-size:18px}
/* Keep the page and recorder readable while notation is open. */
#notationVeil{background:#11241d0a;padding-top:86px}#notationPaper{max-height:calc(100dvh - 110px)}.notation-open #recordPanel{z-index:45}.notationdensity{display:flex;align-items:center;gap:1px;flex:none;background:#e7ecdf;border-radius:18px;padding:3px;color:#234e48}.notationdensity button{display:grid;place-items:center;width:38px;height:42px;background:transparent;color:inherit;font-size:36px;line-height:1;border-radius:15px;padding:0}.notationdensity button:disabled{opacity:.3}.notationdensity output{font:700 17px system-ui;min-width:22px;text-align:center}#notationAutomatic{padding:12px 14px;margin:0;border-radius:13px;background:#d9eadf;color:#234e48;font-size:16px;line-height:1.5}#notationAutomatic[hidden]{display:none}#notationDrag{flex-wrap:wrap}#notationDrag strong{min-width:80px}#notationClose{margin-left:auto}body.notation-open #recordPanel{filter:none;opacity:1}@media(max-width:550px){#notationDrag strong{flex-basis:calc(100% - 90px)}.notationdragmark{display:none}#notationClose{order:-1;margin-left:0}#notationVeil{padding-top:150px}#notationPaper{max-height:calc(100dvh - 170px)}}
/* Recording key snapshot and its isolated song reader. */
.recordkey{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:48px;min-height:45px;padding:7px 12px;border-radius:22px;background:#dbeadf;color:#204e44;font-size:19px;font-weight:750;white-space:nowrap}.recordmusicsummary{font-size:18px;font-weight:700;color:var(--ink);background:var(--control);padding:12px 16px;border-radius:12px;margin:12px 0}.recordplayrow .audio-player{flex:1;min-width:100px}#practiceMusic[hidden],#practiceNotation[hidden]{display:none!important}.loading{display:block;padding:30px;text-align:center;color:var(--ink)}.loading[role=status]::before{content:'';display:inline-block;width:20px;height:20px;border:3px solid var(--edge);border-top-color:#31776c;border-radius:50%;margin-right:12px;vertical-align:middle;animation:loadspin .9s linear infinite}@keyframes loadspin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading[role=status]::before{animation:none}}

.practiceplayrow{display:flex;align-items:center;gap:10px}.practiceplayrow .audio-player{flex:1;min-width:90px}.practiceplayrow #practiceMusic,.practiceplayrow #practiceNotation{position:static;box-shadow:none;max-width:140px;flex-shrink:0}.practiceplayrow #practiceNotation{font-size:34px;width:45px;height:45px}.practiceplayrow #practiceMusic{font-size:18px;min-width:48px;max-width:85px}.recordmusicsummary{float:right;max-width:45%;margin:8px 0 8px 12px}#recordSaveInfo{overflow:hidden}#recordSaveError{clear:both}

#recordSaveInfo{display:flex;gap:12px;align-items:center;justify-content:space-between}#recordSaveMusic{float:none;max-width:none;margin:0;padding:0;background:transparent;flex-shrink:0;font-size:16px;text-align:right}@media(max-width:520px){#recordSaveInfo{flex-wrap:wrap}#recordSaveMusic{text-align:left}}
/* Review tools and recording notes are centered independently of the header. */
.reader header:has(#chordReviewButton){grid-template-columns:58px 58px}.reader header:has(#chordReviewButton) #transposeButton{grid-column:1;grid-row:1}.reader header:has(#chordReviewButton) #headerSettings{grid-column:2;grid-row:1}.reader header:has(#chordReviewButton) #readerZoom{grid-column:2;grid-row:2}.reader #chordReviewButton,.reader #chordReviewMark{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:calc(50% - 29px);z-index:9}.reader #chordReviewMark{left:calc(50% + 38px)}.reader:has(#chordReviewButton) #pageTransposeReset{top:max(14px,env(safe-area-inset-top,0px));right:148px;max-width:192px}.reader:has(#recordPanel:not([hidden])) #chordReviewButton,.reader:has(#recordPanel:not([hidden])) #chordReviewMark{top:max(84px,calc(env(safe-area-inset-top,0px) + 70px))}#practiceNotation{position:fixed;top:max(14px,env(safe-area-inset-top,0px));left:calc(50% - 29px);z-index:9;width:58px;height:58px;min-height:58px;font-size:42px;background:#dbeadf;color:#234e48}.practicereader #chordReviewButton{left:calc(50% - 96px)}.practicereader #chordReviewMark{left:calc(50% - 163px)}.practiceplayrow #practiceMusic{font-size:15px;max-width:250px;line-height:1.35;border-radius:16px;text-align:center;white-space:normal;padding:8px 12px}.focusmode #practiceNotation{display:none!important}@media(max-width:600px){.reader:has(#chordReviewButton) #pageTransposeReset{top:148px;right:14px}.reader #chordReviewMark{top:82px;left:calc(50% - 29px)}.practicereader #chordReviewMark{left:calc(50% - 96px)}.practiceplayrow #practiceMusic{font-size:13px;max-width:145px}}
/* Keep review controls away from the transposition status on portrait tablets. */
.reader #chordReviewButton,.practicereader #chordReviewButton{left:84px}.reader #chordReviewMark,.practicereader #chordReviewMark{left:151px}#notationScroll{padding-left:2px;padding-right:2px}@media(max-width:600px){.reader #chordReviewButton,.practicereader #chordReviewButton{left:84px}.reader #chordReviewMark,.practicereader #chordReviewMark{left:151px;top:max(14px,env(safe-area-inset-top,0px))}}

.practicereader #chordReviewButton,.practicereader #chordReviewMark{top:82px}

.reader #chordReviewButton,.reader #chordReviewMark{width:87px;height:87px;min-height:87px;font-size:24px;top:max(14px,env(safe-area-inset-top,0px))}.reader #chordReviewButton,.practicereader #chordReviewButton{left:calc(50% - 94px)}.reader #chordReviewMark,.practicereader #chordReviewMark{left:calc(50% + 7px)}.reader #chordReviewMark svg{width:51px;height:51px}.reader:has(#chordReviewButton) #pageTransposeReset{top:152px;right:14px;max-width:192px}.practicereader #chordReviewButton,.practicereader #chordReviewMark,.reader:has(#recordPanel:not([hidden])) #chordReviewButton,.reader:has(#recordPanel:not([hidden])) #chordReviewMark{top:112px}@media(max-width:600px){.reader #chordReviewButton,.reader #chordReviewMark{top:152px}.reader:has(#chordReviewButton) #pageTransposeReset{top:252px}.practicereader #chordReviewButton,.practicereader #chordReviewMark{top:152px}}

.reader #chordReviewButton,.practicereader #chordReviewButton{left:calc(50% - 145px)}.reader #chordReviewMark,.practicereader #chordReviewMark{left:calc(50% + 57px)}.reader #chordReviewToggle{position:fixed;left:calc(50% - 44px);top:max(14px,env(safe-area-inset-top,0px));z-index:9;display:grid;place-items:center;width:87px;height:87px;min-height:87px;padding:0;border-radius:50%;font-size:27px;font-weight:800;background:#d9e9de;color:#234e48;border:1px solid #70977a66}.reader #chordReviewToggle[aria-pressed=true]{background:#234e48;color:white}.reader #chordReviewToggle:disabled{opacity:.65}.reader #chordReviewToggle[hidden],.focusmode #chordReviewToggle{display:none!important}.practicereader #chordReviewToggle,.reader:has(#recordPanel:not([hidden])) #chordReviewToggle{top:112px}@media(max-width:600px){.reader #chordReviewToggle{top:152px}}

/* Export the local PDF beside the sharing heading. */
.sharebookheading{display:flex;align-items:center;gap:16px;justify-content:space-between}.sharebookheading h3{flex:1;margin:0;min-width:0}.sharebookheading #downloadBook{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;background:#dcece2;color:#234e48;border:1px solid #b6d3c0;border-radius:18px;padding:13px 16px;min-height:52px;font-size:17px;font-weight:700}.sharebookheading #downloadBook svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}#downloadBookStatus:empty{display:none}#downloadBookStatus{font-size:15px;color:var(--muted)}@media(max-width:540px){.sharebookheading{flex-wrap:wrap}.sharebookheading h3{flex-basis:100%}.sharebookheading #downloadBook{width:100%}}

#chordReviewDialog #reviewClear{display:block;width:100%;margin-top:12px;min-height:50px;font-size:17px;font-weight:700;border-radius:14px;background:#f7ded9;color:#8e302a;border:1px solid #dca9a0}#chordReviewDialog #reviewClear:disabled{opacity:.5}

#chordReviewDialog{box-sizing:border-box;max-height:88dvh;overflow:auto}#chordReviewDialog #reviewClear{position:sticky;top:0;z-index:2;margin:10px 0 18px;padding:13px 16px;font-size:18px;line-height:1.3;min-height:54px}#chordReviewDialog .diagnostichead{margin-bottom:8px}

/* Compact, movable guitar chord reference; leaves the song interactive. */
#openChords{background:#ead8ba;color:#263c37}#openChords>svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.7}#chordPanel[hidden]{display:none!important}#chordPanel{position:fixed;z-index:34;left:16px;right:16px;bottom:max(104px,calc(env(safe-area-inset-bottom,0px) + 94px));max-width:1100px;margin:0 auto;border:1px solid var(--edge);border-radius:22px;background:var(--surface,#f6f5ef);color:var(--ink);box-shadow:0 8px 35px #0003;overflow:hidden;max-height:58dvh;display:flex;flex-direction:column}.chordpanelhead{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--edge);touch-action:none;user-select:none;cursor:grab}.chordpanelhead>div{flex:1;min-width:0}.chordpanelhead strong{display:block;font-size:23px}.chordpanelhead #chordPanelSource{display:block;font-size:15px;color:var(--muted);margin-top:3px}.chordpanelgrip{font-size:28px;color:var(--muted)}#closeChords{flex:none;width:48px;height:48px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:34px;line-height:1;background:#f4dad4;color:#943c30}#chordPanelStatus{margin:0;padding:16px;font-size:18px}#chordPanelStatus:empty{display:none}#chordPanelCards{display:flex;gap:18px;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;padding:14px 20px 18px;min-height:0;scrollbar-width:auto;scrollbar-color:#719b90 transparent}#chordPanelCards:empty{display:none}.chordcard{flex:0 0 150px;text-align:center}.chordcard h3{font-size:27px;margin:0 0 6px;line-height:1.25}.guitardiagram{width:150px;max-height:180px;stroke:var(--ink);stroke-width:1.2;fill:none}.guitardiagram .chordnut{stroke-width:4}.guitardiagram .chordfinger{fill:var(--ink);stroke:none}.guitardiagram text{fill:var(--ink);stroke:none;font:16px system-ui;text-anchor:middle}.guitardiagram .chordfret{font-size:13px}.guitardiagram .chordfingerlabel{fill:var(--surface,#fff);font-size:11px;font-weight:800}.chordunavailable{font-size:15px;line-height:1.5;color:var(--muted);padding:20px 5px}body.focusmode #chordPanel{display:none}@media(max-width:600px){#chordPanel{left:6px;right:6px;border-radius:18px;max-height:55dvh}.chordpanelhead{padding:9px 12px;gap:8px}.chordpanelhead strong{font-size:21px}#chordPanelCards{gap:14px;padding:12px}.chordcard{flex-basis:136px}.guitardiagram{width:136px}.chordcard h3{font-size:25px}}
#chordPanel .chordcard{flex-basis:140px}#chordPanel .guitardiagram{width:130px;height:218px;max-height:none}.chordvariantdots{display:flex;justify-content:center;gap:2px;margin:3px 0}.chordvariantdots button{display:grid;place-items:center;width:29px;height:29px;min-height:29px;padding:0;border:0;background:transparent;border-radius:50%}.chordvariantdots button::after{content:'';width:10px;height:10px;border-radius:50%;background:var(--muted);opacity:.35}.chordvariantdots button[aria-pressed=true]::after{background:#367e70;opacity:1;width:12px;height:12px}.chordvariantdots button:focus-visible{outline:2px solid #367e70;outline-offset:0}.chordvariantname{display:block;font-size:13px;line-height:1.4;color:var(--muted)}#chordPanel .chordcard h3{margin-bottom:2px}@media(max-width:600px){#chordPanel .chordcard{flex-basis:130px}#chordPanel .guitardiagram{width:124px;height:208px}}

.chordpanelhead>.chordinstruments{flex:0 1 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.chordinstruments button{padding:10px 14px;border-radius:20px;background:var(--soft,#eeeee7);color:var(--ink);font-size:18px;font-weight:700;min-height:44px;border:1px solid var(--edge)}.chordinstruments button[aria-pressed="true"]{background:#cde8c9;color:#204d3f;border-color:#91b98c}.chordinstruments button:focus-visible{outline:3px solid #44776b;outline-offset:2px}@media(max-width:600px){.chordpanelhead{flex-wrap:wrap}.chordpanelhead>div:first-child{flex:1}.chordpanelhead>.chordinstruments{order:4;flex:1 0 100%;justify-content:stretch}.chordinstruments button{flex:1;padding:8px 10px;font-size:17px}.chordpanelgrip{display:none}}

.chordpanelhead>.chordinstruments{align-items:center;gap:12px;justify-content:flex-end;flex-wrap:wrap}.chordinstruments #chooseChordInstrument{display:flex;align-items:center;gap:8px;background:var(--control,#e5ece2);padding:8px 14px}.chordinstruments #chooseChordInstrument svg{width:28px;height:32px;stroke:currentColor;fill:none;stroke-width:2}.instrumentstring{stroke-width:.7}#selectedChordInstrument{font-size:17px;font-weight:650;white-space:nowrap}#instrumentDialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--edge);border-radius:24px;background:var(--surface,#f6f5ef);color:var(--ink);overflow:auto}#instrumentDialog::backdrop{background:#132a2566}.instrumentdialoghead{display:flex;align-items:flex-start;gap:16px}.instrumentdialoghead>div{flex:1}.instrumentdialoghead h2{font-size:28px;margin:0}.instrumentdialoghead p{font-size:16px;color:var(--muted);margin:8px 0 12px}.closeinstrument{width:48px;height:48px;border-radius:50%;background:#f4dad4;color:#943c30;font-size:34px;line-height:1;padding:0;display:grid;place-items:center;flex:none}#instrumentDialog h3{font-size:19px;margin:18px 0 12px}.instrumentgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.instrumentgrid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:156px;padding:14px 10px;border-radius:18px;background:var(--control,#e9eee4);color:var(--ink);border:2px solid transparent}.instrumentgrid button[aria-pressed=true]{background:#cde8c9;border-color:#83ad80;color:#204d3f}.instrumentgrid svg{width:62px;height:66px;stroke:currentColor;fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.instrumentgrid strong{font-size:21px}.instrumentgrid small{font-size:14px;color:var(--muted)}.instrumentgrid button:disabled{opacity:.45;cursor:default;filter:grayscale(1)}.guitardiagram .bassroot{fill:#b8dbad;stroke:#56844b;stroke-width:1}.guitardiagram .bassrootlabel{fill:#173d2f}.guitardiagram .bassnotelabel{font-size:11px;font-weight:750}@media(max-width:600px){.chordpanelhead>.chordinstruments{flex:1 0 100%;justify-content:space-between}.chordinstruments #chooseChordInstrument{flex:0 1 auto}.chordinstruments #selectedChordInstrument{font-size:16px}#instrumentDialog{padding:18px}.instrumentgrid{gap:10px}.instrumentgrid button{min-height:140px}.instrumentdialoghead h2{font-size:25px}}

.chordvariantdiagram{display:block;width:100%;padding:0;margin:0;background:transparent;color:inherit;border:0;border-radius:12px;cursor:pointer;touch-action:pan-x pan-y}.chordvariantdiagram:active{background:var(--control,#e9eee4)}.winddiagram .windbody{fill:#c5d7ce44;stroke:var(--muted,#657c71);stroke-width:1}.winddiagram .windhole{fill:var(--surface,#fff);stroke:var(--ink);stroke-width:1.4}.winddiagram .windhole.covered{fill:var(--ink)}.winddiagram .windholelabel{font-size:9px}.winddiagram .windhand{font-size:9px;fill:var(--muted)}.winddiagram .windpitch{font-size:15px;font-weight:800}.instrumentgrid .instrumentbody{fill:#d4bd9555}.instrumentgrid [data-instrument="ukulele"] .instrumentbody{fill:#d7ad6d55}.instrumentgrid [data-instrument="mandolin"] .instrumentbody{fill:#b9956b55}.instrumentgrid [data-instrument="bass"] .instrumentbody{fill:#72978d55}.instrumentgrid [data-instrument="flute"] .instrumentbody{fill:#a8bdc655}.instrumentgrid svg{width:74px;height:78px;stroke-width:1.5}

.guitardiagram.winddiagram{max-height:210px}.winddiagram .windholelabel{font-size:11px}.winddiagram .windhand{font-size:11px}.winddiagram .windpitch{font-size:17px}

.winddiagram .windhalf{fill:var(--ink);stroke:none}#chordPanel .chordcard.keyboardcard{flex-basis:310px}.keyboarddiagram{width:300px;max-width:100%;height:210px}.keyboarddiagram .pianowhite{fill:#fff;stroke:#526c64;stroke-width:1}.keyboarddiagram .pianoblack{fill:#243b37;stroke:#243b37;stroke-width:1}.keyboarddiagram .pianopressed{fill:#80a99b}.keyboarddiagram .pianoroot{fill:#b8dbad}.keyboarddiagram .pianodot{fill:#173d2f}.keyboarddiagram .pianolabel{fill:var(--ink);font:11px system-ui;text-anchor:middle}.violindiagram .violinboard{fill:#bcb3a42a;stroke:var(--muted);stroke-width:1}.violindiagram .windhand{font-size:9px}#instrumentDialog section:last-child{margin-bottom:4px}#instrumentDialog .instrumentdialoghead{position:sticky;top:-24px;background:var(--surface,#fff);z-index:1;padding-top:8px}#instrumentDialog .instrumentgrid [data-instrument="keyboard"]{grid-column:span 2}

#selectedChordInstrument{padding:8px 12px;border:1px solid #8fb4cf;border-radius:14px;background:#deedf7;color:#28536e}.chordheadingline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#openInstrumentTuner{padding:9px 14px;border-radius:18px;background:#e4ede3;color:#254e40;font-size:17px;font-weight:700;min-height:42px}#instrumentDialog{width:min(750px,calc(100vw - 24px));padding:18px}#instrumentDialog .instrumentdialoghead{top:-18px;padding-top:4px}#instrumentDialog h3{margin:12px 0 8px;font-size:18px}#instrumentDialog .instrumentgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#instrumentDialog .instrumentgrid button{min-height:114px;padding:8px;gap:3px;border-radius:14px}#instrumentDialog .instrumentgrid svg{width:46px;height:48px}#instrumentDialog .instrumentgrid strong{font-size:18px}#instrumentDialog .instrumentgrid small{font-size:14px}#instrumentDialog .instrumentgrid:has([data-instrument="keyboard"]){grid-template-columns:1fr}#instrumentDialog .instrumentgrid [data-instrument="keyboard"]{grid-column:auto;min-height:80px;display:grid;grid-template-columns:50px auto;justify-content:center;column-gap:14px}#instrumentDialog [data-instrument="keyboard"] svg{grid-row:span 2}#instrumentDialog [data-instrument="keyboard"] strong,#instrumentDialog [data-instrument="keyboard"] small{text-align:left}#instrumentTuner{width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid var(--edge);border-radius:24px;background:var(--surface,#fff);color:var(--ink)}#instrumentTuner::backdrop{background:#132a2566}.tunerhead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.tunerhead h2{margin:0;font:700 27px system-ui}.tunerhead p{margin:5px 0 14px;font-size:18px;color:var(--muted)}#closeTuner{width:46px;height:46px;border-radius:50%;background:#f4dad4;color:#943c30;display:grid;place-items:center;padding:0;font-size:32px;flex:none}#tunerLayout{display:flex;align-items:center;gap:16px;padding:12px;background:var(--control,#e9eee4);border-radius:18px}.tunerinstrumentpicture svg{width:66px;height:110px;stroke:var(--ink);stroke-width:1.6;fill:none}.tunerstrings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1}.tunerstrings button{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 6px;border-radius:13px;background:var(--surface,#fff);color:var(--ink);border:2px solid transparent}.tunerstrings button:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:#68847925}.tunerstrings button>*{z-index:1}.tunerstrings strong{font-size:23px;background:var(--surface,#fff)}.tunerstrings small,.tunerstrings span{font-size:14px}.tunerstrings button[aria-pressed=true]{border-color:#648eab;background:#dfedf5}.tunerstrings button.detected{box-shadow:inset 0 0 0 2px #82ae75}.tunermodes{display:flex;gap:10px;margin-top:12px}.tunermodes button{flex:1;padding:11px 12px;border-radius:14px;background:var(--control,#e9eee4);color:var(--ink);font-size:16px;font-weight:650;min-height:46px}.tunermodes #tunerListen{background:#234e48;color:#fff}.tunermodes button[aria-pressed=true]{background:#cde8c9;color:#204d3f}#tunerStatus{min-height:24px;margin:12px 0 4px;font-size:16px;text-align:center;color:var(--muted)}.tunerreadout{text-align:center;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.tunerreadout strong{font-size:45px;line-height:1.2}.tunerreadout span{font-size:18px}#tunerTarget{flex-basis:100%;color:var(--muted);font-size:15px}#tunerGauge{display:block;width:min(360px,100%);height:155px;margin:4px auto 0;fill:var(--ink);stroke:var(--ink);stroke-width:1.5}#tunerGauge .tunergaugearc{fill:none;stroke:var(--edge,#b8c8bf);stroke-width:5}#tunerGauge .tunergaugegood{fill:none;stroke:#80ac6f;stroke-width:10}#tunerGauge text{stroke:none;font:14px system-ui;text-anchor:middle}#tunerNeedle{stroke:#b66c43;stroke-width:3;transform-origin:180px 140px;transition:transform .12s ease-out}#instrumentTuner[data-in-tune=true] #tunerNeedle{stroke:#3b854b}#tunerDirection{text-align:center;min-height:27px;font-size:20px;font-weight:700;margin:4px 0 12px}#instrumentTuner[data-in-tune=true] #tunerDirection{color:#39824a}.tunersettings{border-top:1px solid var(--edge);padding-top:10px}.tunersettings summary{font-size:17px;cursor:pointer}.tunerreference,.tunerrange{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.tunersettings label{font-size:16px}.tunersettings input{width:88px;padding:8px;border:1px solid var(--edge);border-radius:10px;background:var(--control);color:var(--ink);font:700 18px system-ui}.tunersettings button{padding:10px;border-radius:12px;background:var(--control);color:var(--ink);font-size:15px}.tunersettings small{display:block;font-size:14px;line-height:1.5;color:var(--muted)}.tunernonstrings{font-size:16px;line-height:1.5;margin:0}#tunerLayout[data-instrument=keyboard] .tunerinstrumentpicture svg{width:100px;height:65px}#tunerLayout[data-instrument=flute] .tunerinstrumentpicture svg{width:100px;height:65px}@media(max-width:600px){#instrumentDialog .instrumentgrid{grid-template-columns:repeat(2,minmax(0,1fr))}#instrumentDialog .instrumentgrid button{min-height:108px}#instrumentTuner{padding:16px}.tunerstrings{grid-template-columns:repeat(2,minmax(0,1fr))}.tunerstrings strong{font-size:22px}.tunerinstrumentpicture svg{width:48px}.chordheadingline{gap:8px}.chordheadingline strong{font-size:20px}}

#instrumentTuner{width:min(780px,calc(100vw - 24px));user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#instrumentTuner input{user-select:text;-webkit-user-select:text;touch-action:auto}.tunerheadtools{display:flex;align-items:flex-start;gap:10px}.tunerhead #tunerAuto{max-width:230px;min-height:44px;padding:9px 13px;background:var(--control,#e9eee4);color:var(--ink);border:1px solid var(--edge);border-radius:15px;font-size:15px;font-weight:700}.tunerhead #tunerAuto[aria-pressed=true]{background:#cde8c9;color:#204d3f;border-color:#93b78a}.tunerbody{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:center;margin:10px 0 14px}.tunerbody #tunerLayout{padding:10px 7px;gap:5px;align-self:stretch;align-items:center}.tunerbody .tunerinstrumentpicture svg{width:42px;height:170px}.tunerbody .tunerstrings{display:flex;flex-direction:column;gap:4px;min-width:0}.tunerbody .tunerstrings button{display:grid;grid-template-columns:18px 35px minmax(12px,1fr) 64px;align-items:center;gap:5px;padding:7px 5px;min-height:40px;background:transparent;border:1px solid transparent;border-radius:9px;text-align:left}.tunerbody .tunerstrings button:before{display:none}.tunerbody .tunerstrings strong{font-size:20px;background:transparent}.tunerbody .tunerstrings small{font-size:13px;text-align:center;color:var(--muted)}.tunerbody .tunerstrings span{font-size:13px;text-align:right;color:var(--muted)}.tunerwire{display:block;width:100%;height:var(--string-weight,2px);background:linear-gradient(#b5bdb7,#69796d,#a1ada5);border-radius:3px;box-shadow:0 1px 2px #0002}.tunershortstring .tunerwire{width:65%;justify-self:end}.tunerbody .tunerstrings button[aria-pressed=true]{background:#deedf7;border-color:#8fb4cf}.tunerbody .tunerstrings button.detected{background:#e3efdf;box-shadow:none;border-color:#8ab17d}.tunermeasure{min-width:0}.tunermeasure #tunerStatus{font-size:14px;min-height:20px;margin:0 0 5px}.tunermeasure .tunerreadout{gap:7px}.tunermeasure .tunerreadout strong{font-size:40px}.tunermeasure #tunerTarget{font-size:14px;min-height:20px}.tunermeasure #tunerGauge{width:100%;height:auto;max-height:155px}.tunermeasure #tunerDirection{font-size:17px;margin:4px 0;min-height:24px}#instrumentTuner .tunersettings summary{user-select:none;-webkit-user-select:none;touch-action:manipulation;padding:7px 0}#instrumentTuner .tunernonstrings{font-size:15px;line-height:1.45}.tunerbody #tunerLayout[data-instrument=keyboard],.tunerbody #tunerLayout[data-instrument=flute]{flex-direction:column;justify-content:center}.tunerbody #tunerLayout[data-instrument=keyboard] .tunerinstrumentpicture svg,.tunerbody #tunerLayout[data-instrument=flute] .tunerinstrumentpicture svg{width:110px;height:65px}@media(max-width:540px){.tunerheadtools{gap:6px}.tunerhead #tunerAuto{max-width:145px;font-size:13px;padding:8px;min-height:44px}.tunerhead h2{font-size:24px}.tunerhead p{font-size:15px}.tunerbody{grid-template-columns:1fr;gap:10px}.tunerbody .tunerstrings button{grid-template-columns:22px 38px minmax(20px,1fr) 80px}.tunerbody .tunerstrings span{font-size:14px}.tunerbody .tunerinstrumentpicture svg{height:160px;width:56px}.tunermeasure #tunerGauge{max-height:145px}.tunermeasure #tunerStatus{margin-top:0}}

#tunerLayout[data-instrument=mandolin] .tunerwire{height:5px;border-top:1px solid #788a7e;border-bottom:1px solid #788a7e;background:transparent}

#selectedChordInstrument{font-size:22px;font-weight:750;min-height:56px;display:inline-flex;align-items:center;padding:10px 16px;border-width:2px}.chordinstruments #chooseChordInstrument,#openInstrumentTuner{min-height:56px;padding:10px 16px;font-size:20px;font-weight:700;border-radius:18px}.chordheadingline #openInstrumentTuner{font-size:20px;min-height:56px}#harmonicaChoice{min-height:56px;padding:10px 14px;border:2px solid #8fb4cf;border-radius:15px;background:#deedf7;color:#28536e;font-size:21px;font-weight:750}#harmonicaChoice[hidden]{display:none!important}#harmonicaDialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:22px;border:1px solid var(--edge);border-radius:22px;background:var(--surface,#fff);color:var(--ink);overflow:auto}#harmonicaDialog::backdrop{background:#132a2566}#harmonicaDialog h2{font-size:25px;margin:0}#harmonicaDialog h3{font-size:18px;margin:16px 0 9px}#harpRecommendation{padding:14px;background:#deedf7;color:#28536e;border:1px solid #8fb4cf;border-radius:14px;font-size:24px;font-weight:750;text-align:center;margin-top:12px}.harproots{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.harproots button,.harpquality button,#harpModes button{padding:10px;min-height:46px;border-radius:12px;background:var(--control);color:var(--ink);font-size:19px;font-weight:650}.harproots button[aria-pressed=true],.harpquality button[aria-pressed=true],#harpModes button[aria-pressed=true]{background:#cde8c9;color:#204d3f}.harpquality,#harpModes{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.harpquality button{flex:1}#harpModes button{flex:1 1 40%;font-size:16px}#harpHint{font-size:15px;line-height:1.5;color:var(--muted)}#applyHarp{width:100%;font-size:20px;min-height:50px}.harmonicadiagram{width:300px;height:210px;max-width:100%}.harmonicadiagram .harpcell{fill:var(--control,#e9eee4);stroke:var(--edge,#b5c6bc);stroke-width:1}.harmonicadiagram .harpactive{fill:#3b7d69;stroke:#245442}.harmonicadiagram text{font-family:system-ui;text-anchor:middle;fill:var(--ink);stroke:none}.harmonicadiagram .harplabel{font-size:11px}.harmonicadiagram .harpnote{font-size:12px;font-weight:700}.harmonicadiagram .harpnoteselected{fill:white}@media(max-width:600px){#selectedChordInstrument{font-size:20px;min-height:52px}.chordinstruments #chooseChordInstrument,.chordheadingline #openInstrumentTuner{font-size:18px;min-height:52px}#harmonicaChoice{font-size:19px;min-height:52px}.chordinstruments #selectedChordInstrument{font-size:20px}}



/* Keep the instrument, recommendation and tuner on one compact control row. */
#chordPanel .chordpanelhead{flex-wrap:wrap;gap:8px 12px}
#chordPanel .chordpanelhead>div:first-child{flex:1}
#chordPanel .chordpanelhead>.chordinstruments{order:4;flex:1 0 100%;display:flex;flex-wrap:nowrap;gap:8px;justify-content:flex-start;align-items:stretch}
#chordPanel .chordinstruments #selectedChordInstrument,#chordPanel .chordinstruments button{box-sizing:border-box;min-height:48px;height:auto;padding:8px 12px;font-size:18px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;margin:0;line-height:1.2}
#chordPanel .chordinstruments #selectedChordInstrument{font-weight:750;white-space:normal;min-width:0}
#chordPanel .chordinstruments #harmonicaChoice[hidden]{display:none!important}
#chordPanel .chordinstruments #openInstrumentTuner{order:2}
#chordPanel .chordinstruments #chooseChordInstrument{order:3;gap:6px}
#chordPanel .chordinstruments #chooseChordInstrument svg{width:24px;height:26px;flex:none}
#recommendHarp{width:100%;min-height:48px;padding:10px 14px;border-radius:14px;background:#cde8c9;color:#204d3f;font-size:19px;font-weight:750;margin-top:8px}
@media(max-width:540px){#chordPanel .chordinstruments{gap:5px!important}#chordPanel .chordinstruments #selectedChordInstrument,#chordPanel .chordinstruments button{padding:7px 6px;font-size:16px;min-height:46px}#chordPanel .chordinstruments #chooseChordInstrument{gap:3px}#chordPanel .chordinstruments #chooseChordInstrument svg{width:18px;height:22px}#chordPanel .chordinstruments #harmonicaChoice{min-width:52px}}

/* Align the title and all chord tools with the close button. */
#chordPanel .chordpanelhead{display:grid;grid-template-columns:minmax(100px,1fr) auto 44px;align-items:start;gap:8px;padding:12px}
#chordPanel .chordpanelhead>div:first-child{min-width:0;align-self:start}
#chordPanel .chordheadingline{min-height:44px;align-items:center}
#chordPanel .chordheadingline strong{font-size:20px;line-height:1.15}
#chordPanel .chordpanelhead>.chordinstruments{order:initial;display:flex;flex:initial;flex-wrap:nowrap;align-items:stretch;justify-content:flex-end;gap:6px;min-width:0}
#chordPanel .chordpanelgrip{display:none}
#chordPanel .chordinstruments #openInstrumentTuner{order:-1}
#chordPanel .chordinstruments #selectedChordInstrument{order:0}
#chordPanel .chordinstruments #harmonicaChoice{order:1}
#chordPanel .chordinstruments #chooseChordInstrument{order:2}
#chordPanel .chordinstruments #selectedChordInstrument,#chordPanel .chordinstruments button{min-height:44px;height:44px;padding:7px 9px;font-size:16px;line-height:1.1;min-width:0;white-space:normal}
#chordPanel #closeChords{width:44px;height:44px;align-self:start}
#chordPanel .chordinstruments #chooseChordInstrument svg{width:20px;height:24px}
@media(max-width:640px){
 #chordPanel .chordpanelhead{grid-template-columns:minmax(65px,1fr) minmax(0,3fr) 36px;gap:5px;padding:9px}
 #chordPanel .chordheadingline{min-height:42px}
 #chordPanel .chordheadingline strong{font-size:16px}
 #chordPanel .chordinstruments{gap:4px!important}
 #chordPanel .chordinstruments #selectedChordInstrument,#chordPanel .chordinstruments button{font-size:14px;padding:5px;min-height:42px;height:auto;flex:1 1 auto;overflow-wrap:anywhere}
 #chordPanel .chordinstruments #harmonicaChoice{min-width:0}
 #chordPanel .chordinstruments #chooseChordInstrument svg{display:none}
 #chordPanel #closeChords{width:36px;height:42px;font-size:29px}
}

/* Non-modal reader sheets: only the visible paper receives pointer input. */
#notationVeil{background:transparent;pointer-events:none}
#notationPaper{pointer-events:auto}
body.reader-panels-open #dock{z-index:42}
body.reader-panels-open #recordPanel{z-index:45}
body.focusmode #notationVeil{display:none!important}

/* Instrument B: continuous wooden necks and actual contact locations. */
#chordPanel .chordcard{flex:0 0 186px}
#chordPanel .keyboardcard{flex-basis:310px}
#chordPanel .flutecard{flex-basis:490px}
#chordPanel .woodwindcard{flex-basis:245px}
#chordPanel .realisticneck{width:174px;height:272px;max-width:100%;fill:none;stroke:none}
.realisticneck text,.instrumentdiagram text{font-family:system-ui,sans-serif;text-anchor:middle;stroke:none}
.realisticneck .fretlabel{fill:#67766e;font-size:12px}
.realisticneck .stringlabel,.realisticneck .openmark{fill:#29463c;font-size:14px;font-weight:700}
.realisticneck .realfinger,.realisticneck .realbarre{fill:#295d51;stroke:#edf5eb;stroke-width:1}
.realisticneck .realfinger.root{fill:#168264}
.realisticneck .fingerlabel{fill:white;font-weight:700;font-size:11px}
#chordPanel .instrumentdiagram{display:block;max-width:100%;height:340px;width:230px;fill:#28473c;stroke:none;margin:auto}
#chordPanel .fluterealistic{width:470px;height:230px}
#chordPanel .violindiagram .violinboard{fill:#71492e;stroke:#483122}
#chordPanel .violindiagram line{stroke:#d9d8cd}
.chordheadingline{display:flex;align-items:center;gap:8px;white-space:nowrap}
#chordPanel #openInstrumentTuner{flex:none;min-height:44px;padding:7px 10px;font-size:16px}
.tunerukulele{display:flex;gap:10px;margin:0 0 15px}
.tunerukulele[hidden]{display:none}
.tunerukulele button{flex:1;min-height:46px;font-size:17px}
.tunerukulele button[aria-pressed=true]{background:#c5e4cb;border-color:#6b9e7d;color:#204f3a;font-weight:700}
body.reader-panels-pair #notationVeil{align-items:flex-start;padding-top:max(86px,calc(env(safe-area-inset-top,0px) + 76px))}
body.reader-panels-pair #notationPaper{max-height:52dvh}
@media(max-width:640px){#chordPanel .chordheadingline{gap:5px}#chordPanel #openInstrumentTuner{font-size:14px;padding:6px;min-height:42px}#chordPanel .flutecard{flex-basis:min(470px,85vw)}.tunerukulele button{font-size:15px}}
@media(max-width:640px){#chordPanel .chordpanelhead{grid-template-columns:minmax(145px,1fr) minmax(0,1fr) 36px}#chordPanel .chordheadingline strong{white-space:normal;overflow-wrap:normal}}

/* Each string instrument owns a headstock; note controls select its entire string. */
.tunerbody #tunerLayout:has(.tunerheadstock){display:block;padding:6px;background:var(--control,#e9eee4)}
.tunerheadstock{position:relative;width:min(360px,100%);aspect-ratio:360/420;margin:auto;color:var(--ink)}
#instrumentTuner .tunerheadstockart{display:block;width:100%;height:100%;overflow:visible}
.headstockwire{fill:none;stroke:#d9dedb;stroke-width:var(--wire-width,2px);filter:drop-shadow(0 1px 1px #0008);transition:stroke .12s,filter .12s}
.headstockwire.selected{stroke:#05bfff;stroke-width:3px;filter:drop-shadow(0 0 3px #00bfff)}
#instrumentTuner .tunerpeg{position:absolute;left:var(--peg-x);top:var(--peg-y);transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:2px solid #94aa9e;background:var(--surface,#fff);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;gap:0;line-height:1;touch-action:manipulation}
#instrumentTuner .tunerpeg strong{font:750 22px system-ui;line-height:1;background:transparent}
#instrumentTuner .tunerpeg small{font:11px system-ui;line-height:1;color:var(--muted)}
#instrumentTuner .tunerpeg[aria-pressed=true],#instrumentTuner .tunerpeg.detected{border-color:#009bd1;background:#d9f5ff;color:#005b82;box-shadow:0 0 0 3px #00bfff25}
#instrumentTuner .tunerpeg:focus-visible{outline:3px solid #007fae;outline-offset:3px}
@media(max-width:540px){.tunerheadstock{width:min(300px,100%)}.tunerbody:has(.tunerheadstock){grid-template-columns:minmax(160px,1fr) minmax(125px,.85fr);gap:8px}#instrumentTuner .tunerpeg{width:42px;height:42px}#instrumentTuner .tunerpeg strong{font-size:20px}.tunermeasure .tunerreadout strong{font-size:32px}.tunermeasure .tunerreadout span{font-size:15px}}
@media(max-width:370px){.tunerbody:has(.tunerheadstock){grid-template-columns:1fr}.tunerheadstock{width:260px}}

/* Exact optical centering independent of font glyph metrics. */
#chordPanel #closeChords,#instrumentTuner #closeTuner{display:grid;place-items:center;padding:0!important;line-height:1;font-size:0!important}
#closeChords::after,#closeTuner::after{content:'';display:block;width:18px;height:18px;background:linear-gradient(45deg,transparent calc(50% - 1.2px),currentColor calc(50% - 1.2px),currentColor calc(50% + 1.2px),transparent calc(50% + 1.2px)),linear-gradient(-45deg,transparent calc(50% - 1.2px),currentColor calc(50% - 1.2px),currentColor calc(50% + 1.2px),transparent calc(50% + 1.2px))}
#instrumentTuner .tunerpeg.confirmed{border-color:#268244;background:#c7efcd;color:#145d2b;box-shadow:0 0 0 3px #3cbe5a30}
.tuningoptionsgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
#tunerCustomTargets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#tunerCustomTargets label{display:flex;flex-direction:column;gap:3px;font-size:14px}
#tunerCustomTargets select{padding:7px;border:1px solid var(--edge);border-radius:9px;background:var(--control);color:var(--ink);font:700 17px system-ui;min-height:40px;width:100%}
.tuningtargets p{font-size:13px;line-height:1.4;color:var(--muted)}
#instrumentTuner .tunerukulele{margin-top:12px;gap:5px}#instrumentTuner .tunerukulele button{font-size:14px;border-radius:12px;padding:8px;min-height:44px}
#tunerLayout[data-instrument=guitar12] .tunerpeg{width:34px;height:34px}#tunerLayout[data-instrument=guitar12] .tunerpeg strong{font-size:17px}#tunerLayout[data-instrument=guitar12] .tunerpeg small{font-size:9px}
@media(max-width:540px){.tuningoptionsgrid{grid-template-columns:1fr}.tunerbody:has([data-instrument=guitar12]){grid-template-columns:1fr}#tunerLayout[data-instrument=guitar12] .tunerheadstock{width:340px;max-width:100%}}

#chordPanel #closeChords, #transposeDialog #closeTranspose {
  position: relative;
  inset: auto;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1;
}
#chordPanel #closeChords::after, #transposeDialog #closeTranspose::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}

/* 0.178: compact, cancellable transfer meters and a stationary settings rail. */
.transfermeter{display:grid;grid-template-columns:minmax(30px,1fr) auto 34px;align-items:center;gap:8px;margin:12px 0;min-width:0;color:var(--ink);font-size:14px}.transfermeter[hidden]{display:none!important}.transfermeter progress{display:block;width:100%;min-width:0;height:12px;accent-color:#4e9cce}.transfermeter .meterpercent{white-space:nowrap;font-variant-numeric:tabular-nums}.transfermeter .transfercancel{display:grid;place-items:center;position:relative;width:34px;height:34px;min-height:0;margin:0;padding:0;border:1px solid #d49c94;border-radius:50%;background:#f6ded9;color:#963f34;cursor:pointer}.transfermeter .transfercancel svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.transfermeter .meterspeed{grid-column:1/-1;font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums}.incomingprompt .transfermeter{margin:3px 0;gap:4px;font-size:12px;grid-template-columns:minmax(20px,1fr) auto 26px}.incomingprompt .transfercancel{width:26px;height:26px}.incomingprompt .meterspeed{font-size:10px}.incomingprompt:has(.transfermeter:not([hidden])) .incomingstatus{margin:2px 0;font-size:10px}.incomingprompt:has(.transfermeter:not([hidden])) [data-expires-at]{display:none}
#instrumentDialog .closeinstrument,#instrumentTuner #closeTuner{position:relative;display:grid;place-items:center;flex:none;width:46px;height:46px;min-height:46px;padding:0;margin:0;font-size:0;line-height:1;border-radius:50%;background:#f5ded8;color:#963f34;transform:none}#instrumentDialog .closeinstrument::before,#instrumentTuner #closeTuner::before{content:none}#instrumentDialog .closeinstrument::after,#instrumentTuner #closeTuner::after{content:'';position:absolute;left:50%;top:50%;width:20px;height:20px;transform:translate(-50%,-50%);background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}
#settingsDialog[open]{display:flex;flex-direction:column;height:min(880px,92dvh);max-height:92dvh;overflow:hidden}#settingsDialog .settingsheading{flex:none}#settingsDialog .settingslayout{flex:1;min-height:0;overflow:hidden}#settingsDialog .settingsnav{min-height:0;overflow-y:auto;overscroll-behavior:contain}#settingsDialog .settingsnav button{flex-shrink:0}#settingsDialog .settingscontent{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#tutorialPortal .tourmask{background:rgba(7,17,15,.34)}#tutorialPortal .tourshade{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}#tutorialPortal .tourfocus{box-shadow:none!important}#tutorialPortal .tourcard[data-demo=swipe] .tourtext::after,#tutorialPortal .tourcard[data-demo=drag] .tourtext::after{content:'↔';display:block;width:50px;margin:12px auto 0;color:#287f71;font-size:32px;text-align:center;animation:tourSwipe 2s ease-in-out infinite}@keyframes tourSwipe{0%,100%{transform:translateX(-18px)}50%{transform:translateX(18px)}}@media(prefers-reduced-motion:reduce){#tutorialPortal .tourcard .tourtext::after{animation:none!important}}
.appdownloadmeter:not([hidden]){position:fixed;z-index:1100;left:50%;bottom:14px;transform:translateX(-50%);width:min(460px,calc(100vw - 32px));box-sizing:border-box;background:var(--surface,#fff);border:1px solid var(--edge);border-radius:16px;padding:12px;box-shadow:0 6px 30px #0002}body:has(#settingsDialog[open]) .appdownloadmeter{display:none!important}
