*{box-sizing:border-box}html,body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f4f7fb;color:#13233b}a{text-decoration:none;color:inherit}button,input{font:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{width:268px;background:linear-gradient(180deg,#082e69,#061f48);color:#fff;padding:24px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:4px 4px 22px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark,.auth-logo{width:48px;height:48px;border-radius:15px;background:#fff;color:#0b55d9;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.18)}.brand strong{display:block;font-size:14px}.brand span{display:block;color:#a9c5ea;font-size:11px;margin-top:3px}.menu{display:grid;gap:6px;margin-top:22px;overflow:auto}.menu a{padding:12px 14px;border-radius:12px;color:#c8daf2;font-size:14px;font-weight:600}.menu a:hover,.menu a.active{background:rgba(255,255,255,.12);color:#fff}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:16px}.sidebar-footer span,.sidebar-footer strong{display:block}.sidebar-footer span{font-size:10px;color:#9fc0eb}.sidebar-footer strong{font-size:13px;margin:3px 0 10px}.sidebar-footer a{font-size:12px;color:#fff}.main{margin-left:268px;width:calc(100% - 268px);min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;background:#fff;border-bottom:1px solid #e6edf7;display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:10}.topbar h1{font-size:18px;margin:1px 0}.topbar small{color:#7b899d;font-size:10px}.topbar-user{margin-left:auto;display:flex;align-items:center;gap:9px}.topbar-user strong,.topbar-user small{display:block}.status-dot{width:9px;height:9px;border-radius:50%;background:#23b26d;box-shadow:0 0 0 4px #e7f8ef}.menu-toggle{display:none;background:#eef4fc;border:0;border-radius:10px;padding:8px 10px}.content{padding:28px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:22px}.page-heading h2{font-size:28px;margin:3px 0 5px}.page-heading p{margin:0;color:#728097;font-size:13px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#0b55d9}.btn{border:0;border-radius:12px;padding:11px 15px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.btn.primary{background:linear-gradient(135deg,#0b55d9,#1671e8);color:#fff;box-shadow:0 8px 20px rgba(11,85,217,.2)}.btn.danger{background:#e64a5b;color:#fff}.btn.tiny{padding:7px 10px;border-radius:9px;font-size:11px}.btn.wide{width:100%;min-height:52px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e6edf7;border-radius:18px;padding:18px;box-shadow:0 8px 30px rgba(35,69,111,.06)}.stat-card span{font-size:12px;color:#687991}.stat-card strong{display:block;font-size:31px;margin:7px 0 5px}.stat-card small{font-size:10px;color:#94a0b2}.stat-card.warning{border-color:#f2d9ae;background:#fffaf2}.grid-2{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.panel-card{background:#fff;border:1px solid #e6edf7;border-radius:18px;padding:20px;box-shadow:0 8px 30px rgba(35,69,111,.05)}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-title h3{font-size:16px;margin:0}.panel-title span{font-size:10px;color:#8a99ad;background:#f2f6fb;padding:6px 9px;border-radius:99px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-grid a{padding:14px;background:#f6f9fd;border:1px solid #e5edf7;border-radius:13px;font-size:12px;font-weight:700;color:#1a4a8d}.status{padding:12px 13px;border-radius:12px;font-size:12px;font-weight:800}.status.success{background:#eaf8f1;color:#14754a}.status.danger{background:#fff0f2;color:#b72c42}.muted{color:#76859b;font-size:12px;line-height:1.6}.table-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}.table-search{width:min(360px,100%);border:1px solid #dce5f1;border-radius:12px;padding:11px 13px;background:#f9fbfe}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:680px}th,td{padding:13px 12px;border-bottom:1px solid #edf2f8;text-align:left;font-size:12px}th{color:#77859a;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.pill{display:inline-block;padding:5px 8px;border-radius:99px;background:#eef3f9;color:#54657b;font-size:9px;font-weight:800}.pill.success{background:#e9f8f0;color:#15784d}.pill.danger{background:#ffedf0;color:#b72c42}.pill.muted{background:#f1f3f6;color:#7b8798}.empty{text-align:center;color:#8996a8;padding:28px}.cards-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.congregation-card{background:#fff;border:1px solid #e4ebf5;border-radius:18px;padding:18px;display:flex;gap:13px;align-items:flex-start}.cong-icon{width:44px;height:44px;border-radius:14px;background:#eaf2ff;color:#0b55d9;display:grid;place-items:center;font-weight:900}.congregation-card h3{margin:1px 0 5px;font-size:15px}.congregation-card p{margin:0 0 8px;color:#7d899a;font-size:11px}.page-footer{margin-top:auto;padding:18px 28px;color:#8a98aa;font-size:10px;display:flex;justify-content:space-between}.auth-page{min-height:100vh;background:linear-gradient(135deg,#061f48,#0b55d9);display:grid;place-items:center;padding:24px}.auth-wrap{width:min(980px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.25)}.auth-hero{background:linear-gradient(145deg,#082e69,#0b55d9 70%,#1671e8);color:#fff;padding:58px;display:flex;flex-direction:column;justify-content:center}.auth-badge{width:max-content;font-size:10px;font-weight:900;letter-spacing:.12em;background:rgba(255,255,255,.13);padding:8px 11px;border-radius:99px}.auth-hero h1{font-size:42px;line-height:1.05;margin:20px 0 12px}.auth-hero p{color:#d8e8ff;font-size:14px;line-height:1.7;max-width:470px}.auth-highlights{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.auth-highlights span{border:1px solid rgba(255,255,255,.22);padding:8px 10px;border-radius:10px;font-size:10px}.auth-card{padding:48px}.auth-card small{display:block;margin-top:20px;color:#0b55d9;font-weight:900;letter-spacing:.1em}.auth-card h2{font-size:28px;margin:6px 0 5px}.auth-card p{color:#75849a;font-size:12px}.auth-card label{display:block;font-size:10px;font-weight:800;color:#586a82;margin:15px 0 6px}.auth-card input{width:100%;height:52px;border:1px solid #dce5f1;background:#f9fbfe;border-radius:13px;padding:0 14px;outline:none}.auth-card input:focus{border-color:#0b55d9;box-shadow:0 0 0 3px rgba(11,85,217,.08)}.auth-card .btn{margin-top:18px}.auth-secure{margin-top:15px;text-align:center;color:#7b8ba0;font-size:10px}.alert{padding:10px 12px;border-radius:10px;font-size:11px;margin-top:12px}.alert.error{background:#fff0f2;color:#b52f45}
@media(max-width:980px){.stats-grid{grid-template-columns:repeat(2,1fr)}.cards-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.menu-toggle{display:block}.content{padding:18px}.topbar{padding:0 16px}.topbar-user{display:none}.grid-2{grid-template-columns:1fr}.auth-wrap{grid-template-columns:1fr}.auth-hero{display:none}.auth-card{padding:34px 24px}.stats-grid,.cards-list{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h2{font-size:24px}}

.access-context{margin-bottom:18px;border-radius:16px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dce7f6;background:#fff}
.access-context strong,.access-context span{display:block}.access-context strong{font-size:12px;color:#17375f}.access-context>div>span{font-size:10px;color:#718198;margin-top:3px}.access-context.matrix{background:linear-gradient(135deg,#eef5ff,#fff);border-color:#cfe0fb}.access-context.local{background:#fff}.access-badge{font-size:9px!important;font-weight:900!important;letter-spacing:.08em;padding:6px 9px;border-radius:99px;background:#0b55d9;color:#fff!important}
