:root{--navy:#10233c;--navy2:#1a3452;--accent:#0f927d;--mint:#ddf8ed;--gold:#c48a3b;--ink:#20334a;--muted:#6e8195;--border:#dce5eb;--bg:#f5f7f8;--white:#fff;--red:#bf5260;--shadow:0 12px 34px rgba(25,50,69,.055);--r:16px}
*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--accent)}p{margin:0}h1,h2,h3,h4{line-height:1.23;margin:0;letter-spacing:-.025em}h1{font-size:1.86rem}h2{font-size:1.3rem}h3{font-size:1.05rem}svg{width:18px;height:18px;flex:none}small,.small{font-size:.82rem}strong{font-weight:700}.muted{color:var(--muted)}.tiny{font-size:.77rem}.mono{font-variant-numeric:tabular-nums}.topspace{margin-top:18px}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.grow{flex:1}.hidden{display:none!important}
.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#ecf5fa;display:flex;flex-direction:column;padding:26px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:2px 11px 29px;font-weight:760;font-size:1.31rem;letter-spacing:-.04em}.brand-mark{display:grid;place-items:center;width:33px;height:33px;color:var(--navy);background:#9fe2ca;border-radius:11px;font-weight:900;font-size:22px;letter-spacing:-.08em}.brand small{display:block;font-weight:500;letter-spacing:0;font-size:.67rem;color:#96b4c8;margin-top:-3px}.nav-caption{text-transform:uppercase;letter-spacing:.13em;font-size:.67rem;color:#8facbe;padding:0 12px;margin:15px 0 8px}.nav-link{color:#bad0de;background:transparent;border:0;width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:11px 12px;border-radius:10px;font-weight:570;margin:1px 0}.nav-link.active,.nav-link:hover{color:white;background:#29445e}.nav-link.active svg{color:#a2e8ce}.nav-link .pill-count{margin-left:auto;background:#b66343;color:white;border-radius:20px;font-size:.72rem;padding:1px 7px}.sidebar-bottom{margin-top:auto;border-top:1px solid #39536a;padding:20px 12px 2px}.sidebar-bottom .person{display:flex;align-items:center;gap:10px;margin-bottom:15px}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#d7eee6;color:#0e6b60;font-weight:760;font-size:.82rem}.sidebar-bottom .person .name{font-size:.86rem;font-weight:720;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-bottom .person small{color:#a7c0ce}.logout{background:transparent;border:1px solid #486078;color:#c8d7e2;border-radius:9px;padding:8px 12px;width:100%;text-align:center}.main{min-width:0}.topbar{height:84px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px}.topbar .eyebrow{font-size:.7rem;color:#8192a2;text-transform:uppercase;font-weight:740;letter-spacing:.13em}.org-label{font-size:.83rem;color:var(--muted)}.mobile-menu{display:none}.content{max-width:1540px;padding:32px 36px 65px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.page-head p{color:var(--muted);margin-top:7px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.button{border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--ink);font-weight:670;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:39px;white-space:nowrap}.button:hover{border-color:#a7bfcd;background:#f9fbfc}.button.primary{background:var(--accent);color:white;border-color:var(--accent)}.button.primary:hover{background:#087865}.button.dark{background:var(--navy);color:#fff;border-color:var(--navy)}.button.danger{color:#af374c}.button.ghost{background:transparent;border-color:transparent}.button.small{font-size:.83rem;padding:6px 10px;min-height:29px;border-radius:8px}.button svg{height:17px;width:17px}.seg{display:inline-flex;border:1px solid #d9e3e8;border-radius:12px;background:#f4f7f9;padding:4px;gap:4px}.seg button{border:0;background:transparent;color:#7d8da0;border-radius:9px;font-size:.86rem;font-weight:700;padding:8px 13px}.seg button.active{background:#fff;color:#263f55;box-shadow:0 2px 7px #163c4b19}
.card{border:1px solid var(--border);background:var(--white);border-radius:var(--r);box-shadow:var(--shadow)}.card-pad{padding:22px}.card-head{padding:19px 23px;border-bottom:1px solid #e6edf1;display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head p{color:var(--muted);font-size:.85rem;margin-top:3px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.kpi{padding:21px 23px;position:relative;overflow:hidden}.kpi .label{font-size:.8rem;color:var(--muted);font-weight:650}.kpi .num{font-size:2.25rem;letter-spacing:-.045em;font-weight:770;margin:4px 0 3px}.kpi .sub{font-size:.77rem;color:#83909d}.kpi .kpi-icon{position:absolute;right:18px;top:19px;background:#e7f5f0;border-radius:11px;padding:9px;color:var(--accent)}.kpi .kpi-icon svg{height:18px;width:18px}.kpi.orange .kpi-icon{background:#fff1e4;color:#b67b31}.kpi.red .kpi-icon{background:#fff0ef;color:#be5b55}.kpi.blue .kpi-icon{background:#eaf1fb;color:#4678ad}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-line{display:flex;align-items:center;gap:15px;padding:17px 22px;border-bottom:1px solid #ebf0f3}.service-line:last-child{border-bottom:0}.datebox{background:#ecf5f1;border-radius:11px;color:#145c53;min-width:58px;text-align:center;padding:7px 9px}.datebox .day{font-size:1.55rem;font-weight:800;line-height:1.1}.datebox .month{font-size:.65rem;font-weight:760;text-transform:uppercase;letter-spacing:.07em}.servicename{font-weight:730}.meter{height:7px;overflow:hidden;border-radius:20px;background:#e8eef1;margin-top:9px}.meter-fill{height:100%;background:#26a78c;border-radius:20px}.meter-fill.partial{background:#e6ac62}.status{font-size:.72rem;font-weight:730;padding:4px 8px;border-radius:7px;display:inline-block;white-space:nowrap}.status.draft{color:#956e33;background:#fff1d9}.status.published{color:#19745d;background:#dff4e9}.status.accepted{color:#16765d;background:#ddf7ea}.status.assigned{color:#725db1;background:#f0ecff}.status.declined,.status.rejected{color:#af4558;background:#fff0f0}.status.pending{background:#fff3dd;color:#986d35}.status.unfilled{color:#b84a58;background:#fde9e9}.status.approved{color:#15765d;background:#ddf7ea}.status.removed{background:#f1f1f1;color:#78838b}.schedule-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.service-list{overflow:hidden}.service-option{width:100%;padding:15px;border:0;border-bottom:1px solid #ecf0f2;display:flex;align-items:center;gap:12px;text-align:left;background:#fff}.service-option:hover{background:#f6faf9}.service-option.selected{background:#e7f5ef;box-shadow:inset 3px 0 #14987f}.service-option .servicename{font-size:.91rem}.service-option small{color:var(--muted);display:block}.detail-banner{padding:24px 25px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.detail-banner .meta{color:var(--muted);font-size:.89rem;margin-top:7px}.progress{display:flex;align-items:center;gap:11px;margin:17px 24px}.progress .meter{flex:1;margin:0}.progress small{min-width:48px;color:var(--muted)}.section-label{font-weight:760;font-size:.8rem;text-transform:uppercase;letter-spacing:.065em;color:#667e90;background:#f8fafb;padding:10px 23px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.role-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,2fr) auto;align-items:center;gap:10px;padding:12px 23px;border-bottom:1px solid #edf1f3}.role-row:last-child{border-bottom:0}.role-row .role-name{font-size:.89rem;font-weight:670}.role-row .role-detail{font-size:.78rem;color:var(--muted)}.person-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #e1e9ec;padding:5px 8px;border-radius:8px;margin:3px 5px 3px 0;font-size:.8rem}.person-pill button{border:0;background:none;color:#a6aab1;font-weight:bold;font-size:1rem;line-height:1}.person-pill button:hover{color:#b84256}.empty-slot{color:#a3aebb;font-size:.8rem;border:1px dashed #d1dce2;border-radius:8px;padding:6px 10px;display:inline-block}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;min-width:600px}.table th{text-align:left;color:#8191a1;text-transform:uppercase;letter-spacing:.065em;font-size:.7rem;font-weight:780;background:#f8fafb;padding:14px 20px;white-space:nowrap}.table td{padding:15px 20px;border-top:1px solid #eef1f3;font-size:.88rem;vertical-align:middle}.table tbody tr:hover{background:#fafcfc}.tag-list{display:flex;flex-wrap:wrap;gap:5px}.tag{font-size:.73rem;color:#5f7588;background:#eef3f5;border:1px solid #e1e7ed;border-radius:6px;padding:3px 7px}.empty{padding:50px 22px;text-align:center;color:var(--muted)}.empty svg{width:31px;height:31px;color:#b0c3c9;margin-bottom:8px}.empty h3{color:#486072;margin-bottom:5px}.notice{padding:12px 15px;background:#edf7f2;color:#316754;border:1px solid #d1ecdf;border-radius:11px;font-size:.85rem}.notice.warn{background:#fff8e9;border-color:#f1dfb8;color:#866832}.list-box{padding:15px 20px;border-bottom:1px solid #e8eff2}.list-box:last-child{border-bottom:0}.list-box p{color:var(--muted);font-size:.84rem;margin-top:4px}.list-box .right{margin-left:auto}.min-card{padding:23px}.min-card .circle{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;color:#076b59;background:#e4f4ed;margin-bottom:16px}.min-card .roles{margin:13px 0 15px}.timeline-card{display:flex;align-items:center;gap:13px;padding:17px 21px;border-bottom:1px solid #e7eff1}.timeline-card:last-child{border-bottom:0}.timeline-card .right{margin-left:auto}.timeline-card h3{font-size:.94rem}.timeline-card .small{color:var(--muted);margin-top:4px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label,.field > span{font-size:.83rem;font-weight:690;color:#516577}.input{border:1px solid #d5e1e6;padding:11px 12px;border-radius:9px;background:#fff;color:#25394d;outline:none;min-width:0;width:100%}.input:focus{border-color:#259b88;box-shadow:0 0 0 3px rgba(37,155,136,.12)}.input:disabled{background:#eef2f3}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;max-height:230px;overflow:auto;background:#f8fafb;border-radius:10px;border:1px solid #e1e8ec;padding:11px}.checks label{font-size:.8rem;display:flex;align-items:center;gap:7px;cursor:pointer}.checks input{accent-color:#0f927d}.field-hint{font-size:.76rem;color:#8996a3;margin-top:2px}.needs-table{width:100%;border-collapse:collapse}.needs-table td{padding:6px 8px;border-bottom:1px solid #ecf0f3}.needs-table td:last-child{width:85px}.needs-table .input{padding:7px 8px}.modal{width:min(620px,calc(100vw - 25px));max-height:min(86vh,900px);border:1px solid #cfdfe5;border-radius:17px;padding:0;background:white;box-shadow:0 28px 90px #041d325c;color:var(--ink)}.modal::backdrop{background:#10243aa3;backdrop-filter:blur(2px)}.modal-head{padding:21px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.modal-head button{border:0;background:#f0f4f5;border-radius:8px;padding:5px 9px;font-size:1.2rem;color:#546579}.modal-body{padding:22px 25px 24px;max-height:calc(86vh - 72px);overflow:auto}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;z-index:999;bottom:25px;right:25px;max-width:440px;background:var(--navy);color:#fff;border-radius:12px;padding:13px 17px;box-shadow:0 12px 35px #0b233e38;opacity:0;transform:translateY(15px);transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:none}.toast.error{background:#a64351}.auth{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(400px,1fr)}.auth-info{padding:8vh 10%;background:linear-gradient(145deg,#10233c,#1d4960);color:#fff;display:flex;flex-direction:column;justify-content:center;gap:25px}.auth-info h1{font-size:clamp(2.2rem,4vw,4rem);line-height:1.08}.auth-info h1 em{color:#9ee3ce;font-style:normal}.auth-info p{color:#b6cddc;font-size:1.09rem;max-width:430px}.auth-info .auth-features{display:grid;gap:15px;margin-top:22px}.auth-info .auth-features div{display:flex;gap:11px;align-items:center}.auth-info .auth-features svg{color:#a2e8d0}.auth-form-area{display:flex;align-items:center;justify-content:center;padding:36px}.auth-form{width:min(430px,100%)}.auth-form h2{font-size:1.84rem;margin-bottom:9px}.auth-form p{color:var(--muted);margin-bottom:26px}.auth-form .field{margin-bottom:18px}.auth-form .button{width:100%;margin-top:4px}.auth-note{margin-top:25px;color:#9aa6b0;font-size:.8rem}.loading-screen{display:flex;min-height:100vh;flex-direction:column;gap:13px;align-items:center;justify-content:center;color:var(--muted)}.loader{width:35px;height:35px;border:3px solid #dbeae6;border-top-color:#0b9178;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-header{display:none}.activity{display:flex;gap:11px;padding:12px 21px;border-bottom:1px solid #eef2f4}.activity .dot{margin-top:7px;width:7px;height:7px;background:#a8cfc3;border-radius:50%;flex:none}.activity p{font-size:.83rem}.activity small{color:#889baa}.coverage-line{margin-bottom:18px}.coverage-line .row{margin-bottom:6px;font-size:.84rem;font-weight:680}.coverage-line:last-child{margin-bottom:0}.inline-help{font-size:.79rem;color:#8595a0;line-height:1.6}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.schedule-layout{grid-template-columns:250px 1fr}.content{padding:26px 22px}.topbar{padding:0 22px}}
@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:fixed;z-index:50;transform:translateX(-100%);transition:.2s;width:262px;box-shadow:10px 0 30px #142c3a21}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex}.topbar{height:72px}.two-col{grid-template-columns:1fr}.schedule-layout{grid-template-columns:1fr}.service-list{max-height:220px;overflow:auto}.service-option{padding:10px 14px}.auth{grid-template-columns:1fr}.auth-info{display:none}}
@media(max-width:630px){html{font-size:13px}.content{padding:20px 13px 42px}.topbar{padding:0 14px}.topbar .org-label{display:none}.topbar .seg button{padding:7px 9px}.page-head{align-items:flex-start;flex-direction:column;gap:11px;margin-bottom:19px}h1{font-size:1.55rem}.kpi-grid{gap:9px}.kpi{padding:16px}.kpi .num{font-size:1.85rem}.kpi .kpi-icon{right:11px;top:12px;padding:6px}.card-pad{padding:16px}.three-col,.settings-grid{grid-template-columns:1fr}.role-row{grid-template-columns:1fr auto;gap:5px;padding:12px}.role-row .slot-people{grid-column:1/-1;grid-row:2}.role-row .role-action{grid-column:2;grid-row:1}.detail-banner{padding:17px}.form-grid,.checks{grid-template-columns:1fr}.service-line{padding:13px}.datebox{min-width:48px}.table{min-width:580px}.modal-body{padding:15px}.modal-head{padding:15px}.auth-form-area{padding:24px}}

/* v1.1 — recurring-schedule management */
.recurring-mark{display:inline-flex;color:#178675}.recurring-mark svg{width:16px;height:16px}.series-caption{display:flex;align-items:center;gap:6px;color:#23876e;font-size:.81rem;font-weight:680;margin-top:9px}.series-caption svg{width:15px;height:15px}.schedule-preview{background:#f4f8fa;border:1px solid #dbe5ea;border-radius:10px;color:#536d7d;padding:12px 13px;margin:13px 0 17px;font-size:.85rem}.check-line{display:flex;gap:9px;align-items:flex-start;color:#526478;font-size:.87rem;font-weight:600;margin:15px 0;cursor:pointer}.check-line input{accent-color:#0f927d;margin-top:4px;flex:none}.delete-choices{display:flex;flex-direction:column;gap:12px;border:1px solid #dce5eb;background:#fbfcfd;padding:13px;border-radius:10px}.delete-choices label{display:flex;gap:9px;align-items:center;font-size:.9rem;cursor:pointer}.delete-choices input{accent-color:#b23b4c}.button.danger-submit{background:#ae4255;color:white;border-color:#ae4255}.button.danger-submit:hover{background:#963549;border-color:#963549}.actions .button.danger:hover{background:#fff0f0;border-color:#e8b4bd}

/* v1.2 — volunteer mobile layout and multi-week quick assignment */
.volunteer-shift{gap:14px;min-width:0}
.shift-details{flex:1;min-width:0;overflow-wrap:anywhere}
.shift-details h3{margin-bottom:4px;line-height:1.35}
.shift-details .small{line-height:1.55}
.shift-actions{margin-left:auto;display:flex;align-items:flex-end;flex-direction:column;gap:9px;min-width:0}
.shift-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.shift-buttons .button{white-space:nowrap}
.quick-preview{border:1px solid #dce5eb;background:#f8fafb;border-radius:12px;padding:12px 14px;font-size:.83rem;color:#607687;min-height:75px}
.quick-summary{display:flex;flex-wrap:wrap;gap:8px 14px;margin-bottom:12px;color:#496274}
.quick-summary strong{color:#0b7d65}
.quick-dates{max-height:216px;overflow:auto;border-top:1px solid #e1e8ec}
.quick-date{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 1px;border-bottom:1px solid #e4eaee}
.quick-outcome{text-align:right;color:#8c642d;font-weight:650;font-size:.78rem}
.quick-outcome.add{color:#14765e}
.quick-outcome.already{color:#5b7083}
.quick-preview .field-hint{margin-top:12px}
@media(max-width:630px){
  .timeline-card.volunteer-shift{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:10px 13px;padding:16px;overflow:hidden}
  .volunteer-shift .datebox{grid-column:1;grid-row:1;min-width:0;width:52px}
  .volunteer-shift .shift-details{grid-column:2;grid-row:1;min-width:0}
  .volunteer-shift .shift-details h3{font-size:1.05rem;line-height:1.4}
  .volunteer-shift .shift-actions{grid-column:1/-1;grid-row:2;margin-left:0;width:100%;align-items:stretch;flex-direction:column;gap:9px;padding-top:12px;border-top:1px solid #edf0f3}
  .volunteer-shift .shift-status{align-self:flex-start}
  .volunteer-shift .shift-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .volunteer-shift .shift-buttons .button{width:100%;justify-content:center;min-height:39px;white-space:normal;text-align:center;padding:8px 10px}
  .volunteer-shift .shift-buttons .button:last-child:nth-child(odd){grid-column:1/-1}
  .quick-date{align-items:flex-start}
  .quick-date span:first-child{flex:1}
  .quick-date .quick-outcome{max-width:55%}
}

/* v1.2 modal: keep Save/Assign action accessible while scrolling long schedules */
.modal .modal-body{display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:calc(86vh - 72px);min-height:0}
.modal .modal-scroll{padding:20px 24px;overflow:auto;min-height:0;flex:1}
.modal .modal-footer{flex:none;margin:0;padding:14px 24px;border-top:1px solid var(--border);background:white}
@media(max-width:630px){.modal .modal-scroll{padding:16px}.modal .modal-footer{padding:12px 16px}}

/* v1.2.1 — ensure the volunteer Accept action has white, high-contrast text and icon. */
.volunteer-shift .shift-buttons button.button.primary[data-action="accept"],
.volunteer-shift .shift-buttons button.button.primary[data-action="accept"]:hover,
.volunteer-shift .shift-buttons button.button.primary[data-action="accept"]:focus-visible,
.volunteer-shift .shift-buttons button.button.primary[data-action="accept"]:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.volunteer-shift .shift-buttons button.button.primary[data-action="accept"] svg {
  color: #fff !important;
  stroke: currentColor;
}

/* v1.3 — clear, deliberate multi-week assignment removal. */
.quick-outcome.to-remove{color:#aa3e50}
.quick-summary strong.remove-count{color:#a53449}
.remove-confirm{padding:12px 13px;background:#fff7f7;border:1px solid #f0d5d9;border-radius:10px;margin:14px 0 0}
.remove-confirm input:disabled{opacity:.5}


/* MinistryFlow v1.4 — clear scheduler hierarchy and unified action buttons. */
.schedule-card{overflow:hidden;min-width:0}
.schedule-card .scheduler-heading{display:block;padding:22px 24px 19px;border-bottom:0}
.scheduler-service-info{min-width:0;overflow-wrap:anywhere}
.scheduler-toolbar{display:flex;align-items:stretch;flex-wrap:wrap;gap:0;padding:13px 17px 15px;background:#f8fafb;border-block:1px solid #e3eaef}
.scheduler-action-group{padding:3px 17px 4px 7px;margin-right:10px;border-right:1px solid #dce6ea;min-width:0}
.scheduler-action-group:last-child{border-right:0;margin-right:0}
.scheduler-action-label{display:block;margin:0 0 8px 2px;font-size:.72rem;letter-spacing:.085em;text-transform:uppercase;color:#718498;font-weight:800}
.scheduler-action-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.schedule-card .scheduler-btn,.schedule-card .role-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;min-height:36px;border-radius:9px;border:1px solid #cadbe4;background:#fff;color:#284156;font-size:.82rem;font-weight:730;white-space:nowrap;line-height:1.25;box-shadow:0 1px 1px rgba(20,51,72,.03);transition:background .15s,border-color .15s,box-shadow .15s,color .15s,transform .15s}
.schedule-card .scheduler-btn svg,.schedule-card .role-tool svg{width:15px;height:15px;flex-shrink:0}
.schedule-card .scheduler-btn:hover,.schedule-card .role-tool:hover{background:#edf6f7;border-color:#81b9c5;color:#173b4c;box-shadow:0 3px 8px rgba(16,62,82,.08)}
.schedule-card .scheduler-btn:active,.schedule-card .role-tool:active{transform:translateY(1px)}
.schedule-card .scheduler-btn:focus-visible,.schedule-card .role-tool:focus-visible,.person-pill button:focus-visible{outline:3px solid #5ca9dc;outline-offset:2px}
.schedule-card .scheduler-btn-danger,.schedule-card .role-tool-danger{background:#fff8f9;border-color:#efd0d7;color:#aa334c}
.schedule-card .scheduler-btn-danger:hover,.schedule-card .role-tool-danger:hover{background:#fae9ed;border-color:#d98e9f;color:#8f213b}
.schedule-card .scheduler-btn-primary{background:#0f927d;border-color:#0f927d;color:white;-webkit-text-fill-color:white;min-width:100px}
.schedule-card .scheduler-btn-primary:hover{background:#087c69;border-color:#087c69;color:white;-webkit-text-fill-color:white}
.schedule-card .scheduler-btn-primary svg{color:white}
.schedule-card .scheduler-role-row{grid-template-columns:minmax(110px,150px) minmax(130px,1fr) auto;gap:12px;padding:14px 23px;min-width:0}
.schedule-card .scheduler-role-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.schedule-card .role-tool{min-height:35px;padding:7px 11px}
.schedule-card .role-tool-assign{background:#eaf8f3;border-color:#a7dcd0;color:#08765f}
.schedule-card .role-tool-assign:hover{background:#d8f1e8;border-color:#70c5af;color:#075d4a}
.schedule-card .person-pill button{background:#fff2f3;color:#a23a4b;border-radius:6px;min-height:22px;min-width:22px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.schedule-card .person-pill button:hover{background:#f8dfe4;color:#872b40}
@media(max-width:1280px){
 .schedule-card .scheduler-role-row{grid-template-columns:minmax(110px,155px) minmax(0,1fr)}
 .schedule-card .scheduler-role-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:630px){
 .schedule-card .scheduler-heading{padding:17px 16px}
 .schedule-card .scheduler-toolbar{display:grid;gap:10px;padding:12px}
 .schedule-card .scheduler-action-group{margin:0;padding:4px 0 12px;border-right:0;border-bottom:1px solid #e0e9ed}
 .schedule-card .scheduler-action-group:last-child{border-bottom:0;padding-bottom:3px}
 .schedule-card .scheduler-action-label{margin:0 0 7px 2px}
 .schedule-card .scheduler-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .schedule-card .scheduler-btn{width:100%;min-width:0;white-space:normal;text-align:center;min-height:40px}
 .schedule-card .scheduler-publish-group .scheduler-action-buttons{grid-template-columns:1fr}
 .schedule-card .scheduler-role-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:13px 14px}
 .schedule-card .scheduler-role-heading{grid-column:1;grid-row:1}
 .schedule-card .slot-people{grid-column:1;grid-row:2}
 .schedule-card .scheduler-role-actions{grid-column:1;grid-row:3;justify-content:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
 .schedule-card .role-tool{width:100%;min-width:0;min-height:40px;padding:8px 7px;white-space:normal;text-align:center}
 .schedule-card .role-tool-danger:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:365px){
 .schedule-card .scheduler-action-buttons,.schedule-card .scheduler-role-actions{grid-template-columns:1fr}
 .schedule-card .role-tool-danger:last-child:nth-child(odd){grid-column:auto}
}

/* MinistryFlow v1.5 — independent service-date navigator and visible editor.
   These rules deliberately do not change any scheduling or persistence logic. */
@media(min-width:901px){
  .scheduler-workspace{align-items:start}
  .scheduler-date-list{
    position:sticky;top:18px;display:flex;flex-direction:column;min-height:420px;
    height:clamp(420px,calc(100dvh - 235px),860px);overflow:hidden
  }
  .scheduler-detail-panel{
    position:sticky;top:18px;align-self:start;min-width:0;
    max-height:clamp(420px,calc(100dvh - 235px),860px);overflow-y:auto;
    overscroll-behavior-y:contain;scrollbar-gutter:stable
  }
}
.scheduler-date-list{display:flex;flex-direction:column;overflow:hidden}
.service-list-header{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;
  padding:13px 13px 12px 15px;border-bottom:1px solid #e4ecf0;flex:none;background:#fff
}
.service-list-header strong{display:block;font-size:.87rem;font-weight:770;color:#19344b}
.service-list-header span{display:block;color:#72869a;font-size:.74rem;margin-top:3px}
.service-month-control{display:flex;align-items:center;gap:6px;min-width:0}
.service-month-control span{white-space:nowrap;color:#72869a;font-size:.72rem;margin:0}
.service-month-control select{
  min-width:0;max-width:142px;background:#f8fafb;border:1px solid #d7e4e9;
  border-radius:8px;color:#2b4558;font-size:.76rem;padding:7px 6px;cursor:pointer
}
.service-list-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.service-list-scroll:focus-visible{outline:3px solid #5ca9dc;outline-offset:-3px}
.service-month-heading{
  position:sticky;top:0;z-index:1;padding:7px 14px;background:#f5f8fa;
  font-size:.73rem;font-weight:760;text-transform:uppercase;letter-spacing:.065em;
  color:#6d8192;border-bottom:1px solid #e1e9ed
}
.service-list-scroll .service-option{cursor:pointer}
.service-list-scroll .service-option:focus-visible{outline:3px solid #5ca9dc;outline-offset:-4px;position:relative;z-index:2}
@media(max-width:900px){
  .scheduler-date-list{position:static;max-height:none;min-height:0;height:auto;overflow:hidden}
  .scheduler-date-list .service-list-scroll{max-height:230px;overflow-y:auto}
  .scheduler-detail-panel{position:static;max-height:none;overflow:visible}
  .service-list-header{padding:11px 13px}
}
@media(max-width:400px){
  .service-list-header{align-items:flex-start}
  .service-month-control select{max-width:120px}
}

/* v1.6 Multi-Church: clear organisation login and platform-owner directory. */
.auth-form #church{font-weight:620;background:#fbfefd;border-color:#bedad2}
.auth-form #church:focus{background:#fff}
.church-directory{margin-top:18px;border:1px solid #e3ebee;border-radius:12px;overflow:hidden}
.church-directory-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #eaf0f2}
.church-directory-row:last-child{border:0}
.church-directory-row code{font-size:.8rem;background:#edf5f3;color:#17584c;padding:2px 5px;border-radius:5px}
@media(max-width:630px){.church-directory-row{align-items:flex-start;flex-direction:column}.auth-form #church{min-height:44px}}

/* v1.7 — dedicated one-time church registration accessible only at the sign-in page */
.auth-form-wrap{width:min(430px,100%);max-width:100%}
.auth-form-wrap .auth-form{width:100%}
.auth-switch{text-align:center;color:#64788b;font-size:.88rem;line-height:1.7}
.auth-switch-link{border:0;background:transparent;color:#0f927d;font:inherit;font-weight:750;cursor:pointer;padding:5px 4px;text-decoration:underline;text-underline-offset:3px}
.auth-switch-link:hover{color:#076b59}
.auth-switch-link:focus-visible{outline:3px solid #44bfa1;outline-offset:3px;border-radius:3px}
.auth-divider{height:1px;background:#e1eaed;margin:19px 0 14px}
.registration-consent{display:flex;align-items:flex-start;gap:10px;margin:4px 0 19px;color:#516577;font-size:.82rem;line-height:1.45}
.registration-consent input{accent-color:#0f927d;margin-top:3px;flex:none}
.auth-form-wrap .auth-note{margin-top:22px;text-align:center}
@media(max-width:630px){.auth-form-area{padding:30px 19px}.auth-switch-link{min-height:44px}}

/* v1.8 — searchable multi-person selection, reusable ministry teams, inline login help */
.auth-error{border:1px solid #e8b8c0;background:#fff0f2;color:#993044;padding:12px 14px;border-radius:10px;margin:2px 0 14px;font-size:.86rem;line-height:1.45}
.vol-picker{display:grid;gap:10px;margin:15px 0 18px}
.vol-picker .field{margin-bottom:3px}
.vol-picker .vol-groups{display:flex;gap:8px;flex-wrap:wrap}
.vol-group-chip{display:inline-flex;align-items:center;gap:8px;justify-content:center;padding:9px 11px;border:1px solid #cedde2;border-radius:12px;background:#f9fbfc;color:#263b4c;font:inherit;font-size:.83rem;font-weight:680;cursor:pointer}
.vol-group-chip svg{width:16px;height:16px;color:#168d7d}
.vol-group-chip small{font-weight:500;color:#748a97}
.vol-group-chip:hover{background:#f0faf6;border-color:#73c9b4}
.vol-group-chip.selected{background:#e3f7ef;border-color:#15977f;box-shadow:0 0 0 2px #caece1}
.vol-selection{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:36px;border-bottom:1px solid #e4ebee;padding-bottom:11px}
.vol-count{font-weight:760;font-size:.8rem;color:#157e6a;margin-right:5px}
.vol-selected-chip{border:1px solid #9fd8c6;background:#e5f7ee;border-radius:18px;padding:6px 9px;color:#155c4b;font-weight:700;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font:inherit;font-size:.82rem}
.vol-selected-chip svg{width:13px;height:13px}
.vol-chip-grid{display:flex;flex-wrap:wrap;gap:8px;max-height:220px;overflow-y:auto;padding:2px 1px 7px}
.vol-name-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d5e2e6;background:#fff;border-radius:12px;color:#284153;cursor:pointer;font:inherit;font-weight:640;font-size:.83rem;max-width:100%}
.vol-name-chip .avatar{height:25px;min-width:25px;width:25px;font-size:.66rem}
.vol-name-chip svg{height:15px;width:15px;flex:none}
.vol-name-chip.selected{background:#e3f6ee;border-color:#149980;color:#096a58}
.vol-name-chip:hover{border-color:#149980;background:#f4fbf8}
.vol-name-chip:focus-visible,.vol-group-chip:focus-visible,.vol-selected-chip:focus-visible{outline:3px solid #77bedc;outline-offset:2px}
.vol-empty{font-size:.83rem;color:#85949f}
.vol-feedback{margin:0}
.ministry-groups{margin-top:16px;border-top:1px solid #e2e9ed;padding-top:13px;display:grid;gap:10px}
.ministry-groups>.row>strong{font-size:.85rem}
.ministry-group-card{border:1px solid #e1e9e9;background:#f8fafb;border-radius:10px;padding:9px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.ministry-group-card>div:first-child{min-width:0}
.ministry-group-card strong{display:block;font-size:.81rem;color:#23374a}
.ministry-group-card small{display:block;line-height:1.5;font-size:.74rem;color:#738a98;overflow-wrap:anywhere}
.ministry-group-card .button{padding:7px;min-width:30px;min-height:30px}
.ministry-group-card .button svg{height:14px;width:14px}
@media(max-width:630px){.vol-chip-grid{max-height:190px}.vol-name-chip{padding:8px}.ministry-group-card{align-items:flex-start}.ministry-group-card .row{flex:none}}

/* v1.9: matrix view, intentional same-day multi-role warnings and simplified modal scrolling */
.double-booked{display:inline-grid;place-items:center;vertical-align:middle;margin-left:4px;width:17px;height:17px;flex:none;border-radius:50%;background:#fff0cc;color:#855000;border:1px solid #efc67d;font-size:12px;font-weight:850;line-height:1;cursor:help}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scheduler-filters{gap:12px}
.scheduler-view-switch{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.scheduler-view-switch .seg{display:flex;align-items:center}
.scheduler-view-switch .seg button{display:inline-flex;align-items:center;gap:7px;justify-content:center;min-height:36px}
.scheduler-view-switch .seg svg{width:15px;height:15px}
.matrix-panel{max-width:100%;overflow:hidden}
.matrix-intro{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-bottom:1px solid #e1e9ed}
.matrix-intro strong{font-size:1rem}.matrix-intro p{font-size:.8rem;color:#667e90;margin-top:5px;line-height:1.5}
.matrix-warning-legend{font-size:.79rem;color:#677b8c;display:inline-flex;align-items:center;gap:7px}
.matrix-scroll{overflow:auto;max-width:100%;max-height:min(70dvh,690px);overscroll-behavior:contain;scrollbar-gutter:stable}
.matrix-table{border-collapse:separate;border-spacing:0;min-width:max-content;font-size:.81rem}
.matrix-table th,.matrix-table td{border-bottom:1px solid #e4eaef;border-right:1px solid #e4eaef;padding:0}
.matrix-table thead th{position:sticky;top:0;z-index:3;background:#f4f8fa;min-width:148px;max-width:155px;vertical-align:top}
.matrix-table thead .matrix-corner{left:0;z-index:5;min-width:185px;max-width:185px;text-align:left;padding:16px 14px;color:#506c7e;background:#e9f1f2}
.matrix-table .matrix-role-label{position:sticky;left:0;z-index:2;background:#fff;min-width:185px;max-width:185px;padding:15px 14px;text-align:left;color:#193449}
.matrix-ministry-row th{position:sticky;left:0;z-index:2;background:#eaf3ef!important;color:#18705d;text-transform:uppercase;letter-spacing:.065em;text-align:left;padding:9px 15px;font-size:.73rem}
.matrix-date-button{display:flex;flex-direction:column;gap:3px;width:100%;border:0;background:transparent;text-align:left;cursor:pointer;padding:12px;color:#274255;font:inherit}
.matrix-date-button:hover{background:#e3f5ed}.matrix-date-button strong{font-size:.91rem;color:#154d46}.matrix-date-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:132px;font-size:.75rem;font-weight:700}.matrix-date-button small{font-size:.72rem;color:#687f90}
.matrix-cell{min-width:148px;max-width:155px;vertical-align:middle;background:#fff}
.matrix-cell.matrix-gap{background:#fffdf8}
.matrix-cell.muted-cell{background:#f8fafb;color:#b1bec8;text-align:center}
.matrix-cell-button{border:0;background:transparent;width:100%;height:100%;min-height:66px;padding:8px 9px;text-align:left;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.matrix-cell-button:hover{background:#edf8f5}
.matrix-cell-button:focus-visible,.matrix-date-button:focus-visible{outline:3px solid #58b9a7;outline-offset:-3px}
.matrix-person{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:690;color:#245548;background:#e5f6ed;padding:5px 7px;border-radius:7px;max-width:100%;overflow-wrap:anywhere}
.matrix-empty{font-size:.73rem;color:#ad7d36;border:1px dashed #e1cda9;border-radius:6px;padding:4px 7px}
.matrix-footnote{padding:13px 19px;font-size:.78rem;color:#647b8c;line-height:1.6}
/* v1.9: one scroll container inside a taller, wider service dialog; no scrollbar nested in staffing requirements */
.modal.modal-service-editor{width:min(830px,calc(100vw - 26px));max-height:min(92dvh,1000px);overflow:hidden}
.modal.modal-service-editor #modal-content{display:flex;flex-direction:column;max-height:min(92dvh,1000px);min-height:0}
.modal.modal-service-editor .modal-head{flex:none;padding:18px 26px}
.modal.modal-service-editor .modal-body{flex:1;min-height:0;max-height:none;overflow:hidden}
.modal.modal-service-editor .modal-scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:19px 26px;scrollbar-gutter:stable}
.modal.modal-service-editor .modal-footer{flex:none}
.modal.modal-service-editor .needs-list{overflow:visible;max-height:none;width:100%;border-radius:10px;border:1px solid #e5edef}
.modal.modal-service-editor .needs-table{width:100%}
.modal.modal-service-editor .needs-table td{padding:5px 12px}
.modal.modal-service-editor .needs-table .input{width:70px;min-height:36px}
.modal.modal-service-editor .needs-group td{padding:9px 12px;background:#edf4f5!important}
@media(max-width:630px){.matrix-table thead .matrix-corner,.matrix-table .matrix-role-label{min-width:115px;max-width:115px}.matrix-table thead th,.matrix-cell{min-width:130px;max-width:130px}.matrix-intro{padding:14px}.matrix-scroll{max-height:65dvh}.modal.modal-service-editor{max-height:96dvh}.modal.modal-service-editor #modal-content{max-height:96dvh}.modal.modal-service-editor .modal-scroll{padding:14px}.modal.modal-service-editor .modal-head{padding:15px}.modal.modal-service-editor .modal-footer{padding:10px 14px}}

/* v2.0 — flexible manual staffing and direct-edit matrix cells */
.choice-toggle{display:flex;align-items:flex-start;gap:11px;padding:12px 13px;margin:12px 0;border:1px solid #d7e4e8;border-radius:11px;background:#f9fbfc;cursor:pointer;color:#243e50}
.choice-toggle input{accent-color:#0e907b;width:17px;height:17px;flex:none;margin-top:2px}
.choice-toggle strong,.choice-toggle small{display:block}.choice-toggle strong{font-size:.86rem}.choice-toggle small{font-size:.76rem;color:#62798a;line-height:1.55;margin-top:3px}
.choice-toggle:has(input:checked){background:#eaf8f3;border-color:#91cdbb}
.overfill-toggle:has(input:checked){background:#fff8eb;border-color:#e8c890}
.assignment-target{display:flex;justify-content:space-between;align-items:center;gap:9px;background:#eaf7f2;border:1px solid #c9e6db;border-radius:12px;padding:12px 13px;font-size:.83rem;color:#1b5b4e;flex-wrap:wrap}
.assignment-target.full{background:#fff8ed;border-color:#eed5ad;color:#7c5830}.assignment-target span{font-size:.76rem}
.assignment-existing{margin:13px 0 16px}.assignment-existing>strong{display:block;margin-bottom:8px;font-size:.8rem}
.assignment-existing-chips{display:flex;flex-wrap:wrap;gap:6px}
.assignment-existing-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 9px;background:#eef6f4;border:1px solid #cfe5e0;color:#2c6358;border-radius:8px;font-size:.76rem;font-weight:700}
.assignment-existing-chip button{display:grid;place-items:center;min-width:24px;min-height:24px;border:0;border-radius:5px;background:transparent;color:#a33a45;font-size:1.15rem;cursor:pointer}
.assignment-existing-chip button:hover{background:#ffebed}
.nonrole-chip-note{display:block;margin-top:2px;color:#906500;font-size:.66rem;font-weight:700}
.nonrole-badge,.matrix-nonrole{font-size:.66rem;font-weight:760;white-space:nowrap;background:#fff1d9;border:1px solid #f0d3a5;color:#8a5806;border-radius:5px;padding:2px 5px}
.roster-overfill{color:#a46d20;font-size:.74rem;font-weight:800;margin-left:5px}
.matrix-cell.matrix-overfilled{background:#fffaef}.matrix-cell.matrix-overfilled .matrix-person{background:#e5f6ed}
.matrix-add{display:inline-flex;align-items:center;gap:5px;color:#087c69;font-size:.74rem;font-weight:750;padding:5px 7px;border-radius:7px;border:1px dashed #b4ddd1}
.matrix-add svg{width:13px;height:13px}.matrix-cell-button:hover .matrix-add{background:#d8f4e9;border-color:#7bbfae}
.matrix-person{flex-wrap:wrap}
@media(max-width:630px){.choice-toggle{padding:11px}.assignment-target{display:grid;gap:5px}.matrix-add{font-size:.69rem}}

/* v2.1: Church-specific logo beside the church name. */
.church-identity{display:flex;align-items:center;gap:11px;min-width:0}
.church-identity-text{min-width:0}
.topbar .org-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-size:.84rem;font-weight:690;color:#465c70}
.church-logo-edit,.church-logo-static{position:relative;flex:none;width:43px;height:43px;display:inline-grid;place-items:center;padding:0;border:0;background:transparent;border-radius:13px}
.church-logo-edit{cursor:pointer}
.church-logo-edit:focus-visible{outline:3px solid #68c9b4;outline-offset:3px}
.church-logo-avatar{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;overflow:hidden;background:#edf4f4;color:#258b7a;border:1px solid #d8e8e5}
.church-logo-avatar>svg{width:22px;height:22px}
.church-logo-image{width:100%;height:100%;object-fit:cover;display:block}
.church-logo-pencil{position:absolute;right:-5px;bottom:-4px;width:23px;height:23px;display:grid;place-items:center;border-radius:8px;background:#0f927d;color:#fff;border:2px solid white;box-shadow:0 2px 8px #062d2533;opacity:0;transform:scale(.8);transition:opacity .14s,transform .14s}
.church-logo-pencil svg{width:12px;height:12px}
.church-logo-edit:hover .church-logo-pencil,.church-logo-edit:focus-visible .church-logo-pencil{opacity:1;transform:scale(1)}
.church-logo-edit:hover .church-logo-avatar{border-color:#0f927d;box-shadow:0 0 0 3px #0f927d19}
.church-logo-modal-top{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.church-logo-preview{width:90px;height:90px;border:1px dashed #b5cecc;border-radius:17px;display:grid;place-items:center;overflow:hidden;flex:none;background:#f0f7f6;color:#41988b}
.church-logo-preview svg{width:42px;height:42px}
.church-logo-preview img{width:100%;height:100%;object-fit:contain}
.church-logo-file{padding:10px;background:#f9fcfb}
.church-settings-logo-btn{margin-top:12px;margin-bottom:13px}
@media(hover:none){.church-logo-edit .church-logo-pencil{opacity:1;transform:scale(1)}}
@media(max-width:630px){.topbar .org-label{display:block;max-width:120px;font-size:.76rem}.church-identity{gap:6px}.church-logo-edit,.church-logo-static,.church-logo-avatar{width:36px;height:36px}.church-logo-avatar>svg{width:19px;height:19px}.church-logo-pencil{width:21px;height:21px}.topbar>.row:first-child{min-width:0;flex:1}.topbar>.row:last-child{flex:none}.topbar>.row:last-child>.avatar{display:none}}
@media(max-width:380px){.topbar .org-label{max-width:83px}}

/* MinistryFlow v2.2: inline ministry and role administration. */
.ministry-admin-actions,.ministry-role-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.ministry-admin-actions{margin:13px 0 17px;border-bottom:1px solid var(--border,#dce6eb);padding-bottom:14px}
.ministry-section-title{font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin:12px 0 8px;color:#607487}
.ministry-roles{margin:8px 0 12px}
.ministry-role-row{display:flex;justify-content:space-between;align-items:center;gap:9px;border-bottom:1px solid #edf1f4;padding:9px 0;min-width:0}
.ministry-role-row>span{min-width:0;overflow-wrap:anywhere}
.ministry-role-actions .button{font-size:12px;padding:7px 9px;min-height:30px}
.archived-roles{margin-top:14px;font-size:13px}.archived-roles summary{cursor:pointer;font-weight:650;color:#607487}
.removed-ministries{margin-top:20px}
.quick-outcome.off{color:#64748b;background:#f0f4f6}
@media(max-width:520px){.ministry-role-row{align-items:flex-start;flex-wrap:wrap}.ministry-role-actions{width:100%}.ministry-role-actions .button{flex:1}}

/* MinistryFlow v2.3: calm, read-only ministry cards with opt-in editing. */
.ministry-page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ministry-page-actions .button{white-space:nowrap}
.ministry-edit-toggle{border-color:#c9d8e1;background:#fff;color:#26445c}
.ministry-edit-toggle:hover{border-color:#0f927d;color:#087b68;background:#f2faf7}
.ministry-edit-toggle.editing{background:#e6f7ef;color:#087c65;border-color:#86d4b6}
.ministry-edit-notice{padding:11px 15px;border:1px solid #c8e9dc;border-radius:11px;background:#eef9f4;color:#1e705b;font-size:.83rem;line-height:1.5;margin:-5px 0 17px}
@media(max-width:630px){.ministry-page-actions{width:100%}.ministry-page-actions>.button{flex:1;justify-content:center}.ministry-edit-notice{margin-top:0}}

/* v2.3.1 — Restore compact role badges in the read-only Ministries page. */
.ministry-roles.read-only{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
  margin:10px 0 18px;
}
.ministry-role-chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:7px 11px;
  border:1px solid #e1e7ec;
  border-radius:9px;
  background:#f0f3f5;
  color:#33485a;
  font-size:.79rem;
  font-weight:600;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.ministry-roles.editing .ministry-role-row:last-child{
  border-bottom:0;
}
.ministry-roles.editing{
  margin-bottom:10px;
}
/* One purposeful divider between Roles and Volunteer groups, not stacked row borders. */
.min-card .ministry-groups{
  margin-top:18px;
  border-top:1px solid #e4eaf0;
  padding-top:16px;
}
@media(max-width:520px){
  .ministry-roles.read-only{gap:7px}
  .ministry-role-chip{padding:7px 10px}
}


/* v2.3.3 — modal validation feedback belongs above the modal backdrop.
   Keep it outside the scrolling body, directly above the action footer. */
.modal .modal-feedback{
  display:flex;align-items:flex-start;gap:10px;flex:none;
  margin:0 16px 10px;padding:11px 13px;
  border:1px solid #edb9c2;border-radius:10px;
  background:#fff0f2;color:#93283c;
  font-weight:650;font-size:.87rem;line-height:1.45;
  overflow-wrap:anywhere;
}
.modal .modal-feedback::before{
  content:'!';display:grid;place-items:center;flex:none;
  width:21px;height:21px;border-radius:50%;
  background:#ae4355;color:white;font-size:.77rem;font-weight:800;
}
@media(max-width:630px){
  .modal .modal-feedback{margin:0 12px 8px;padding:10px 11px;font-size:.88rem}
}

/* v2.4 — wider date columns and Role / Name roster matrix */
.matrix-table thead th:not(.matrix-corner),.matrix-table .matrix-cell{min-width:205px;width:205px;max-width:205px}
.matrix-date-button span{max-width:175px}
.matrix-controls{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;padding:12px 18px;background:#fbfcfd;border-bottom:1px solid #e1e9ed}
.matrix-row-switch{display:inline-flex;align-items:center;gap:12px}
.matrix-row-switch .seg{display:inline-flex;align-items:center}
.matrix-row-switch .seg button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px}
.matrix-row-switch .seg svg,.matrix-people-search svg{width:15px;height:15px}
.matrix-people-search{display:flex;align-items:center;gap:8px;min-width:min(260px,100%);padding:7px 11px;color:#6b8392;border:1px solid #d7e4e9;background:white;border-radius:9px}
.matrix-people-search:focus-within{border-color:#4cae9e;box-shadow:0 0 0 3px rgba(15,146,125,.1)}
.matrix-people-search input{min-width:0;width:100%;border:0;outline:0;font-size:.85rem;color:#23394d;background:transparent}
.matrix-name-label{font-weight:700;overflow-wrap:anywhere}.matrix-name-inner{display:flex;align-items:center;gap:9px;min-height:44px}
.matrix-name-avatar{flex:none;display:inline-grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#e6f4ee;color:#0b806c;font-size:.75rem;font-weight:800}
.matrix-name-text{min-width:0;overflow-wrap:anywhere}
.matrix-name-text small{display:block;color:#8799a6;font-size:.7rem}
.matrix-person-role{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;max-width:100%;padding:5px 7px;border-radius:7px;background:#e5f6ed;color:#245548;font-size:.74rem;font-weight:700;overflow-wrap:anywhere}
.matrix-person-busy{background:#f6fcf9}.matrix-person-free{background:#fff}
.matrix-person-action{display:inline-flex;align-items:center;gap:4px;border:1px dashed #b4ddd1;color:#147e6e;border-radius:7px;font-size:.72rem;font-weight:720;padding:4px 7px}
.matrix-person-action svg{width:13px;height:13px}
.matrix-person-idle{color:#9bafbc;padding:15px;display:inline-block}
.matrix-hint-warning{color:#b0782e!important;font-weight:700}
.matrix-no-matches{padding:13px 20px;color:#6c8291;font-size:.83rem}
[hidden],.matrix-no-matches[hidden],tr[data-matrix-person-row][hidden]{display:none!important}
@media(max-width:630px){
  .matrix-table thead th:not(.matrix-corner),.matrix-table .matrix-cell{min-width:176px;width:176px;max-width:176px}
  .matrix-date-button span{max-width:150px}
  .matrix-table .matrix-name-label{min-width:134px;max-width:134px}
  .matrix-controls{padding:10px 13px}
  .matrix-people-search{flex:1 1 100%}
}
/* Keep the sticky Name column and header at precisely the same width. */
.matrix-mode-person .matrix-table thead .matrix-corner,.matrix-mode-person .matrix-table .matrix-role-label{min-width:200px;width:200px;max-width:200px}
@media(max-width:630px){.matrix-mode-person .matrix-table thead .matrix-corner,.matrix-mode-person .matrix-table .matrix-role-label{min-width:145px;width:145px;max-width:145px}}


/* MinistryFlow v2.6 — compact scheduler controls, wider gutters.
   No heading/subtitle. Place New service adjacent to List / Matrix. */
.content.content-scheduler {
  width:100%;
  max-width:none;
  margin:0;
  padding:18px 18px 50px;
}
.content-scheduler .matrix-panel,
.content-scheduler .scheduler-workspace {
  width:100%;
  min-width:0;
}
.content-scheduler .scheduler-filters {
  align-items:center;
  gap:12px;
}
.content-scheduler .scheduler-view-switch {
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:10px;
  margin-left:auto;
}
.content-scheduler .scheduler-view-switch > .small {
  white-space:nowrap;
}
.content-scheduler .scheduler-new-service {
  min-height:44px;
  padding:10px 14px;
  border-radius:10px;
}
@media (max-width:900px) {
  .content.content-scheduler {padding:16px 16px 44px;}
}
@media (max-width:710px) {
  .content.content-scheduler {padding:14px 13px 38px;}
  .content-scheduler .scheduler-filters {gap:10px;}
  .content-scheduler .scheduler-view-switch {gap:8px;}
  .content-scheduler .scheduler-view-switch > .small {display:none;}
  .content-scheduler .scheduler-view-switch .seg button {padding:8px 9px;}
  .content-scheduler .scheduler-new-service {min-height:40px;padding:8px 11px;font-size:.84rem;}
}
@media (max-width:370px) {
  .content-scheduler .scheduler-view-switch {width:100%;justify-content:flex-end;}
}


/* MinistryFlow v2.6.1 — desktop matrix uses the available viewport.
   Prevent document-level vertical scrolling below the matrix; the roster rows
   scroll inside one pane while the column headings and sidebar stay visible.
   This deliberately does not alter List view or smaller-screen document flow. */
@media (min-width: 901px) {
  .app.app-matrix {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .app.app-matrix > .main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .app.app-matrix .topbar {
    flex: 0 0 84px;
  }
  .app.app-matrix .content-scheduler {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 18px;
  }
  .app.app-matrix .scheduler-filters {
    flex: 0 0 auto;
  }
  .app.app-matrix .matrix-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  .app.app-matrix .matrix-intro,
  .app.app-matrix .matrix-controls,
  .app.app-matrix .matrix-footnote {
    flex: 0 0 auto;
  }
  .app.app-matrix .matrix-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}


/* MinistryFlow v2.7 — expandable matrix rows with useful compact summaries.
   Detail and compact elements share the same assignment button. No changes to
   server-side data or the permission/overfill checks. */
.matrix-label-with-toggle{display:flex;align-items:center;gap:5px;min-width:0}
/* Plain, small +/- glyph instead of a bordered square. Keep an ample click target. */
.matrix-row-toggle{flex:none;display:inline-grid;place-items:center;width:20px;height:26px;padding:0;border:0;border-radius:0;background:transparent;color:#416e7b;line-height:1;font-weight:750;font-size:.84rem;transition:color .14s}
.matrix-row-toggle:hover{background:transparent;color:#087964}
.matrix-toggle-mark{display:block;line-height:1}
.matrix-row-toggle:focus-visible,.matrix-collapse-all:focus-visible{outline:3px solid #58b9a7;outline-offset:2px}
.matrix-label-text{min-width:0;overflow-wrap:anywhere}
.matrix-label-with-toggle .matrix-name-inner{min-width:0;gap:7px}
.matrix-controls-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;flex-wrap:wrap}
.matrix-collapse-all{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:7px 10px;min-height:34px;border:1px solid #d4e2e9;border-radius:9px;background:#fff;color:#2c5264;font-weight:700;font-size:.79rem}
.matrix-collapse-all:hover{background:#edf8f5;border-color:#90c9b9}
.matrix-collapse-all svg{width:15px;height:15px}
.matrix-cell-expanded{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;max-width:100%}
.matrix-cell-compact{display:none;align-items:center;flex-wrap:wrap;gap:4px 6px;width:100%;min-width:0;line-height:1.3}
.matrix-row-collapsed .matrix-cell-expanded{display:none}
.matrix-row-collapsed .matrix-cell-compact{display:flex}
.matrix-row-collapsed .matrix-cell-button{min-height:37px;padding:6px 9px;gap:3px}
.matrix-row-collapsed .matrix-role-label{padding-top:7px;padding-bottom:7px}
.matrix-row-collapsed .matrix-name-inner{min-height:25px}
.matrix-row-collapsed .matrix-name-avatar{width:24px;height:24px;font-size:.68rem}
.matrix-compact-primary{color:#1c6254;font-weight:780;font-size:.75rem;white-space:nowrap}
.matrix-compact-detail{color:#597283;font-size:.73rem;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}
.matrix-compact-idle{color:#b48138;font-size:.73rem;white-space:nowrap}
.matrix-compact-extra{background:#fff0dc;border:1px solid #edcf9e;color:#9a6725;padding:1px 4px;border-radius:5px;font-size:.68rem;font-weight:700}
.matrix-row-collapsed .double-booked{font-size:.7rem;width:17px;height:17px}
.matrix-cell-compact .matrix-nonrole{font-size:.61rem;padding:1px 3px}
.matrix-row-collapsed .muted-cell{font-size:.85rem}
@media(max-width:630px){
  .matrix-controls-right{flex:1 1 100%;justify-content:space-between;gap:8px}
  .matrix-controls-right .matrix-people-search{flex:1 1 160px;min-width:150px}
  .matrix-compact-detail{max-width:110px}
  .matrix-label-with-toggle{gap:5px}
  .matrix-row-toggle{width:23px;height:30px}
}

/* MFM v3.0 — branding refresh (no changes to scheduler or data storage). */
.brand-mark{font-size:11px;letter-spacing:-.055em;flex:none;min-width:33px;user-select:none}
.brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.12}
.brand-copy strong{font-weight:820;font-size:1.23rem;letter-spacing:-.025em;color:inherit}
.brand-copy small{display:block;font-size:.66rem;font-weight:580;letter-spacing:0;color:#a8c6d4;white-space:nowrap;margin:0}
.auth-form .brand-copy strong{color:#20334a}
.auth-form .brand-copy small{color:#677f91}
.auth-info .brand-copy small{color:#bbd5e0}


/* MFM v3.1 — legal links, independently loaded consent controls */
.mfm-legal-links{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:7px 13px;font-size:.76rem;line-height:1.6}
.mfm-legal-links a,.mfm-legal-links button{font:inherit;color:inherit;text-decoration:none;opacity:.9;background:none;border:0;padding:2px 0;cursor:pointer}
.mfm-legal-links a:hover,.mfm-legal-links button:hover{text-decoration:underline;opacity:1}
.mfm-legal-links a:focus-visible,.mfm-legal-links button:focus-visible{outline:2px solid #35b69a;outline-offset:3px;border-radius:2px}
.mfm-auth-legal{margin:11px 0 0;color:#577387}
.mfm-sidebar-legal{margin-top:16px;color:#b9cad9;gap:4px 11px;font-size:.70rem}
.mfm-sidebar-legal a,.mfm-sidebar-legal button{color:#b9cad9}
.auth-form .registration-consent a{color:#117962;font-weight:650}
@media(max-width:700px){.mfm-sidebar-legal{font-size:.73rem}}

/* MFM v3.2 — reusable groups are administered from People, not Ministries. */
.people-groups-panel{margin-top:20px}
.people-groups-title{margin-bottom:14px}
.people-groups-title p{margin-top:6px}
.people-group-ministry{border-top:1px solid #dce7eb;padding:17px 0}
.people-group-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.people-group-heading h3{font-size:1rem;margin:0 0 2px}
.people-group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
.people-group-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0;padding:13px;border:1px solid #dce7ec;background:#f8fafb;border-radius:12px}
.people-group-description{min-width:0;flex:1}
.people-group-members{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.people-group-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.people-group-actions .button svg{width:14px;height:14px}
@media(max-width:620px){.people-group-item{flex-direction:column}.people-group-actions{width:100%}.people-group-actions .button{flex:1;justify-content:center}}


/* MFM v3.5 — bulk volunteer entry */
.page-head .actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.bulk-people-action{border:1px solid #b8dcd2;color:#087c69;background:#f0faf6}
.bulk-people-action:hover{background:#def2ea}
.modal.modal-bulk-members{width:min(820px,calc(100vw - 24px));max-height:94dvh}
.modal.modal-bulk-members #modal-content{max-height:94dvh;display:flex;flex-direction:column}
.modal.modal-bulk-members .modal-body{flex:1;max-height:none;min-height:0}
.modal.modal-bulk-members .modal-scroll{padding:20px 24px}
.bulk-intro p{font-size:.9rem;color:#53697b;line-height:1.6;margin:0 0 12px}
.bulk-intro .notice{margin-bottom:15px;font-size:.8rem;line-height:1.55}
.bulk-table-scroll{overflow-x:auto;border:1px solid #dde8eb;border-radius:10px;margin-bottom:12px}
.bulk-table{width:100%;min-width:530px;border-collapse:collapse}
.bulk-table th{padding:10px 9px;background:#f2f6f7;color:#5c7483;text-transform:uppercase;font-size:.72rem;text-align:left;letter-spacing:.06em}
.bulk-table th:first-child{width:36px;text-align:center}
.bulk-table th:last-child{width:38px}
.bulk-table td{padding:7px;border-bottom:1px solid #ebf0f3;vertical-align:middle}
.bulk-table tr:last-child td{border-bottom:0}
.bulk-table .input{width:100%;padding:10px;font-size:.88rem}
.bulk-number{font-size:.78rem;color:#8294a0;font-weight:750;text-align:center}
.bulk-remove-row{border:0;background:transparent;color:#9a4752;font-size:1.4rem;cursor:pointer;padding:4px 8px;line-height:1}
.bulk-remove-row:hover{background:#fff1f2;border-radius:6px}
.bulk-remove-row:disabled{color:#cbd4d8;cursor:default}
.bulk-controls{display:flex;gap:12px;align-items:center;margin-bottom:22px}
.bulk-account-note{padding:10px 12px;background:#f4f8f9;color:#6a7d8d;border-radius:8px;font-size:.8rem;line-height:1.5}
#bulk-import-list{align-self:flex-start;margin-top:6px}
@media(max-width:630px){
  .modal.modal-bulk-members{max-height:96dvh}
  .modal.modal-bulk-members #modal-content{max-height:96dvh}
  .modal.modal-bulk-members .modal-scroll{padding:14px}
  .bulk-table{min-width:430px}
  .bulk-table .input{font-size:12px;padding:8px}
  .bulk-intro p{font-size:.84rem}
}

/* MFM v3.6 — recovery and account-setup controls */
.auth-reset-link{text-align:right;margin:-7px 0 10px}.auth-reset-link .auth-switch-link{font-size:.84rem}.recovery-step{border-top:1px solid #dfe8ed;margin-top:22px;padding-top:22px}.recovery-step h3{font-size:1.08rem;margin-bottom:8px}.recovery-step p.small{margin:0 0 16px}.recovery-step .field{margin-bottom:14px}.recovery-gate{background:#f4f8f8}.recovery-gate .auth-form{width:min(480px,100%)}.recovery-signout{margin-top:14px}.recovery-secret{margin:18px 0;border:1px dashed #bacfc8;background:#f0f8f5;border-radius:9px;padding:14px;font-size:1.35rem;font-weight:780;letter-spacing:.06em;text-align:center;user-select:all;overflow-wrap:anywhere}.auth-recovery .auth-form h2{margin-bottom:8px}#recovery-error[hidden]{display:none}

/* MFM v3.6.1 — account recovery action is visible only inside Edit volunteer. */
.member-account-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;margin:14px 0 2px;border:1px solid #d9e6ed;background:#f5f9fb;border-radius:13px}
.member-account-copy{min-width:0;flex:1}
.member-account-copy strong{display:block;color:#263f55;font-size:.91rem;margin-bottom:4px}
.member-account-copy p{font-size:.79rem;line-height:1.5;color:#687e8e;max-width:350px}
.button.member-reset-button{flex:none;padding:10px 14px;min-height:40px;background:#193c54;color:#fff;border:1px solid #193c54;border-radius:9px;box-shadow:0 3px 9px rgba(25,60,84,.13);font-weight:710}
.button.member-reset-button:hover{background:#28556f;border-color:#28556f;color:#fff}
.button.member-reset-button:focus-visible{outline:3px solid #a0d8cc;outline-offset:3px}
.button.member-reset-button svg{width:17px;height:17px}
@media(max-width:520px){.member-account-tools{align-items:stretch;flex-direction:column;gap:12px;padding:14px}.member-account-copy p{max-width:none}.button.member-reset-button{width:100%;justify-content:center}}


/* MFM v3.6.2 — One scrollbar in Add/Edit Volunteer.
   The dialog and its form must not scroll independently. Only .modal-scroll
   scrolls; the role checkboxes expand naturally and the footer stays visible. */
.modal.modal-member-editor {
  width: min(680px, calc(100vw - 24px));
  height: min(90dvh, 880px);
  max-height: 90dvh;
  overflow: hidden;
}
.modal.modal-member-editor #modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.modal.modal-member-editor .modal-head {
  flex: 0 0 auto;
}
.modal.modal-member-editor .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.modal.modal-member-editor .modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.modal.modal-member-editor .checks {
  max-height: none;
  overflow: visible;
}
.modal.modal-member-editor .modal-footer {
  flex: 0 0 auto;
}
@media (max-width: 630px) {
  .modal.modal-member-editor {
    width: calc(100vw - 16px);
    height: min(94dvh, 880px);
    max-height: 94dvh;
  }
  .modal.modal-member-editor .modal-scroll { padding: 14px 16px; }
  .modal.modal-member-editor .modal-footer { padding: 12px 16px; }
}


/* MFM v3.7 — Statistics. Lightweight responsive layout; no libraries. */
.stat-page-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:4px 0 20px;flex-wrap:wrap}
.stat-page-heading h1{font-size:27px;letter-spacing:-.03em;margin:0 0 4px;color:#132943}
.stat-page-heading p{color:#667f94;font-size:13px;margin:0}
.stat-readonly{display:inline-flex;align-items:center;gap:6px;color:#497071;font-size:12px;font-weight:700}
.stat-readonly svg,.stat-toolbar svg,.stats-search svg{width:16px;height:16px}
.stat-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:17px;background:#fff;border:1px solid #d9e5eb;border-radius:13px;padding:15px}
.stat-select{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#5b7588;font-weight:700;min-width:155px}
.stat-select .input{min-height:39px;padding:8px 10px}
.stat-toolbar button{min-height:39px;display:inline-flex;align-items:center;gap:7px}
.stat-refresh{margin-left:auto}
.stat-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.stat-kpi{padding:18px 20px;min-height:110px}
.stat-label{font-size:12px;font-weight:750;color:#627e93}
.stat-value{font-size:30px;letter-spacing:-.04em;font-weight:800;color:#102b46;margin:7px 0 4px;font-variant-numeric:tabular-nums}
.stat-hint{color:#74899c;font-size:11px;line-height:1.4}
.stat-kpi.green .stat-value{color:#098778}.stat-kpi.amber .stat-value{color:#a36818}
.stats-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.stats-panel{overflow:hidden;min-width:0}
.stats-panel-title{padding:19px 21px 14px;border-bottom:1px solid #e4eaee}
.stats-panel-title h2{font-size:16px;color:#142d44;margin:0;font-weight:800}
.stats-panel-title p{font-size:12px;color:#718396;margin:5px 0 0}
.stats-months{padding:14px 22px 22px;max-height:325px;overflow:auto}
.stats-month{display:grid;grid-template-columns:70px minmax(30px,1fr) 135px;align-items:center;gap:12px;font-size:12px;padding:7px 0}
.stats-month-label{color:#597084;font-weight:650}.stats-month-numbers{color:#526f81;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.stats-bar-track{height:11px;border-radius:30px;background:#e7eff1;overflow:hidden;width:100%}
.stats-bar-fill{height:100%;border-radius:30px;background:#0d9988;min-width:0}
.stats-bar-fill.confirmed{background:#244d6c}
.stats-ministry-row{padding:11px 20px}.stats-ministry-row+.stats-ministry-row{border-top:1px solid #edf1f3}
.stats-ministry-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;margin-bottom:9px}
.stats-ministry-head strong{color:#1b334e}.stats-ministry-head span{color:#72889a}
.stat-table-title{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.stats-search{display:flex;align-items:center;gap:6px;color:#677e8c}
.stats-search input{width:230px;padding:9px!important;min-height:39px}
.stats-people-panel{margin-bottom:16px}
.stats-table{font-size:12px;white-space:nowrap}
.stats-table th,.stats-table td{padding:11px 13px}
.stats-num{font-variant-numeric:tabular-nums;text-align:center}
.stats-person-link{border:0;background:transparent;font-weight:800;text-align:left;color:#087d71;cursor:pointer;padding:0;font:inherit;text-decoration:underline;text-underline-offset:3px}
.stats-person-link:hover{color:#005a50}.stats-inactive{font-size:10px;padding:2px 5px;margin-left:8px;border-radius:5px;background:#e7edf0;color:#586c77}
.stats-table-foot{padding:12px 19px;border-top:1px solid #e5edf0;color:#617888;font-size:11px}
.stats-notes{padding:15px 21px;color:#4f6b7e;font-size:12px;line-height:1.65}.stats-notes p{margin:7px 0 15px}
.stats-person-top>div{display:flex;align-items:center;gap:11px}.stats-person-top h3{margin:0;font-size:17px}.stats-person-top p{font-size:12px;color:#688295;margin:3px 0}
.stats-person-section{margin:17px 0}.stats-person-section h3{font-size:13px;margin-bottom:10px}
.stats-role-bubbles{display:flex;flex-wrap:wrap;gap:7px}.stats-role-bubbles span{background:#eff5f7;padding:7px 10px;border-radius:8px;font-size:12px;color:#244354}.stats-role-bubbles b{margin-left:5px;color:#0a887a}
.stats-status{display:inline-flex;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:750}.stats-accepted{background:#e2f7ec;color:#137348}.stats-assigned{background:#fff2d9;color:#8d5b1b}.stats-declined{background:#fae5e8;color:#ad334a}
.stat-empty{padding:50px 30px;color:#667f92;text-align:center}
@media(max-width:1050px){.stat-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-two-columns{grid-template-columns:1fr}}
@media(max-width:640px){.stat-kpis{gap:9px}.stat-kpi{padding:13px}.stat-value{font-size:25px}.stat-select{min-width:calc(50% - 6px);flex:1}.stat-toolbar{padding:12px}.stat-toolbar button{flex:1;justify-content:center}.stat-refresh{margin-left:0}.stat-page-heading h1{font-size:24px}.stats-month{grid-template-columns:57px minmax(30px,1fr) 107px;gap:6px;font-size:10px}.stats-months{padding:10px 12px}.stats-panel-title{padding:15px}.stats-search input{width:100%}.stats-search{width:100%}}

/* MFM v3.8 — per-church backup and restore controls */
.mfm-backup-title{display:flex;align-items:center;gap:10px}.mfm-backup-title svg{width:21px;height:21px;color:#0d8f78;flex-shrink:0}.mfm-backup-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.mfm-backup-actions svg{width:16px;height:16px}.mfm-backup-warning{margin-top:12px;line-height:1.6}.mfm-restore-summary{background:#f3f7f8;border:1px solid #dbe6eb;color:#465f70;border-radius:11px;padding:13px 15px;font-size:.83rem;line-height:1.8;margin:0 0 18px;overflow-wrap:anywhere}.mfm-restore-summary strong{color:#1d374c}.mfm-backup-ok{color:#127057;font-weight:700}.mfm-backup-error{color:#b3404b;font-weight:700}.modal-backup-restore{width:min(680px,calc(100vw - 25px))}@media(max-width:630px){.mfm-backup-actions{flex-direction:column}.mfm-backup-actions .button{width:100%;justify-content:center}}


/* v3.8.1 — understated user-facing notices (no amber callout boxes) */
.notice.warn {
  background: transparent;
  border: 0;
  border-left: 2px solid #afbdc8;
  border-radius: 0;
  padding: 7px 0 7px 12px;
  color: #486172;
}
.mfm-backup-help, .mfm-restore-intro {
  margin: 13px 0 0;
  color: #617586;
  font-size: .8rem;
  line-height: 1.55;
}
.mfm-restore-intro { margin: 0 0 21px; }

/* MFM v3.9 — simple notification preferences */
.email-section-title{font-size:14px;margin:20px 0 12px;color:#17324b}
.mfm-email-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px}
.mfm-email-option{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:13px;cursor:pointer}
.mfm-email-option input{accent-color:#0d947d;width:16px;height:16px}
.mfm-email-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.mfm-email-history{overflow-x:auto}.mfm-email-history table{width:100%;border-collapse:collapse;font-size:12px}
.mfm-email-history th,.mfm-email-history td{text-align:left;padding:9px;border-bottom:1px solid #dce5ed}
@media(max-width:540px){.mfm-email-options{grid-template-columns:1fr}}

/* MFM v3.11 — quarterly availability calendar */
.av-calendar-card{overflow:hidden}
.av-top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 25px 15px;flex-wrap:wrap}
.av-top h2{font-size:1.14rem;margin-bottom:5px}
.av-nav{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.av-nav strong{font-size:.91rem;min-width:116px;text-align:center;color:#233c4e}
.av-nav button svg{width:15px;height:15px}
.av-nav [data-av-navigate="-1"] svg{transform:rotate(180deg)}
.av-three-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:7px 22px 24px}
.av-month{border:1px solid #e3ebef;border-radius:13px;padding:16px 11px 12px;min-width:0;background:white}
.av-month h3{font-size:1rem;margin:0 8px 14px;color:#243b4f;font-weight:750}
.av-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.av-weekday{font-size:.68rem;font-weight:700;color:#8797a3;padding-bottom:7px}
.av-day,.av-day-pad{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;position:relative;min-height:31px}
.av-day{border:1px solid transparent;border-radius:9px;background:#f5f7f8;color:#455969;cursor:pointer;font:inherit;font-size:.85rem;font-weight:600;transition:background .14s,border-color .14s,color .14s}
.av-day:hover{background:#e7f5ef;border-color:#acd6c7;color:#066d5c}
.av-day:focus-visible{outline:2px solid #0f927d;outline-offset:2px}
.av-day.is-available{background:#d8f3e8;color:#076b54;border-color:#a6dbc7;font-weight:790}
.av-day.is-available:hover{background:#c7ebdd}
.av-day.is-today:not(.is-available){border-color:#67a5b3;color:#155a6a}
.av-assignment-dot{position:absolute;width:4px;height:4px;background:#426fa6;border-radius:50%;bottom:3px;left:calc(50% - 2px)}
.av-bottom{border-top:1px solid #e6edf0;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 25px;flex-wrap:wrap}
.av-key{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#62798b;font-size:.76rem}
.av-legend-available,.av-legend-unselected{width:13px;height:13px;display:inline-block;border-radius:4px;border:1px solid #b7d7ce}
.av-legend-available{background:#d8f3e8}
.av-legend-unselected{background:#f5f7f8;border-color:#e1e7e8;margin-left:8px}
.av-legend-dot{width:7px;height:7px;background:#426fa6;border-radius:50%;display:inline-block;margin-left:8px}
.av-save-row{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.av-save-copy{display:flex;flex-direction:column;gap:2px;font-size:.86rem}
.av-save-copy span{font-size:.72rem;color:#738696}
.av-help{margin:11px 3px 20px;line-height:1.6}
.av-existing{margin-top:14px;padding:5px 0}
.av-existing>summary{cursor:pointer;padding:15px 20px;font-weight:700;color:#34566d}
.av-existing-note{padding:12px 20px}
.meter.meter-empty{background:#eef2f4}
@media(max-width:1250px){.av-three-months{gap:11px;padding:8px 15px 20px}.av-month{padding:13px 7px}.av-days{gap:3px}}
@media(max-width:1060px){.av-three-months{grid-template-columns:1fr 1fr}.av-month{padding:15px}}
@media(max-width:680px){.av-three-months{grid-template-columns:1fr;max-width:480px;margin:0 auto;padding:8px 14px 20px}.av-month{padding:15px}.av-days{gap:5px}.av-day{min-height:35px}.av-top{padding:17px 15px;gap:12px}.av-nav{justify-content:space-between;width:100%;gap:5px}.av-nav strong{min-width:auto}.av-bottom{padding:15px}.av-save-row{width:100%;justify-content:space-between}.av-save-row .button{flex:1;justify-content:center}}


/* v3.12 - assignment dialog: eligibility and availability side by side */
.modal.modal-assign-availability{width:min(1040px,calc(100vw - 32px));max-height:min(92dvh,990px);overflow:hidden}
.modal.modal-assign-availability #modal-content{display:flex;flex-direction:column;max-height:min(92dvh,990px);min-height:0}
.modal.modal-assign-availability .modal-body{flex:1;min-height:0;max-height:none;overflow:hidden}
.modal.modal-assign-availability .modal-scroll{overflow-y:auto;overflow-x:hidden;padding:22px 24px}
.modal.modal-assign-availability .modal-footer{flex:none}
.assign-modal-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(270px,.82fr);align-items:start;gap:26px}
.assign-modal-main{min-width:0}
/* The existing search and selected-name bubbles remain on the left; the right
   column now owns the available-person choices. */
.modal-assign-availability #assignment-picker .vol-chip-grid{display:none}
.modal-assign-availability #assignment-picker .vol-selection{min-height:36px}
.assign-availability-panel{min-width:0;border:1px solid #dbe5e9;border-radius:12px;background:#f8fafb;padding:16px}
.assign-availability-heading h3{font-size:1.01rem;color:#24384c}
.assign-availability-heading p{font-size:.79rem;color:#6b8091;margin:4px 0 12px}
.assign-availability-count{display:block;color:#147662;font-weight:730;font-size:.8rem;border-bottom:1px solid #dde8e9;padding-bottom:11px;margin-bottom:4px}
.assign-available-list{display:grid;gap:5px}
.assign-available-person{display:flex;align-items:center;text-align:left;gap:10px;width:100%;border:1px solid transparent;border-radius:9px;padding:9px 8px;background:transparent;color:#243d50;cursor:pointer;min-width:0}
.assign-available-person:hover{background:#fff;border-color:#b9dcd1}
.assign-available-person.selected{background:#e3f5ed;border-color:#82cab4}
.assign-available-person .avatar{width:33px;height:33px;min-width:33px;border-radius:50%;font-size:.75rem}
.assign-available-person-text{min-width:0;flex:1}
.assign-available-person-text strong{display:block;font-size:.83rem;line-height:1.25;overflow-wrap:anywhere}
.assign-available-person-text small{display:block;font-size:.72rem;font-weight:450;color:#698192;line-height:1.45;margin-top:2px}
.assign-available-person.selected .assign-available-person-text small{color:#407566}
.assign-available-action{color:#0b8a72;display:grid;place-items:center}
.assign-available-action svg{width:16px;height:16px}
.assign-other-role{color:#8a5806;background:#fff1d9;border:1px solid #f0d3a5;border-radius:50%;font-size:11px;font-weight:800;width:18px;height:18px;display:grid;place-items:center}
.assign-show-more{width:100%;margin:10px 0 0;padding:8px 4px;border:0;background:transparent;color:#117562;font-size:.82rem;font-weight:700;cursor:pointer}
.assign-show-more:hover{text-decoration:underline}
.assign-no-results{font-size:.81rem;color:#768997;padding:14px 4px}
.assign-availability-note{color:#82929f;font-size:.73rem;line-height:1.55;border-top:1px solid #e1e9ea;padding-top:12px;margin-top:12px}
.assign-available-person:focus-visible,.assign-show-more:focus-visible{outline:3px solid #77bedc;outline-offset:2px}
@media(max-width:730px){
  .modal.modal-assign-availability{width:calc(100vw - 20px);max-height:96dvh}
  .modal.modal-assign-availability #modal-content{max-height:96dvh}
  .assign-modal-layout{grid-template-columns:1fr;gap:16px}
  .assign-availability-panel{padding:13px}
  .modal.modal-assign-availability .modal-scroll{padding:16px}
  .modal.modal-assign-availability .modal-footer{padding:12px 14px}
}

/* MFM v3.13 — read-only availability matrix and reversible publishing. */
.schedule-card .scheduler-btn-unpublish{background:#fff;color:#324b60;border-color:#b9cbd5}
.schedule-card .scheduler-btn-unpublish:hover{background:#edf3f5;color:#193b4e;border-color:#8cabb8}
.avm-panel{overflow:hidden}
.avm-panel-header{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;padding:21px 23px 17px;border-bottom:1px solid var(--border)}
.avm-panel-header h2{font-size:1.08rem;margin-bottom:5px}
.avm-legend{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;font-size:.77rem;color:var(--muted)}
.avm-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.avm-dot{width:12px;height:12px;border-radius:4px;border:1px solid #d5dfe4;display:inline-block}
.avm-dot-available{background:#c6f0de;border-color:#98d9c0}
.avm-dot-unavailable{background:#eff2f5;border-color:#dce4e9}
.avm-dot-unsent{background:#fff;border-color:#b9c8d2}
.avm-dot-booked{background:#145e77;border-color:#145e77;border-radius:50%;width:8px;height:8px}
.availability-matrix-toolbar{padding:15px 22px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.avm-quarter-nav{display:flex;align-items:center;gap:12px}.avm-quarter-nav strong{white-space:nowrap;font-size:.88rem;color:var(--ink)}
.avm-quarter-nav .button{display:flex;align-items:center;gap:5px}.avm-quarter-nav button:first-child svg{transform:rotate(180deg)}
.availability-matrix-filters{padding:0 22px 17px;display:flex;gap:13px;align-items:flex-end;flex-wrap:wrap}
.avm-search{flex:1 1 250px;max-width:400px}.avm-filter-label{font-size:.78rem;font-weight:700;color:#516777;display:flex;align-items:center;gap:9px}
.avm-filter-label select{min-width:190px;width:auto}.avm-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0 22px 20px}
.avm-metric{padding:12px 14px;border-radius:10px;border:1px solid #e2eaee;background:#f8fafb;display:flex;flex-direction:column;gap:3px}.avm-metric strong{color:#143349;font-size:1.25rem;line-height:1.3}.avm-metric span{font-size:.76rem;color:#637b89}
.avm-scroll{max-height:65vh;overflow:auto;border-top:1px solid #d9e5eb;border-bottom:1px solid #d9e5eb;scrollbar-gutter:stable}
.avm-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.8rem;table-layout:fixed}
.avm-table th,.avm-table td{border-right:1px solid #e3ebef;border-bottom:1px solid #e3ebef;white-space:nowrap}
.avm-table thead th{position:sticky;top:0;z-index:3;background:#f3f7f8;padding:10px 4px;min-width:52px;text-align:center;color:#24465a}
.avm-table thead th.avm-corner{left:0;z-index:5;min-width:210px;text-align:left;padding-left:17px;background:#eaf2f3}
.avm-table thead .avm-date span,.avm-table thead .avm-date strong,.avm-table thead .avm-date small{display:block}.avm-table thead .avm-date span{font-size:.71rem;color:#718697}.avm-table thead .avm-date strong{font-size:1rem;color:#173747}.avm-table thead .avm-date small{font-size:.7rem;color:#72899a}
.avm-table thead th.avm-new-month{border-left:2px solid #b5cacd}
.avm-person{position:sticky;left:0;z-index:2;background:#fff;min-width:210px;text-align:left;padding:9px 14px}
.avm-person-name{display:flex;gap:9px;align-items:center}.avm-person-name .avatar{flex:none;width:29px;height:29px;font-size:.7rem}.avm-person-name strong{display:block;font-size:.8rem}.avm-person-name small{display:block;color:#889aa7;font-size:.7rem;font-weight:400;margin-top:2px}
.avm-cell{position:relative;min-width:52px;height:50px;text-align:center;font-weight:800}.avm-symbol{display:inline-flex;align-items:center;justify-content:center;width:29px;height:28px;border-radius:7px}
.avm-available .avm-symbol{background:#def5e9;color:#07735a}.avm-unavailable .avm-symbol{background:#eef2f4;color:#718999}.avm-unsent .avm-symbol{color:#b8c6d0;background:#fff;border:1px solid #e7ecef}
.avm-booked{position:absolute;width:7px;height:7px;border-radius:50%;background:#145e77;top:7px;right:6px;box-shadow:0 0 0 2px white}
.avm-cell:hover{background:#f8fbfb}.avm-note{padding:12px 22px 16px;line-height:1.6}.avm-empty{text-align:center;padding:36px 20px;color:#455f70}.avm-empty p{margin-top:8px;font-size:.85rem;color:#7d8e9a}.avm-no-people{text-align:center;padding:24px;color:#667e8f}
@media(max-width:1000px){.avm-panel-header{flex-direction:column}.avm-legend{justify-content:flex-start}.avm-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:630px){.avm-panel-header,.availability-matrix-toolbar{padding:15px}.availability-matrix-filters{padding:0 15px 15px}.avm-metrics{padding:0 15px 15px;grid-template-columns:repeat(2,minmax(0,1fr))}.avm-quarter-nav{gap:6px;flex-wrap:wrap}.avm-quarter-nav .button{padding:8px}.avm-table thead th.avm-corner,.avm-person{min-width:150px}.avm-person-name .avatar{display:none}.avm-person-name strong{max-width:120px;overflow:hidden;text-overflow:ellipsis}.avm-table thead th,.avm-cell{min-width:44px}.avm-scroll{max-height:65vh}}

/* MFM v3.14 — independently selectable morning/evening availability */
.av-day-split{
  position:relative;display:grid;grid-template-rows:1fr 1fr;
  min-width:0;min-height:60px;overflow:hidden;
  border:1px solid #dfe8ec;border-radius:9px;
  background:#f5f7f8;
}
.av-day-split.is-today{border-color:#4397aa}
.av-day-split.av-day-both{background:#dcf5e8;border-color:#a6d8c4}
.av-day-number{position:absolute;top:2px;left:5px;z-index:1;pointer-events:none;font-size:.72rem;font-weight:800;color:#293c4d}
.av-half{border:0;min-width:0;width:100%;min-height:29px;padding:1px 3px;
  display:flex;justify-content:flex-end;align-items:center;
  color:#8798a6;font:inherit;font-size:.59rem;font-weight:800;
  background:transparent;cursor:pointer;line-height:1.1;transition:background .13s}
.av-half span{pointer-events:none}
.av-half-am{border-bottom:1px solid #e0e7e9}
.av-half-pm{justify-content:center}
.av-half-am.is-selected{background:#d9f3e7;color:#157454;border-bottom-color:#a5d8c4}
.av-half-pm.is-selected{background:#f0e3fb;color:#7951a8}
.av-day-both .av-half{background:#d9f3e7!important;color:#176c56!important}
.av-half:hover{filter:brightness(.96)}
.av-half:focus-visible{outline:2px solid #147d69;outline-offset:-2px;z-index:2}
.av-day-split .av-assignment-dot{bottom:3px;right:4px;left:auto;z-index:1;pointer-events:none}
.av-legend-pm,.av-legend-both{width:13px;height:13px;display:inline-block;border-radius:4px;border:1px solid #ddc7f1}
.av-legend-pm{background:#f0e3fb}
.av-legend-both{background:#d9f3e7;border-color:#a6d8c4}
.avm-am .avm-symbol{background:#ddf4e8;color:#0f745d;font-size:.71rem}
.avm-pm .avm-symbol{background:#f0e3fb;color:#7850a4;font-size:.71rem}
.avm-dot-am{background:#ddf4e8;border-color:#a6d8c4}
.avm-dot-pm{background:#f0e3fb;border-color:#dcc5ed}
.avm-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:1250px){.avm-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.avm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.av-day-split{min-height:63px}.av-half{min-height:31px;font-size:.64rem}}

/* MFM v3.14 — compact service actions without sacrificing accessibility. */
.mobile-service-actions{display:block;width:100%}
.mobile-service-actions>.mobile-service-toggle,.mobile-role-actions>.mobile-role-toggle{display:none}
.mobile-service-actions>.scheduler-toolbar-actions{display:flex;align-items:stretch;flex-wrap:wrap;width:100%}
.mobile-role-actions>.mobile-role-action-list{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.mobile-role-actions:not(.is-open)>.mobile-role-action-list,
.mobile-service-actions:not(.is-open)>.scheduler-toolbar-actions{display:flex}
.mobile-role-actions{display:block}
.mobile-service-actions>.mobile-service-toggle svg,.mobile-role-actions>.mobile-role-toggle svg{height:16px;width:16px}
@media(max-width:630px){
  .schedule-card .scheduler-toolbar{display:block;padding:9px 12px}
  .mobile-service-actions>.mobile-service-toggle{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;
    border:1px solid #cbdde4;border-radius:9px;background:white;color:#24435a;
    font-size:.83rem;font-weight:750;cursor:pointer;list-style:none}
  .mobile-service-actions:not(.is-open)>.scheduler-toolbar-actions{display:none}
  .mobile-service-actions>.scheduler-toolbar-actions{display:block;padding-top:11px}
  .schedule-card .scheduler-action-group{padding:8px 0 12px}
  .schedule-card .scheduler-action-buttons{display:flex;flex-wrap:wrap;gap:7px}
  .schedule-card .scheduler-btn{width:auto;min-height:37px;padding:9px 11px;white-space:nowrap}
  .schedule-card .scheduler-btn .action-text{display:inline}
  .schedule-card .scheduler-role-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px}
  .schedule-card .scheduler-role-heading{grid-column:1;grid-row:1}
  .schedule-card .slot-people{grid-column:1/-1;grid-row:2}
  .schedule-card .scheduler-role-actions{grid-column:2;grid-row:1;display:block;margin:0;min-width:0}
  .mobile-role-actions>.mobile-role-toggle{display:grid;place-items:center;min-width:35px;min-height:35px;
    padding:7px;border:1px solid #d4e2e7;border-radius:9px;background:white;cursor:pointer;color:#34556a;list-style:none}
  .mobile-role-actions:not(.is-open)>.mobile-role-action-list{display:none}
  .mobile-role-actions>.mobile-role-action-list{display:flex;gap:7px;flex-wrap:wrap;
    position:relative;width:max-content;max-width:100%;padding-top:8px}
  .schedule-card .role-tool{width:auto;min-height:35px;white-space:nowrap;padding:8px 10px}
  .schedule-card .role-tool .action-text{display:inline}
  .mobile-role-actions.is-open{position:relative}
  .schedule-card .scheduler-role-actions:has(.mobile-role-actions.is-open){grid-column:1/-1;grid-row:3}
  .schedule-card .scheduler-role-actions:has(.mobile-role-actions.is-open) .mobile-role-action-list{max-width:100%;width:100%}
  /* The three top controls stay as one fixed row, even on narrower devices. */
  .content-scheduler .scheduler-filters{display:flex;align-items:center;justify-content:space-between;
    flex-wrap:nowrap!important;gap:5px;min-width:0;margin-bottom:10px!important}
  .content-scheduler .scheduler-filters>.seg{display:flex;flex:none;flex-wrap:nowrap;gap:0;white-space:nowrap}
  .content-scheduler .scheduler-filters>.seg button{padding:8px 9px;white-space:nowrap;font-size:.78rem}
  .content-scheduler .scheduler-view-switch{display:flex;flex:none;gap:5px;width:auto;min-width:0;margin-left:auto}
  .content-scheduler .scheduler-view-switch .seg{display:flex;flex-wrap:nowrap}
  .content-scheduler .scheduler-view-switch .seg button{padding:7px 8px;min-width:34px;white-space:nowrap}
  .content-scheduler .scheduler-view-switch .view-text{display:none}
  .content-scheduler .scheduler-new-service{width:35px;height:35px;min-width:35px;min-height:35px;padding:7px;display:grid;place-items:center}
  .content-scheduler .scheduler-new-service .new-service-text{display:none}
  .content-scheduler .scheduler-view-switch svg{width:15px;height:15px}
}
@media(max-width:355px){
  .content-scheduler .scheduler-filters>.seg button{padding:7px 7px;font-size:.75rem}
  .content-scheduler .scheduler-view-switch .seg button{padding:7px 6px;min-width:30px}
  .content-scheduler .scheduler-new-service{width:32px;min-width:32px;height:33px;min-height:33px}
}

.mobile-service-toggle,.mobile-role-toggle{font:inherit}


/* MFM v3.14.1 — curved, corner-to-corner AM / PM availability. Works on
   desktop, phones and tablets without checking device brand or model. */
.av-day-split{
  display:block;position:relative;isolation:isolate;
  aspect-ratio:1 / 1.06;min-height:52px;
  border-radius:11px;border:1px solid #cddae0;
  overflow:hidden;background:#f3f5f7;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.av-day-split.is-today{border-color:#258f9f;box-shadow:inset 0 0 0 1px #258f9f}
.av-day-split:focus-within{outline:2px solid #108672;outline-offset:2px}
.av-day-split .av-half{
  position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;
  padding:0;border:0;border-radius:0;text-align:left;
  background:transparent;color:#84929c;font:inherit;font-size:clamp(.54rem,.8vw,.7rem);
  font-weight:730;line-height:1.1;user-select:none;-webkit-user-select:none;
  touch-action:manipulation;transition:background-color .12s ease;
}
.av-day-split .av-half-am{z-index:1;clip-path:polygon(0% 0%, 100% 0%, 100.00% 0.00%, 96.61% 10.99%, 92.98% 21.08%, 89.15% 30.32%, 85.12% 38.74%, 80.91% 46.39%, 76.55% 53.31%, 72.05% 59.55%, 67.42% 65.14%, 62.69% 70.14%, 57.88% 74.58%, 53.00% 78.50%, 48.07% 81.95%, 43.11% 84.98%, 38.13% 87.62%, 33.16% 89.92%, 28.21% 91.91%, 23.30% 93.65%, 18.45% 95.18%, 13.68% 96.53%, 9.00% 97.76%, 4.44% 98.90%, 0.00% 100.00%);-webkit-clip-path:polygon(0% 0%, 100% 0%, 100.00% 0.00%, 96.61% 10.99%, 92.98% 21.08%, 89.15% 30.32%, 85.12% 38.74%, 80.91% 46.39%, 76.55% 53.31%, 72.05% 59.55%, 67.42% 65.14%, 62.69% 70.14%, 57.88% 74.58%, 53.00% 78.50%, 48.07% 81.95%, 43.11% 84.98%, 38.13% 87.62%, 33.16% 89.92%, 28.21% 91.91%, 23.30% 93.65%, 18.45% 95.18%, 13.68% 96.53%, 9.00% 97.76%, 4.44% 98.90%, 0.00% 100.00%);}
.av-day-split .av-half-pm{z-index:2;clip-path:polygon(0.00% 100.00%, 4.44% 98.90%, 9.00% 97.76%, 13.68% 96.53%, 18.45% 95.18%, 23.30% 93.65%, 28.21% 91.91%, 33.16% 89.92%, 38.13% 87.62%, 43.11% 84.98%, 48.07% 81.95%, 53.00% 78.50%, 57.88% 74.58%, 62.69% 70.14%, 67.42% 65.14%, 72.05% 59.55%, 76.55% 53.31%, 80.91% 46.39%, 85.12% 38.74%, 89.15% 30.32%, 92.98% 21.08%, 96.61% 10.99%, 100.00% 0.00%, 100% 100%, 0% 100%);-webkit-clip-path:polygon(0.00% 100.00%, 4.44% 98.90%, 9.00% 97.76%, 13.68% 96.53%, 18.45% 95.18%, 23.30% 93.65%, 28.21% 91.91%, 33.16% 89.92%, 38.13% 87.62%, 43.11% 84.98%, 48.07% 81.95%, 53.00% 78.50%, 57.88% 74.58%, 62.69% 70.14%, 67.42% 65.14%, 72.05% 59.55%, 76.55% 53.31%, 80.91% 46.39%, 85.12% 38.74%, 89.15% 30.32%, 92.98% 21.08%, 96.61% 10.99%, 100.00% 0.00%, 100% 100%, 0% 100%);}
.av-day-split .av-half-am.is-selected{background:#dcf4e9;color:#0b6d56}
.av-day-split .av-half-pm.is-selected{background:#f0e5f9;color:#7652a0}
.av-day-split.av-day-both .av-half{background:#dcf4e9!important;color:#0b6d56!important}
.av-day-split .av-half span{position:absolute;pointer-events:none}
.av-day-split .av-half-am span{left:6px;top:5px}
.av-day-split .av-half-pm span{right:5px;bottom:5px}
.av-day-split .av-half:focus-visible{outline:none}
.av-day-split .av-half:hover{filter:none}
@media(hover:hover){.av-day-split .av-half:hover{filter:brightness(.97)}}
.av-day-split .av-diagonal-line{
  position:absolute;inset:0;width:100%;height:100%;z-index:3;
  pointer-events:none;overflow:visible;
}
.av-day-split .av-diagonal-line path{fill:none;stroke:#b3c1c8;stroke-width:.85;vector-effect:non-scaling-stroke}
.av-day-split.av-day-both .av-diagonal-line{opacity:0}
.av-day-split .av-day-number{
  position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);
  z-index:4;pointer-events:none;font-size:clamp(.9rem,1.05vw,1.18rem);
  font-weight:780;color:#20384b;line-height:1;
}
.av-day-split.av-day-both .av-day-number{color:#085d49}
.av-day-split .av-assignment-dot{z-index:5;right:5px;bottom:2px}
/* Phone widths include compact 320px layouts, modern iPhones and Androids.
   Each quarter still displays all three months, stacked for legibility. */
@media(max-width:767px){
  .av-three-months{grid-template-columns:minmax(0,1fr);max-width:520px;margin-inline:auto;padding:9px 12px 18px}
  .av-month{min-width:0;padding:13px 10px}
  .av-days{gap:4px}
  .av-day-split{min-height:53px}
  .av-day-split .av-half{font-size:.66rem}
  .av-day-split .av-day-number{font-size:1.04rem}
  .content-scheduler .scheduler-filters{display:flex;gap:5px;align-items:center;justify-content:space-between;flex-wrap:nowrap!important;min-width:0}
  .content-scheduler .scheduler-view-switch{width:auto;gap:5px;min-width:0;flex:none;margin-left:auto}
  .content-scheduler .scheduler-view-switch>.small{display:none}
  .content-scheduler .scheduler-view-switch .view-text{display:none}
  .content-scheduler .scheduler-view-switch .seg{display:flex;flex-wrap:nowrap}
  .content-scheduler .scheduler-view-switch .seg button{min-width:37px;min-height:38px;padding:7px 9px;display:grid;place-items:center}
  .content-scheduler .scheduler-new-service{height:39px;min-height:39px;min-width:39px;width:39px;padding:8px;display:grid;place-items:center}
  .content-scheduler .scheduler-new-service .new-service-text{display:none}
  .mobile-service-actions>.mobile-service-toggle{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;
    border:1px solid #cbdde4;border-radius:9px;background:white;color:#24435a;font-weight:750}
  .mobile-service-actions:not(.is-open)>.scheduler-toolbar-actions{display:none}
  .mobile-role-actions>.mobile-role-toggle{display:grid;place-items:center;min-width:38px;min-height:38px;
    border:1px solid #d4e2e7;border-radius:9px;background:white;color:#34556a}
  .mobile-role-actions:not(.is-open)>.mobile-role-action-list{display:none}
  .schedule-card .scheduler-toolbar{padding:9px 12px}
}
@media(max-width:359px){
  .av-three-months{padding-inline:8px}
  .av-month{padding:11px 7px}
  .av-days{gap:3px}
  .av-day-split{min-height:49px}
  .av-day-split .av-half{font-size:.61rem}
  .av-day-split .av-half-am span{left:4px;top:4px}
  .av-day-split .av-half-pm span{right:3px;bottom:4px}
  .content-scheduler .scheduler-filters>.seg button{font-size:.74rem;padding:7px 6px}
  .content-scheduler .scheduler-view-switch .seg button{min-width:30px;padding:6px}
  .content-scheduler .scheduler-new-service{width:34px;min-width:34px;height:36px;min-height:36px;padding:6px}
}
@supports(padding:max(0px,env(safe-area-inset-left))){
  @media(max-width:900px){
    .content{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
    .content.content-scheduler{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
  }
}

/* v3.15 — compact, colour-coded AM/PM shift cards in Name matrix view only. */
.matrix-mode-person .matrix-table thead th:not(.matrix-corner),
.matrix-mode-person .matrix-table .matrix-cell{min-width:218px;width:218px;max-width:218px}
.matrix-mode-person .matrix-cell-button{width:100%;align-items:stretch;min-width:0}
.matrix-mode-person .matrix-cell-expanded,
.matrix-mode-person .matrix-cell-compact{width:100%;align-items:stretch;min-width:0}
.matrix-mode-person .matrix-cell-compact{flex-direction:column;align-items:stretch;gap:5px}
.matrix-shift-stack{display:flex;flex-direction:column;gap:5px;max-width:100%;width:100%;min-width:0}
.matrix-shift-card{display:flex;position:relative;flex-direction:column;gap:2px;min-width:0;max-width:100%;padding:7px 8px 7px 12px;border:1px solid transparent;border-radius:7px;text-align:left;line-height:1.3;overflow:hidden}
.matrix-shift-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--shift-accent)}
.matrix-shift-am{--shift-accent:#24a96f;background:#e6f7eb;border-color:#bce3c9;color:#174c38}
.matrix-shift-pm{--shift-accent:#9464d0;background:#f1eaff;border-color:#decaf8;color:#513477}
.matrix-shift-time{font-size:.71rem;font-weight:780;white-space:nowrap;letter-spacing:-.012em;overflow:hidden;text-overflow:ellipsis}
.matrix-shift-role{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:.76rem;font-weight:660;overflow-wrap:anywhere;min-width:0}
.matrix-shift-draft{border-style:dashed;opacity:.83}
.matrix-shift-more{font-size:.7rem;color:#577080;font-weight:720;padding:1px 3px}
.matrix-shift-legend{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;font-size:.73rem;color:#5c7384}
.matrix-legend-am,.matrix-legend-pm{display:inline-block;width:10px;height:10px;border-radius:3px;border:1px solid #c4dfd0}
.matrix-legend-am{background:#e6f7eb}
.matrix-legend-pm{background:#f1eaff;border-color:#decaf8;margin-left:9px}
.matrix-mode-person .matrix-row-collapsed .matrix-cell-button{padding:6px 8px;min-height:42px}
.matrix-mode-person .matrix-row-collapsed .matrix-shift-card{padding:5px 7px 5px 11px;gap:1px}
.matrix-mode-person .matrix-row-collapsed .matrix-shift-time{font-size:.7rem}
.matrix-mode-person .matrix-row-collapsed .matrix-shift-role{font-size:.72rem}
.matrix-mode-person .matrix-person-action{align-self:flex-start}
.matrix-mode-person .matrix-cell-button:hover .matrix-shift-card{filter:saturate(1.08)}
@media(max-width:630px){
  .matrix-mode-person .matrix-table thead th:not(.matrix-corner),
  .matrix-mode-person .matrix-table .matrix-cell{min-width:188px;width:188px;max-width:188px}
  .matrix-shift-card{padding:6px 7px 6px 11px}
  .matrix-shift-time{font-size:.7rem}
  .matrix-shift-role{font-size:.72rem}
  .matrix-shift-legend{margin-left:0}
}

/* MFM v3.16 — church messaging inbox */
.mfm-chat-shell{display:grid;grid-template-columns:minmax(270px,350px) minmax(0,1fr);height:min(720px,calc(100vh - 206px));min-height:480px;border:1px solid var(--border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.mfm-chat-sidebar{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--border);background:#fbfcfd}
.mfm-chat-list-head{display:flex;justify-content:space-between;align-items:center;padding:20px 19px 14px}.mfm-chat-list-head h2{font-size:1.1rem}.mfm-chat-list-head p{margin-top:4px}
.mfm-chat-search{padding:0 15px 13px}.mfm-chat-search input{width:100%}.mfm-chat-list{overflow-y:auto;flex:1;overscroll-behavior:contain}
.mfm-chat-person{display:flex;align-items:center;gap:11px;width:100%;padding:13px 15px;text-align:left;background:none;border:0;border-top:1px solid #eef2f5;color:var(--ink)}.mfm-chat-person:hover,.mfm-chat-person.selected{background:#eaf5f1}.mfm-chat-person.selected{box-shadow:inset 3px 0 var(--accent)}.mfm-chat-person .avatar{flex:0 0 38px;width:38px;height:38px;border-radius:13px}
.mfm-chat-person-content{min-width:0;flex:1;display:grid;gap:3px}.mfm-chat-person-top{display:flex;justify-content:space-between;gap:8px}.mfm-chat-person-top strong,.mfm-chat-person-content>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfm-chat-person-top small{white-space:nowrap;color:var(--muted);font-size:.72rem}.mfm-chat-person-preview{font-size:.81rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfm-chat-unread{background:#167d70;color:white;border-radius:20px;padding:1px 7px;font-size:.73rem;font-weight:800}.mfm-chat-section-heading{padding:15px 15px 7px;color:var(--muted);font-size:.73rem;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.mfm-chat-empty-list{padding:15px;color:var(--muted);font-size:.84rem}
.mfm-chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.mfm-chat-thread-head{display:flex;align-items:center;gap:11px;min-height:73px;padding:14px 20px;border-bottom:1px solid var(--border)}.mfm-chat-thread-head>div:last-child{display:grid;gap:1px}.mfm-chat-thread-head small{color:var(--muted);font-size:.8rem}.mfm-chat-back{display:none;border:0;background:none;padding:7px;color:var(--ink)}.mfm-chat-back svg{transform:rotate(180deg)}.mfm-chat-thread{flex:1;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:23px;scrollbar-gutter:stable;min-height:0;background:linear-gradient(180deg,#f8fbfb,#fff)}.mfm-chat-row{display:flex}.mfm-chat-row.mine{justify-content:flex-end}.mfm-chat-bubble{max-width:min(80%,480px);padding:11px 14px;border-radius:15px 15px 15px 4px;background:#e9f1f5;color:var(--ink);overflow-wrap:anywhere}.mfm-chat-row.mine .mfm-chat-bubble{background:#d9f3e7;border-radius:15px 15px 4px 15px}.mfm-chat-body{white-space:pre-wrap;line-height:1.5}.mfm-chat-bubble small{display:block;text-align:right;color:#617b85;font-size:.71rem;margin-top:5px}.mfm-chat-compose{display:flex;align-items:flex-end;gap:10px;padding:14px 17px;border-top:1px solid var(--border);background:#fff}.mfm-chat-compose textarea{flex:1;border-radius:12px;border:1px solid var(--border);padding:11px 12px;resize:vertical;max-height:160px;min-width:0;outline:none}.mfm-chat-compose textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(15,146,125,.09)}.mfm-chat-compose button{white-space:nowrap;align-self:flex-end}.mfm-chat-placeholder{margin:auto;text-align:center;display:grid;justify-items:center;gap:10px;max-width:320px;padding:30px;color:var(--muted)}.mfm-chat-placeholder svg{width:36px;height:36px;color:var(--accent)}.mfm-chat-placeholder h2{color:var(--ink)}.mfm-chat-placeholder p{line-height:1.65}.mfm-chat-older{text-align:center;padding-bottom:5px}.mfm-chat-privacy-note{color:var(--muted);font-size:.77rem;margin:12px 2px}.mfm-chat-inactive{font-size:.78rem;color:var(--muted);padding:6px 18px 12px}
@media(max-width:950px){.mfm-chat-shell{grid-template-columns:290px minmax(0,1fr)}}
@media(max-width:750px){.mfm-chat-shell{height:calc(100dvh - 180px);min-height:430px;display:block;position:relative}.mfm-chat-sidebar,.mfm-chat-main{position:absolute;inset:0}.mfm-chat-sidebar{z-index:1;background:#fff}.mfm-chat-main{z-index:0}.mfm-chat-shell.mfm-chat-open .mfm-chat-main{z-index:2}.mfm-chat-back{display:block}.mfm-chat-thread{padding:16px}.mfm-chat-bubble{max-width:88%}.mfm-chat-compose{padding:10px}.mfm-chat-privacy-note{font-size:.72rem}}

/* v3.16.1 - Explicit, auditable manual availability override. */
.availability-override-toggle:has(input:checked){background:#fff5ec;border-color:#e5b888}
.availability-override-toggle:has(input:checked) input{accent-color:#ad6b29}
.assign-available-person.assign-person-unavailable{background:#fff9f4}
.assign-available-person.assign-person-unavailable .assign-available-person-text small{color:#a35b22;font-weight:680}
.assign-available-person.assign-person-unavailable.selected{border-color:#d9a568;background:#fff0e0}

/* v3.16.2 — compact scheduling choices (keep existing checked-state colours) */
.choice-toggle.choice-toggle-compact{align-items:center;padding:10px 13px;margin:8px 0;min-height:42px;gap:11px}
.choice-toggle.choice-toggle-compact input{margin-top:0}
.choice-toggle.choice-toggle-compact strong{line-height:1.35}

/* v3.16.3 — calm overview filters and paper-ready volunteer roster */
.overview-mode-tabs{display:inline-flex;gap:5px;padding:4px;margin:0 0 17px;border:1px solid #d9e3e8;border-radius:12px;background:#eef3f5}
.overview-mode-tabs button{border:0;border-radius:9px;background:transparent;color:#587185;font-weight:740;padding:9px 15px;min-height:38px}
.overview-mode-tabs button.active{background:#fff;color:#183e54;box-shadow:0 2px 7px #133f4c18}
.overview-mode-tabs button:focus-visible,.overview-filterbar button:focus-visible,.overview-check:focus-within{outline:2px solid #247ca8;outline-offset:2px}
.overview-filterbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px 20px;background:#f9fbfc;border-block:1px solid #e7eef2}
.overview-filter-choices{display:flex;gap:7px;flex-wrap:wrap}
.overview-check{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;min-height:34px;border:1px solid #d6e3e7;border-radius:9px;background:#fff;color:#284256;font-weight:720;font-size:.8rem;cursor:pointer;white-space:nowrap}
.overview-check:has(input:checked){background:#e7f6f0;border-color:#b9dfd2;color:#12634e}
.overview-check input{width:14px;height:14px;accent-color:#0f927d;margin:0}
.overview-ministry-filter{margin-left:auto;min-width:145px;max-width:220px;flex:1}
.overview-ministry-filter select{width:100%;background:#fff;border:1px solid #d6e3e7;color:#284256;border-radius:9px;padding:6px 9px;min-height:34px;font-size:.8rem;font-weight:650}
.overview-reset{background:none;border:0;color:#667e8b;padding:6px;font-weight:680;font-size:.8rem;text-decoration:underline;text-underline-offset:3px}
.overview-list-more{text-align:center;padding:13px 15px;border-top:1px solid #edf1f4}
.overview-list-more .button{min-width:140px}
.overview-kind-tag{padding:2px 7px;border-radius:5px;background:#edf3f7;color:#476c7f;font-size:.67rem;font-weight:780;text-transform:uppercase;letter-spacing:.035em}
.overview-kind-tag.event{background:#f5ebff;color:#79449c}
.roster-overview{overflow:hidden}
.roster-print-head{display:none}
.roster-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 21px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.roster-tools h2{font-size:1.13rem}
.roster-tools p{margin-top:5px}
.roster-tool-controls{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
.roster-tool-controls label{display:grid;gap:4px;font-weight:720;font-size:.72rem;color:#668096}
.roster-tool-controls .input{padding:7px 9px;min-height:37px;max-width:190px;font-weight:580;font-size:.82rem}
.roster-tool-controls label:nth-child(2) .input{width:72px}
.roster-tool-controls label:nth-child(3) .input{min-width:155px}
.roster-scroll{width:100%;overflow:auto;overscroll-behavior-x:contain;max-height:66vh}
.roster-table{border-spacing:0;border-collapse:separate;width:100%;min-width:700px;font-size:.8rem;table-layout:auto}
.roster-table th,.roster-table td{border-bottom:1px solid #e1e9ed;border-right:1px solid #e1e9ed;padding:8px 9px;vertical-align:top;text-align:left}
.roster-table thead th{position:sticky;top:0;z-index:2;background:#edf4f5;min-width:135px;white-space:nowrap;color:#1c4359}
.roster-table thead th:first-child{left:0;z-index:4;min-width:160px;width:180px}
.roster-table tbody th{position:sticky;left:0;z-index:1;background:#fff;min-width:160px;width:180px;white-space:nowrap;color:#1e3c51}
.roster-table tbody tr:nth-child(even) th,.roster-table tbody tr:nth-child(even) td{background:#fafcfd}
.roster-table thead th small{display:block;font-size:.68rem;color:#77909c;font-weight:560;margin-top:1px}
.roster-shift{display:grid;gap:1px;position:relative;padding:6px 7px 6px 10px;margin-bottom:5px;border:1px solid #bce3c9;border-radius:6px;background:#e8f7ef;color:#205b42;min-width:0;max-width:240px;overflow-wrap:anywhere}
.roster-shift:last-child{margin-bottom:0}
.roster-shift:before{content:"";position:absolute;left:0;top:0;bottom:0;background:#27a772;width:3px}
.roster-shift.roster-pm{background:#f0eafe;border-color:#dfcef9;color:#5d3a80}
.roster-shift.roster-pm:before{background:#9563cb}
.roster-shift strong{font-size:.76rem;line-height:1.3}
.roster-shift span,.roster-shift em{font-size:.69rem;font-style:normal;line-height:1.3}
.roster-shift em{opacity:.7}
.roster-empty-cell{color:#a6b9c1}
.roster-no-assignments{text-align:center!important;padding:25px!important;color:#7c91a0}
.roster-footnote{font-size:.75rem;color:#6c8391;margin:0;padding:11px 20px;border-top:1px solid #edf1f4}
@media(max-width:650px){.overview-filterbar{padding:10px 12px}.overview-ministry-filter{margin-left:0;max-width:none;min-width:125px}.overview-mode-tabs{display:flex;width:100%}.overview-mode-tabs button{flex:1}.roster-tools{padding:15px}.roster-tool-controls{width:100%}.roster-tool-controls label{flex:1;min-width:105px}.roster-tool-controls .input{width:100%;max-width:none}.roster-tool-controls .button{width:100%}.roster-scroll{max-height:65vh}}

@media print{
  @page{size:A4 landscape;margin:10mm}
  html,body{background:white!important;color:#142332!important;font-size:10px!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .app{display:block!important;min-height:0!important}
  .app .sidebar,.app .topbar,.app .page-head,.app .kpi-grid,.app .overview-mode-tabs,
  .app .roster-tools,.app .roster-footnote,.app .notice{display:none!important}
  .app .main{width:100%!important;max-width:none!important}
  .app .content{padding:0!important;margin:0!important;max-width:none!important}
  .roster-overview{border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
  .roster-print-head{display:block!important;margin:0 0 10mm}
  .roster-print-brand{font-size:9px;color:#667b88;margin-bottom:4mm;text-transform:uppercase;letter-spacing:.09em;font-weight:700}
  .roster-print-head h2{font-size:18px;color:#132a3e}
  .roster-print-head p{color:#4d6272;margin-top:3mm;font-size:10px}
  .roster-scroll{max-height:none!important;overflow:visible!important;width:100%!important}
  .roster-table{table-layout:fixed!important;min-width:0!important;width:100%!important;font-size:8px!important;border-top:1px solid #c8d3d9;border-left:1px solid #c8d3d9}
  .roster-table th,.roster-table td{position:static!important;border-color:#cdd7de!important;padding:4px 5px!important;min-width:0!important;width:auto!important;white-space:normal!important;word-break:break-word}
  .roster-table thead{display:table-header-group}
  .roster-table tr{break-inside:avoid;page-break-inside:avoid}
  .roster-table thead th:first-child,.roster-table tbody th{width:17%!important}
  .roster-table thead th small{font-size:7px!important}
  .roster-shift{border-width:1px!important;max-width:none!important;padding:3px 4px 3px 7px!important;margin-bottom:3px!important}
  .roster-shift strong{font-size:7.5px!important}
  .roster-shift span,.roster-shift em{font-size:7px!important}
}

/* v3.16.4 — distinguish Ministry schedule items in Overview */
.overview-kind-tag.ministry{background:#e6f5f1;color:#17745e}

/* v3.16.5 — schedule editor: name/type 75:25, dates 50:50, explicit type selection */
.modal-service-editor .schedule-editor-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:15px}
.modal-service-editor .schedule-editor-grid>.field{min-width:0}
.modal-service-editor .schedule-editor-grid>.schedule-name-field{grid-column:span 3}
.modal-service-editor .schedule-editor-grid>.schedule-type-field{grid-column:span 1}
.modal-service-editor .schedule-editor-grid>.schedule-half-field{grid-column:span 2}
.modal-service-editor .schedule-type-select:required:invalid{color:#94a3b8}
.modal-service-editor .schedule-type-select option{color:#25394d}
.modal-service-editor .schedule-type-select option[value=""]{color:#94a3b8}
@media(max-width:630px){
  .modal-service-editor .schedule-editor-grid{grid-template-columns:minmax(0,1fr)}
  .modal-service-editor .schedule-editor-grid>.field,
  .modal-service-editor .schedule-editor-grid>.schedule-name-field,
  .modal-service-editor .schedule-editor-grid>.schedule-type-field,
  .modal-service-editor .schedule-editor-grid>.schedule-half-field{grid-column:1/-1}
}

/* MFM platform support entry is visually distinct from ordinary church administration. */
.support-warning{background:#fff3da;color:#684313;border-bottom:1px solid #f0cf91;padding:12px 28px;font-size:13px}.support-warning a{color:#765001;font-weight:700;text-decoration:underline}.support-warning strong{font-weight:800}

/* MFM v3.17.4 — remembered church on sign-in; compact mobile schedule drill-down. */
.remembered-church{display:flex;align-items:center;gap:12px;margin:0 0 19px;padding:12px 13px;background:#f2f8f6;border:1px solid #cbe5dc;border-radius:13px;min-width:0}
.remembered-church-picture{display:grid;place-items:center;flex:none;width:49px;height:49px;border-radius:13px;background:#e0efeb;color:#118470;overflow:hidden}
.remembered-church-picture img{width:100%;height:100%;object-fit:contain;background:#fff}
.remembered-church-picture svg{width:25px;height:25px}
.remembered-church-name{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.remembered-church-caption{color:#6f8a8c;letter-spacing:.08em;font-size:.64rem;font-weight:780}
.remembered-church-name strong{font-size:.89rem;line-height:1.35;overflow-wrap:anywhere;color:#1b3e4b}
.remembered-church-change{border:0;background:transparent;color:#087f70;font-size:.78rem;font-weight:750;padding:7px 3px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.remembered-church-change:focus-visible{outline:2px solid #087f70;border-radius:5px;outline-offset:2px}
.auth-form .remembered-church-manual{display:none}
.remember-church-option{display:flex;align-items:center;gap:9px;margin:0 0 17px;color:#536b7c;font-size:.83rem;cursor:pointer}
.remember-church-option input{accent-color:#0f927d;width:16px;height:16px}
/* v3.17.5: full-height mobile date picker, single-screen date detail, always-visible actions. */
.mobile-schedule-back,.mobile-schedule-top-actions{display:none}
@media(max-width:900px){
  /* The date picker uses the rest of the mobile viewport, not a 230px window. */
  .content-scheduler .scheduler-workspace{display:block;min-width:0;width:100%}
  .content-scheduler .scheduler-date-list{
    display:flex;flex-direction:column;position:static;overflow:hidden;
    width:100%;max-height:none;height:max(320px,calc(100dvh - 177px));
  }
  .content-scheduler .scheduler-date-list .service-list-scroll{
    flex:1 1 auto;min-height:0;max-height:none;height:auto;
    overflow-y:auto;overscroll-behavior-y:contain;
  }
  .content-scheduler .scheduler-mobile-detail{display:none;min-width:0;width:100%}
  /* Selecting a date replaces the list. It must not remain above the roster. */
  .content-scheduler .scheduler-workspace.mobile-date-chosen .scheduler-date-list{display:none}
  .content-scheduler .scheduler-workspace.mobile-date-chosen .scheduler-mobile-detail.is-open{display:block}
  .scheduler-mobile-detail .scheduler-toolbar{display:none}
  .mobile-schedule-back{
    display:inline-flex;align-items:center;gap:7px;padding:13px 15px 12px;
    color:#167b6c;background:transparent;border:0;font-weight:750;
    cursor:pointer;min-height:43px
  }
  .mobile-schedule-back svg{width:15px;height:15px;transform:rotate(180deg)}
  .mobile-schedule-top-actions{
    display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
    gap:5px;align-items:center;padding:9px 12px;
    background:#eef2f4;border-block:1px solid #dde5e9;
  }
  .mobile-schedule-top-actions .scheduler-action-group,
  .mobile-schedule-top-actions .scheduler-action-buttons{display:contents}
  .mobile-schedule-top-actions .scheduler-action-label{display:none}
  .mobile-schedule-top-actions .scheduler-btn{
    display:inline-grid;place-items:center;min-width:0;width:100%;min-height:38px;
    padding:7px 3px;border:1px solid #d7e0e5;border-radius:8px;
    background:#fff;color:#325267;cursor:pointer
  }
  .mobile-schedule-top-actions .scheduler-btn svg{width:17px;height:17px}
  .mobile-schedule-top-actions .scheduler-btn.scheduler-btn-danger{color:#b44c60;background:#fff9fa}
  .mobile-schedule-top-actions .scheduler-btn.scheduler-btn-primary{color:#fff;background:#0f927d;border-color:#0f927d}
  .mobile-schedule-top-actions .scheduler-btn.scheduler-btn-unpublish{color:#a46c32}
  .mobile-schedule-top-actions .scheduler-btn .action-text{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)
  }
  .mobile-schedule-top-actions .scheduler-btn:focus-visible{outline:3px solid #259b88;outline-offset:2px}
  .scheduler-mobile-detail .scheduler-heading{padding:15px 17px}
  .scheduler-workspace:not(.mobile-date-chosen) .service-option.selected{background:#fff;box-shadow:none}
}
@media(max-width:400px){
  .mobile-schedule-top-actions{gap:4px;padding:8px}
  .mobile-schedule-top-actions .scheduler-btn{min-height:37px;padding:6px 2px}
}

/* v3.17.6 — compact My Portal assignment controls; three-column people table. */
.timeline-card.volunteer-shift{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 18px}
.volunteer-shift .datebox{grid-column:1;grid-row:1;width:53px;min-width:53px}
.volunteer-shift .shift-details{grid-column:2;grid-row:1;min-width:0}
.volunteer-shift .shift-details h3{font-size:.96rem}
.volunteer-shift .shift-details .small{line-height:1.35;overflow-wrap:anywhere}
.volunteer-shift .shift-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;width:auto;margin:0;padding:0;border:0;min-width:0}
.volunteer-shift .shift-buttons{display:flex;flex-wrap:nowrap;gap:5px;width:auto;align-items:center}
.volunteer-shift .shift-buttons .shift-icon-action{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;min-height:34px;min-width:34px;padding:5px;border-radius:9px;grid-column:auto}
.volunteer-shift .shift-buttons .shift-icon-action svg{width:16px;height:16px}
.volunteer-shift .shift-buttons .shift-decline{background:#fff7f8;color:#ae4757;border-color:#f3d9dd}
.volunteer-shift .shift-buttons .shift-swap{background:#f4f8fa;color:#245b72;border-color:#d9e7eb}
.volunteer-shift .shift-inline-status{margin-top:6px}
.people-table{min-width:0;table-layout:auto}
.people-table td:first-child{min-width:205px}
.people-profile{display:flex;align-items:flex-start;gap:12px;min-width:0}
.people-profile-leading{display:flex;flex:none;align-items:center;gap:5px}
.people-profile-leading .avatar{flex:none}
.people-inline-edit.button{display:inline-grid;place-items:center;width:29px;height:29px;min-height:29px;min-width:29px;padding:4px;border:0;background:transparent;color:#6d8797;border-radius:7px}
.people-inline-edit.button:hover{background:#edf5f5;color:#087f70}
.people-inline-edit.button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.people-inline-edit.button svg{width:15px;height:15px}
.people-profile-info{min-width:0;overflow-wrap:anywhere}
.people-groups-panel{padding:0;overflow:hidden}
.people-groups-summary{list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:17px 21px}
.people-groups-summary::-webkit-details-marker{display:none}
.people-groups-summary-text{display:flex;flex-direction:column;gap:3px}
.people-groups-summary-text>strong{font-size:1.1rem}
.people-groups-chevron{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f1f5f7;color:#506d7a;transition:transform .18s}
.people-groups-chevron svg{width:16px;height:16px;transform:rotate(90deg)}
.people-groups-details[open] .people-groups-chevron svg{transform:rotate(-90deg)}
.people-groups-summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.people-groups-content{padding:0 21px 12px;border-top:1px solid var(--border)}
.people-groups-description{padding-top:13px;padding-bottom:3px;line-height:1.5}

/* Mobile availability matrix: compact stats and quarter / date selectors on one line. */
@media(max-width:700px){
  .avm-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 11px 12px}
  .avm-metric{padding:6px 7px;gap:0;min-width:0;min-height:48px;border-radius:8px}
  .avm-metric strong{font-size:1rem;line-height:1.15}
  .avm-metric span{font-size:.65rem;line-height:1.2;margin-top:3px;overflow-wrap:anywhere}
  .availability-matrix-toolbar{padding:10px 11px 12px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:5px}
  .avm-quarter-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:3px;min-width:0}
  .avm-quarter-nav strong{font-size:.77rem;letter-spacing:-.02em;white-space:nowrap}
  .avm-quarter-nav .button{width:29px;height:30px;min-width:29px;min-height:30px;padding:5px;display:grid;place-items:center;flex:none}
  .avm-quarter-nav .button span{display:none}
  .avm-quarter-nav .button svg{width:14px;height:14px}
  .avm-date-mode{padding:2px;gap:1px;flex:none;border-radius:9px}
  .avm-date-mode button{font-size:.68rem;padding:6px 7px;border-radius:6px;white-space:nowrap}
}
@media(max-width:630px){
  .timeline-card.volunteer-shift{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;padding:12px 10px;align-items:center;overflow:visible}
  .volunteer-shift .datebox{grid-column:1;grid-row:1;width:48px;min-width:48px;padding:6px 4px}
  .volunteer-shift .shift-details{grid-column:2;grid-row:1}
  .volunteer-shift .shift-actions{grid-column:3;grid-row:1;margin:0;padding:0;border:0;align-self:center;align-items:center;flex-direction:row;width:auto}
  .volunteer-shift .shift-buttons{display:flex;grid-template-columns:none;gap:3px;width:auto}
  .volunteer-shift .shift-buttons .shift-icon-action{width:30px;height:33px;min-height:33px;min-width:30px;padding:4px;grid-column:auto;white-space:nowrap}
  .volunteer-shift .shift-details h3{font-size:.94rem}
  .volunteer-shift .shift-details .small{font-size:.73rem;margin-top:3px}
  .volunteer-shift .shift-inline-status{margin-top:5px}
  .people-table-wrap{overflow-x:auto}
  .people-table{min-width:490px}
  .people-table th,.people-table td{padding:10px 9px}
  .people-table td:first-child{min-width:175px}
  .people-profile{gap:7px}
  .people-profile-leading{gap:2px}
  .people-profile-leading .avatar{width:30px;height:30px}
  .people-inline-edit.button{width:26px;height:28px;min-height:28px;min-width:26px}
  .people-groups-summary{padding:15px}
  .people-groups-content{padding:0 15px 12px}
}
@media(max-width:350px){
  .avm-quarter-nav strong{font-size:.70rem}
  .avm-quarter-nav .button{width:26px;min-width:26px}
  .avm-date-mode button{padding:5px;font-size:.64rem}
  .volunteer-shift .shift-buttons .shift-icon-action{width:28px;min-width:28px}
}

/* Keep all three People & Skills columns in view on smaller phones. */
.people-skills-short{display:none}
@media(max-width:630px){
  .people-table-wrap{overflow-x:visible}
  .people-table{min-width:0;width:100%;table-layout:fixed}
  .people-table th:nth-child(1){width:45%}
  .people-table th:nth-child(2){width:22%}
  .people-table th:nth-child(3){width:33%}
  .people-table th,.people-table td{padding:9px 5px;min-width:0}
  .people-table td:first-child{min-width:0}
  .people-skills-full{display:none}
  .people-skills-short{display:inline}
  .people-table .people-profile{gap:4px}
  .people-table .people-profile-info{min-width:0;font-size:.78rem;line-height:1.3}
  .people-table .people-profile-info>.tiny{display:none}
  .people-table .people-profile-leading{gap:1px}
  .people-table .people-profile-leading .avatar{width:29px;height:29px;font-size:.69rem}
  .people-table .people-inline-edit.button{width:22px;height:26px;min-width:22px;min-height:26px}
  .people-table .people-inline-edit.button svg{width:13px;height:13px}
  .people-table .status,.people-table .tag{font-size:.66rem;padding:3px 4px;white-space:normal;line-height:1.2;overflow-wrap:anywhere}
  .people-table .tag-list{gap:3px}
}

/* v3.17.7 — edit badge integrated with the avatar. */
.people-profile-leading{position:relative}
.people-avatar-edit{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;background:transparent;padding:0;margin:0;border-radius:12px;cursor:pointer;color:inherit}
.people-avatar-edit .avatar{width:34px;height:34px}
.people-avatar-pencil{position:absolute;bottom:-3px;right:-5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:2px solid white;background:#f3f8f7;color:#0b806c;box-shadow:0 0 0 1px #c2d9d1}
.people-avatar-pencil svg{width:10px;height:10px;stroke-width:2.1}
.people-avatar-edit:hover .people-avatar-pencil{background:#d9f4e9;color:#075744}
.people-avatar-edit:focus-visible{outline:2px solid #0c9a7d;outline-offset:4px}
@media(max-width:630px){.people-table .people-avatar-edit .avatar{width:29px;height:29px}.people-avatar-pencil{width:16px;height:16px;right:-4px;bottom:-3px}.people-profile-leading{margin-right:5px}}
/* v3.17.7 — sidebar backup status and Settings restore point list. */
/* v3.17.8: compact, unboxed backup status, orange only when absent / >5 days old. */
.sidebar-backup{display:flex;align-items:center;gap:6px;padding:3px 1px;margin:0 0 10px;background:transparent;border:0;border-radius:0;color:#d9efe6}
.sidebar-backup-symbol{display:flex;align-items:center;justify-content:center;width:20px;height:23px;flex:none;color:#95dcca}
.sidebar-backup.is-stale .sidebar-backup-symbol{color:#f5a84d}
.sidebar-backup svg{width:15px;height:15px}
.sidebar-backup-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.sidebar-backup-copy strong{font-size:.7rem;font-weight:650}
.sidebar-backup-copy small{font-size:.63rem;color:#aec7d3;white-space:nowrap}
.sidebar-backup-save{display:grid;place-items:center;min-height:26px;min-width:26px;padding:3px;border:0;border-radius:6px;background:transparent;color:#b8e5da;cursor:pointer}
.sidebar-backup-save:hover{background:rgba(255,255,255,.10);color:white}
.sidebar-backup-save:focus-visible{outline:2px solid white;outline-offset:2px}
.backup-settings-status{display:flex;align-items:center;gap:9px;background:#f0f8f5;color:#276958;border:1px solid #d5e9e0;padding:10px;border-radius:9px;font-size:.83rem}
.backup-settings-status svg{width:18px;height:18px;flex:none}
.server-backup-list{max-height:min(55vh,420px);overflow:auto;border:1px solid #e1e9ed;border-radius:11px}
.server-backup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #e1e9ed}
.server-backup-row:last-child{border-bottom:0}
.server-backup-info{min-width:0;display:flex;flex-direction:column;gap:5px}
.server-backup-info strong{font-size:.84rem}
.server-backup-info small{font-size:.73rem;color:#718696}
.server-backup-row-actions{display:flex;flex-wrap:wrap;gap:5px}
.server-backup-row-actions .button svg{width:15px;height:15px}
@media(max-width:520px){.server-backup-row{align-items:flex-start;flex-direction:column}.server-backup-row-actions{align-self:flex-end}.sidebar-backup{margin-bottom:9px}}

/* v3.17.9: member-only in-app roster alerts */
.mfm-alert-bell{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border:1px solid #d8e5eb;border-radius:10px;background:#fff;color:#183e57;cursor:pointer;}
.mfm-alert-bell:hover{background:#f2f7f8;border-color:#9acfc4;}
.mfm-alert-bell svg{width:17px;height:17px;}
.mfm-alert-count{position:absolute;min-width:17px;height:17px;top:-6px;right:-6px;display:flex;align-items:center;justify-content:center;padding:0 3px;border-radius:12px;background:#d55742;color:white;font-size:10px;font-weight:800;line-height:1;}
.mfm-alert-count.hidden{display:none;}
.assignment-alert-list{display:flex;flex-direction:column;gap:7px;max-height:55vh;overflow-y:auto;}
.assignment-alert-item{display:flex;gap:10px;align-items:flex-start;border:1px solid #e4ecef;border-radius:11px;padding:11px;}
.assignment-alert-item.unread{background:#effaf7;border-color:#c5e9df;}
.assignment-alert-icon{flex:none;width:27px;height:27px;border-radius:8px;background:#e7f3f1;color:#108878;display:flex;align-items:center;justify-content:center;}
.assignment-alert-icon svg{width:15px;height:15px;}
.assignment-alert-text{flex:1;min-width:0;}
.assignment-alert-text strong{font-size:13px;color:#1b3247;}
.assignment-alert-text p{margin:3px 0;color:#415970;font-size:12px;line-height:1.45;}
.assignment-alert-text small{font-size:10px;color:#698398;}
.assignment-alert-item button{flex:none;padding:5px;min-width:31px;}
.assignment-alert-item button svg{width:14px;height:14px;}


/* v3.18.0 — anchored notification dropdown, not a centred modal. */
.mfm-alert-anchor{position:relative;flex:none;display:flex;align-items:center;z-index:60}
.mfm-alert-bell[aria-expanded="true"]{color:#087969;border-color:#9acfc4;background:#eff8f5}
.mfm-alert-panel{position:absolute;top:calc(100% + 12px);right:-6px;width:min(365px,calc(100vw - 24px));background:#fff;border:1px solid #dce7eb;border-radius:14px;box-shadow:0 16px 42px rgba(18,37,57,.2);z-index:110;overflow:hidden;text-align:left}
.mfm-alert-panel[hidden]{display:none}
.mfm-alert-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid #e6edf1}
.mfm-alert-panel-head div{display:flex;flex-direction:column;gap:2px}
.mfm-alert-panel-head strong{font-size:14px;color:#172f45}
.mfm-alert-panel-head small{font-size:11px;color:#798b9e}
.mfm-alert-panel-close{display:grid;place-items:center;width:29px;height:29px;border:0;border-radius:8px;background:#f2f6f7;color:#5b7186;cursor:pointer}
.mfm-alert-panel-close svg{width:15px;height:15px}
.mfm-alert-panel-scroll{max-height:min(440px,65dvh);overflow-y:auto;overscroll-behavior:contain}
.mfm-alert-row{display:flex;align-items:flex-start;gap:10px;text-align:left;background:#fff;padding:13px 12px;width:100%;border:0;border-bottom:1px solid #edf1f3;cursor:pointer;color:#234055;font:inherit}
.mfm-alert-row:last-child{border-bottom:0}
.mfm-alert-row.unread{background:#f1fbf7}
.mfm-alert-row:hover,.mfm-alert-row:focus-visible{background:#edf8f5;outline:0}
.mfm-alert-row-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;background:#e7f4f1;border-radius:9px;color:#0b917a}
.mfm-alert-row-icon svg{width:16px;height:16px}
.mfm-alert-row-body{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.mfm-alert-row-body strong{font-size:12.5px;color:#1c344b}
.mfm-alert-row-body span{font-size:11.5px;color:#536a80;line-height:1.48;white-space:normal;overflow-wrap:anywhere}
.mfm-alert-row-body small{font-size:10px;color:#8094a6}
.mfm-alert-row>svg{flex:none;width:13px;height:13px;margin-top:8px;color:#94a7b6}
.mfm-alert-empty{padding:24px 16px;font-size:12px;text-align:center;color:#6d8193}
.volunteer-shift.mfm-focus-assignment{background:#f0faf6;border-left:3px solid #0f927d;box-shadow:inset 0 0 0 1px #cce9dc;scroll-margin-top:24px}
@media(max-width:630px){
 .mfm-alert-panel{width:min(350px,calc(100vw - 24px));right:-7px;max-height:80dvh}
 .mfm-alert-panel-scroll{max-height:65dvh}
 .mfm-alert-panel-head{padding:12px}
}

/* MFM v3.18.1 — compact modern messaging composer and optimistic queue */
.mfm-chat-compose{align-items:flex-end;gap:9px;padding:11px 15px}
.mfm-chat-compose textarea{height:44px;min-height:44px;max-height:144px;resize:none;overflow-y:auto;line-height:1.45;border-radius:18px;padding:11px 14px;font:inherit}
.mfm-chat-send{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#0d9488;color:#fff;border:0;border-radius:15px;cursor:pointer;transition:background .15s,transform .15s}
.mfm-chat-send:hover:not(:disabled){background:#0b786e}.mfm-chat-send:active:not(:disabled){transform:scale(.95)}
.mfm-chat-send:disabled{background:#e5ecee;color:#9aafb5;cursor:not-allowed}
.mfm-chat-send svg{width:20px;height:20px}
.mfm-chat-local{opacity:.83}.mfm-chat-local small{color:#687d80}
.mfm-chat-local.is-failed{background:#fff0f0!important;border:1px solid #e9a3a3}
.mfm-chat-local small button{padding:0;border:0;background:none;text-decoration:underline;color:#b12837;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:750px){.mfm-chat-compose{padding:10px}.mfm-chat-send{flex-basis:42px;width:42px;height:42px}}


/* v3.18.3 — collapsible, matrix-style Ministries directory. */
.ministry-matrix{overflow:hidden;--ministry-left:minmax(245px,32%)}
.ministry-matrix-head,.ministry-matrix-row-head{display:grid;grid-template-columns:var(--ministry-left) minmax(0,1fr) 48px;align-items:center}
.ministry-matrix-head{min-height:44px;padding:0 18px;background:#f6f9fa;color:#698093;text-transform:uppercase;letter-spacing:.08em;font-size:.69rem;font-weight:780;border-bottom:1px solid #e3eaee}
.ministry-matrix-row+.ministry-matrix-row{border-top:1px solid #e6edf1}
.ministry-matrix-row.is-open{background:#fbfdfc}
.ministry-matrix-row-head{min-height:89px;padding:10px 18px;gap:0}
.ministry-matrix-identity{display:flex;align-items:center;gap:14px;min-width:0;padding-right:14px}
.ministry-avatar-edit,.ministry-avatar-static{position:relative;width:43px;height:43px;min-width:43px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:#e5f5ee;color:#087e68}
.ministry-avatar-edit{cursor:pointer}
.ministry-avatar-edit>svg,.ministry-avatar-static>svg{width:21px;height:21px}
.ministry-avatar-pencil{position:absolute;bottom:-4px;right:-5px;width:19px;height:19px;display:grid;place-items:center;background:#fff;border:1px solid #c3dad4;border-radius:50%;box-shadow:0 1px 3px #113a3214;color:#0a826c}
.ministry-avatar-pencil svg{width:11px;height:11px;stroke-width:2.1}
.ministry-avatar-edit:hover .ministry-avatar-pencil{background:#d6f4e8;border-color:#75baa6}
.ministry-avatar-edit:hover,.ministry-avatar-edit:focus-visible{outline:2px solid #92d6c5;outline-offset:3px}
.ministry-identity-toggle{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;border:0;background:none;color:inherit;padding:5px 0;cursor:pointer;text-align:left}
.ministry-identity-toggle strong{font-size:.95rem;color:#173049;line-height:1.3;overflow-wrap:anywhere}
.ministry-identity-toggle span{font-size:.72rem;color:#70869a;line-height:1.4}
.ministry-preview-toggle{border:0;background:none;padding:8px 5px;text-align:left;cursor:pointer;min-width:0;width:100%}
.ministry-role-preview{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.ministry-role-preview .ministry-role-chip{padding:7px 11px;font-size:.77rem;background:#eff4f6;border:1px solid #e1e8ee;border-radius:8px;font-weight:550}
.ministry-more-chip{font-size:.73rem;color:#167e6d;background:#e6f5ef;padding:6px 9px;border-radius:8px}
.ministry-no-role{font-size:.78rem;color:#8a9aa8}
.ministry-expand-toggle{display:grid;place-items:center;width:35px;height:35px;margin-left:auto;cursor:pointer;border:1px solid #e0e8ec;background:#fff;border-radius:10px;color:#678196;transition:background .15s,border-color .15s}
.ministry-expand-toggle svg{width:15px;height:15px;transform:rotate(90deg);transition:transform .2s}
.ministry-matrix-row.is-open .ministry-expand-toggle{background:#e8f6ef;color:#087b68;border-color:#b8e4d4}
.ministry-matrix-row.is-open .ministry-expand-toggle svg{transform:rotate(-90deg)}
.ministry-expand-toggle:hover{background:#ecf8f3;color:#087a66}
.ministry-matrix button:focus-visible{outline:2px solid #128c77;outline-offset:2px}
.ministry-matrix-details{border-top:1px solid #e1ebe8;padding:17px 22px 18px 77px;background:#fbfdfc}
.ministry-matrix-details[hidden]{display:none!important}
.ministry-matrix-details-heading{display:flex;justify-content:space-between;color:#768b9a;font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.065em;margin-bottom:7px}
.ministry-matrix-role-list{border:1px solid #e3ecef;border-radius:11px;background:#fff;overflow:hidden}
.ministry-matrix-role{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,auto) 83px;align-items:center;gap:12px;padding:9px 13px;min-height:49px}
.ministry-matrix-role+.ministry-matrix-role{border-top:1px solid #edf1f3}
.ministry-role-label{display:flex;gap:9px;align-items:center;min-width:0;font-size:.82rem;color:#2d4359}
.ministry-role-label strong{overflow-wrap:anywhere;font-weight:630}
.ministry-role-dot{width:7px;height:7px;border-radius:50%;background:#88c9b9;flex:none}
.ministry-role-count{font-size:.72rem;color:#8192a1;text-align:right;white-space:nowrap}
.ministry-matrix-role-actions{display:flex;gap:5px;justify-content:flex-end}
.ministry-inline-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f8fbfb;color:#466e7a;border:1px solid #dee8ec;cursor:pointer}
.ministry-inline-icon svg{width:14px;height:14px}
.ministry-inline-icon:hover{background:#e4f5ef;color:#087b69;border-color:#b7e0d4}
.ministry-inline-icon.is-danger{color:#ac5768}
.ministry-inline-icon.is-danger:hover{background:#fff0f1;color:#ae3e55;border-color:#efc6cf}
.ministry-matrix-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:14px}
.ministry-archive-action{display:inline-flex;align-items:center;gap:6px;border:0;background:none;cursor:pointer;font-size:.76rem;color:#a65a65;padding:8px}
.ministry-archive-action svg{width:14px;height:14px}
.ministry-archive-action:hover{text-decoration:underline;color:#bd344d}
.ministry-archived-roles{margin-top:12px;padding:8px 0;color:#59778b}
.ministry-removed-details summary{display:flex;align-items:center;gap:9px;cursor:pointer;font-weight:730;color:#456075;list-style:none}
.ministry-removed-details summary::-webkit-details-marker{display:none}
.ministry-removed-count{border-radius:40px;background:#eef3f5;padding:3px 9px;font-size:.76rem}
.ministry-removed-details>p{margin:12px 0}
@media(max-width:780px){
  .ministry-matrix{--ministry-left:minmax(175px,36%)}
  .ministry-matrix-head,.ministry-matrix-row-head{grid-template-columns:var(--ministry-left) minmax(0,1fr) 37px}
  .ministry-matrix-row-head{padding:10px 12px}
  .ministry-matrix-identity{gap:9px}
  .ministry-matrix-details{padding:15px 15px 16px}
  .ministry-role-preview{gap:4px}
  .ministry-role-preview .ministry-role-chip{padding:5px 7px;font-size:.72rem}
}
@media(max-width:560px){
  .ministry-matrix-head{display:none}
  .ministry-matrix-row-head{display:grid;grid-template-columns:minmax(0,1fr) 38px;grid-template-rows:auto auto;gap:4px 0;padding:13px 13px 12px}
  .ministry-matrix-identity{grid-column:1;grid-row:1}
  .ministry-avatar-edit,.ministry-avatar-static{width:39px;height:39px;min-width:39px}
  .ministry-identity-toggle strong{font-size:.9rem}
  .ministry-identity-toggle span{font-size:.69rem}
  .ministry-preview-toggle{grid-column:1 / -1;grid-row:2;padding:10px 0 1px 48px}
  .ministry-expand-toggle{grid-column:2;grid-row:1}
  .ministry-matrix-details-heading{font-size:.64rem}
  .ministry-matrix-role{grid-template-columns:minmax(0,1fr) 62px 72px;gap:5px;padding:8px 9px}
  .ministry-role-count{font-size:.65rem;white-space:normal}
  .ministry-inline-icon{width:30px;height:30px}
  .ministry-matrix-footer{align-items:center;gap:4px}
  .ministry-archive-action{font-size:.71rem}
}
