:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    --ink: #182b27;
    --muted: #4f625b;
    --background: #f5f7f2;
    --surface: #fff;
    --soft: #edf2eb;
    --accent: #285d4f;
    --strong: #21483e;
    --line: #cdd9d0;
    --warm: #fbedd1;
    --warm-ink: #64420b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); }
a { color: var(--accent); text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.24; letter-spacing: -.02em; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid #19775e; outline-offset: 3px; }
.wrap { width: min(100% - 34px, 860px); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .heading-row, .actions, .list-row, .number-row, .event-facts, .pager {
    display: flex; align-items: center; gap: .75rem;
}
.top-inner { min-height: 4.25rem; }
.brand { display: flex; align-items:center; gap: .6rem; font-weight: 720; text-decoration: none; }
.mark { display: grid; place-items:center; width: 2.25rem; height: 2.25rem; border-radius: .62rem; color: white; background: var(--accent); font-size: 1.25rem; }
.identity { margin-left:auto; color: var(--muted); font-size:.875rem; overflow-wrap:anywhere; }
.logout { margin:0; }
.tabs { display:flex; flex-wrap:wrap; gap:.3rem; padding-top:.7rem; border-bottom:1px solid var(--line); }
.tabs a { padding:.65rem .82rem; text-decoration:none; font-weight:600; color:var(--muted); border-bottom:3px solid transparent; }
.tabs a[aria-current] { color:var(--accent); border-bottom-color:var(--accent); }
main.wrap { padding-top: clamp(1.2rem, 4vw, 2rem); padding-bottom: 3rem; }
.heading-row { justify-content: space-between; flex-wrap:wrap; }
.actions { flex-wrap:wrap; }
.filters { display:flex; gap:.4rem; margin-top:1rem; margin-bottom:.85rem; flex-wrap:wrap; }
.filter { display:inline-flex; align-items:center; padding:.3rem .75rem; min-height:2.35rem; border:1px solid var(--line); border-radius:2rem; background:var(--surface); text-decoration:none; font-size:.875rem; }
.filter.active { background: #dcebe1; border-color:#c3d7c8; font-weight:650; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:.56rem .9rem; min-height:2.75rem; border:1px solid var(--line); border-radius:.58rem; background:var(--surface); color:var(--accent); text-decoration:none; font-size:.92rem; font-weight:650; text-align:center; }
.button.primary { color:#fff; background:var(--accent); border-color:var(--accent); }
.button.compact { min-height:2.35rem; padding:.32rem .62rem; }
.button.on-dark { background:#eff6ed; color:var(--strong); }
.button:hover, .list-row:hover:is(a) { border-color:var(--accent); }
.hero { position:relative; isolation:isolate; display:grid; justify-items:start; gap:.7rem; margin:.9rem 0 1.1rem; padding:clamp(1.05rem,4vw,1.9rem); overflow:hidden; background:var(--strong); color:#f8fff8; border-radius:1rem; }
.hero:after { content:""; position:absolute; z-index:-1; right:-8rem; top:-11rem; width:25rem; aspect-ratio:1; border-radius:50%; background:repeating-radial-gradient(circle,transparent 0 22px,#91ba9f 23px 24px,transparent 25px 32px); opacity:.21; }
.hero h2 { font-size:clamp(1.55rem,4vw,2.4rem); max-width:32ch; overflow-wrap:anywhere; }
.hero-date { color:#d5ead9; font-size:.95rem; }
.hero .button { margin-top:.3rem; }
.listing { display:grid; gap:.48rem; margin:.7rem 0; }
.list-row, .number-row, .panel, .notice { padding:.76rem .9rem; border:1px solid var(--line); border-radius:.72rem; color:var(--ink); background:var(--surface); }
a.list-row { text-decoration:none; }
.row-main { flex:1; min-width:0; display:grid; gap:.15rem; overflow-wrap:anywhere; }
.row-main strong, .item-title { font-weight:680; }
.item-title { color:var(--ink); }
.row-side { flex:0 0 auto; display:grid; justify-items:end; gap:.28rem; text-align:right; }
.row-side a { font-size:.875rem; }
.meta, small { color:var(--muted); }
.meta { font-size:.9rem; }
small { font-size:.8rem; }
.status { display:inline-flex; padding:.18rem .48rem; border-radius:.35rem; background:var(--soft); color:var(--muted); font-size:.875rem; line-height:1.28; }
.status.complete, .notice.ok { color:#285746; background:#e4f1e7; }
.status.attention, .notice.error { color:var(--warm-ink); background:var(--warm); }
.notice { margin:.6rem 0; }
.section { margin-top:1.65rem; }
.calendar-heading { margin:1.1rem 0 .7rem; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.35rem; }
.calendar-weekday { padding:.35rem; color:var(--muted); font-size:.8rem; font-weight:650; }
.calendar-day { min-height:5.2rem; min-width:0; padding:.35rem; border:1px solid var(--line); border-radius:.55rem; background:var(--surface); }
.calendar-past { background:var(--soft); }
.calendar-today { border-color:var(--accent); }
.calendar-date { display:block; margin-bottom:.2rem; font-size:.84rem; font-weight:650; }
.calendar-date span { display:none; }
.calendar-event { display:grid; gap:.3rem; padding:.34rem; margin:.25rem 0; border-radius:.35rem; background:var(--surface); color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.calendar-event:hover { text-decoration:underline; }
.calendar-event strong { font-size:.82rem; line-height:1.2; }
.calendar-event .status { justify-self:start; font-size:.68rem; }
.event-statistics { display:flex; flex-wrap:wrap; gap:.4rem 1rem; }
@media (max-width:620px) {
    .calendar-grid { display:block; }
    .calendar-day:not(.has-events), .calendar-weekday, .calendar-spacer { display:none; }
    .calendar-day { margin:.5rem 0; min-height:0; padding:.5rem; }
    .calendar-date span { display:inline; }
    .calendar-event strong { font-size:.95rem; }
}
.back { margin-bottom:.58rem; font-size:.9rem; }
.event-intro { padding:.95rem 1rem; border-radius:.9rem; background:var(--surface); border:1px solid var(--line); }
.event-intro h1 { margin:.32rem 0 .76rem; font-size:clamp(1.8rem,5vw,2.55rem); }
.event-facts { flex-wrap:wrap; color:var(--muted); font-size:.9rem; }
.order { display:grid; place-items:center; min-width:2.35rem; min-height:2.35rem; border-radius:.45rem; color:var(--accent); background:var(--soft); font-weight:700; font-variant-numeric:tabular-nums; }
.search { display:flex; align-items:stretch; gap:.55rem; margin:1.15rem 0 .5rem; }
.search label { flex:1; min-width:0; }
.count { margin-top:.45rem; }
.pager { justify-content:space-between; margin-top:.9rem; }
.editor { display:grid; gap:.85rem; max-width:680px; padding:1rem; margin-top:1rem; border:1px solid var(--line); border-radius:.85rem; background:var(--surface); }
.editor label { display:grid; gap:.25rem; font-weight:600; }
input, select, textarea { width:100%; min-width:0; min-height:2.75rem; padding:.46rem .65rem; border:1px solid var(--line); border-radius:.48rem; color:var(--ink); background:var(--surface); }
.editor .check-field { display:flex; align-items:center; gap:.6rem; width:fit-content; }
.invitation-link { margin:.4rem 0; }
.invitation-link input { flex:1 1 17rem; }
.check-field input[type="checkbox"] { width:1.15rem; min-height:1.15rem; margin:.25rem; accent-color:var(--accent); }
.collection-checks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.4rem .8rem; }
.collection-checks .check-field { display:flex; align-items:flex-start; gap:.45rem; width:fit-content; overflow-wrap:anywhere; }
.collection-checks input { flex:none; }
.collection-filter-fields { display:grid; gap:.65rem; margin-top:.65rem; }
.collection-song-filters summary { cursor:pointer; font-weight:650; }
.completion-row { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.45rem 0; overflow-wrap:anywhere; }
.completion-row + .completion-row { border-top:1px solid var(--line); }
.completion-lyrics { width:auto; flex:0 0 min(45%,10rem); }
.number-row:target { outline:2px solid var(--accent); outline-offset:2px; }
select { appearance:none; padding-right:1.9rem; background-image:url("chevron.svg"); background-size:12px; background-repeat:no-repeat; background-position:right .65rem center; }
.form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
fieldset { min-width:0; padding:.75rem; border:1px solid var(--line); border-radius:.65rem; }
legend { padding-inline:.25rem; font-weight:650; }
.person-row { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap:.5rem; align-items:end; margin-bottom:.65rem; }
.person-row.has-vocal-role { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto; }
[data-people] { margin-top:.75rem; }
.preserve { white-space: pre-wrap; overflow-wrap:anywhere; margin-top:.4rem; }
.login-panel { width:min(100%,27rem); margin: clamp(1rem, 8vh,4rem) auto; }
.login-panel h1 { font-size:clamp(1.95rem,6vw,2.6rem); }
.sr-only, .skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip:focus { position:absolute; z-index:2; left:1rem; top:.4rem; background:white; padding:.55rem; }
@media (max-width:550px) {
    .wrap { width: min(100% - 24px, 860px); }
    .top-inner { gap:.45rem; min-height:3.75rem; }
    .brand { white-space:nowrap; }
    .identity { max-width:40%; }
    .person-row, .person-row.has-vocal-role { grid-template-columns:1fr; }
    .number-row { gap:.48rem; padding:.65rem; }
    .row-side .status { max-width:6.25rem; }
}
