:root{--ui-blue:#2563eb;--ui-blue-dark:#1d4ed8;--ui-ink:#18243b;--ui-muted:#65748a;--ui-line:#e4eaf2;--ui-radius:16px;--bg:#f5f7fb;--text:var(--ui-ink);--muted:var(--ui-muted);--line:var(--ui-line);--shadow:0 2px 4px #18243b03,0 8px 24px #18243b04;--gold:#2563eb;--gold2:#93b4ff}
body{font-size:14px;line-height:1.55}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}svg{width:20px;height:20px;flex:0 0 auto}button svg,.btn svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #85a9fa;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}.skip-link{position:fixed;left:16px;top:-70px;background:#fff;color:#172b4e;padding:12px;z-index:2000;border-radius:8px}.skip-link:focus{top:12px}
.sidebar{width:252px;background:#101d33;border:0;color:#dbe5f4}.sidebar .brand{height:88px;padding:22px;gap:12px;border-bottom:0}.sidebar .brand strong{font-size:17px;font-weight:750;letter-spacing:-.4px}.sidebar .brand small{font-size:11px;color:#90a0b8}.brand-logo{background:#1e3353;border:1px solid #314668;color:#e1b96c;border-radius:13px;width:43px;height:43px}.current-church{display:flex;align-items:flex-start;gap:9px;margin:0 18px 16px;padding:12px;background:#192941;border:1px solid #263a57;border-radius:10px;font-size:12px;color:#d9e2ef;line-height:1.5}.current-church svg{width:16px;height:16px;margin-top:2px;color:#9aacc7}.church-switch{padding:2px 18px 16px;border:0}.church-switch label{font-size:10px}.nav-search{display:flex;align-items:center;gap:9px;margin:0 18px 18px;padding:10px 11px;min-height:41px;background:transparent;border:1px solid #31415a;border-radius:9px;color:#9fb0c7;font-size:11px;text-align:left;cursor:pointer}.nav-search svg{width:16px;height:16px}.nav-search kbd{margin-left:auto;border:1px solid #40516b;border-radius:4px;padding:0 4px;font-size:10px}.nav-list{padding:0 12px 18px;scrollbar-width:thin;scrollbar-color:#385071 transparent}.nav-group{margin-bottom:8px}.nav-group summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:10px 11px;font-size:11px;font-weight:650;color:#97a9c3;user-select:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary>svg{width:17px;height:17px}.nav-chevron{margin-left:auto;font-size:15px;transition:transform .15s}.nav-group:not([open]) .nav-chevron{transform:rotate(-90deg)}.nav-group-links{margin:1px 0 3px 17px;padding-left:11px;border-left:1px solid #293a55}.nav-item{padding:8px 12px;margin:2px 0;border-radius:7px;font-size:12px;font-weight:500;color:#bdcada;line-height:1.6}.nav-item.active{background:#244879;color:#f1f7ff;box-shadow:none;font-weight:650}.nav-item.active:after{content:'';width:5px;height:5px;background:#99bcff;border-radius:50%;margin-left:auto}.nav-item:hover{background:#1c304c}.sidebar-user{padding:17px 18px;border-color:#25344d;gap:9px}.sidebar-user .avatar{background:#2b4262;color:#cfe0fa;width:34px;height:34px;font-size:12px}.sidebar-user-text strong{font-size:11px}.sidebar-user-text small{font-size:10px;color:#8da1bd}.sidebar-close{position:absolute;right:8px;top:8px}.page-wrap{margin-left:252px;max-width:calc(100% - 252px)}.app-topbar{min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 32px;background:#fff;border-bottom:1px solid var(--ui-line);position:sticky;top:0;z-index:30}.breadcrumb{display:flex;flex-direction:column;gap:2px;min-width:0}.breadcrumb>span{font-size:11px;color:#7b899e}.breadcrumb strong{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.topbar-actions .btn{padding:10px 15px;white-space:nowrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e1e7f0;border-radius:10px;width:38px;height:38px;background:#fff;color:#607089;cursor:pointer;padding:8px;flex:0 0 auto}.sidebar .icon-button{background:transparent;border:0;color:#b4c2d7}.app-topbar .menu-button{display:none}.content{max-width:1560px;margin:0 auto;padding:30px 32px 42px;min-height:calc(100vh - 144px)}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;color:#8a96a8;font-size:11px;border-top:1px solid #e9edf3}.app-footer span:first-child{font-weight:650;color:#6f7d92}
.btn{font-size:12px;font-weight:650;line-height:1.45;min-height:39px;border-radius:9px;padding:10px 15px;transition:background .15s,box-shadow .15s}.btn-primary,.btn.primary{background:var(--ui-blue);color:#fff;box-shadow:0 2px 3px #2563eb12;border:1px solid transparent}.btn-primary:hover,.btn.primary:hover{background:var(--ui-blue-dark)}.btn-light{border:1px solid #dfe6ef;color:#3e506c;background:#fff}.btn-light:hover{background:#f5f8fd;border-color:#c4d2e6}.btn-danger{color:#ba3344;background:#fff5f5;border:1px solid #f6d7dc}.is-submitting{opacity:.6;pointer-events:none}.is-submitting:after{content:'';width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ui-spin .6s linear infinite}.module-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.module-title h1,.content>.page-head h1{font-size:26px!important;letter-spacing:-.8px;font-weight:730;margin:0 0 5px}.module-title p{font-size:12px;color:#728096;margin:0;max-width:600px}.module-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.module-toolbar-actions .btn svg{width:16px;height:16px}.content h2{font-size:17px!important;font-weight:680;letter-spacing:-.3px;line-height:1.5;margin:0 0 8px}.content h3{font-size:15px;font-weight:650}.page-head p,.content p.muted{font-size:12px;line-height:1.7}.card{border-radius:var(--ui-radius);box-shadow:var(--shadow);border-color:var(--ui-line);overflow-wrap:anywhere}.card-pad{padding:22px}.registry-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important}.registry-layout>.card+.card{margin-top:18px}.registry-layout:empty{display:none!important}.grid-2.registry-layout{gap:0}.registry-page .card:not(.stat){margin-bottom:20px}.card .page-head{margin-bottom:20px;gap:14px}.table-wrap{border-radius:10px;scrollbar-width:thin;scrollbar-color:#c6d1e0 transparent;max-width:100%}.table,table{width:100%;border-collapse:collapse}.table th,.table td,table th,table td{font-size:12px;padding:14px 15px;line-height:1.65;text-align:left;border-bottom:1px solid #edf0f5}.table th,table th{font-size:10px;color:#738199;letter-spacing:.045em;font-weight:650;background:#f8fafc;text-transform:uppercase;white-space:nowrap}.table td:first-child,table td:first-child{font-size:13px}.table tbody tr:hover,table tbody tr:hover{background:#fbfcff}.table td strong{font-weight:650}.table td .actions{gap:6px}.table .btn{font-size:11px;min-height:33px;padding:7px 10px!important}.badge,.status-pill{font-size:10px;padding:5px 9px;font-weight:650}.badge.ok{background:#e8f6ef;color:#18764b}.stat{position:relative;padding:21px 22px;box-shadow:none}.stat-label{font-size:11px;color:#718097;font-weight:550}.stat-value{font-size:29px;color:#243753;font-weight:730;margin-top:6px;letter-spacing:-1px}.stat-foot{font-size:10px;color:#8793a5}.stats{gap:16px;margin-bottom:24px}.empty,.empty-state{padding:46px 24px;color:#7d8a9e;font-size:13px}.empty-state h2{color:#273b57}.toolbar{padding:12px;background:#f8fafc;border:1px solid #edf0f5;border-radius:11px;gap:9px}.toolbar input:not([type=checkbox]):not([type=radio]),.toolbar select{min-height:39px!important;font-size:12px!important}.toolbar .input.search{min-width:180px}.toolbar select{max-width:260px}.alert{font-size:12px;line-height:1.6;padding:13px 16px;border-radius:10px;font-weight:500}.module-hero{background:transparent;color:var(--ui-ink);border:0;box-shadow:none;padding:0 0 24px;margin-bottom:0}.module-hero h1{color:var(--ui-ink);font-size:26px}.module-hero p{color:#728096}.hero-stat{background:#fff;border:1px solid var(--ui-line);color:#3a5275}.hero-stat strong{color:var(--ui-blue)}.care-shortcut{border:1px solid #e3eaf5;border-radius:12px;background:#f9fbff;padding:17px 19px;transition:border-color .15s}.care-shortcut:hover{border-color:#9bb8ee}.care-shortcut strong{font-size:26px;color:#28589f}.care-shortcut span{font-size:12px;color:#667b98}.settings-section{padding:24px}.settings-icon{background:#eef4ff;color:#3565ad}.congregation-board{gap:18px}.congregation-summary{gap:16px}.editor-grid{grid-template-columns:1fr!important}.editor-side-note{margin-top:18px;background:#f5f8fd;border-radius:12px;padding:18px}.congregation-card{box-shadow:var(--shadow)}.group-editor{position:static!important}.module-tabs{display:flex;gap:5px;overflow-x:auto;padding:5px;background:#eaf0f7;border:1px solid #e2e9f2;border-radius:12px;margin:24px 0 18px;scrollbar-width:thin}.module-tab{border:0;background:transparent;white-space:nowrap;padding:11px 15px;font-size:12px;font-weight:600;color:#728198;border-radius:8px;cursor:pointer}.module-tab[aria-selected=true]{background:#fff;color:#245cc4;box-shadow:0 2px 5px #162c5210}.module-tab:hover{color:#245cc4}
.dashboard-intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:3px 0 25px}.dashboard-intro h1{font-size:29px;margin:0 0 6px;letter-spacing:-.9px;line-height:1.3}.dashboard-intro p{margin:0;color:#76859a;font-size:13px}.dashboard-date{font-size:11px;color:#8795a8;white-space:nowrap}.dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}.dashboard-action{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e1e8f2;border-radius:13px;padding:18px;color:#2b4162;transition:box-shadow .15s,border-color .15s}.dashboard-action:hover{border-color:#aac0e7;box-shadow:0 5px 14px #1e458a08}.dashboard-action>svg{width:21px;height:21px;color:#5480bd}.dashboard-action span{min-width:0}.dashboard-action strong,.dashboard-action small{display:block}.dashboard-action strong{font-size:13px;font-weight:650}.dashboard-action small{font-size:11px;color:#8693a6;margin-top:2px}.dashboard-action:after{content:'↗';margin-left:auto;color:#9baec7}
.dialog-open{overflow:hidden}.app-dialog{padding:0;border:0;border-radius:20px;width:min(780px,calc(100% - 40px));max-width:calc(100% - 40px);max-height:calc(100dvh - 64px);color:var(--ui-ink);background:#fff;box-shadow:0 30px 90px #07182f4d;overflow:hidden}.app-dialog::backdrop{background:#09172a99;backdrop-filter:blur(3px)}.dialog-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 64px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px 28px 22px;border-bottom:1px solid #e8edf4;flex:0 0 auto;background:#fff}.dialog-heading .eyebrow{display:block;margin:0 0 6px;color:#7b8fae;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.dialog-heading h2{margin:0;font-size:21px;font-weight:720;letter-spacing:-.5px;line-height:1.4}.dialog-heading p{margin:6px 0 0;font-size:12px;color:#7e8da2;line-height:1.6}.dialog-heading>.icon-button{width:34px;height:34px;background:#f7f9fc;border-color:#edf1f6}.dialog-body{overflow:auto;overscroll-behavior:contain;padding:25px 28px 28px;min-height:0;scrollbar-width:thin;scrollbar-color:#cbd5e3 transparent}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 28px;border-top:1px solid #e8edf4;background:#fafbfd;flex:0 0 auto}.dialog-footer>span{font-size:10px;color:#8a97a9}.dialog-form-content.card{margin:0!important;border:0;border-radius:0;padding:0!important;box-shadow:none;background:transparent}.dialog-form-content form{margin-top:0}.app-dialog .field label,.app-dialog .form-grid>label{font-size:12px;font-weight:600;color:#445875;line-height:1.6}.app-dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-dialog select,.app-dialog textarea{font-size:13px;line-height:1.5;min-height:43px;border:1px solid #dce4f0;border-radius:9px;padding:10px 12px;width:100%;color:#253b5d;background:#fff;outline:none}.app-dialog textarea{min-height:105px;resize:vertical}.app-dialog input:focus,.app-dialog select:focus,.app-dialog textarea:focus{border-color:#6d9bf0;box-shadow:0 0 0 3px #2563eb12}.app-dialog .form-grid{gap:17px 20px}.app-dialog .form-grid>h2{margin:0}.app-dialog .btn-primary{margin-top:19px;min-height:43px}.app-dialog .form-grid>.btn-primary,.app-dialog .integration-actions .btn-primary{margin-top:0}.app-dialog .target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-dialog .poll-form{display:block}.app-dialog .poll-form-grid{grid-template-columns:1fr}.app-dialog .poll-preview{display:none}.app-dialog .editor-shell{display:block!important}.app-dialog .editor-side-note p{font-size:12px}.quick-dialog{width:min(820px,calc(100% - 40px))}.quick-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-create-option{display:flex;gap:12px;align-items:center;border:1px solid #e3eaf4;border-radius:12px;padding:16px;background:#fff;transition:border-color .15s,background .15s}.quick-create-option:hover{border-color:#92b5f7;background:#f8fbff}.quick-icon{width:38px;height:38px;background:#edf4ff;color:#4c7bc6;border-radius:10px;display:grid;place-items:center;flex:0 0 auto}.quick-create-option>span:nth-child(2){flex:1;min-width:0}.quick-create-option strong,.quick-create-option small{display:block}.quick-create-option strong{font-size:12px;font-weight:650}.quick-create-option small{font-size:10px;color:#8795a8;margin-top:3px}.quick-create-option>svg{width:15px;height:15px;color:#9aabc2}.search-dialog{width:min(590px,calc(100% - 40px))}.search-field{display:flex;align-items:center;gap:10px;padding:2px 13px;background:#f6f9fd;border:1px solid #dde6f3;border-radius:10px;color:#8a9ab2}.app-dialog .search-field input{border:0;background:transparent;padding-left:0;box-shadow:none}.menu-results{display:grid;gap:3px;margin-top:14px}.menu-results a{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;font-size:13px;border-radius:8px;color:#486080}.menu-results a:hover{background:#eef4ff;color:#245dc2}.menu-results svg{width:15px;height:15px}.menu-results{max-height:44dvh;overflow:auto}.dialog-body .form-card{position:static!important}.app-dialog .purpose-selector,.app-dialog .target-grid{margin-top:16px}.app-dialog .form-grid>.full{grid-column:1/-1}.app-dialog .purpose-option,.app-dialog .target-option{font-size:12px}.app-dialog .settings-section-head~p{font-size:12px}
@keyframes ui-spin{to{transform:rotate(360deg)}}
@media(min-width:861px){.sidebar-close{display:none!important}.sidebar-overlay{display:none!important}.sidebar{transform:none!important}}
@media(max-width:1100px){.content{padding:26px 24px}.app-topbar{padding:17px 24px}.dashboard-action{padding:16px}.dashboard-actions{gap:10px}.dashboard-date{display:none}.module-toolbar{align-items:flex-start}.module-title p{max-width:430px}.module-toolbar-actions .btn{padding:9px 12px}}
@media(max-width:860px){.sidebar{width:270px}.sidebar-close{display:inline-flex!important}.page-wrap{margin-left:0;max-width:100%}.app-topbar{padding:12px 17px;min-height:72px;gap:12px}.app-topbar .menu-button{display:inline-flex}.breadcrumb>span{font-size:10px}.breadcrumb strong{font-size:13px}.topbar-actions{gap:8px}.topbar-actions .btn{font-size:11px;padding:10px 12px}.topbar-search{display:none}.content{padding:23px 17px 32px}.app-footer{padding:17px}.sidebar-overlay.show{z-index:40}.sidebar{z-index:50}.dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-actions>.dashboard-action:last-child:nth-child(odd){grid-column:1/-1}.module-toolbar{flex-wrap:wrap;margin-bottom:21px}.module-toolbar-actions{justify-content:flex-start}.registry-layout>.card{width:100%}.dialog-heading{padding:22px}.dialog-body{padding:22px}.dialog-footer{padding:14px 22px}.module-title h1{font-size:24px!important}.dashboard-intro h1{font-size:26px}.card-pad{padding:18px}.table th,.table td,table th,table td{padding:12px}}
@media(max-width:540px){.app-dialog,.quick-dialog,.search-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:15px}.dialog-shell{max-height:calc(100dvh - 24px)}.dialog-heading{padding:19px 18px 17px;gap:12px}.dialog-heading h2{font-size:19px}.dialog-heading p{font-size:11px}.dialog-body{padding:20px 18px}.dialog-footer{padding:12px 18px}.dialog-footer>span{max-width:180px}.quick-create-grid{grid-template-columns:1fr;gap:9px}.quick-create-option{padding:13px}.app-dialog .form-grid{grid-template-columns:1fr;gap:14px}.app-dialog .target-grid{grid-template-columns:1fr}.app-dialog .form-grid>.full{grid-column:1}.module-title h1{font-size:23px!important}.module-title p{font-size:11px}.module-toolbar-actions{width:100%}.module-toolbar-actions>.btn-primary{flex:1}.card-pad{padding:16px}.stats{gap:10px;margin-bottom:20px}.stat{padding:16px}.stat-value{font-size:24px}.stat-label{font-size:10px}.dashboard-actions{gap:10px}.dashboard-action{padding:14px;gap:10px}.dashboard-action strong{font-size:12px}.dashboard-action small{font-size:10px}.dashboard-intro h1{font-size:24px}.dashboard-intro p{font-size:12px}.app-footer span:last-child{display:none}.care-shortcuts{gap:9px}.care-shortcut{padding:14px}.topbar-actions .btn svg{width:15px;height:15px}.toolbar .search{width:100%;min-width:0}.toolbar input:not([type=checkbox]):not([type=radio]),.toolbar select{max-width:100%;width:100%!important}.toolbar>label{font-size:12px}.app-dialog .setup-steps{grid-template-columns:1fr}.app-dialog .poll-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.app-topbar,.app-footer,.module-toolbar-actions,.module-tabs,.app-dialog,.skip-link{display:none!important}.page-wrap{max-width:100%;margin:0}.content{padding:0!important;min-height:0}.registry-layout[hidden],.grid.two-col[role=tabpanel][hidden]{display:block!important}.card{box-shadow:none}.module-toolbar{margin-bottom:15px}.table-wrap{overflow:visible}.stats{break-inside:avoid}}

.dialog-footer-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.app-dialog .dialog-footer-actions .btn{width:auto!important;margin:0!important;min-height:40px}.form-details{border:1px solid #e4ebf5;border-radius:11px;background:#fafcfe}.form-details>summary{cursor:pointer;padding:14px 16px;font-size:12px;font-weight:600;color:#4e6586}.form-details>summary small{display:block;font-size:10px;color:#8b9bb0;font-weight:400;margin:3px 0 0 15px}.form-details>.form-grid{padding:7px 17px 18px}.form-details[open]>summary{margin-bottom:9px;border-bottom:1px solid #e9eef6}.app-dialog .form-details>summary:focus-visible{outline-offset:0}[data-app-page="dashboard.php"] .content>section.card{margin-bottom:22px}
@media(max-width:540px){.dialog-footer{gap:12px;flex-wrap:wrap}.dialog-footer>span{max-width:100%;font-size:9px}.dialog-footer-actions{margin-left:auto}.app-dialog .dialog-footer-actions .btn{min-height:40px;padding:9px 12px;font-size:11px}}

/* A hidden panel must stay hidden even when its layout is forced to one column. */
html body [hidden]{display:none!important}
