:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color-scheme:light;--bg:#f2f2f7;--card:#fff;--ink:#242424;--sub:#656d78;--line:#dfe1e6;--fill:#d8e3f0;--accent:#647d9a;--chant:#526fa3;--font:1rem;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;background:none;cursor:pointer;min-height:48px;min-width:48px;padding:12px 20px;line-height:1.5}a{color:inherit;text-decoration:none}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}:is(button,a,input,select,summary):focus{outline:none}:root[data-input-mode=keyboard] :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--chant);outline-offset:-3px}h1,h2,h3,p{margin:0}h1{font-size:1.75rem;line-height:1.25;letter-spacing:-.035em}h2{font-size:1.25rem;line-height:1.4;letter-spacing:-.02em}h3{font-size:1rem;line-height:1.5;font-weight:650}small,.meta{color:var(--sub);font-size:.8125rem;line-height:1.5}.icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}main{max-width:720px;margin:auto;padding:16px max(16px,env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}header{display:flex;align-items:center;gap:12px;margin:8px 0 24px;min-height:48px}header h1{flex:1;min-width:0}.mark{width:32px;height:20px;flex:none;fill:currentColor;color:var(--accent)}
.navigation{position:fixed;bottom:0;left:0;right:0;background:var(--card);border-top:1px solid var(--line);padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:4px;z-index:10}.navigation a{flex:1;min-width:48px;max-width:180px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:.75rem;line-height:1.35;color:var(--sub);padding:0 4px}.nav-indicator{display:flex;align-items:center;justify-content:center;width:64px;max-width:100%;height:32px;border-radius:24px}.navigation a[aria-current=page]{color:var(--ink);font-weight:650}.navigation a[aria-current=page] .nav-indicator{background:var(--fill);color:#242424}
.home-section{margin-top:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;min-height:32px}.section-heading h2{min-width:0}.textbutton{color:var(--chant);font-size:.875rem;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;min-height:48px;min-width:48px;border-radius:24px;text-align:center}.textbutton .icon{width:18px;height:18px}.section-heading .textbutton{flex:none;margin-right:-8px}.back-link{margin-left:-12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:12px;flex:none;border-radius:50%}.icon-button:hover,.textbutton:hover{background:color-mix(in srgb,var(--chant),transparent 92%)}.concerts{margin-bottom:4px}.banner-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:20px;scrollbar-width:none}.banner-rail::-webkit-scrollbar{display:none}.concert-banner{display:block;position:relative;flex:0 0 100%;scroll-snap-align:center;overflow:hidden;border-radius:20px;background:var(--fill);aspect-ratio:2;min-height:48px}.concert-banner img{display:block;width:100%;height:100%;object-fit:cover}.banner-copy{position:absolute;inset:0 auto 0 0;width:48%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;padding:16px;color:#242424}.banner-copy strong{font-size:clamp(1.15rem,5.5vw,2.4rem);font-style:italic;line-height:1.02;white-space:pre-line;font-weight:900}.banner-copy>span:not(.banner-tag){font-size:.75rem;font-weight:750;letter-spacing:.12em}.banner-copy small{color:inherit;font-size:.625rem;font-weight:700}.banner-tag{background:#242424;color:#fff;border-radius:16px;padding:3px 10px;font-size:.6875rem}.banner-controls{display:flex;justify-content:center;align-items:center;gap:0;height:32px}.banner-dot{display:grid;place-items:center;min-width:28px;min-height:32px;padding:0;border-radius:50%}.banner-dot::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sub);opacity:.3}.banner-dot[aria-current=true]::before{background:var(--chant);opacity:1}
.song-card{display:flex;align-items:center;gap:16px;padding:16px;min-height:80px;border:1px solid var(--line);border-radius:16px;margin-bottom:6px;background:var(--card)}.song-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.song-title{font-size:1rem;line-height:1.5;font-weight:550;word-break:keep-all;overflow-wrap:anywhere}.song-card>.icon{width:20px;height:20px;color:var(--sub)}.badge{display:inline-block;font-size:.6875rem;font-weight:500;color:var(--sub);background:color-mix(in srgb,var(--sub),transparent 89%);border-radius:99px;padding:3px 8px;vertical-align:middle;margin-left:6px;white-space:nowrap}.chips{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding:4px 0 12px;margin-bottom:4px}.chip{min-height:48px;flex:none;white-space:nowrap;padding:11px 16px;border:1px solid var(--line);border-radius:16px;font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--card)}.chip[aria-pressed=true]{background:var(--fill);border-color:transparent;color:#242424;font-weight:600}.tonal-button,.action{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:24px;background:var(--fill);color:#242424;font-size:.875rem;font-weight:600;line-height:1.5;flex-shrink:0}.more{width:100%;margin-top:8px}
.card{border-radius:20px;background:var(--card);margin-bottom:8px;border:1px solid var(--line);overflow:hidden}.album summary{cursor:pointer;list-style:none;padding:16px;display:flex;gap:16px;align-items:center;min-height:80px}.album summary::-webkit-details-marker{display:none}.album-label{flex:1;min-width:0;word-break:keep-all;overflow-wrap:anywhere}.album-label .meta{margin-top:3px}.album summary>.icon{width:20px;height:20px;color:var(--sub)}.album[open] summary>.icon{transform:rotate(180deg)}.album[open] summary{border-bottom:1px solid var(--line)}.tracks{padding:0 16px}.track{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px 0;line-height:1.5}.track+.track{border-top:1px solid color-mix(in srgb,var(--line),transparent 55%)}.number{font-variant-numeric:tabular-nums;color:var(--sub);font-size:.8125rem;width:24px;flex:none;text-align:center}.trackname{flex:1;min-width:0;overflow-wrap:anywhere;word-break:keep-all}.track>.icon{width:20px;height:20px;color:var(--sub);margin-left:4px}.unavailable{color:var(--sub)}.track:is(a):active,.song-card:active{background:color-mix(in srgb,var(--fill),transparent 65%)}
.search-box{display:flex;align-items:center;gap:12px;padding:0 16px;background:var(--card);border:1px solid var(--line);border-radius:28px;margin-bottom:16px;min-height:56px}.search-box>.icon{color:var(--sub)}.search{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);padding:16px 0;min-height:56px;outline-offset:0!important;border-radius:4px}.search::placeholder{color:var(--sub)}.filters{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;margin-bottom:16px}.select-field{display:inline-grid;position:relative;min-width:48px;max-width:100%;flex:0 0 auto}.select-size{grid-area:1/1;visibility:hidden;white-space:nowrap;font-size:.875rem;line-height:1.5;padding:12px 40px 12px 12px;border:1px solid transparent;min-height:48px;pointer-events:none}.select-field select{position:absolute;inset:0;height:100%;width:100%;min-width:0;max-width:100%;font-size:.875rem;min-height:48px;appearance:none;border:1px solid var(--line);background:var(--card);border-radius:16px;padding:12px 36px 12px 12px;color:var(--ink);text-overflow:ellipsis}.select-field>.icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--sub)}.readable-toggle{flex:0 0 auto;justify-content:flex-start;padding-inline:10px;gap:6px}.readable-toggle::before{content:'';width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;flex:none}.readable-toggle[aria-pressed=true]::before{content:'✓';display:grid;place-items:center;background:#242424;border-color:#242424;color:var(--fill);font-size:13px}.result-count{margin-bottom:16px}
.setcard{display:block;padding:20px;min-height:80px}.setcard h2{line-height:1.4;margin-bottom:8px;white-space:pre-line;overflow-wrap:break-word}.setcard .meta{font-weight:400}.newlist{display:flex;gap:8px;margin-bottom:24px}.newlist input{min-width:0;flex:1;min-height:48px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:16px;padding:12px 16px}.newlist .action{padding:12px 20px}main>a:not(.track):not(.card):not(.song-card){display:inline-flex;align-items:center;min-height:48px;padding:12px 16px;border-radius:24px}
.reader header{margin:0 0 4px;justify-content:space-between}.readerhead{text-align:center;padding:8px 0 24px}.readerhead h1{font-size:2rem;word-break:keep-all;overflow-wrap:anywhere;margin:8px 0 12px;line-height:1.3}.readerhead .badge{font-size:.75rem}.sheet{font-size:var(--font);line-height:1.65;overflow-wrap:anywhere;word-break:keep-all}.line{margin-bottom:6px;white-space:pre-wrap}.line.stanza{margin-top:24px}.chant{font-weight:700;color:var(--chant)}ruby{ruby-align:center;white-space:nowrap}rt{font-size:.7em;font-weight:700;color:var(--chant);padding-bottom:3px}.note{white-space:pre-line;font-size:.8125rem;color:var(--sub);margin-bottom:8px}.reader>.textbutton{margin-top:24px}.pager{display:flex;align-items:center;justify-content:space-between;background:var(--bg);position:fixed;bottom:0;left:0;right:0;padding:8px 16px calc(8px + env(safe-area-inset-bottom));gap:12px;font-size:.875rem;color:var(--sub);z-index:10}.pager a{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:12px 16px;border-radius:24px}.pager a:hover{background:var(--card)}.empty{padding:40px 16px;text-align:center;color:var(--sub)}
.setting{padding:20px;margin-bottom:16px;display:grid;gap:16px}.setting select,.setting input{width:100%;min-width:0;min-height:48px}.setting select{color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 16px}.setting p{line-height:1.65}.setting input[type=range]{accent-color:var(--chant)}.loading{padding:32px}#notice:not(:empty){position:fixed;bottom:calc(100px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;z-index:30;font-size:.875rem;line-height:1.5;pointer-events:none}dialog{border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);padding:24px;width:min(calc(100% - 32px),440px);max-height:calc(100% - 48px);overflow:auto}dialog::backdrop{background:#0007}dialog p{margin:16px 0;line-height:1.6}dialog select{width:100%;min-width:0;min-height:48px;margin:16px 0;padding:12px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px}dialog button{margin-top:8px}dialog a{display:inline-flex;align-items:center;min-height:48px;padding:12px 16px;color:var(--chant)}.credits{color:var(--sub);font-size:.875rem}
@media(min-width:600px){main{padding:24px 24px 120px}.readable-toggle{flex-basis:auto}.banner-copy{padding:24px}.banner-copy strong{font-size:2.5rem}.song-library{display:grid;grid-template-columns:1fr 1fr;gap:12px}.song-library .song-card{margin:0}.readerhead h1{font-size:2.25rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Expanded text must grow the surrounding controls, not clip inside them. */
:root{--nav-height:88px}.topbar{flex-wrap:wrap;margin-bottom:12px}.topbar h1{min-width:min-content;word-break:keep-all;overflow-wrap:anywhere}.section-heading{flex-wrap:wrap}.section-heading h2{min-width:min-content;word-break:keep-all;overflow-wrap:anywhere}.concert-banner{min-height:11rem}.banner-copy strong{font-size:clamp(18px,5.5vw,36px)}.navigation{flex-wrap:nowrap;align-items:stretch}.navigation a{flex:1 1 0;min-width:min-content;justify-content:flex-start;padding:6px 0 0}.nav-indicator{flex:none}.navigation a>span:last-child{white-space:normal;max-width:100%;text-align:center;overflow-wrap:normal}main{padding-bottom:calc(var(--nav-height) + 32px + env(safe-area-inset-bottom))}#notice:not(:empty){bottom:calc(var(--nav-height) + 16px + env(safe-area-inset-bottom))}
.topbar h1,.section-heading h2{overflow-wrap:break-word}

main>a.back.icon-button{width:48px;height:48px;padding:12px;border-radius:50%;background:var(--card)}

.chant-mark{width:6px;height:12px;flex:none;fill:none;stroke:var(--chant);stroke-width:2;stroke-linecap:round;overflow:visible}

.topbar h1{white-space:pre-line}

/* Trailing filters remain right-aligned after wrapping; keep touch targets. */
.filters>.readable-toggle{margin-inline-start:auto;max-width:100%;text-align:start}

.concert-heading{min-width:0}.concert-heading h1,.concert-heading h2{overflow-wrap:break-word;white-space:normal}
.concert-distinction{font-size:.9375rem;font-weight:500;line-height:1.5;color:var(--sub);margin-top:4px}
.setcard .concert-heading{margin-bottom:8px}.setcard .concert-heading h2{margin-bottom:0}.setcard .concert-distinction{font-size:.8125rem}
.concert-page-heading{margin:8px 0 12px;align-items:flex-start}

.offline-setting{padding:0 0 24px;gap:12px}.offline-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:4px 0}.offline-copy{flex:1;min-width:max-content}.offline-status{font-size:1rem;font-weight:550;line-height:1.5;white-space:nowrap}.offline-symbol{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--fill);color:#242424;font-size:17px;font-weight:600}.offline-actions{display:flex;justify-content:flex-end}.offline-retry{flex:none;min-height:44px;padding:10px 16px;border-radius:22px;color:var(--ink);font-size:.8125rem;background:color-mix(in srgb,var(--fill) 42%,var(--bg))}.offline-retry-pill{display:block}.offline-retry:hover{background:color-mix(in srgb,var(--fill) 65%,var(--bg))}.offline-row[data-state=saving] .offline-symbol{font-weight:400}

/* Reader pills stay compact. Extra hit area extends vertically only, never across siblings. */
.reader-set-actions{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:32px}
.reader-setpicker{display:flex;min-width:0;max-width:calc(100% - 56px);flex:0 1 auto;border-radius:16px}
.reader-setpicker .setpicker{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:44px;min-height:32px;border:0;border-radius:16px;padding:6px 10px;font-size:.75rem;line-height:1.5;background:var(--fill);color:#242424;cursor:pointer}
.setpicker-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setpicker>.icon{width:14px;height:14px;flex:none}.setpicker[aria-expanded=true]>.icon{transform:rotate(180deg)}
.setlist-menu{position:fixed;z-index:25;padding:6px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px #0002;overflow-y:auto;overscroll-behavior:contain}
.setlist-menu a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px;border-radius:10px;font-size:.875rem;line-height:1.5;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
.setlist-menu a>span:first-child{min-width:0}.setlist-menu-check{width:16px;flex:none;color:var(--chant)}.setlist-menu a[aria-current=page]{font-weight:650;background:color-mix(in srgb,var(--sub),transparent 90%)}
@media(hover:hover){.setlist-menu a:hover{background:color-mix(in srgb,var(--sub),transparent 88%)}}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.dialog-actions button{margin:0}
.set-add{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:48px;min-height:32px;padding:6px 12px;flex:none;color:#242424;background:var(--fill);border-radius:16px;font-size:.75rem;white-space:nowrap}
.set-add:active{filter:brightness(.96)}
.version-badge{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-height:24px;min-width:0;padding:4px 8px;margin-left:8px;line-height:1.4;border-radius:12px;background:color-mix(in srgb,var(--sub),transparent 89%)}
.readerhead .version-badge .badge{margin:0;padding:0;background:none;font-size:.6875rem;line-height:1.4}
.version-badge,.reader-setpicker .setpicker,.set-add{position:relative}
.version-badge::before,.reader-setpicker .setpicker::before,.set-add::before{content:"";position:absolute;left:0;right:0;top:-6px;bottom:-6px}
.version-badge::before{top:-10px;bottom:-10px}

/* Shared setlist flow: keep the reader in place while creating or copying. */
.setlist-section{margin:24px 0 32px}.setlist-section .setcard h3{font-size:1.125rem;margin-bottom:6px;overflow-wrap:anywhere}.setlist-section .concert-heading h3{margin-bottom:0}.setlist-section .empty-personal{padding:12px 0}.create-setlist{padding:10px 16px;border-radius:24px;font-size:.875rem}
.setlist-dialog{padding:0;width:min(calc(100% - 32px),480px);max-height:calc(100dvh - 32px);overflow:hidden;background:var(--bg)}
.setlist-dialog[open]{display:flex;flex-direction:column}
.setlist-dialog-header{padding:12px 12px 8px;margin:0;gap:4px;flex:none}
.setlist-dialog-header h2{font-size:1.125rem;flex:1;min-width:0;overflow-wrap:break-word;padding-left:8px}
.setlist-dialog-header .dialog-back{font-size:28px;padding:0}.setlist-dialog-header .dialog-close{font-size:26px;font-weight:400;padding:0}
.setlist-dialog button{margin-top:0}
.setlist-dialog-body{padding:8px 20px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.setlist-dialog .dialog-song{margin:0 0 20px;color:var(--sub);font-size:.875rem;overflow-wrap:anywhere}
.dialog-list-section{margin:0 0 24px}.dialog-list-section:last-child{margin-bottom:0}.dialog-list-section h3{margin:0 0 10px;font-size:.875rem;color:var(--sub);font-weight:600}
.setlist-choice,.new-setlist-choice{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border-radius:16px;background:var(--card);text-align:left;margin-bottom:8px;min-height:56px}
.new-setlist-choice{color:var(--chant);font-size:.9375rem}
.setlist-choice-label{flex:1;min-width:0;display:grid;gap:4px}.setlist-choice-title{font-size:.9375rem;font-weight:600;word-break:keep-all;overflow-wrap:anywhere}.setlist-choice-chevron{flex:none;color:var(--sub);font-size:24px}
.selected-setlist{padding:16px;background:var(--card);border-radius:16px;margin-bottom:24px}.selected-setlist h3{word-break:keep-all;overflow-wrap:anywhere}.setlist-dialog .selected-setlist p{margin:8px 0 0;font-size:.8125rem}
.inline-setlist-form{display:grid;gap:8px}.inline-setlist-form label{font-size:.875rem;font-weight:600}.inline-setlist-form input{width:100%;min-width:0;min-height:52px;border:1px solid var(--line);background:var(--card);color:var(--ink);padding:12px 14px;border-radius:14px;font-size:1rem}
.placement-section h3{font-size:.875rem;margin-bottom:10px}.placement-options{display:flex;flex-wrap:wrap;gap:8px}.placement-option{flex:1;min-width:max-content;min-height:48px;padding:10px 12px;border-radius:24px;background:var(--card);font-size:.875rem}.placement-option[aria-pressed=true]{background:var(--fill);color:#242424;font-weight:650}
.insertion-list{margin-top:16px;padding:4px;background:var(--card);border-radius:16px}.insertion-choice{display:flex;align-items:center;text-align:left;gap:12px;width:100%;min-height:52px;padding:12px;border-radius:12px;font-size:.875rem}.insertion-choice .number{flex:none;min-width:24px;text-align:center;color:var(--sub)}.insertion-song-name{flex:1;min-width:0;overflow-wrap:anywhere;word-break:keep-all}.insertion-hint{flex:none;margin-left:auto;white-space:nowrap;text-align:right;color:var(--sub);font-size:.8125rem}.insertion-choice[aria-pressed=true]{background:var(--fill);color:#242424}.insertion-choice[aria-pressed=true] :is(.number,.insertion-hint){color:#242424}
.setlist-dialog-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 20px max(16px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);flex:none}.setlist-dialog .dialog-submit{width:auto;border-radius:24px;min-height:48px;padding:12px 20px}.setlist-dialog .dialog-error{flex-basis:100%;font-size:.875rem;margin:0 0 10px;color:var(--ink)}
@media(max-width:600px){.setlist-dialog{width:100%;max-width:none;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)));margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0}.setlist-dialog-body{padding-inline:max(20px,env(safe-area-inset-left))}.setlist-dialog-header{padding-top:12px}}

/* Native hierarchy: title distinctions share title weight and ink. */
.concert-heading{--title-weight:600;color:var(--ink)}
.concert-heading>h1,.concert-heading>h2,.concert-heading>h3{font-weight:var(--title-weight);color:inherit}
.concert-distinction{font-weight:var(--title-weight);color:inherit}
.song-title,.trackname{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.song-title .badge,.trackname .badge{margin-left:0;align-self:center}
.section-actions,.toolbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.round-action{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none;color:#242424;background:var(--fill);border-radius:50%}
.round-action .icon{width:18px;height:18px}
.sort-icon-control{position:relative;width:44px;height:44px;display:grid;place-items:center;flex:none;color:var(--accent);border-radius:50%}
.sort-icon-control .icon{width:20px;height:20px}.sort-icon-control select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
:root[data-input-mode=keyboard] .sort-icon-control:has(select:focus-visible){outline:2px solid var(--chant);outline-offset:-3px}
.setlist-section .setcard{display:flex;align-items:center;gap:12px}.setcard-copy{flex:1;min-width:0}.setcard>.icon{width:18px;height:18px;color:var(--sub)}.setcard-copy>h3{font-weight:600}.setlist-more{width:100%;margin:0 0 16px;background:var(--card);color:var(--chant)}
.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-bottom:12px}.compact-action{min-height:44px;padding:10px 16px;font-size:.875rem;font-weight:600;color:#242424;display:inline-flex;align-items:center;justify-content:center;background:var(--fill);border-radius:22px}
.overflow-menu{position:relative}.overflow-menu>summary{list-style:none;cursor:pointer}.overflow-menu>summary::-webkit-details-marker{display:none}.overflow-actions{position:absolute;right:0;top:calc(100% + 4px);width:max-content;max-width:calc(100vw - 32px);padding:6px;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 28px #0002;border-radius:16px;z-index:20}.overflow-actions button{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:48px;width:100%;text-align:left;border-radius:12px;font-size:.9375rem}.menu-delete{color:#c5313b}.menu-delete .icon{width:20px;height:20px}
.personal-editor .setlist-dialog-header{gap:4px}.personal-editor .setlist-dialog-header h2{font-size:1rem;text-align:center;padding:0}.editor-cancel{font-size:.875rem;padding:10px 12px;color:var(--chant)}.personal-editor .editor-save{padding:10px 16px;min-height:48px;border-radius:24px;font-size:.875rem}
.editor-section-title{margin:24px 0 10px;font-size:.875rem;color:var(--sub)}.editor-selected-list{background:var(--card);border-radius:16px;overflow:hidden}.editor-song-row{display:flex;align-items:center;gap:4px;padding:4px 8px 4px 0;min-height:60px}.editor-song-row+.editor-song-row{border-top:1px solid var(--line)}.editor-song-row .number{width:20px;font-size:.75rem}.editor-remove{color:#c5313b}.editor-remove .icon{width:20px;height:20px;border-radius:50%;background:#c5313b;color:#fff;padding:3px;stroke-width:3}.editor-song-name{display:block;min-width:0;flex:1;overflow-wrap:anywhere;word-break:keep-all;font-size:.9375rem}.editor-move{position:relative;display:grid;place-items:center;width:48px;height:48px;flex:none;color:var(--sub)}.editor-move .icon{width:18px;height:18px}.editor-move select{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0}:root[data-input-mode=keyboard] .editor-move:has(select:focus-visible){outline:2px solid var(--chant);outline-offset:-3px;border-radius:12px}
.editor-search{width:100%;min-height:48px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);margin-bottom:12px}.editor-add-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 16px;min-height:64px;background:var(--card);border-bottom:1px solid var(--line)}.editor-add-row:first-child{border-radius:16px 16px 0 0}.editor-add-row:last-child{border-radius:0 0 16px 16px;border-bottom:0}.editor-add-row>span:first-child{min-width:0;flex:1;display:grid;gap:4px}.editor-add-state{font-size:22px;color:var(--chant);flex:none}.setlist-dialog .editor-empty{padding:16px;margin:0;color:var(--sub);font-size:.875rem}.personal-editor footer{display:flex;flex-wrap:wrap;gap:8px}.personal-editor footer>.dialog-error{flex-basis:100%}.personal-editor footer>button{flex:1 1 max-content}
.destructive-button{background:#c5313b;color:#fff;border-radius:24px;min-height:48px;padding:12px 20px;font-weight:600;font-size:.875rem}.delete-confirmation .setlist-dialog-body{padding-top:28px}.delete-confirmation h2{font-size:1.125rem}.setlist-dialog .delete-list-title{margin:12px 0;overflow-wrap:anywhere}.delete-confirmation footer{display:flex;gap:8px}.delete-confirmation footer>button{flex:1}
/* Grouped settings reproduce the iPhone form's ordering and controls. */
.settings-section{margin:0 0 24px;padding:0;display:block}.settings-caption{font-size:.8125rem;font-weight:500;line-height:1.5;color:var(--sub);margin:0 0 6px;padding:0 16px}.settings-group{background:var(--card);border-radius:16px;overflow:hidden}.settings-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;min-height:56px;text-align:left;font-size:.9375rem}.settings-row+.settings-row{border-top:1px solid var(--line)}.settings-label{flex:1;min-width:0;overflow-wrap:break-word;word-break:keep-all}.settings-footnote{font-size:.75rem;color:var(--sub);line-height:1.6;padding:0 16px;margin:8px 0 0}.theme-swatch{width:19px;height:19px;flex:none;border-radius:50%;border:1px solid #8884}.theme-check{flex:none;visibility:hidden;font-weight:650}.theme-choice[aria-pressed=true]{background:var(--fill);color:#242424;font-weight:600}.theme-choice[aria-pressed=true] .theme-check{visibility:visible}
.settings-segments{display:flex;gap:4px;padding:4px;background:color-mix(in srgb,var(--sub),transparent 88%)}.mode-choice{flex:1;min-width:0;padding:10px 8px;font-size:.875rem;border-radius:12px;min-height:48px}.mode-choice[aria-pressed=true]{background:var(--card);box-shadow:0 1px 4px #0002;font-weight:600}
.switch-row{position:relative;cursor:pointer}.settings-switch{position:absolute;width:51px;height:48px;right:14px;top:50%;transform:translateY(-50%);opacity:0;margin:0;cursor:pointer}.switch-track{position:relative;width:51px;height:31px;border-radius:18px;flex:none;background:color-mix(in srgb,var(--sub),transparent 65%);pointer-events:none}.switch-track::after{content:'';position:absolute;top:3px;left:3px;width:25px;height:25px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}.settings-switch:checked+.switch-track{background:var(--fill)}.settings-switch:checked+.switch-track::after{left:23px}:root[data-input-mode=keyboard] .settings-switch:focus-visible+.switch-track{outline:2px solid var(--chant);outline-offset:2px}
.font-adjustment{padding:16px;border-top:1px solid var(--line)}.font-range-label{display:flex;align-items:center;justify-content:space-between;font-size:.8125rem;color:var(--sub)}.font-adjustment input{width:100%;height:48px;accent-color:var(--accent);margin:0}.settings-lyric-sample{padding:16px;line-height:1.65;text-align:center}
.settings-section.offline-setting{padding:0;margin:0 0 24px}.offline-group .offline-row{padding:14px 16px;min-height:56px;flex-wrap:nowrap;gap:8px}.offline-group .offline-copy{min-width:0}.offline-group .offline-status{font-size:.9375rem;font-weight:400;white-space:normal}.offline-group .offline-symbol{width:24px;height:24px;font-size:16px;color:var(--chant);background:none;border:1.5px solid currentColor}.offline-group .offline-actions{padding:0;flex:none;margin-left:auto}.settings-chevron{font-size:22px;color:var(--sub);flex:none}.settings-link:active{background:color-mix(in srgb,var(--fill),transparent 60%)}
.privacy-page h1{font-size:1.5rem;line-height:1.35}.privacy-text{line-height:1.7;font-size:.875rem;padding:0 8px}.privacy-text h2{font-size:1rem;line-height:1.5}.privacy-text .meta{font-size:.75rem}.privacy-text p{margin-bottom:20px}.privacy-text ul{padding-left:20px;margin-bottom:24px}.privacy-text li{margin-bottom:12px}

/* Keep custom sizing discoverable while the system controls the preview. */
.font-adjustment.is-disabled{opacity:.42}
.font-adjustment input:disabled{cursor:not-allowed}
.settings-group>.settings-lyric-sample{margin:0;padding:16px;border-top:1px solid var(--line)}

.appearance-group{padding:0;background:transparent}.appearance-group .settings-segments{border-radius:24px}.appearance-group .mode-choice{border-radius:22px}

.banner-copy .banner-tag{margin-top:12px}

/* Album icons distinguish the web list; card surfaces stay neutral across themes. */
.album>summary{background:var(--card);gap:12px}
.album-mark{width:36px;height:40px;border-radius:10px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--sub) 9%,var(--card));color:var(--sub)}
.album-mark>.icon{width:22px;height:22px;stroke-width:1.6}
.album>.tracks{background:var(--card)}

.banner-copy .banner-date{font-size:.6875rem;font-style:normal;font-weight:600;letter-spacing:0;line-height:1.4;margin-top:6px;white-space:nowrap}
.banner-copy .banner-tag{margin-top:8px}

.concert-heading .concert-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.concert-title-row>h1,.concert-title-row>h3{margin:0;min-width:0}.concert-title-row>.badge{margin:0;flex:none}

/* Local backup sits between offline storage and app information. */
.backup-action{border-radius:0}.backup-symbol{color:var(--chant);width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.backup-action:disabled{opacity:.45}
.backup-dialog .setlist-dialog-body{padding-top:28px}.backup-dialog h2{font-size:1.125rem}.backup-summary{margin:16px 0 8px}.backup-dialog .meta{font-size:.875rem;line-height:1.6;margin:8px 0}.backup-dialog footer{display:flex;gap:12px}.backup-dialog footer button{flex:1;min-height:48px}.backup-cancel{border-radius:24px;background:var(--card)}
.settings-copyright{word-break:keep-all;overflow-wrap:anywhere}.settings-copyright p{margin:0}.settings-copyright p+p{margin-top:20px}

@media(hover:none){.icon-button:hover,.textbutton:hover{background:none}.offline-retry:hover{background:color-mix(in srgb,var(--fill) 42%,var(--bg))}}

.credit-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:16px 16px;margin:24px 0;font-size:.875rem;line-height:1.65}.credit-list dt{font-weight:700;color:var(--ink)}.credit-list dd{margin:0;min-width:0;font-weight:400;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}

/* Search options stay tucked away until requested; controls remain left-aligned. */
.scoped-search{display:block;padding:0 12px;border-radius:28px}.search-input-row{display:flex;align-items:center;gap:8px;min-height:56px}.search-input-row>.icon{width:20px;height:20px;color:var(--sub);flex:none}.search-input-row .search{flex:1;min-width:0;width:0}.search-input-row .search::-webkit-search-cancel-button{display:none}
.search-clear{width:44px;min-width:44px;min-height:44px;padding:8px 4px;border-radius:22px;color:var(--sub);font-size:22px;flex:none}.search-options-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;gap:4px;flex:none;min-height:44px;min-width:44px;padding:10px 8px;border-radius:22px;font-size:.8125rem;color:var(--chant)}.search-options-toggle>.icon{width:20px;height:20px}.search-options-toggle[aria-expanded=true]{background:var(--fill);color:#242424}
.search-scopes{border:0;border-top:1px solid var(--line);margin:0;min-width:0;padding:4px 0;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:0 12px;font-size:.875rem}.scope-option{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:44px;min-height:44px;cursor:pointer;white-space:nowrap;color:var(--sub)}.scope-option input{appearance:none;position:relative;flex:none;width:18px;height:18px;border:1.5px solid var(--sub);border-radius:5px;margin:0;background:transparent}.scope-option input:checked{background:var(--fill);border-color:var(--fill)}.scope-option input:checked::after{content:'';position:absolute;width:8px;height:4px;border-left:2px solid #242424;border-bottom:2px solid #242424;transform:rotate(-45deg);left:3px;top:4px}.scope-option:has(input:checked){color:var(--ink);font-weight:600}.scope-option:has(input:disabled){cursor:default}
.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}

/* Match the native language row; keep the selector comfortably tappable. */
.language-row select{max-width:55%;min-height:44px;border:0;background:transparent;color:var(--ink);font:inherit;padding:8px 24px 8px 8px;text-align:end;cursor:pointer}
.language-row select option{background:var(--card);color:var(--ink)}

/* Contain wheel/touch scrolling at modal edges, including long credits. */
dialog{overscroll-behavior:contain}
.setlist-dialog-body{-webkit-overflow-scrolling:touch}

/* Stack credit roles above names when narrow or enlarged text needs more room. */
.info-dialog{container-type:inline-size}
@container (max-width:18em){.credit-list{grid-template-columns:minmax(0,1fr);gap:4px}.credit-list dt:not(:first-child){margin-top:12px}}

/* Compact filtering controls: 32px visible pills, at least 44px vertical hit targets. */
.filters{align-items:center;padding-block:6px;min-height:44px}
.chips{padding-block:10px 12px}
.chip{position:relative;min-height:32px;padding:6px 12px;border-radius:999px;font-size:.75rem;line-height:1.5;gap:6px}
.chip::after{content:"";position:absolute;inset:-6px 0}
.readable-toggle{padding-inline:10px}
.readable-toggle::before{width:14px;height:14px;border-radius:50%}
.readable-toggle[aria-pressed=true]::before{font-size:11px}
.select-field{background:var(--card);border:1px solid var(--line);border-radius:999px}
.select-size{font-size:.75rem;min-height:30px;border:0;padding:6px 30px 6px 10px}
.select-field select{inset:-6px 0;height:calc(100% + 12px);min-height:44px;padding:6px 28px 6px 10px;font-size:.75rem;border:0;border-radius:999px;background:transparent}
.select-field>.icon{right:10px;width:14px;height:14px;pointer-events:none}
:root[data-input-mode=keyboard] .select-field:has(select:focus-visible){outline:2px solid var(--chant);outline-offset:2px}
:root[data-input-mode=keyboard] .select-field select:focus-visible{outline:none}
/* The measured bottom bar includes its safe-area padding, including in the reader. */
main.reader{padding-top:calc(64px + env(safe-area-inset-top));padding-bottom:calc(var(--nav-height) + 24px)}
.reader .reader-toolbar{position:fixed;inset:0 0 auto;z-index:15;margin:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;min-height:calc(56px + env(safe-area-inset-top));padding:calc(6px + env(safe-area-inset-top)) max(16px,calc((100vw - 672px)/2),env(safe-area-inset-right)) 6px max(16px,calc((100vw - 672px)/2),env(safe-area-inset-left));isolation:isolate}
.reader-toolbar::before{content:"";position:absolute;inset:0;background:var(--bg);opacity:0;transition:opacity .16s ease;z-index:-1;pointer-events:none}
.reader-toolbar.is-scrolled::before{opacity:1}
.reader-toolbar .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
.reader-toolbar-title{min-width:0;text-align:center;font-size:.9375rem;font-weight:650;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;visibility:hidden;transition:opacity .16s ease,visibility .16s;pointer-events:none}
.reader-toolbar.is-scrolled .reader-toolbar-title{opacity:1;visibility:visible}
.swipe-reader{touch-action:pan-y pinch-zoom}
.pager{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
.pager>a:first-child{justify-self:start}.pager>a:last-child{justify-self:end}
.pager a{padding:10px 8px;min-width:0;text-align:center}
@media(prefers-reduced-motion:reduce){.reader-toolbar::before,.reader-toolbar-title{transition:none}}

/* Keep tab labels while reducing chrome; each tab still has a 48px target. */
.navigation{padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom))}
.navigation a{min-height:48px;padding:0;justify-content:center;gap:2px;font-size:.6875rem;line-height:1.35}
.nav-indicator{width:48px;height:26px;border-radius:16px}
.navigation .icon{width:22px;height:22px}

/* A ready-to-install update belongs in the home header, away from reading/editing. */
#app-update{position:relative;flex:none;margin-left:auto;min-height:32px;padding:6px 12px;border-radius:999px;background:var(--fill);color:#242424;font-size:.75rem;font-weight:600}
#app-update::before{content:"";position:absolute;inset:-6px 0}
body:has(dialog[open]) #app-update{visibility:hidden;pointer-events:none}

/* Search input and its filters form one compact group; keep 6px touch slop clear. */
.scoped-search{margin-bottom:4px}

/* Keep title distinctions as whole wrapping units, with their smaller type size. */
.concert-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.concert-heading .concert-title-row{flex:0 1 auto;max-width:100%}
.concert-heading .concert-title-tail{display:flex;align-items:center;gap:8px;flex:0 0 auto;width:max-content;max-width:100%}
.concert-heading .concert-title-tail>.badge{flex:none;margin:0}
.concert-heading .concert-distinction{min-width:0;max-width:100%;margin:0}

.privacy-text>a{overflow-wrap:anywhere}

/* Concert labels wrap together below the song title when space is limited. */
.track-title{max-width:100%;min-width:0}
.setlist-song-badges{display:inline-flex;flex:none;align-items:center;gap:6px;white-space:nowrap}

/* The page and its scrollbar stop above the measured fixed bottom bar. */
html,body{height:100%;overflow:hidden}
body{height:100dvh;display:flex;flex-direction:column}
#app{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
#app-bottom{flex:none;position:relative;z-index:10}
#app-bottom>.navigation,#app-bottom>.pager{position:relative;inset:auto}
#app>main{padding-bottom:24px}

/* Compact setlist cards keep titles readable and all metadata visible. */
.setlists-page>header{margin-bottom:16px}
.setlist-section{margin:16px 0 24px}
.setlist-section .section-heading{margin-bottom:4px;min-height:32px}
.setlist-section .setcard{padding:12px 14px;min-height:64px;margin-bottom:6px;border-radius:16px;gap:10px}
.setlist-section .setcard h3{font-size:1rem;line-height:1.4;margin-bottom:3px}
.setlist-section .concert-heading{margin-bottom:4px;row-gap:2px}
.setlist-section .concert-heading h3{margin-bottom:0}
.setlist-section .setcard .meta{line-height:1.4}

/* Three-line reorder handles support touch without scrolling the sheet underneath. */
.editor-move{border:0;background:none;padding:12px;min-width:44px;width:44px;min-height:48px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.editor-move .icon{width:20px;height:20px}
.editor-song-row.is-dragging{opacity:.25;background:var(--fill)}
.editor-drag-ghost{position:fixed;z-index:5;pointer-events:none;margin:0!important;border:1px solid var(--line)!important;border-radius:12px;background:var(--card);box-shadow:0 8px 24px #0003;opacity:.97}
.is-reordering,.is-reordering *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}

.sort-icon-control select{min-width:0;max-width:100%;padding:0}
.sort-icon-control{overflow:hidden}

/* Keep each home heading close to its contents. */
.home-page .concerts+.home-section{margin-top:0}
.home-page .home-section .section-heading{min-height:32px;margin-bottom:4px}
.home-page .section-heading .textbutton{min-height:32px;padding:4px 12px}
.home-page .home-section>.chips{padding-block:4px 6px;margin-bottom:0}

.setlist-section .section-actions{gap:6px}
.setlist-section :is(.sort-icon-control,.create-setlist){width:32px;height:32px;min-width:32px;min-height:32px;padding:0}
.setlist-section :is(.sort-icon-control,.create-setlist) .icon{width:16px;height:16px}
