
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--color-text);background:var(--color-surface);font-synthesis:none;}*{box-sizing:border-box;}body{margin:0;}button,input,select,textarea{font:inherit;}button{cursor:pointer;color:inherit;}button,input,select,textarea{touch-action:manipulation;}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px;}button:disabled{opacity:.45;cursor:default;}button{border:0;background:none;}input,select,textarea{min-width:0;color:inherit;}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;}[hidden]{display:none!important;}.demo-strip{font-size:11px;line-height:1.5;text-align:center;background:var(--color-soft);color:var(--color-accent-ink);padding:7px 14px;letter-spacing:.15px;}.frame{max-width:1280px;margin:auto;display:grid;grid-template-columns:212px minmax(0,1fr);min-height:calc(100dvh - 30px);}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 36px;grid-column:1/-1;background:var(--color-surface);}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:700;letter-spacing:-.5px;}.brand-icon{display:grid;place-items:center;width:38px;height:40px;background:var(--green);color:var(--color-accent-ink);border-radius:12px;font-size:27px;}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:.9px;color:var(--muted);margin-top:2px;}.top-actions{display:flex;align-items:center;gap:14px;}.top-actions .service-reminder-button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:0 .6rem;white-space:nowrap;font-size:.8rem}.top-actions .service-reminder-button[hidden]{display:none}.service-reminder-icon,.profile-refresh>span{display:inline-flex}.service-reminder-icon svg,.profile-refresh svg{width:18px;height:18px}.service-reminder-count{min-width:1.3rem;padding:.12rem .3rem;border-radius:999px;background:var(--color-button);color:var(--color-button-text);text-align:center;font-size:.72rem;font-weight:700}.profile-refresh{display:inline-flex;align-items:center;gap:.45rem}@media(max-width:360px){.top-actions .service-reminder-button{min-width:44px;padding:0 .4rem}.service-reminder-label{display:none}}.sync{font-size:11px;color:var(--color-muted);display:flex;align-items:center;gap:6px;}.dot{width:6px;height:6px;border-radius:100%;background:var(--color-selected);display:inline-block;}.icon-btn{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;}.icon-btn:hover{background:var(--soft);}.avatar{position:relative;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--color-soft);color:var(--green);font-size:13px;font-weight:750;overflow:visible;border:3px solid var(--color-border);}.avatar:after{content:'';position:absolute;bottom:0;right:0;width:9px;height:9px;background:var(--color-selected);border:2px solid var(--color-border);border-radius:50%;}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;}.sidebar{padding:32px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px;}.nav-button{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 18px;font-size:13px;text-align:left;border-radius:12px;color:var(--color-muted);}.nav-button.active{background:var(--color-soft);color:var(--green);font-weight:700;}.nav-button.active svg{stroke-width:2.2;}.sidebar-foot{margin-top:auto;padding:70px 18px 20px;font-size:11px;line-height:1.8;color:var(--color-muted);}.main{padding:34px 36px 124px;min-width:0;}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px;}.overline{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--color-muted);margin:0 0 8px;}h1{font-family:Georgia,"Times New Roman",serif;font-size:33px;font-weight:400;letter-spacing:-.7px;margin:0;line-height:1.15;}h2{font-size:17px;letter-spacing:-.3px;margin:0;}h3{font-size:13px;margin:0;}.subtitle{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 0;}.date-chip{font-size:11px;border:1px solid var(--line);border-radius:20px;min-height:36px;display:flex;align-items:center;gap:7px;padding:0 12px;white-space:nowrap;background:var(--color-surface);}.search-row{display:flex;gap:9px;margin-bottom:16px;}.search{display:flex;align-items:center;gap:10px;background:var(--color-surface);border:1px solid var(--color-control-border);border-radius:14px;flex:1;padding:0 13px;min-height:52px;}.search svg{width:19px;color:var(--color-muted);}.search input{background:none;border:0;outline:none;flex:1;width:100%;font-size:13px;padding:15px 0;}.search .clear{font-size:20px;width:36px;min-height:44px;color:var(--color-muted);}.filter-button{width:52px;min-height:52px;border:1px solid var(--line);background:var(--color-surface);border-radius:14px;display:grid;place-items:center;position:relative;}.filter-dot{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--green);}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;}.chips{display:flex;gap:6px;overflow:auto;scrollbar-width:none;}.chip{min-height:48px;border-radius:24px;padding:0 15px;font-size:12px;white-space:nowrap;color:var(--color-muted);background:var(--color-soft);}.chip.active{background:var(--green);color:var(--color-button-text);}.sort{min-height:48px;display:flex;gap:5px;align-items:center;white-space:nowrap;font-size:11px;color:var(--color-muted);}.sort svg{width:17px;height:17px;}.list-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.5px;color:var(--color-muted);margin:22px 4px 10px;}.repertoire-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:25px;}.song-list{background:var(--color-surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;}.song-row{display:flex;align-items:center;min-height:94px;border-bottom:1px solid var(--color-border);padding:12px 10px 12px 16px;gap:13px;position:relative;}.song-row:last-child{border-bottom:0;}.song-row.selected{background:var(--color-surface);}.song-select{display:flex;align-items:center;gap:13px;flex:1;text-align:left;padding:0;min-height:66px;min-width:0;}.song-number{width:38px;height:42px;border-radius:11px;background:var(--color-surface);display:grid;place-items:center;font-size:12px;color:var(--color-muted);flex:none;}.selected .song-number{background:var(--green);color:var(--color-button-text);}.song-name{font-size:14px;font-weight:650;line-height:1.4;display:block;letter-spacing:-.15px;}.song-meta{font-size:11px;color:var(--color-muted);margin:4px 0 0;display:block;}.song-facts{display:flex;gap:10px;align-items:center;font-size:10px;color:var(--color-muted);margin-top:7px;flex-wrap:wrap;}.song-facts span{display:flex;align-items:center;gap:4px;}.song-facts svg{height:12px;width:12px;stroke-width:1.6;}.song-menu{color:var(--color-muted);flex:none;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;}.song-menu:hover{background:var(--color-soft);}.song-menu svg{width:19px;}.side-card{border:1px solid var(--line);background:var(--color-soft);border-radius:18px;padding:20px;height:max-content;position:sticky;top:26px;}.side-card .score-icon{font-size:46px;line-height:1;color:var(--color-muted);margin:12px 0 18px;}.side-card p{font-size:12px;line-height:1.8;color:var(--color-muted);}.side-card .mini-rule{width:35px;border-top:2px solid var(--color-border);margin:18px 0;}.side-card .picked{margin:14px 0;padding:0;list-style:none;font-size:12px;line-height:1.7;}.side-card .picked li{padding:7px 0;border-bottom:1px solid var(--color-border);}.primary{background:var(--green);color:var(--color-button-text);border-radius:12px;min-height:50px;padding:13px 19px;font-size:13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:10px;}.secondary{background:var(--color-soft);color:var(--green);border:1px solid var(--color-border);border-radius:12px;min-height:48px;padding:11px 16px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;}.wide{width:100%;}.text-btn{min-height:48px;padding:10px;font-size:12px;color:var(--color-muted);text-decoration:underline;text-underline-offset:4px;}.selection-bar{position:fixed;bottom:25px;left:calc(50% - 300px);width:600px;max-width:calc(100% - 32px);padding:12px 15px 12px 20px;background:var(--green);color:var(--color-button-text);border-radius:17px;z-index:20;box-shadow:0 10px 36px rgb(var(--color-shadow-rgb) / 0.161);display:flex;justify-content:space-between;align-items:center;gap:10px;}.selection-bar strong{display:block;font-size:13px;}.selection-bar small{font-size:10px;color:var(--color-muted);display:block;margin-top:4px;}.selection-bar button{min-height:48px;display:flex;align-items:center;gap:9px;background:var(--color-soft);color:var(--green);border-radius:11px;font-size:12px;font-weight:700;padding:0 16px;}.bottom-nav{display:none;}.card{background:var(--color-surface);border:1px solid var(--line);border-radius:18px;padding:21px;margin-bottom:16px;}.card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;}.field{display:grid;gap:8px;margin:16px 0;font-size:12px;color:var(--color-muted);}.field input,.field select,.field textarea{width:100%;border:1px solid var(--color-control-border);border-radius:11px;padding:13px;background:var(--color-surface);min-height:50px;font-size:14px;outline:none;}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--color-control-border);}.field textarea{min-height:80px;resize:vertical;}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;}.segmented{background:var(--color-soft);padding:4px;display:flex;border-radius:12px;}.segmented button{min-height:44px;flex:1;font-size:12px;border-radius:9px;}.segmented button.active{background:var(--color-surface);box-shadow:0 2px 7px rgb(var(--color-shadow-rgb) / 0.063);font-weight:700;}.chosen-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px;}.chosen-item small{color:var(--color-muted);margin-right:8px;}.pill{display:inline-block;background:var(--color-surface);color:var(--color-muted);border-radius:20px;font-size:10px;padding:6px 10px;}.muted{color:var(--muted);font-size:12px;line-height:1.7;}.history-card{display:flex;gap:16px;}.calendar{width:48px;height:60px;flex:none;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;align-content:center;background:var(--color-surface);}.calendar strong{font-size:23px;font-family:Georgia,serif;font-weight:400;}.calendar small{font-size:9px;letter-spacing:1px;color:var(--color-muted);}.history-card .body{flex:1;min-width:0;}.history-card h3{font-size:14px;margin:2px 0 6px;}.history-card p{font-size:12px;color:var(--color-muted);line-height:1.7;margin:5px 0;}.history-tools{display:flex;gap:7px;margin-top:12px;}.history-tools button{min-height:40px;font-size:11px;padding:8px 12px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0;}.metric{background:var(--color-soft);border:1px solid var(--color-border);border-radius:14px;padding:16px 12px;}.metric strong{font-size:25px;font-family:Georgia,serif;font-weight:400;display:block;}.metric small{font-size:10px;color:var(--color-muted);display:block;margin-top:5px;}.stats-table{overflow:auto;}.stats-table table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap;}.stats-table td,.stats-table th{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);}.stats-table th{font-weight:500;color:var(--color-muted);font-size:10px;}.status-mark{background:var(--color-soft);border-radius:5px;padding:4px 6px;color:var(--color-text);}.voice-heading{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.5px;color:var(--color-muted);margin:25px 0 8px;}.voice-heading:after{content:'';flex:1;border-top:1px solid var(--color-border);}.singer-row{display:grid;grid-template-columns:1fr 155px 68px;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;}.singer-name{min-width:0;text-align:left;min-height:48px;padding:0;}.singer-name strong{display:block;font-size:13px;}.singer-name small{display:block;font-size:10px;color:var(--color-muted);margin-top:5px;}.singer-row select{min-height:48px;border:1px solid var(--color-control-border);border-radius:10px;background:var(--color-surface);padding:8px;font-size:12px;width:100%;}.pause{display:grid;justify-items:center;gap:3px;font-size:9px;color:var(--color-muted);min-height:48px;align-content:center;}.pause input{appearance:none;width:30px;height:18px;background:var(--color-soft);border-radius:20px;position:relative;margin:0;cursor:pointer;transition:.15s;}.pause input:before{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--color-surface);box-shadow:0 1px 3px rgb(var(--color-shadow-rgb) / 0.133);transition:.15s;}.pause input:checked{background:var(--green);}.pause input:checked:before{transform:translateX(12px);}.paused-person{opacity:.62;}.paused-tag{font-size:11px;background:var(--color-neutral-bg);border-radius:8px;padding:12px;text-align:center;color:var(--color-neutral-fg);}.menu-list{padding:0;overflow:hidden;}.menu-row{display:flex;width:100%;min-height:65px;align-items:center;text-align:left;padding:13px 18px;gap:15px;border-bottom:1px solid var(--line);}.menu-row:last-child{border-bottom:0;}.menu-row>svg:first-child{color:var(--color-muted);}.menu-row span{flex:1;}.menu-row strong{font-size:13px;display:block;font-weight:600;}.menu-row small{font-size:11px;color:var(--color-muted);display:block;margin-top:4px;}.chevron{width:16px;height:16px;color:var(--color-muted);}.more-note{margin:25px 5px;font-size:11px;line-height:1.8;color:var(--color-muted);}.more-note strong{color:var(--color-muted);}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:115px;z-index:90;max-width:calc(100% - 32px);width:max-content;background:var(--color-button);color:var(--color-button-text);border-radius:12px;box-shadow:0 8px 35px rgb(var(--color-shadow-rgb) / 0.2);padding:14px 19px;font-size:12px;line-height:1.6;pointer-events:none;}.sheet{border:0;border-radius:24px;max-width:480px;width:calc(100% - 32px);padding:0;color:var(--ink);box-shadow:0 20px 90px rgb(var(--color-shadow-rgb) / 0.2);max-height:90dvh;overflow:auto;background:var(--color-surface);}.sheet::backdrop{background:rgb(var(--color-shadow-rgb) / 0.4);backdrop-filter:blur(3px);}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--color-surface);z-index:2;}.sheet-head h2{font-size:17px;}.sheet-body{padding:6px 22px 24px;}.sheet-actions{display:flex;gap:9px;margin-top:22px;}.sheet-actions>*{flex:1;}.profile-head{text-align:center;padding:25px 0 15px;}.profile-head .avatar{width:72px;height:72px;font-size:19px;margin:auto;}.profile-head h3{font-size:18px;margin:12px 0 6px;}.profile-head p{font-size:12px;color:var(--color-muted);}.demo-note{padding:12px;background:var(--color-surface);color:var(--color-accent-ink);border-radius:10px;font-size:11px;line-height:1.7;}.check-row{min-height:48px;display:flex;align-items:center;gap:12px;font-size:13px;}.check-row input{accent-color:var(--green);width:19px;height:19px;}.action-row{display:flex;gap:12px;align-items:center;min-height:58px;width:100%;text-align:left;border-bottom:1px solid var(--line);font-size:13px;}.action-row svg{width:19px;color:var(--color-muted);}.action-row.danger{color:var(--color-danger-fg);}.action-row.danger svg{color:inherit;}.empty{text-align:center;padding:45px 20px;color:var(--color-muted);font-size:13px;line-height:1.8;}.eyeline{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--color-muted);}.stats-toggle{min-height:48px;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;font-size:13px;font-weight:600;}.stats-toggle svg{width:18px;transition:.2s;}.stats-toggle[aria-expanded=true] svg{transform:rotate(180deg);}.density-compact .song-row{min-height:78px;padding-top:7px;padding-bottom:7px;}.density-compact .song-facts{display:none;}.large-text{font-size:112%;}.large-text .song-name,.large-text .singer-name strong{font-size:16px;}.large-text .song-meta,.large-text .song-facts{font-size:12px;}.count-badge{background:var(--color-soft);color:var(--color-muted);border-radius:6px;padding:4px 7px;font-size:10px;}.date-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--color-muted);}.date-picker input{border:0;background:transparent;max-width:135px;font:inherit;}.floating-save{position:sticky;bottom:95px;margin-top:20px;z-index:15;}.floating-save button{box-shadow:0 8px 25px rgb(var(--color-shadow-rgb) / 0.11);}.desktop-note{display:block;}.reader-info{background:var(--color-soft);padding:12px 16px;border-radius:10px;font-size:12px;color:var(--color-muted);margin:12px 0;}.prototype-label{font-size:9px;color:var(--color-accent-ink);letter-spacing:.6px;text-align:center;margin:30px 0 0;}.sheet-handle{display:none;}@media(max-width:1050px){.frame{grid-template-columns:175px minmax(0,1fr);}.sidebar{padding:25px 10px;}.nav-button{padding:0 12px;gap:9px;}.main{padding:28px 25px 120px;}.repertoire-layout{grid-template-columns:1fr;}.side-card{display:none;}.selection-bar{left:calc(50% - 210px);width:600px;max-width:calc(100% - 220px);}}
@media(max-width:680px){.demo-strip{font-size:10px;padding:6px 10px;}.frame{display:block;min-height:100dvh;}.topbar{height:66px;padding:0 19px;position:sticky;top:0;z-index:25;background:rgb(var(--color-surface-rgb) / 0.929);backdrop-filter:blur(16px);}.brand{font-size:17px;gap:9px;}.brand-icon{width:32px;height:34px;border-radius:10px;font-size:24px;}.brand small{font-size:8px;letter-spacing:1px;}.top-actions{gap:3px;}.top-actions .sync{display:none;}.avatar{width:44px;height:44px;font-size:12px;}.sidebar{display:none;}.main{padding:26px 18px 115px;}.section-head{margin-bottom:21px;gap:8px;}.overline{font-size:9px;margin-bottom:6px;}h1{font-size:29px;}.subtitle{font-size:11px;margin-top:7px;}.date-chip{display:none;}.search{min-height:50px;padding:0 12px;}.search input{font-size:13px;}.filter-button{min-height:50px;width:50px;}.toolbar{gap:5px;margin-bottom:6px;}.chips{gap:5px;}.chip{min-height:48px;padding:0 13px;font-size:11px;}.sort{font-size:10px;gap:3px;min-width:48px;justify-content:center;}.sort span{max-width:82px;overflow:hidden;text-overflow:ellipsis;}.list-label{margin:17px 3px 10px;font-size:9px;}.song-list{border-radius:15px;}.song-row{padding:12px 3px 12px 11px;gap:2px;min-height:101px;}.song-select{gap:10px;}.song-number{width:31px;height:38px;border-radius:9px;font-size:11px;}.song-name{font-size:13px;}.song-meta{font-size:10px;}.song-facts{gap:9px;font-size:9px;margin-top:7px;}.song-facts svg{width:11px;height:11px;}.song-menu{width:44px;min-width:44px;height:48px;}.song-menu svg{width:17px;}.selection-bar{bottom:calc(87px + env(safe-area-inset-bottom));left:16px;transform:none;max-width:calc(100% - 32px);width:calc(100% - 32px);padding:10px 12px 10px 16px;border-radius:15px;gap:6px;}.selection-bar strong{font-size:12px;}.selection-bar small{font-size:9px;}.selection-bar button{font-size:11px;padding:0 12px;gap:6px;min-height:46px;}.selection-bar button svg{width:17px;}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:rgb(var(--color-surface-rgb) / 0.961);backdrop-filter:blur(16px);border-top:1px solid var(--color-border);z-index:30;padding:8px 8px calc(9px + env(safe-area-inset-bottom));min-height:78px;}.bottom-nav .nav-button{flex:1;display:flex;flex-direction:column;justify-content:center;gap:4px;border-radius:0;padding:0 3px;min-height:54px;font-size:9px;background:none;color:var(--color-muted);}.bottom-nav .nav-button svg{width:21px;height:21px;}.bottom-nav .nav-button.active{color:var(--color-text);font-weight:700;}.bottom-nav .nav-button.active .nav-icon{background:var(--color-soft);}.nav-icon{width:52px;height:28px;display:grid;place-items:center;border-radius:20px;}.sheet{position:fixed;bottom:0;top:auto;left:0;right:0;margin:0;border-radius:24px 24px 0 0;width:100%;max-width:none;max-height:88dvh;padding-bottom:env(safe-area-inset-bottom);}.sheet-head{padding:7px 18px 12px;}.sheet-handle{display:block;height:4px;width:35px;border-radius:4px;background:var(--color-soft);margin:10px auto 5px;}.sheet-body{padding:4px 21px 25px;}.sheet-head h2{font-size:16px;}.card{padding:17px;border-radius:15px;margin-bottom:13px;}.card-title{margin-bottom:14px;}h2{font-size:16px;}.history-card{gap:12px;}.history-card .body h3{font-size:13px;}.history-card p{font-size:11px;}.history-tools{gap:6px;}.history-tools button{font-size:10px;min-height:44px;}.stats-grid{gap:7px;margin:15px 0;}.metric{padding:14px 10px;border-radius:12px;}.metric strong{font-size:25px;}.metric small{font-size:9px;}.singer-row{grid-template-columns:1fr 114px 48px;gap:7px;}.singer-row select{font-size:11px;padding:7px;}.singer-name strong{font-size:12px;}.singer-name small{font-size:9px;}.pause{font-size:8px;}.card .singer-row:last-child{border:0;}.stats-table td,.stats-table th{padding:12px 9px;}.two-fields{gap:10px;}.field{font-size:11px;}.field input,.field select,.field textarea{font-size:13px;}.desktop-note{display:none;}.floating-save{bottom:90px;}.toast{bottom:105px;max-width:calc(100% - 28px);font-size:11px;}.more-note{font-size:11px;}.profile-head{padding-top:15px;}.section-head .primary{font-size:11px;min-height:44px;padding:10px 12px;}.check-row{font-size:12px;}.menu-row{min-height:67px;}.menu-row strong{font-size:12px;}.menu-row small{font-size:10px;}.date-picker{font-size:11px;}.date-picker input{max-width:123px;}.density-compact .song-row{min-height:77px;}.prototype-label{margin-top:23px;}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;}}@media(max-width:360px){.main{padding-left:12px;padding-right:12px;}.chip{padding:0 10px;}.song-facts{gap:5px;}.sort span{max-width:58px;}}
.sidebar .nav-button{width:100%;margin-bottom:5px;}.history-tools button{min-height:48px;}.segmented button{min-height:48px;}.date-picker input{min-height:48px;}.singer-name strong:after{content:'⋮';float:right;color:var(--color-muted);font-weight:400;margin-left:7px;}.avatar{width:48px;height:48px;}.search .clear{width:48px;min-height:48px;}.search input{min-height:48px;}@media(max-width:680px){.song-menu{width:48px;min-width:48px;}.has-selection .main{padding-bottom:220px;}.history-tools button{min-height:48px;}.avatar{width:48px;height:48px;}}

.ownership-hint{font-size:11px;line-height:1.65;color:var(--color-muted);margin:10px 3px 0;}.song-select-toggle{width:48px;min-width:48px;height:48px;display:grid;place-items:center;color:var(--color-muted);border-radius:12px;}.song-select-toggle svg{height:21px;width:21px;}.song-select-toggle.is-selected{background:var(--color-soft);color:var(--color-text);}.song-select-toggle:hover{background:var(--color-soft);}.detail-kicker{font-size:11px;color:var(--color-muted);margin:7px 0 14px;}.detail-tabs{display:flex;gap:3px;padding:4px;background:var(--color-surface);border-radius:12px;margin-bottom:18px;}.detail-tabs button{flex:1;min-height:48px;border-radius:9px;font-size:12px;color:var(--color-muted);}.detail-tabs button.active{background:var(--color-surface);color:var(--color-text);font-weight:650;box-shadow:0 1px 5px rgb(var(--color-shadow-rgb) / 0.063);}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:0 0 16px;}.detail-row{padding:12px 0;border-bottom:1px solid var(--color-border);min-width:0;}.detail-row dt{font-size:10px;color:var(--color-muted);margin-bottom:6px;}.detail-row dd{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere;}.detail-highlight{padding:15px 16px;border-radius:12px;background:var(--color-soft);display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;}.detail-highlight strong{font-size:14px;}.detail-highlight span{font-size:10px;color:var(--color-muted);}.detail-note{padding:13px 0;border-bottom:1px solid var(--color-border);margin-bottom:15px;}.detail-note small{font-size:10px;color:var(--color-muted);}.detail-note-copy{font-size:13px;line-height:1.8;color:var(--color-muted);white-space:pre-wrap;}.song-detail-actions{margin-top:15px;}.detail-admin{border-top:1px solid var(--color-border);margin-top:15px;}.detail-admin summary{padding:15px 0;min-height:48px;font-size:11px;color:var(--color-muted);cursor:pointer;}.sheet-head{gap:12px;}.sheet-head h2{min-width:0;line-height:1.4;flex:1;}.sheet-head>.icon-btn{flex:none;}@media(max-width:680px){.song-select-toggle{width:48px;min-width:48px;}.detail-highlight{align-items:flex-start;flex-direction:column;gap:6px;}.detail-tabs button{font-size:11px;}.ownership-hint{font-size:10px;}.list-label{letter-spacing:0;font-size:8px;}}

/* Connected application layout: storage and authorization remain in the existing modules. */
.app.frame{display:grid;grid-template-columns:212px minmax(0,1fr);}.app>header{grid-column:1/-1;}.tabs{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:6px;padding:30px 18px;border-right:1px solid var(--line);align-self:stretch;}.tabs .tab{min-height:52px;display:flex;align-items:center;gap:12px;padding:0 16px;text-align:left;border-radius:12px;font-size:13px;color:var(--color-muted);}.tabs .tab.active{background:var(--color-soft);color:var(--green);font-weight:700;}.tabs .tab>span:first-child{display:grid;place-items:center;}.app>main{grid-column:2;grid-row:2;}.app>footer{grid-column:1/-1;font-size:10px;color:var(--color-muted);padding:25px 36px;border-top:1px solid var(--line);}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;}.panel{min-width:0;}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px;}.panel-head .count{font-size:11px;color:var(--color-muted);}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--color-muted);font-weight:700;margin:0 0 8px;}.repertoire h2,.panel>h2{font-family:Georgia,serif;font-size:31px;font-weight:400;letter-spacing:-.6px;margin-bottom:10px;}.hint,.privacy,.optional{font-size:11px;line-height:1.7;color:var(--color-muted);}.search{margin-bottom:14px;}.search>span{font-size:25px;color:var(--color-muted);}.quick-tools{display:flex;align-items:center;gap:6px;justify-content:space-between;}.list-caption{display:flex;justify-content:space-between;font-size:9px;color:var(--color-muted);margin:17px 3px 10px;}.songs{background:var(--color-surface);border:1px solid var(--line);border-radius:17px;overflow:hidden;}.song-row-live{display:flex;align-items:center;border-bottom:1px solid var(--color-border);padding:10px 5px 10px 14px;gap:8px;min-height:96px;}.song-row-live:last-child{border:0;}.song-row-live.chosen{background:var(--color-surface);}.song{padding:0;border:0;background:transparent;display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:74px;text-align:left;}.song-num{width:34px;height:40px;flex:none;display:grid;place-items:center;background:var(--color-surface);border-radius:10px;color:var(--color-muted);font-size:11px;}.song-main{display:block;min-width:0;}.song-main strong{display:block;font-size:13px;line-height:1.5;}.song-main small{display:block;font-size:10px;color:var(--color-muted);margin:4px 0 7px;}.song-last-visible,.song-counter{display:block;font-size:10px;color:var(--color-muted);line-height:1.7;}.song-last-visible>span:first-child{color:var(--color-muted);}.count-prefix{color:var(--color-muted);}.song-toggle{width:48px;height:48px;min-width:48px;border-radius:12px;display:grid;place-items:center;color:var(--color-muted);}.song-toggle.selected{color:var(--green);background:var(--color-soft);}.song-toggle:hover{background:var(--color-surface);}.button{min-height:48px;border-radius:11px;font-size:12px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;}.button.primary{background:var(--green);color:var(--color-button-text);}.button.subtle{background:var(--color-surface);color:var(--green);}.notice{font-size:12px;line-height:1.7;border-radius:12px;background:var(--color-success-bg);color:var(--color-success-fg);padding:12px 16px;margin-bottom:18px;}.notice.error{background:var(--color-danger-bg);color:var(--color-danger-fg);}.notice.success{background:var(--color-success-bg);color:var(--color-success-fg);}.login-callout{border:1px solid var(--line);background:var(--color-surface);border-radius:16px;padding:22px;margin-bottom:22px;}.login-callout p{font-size:12px;color:var(--color-muted);}.connection{display:grid;gap:10px;}.connection h2{font-size:19px;font-family:Georgia,serif;}.connection p{font-size:12px;line-height:1.7;color:var(--color-muted);}.connection .status-dot{display:none;}#profile-email{overflow-wrap:anywhere;}.filters{display:grid;gap:16px;margin:20px 0;}.filters label{display:grid;gap:7px;font-size:12px;color:var(--color-muted);}.filters select{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:10px;padding:13px;font-size:13px;width:100%;min-height:48px;}.entry{padding:0;background:none;border:0;}.entry>h2,.entry>.eyebrow,.entry>.muted{display:none;}.entry fieldset{border:0;margin:0;padding:0;min-width:0;}.entry .segmented{margin:7px 0 18px;}.segmented label{position:relative;flex:1;text-align:center;min-height:48px;display:grid;place-items:center;cursor:pointer;}.segmented input{position:absolute;opacity:0;width:1px;height:1px;}.segmented label span{min-height:42px;width:100%;display:grid;place-items:center;border-radius:9px;font-size:12px;}.segmented input:checked+span{background:var(--color-surface);color:var(--green);font-weight:700;}.segmented input:focus-visible+span{outline:3px solid var(--color-focus);}.entry .field{font-size:12px;}.entry input,.entry textarea{font:inherit;width:100%;border:1px solid var(--color-control-border);border-radius:10px;background:var(--color-surface);padding:13px;min-height:49px;}.entry .selected-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:22px;}.selected-head .count{background:var(--color-soft);color:var(--color-muted);padding:5px 8px;border-radius:7px;}.entry ul{list-style:none;padding:0;margin:10px 0 22px;}.entry li{font-size:12px;border-bottom:1px solid var(--line);padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;}.entry li button{min-height:48px;min-width:48px;}.entry #save{width:100%;}.privacy{font-size:10px;}.text-link{display:inline-block;font-size:12px;line-height:1.8;color:var(--color-muted);margin:10px 0;}.history-item{background:var(--color-surface);border:1px solid var(--line);border-radius:16px;padding:20px;margin:15px 0;}.history-item h3{font-size:15px;}.history-item p,.history-item ul{font-size:12px;line-height:1.8;color:var(--color-muted);}.history-item .button{font-size:11px;margin-right:5px;margin-top:8px;}.attendance-panel>p.muted{max-width:680px;font-size:12px;line-height:1.8;color:var(--color-muted);}.attendance-details{background:var(--color-surface);border:1px solid var(--line);border-radius:14px;margin-bottom:22px;padding:0 17px;}.attendance-details>summary{padding:17px 0;min-height:52px;font-size:12px;cursor:pointer;font-weight:650;}.attendance-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0;}.attendance-toggle{display:flex;align-items:center;gap:8px;min-height:48px;font-size:11px;color:var(--color-muted);}.attendance-toggle input{width:18px;height:18px;accent-color:var(--green);}.attendance-scroll{overflow:auto;}.attendance-table{border-collapse:collapse;min-width:100%;font-size:11px;white-space:nowrap;}.attendance-table th,.attendance-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line);font-weight:400;}.attendance-table th{font-weight:600;}.attendance-divider{border-top:1px solid var(--line);margin:22px 0;}.attendance-filters{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:14px;}.attendance-voice-heading{font-size:10px;letter-spacing:1.5px;color:var(--color-muted);border-bottom:1px solid var(--line);padding-bottom:8px;margin-top:26px;}.attendance-person{display:grid;grid-template-columns:minmax(0,1fr) 180px 75px;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);}.singer-name-button{font-size:13px;font-weight:650;text-align:left;min-height:36px;padding:0;}.singer-name-button:after{content:' ⋮';color:var(--color-muted);}.attendance-person small{font-size:10px;color:var(--color-muted);display:block;margin-top:5px;}.attendance-person .field{margin:0;font-size:10px;}.attendance-person .field select{padding:10px;font-size:12px;min-height:48px;}.pause-toggle{font-size:10px;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:48px;justify-content:center;}.pause-toggle>.choir-switch{flex-direction:column;gap:.25rem;margin:0}#attendance-save{position:sticky;bottom:22px;width:100%;margin:22px 0 0;z-index:15;}.singer-add,.singer-remove{display:grid;grid-template-columns:1fr 180px auto;gap:12px;align-items:end;}.singer-remove{grid-template-columns:1fr auto;}.help>p,.help details p{font-size:12px;color:var(--color-muted);line-height:1.8;}.help>h3{margin-top:25px;}.help details{border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0;background:var(--color-surface);}.help summary{font-size:12px;min-height:35px;cursor:pointer;}.help form input,.help form select{font:inherit;border:1px solid var(--color-control-border);border-radius:10px;padding:13px;min-height:48px;width:100%;background:var(--color-surface);}.help a{color:var(--color-muted);}.help #excel-tools{margin:25px 0;}.help #excel-tools p{font-size:12px;color:var(--color-muted);line-height:1.8;}.hold-menu{position:fixed;z-index:1000;display:grid;min-width:180px;background:var(--color-surface);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 8px 30px rgb(var(--color-shadow-rgb) / 0.2);}.hold-menu button{padding:13px 20px;min-height:48px;text-align:left;border:0;border-radius:8px;font:inherit;}.hold-menu button:hover{background:var(--color-surface);}.edit-dialog,#review{width:min(480px,calc(100vw - 24px));box-sizing:border-box;border:1px solid var(--line);border-radius:18px;padding:24px;max-height:88dvh;overflow:auto;color:var(--green);}dialog::backdrop{background:rgb(var(--color-shadow-rgb) / 0.4);backdrop-filter:blur(3px);}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;}.edit-dialog .field{display:grid;gap:8px;margin-bottom:16px;}.edit-dialog input,.edit-dialog select{font:inherit;padding:12px;border:1px solid var(--color-control-border);border-radius:8px;min-width:0;}.excel-change{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.7;}.excel-change input{width:20px;height:20px;flex:none;margin-top:3px;}.song-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px;margin:0;}.song-info-grid>div{padding:13px 0;border-bottom:1px solid var(--line);}.song-info-grid dt{font-size:10px;color:var(--color-muted);}.song-info-grid dd{font-size:13px;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere;}.info-tabs{display:flex;gap:4px;background:var(--color-surface);border-radius:12px;padding:4px;margin:12px 0 18px;}.info-tabs button{min-height:48px;flex:1;border-radius:9px;font-size:12px;}.info-tabs button.active{background:var(--color-surface);color:var(--green);font-weight:650;}.song-info-note{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.8;white-space:pre-wrap;color:var(--color-muted);}.density-compact .song-row-live{min-height:74px;}.density-compact .song-counter{display:none;}.large-text .song-main strong,.large-text .singer-name-button{font-size:16px;}.large-text .song-main small{font-size:12px;}.sheet-head h2{min-width:0;line-height:1.4;flex:1;}.sheet-head .icon-btn{flex:none;}.side-card .score-icon{font-size:46px;}.menu-row>span[data-icon]{display:grid;flex:none;width:22px;}.menu-row>span:last-child{width:17px;}.selection-bar small{line-height:1.4;}#more .menu-row#install{display:flex;}.app .sheet-body h2{font-family:inherit;}.help>h2{margin-bottom:18px;}
@media(max-width:1050px){.app.frame{grid-template-columns:175px minmax(0,1fr);}.tabs{padding:25px 10px;}.workspace{grid-template-columns:1fr;}.workspace .side-card{display:none;}.selection-bar{left:calc(50% - 210px);max-width:calc(100% - 220px);}}
@media(max-width:680px){.app.frame{display:block;}.app>main{padding:25px 17px 130px;}.topbar{height:66px;}.app>.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;flex-direction:row;gap:0;border-right:0;border-top:1px solid var(--line);background:rgb(var(--color-surface-rgb) / 0.969);backdrop-filter:blur(12px);min-height:78px;padding:8px 5px calc(8px + env(safe-area-inset-bottom));}.tabs .tab{flex:1;min-width:0;min-height:54px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0 3px;font-size:9px;border-radius:0;background:none;color:var(--color-muted);}.tabs .tab>span:first-child{width:52px;height:28px;border-radius:20px;}.tabs .tab.active{background:none;color:var(--color-text);}.tabs .tab.active>span:first-child{background:var(--color-soft);}.panel-head{margin-bottom:18px;}.panel-head h2,.panel>h2{font-size:29px;}.panel-head .count{font-size:10px;}.song-row-live{padding:10px 3px 10px 10px;gap:3px;min-height:99px;}.song{gap:10px;min-height:75px;}.song-num{width:30px;height:37px;}.song-main strong{font-size:13px;}.song-main small,.song-last-visible,.song-counter{font-size:9px;}.song-toggle{width:48px;min-width:48px;}.chips{gap:5px;min-width:0;overflow:auto;}.chips .chip{font-size:11px;padding:0 12px;}.quick-tools{gap:3px;}.quick-tools .icon-btn{flex:none;width:48px;}.list-caption{font-size:8px;}.selection-bar{bottom:calc(87px + env(safe-area-inset-bottom));left:16px;max-width:calc(100% - 32px);width:calc(100% - 32px);}.has-selection .app>main{padding-bottom:220px;}.sheet{max-height:90dvh;}.sheet-body{padding:5px 20px 25px;}.filters{gap:14px;}.app>footer{display:none;}.attendance-filters{grid-template-columns:1fr 1fr;gap:10px;}.attendance-filters>.field:first-child{grid-column:1/-1;}.attendance-person{grid-template-columns:minmax(0,1fr) 114px 50px;gap:7px;}.attendance-person .field>span{display:none;}.attendance-person .field select{font-size:10px;padding:7px;}.pause-toggle{font-size:8px;flex-direction:column;justify-content:center;gap:4px;}.singer-name-button{font-size:12px;}.attendance-person small{font-size:9px;}.singer-add,.singer-remove{grid-template-columns:1fr;}.singer-add .field,.singer-remove .field{margin:6px 0;}#attendance-save{bottom:90px;min-height:51px;}.stats-grid{gap:7px;margin-top:20px;}.metric{padding:14px 10px;}.metric strong{font-size:25px;}.metric small{font-size:9px;}.attendance-panel>p.muted{font-size:11px;}.history-item{padding:17px;}.history-item .button{font-size:10px;}.help .field{margin:12px 0;}.info-tabs button{font-size:11px;}.song-info-grid dd{font-size:12px;}.song-info-grid dt{font-size:10px;}.sheet-head{gap:10px;}.sheet-head h2{font-size:15px;}.notice{font-size:11px;}.side-card{display:none;}}

.singer-management{margin:22px 0;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:var(--color-surface);}.singer-management>summary{min-height:52px;padding:17px 0;cursor:pointer;font-size:12px;font-weight:600;}.singer-management>.eyebrow{display:none;}.panel-head h1{font-family:Georgia,serif;font-size:31px;font-weight:400;letter-spacing:-.6px;margin:0;}.detail-highlight{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:15px 16px;background:var(--color-soft);border-radius:12px;margin:17px 0;font-size:13px;}.detail-highlight>span{font-size:11px;color:var(--color-muted);}@media(max-width:680px){.panel-head h1{font-size:29px;}.attendance-filters>.field:first-child{grid-column:1;grid-row:1;}.attendance-filters>.field:nth-child(2){grid-column:1/-1;grid-row:2;}.attendance-filters>.field:nth-child(3){grid-column:2;grid-row:1;}}

.brand{text-decoration:none;color:var(--green);}.brand small{color:var(--color-muted);}

.detail-edit{display:block;width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit;background:transparent;border:1px solid transparent;border-radius:8px;padding:8px 10px;min-height:44px;font:inherit;cursor:pointer;}.detail-edit:hover,.detail-edit:focus-visible{background:var(--color-surface);border-color:var(--color-border);outline:2px solid transparent;}.detail-edit::after{content:" ✎";font-size:.8em;color:var(--color-muted);}.song-info-grid dd .detail-edit{margin:-8px -10px;width:calc(100% + 20px);}

/* Attendance: color always accompanies an explicit mark or explanation. */
#attendance-metrics .metric-present{background:var(--color-success-bg);border:1px solid var(--color-success-border);color:var(--color-success-fg);}#attendance-metrics .metric-open{background:var(--color-warning-bg);border:1px solid var(--color-warning-border);color:var(--color-warning-fg);}#attendance-metrics .metric-paused{background:var(--color-neutral-bg);border:1px solid var(--color-neutral-border);color:var(--color-neutral-fg);}
.attendance-table .attendance-mark{text-align:center;font-weight:750;border:4px solid var(--color-surface);border-radius:8px;min-width:44px;}.attendance-mark.present{background:var(--color-success-bg);color:var(--color-success-fg);}.attendance-mark.late{background:var(--color-warning-bg);color:var(--color-warning-fg);}.attendance-mark.excused{background:var(--color-info-bg);color:var(--color-info-fg);}.attendance-mark.sick{background:var(--color-illness-bg);color:var(--color-illness-fg);}.attendance-mark.absent{background:var(--color-danger-bg);color:var(--color-danger-fg);}.attendance-mark.paused{background:var(--color-neutral-bg);color:var(--color-neutral-fg);}.attendance-mark.unset{background:var(--color-neutral-bg);color:var(--color-neutral-fg);}
.attendance-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:18px 0;font-size:11px;line-height:1.6;}.legend-item{display:inline-flex;align-items:center;gap:7px;}.legend-item b{display:inline-flex;min-width:34px;min-height:30px;align-items:center;justify-content:center;border-radius:7px;font-size:12px;}
.attendance-person-hint{border-radius:10px;padding-left:10px;padding-right:8px;margin:6px 0;}.attendance-person-hint.hint-red{background:var(--color-danger-bg);border-left:4px solid var(--color-danger-border);}.attendance-person-hint.hint-amber{background:var(--color-warning-bg);border-left:4px solid var(--color-warning-border);}.attendance-person-hint.hint-red .singer-name-button{color:var(--color-danger-fg);}.attendance-hint-row.hint-red>th:first-child{color:var(--color-danger-fg);background:var(--color-danger-bg);}.attendance-hint-row.hint-amber>th:first-child{background:var(--color-warning-bg);}
.attendance-hint-badge{display:block;width:fit-content;font-size:10px;font-weight:650;line-height:1.5;padding:4px 7px;margin-top:5px;border-radius:6px;white-space:normal;}.attendance-hint-badge.hint-red{background:var(--color-danger-bg);color:var(--color-danger-fg);}.attendance-hint-badge.hint-amber{background:var(--color-warning-bg);color:var(--color-warning-fg);}
.attendance-contact-hints{border:1px solid var(--color-border);border-radius:13px;padding:0 14px;margin:16px 0;background:var(--color-surface);}.attendance-contact-hints>summary,.attendance-hint-rules>summary{min-height:48px;padding:14px 0;cursor:pointer;font-size:12px;font-weight:650;}.attendance-contact-item{border-top:1px solid var(--color-border);padding:13px 4px;}.attendance-contact-item>strong{font-size:13px;}.attendance-contact-item p,.attendance-hint-rules p{font-size:12px;line-height:1.7;}.attendance-contact-item small{font-size:10px;color:var(--color-muted);}.attendance-hint-rules{margin:12px 0;color:var(--color-muted);}.attendance-person .attendance-hint-badge{font-size:10px;}.attendance-table th .attendance-hint-badge{max-width:190px;}

.planning-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0;}.plan-state{display:inline-block;font-size:11px;background:var(--color-soft);padding:6px 9px;border-radius:7px;}.plan-dialog{width:min(620px,calc(100vw - 24px));}.plan-dialog select,.plan-dialog textarea,.plan-dialog input{max-width:100%;font:inherit;}.plan-dialog>form>select,.plan-dialog>form>input{width:100%;min-height:48px;padding:12px;border:1px solid var(--color-control-border);border-radius:8px;}.plan-song-picker{max-height:260px;overflow:auto;margin:10px 0 18px;border:1px solid var(--line);border-radius:10px;}.plan-song-choice{display:flex;gap:10px;align-items:center;min-height:48px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:12px;}.plan-song-choice input{width:20px;height:20px;flex:none;}.change-dialog{width:min(650px,calc(100vw - 24px));}.change-dialog>select{max-width:100%;padding:12px;min-height:48px;}.change-item{display:grid;gap:7px;border-bottom:1px solid var(--line);padding:16px 0;}.change-item small{font-size:11px;color:var(--color-muted);}.change-item .button{justify-self:start;}.change-preview{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;}.change-preview p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;}.change-dialog>.button{margin:15px 8px 0 0;}#attendance-fill-open{margin-top:14px;text-align:left;}

.freshness{font-size:.76rem;color:var(--color-muted);margin:4px 0 12px;}.freshness.stale{color:var(--color-accent-ink);}#attendance-settings-admin{padding:18px 0;border-top:1px solid var(--color-border);}#rules-form{display:grid;gap:12px;max-width:520px;}#rules-status{white-space:pre-wrap;}.excel-change{display:flex;gap:10px;padding:10px;border-bottom:1px solid var(--color-border);}.transfer-ok{color:var(--color-text);}.transfer-failed{color:var(--color-text);}

.pause-period-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}.pause-period-row input{min-width:130px;flex:1;}.plan-state{white-space:normal;}

body[data-feature-statistics="off"] #attendance-statistics-section,body[data-feature-hints="off"] #attendance-hints,body[data-feature-hints="off"] .attendance-hint-rules,body[data-feature-pauses="off"] .pause-toggle,body[data-feature-learning="off"] [data-song-field="Lernstand"],body[data-feature-score="off"] [data-song-field="NotenLink"],body[data-feature-audio="off"] [data-song-field="AudioLink"]{display:none!important;}

#rules-form .check-row,#feature-choices .check-row{display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:8px 0;}
#rules-form .check-row input[type="checkbox"]:not([role="switch"]),#feature-choices .check-row input[type="checkbox"]:not([role="switch"]){flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:0;appearance:auto;}

.community-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}.community-tabs .active{background:var(--color-soft);color:var(--color-text);}.community-message-list{display:grid;gap:12px;max-height:55vh;overflow:auto;padding:4px;}.community-message{border:1px solid var(--color-border);border-radius:14px;padding:14px;background:var(--color-surface);overflow-wrap:anywhere;white-space:normal;}.community-message p{white-space:pre-wrap;}.community-message small{display:block;color:var(--color-muted);font-size:.76rem;margin:5px 0;}.community-message.from-lead{border-left:4px solid var(--color-border);background:var(--color-surface);}.community-alert{color:var(--color-text);}#community-member-form{display:grid;gap:12px;max-width:640px;}#community-member-admin{border-top:1px solid var(--color-border);padding:18px 0;margin:18px 0;}#community-member-admin .check-row{display:flex;gap:10px;align-items:center;}#community-member-admin input[type="checkbox"]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;}.community-panel form{margin-top:18px;}

.attendance-event-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0;}.attendance-event-tools .field{flex:1;min-width:210px;}.community-panel .panel-head{flex-wrap:wrap;}.community-panel .panel-head h2{font-size:26px;}

.choir-welcome{background:var(--color-soft);border:1px solid var(--line);border-radius:18px;padding:22px;margin:12px 0 18px;}.choir-welcome h3{font-family:Georgia,serif;font-size:25px;margin:8px 0;}.choir-welcome p{line-height:1.7;}.choir-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 28px;}.home-action{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);border-radius:15px;background:var(--color-surface);padding:17px;gap:10px;min-height:145px;color:var(--green);}.home-action:hover{background:var(--color-surface);}.home-action svg{width:24px;height:24px;}.home-action strong{font-size:14px;}.home-action small{font-size:11px;line-height:1.5;color:var(--color-muted);}@media(max-width:680px){.choir-home-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.home-action{padding:14px;min-height:133px;}.choir-welcome{padding:18px;}.choir-welcome h3{font-size:23px;}}

.push-settings{border-top:1px solid var(--line);margin:20px 0;padding:18px 0;}.push-settings p{font-size:12px;line-height:1.7;}.push-settings .dialog-actions{flex-wrap:wrap;justify-content:flex-start;}

.theme-choice{display:grid;gap:8px;margin:18px 0;}.theme-choice select{font:inherit;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,var(--color-surface));color:inherit;}

#community-home-text{white-space:pre-line;overflow-wrap:anywhere;}#home-content-form{display:grid;gap:12px;margin-bottom:24px;}#home-content-form label{display:grid;gap:6px;}#home-content-form textarea{width:100%;box-sizing:border-box;}

#freshness{display:none!important;}#song-create{margin-top:10px;margin-bottom:8px;}.community-tabs{gap:8px;flex-wrap:wrap;}.member-contact{display:flex;width:100%;text-align:left;margin:8px 0;}.direct-dialog{width:min(600px,calc(100vw - 24px));}.direct-history{max-height:45dvh;overflow:auto;margin:16px 0;}.direct-dialog textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;}.direct-history .community-message{margin:8px 0;}.direct-history .community-message p{white-space:pre-wrap;overflow-wrap:anywhere;}.direct-history .from-self{border-left:3px solid var(--color-border);}.app>footer{flex-wrap:wrap;gap:10px;}.app>footer small{flex-basis:100%;font-size:11px;}.app>footer a{font-size:12px;}body .community-tabs button[hidden]{display:none!important;}

.legal-page{max-width:840px;margin:auto;padding:28px 20px 80px;line-height:1.75;}.legal-page h1{margin:24px 0;}.legal-page h2{margin:30px 0 12px;}.legal-page p{overflow-wrap:anywhere;}.menu-row[href]{text-decoration:none;color:inherit;}#more .menu-row[href]{display:flex;}@media(max-width:680px){.app>footer{display:flex;padding:20px 18px 110px;line-height:1.6;}}

.direct-dialog form>button{margin-right:8px;margin-top:10px;}

/* Telephone users receive a deliberately limited home, never the leadership workspace. */
.phone-mode .main>:not(#phone-area),.phone-mode .app>.tabs,.phone-mode .top-actions{display:none!important;}.phone-mode .app.frame{display:block;}.phone-mode .topbar{display:flex;}.phone-area{max-width:880px;margin:auto;}.phone-area h2{margin:24px 0 12px;}.phone-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0;}.phone-tools select{min-height:48px;padding:10px;border:1px solid var(--line);border-radius:10px;}.phone-area .attendance-details{padding:16px;margin-top:20px;}.phone-area input[type=search]{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;}.phone-area .choir-welcome{margin:20px 0;}.edit-dialog label{display:grid;gap:6px;margin:14px 0;}.edit-dialog textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;}.phone-area .phone-tools .button{margin:0;}

.hold-menu{max-width:calc(100vw - 24px);}.hold-menu button{white-space:normal;overflow-wrap:anywhere;}.edit-dialog>input[readonly]{width:100%;margin:12px 0;}.edit-dialog>button{margin-right:8px;margin-top:10px;}

/* Task-oriented administration: one focused area at a time. */
.admin-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0;}.admin-choice{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 12px;align-items:start;text-align:left;background:var(--surface,var(--color-surface));color:inherit;border:1px solid var(--line,var(--color-border));border-radius:16px;padding:20px;min-height:130px;cursor:pointer;}.admin-choice strong{font-size:1.08rem;}.admin-choice>span:last-child{grid-column:2;font-size:.9rem;line-height:1.45;opacity:.8;}.admin-choice-icon{grid-row:span 2;font-size:1.7rem;color:var(--accent,var(--color-muted));}.admin-choice:hover,.admin-choice:focus-visible{border-color:var(--accent,var(--color-border));box-shadow:0 0 0 2px rgb(var(--color-shadow-rgb) / 0.251);}.admin-choice[hidden],.admin-page[hidden],.admin-overview[hidden],.admin-page section[hidden]{display:none!important;}.admin-page>h3{margin:18px 0;font-size:1.4rem;}.admin-page section>section,.admin-fold,.admin-person{margin:18px 0;padding:18px;border:1px solid var(--line,var(--color-border));border-radius:14px;}.admin-fold summary,.admin-person summary{font-weight:650;cursor:pointer;line-height:1.5;}.admin-fold[open]>summary,.admin-person[open]>summary{margin-bottom:16px;}.admin-page input:not([type=checkbox]),.admin-page select{max-width:100%;min-width:0;}.admin-page label{display:block;margin:14px 0;}.admin-page .check-row{display:flex;}.admin-page .button{margin:6px 8px 6px 0;white-space:normal;}.admin-page .hint{line-height:1.55;}.admin-steps{font-weight:650;line-height:1.6;}.admin-technical-link{margin-top:10px;font-size:.9rem;}.admin-page #maintenance-admin{border:0;padding:0;}.admin-page #community-member-admin>h3{display:none;}
@media(max-width:560px){.admin-choice-grid{grid-template-columns:1fr;gap:12px;}.admin-choice{min-height:104px;padding:17px;}.admin-page .button{max-width:100%;}.admin-fold,.admin-person{padding:14px;}.admin-page>button{min-height:44px;}}

.next-event-card{padding:20px;margin:12px 0 24px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:16px;background:var(--soft);display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;}.next-event-card>h3,.next-event-card>strong,.next-event-card>p,.next-event-card>details{flex-basis:100%;margin:0;}.next-event-card>h3{font-size:1.2rem;}.next-events-list{list-style:none;padding:0;margin:.45rem 0}.next-events-list>li{display:flex;justify-content:space-between;gap:.3rem .75rem;flex-wrap:wrap;padding:.45rem 0;border-bottom:1px solid var(--line)}.next-events-list>li>span{color:var(--muted)}.next-event-card>button{min-height:44px;}.response-badge{font-size:.9rem;font-weight:600;padding:8px 10px;border-radius:8px;background:var(--soft);color:var(--ink);}

.event-filter-bar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0;}.event-filter-bar input{flex:1 1 220px;min-width:0;}.event-filter-bar select{flex:0 1 190px;min-width:0;}.event-card>h3{margin-bottom:8px;}.event-card>.button{min-height:44px;margin:6px 0;}.event-fold{border-top:1px solid var(--line);margin-top:14px;padding-top:8px;}.event-fold>summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;font-weight:600;}.event-fold .button{margin:6px 10px 6px 0;min-height:44px;white-space:normal;}.event-cancelled{opacity:.8;}.event-card .response-badge{display:table;margin:10px 0;}@media(max-width:560px){.event-filter-bar input,.event-filter-bar select{flex-basis:100%;width:100%;}}

.people-admin>.button{margin-right:10px;}.people-admin>.hint{line-height:1.55;}.person-account{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;}.person-account h4{margin:0 0 8px;}.person-account form>label:not(.choir-switch){display:block;}.person-account select{width:100%;max-width:100%;}.people-admin .admin-person>summary{overflow-wrap:anywhere;}.people-admin details>strong{display:block;margin-top:16px;}.people-admin form{margin-bottom:12px;}

.beta-diagnostic-notice{font-size:.8rem;color:var(--muted,var(--color-muted));padding:12px 16px;max-width:720px;}.beta-footer{grid-column:1/-1;}.beta-footer:not(:last-child){display:none;}.diagnostic-issue{padding:16px 0;border-bottom:1px solid var(--line,var(--color-border));}.diagnostic-issue p{margin:5px 0;font-size:.85rem;}.beta-diagnostics>div>label:not(.choir-switch){display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;}.beta-diagnostics button{margin:4px;}.beta-diagnostics input[type=checkbox]:not([role="switch"]){width:22px;height:22px;}.beta-diagnostics select{max-width:240px;}
/* Shared mobile messenger surfaces */
.chat-panel,dialog.messenger-dialog{}
.chat-panel>h3{margin:8px 0 4px;}.chat-panel>.hint{font-size:.82rem;line-height:1.5;margin:0 0 14px;max-width:65ch;}
.chat-tools{display:flex;gap:10px;align-items:center;margin:10px 0;}.chat-tools input{width:100%;min-width:0;border:1px solid var(--chat-edge,var(--color-control-border));border-radius:24px;background:var(--chat-incoming,var(--color-surface));color:var(--chat-ink,var(--color-text));padding:11px 16px;font:inherit;font-size:.88rem;}.chat-result{font-size:.75rem;white-space:nowrap;color:var(--chat-secondary,var(--color-muted));}
.chat-timeline.community-message-list,.chat-timeline.direct-history,.chat-timeline.chat-room-timeline{display:flex;flex-direction:column;gap:5px;min-height:230px;max-height:48dvh;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;background:var(--chat-paper,var(--color-surface));border:1px solid var(--chat-edge,var(--color-border));border-radius:18px;padding:14px 12px;scrollbar-width:thin;position:relative;}
.chat-day{align-self:center;background:var(--chat-incoming,var(--color-surface));color:var(--chat-secondary,var(--color-muted));font-size:.72rem;font-weight:600;border-radius:20px;padding:5px 12px;margin:12px 0;box-shadow:0 1px 2px rgb(var(--color-shadow-rgb) / 0.031);}
.chat-bubble{position:relative;align-self:flex-start;max-width:85%;min-width:120px;border-radius:4px 16px 16px 16px;padding:10px 12px 7px;background:var(--chat-incoming,var(--color-surface));color:var(--chat-ink,var(--color-text));box-shadow:0 1px 2px rgb(var(--color-shadow-rgb) / 0.063);overflow-wrap:anywhere;flex-shrink:0;}
.chat-bubble.chat-own{align-self:flex-end;border-radius:16px 4px 16px 16px;background:var(--chat-outgoing,var(--color-soft));}.chat-author{display:block;color:var(--chat-ink,var(--color-text));font-size:.75rem;margin-bottom:3px;}.chat-own .chat-author{display:none;}.chat-text{white-space:pre-wrap;font-size:.94rem;line-height:1.5;margin:0;}.chat-detail{font-size:.76rem;border-top:1px solid var(--chat-edge,var(--color-border));padding-top:6px;margin:6px 0;color:var(--chat-secondary,var(--color-muted));}
.chat-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;font-size:.65rem;line-height:1.4;margin-top:5px;color:var(--chat-secondary,var(--color-muted));}.chat-meta .chat-read{color:var(--color-muted);}.chat-empty{margin:auto;padding:28px 16px;text-align:center;color:var(--chat-secondary,var(--color-muted));font-size:.9rem;max-width:38ch;}
.chat-composer:not([hidden]){
 display:grid;
 grid-template-columns:minmax(0,1fr) 48px;
 gap:6px;
 align-items:end;
 min-width:0;
 margin:0;
 padding:6px 0 0;
 position:sticky;
 bottom:calc(74px + env(safe-area-inset-bottom));
 z-index:2;
 background:var(--color-surface);
}
.chat-input-label{margin:0!important;display:block!important;min-width:0;}.chat-composer textarea{display:block;box-sizing:border-box;width:100%;min-height:46px;max-height:240px;resize:none;border:0!important;box-shadow:none!important;outline-offset:1px;background:transparent!important;color:var(--chat-ink,var(--color-text))!important;margin:0!important;padding:12px;font:inherit;font-size:16px;line-height:1.4;border-radius:16px;}.chat-composer .chat-send{width:46px;height:46px;min-height:46px;padding:0;margin:0!important;border-radius:50%;background:var(--color-button);color:var(--color-button-text);font-size:1.5rem;flex-shrink:0;}.chat-send-status{grid-column:1/-1;margin:0 10px;font-size:.75rem;color:var(--chat-secondary,var(--color-muted));}.chat-send-status:empty{display:none;}.chat-composer[data-send-state=failed] .chat-send-status{color:var(--color-text);}.chat-retry{grid-column:1/-1;justify-self:start;background:transparent;border:0;font:inherit;font-size:.85rem;font-weight:600;color:var(--chat-ink,var(--color-text));padding:8px 12px;cursor:pointer;}.chat-retry[hidden]{display:none;}.chat-latest{display:block;margin:8px auto;border-radius:20px;border:1px solid var(--chat-edge,var(--color-border));padding:8px 14px;background:var(--chat-incoming,var(--color-surface));color:var(--chat-ink,var(--color-text));cursor:pointer;}.chat-latest[hidden]{display:none;}
.chat-message-menu{margin-top:4px;font-size:.75rem;}.chat-message-menu summary{cursor:pointer;text-align:right;list-style:none;}.chat-message-menu button{border:0;padding:8px;background:transparent;color:var(--chat-ink,var(--color-text));font:inherit;}.chat-heading{display:flex;align-items:center;gap:12px;padding:4px 0 12px;border-bottom:1px solid var(--chat-edge,var(--color-border));flex-shrink:0;}.chat-heading>div{flex:1;min-width:0;}.chat-heading h2{font-family:inherit;font-size:1.1rem;line-height:1.3;margin:0;}.chat-heading .hint{font-size:.75rem;margin:4px 0 0;}.chat-back{border:0;background:transparent;color:inherit;font-size:1.5rem;min-width:44px;min-height:44px;cursor:pointer;}.chat-options{position:relative;}.chat-options summary{font-size:1.7rem;list-style:none;cursor:pointer;padding:8px;}.chat-options[open] button{position:absolute;right:0;top:44px;z-index:5;width:220px;box-shadow:0 4px 20px rgb(var(--color-shadow-rgb) / 0.133);}.chat-connection-status{font-size:.8rem;color:var(--chat-secondary,var(--color-muted));margin:6px 0;}.chat-connection-status:empty{display:none;}
dialog.messenger-dialog{width:min(600px,calc(100vw - 24px));height:min(780px,90dvh);max-height:90dvh;padding:18px;overflow:hidden;box-sizing:border-box;}dialog.messenger-dialog>form{height:100%;display:flex;flex-direction:column;min-height:0;}dialog.messenger-dialog .chat-timeline{flex:1;max-height:none;min-height:0;}dialog.messenger-dialog .chat-tools{flex-shrink:0;}dialog.messenger-dialog .chat-composer{flex-shrink:0;position:static;margin-bottom:0;}.direct-composer>textarea{min-width:0;}
@media(max-width:600px){.chat-timeline.community-message-list,.chat-timeline.chat-room-timeline{max-height:max(170px,calc(100dvh - 340px));min-height:160px;padding:12px 8px;}.chat-bubble{max-width:89%;}.chat-panel>.hint{font-size:.76rem;}.chat-panel .chat-composer{bottom:calc(68px + env(safe-area-inset-bottom));}dialog.messenger-dialog{width:100vw;height:100dvh;max-height:100dvh;max-width:none;margin:0;border:0;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));}dialog.messenger-dialog .chat-timeline{max-height:none;min-height:0;}.chat-heading h2{font-size:1rem;}}

.community-chat-open>.community-tabs{display:none;}.chat-overview-back{margin:0 0 10px;padding:8px 0;min-height:40px;}#community-chat-panel>h3,#community-directors-panel>h3{display:none;}.community-chat-open .panel-head{margin-bottom:0;}

.chat-meta{font-size:.72rem;}.chat-author{font-size:.78rem;}.chat-day{font-size:.75rem;}.chat-cleanup{margin-top:12px;font-size:.8rem;}

/* Palette semantics: shared by web and the Android assets. */
:root,body{background:var(--color-background);color:var(--color-text)}.app.frame,.app>main{background:var(--color-background)}.topbar{background:var(--color-surface)}
.button.primary,button.primary,.primary,.chat-composer .chat-send{background:var(--color-button);color:var(--color-button-text);border-color:var(--color-control-border)}.selection-bar{background:var(--color-sidebar);color:var(--color-sidebar-text)}.selection-bar button{background:var(--color-button);color:var(--color-button-text)}
input,textarea,select{color:var(--color-text);accent-color:var(--color-button)}input:not([type=checkbox]):not([type=radio]),textarea,select{background-color:var(--color-surface);border-color:var(--color-control-border)}input::placeholder,textarea::placeholder{color:var(--color-muted);opacity:1}.hint,.muted,small{color:var(--color-muted)}a{color:var(--color-link)}
.brand-icon{background:var(--color-sidebar);color:var(--color-accent)}.avatar{background:var(--color-selected);border-color:var(--color-surface);color:var(--color-text)}.avatar:after{background:var(--color-success-fg);border-color:var(--color-surface)}
.tabs .tab.active,.chip.active,.segmented button.active,.detail-tabs button.active,.info-tabs button.active,.community-tabs .active{background:var(--color-selected);color:var(--color-text);box-shadow:inset 0 0 0 1px var(--color-focus)}
.chat-panel,dialog.messenger-dialog{--chat-paper:var(--color-chat-paper);--chat-incoming:var(--color-chat-incoming);--chat-outgoing:var(--color-chat-outgoing);--chat-ink:var(--color-text);--chat-secondary:var(--color-muted);--chat-edge:var(--color-border)}.chat-meta .chat-read{color:var(--color-link)}.chat-composer[data-send-state=failed] .chat-send-status{color:var(--color-danger-fg)}
:focus-visible{outline-color:var(--color-focus)}dialog::backdrop{background:rgb(var(--color-shadow-rgb) / .5)}
@media(min-width:681px){.app>.tabs{background:var(--color-sidebar)}.app>.tabs .tab{color:var(--color-sidebar-text)}.app>.tabs .tab.active{background:var(--color-surface);color:var(--color-link);box-shadow:inset 3px 0 0 var(--color-accent)}}
@media(max-width:680px){.app>.tabs{background:var(--color-surface)}.app>.tabs .tab{color:var(--color-muted)}.app>.tabs .tab.active{color:var(--color-link);background:var(--color-surface);box-shadow:none}.tabs .tab.active>span:first-child{background:var(--color-selected);outline:1px solid var(--color-focus)}}
.appearance-dialog{width:min(850px,calc(100vw - 28px));max-width:850px;color:var(--color-text);background:var(--color-surface)}.appearance-dialog>form{display:grid;gap:16px}.appearance-dialog h2{margin:0}.appearance-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.appearance-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:12px;border:2px solid var(--color-border);border-radius:16px;color:var(--color-text);background:var(--color-surface)}.appearance-card[aria-pressed=true]{border-color:var(--color-focus);box-shadow:0 0 0 1px var(--color-focus)}.appearance-card>span:not(.appearance-miniature){font-size:.78rem;line-height:1.4;color:var(--color-muted)}.appearance-preview-label{font-weight:700}.appearance-miniature{display:grid;grid-template-columns:24px 1fr;width:100%;height:112px;border-radius:8px;overflow:hidden;background:var(--preview-background);color:var(--preview-text)}.appearance-mini-sidebar{background:var(--preview-sidebar);color:var(--preview-sidebar-text);padding-top:12px;text-align:center}.appearance-mini-content{padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}.appearance-mini-title{font-family:Georgia,serif;font-size:.85rem}.appearance-mini-welcome,.appearance-mini-event{border-radius:5px;background:var(--preview-surface);padding:8px 5px;font-size:.6rem}.appearance-mini-welcome{border-left:2px solid var(--preview-accent)}.appearance-mini-event{background:var(--preview-selected)}.appearance-actions{display:flex;justify-content:flex-end;gap:12px}.appearance-dialog label{display:grid;gap:7px}.appearance-dialog select{padding:12px;border:1px solid var(--color-control-border);border-radius:10px}
@media(max-width:600px){.appearance-cards{grid-template-columns:1fr;gap:10px}.appearance-card{display:grid;grid-template-columns:116px 1fr;column-gap:12px}.appearance-miniature{grid-row:1/4;height:94px}.appearance-card>strong{align-self:end}.appearance-dialog{padding:20px;max-height:92dvh}.appearance-card>span:not(.appearance-miniature){font-size:.75rem}}
/* Motifs deliberately swapped at the owner's request: Golgotha header, score welcome. */
.choir-welcome{background-color:var(--color-surface);background-image:linear-gradient(90deg,var(--color-surface) 0%,rgb(var(--color-surface-rgb) / .98) 30%,rgb(var(--color-surface-rgb) / .92) 57%,rgb(var(--color-surface-rgb) / .25) 100%),var(--choir-image-welcome,url('./assets/notenblatt-header.webp'));background-size:cover;background-position:right center;border:1px solid var(--color-border)}
@media(min-width:681px){#community{position:relative;isolation:isolate}#community.community-home-view:before{content:'';position:absolute;top:0;right:0;left:0;height:225px;z-index:-1;border-radius:16px;pointer-events:none;background-image:linear-gradient(90deg,var(--color-background) 0%,rgb(var(--color-background-rgb) / .96) 28%,rgb(var(--color-background-rgb) / .64) 62%,rgb(var(--color-background-rgb) / .16)),linear-gradient(0deg,var(--color-background) 0%,transparent 58%),var(--choir-image-header,url('./assets/golgatha-header.webp'));background-size:cover;background-position:right center}}
@media(max-width:680px){.choir-welcome{background-image:linear-gradient(90deg,rgb(var(--color-surface-rgb) / .97) 0%,rgb(var(--color-surface-rgb) / .94) 64%,rgb(var(--color-surface-rgb) / .75)),var(--choir-image-welcome,url('./assets/notenblatt-header-small.webp'));background-position:right center;background-size:cover}}

@media(min-width:681px){.choir-welcome>p:not(.eyebrow){max-width:62ch}}

.appearance-actions{position:sticky;bottom:0;z-index:4;background:var(--color-surface);padding:12px 0 4px;border-top:1px solid var(--color-border)}@media(max-width:600px){.appearance-dialog>form{gap:12px}.appearance-dialog .hint{margin:2px 0;line-height:1.5}}

#appearance-title:focus{outline:none}

.help .notice{color:var(--color-success-fg)}.help .notice.error{color:var(--color-danger-fg)}#attendance-metrics .metric small,#attendance-metrics .metric strong{color:inherit}

.rich-text-toolbar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;position:relative;margin:3px 0}.rich-text-toolbar>button,.rich-text-toolbar>details>summary{display:grid;place-items:center;min-width:36px;min-height:36px;padding:5px;border-radius:8px;color:var(--color-text);font-size:.85rem;cursor:pointer;list-style:none}.rich-text-toolbar>button:hover{background:var(--color-selected)}.rich-text-toolbar>button[aria-label=Fett]{font-weight:800}.rich-text-toolbar>button[aria-label=Kursiv]{font-style:italic}.rich-text-toolbar>button[aria-label=Unterstrichen]{text-decoration:underline}.rich-text-toolbar .emoji-grid{position:absolute;bottom:40px;left:0;display:grid;grid-template-columns:repeat(6,38px);gap:3px;padding:8px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface);box-shadow:0 4px 18px rgb(var(--color-shadow-rgb) / .18);z-index:20}.emoji-grid button{font-size:22px;padding:5px;min-height:38px}.chat-input-label .rich-text-toolbar{margin-left:5px}.direct-composer>.rich-text-toolbar{grid-column:1/-1}.chat-composer .rich-text-toolbar{max-width:100%}

.appearance-shared{border-top:1px solid var(--color-border);padding-top:12px}.appearance-shared:has(button[hidden]){display:none}.home-action-editor{display:grid;gap:12px}.home-action-edit{display:grid;grid-template-columns:44px 1fr auto auto;gap:8px;border:1px solid var(--color-border);border-radius:12px;padding:12px}.home-action-edit input,.home-action-edit select{grid-column:2/-1;min-height:42px;width:100%;padding:8px}.home-action-edit>button:first-child{grid-row:1/4;touch-action:none;font-size:1.4rem;cursor:grab}.home-action-edit>button:not(:first-child){min-width:44px;min-height:44px}.home-action-edit>button:nth-last-child(2){grid-column:3}.home-action-edit>button:last-child{grid-column:4}

.service-planning-dialog{width:min(900px,calc(100vw - 24px));max-width:900px}.service-save-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-inline-start:auto;max-width:100%}.service-save-actions[hidden]{display:none}.service-save-actions .button{min-height:44px;padding:.55rem .7rem;max-width:100%}.service-planning-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem;position:sticky;top:0;background:var(--color-surface);z-index:4;padding:8px 0}.service-card{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px;border:1px solid var(--color-border);border-radius:14px;margin:10px 0;background:var(--color-surface)}.service-card h4{margin:0;flex:1;min-width:140px}.service-card>p{margin:0}.service-song-picker{display:grid;gap:8px;max-height:280px;overflow:auto;margin:12px 0}.service-song-picker label{display:flex;gap:10px;align-items:center;min-height:44px;padding:7px;border:1px solid var(--color-border);border-radius:8px}.service-song-picker input{width:20px;height:20px;flex-shrink:0}.service-song-picker small{margin-left:auto;font-size:.7rem}.service-planning-dialog textarea{width:100%;padding:10px;border:1px solid var(--color-control-border);border-radius:10px}.service-planning-dialog li{padding:8px 0}.service-planning-dialog li button{min-width:40px;min-height:40px;margin-left:6px}.service-planning-dialog section{border-top:1px solid var(--color-border);padding:14px 0}#organization-settings form{display:grid;gap:12px}#organization-settings label{display:flex;align-items:center;gap:10px;justify-content:space-between}#organization-settings label input[type=checkbox]{min-width:21px;height:21px}#organization-settings select,#organization-settings input[type=time]{padding:8px;border:1px solid var(--color-control-border);border-radius:8px}#organization-settings textarea{width:100%;font-size:.8rem;padding:10px;margin-top:10px}@media(max-width:600px){.service-planning-dialog{padding:16px}.service-card{gap:8px}.service-card>strong{width:100%}#organization-settings label{flex-wrap:wrap}}

.chat-files,.chat-pending-files{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0}.chat-files button,.chat-pending-files button{overflow-wrap:anywhere;max-width:100%}.chat-quote{border-inline-start:3px solid var(--accent);padding:.5rem;margin:.4rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-reactions{display:block;padding:.25rem}.direct-chat-dialog{width:min(42rem,96vw)}.chat-panel input[type=file]{width:100%;max-width:100%;font-size:.85rem}.home-action-edit button:first-child{touch-action:none}
@media(max-width:600px){.rich-text-toolbar .emoji-grid{max-width:calc(100vw - 4rem);grid-template-columns:repeat(4,minmax(0,1fr));right:0;left:auto}}

.chat-image-preview{width:min(50rem,96vw)}.chat-image-preview img{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:1rem auto}.chat-image-preview h3{overflow-wrap:anywhere}.chat-preferences{display:flex;gap:.75rem;flex-wrap:wrap}body[data-rich-text="off"] .rich-text-toolbar{display:none!important}

.chat-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.4rem;padding:.15rem .35rem;margin-inline-start:.5rem;border-radius:99px;background:var(--color-button);color:var(--color-button-text);font-size:.78rem;font-weight:700}
.member-presence{display:inline-flex;align-items:center;gap:.35rem;flex:none;margin-inline-start:.4rem;padding:.1rem .45rem;border-radius:99px;vertical-align:middle;background:var(--color-success-bg);color:var(--color-success-fg);font-size:.75rem;font-weight:650;line-height:1.5;white-space:nowrap}
.member-presence::before{content:'';display:block;width:.4rem;height:.4rem;border-radius:50%;background:currentColor}
.member-presence[hidden]{display:none}
.member-presence.member-offline{color:var(--color-muted);background:transparent}
.access-requests{margin-block:1rem;padding:.75rem;border:1px solid var(--color-border);border-radius:var(--radius,12px)}

.choir-switch{display:flex;align-items:center;gap:.7rem;min-height:44px;margin:1rem 0;cursor:pointer}.choir-switch input{appearance:none;flex:0 0 2.8rem;width:2.8rem;height:1.55rem;padding:0;margin:0;border-radius:1rem;background:var(--color-control-border);border:2px solid var(--color-muted);position:relative;cursor:pointer}.choir-switch input:before{content:"";display:block;width:1.05rem;height:1.05rem;border-radius:50%;background:var(--color-text);position:absolute;left:.12rem;top:.12rem;transition:transform .15s}.choir-switch input:checked{background:var(--color-button);border-color:var(--color-button)}.choir-switch input:checked:before{transform:translateX(1.18rem);background:var(--color-button-text)}
.choir-switch input:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}
.choir-switch input:disabled{cursor:not-allowed;opacity:.6}
@media(prefers-reduced-motion:reduce){.choir-switch input:before{transition:none}}.local-role-picker{margin:1rem 0;min-width:0}.local-role-picker .check-row{display:flex;gap:.7rem;align-items:center;margin:.6rem 0}
summary:focus-visible,.search:focus-within,.detail-edit:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}

.service-task-tabs,.service-summary{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.service-task-tabs [aria-selected=true]{background:var(--color-button);color:var(--color-button-text)}.service-task-tabs button{flex:1;min-height:44px}.service-badge{border:1px solid var(--color-control-border);border-radius:1rem;padding:.35rem .7rem;font-size:.85rem;background:var(--color-soft)}.service-task-panel{display:grid;gap:1rem}.service-task-panel form{display:grid;gap:1rem}.service-task-panel details{padding:.7rem;border:1px solid var(--color-border);border-radius:.7rem}.service-task-panel summary{cursor:pointer;min-height:32px}.service-song-tools{display:grid;gap:.6rem}.service-planning-dialog .choir-switch{display:flex;align-items:center;gap:.7rem}.service-contribution{padding:.7rem;border-bottom:1px solid var(--color-border)}.service-task-panel li{overflow-wrap:anywhere}.service-task-panel li button{min-width:44px;min-height:44px;margin:.25rem}.service-task-panel textarea,.service-task-panel select,.service-song-tools input[type=search]{width:100%;max-width:100%;box-sizing:border-box}

.recurring-absence-editor form{display:grid;gap:1rem}.recurring-absence-editor fieldset{display:flex;flex-wrap:wrap;gap:.8rem}.recurring-absence-editor .check-row{display:flex;align-items:center;gap:.4rem}.recurring-absence-editor input,.recurring-absence-editor textarea,.recurring-absence-editor select{max-width:100%;box-sizing:border-box}.recurring-absence-dialog .history-item{overflow-wrap:anywhere}

.free-song{border:1px dashed var(--color-border);background:var(--color-surface);color:var(--color-text-muted);min-height:48px;margin-block:4px;width:100%;text-align:left}.free-song:disabled{cursor:default}.free-song .song-main{font-weight:400}

.song-archive-search{display:block;width:100%;min-height:44px;padding:12px;border:1px solid var(--color-control-border);border-radius:12px;background:var(--color-surface);color:var(--color-text);font:inherit}.song-archive-search:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}

.shared-images-dialog{max-width:680px}.shared-image-card{padding:12px 0;border-top:1px solid var(--color-border)}.shared-image-preview{display:block;width:100%;aspect-ratio:3/1;object-fit:cover;object-position:right center;border-radius:12px;margin:12px 0}.shared-image-card input[type=file]{max-width:100%;margin:12px 0}.shared-image-card button{min-height:44px;margin:6px 6px 6px 0}

.group-home-appearance{display:grid;gap:12px;min-width:0}
.group-home-appearance .group-home-welcome{--choir-image-welcome:var(--group-home-image,url('./assets/notenblatt-header-small.webp'));padding:clamp(16px,3vw,32px);border-radius:16px;overflow-wrap:anywhere}
.group-home-welcome p{white-space:pre-line}
.group-home-cover{display:none}
@media(min-width:681px){
 .group-home-appearance .group-home-welcome{--choir-image-welcome:var(--group-home-image,url('./assets/notenblatt-header.webp'))}
 .group-home-cover{display:block;min-height:115px;border-radius:16px;background-image:linear-gradient(90deg,var(--color-surface),rgb(var(--color-surface-rgb) / .32)),var(--group-home-image,url('./assets/golgatha-header.webp'));background-size:cover;background-position:right center}
}

.calendar-planning-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.planning-action-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:110px;padding:14px;border:1px solid var(--color-border);border-radius:15px;background:var(--color-surface);color:var(--color-text);text-align:center;font:inherit}.planning-action-card strong{font-size:13px}.planning-action-symbol{display:grid;place-items:center;font-size:29px;color:var(--color-primary);width:36px;height:36px}.planning-action-symbol svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brand-icon{background:none;padding:0}.brand-icon svg{width:100%;height:100%}

.dialog-with-x{max-height:calc(var(--dialog-viewport-height,100dvh) - 64px - env(safe-area-inset-top,0px))!important}.dialog-floating-close[popover]{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--color-control-border);border-radius:50%;background:var(--color-button);color:var(--color-button-text);font:30px/1 system-ui;box-shadow:0 3px 12px rgb(var(--color-shadow-rgb) / .25);cursor:pointer;z-index:2147483647}.dialog-floating-close[hidden]{display:none!important}.dialog-floating-close:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}.dialog-x-fallback{overflow:visible!important}.dialog-scroll-shell{max-height:calc(var(--dialog-viewport-height,100dvh) - 100px);overflow:auto}.dialog-x-fallback>.dialog-floating-close{position:fixed}.dialog-with-x::backdrop{pointer-events:auto}

/* Composer utilities occupy full rows; the message and send button share the last row. */
.chat-composer>input[type=file],.chat-composer>.chat-pending-files,.chat-composer>.chat-quote,.chat-composer>.rich-text-toolbar,.chat-composer>.chat-send-status,.chat-composer>.chat-retry{grid-column:1/-1;min-width:0;max-width:100%}
.chat-composer>input[type=file]{width:100%;overflow:hidden}
.chat-composer>.chat-pending-files:empty,.chat-composer>.chat-send-status:empty{display:none}
.chat-composer>.chat-compose-body,.chat-composer>.chat-input-label{grid-column:1;min-width:0;width:100%}
.chat-composer>.chat-send{grid-column:2;align-self:end}
.chat-composer textarea{min-height:56px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:break-word}
.direct-chat-dialog .chat-composer{position:static;bottom:auto}
.chat-composer>.chat-voice-composer{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.chat-voice-composer[hidden],.chat-voice-composer [hidden],.chat-voice-message [hidden]{display:none!important}
.chat-voice-composer button,.chat-voice-message button{min-height:44px;margin:0}
.chat-voice-message{width:100%;min-width:0}
.chat-voice-composer audio,.chat-voice-message audio{display:block;width:16rem;max-width:100%;min-width:0}
.chat-voice-status{margin:.2rem 0;width:100%;font-size:.82rem;color:var(--color-muted)}
.chat-voice-status:empty{display:none}

.service-song-overview{width:100%;min-width:0;margin:.75rem 0}.service-song-overview h4{margin:0 0 .4rem;font-size:.95rem}.service-song-overview ol{margin:.3rem 0;padding-left:1.6rem}.service-song-overview li{padding:.25rem 0;overflow-wrap:anywhere}

.android-update-banner{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;padding:.7rem 1rem;background:var(--color-soft);border-bottom:1px solid var(--color-control-border);color:var(--color-text)}.android-update-copy{flex:1 1 225px;min-width:0;overflow-wrap:anywhere}.android-update-copy p{margin:.25rem 0 0;color:var(--color-text-muted)}.android-update-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}.android-update-actions .button{margin:0;min-height:44px}.android-update-actions a{text-decoration:none}

/* Keep the automatic rehearsal selection outside the collapsed statistics. */
.attendance-current{margin-bottom:1rem}

/* Shared rehearsal priorities retain the existing spacing and theme tokens. */
.plan-priority-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(8rem,11rem);align-items:center;gap:.6rem;margin-bottom:.4rem}
.plan-priority-row .plan-song-choice{min-width:0}.plan-priority-row select{width:100%;min-width:0}
.rehearsal-read-dialog li{margin:.7rem 0}.rehearsal-read-dialog li small{display:block}
@media(max-width:480px){.plan-priority-row{grid-template-columns:minmax(0,1fr)}.plan-priority-row select{margin-left:1.8rem;width:calc(100% - 1.8rem)}}

.rehearsal-read-dialog ul{list-style:none;padding-left:0}

/* Optimierungsetappe 7: gebündelte, mobile und zugängliche Planungsaufgaben. */
.service-inbox-dialog{width:min(720px,calc(100vw - 20px));max-width:720px;max-height:min(88dvh,900px);overflow-y:auto;box-sizing:border-box}
.service-inbox-dialog section{margin-block:1.15rem}
.service-inbox-task,.service-inbox-item{padding:.8rem;margin:.65rem 0;border:1px solid var(--color-border,currentColor);border-radius:.7rem;overflow-wrap:anywhere}
.service-inbox-task p,.service-inbox-item ul{margin:.45rem 0}
.service-inbox-item ul{padding-inline-start:1.35rem}
.service-inbox-item li{margin-block:.25rem}
.service-inbox-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.55rem 0}
.service-inbox-actions button{white-space:normal;text-align:center;max-width:100%}
@media(max-width:420px){.service-inbox-dialog{width:calc(100vw - 12px);padding:1rem}.service-inbox-actions button{flex:1 1 auto}}

/* Erst nach der Rollenprüfung wird die echte Navigation sichtbar. */
#main-navigation[hidden]{display:none!important}

/* Each planning row owns its checkbox AND priority control, including the separator. */
.plan-song-picker .plan-priority-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(142px,auto);align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line);min-height:62px;}
.plan-song-picker .plan-priority-row:last-child{border-bottom:0;}
.plan-song-picker .plan-priority-row .plan-song-choice{min-width:0;min-height:44px;padding:5px 0;border:0;overflow-wrap:anywhere;}
.plan-song-picker .plan-priority-row select{width:100%;min-height:42px;padding:8px;border:1px solid var(--color-control-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);}
@media(max-width:480px){.plan-song-picker .plan-priority-row{grid-template-columns:minmax(0,1fr);gap:4px;}.plan-song-picker .plan-priority-row select{width:100%;margin-left:0;}}

.actual-rehearsal-choices{border:1px solid var(--line);border-radius:12px;margin:14px 0;padding:12px;}
.actual-rehearsal-choices h3{font-size:14px;margin:4px 0 8px;}
.actual-rehearsal-choice{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
.actual-rehearsal-choice:last-child{border:0;}
.actual-rehearsal-choice input{width:20px;height:20px;min-height:20px;flex:none;}

.rehearsal-song-notes{width:min(560px,calc(100vw - 24px));}
.rehearsal-song-note-item{border-bottom:1px solid var(--line);padding:12px 0;}
.rehearsal-song-note-item summary{cursor:pointer;min-height:38px;font-weight:600;}
.rehearsal-song-note-item label{display:grid;gap:8px;font-size:12px;}
.rehearsal-song-note-item textarea{box-sizing:border-box;width:100%;min-height:100px;font:inherit;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-control-border);border-radius:8px;padding:12px;}
.rehearsal-song-note-item button{margin:10px 0;}
.song-probe-note{display:block;color:var(--color-muted);white-space:pre-wrap;}
/* Read-only monthly overview: no attendance or sickness data in the calendar. */
.chorbegleiter-month-calendar{margin:1rem 0;padding:1rem;border:1px solid var(--color-border);border-radius:1rem}
.chorbegleiter-month-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem}
.chorbegleiter-month-heading button{min-height:2.5rem;min-width:2.5rem}
.chorbegleiter-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.2rem}
.chorbegleiter-month-weekday{text-align:center;opacity:.8;font-size:.75rem}
.chorbegleiter-month-day{min-width:0;min-height:2.8rem;padding:.2rem;display:flex;flex-direction:column;align-items:center;justify-content:center}
.chorbegleiter-month-day.has-events{border:2px solid var(--color-focus)}
.chorbegleiter-month-day small{font-size:.65rem}
.chorbegleiter-month-entry{padding:.5rem 0;border-top:1px solid currentColor}
@media(max-width:420px){.chorbegleiter-month-calendar{padding:.5rem}.chorbegleiter-month-grid{gap:.1rem}.chorbegleiter-month-day{min-height:2.3rem;padding:0}}

[data-legacy-dialog-close=true]{display:none!important}

.attendance-rehearsal-navigation{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.attendance-rehearsal-navigation>strong,.attendance-rehearsal-navigation>p{flex-basis:100%;margin:0}.attendance-rehearsal-navigation select{flex:1 1 220px;min-width:0;max-width:100%}

/* Scoped import assistant; all colors continue to use the shared theme. */
.table-import-admin{margin-block:1rem}.table-import-admin label{display:block;margin-block:.6rem}.table-import-admin input,.table-import-admin select{display:block;width:100%;max-width:100%;min-height:44px;margin-block:.4rem;box-sizing:border-box}.table-import-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:18rem;overflow:auto}.table-import-admin button{margin:.3rem .3rem .3rem 0}

.occasion-filter-field{min-width:0;margin:0;padding:0;border:0;grid-column:1/-1}.occasion-filter-field legend{font-weight:600}.occasion-choices{display:flex;flex-wrap:wrap;gap:.5rem}.occasion-choice{min-height:44px;max-width:100%;padding:.5rem .85rem;border:1px solid var(--color-control-border);border-radius:999px;background:var(--color-surface);color:var(--color-text);white-space:normal;width:auto}.occasion-choice[aria-pressed="true"]{background:var(--color-button);color:var(--color-button-text);border-color:var(--color-button)}.occasion-choice:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}

.text-character-counter{display:block;text-align:right;color:var(--color-muted);font-size:.8rem;margin-top:.25rem}
.group-service-overall-actions{flex-wrap:wrap;}

.calendar-automation-fields fieldset{min-inline-size:0;margin:.75rem 0;padding:.65rem .75rem;border:1px solid var(--color-border);border-radius:.7rem;}
.calendar-automation-fields legend{max-width:100%;padding:0 .3rem;font-weight:650;overflow-wrap:anywhere;}
.calendar-automation-fields label.choir-switch,.calendar-automation-fields label.check-row{display:flex;align-items:center;gap:.7rem;min-height:44px;}
.calendar-automation-fields .check-row input{appearance:auto;flex:0 0 20px;width:20px;height:20px;margin:0;padding:0;}
.calendar-automation-fields input:not([type="checkbox"]),.calendar-automation-fields select{width:100%;max-width:100%;}
.calendar-automation-fields fieldset>button{min-height:44px;max-width:100%;white-space:normal;}
.recurring-absence-editor .dialog-actions{flex-wrap:wrap;}
.recurring-absence-editor fieldset{min-inline-size:0;}
/* Musikblätter teilen die Dialogfarben und bleiben auch mit eingeschaltetem Zoom lesbar. */
.music-sheet-dialog{width:min(880px,calc(100vw - 32px));max-width:none}
.music-sheet-dialog .sheet-head{flex-wrap:wrap;gap:12px}
.music-sheet-dialog .sheet-head h2{overflow-wrap:anywhere}
.music-sheet-dialog .music-sheet-body{display:grid;gap:14px}
.music-sheet-dialog .info-tabs{display:flex;gap:8px;flex-wrap:wrap}
.music-sheet-dialog .info-tabs [aria-pressed="true"]{background:var(--color-button);color:var(--color-button-text)}
.music-sheet-dialog [hidden]{display:none!important}
dialog.music-sheet-dialog.music-sheet-full[open]{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border:0;border-radius:0;transform:none;box-shadow:none}
.music-sheet-full [data-sheet-chords]{width:fit-content;max-width:100%;margin-inline:auto}
.group-book-song-list{border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface);}
.group-book-song-list .song-row-live{min-height:64px;}
.group-book-song-list .song-row-live:has(+.button){border-bottom:0;}
.group-book-song-list .song-num{width:auto;min-width:2.5rem;max-width:22%;overflow-wrap:anywhere;}
.group-book-song-list .song-main{overflow-wrap:anywhere;}
.group-book-song-list>.button,.group-book-song-list>.hint{margin:.5rem;}
.music-sheet-dialog .music-sheet-body>*{min-width:0;}
.music-sheet-pick,.music-sheet-fields,.music-sheet-fields label,.music-sheet-panel label{display:grid;gap:6px}
.music-sheet-fields textarea{width:100%;min-width:0;font-family:monospace}
.music-sheet-pick select,.music-sheet-fields input,.music-sheet-panel input,.music-sheet-panel textarea{min-width:0;max-width:100%}
.music-sheet-tools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.music-sheet-panel>label{margin:8px 0}
.music-sheet-tools select{min-height:44px}
.music-sheet-score{font-size:clamp(1.05rem,2.8vw,1.32rem);line-height:1.5;padding:10px 0}
.music-sheet-score h3,.music-sheet-score .hint{overflow-wrap:anywhere}
.music-sheet-line{display:flex;flex-wrap:wrap;align-items:end;white-space:pre-wrap;overflow-wrap:anywhere;min-height:.7em;margin:0 0 .28em}
.music-sheet-line.music-sheet-space{margin:0 0 .65em}
.music-sheet-segment{display:inline-flex;flex-direction:column;align-self:end;max-width:100%;min-width:0}
.music-sheet-symbol{color:var(--color-button,var(--primary));line-height:1.2;min-height:1.2em;padding-right:.15em}
.music-sheet-segment>span{overflow-wrap:anywhere}
.music-sheet-note{white-space:pre-wrap;overflow-wrap:anywhere}
.music-sheet-folder li{margin:.55em 0}
.music-sheet-folder li .button{margin:.2em;max-width:100%;white-space:normal}
@media(max-width:480px){.music-sheet-tools{gap:8px}.music-sheet-dialog .info-tabs .button{padding-inline:10px}.music-sheet-dialog{width:calc(100vw - 24px)}}

#main-chats-status:empty{display:none}
.phone-mode.phone-main-chat-ready:not(.group-workspace-active) .app>#phone-main-navigation:not([hidden]){display:flex!important}
.phone-mode.phone-main-chat-open:not(.group-workspace-active) .app>.main>#chats:not([hidden]){display:block!important}
.phone-mode.phone-main-chat-open:not(.group-workspace-active) .app>.main>#phone-area{display:none!important}
@media(min-width:681px){
 .phone-mode.phone-main-chat-ready:not(.group-workspace-active) .app.frame{display:grid}
 .phone-mode.phone-main-chat-ready:not(.group-workspace-active) .app>.main{grid-column:2}
}
@media(max-width:680px){
 #main-navigation .tab>span:first-child{width:min(100%,52px)}
}

/* Liedverwendungen nach Monat */
.song-timeline{container-type:inline-size}
.song-timeline-year{display:flex;align-items:center;gap:.6rem;font-weight:600}
.song-timeline-year select{width:auto;min-height:44px}
.song-timeline-total{margin:.6rem 0;font-weight:600}
.song-timeline-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.2rem}
.song-timeline-month{min-width:0;min-height:72px;display:grid;align-items:center;justify-items:center;grid-template-rows:auto 2rem auto;gap:.2rem;padding:.2rem .1rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text);font:inherit;font-size:.75rem;cursor:pointer}
.song-timeline-month[aria-pressed="true"]{border-color:var(--color-control-border);background:var(--color-soft)}
.song-timeline-month:focus-visible{outline:2px solid var(--color-focus);outline-offset:0}
.song-timeline-rail{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--color-border)}
.song-timeline-bar{width:min(66%,1rem);height:var(--song-timeline-height);background:var(--color-button);border-radius:3px 3px 0 0}
.song-timeline-month:not([data-count="0"]) .song-timeline-bar{min-height:2px}
.song-timeline-detail{margin-top:.75rem}
.song-timeline-detail h4{margin:0 0 .35rem}
.song-timeline-detail ul{margin:.3rem 0;padding-inline-start:1.4rem}
@container (min-width:25rem){.song-timeline-chart{grid-template-columns:repeat(12,minmax(0,1fr))}}

.profile-photo-editor{width:min(28rem,calc(100% - 2rem))}
.profile-photo-preview{display:block;width:min(100%,16rem,42vh);height:auto;margin:.75rem auto;border-radius:var(--radius,12px);touch-action:none;cursor:grab}
.profile-photo-preview:active{cursor:grabbing}
.profile-photo-controls{display:grid;gap:.45rem}
.profile-photo-controls>button{justify-self:start}
.profile-photo-controls input[type=range]{width:100%;margin:0;min-height:1.75rem}
.profile-photo-current{display:block;width:80px;height:80px;object-fit:cover;border-radius:50%;margin:.75rem auto}
.profile-photo-current[hidden]{display:none}
.member-profile-photo{width:40px;height:40px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-inline-end:.65rem}

.group-choir-heading .community-tabs button {display:inline-flex;align-items:center;gap:.45rem;}
.group-choir-heading .community-tabs svg {width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.75;}
.group-service-selection {display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.6rem 0;}
.group-service-selection>div:not(:empty) {flex-basis:100%;}
.group-service-add-song {min-width:44px;min-height:44px;font-size:1.22rem;}
.group-service-add-song[aria-pressed='true'] {color:var(--primary);outline:1px solid currentColor;}

.music-sheet-ink-tools {display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;margin:.45rem 0;}
.music-sheet-ink-tools[hidden]{display:none;}
.music-sheet-ink-tools button[aria-pressed=true]{outline:1px solid currentColor;}
.music-sheet-dialog.music-sheet-full:not(.reader-controls)>.music-sheet-sequence{display:none}
html body dialog.music-sheet-reader-host:has(.reader-controls)>.music-sheet-sequence{display:flex!important;position:absolute;bottom:.4rem;right:.4rem;z-index:2}
.music-sheet-eraser-cursor{position:absolute;pointer-events:none;width:24px;height:24px;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid currentColor;border-radius:50%;background:#8882}
.music-sheet-full.chord-reader.reader-controls .music-sheet-body>:not(:has(>.music-sheet-panel)),
.music-sheet-full.chord-reader.reader-controls .music-sheet-panel>:not(.music-sheet-tools,.music-sheet-score,.music-sheet-chord-palette){display:none}
.music-sheet-full.chord-reader .music-sheet-ink-tools{max-height:32dvh;overflow:auto}
.music-sheet-ink-tools label{max-width:100%;display:inline-flex;align-items:center;gap:.3rem}
.music-sheet-ink-tools input[type=range]{width:6rem}
.music-sheet-word{display:inline-block;max-width:100%}
.music-sheet-ink.is-drawing.music-sheet-legacy-line{pointer-events:none}
.music-sheet-ink>*{pointer-events:none}
.music-sheet-full.chord-reader:not(.reader-controls) .sheet-head,
.music-sheet-full.chord-reader:not(.reader-controls) .music-sheet-body>:not(:has(>.music-sheet-panel)),
.music-sheet-full.chord-reader:not(.reader-controls) .music-sheet-panel>:not(.music-sheet-score){display:none}
.music-sheet-full.chord-reader .music-sheet-body{overflow:auto;max-height:100dvh}
.music-sheet-ink-surface{position:relative;}
.music-sheet-ink-pdf-page{width:max-content;margin:auto;}
.music-sheet-ink{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;}
.music-sheet-ink.is-drawing{pointer-events:auto;touch-action:pan-x pan-y pinch-zoom;cursor:crosshair;}

.chat-composer .message-pill{
 grid-column:1;
 display:flex;
 align-items:flex-end;
 min-width:0;
 border-radius:20px;
 border:1px solid var(--chat-edge,var(--color-control-border));
 background:var(--chat-incoming,var(--color-surface));
 padding:1px 3px;
 position:relative;
}
.message-pill .chat-input-label,.message-pill textarea{flex:1;min-width:0;margin:0}
.chat-composer .message-pill textarea{min-height:44px;border:0;border-radius:12px;background:transparent;padding:10px 2px;line-height:24px;width:100%}
.message-tools>summary,.message-tool-button{display:grid;place-items:center;list-style:none;border:0;background:transparent;color:inherit;cursor:pointer;flex:none;width:40px;height:44px;padding:0;margin:0;font:22px/1 system-ui}
.message-tools>summary::-webkit-details-marker{display:none}
.message-tools>summary:hover,.message-tool-button:hover{background:var(--color-selected);border-radius:12px}
.message-tools>summary:focus-visible,.message-tool-button:focus-visible,
.chat-composer>.message-mic:focus-visible,.chat-composer>.chat-send:focus-visible{
 outline:2px solid var(--color-link);
 outline-offset:-2px;
}
.chat-composer .message-pill,.chat-composer>.message-mic,.chat-composer>.chat-send{order:1}
.chat-panel form.chat-composer[hidden],.chat-send-status:empty{display:none!important}
.message-tools .rich-text-toolbar{position:absolute;bottom:100%;left:0;z-index:4;padding:8px;background:var(--color-surface,#fff);border:1px solid var(--color-control-border);border-radius:12px}
.message-tools .emoji-grid{position:static;display:flex;flex-wrap:wrap}
.chat-composer .message-native-picker{display:none}
.chat-composer>.message-mic,.chat-composer>.chat-send{grid-column:2;align-self:end;border:0;border-radius:16px;width:48px;height:48px;padding:0;background:var(--color-button);color:var(--color-button-text);margin:0}
.message-mic:before{content:"";display:inline-block;width:25px;height:25px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='2' width='6' height='13' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0014 0M12 17v5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
.message-mic[data-recording=true]:before{mask:none;border-radius:3px;width:16px;height:16px}
.chat-composer [hidden]{display:none!important}
.chat-voice-composer:not(:has(audio:not([hidden]),button:not([hidden]),.chat-voice-status:not(:empty))){display:none}
.message-attach:before{content:"";width:22px;height:22px;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-linejoin='round' stroke-linecap='round' d='M9 16V6a3 3 0 016 0v11a5 5 0 01-10 0V7m13 0v10a8 8 0 01-16 0'/%3E%3C/svg%3E") center/contain no-repeat}
.message-camera:before{content:"";width:22px;height:22px;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-linejoin='round' stroke-linecap='round' d='M2 7h5l2-3h6l2 3h5v13H2z M16 13a4 4 0 11-8 0 4 4 0 018 0'/%3E%3C/svg%3E") center/contain no-repeat}
.song-plan-dialog .dialog-actions{flex-wrap:wrap;justify-content:flex-start}.song-plan-dialog .dialog-actions button{max-width:100%;overflow-wrap:anywhere}
.song-plan-results{max-height:min(42dvh,26rem);overflow-y:auto;scrollbar-width:thin}
