.pinned-section{margin:0 0 30px}.pinned-section>h2{font-size:1.05rem;margin:15px 0}.pinned-section .event-card{border-color:var(--brand)}.profile-thumb{width:100%;height:100%;border-radius:50%;object-fit:cover}.profile-large{width:128px;height:128px;object-fit:cover;border-radius:24px}.profile-heading{display:flex;gap:24px;align-items:center;margin-bottom:22px}.profile-panel .actions{flex-wrap:wrap}.extra-settings{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.extra-settings .check{margin:14px 0}.access-field{border:1px solid var(--line);padding:18px;border-radius:12px;margin:20px 0}.access-field legend{font-weight:600}.access-field details{margin-top:12px}.access-field h4{margin:15px 0 8px}.folder-card>.btn{align-self:start;margin-top:14px}.contact-card footer{flex-wrap:wrap;gap:10px}.birthday-card{position:relative;isolation:isolate;overflow:hidden;border:2px solid #dbb957;background:linear-gradient(135deg,#fffaf0,#f0f7ff)}.birthday-caption{font-size:.8rem;font-weight:600;color:#765318;margin:0 0 12px}.birthday-confetti{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;display:block}.confetti-piece{position:absolute;top:-14px;width:6px;height:11px;flex-shrink:0;animation:confetti-fall 6s linear infinite}.c0{background:#da5476;animation-delay:-1s}.c1{background:#e7b320;animation-delay:-3.5s}.c2{background:#3ca6b1;animation-delay:-2.3s}.c3{background:#7e65c5;animation-delay:-4.8s}.c4{background:#e48c3a;animation-delay:-.4s}.c5{background:#649e58;animation-delay:-5.5s}.confetti-piece:nth-child(odd){animation-duration:8s}.confetti-piece:nth-child(3n){width:4px;height:6px}.markdown{overflow-wrap:anywhere;line-height:1.7}.markdown pre{white-space:pre-wrap;background:var(--soft);padding:16px;border-radius:8px}.markdown blockquote{border-left:3px solid var(--brand);margin-left:0;padding-left:18px}.markdown-editor{font-family:ui-monospace,monospace}.account-name{text-decoration:none;color:inherit}.instrument-row>.actions{flex-wrap:wrap}.instrument-row small{display:block}.detail-title>.actions{flex-wrap:wrap;margin-top:18px}
@keyframes confetti-fall{0%{transform:translate3d(0,-20px,0) rotate(var(--start));opacity:0}5%{opacity:1}30%{transform:translate3d(var(--sway),150px,0) rotate(170deg)}65%{transform:translate3d(var(--drift),340px,0) rotate(390deg);opacity:.9}100%{transform:translate3d(var(--sway),550px,0) rotate(var(--turn));opacity:.4}}
@media(prefers-reduced-motion:reduce){.confetti-piece{animation:none;top:12px;transform:rotate(25deg)}.confetti-piece:nth-child(even){top:50px;transform:rotate(-30deg)}}
@media(max-width:680px){.profile-heading{gap:15px}.instrument-row{flex-wrap:wrap;gap:12px}.access-field{padding:12px}.profile-large{width:96px;height:96px}}
.maintenance-banner{padding:16px 24px;background:#fff1ce;color:#634707;border-bottom:1px solid #dfc982;line-height:1.5}.csv-drop{display:flex;flex-direction:column;gap:12px;margin:20px 0}.csv-drop input{max-width:100%}.panel .actions{flex-wrap:wrap}

.account-photo{border:0;cursor:pointer;padding:0;flex-shrink:0}.account-photo:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.document-check{width:1.15em;height:1.15em;vertical-align:middle;margin-right:.6em}.csv-drop{cursor:pointer}

@media(max-width:680px){.page-head.gallery-head{flex-direction:column;align-items:stretch}.gallery-head>.actions{width:100%}.gallery-head>.actions>.btn{flex:1}}

.profile-photo-button{background:transparent;border-radius:24px}.profile-photo-button img{display:block}

.address-editor{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0}
.address-editor legend{font-weight:600}
.address-editor .field-grid{margin:0}
.gallery-breadcrumb{flex-wrap:wrap}
.gallery-grid,.gallery-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;align-items:start}
.gallery-grid:empty,.gallery-folders:empty,.file-subfolders:empty{display:none}
.gallery-folders,.file-subfolders{margin-bottom:24px}
.gallery-item{min-width:0;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:14px;overflow:hidden}
.gallery-grid>.gallery-photo{border:0;background:transparent;line-height:0}
.gallery-tile{display:block;width:100%;padding:0;border:0;background:transparent;border-radius:14px;overflow:hidden;cursor:pointer}
.gallery-tile:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.gallery-tile img,.gallery-cover{display:block;width:100%;height:auto;object-fit:contain;border-radius:14px}
.gallery-tile p{line-height:1.5;padding:20px}
.gallery-cover{border-radius:10px}
.gallery-caption{padding:18px}
.gallery-caption h3{margin:0 0 14px;overflow-wrap:anywhere}
.gallery-caption .actions{flex-wrap:wrap}
.gallery-large{display:block;max-width:100%;max-height:75vh;margin:auto;object-fit:contain;border-radius:14px}
.youtube-player{width:100%;aspect-ratio:16/9;border:0}
.contact-card[data-contact-detail]{cursor:pointer}
.profile-placeholder{width:128px;height:128px;flex-shrink:0;font-size:2rem}
.contact-detail .profile-heading>div{min-width:0;overflow-wrap:anywhere}
.contact-detail a{overflow-wrap:anywhere}
.manual-sort-row{gap:12px;cursor:grab}
.manual-sort-row strong{overflow-wrap:anywhere}
@media(max-width:500px){
 .gallery-grid,.gallery-folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .gallery-folders>.folder-card,.address-editor{padding:12px}
 .gallery-folders h2{font-size:1rem;overflow-wrap:anywhere}
 .gallery-caption{padding:10px}
 .gallery-caption h3{font-size:.9rem}
 .gallery-caption .btn{font-size:.72rem;padding:7px}
 .profile-placeholder{width:96px;height:96px}
 .manual-sort-row{flex-wrap:wrap}
}
.library-video-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.library-video-row>.actions{flex-wrap:wrap}.library-video-row>strong{min-width:0;overflow-wrap:anywhere}
.library-video-row .btn{width:auto;padding:9px 14px;min-height:40px}.library-video-row .actions{gap:8px}
.folder-grid{--dense-min:280px}.gallery-grid,.gallery-folders{--dense-min:230px}.dense-grid{display:block!important;position:relative;columns:auto!important}.dense-grid>.dense-card{position:absolute;box-sizing:border-box;margin:0!important;min-width:0}.dense-image-pending{aspect-ratio:1;object-fit:contain}.dense-grid>.empty{position:static}
@media(max-width:500px){.gallery-grid,.gallery-folders{--dense-columns:2}}

/* Inline players load with the open folder, without autoplay. */
.youtube-player{display:block;min-height:200px;background:#000}.library-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px}.library-video{min-width:0}.library-video-row{margin-bottom:12px;min-height:40px}.library-video-row h3{margin:0;min-width:0;overflow-wrap:anywhere}.library-video .youtube-player{border-radius:12px}
@media(max-width:500px){.gallery-grid>.gallery-video{grid-column:1/-1}}

.stats.with-maybe{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1150px){.stats.with-maybe{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gallery-recordings{margin:26px 0}.gallery-recordings>h2{font-size:1.15rem;margin:0 0 14px}.gallery-audio-list{display:flex;flex-direction:column;gap:12px}.gallery-audio-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;padding:16px 20px;border-radius:14px;width:100%;box-sizing:border-box}.gallery-audio-name{display:flex;align-items:center;gap:12px;flex:1 1 220px;min-width:0}.gallery-audio-name>.icon{flex:none;color:var(--link)}.gallery-audio-name h3{margin:0;font-size:1rem;overflow-wrap:anywhere;line-height:1.4}.gallery-audio-controls{margin-left:auto;flex:0 0 330px;max-width:100%;min-width:0}.gallery-audio-controls audio{display:block;width:100%;height:44px;min-width:0}.gallery-audio-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.gallery-audio-error{flex-basis:100%;margin:0!important}.gallery-hidden-photo .gallery-tile{position:relative}.gallery-hidden-photo img{opacity:.6}.gallery-hidden-tag{position:absolute;bottom:9px;left:9px;right:9px;line-height:1.4;background:#fff8db;color:#74500c;padding:6px 10px;border-radius:9px;font-size:.75rem;font-weight:600;pointer-events:none}
@media(max-width:760px){.gallery-audio-row{padding:14px;gap:12px}.gallery-audio-name{flex-basis:100%}.gallery-audio-controls{margin-left:0;flex:1 1 100%}.gallery-audio-actions{width:100%;justify-content:flex-end}}

.person-name-link{color:inherit;text-decoration:none}.person-name-link:hover{text-decoration:underline}.avatar.account-photo{text-decoration:none}.voice-person{display:flex;align-items:center;gap:9px;min-width:0}.voice-person .avatar{width:30px;height:30px;font-size:.7rem;flex:none}.profile-full{display:block;width:min(100%,1080px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:18px;margin:auto}.profile-photo-button{display:block;line-height:0;border-radius:24px}.profile-photo-button:hover{outline:2px solid var(--brand);outline-offset:3px}.profile-photo-button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

.voice-person .person-name-link{min-width:0;overflow-wrap:anywhere}.voice-member>.badge{flex-shrink:0;align-self:flex-start}.voice-card h3{min-width:0;overflow-wrap:anywhere}
@media(max-width:1150px){.voice-grid{grid-template-columns:minmax(0,1fr)}}

.audit-event{overflow-wrap:anywhere}.audit-event a{font-weight:600}.last-online time{display:block;min-width:96px}
.user-activity-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:14px}.user-activity-tools p{margin:0}

.choir-management-list{display:grid;gap:16px}.choir-management-card{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:18px 0;min-width:0}.choir-management-card img{width:76px;height:76px;object-fit:contain;border-radius:12px}.choir-management-card h3{margin:0}.choir-management-card p{overflow-wrap:anywhere}.choir-management-card>.actions{margin-left:auto;flex-wrap:wrap}.choir-unavailable{opacity:.55}input[type=color]{height:45px;padding:5px}@media(max-width:600px){.choir-management-card{flex-wrap:wrap}.choir-management-card>.actions{margin-left:0;width:100%}}

#letter-form code,#letter-job-status{overflow-wrap:anywhere;word-break:break-word}

.permission-sections{display:grid;gap:8px;margin:10px 0 16px}
.permission-section{border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.permission-section>summary{cursor:pointer;font-weight:700}
.permission-scope{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:12px}
.permission-scope fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px}
.permission-scope legend{padding-inline:4px;font-weight:600}
.collection-card-link{display:grid;justify-items:start;gap:6px;text-decoration:none;color:inherit;min-width:0;align-content:start}
.collection-card-link h2,.collection-card-link p{margin:0;overflow-wrap:anywhere}
.collection-card-link:hover h2{text-decoration:underline}
.collection-scope-label{margin:12px 0}
.collection-other:empty{display:none}
.collection-other{margin-top:28px}
.collection-scope .pinned-section{margin-bottom:20px}
.profile-crop-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:center;justify-items:center}
.profile-crop-layout figure{margin:0;text-align:center;min-width:0}
.profile-crop-layout figcaption{font-size:.85rem;margin-top:5px}
.profile-crop-source,.profile-crop-preview{display:block;max-width:100%;max-height:48vh;object-fit:contain;border-radius:8px}
.profile-crop-source{touch-action:none;cursor:move;background:#152127}
.profile-crop-preview{aspect-ratio:1}
.profile-crop-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:16px}
.profile-crop-controls input{width:100%;accent-color:var(--brand)}
@media(max-width:480px){.profile-crop-layout{grid-template-columns:minmax(0,1fr) minmax(0,100px);gap:8px}.profile-crop-controls{grid-template-columns:1fr;gap:4px}}

:where(.folder-card[data-collection]){position:relative}
.collection-card-link::after{content:"";position:absolute;inset:0}
.folder-card[data-collection]>.actions{position:relative;pointer-events:none}
.folder-card[data-collection]>.actions>.btn{pointer-events:auto}
.login-help{white-space:pre-wrap;overflow-wrap:anywhere}

.notification-nav{display:flex;align-items:center;gap:10px;color:inherit;padding:12px 4px;text-decoration:none;border-radius:8px}.notification-nav.active,.notification-nav:hover{background:#ffffff18}.notification-options{display:grid;gap:12px;margin:20px 0}.notification-device{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:15px 0}.notification-entry{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:18px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.notification-entry>a{font-weight:600}.message-card{scroll-margin-top:90px}

.notification-option-hint{display:block;color:var(--muted);font-weight:400;margin-top:4px}.collection-counts{display:flex;flex-wrap:wrap;gap:6px}.library-entry{cursor:pointer}.library-create-actions{margin-top:16px;justify-content:space-between}.howto-media{margin:24px 0;max-width:100%}.howto-image{display:block;border:0;padding:0;background:transparent;max-width:min(240px,100%);cursor:zoom-in}.howto-image img{display:block;max-width:100%;max-height:160px;width:auto;height:auto;object-fit:contain;border-radius:12px}.howto-media .youtube-player{border-radius:12px}.howto-media-editor{border:1px solid var(--line);border-radius:12px;padding:18px;margin:20px 0}.howto-media-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:12px 0}.howto-media-controls label{flex:1;min-width:min(220px,100%)}

@media(max-width:600px){.howto-file{flex-wrap:wrap;gap:12px}.howto-file>.file-name{flex-basis:100%}.howto-file>.actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-start}}

.howto-file>.actions .btn{width:auto;padding:7px 10px}
.file-search-result { color: var(--ink); }
.file-search-result:hover .file-name strong { color: var(--link); }
.account-mobile-label { display: none; }
@media (max-width: 850px) {
    .admin-users #user-list .table-scroll { overflow: visible; }
    .account-table { display: block; }
    .account-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .account-table tbody { display: block; }
    .account-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "person person" "actions actions" "choirs choirs" "status online";
        gap: 8px 12px;
        padding: 14px 0;
        border-top: 1px solid var(--line);
    }
    .account-table tbody td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
    .account-table .account-person { grid-area: person; }
    .account-table .account-actions { grid-area: actions; }
    .account-table .account-choirs { grid-area: choirs; }
    .account-table .account-status { grid-area: status; }
    .account-table .last-online { grid-area: online; }
    .account-table .last-online time { min-width: 0; }
    .account-table .account-actions .actions { flex-wrap: wrap; gap: 6px; }
    .account-table .account-actions .btn { max-width: 100%; }
    .account-table .badge { max-width: 100%; white-space: normal; }
    .account-mobile-label { display: block; }
}
