:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#17211f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{overflow-x:hidden}body{background:#f4f6f8;min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}button,input,select{max-width:100%;font:inherit}button,select,input,textarea{min-width:0}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.7}.app-shell{grid-template-columns:264px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#f7faf8;background:#23312e;flex-direction:column;height:100vh;min-height:100vh;padding:18px 14px;display:flex;position:sticky;top:0;overflow-y:auto}.brand{border-bottom:1px solid #ffffff1f;align-items:center;gap:12px;min-height:48px;padding:0 8px 18px;display:flex}.brand-mark{color:#0f766e;background:#e7f3ee;border-radius:8px;place-items:center;width:42px;height:42px;font-weight:800;display:grid}.brand strong,.sidebar-profile strong{font-size:15px;display:block}.brand span,.sidebar-profile span{color:#c9d5d0;text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:12px;display:block;overflow:hidden}.nav-list{gap:6px;margin-top:20px;display:grid}.nav-item{color:#dce5e1;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;min-height:42px;padding:0 12px;display:flex}.nav-item span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.nav-item:hover,.nav-item.active{color:#0f3f39;background:#eef8f3}.sidebar-footer{border-top:1px solid #ffffff1f;gap:10px;margin-top:auto;padding:14px 8px 0;display:grid}.sidebar-profile{background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;align-items:center;gap:10px;min-width:0;padding:10px;display:flex}.sidebar-profile>div{min-width:0}.sidebar-signout{color:#f7faf8;background:#ffffff14;border:1px solid #ffffff24;border-radius:8px;justify-content:flex-start;align-items:center;gap:8px;width:100%;min-height:36px;padding:0 10px;font-weight:800;display:inline-flex}.sidebar-signout span{color:inherit;font-size:12px}.sidebar-signout:hover{color:#0f3f39;background:#eef8f3}.workspace{width:100%;min-width:0;padding:18px 22px 32px}.topbar{z-index:30;background:#f4f6f8;border-bottom:1px solid #dde4e1;grid-template-columns:minmax(260px,1fr) auto 42px;align-items:center;gap:10px;min-width:0;min-height:54px;padding:8px 0 10px;display:grid;position:sticky;top:0}.church-control,.view-actions,.inline-filters{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.topbar-actions{display:contents}.church-control{background:#fff;border:1px solid #d7dedb;border-radius:8px;min-width:280px;max-width:100%;padding:8px 10px}.church-control select{color:#17211f;background:0 0;border:0;outline:none;min-width:220px}.default-church-button{min-height:30px;padding:0 8px;font-size:12px}.inline-filters select,.inline-filters input,.report-options select{color:#17211f;background:#fff;border:1px solid #d7dedb;border-radius:8px;min-height:36px}.inline-filters select{padding:0 10px}.language-switch{background:#fff;border:1px solid #d7dedb;border-radius:8px;min-height:34px;display:inline-flex;overflow:hidden}.language-switch button{color:#52615c;background:0 0;border:0;border-right:1px solid #d7dedb;min-width:42px;font-size:12px;font-weight:900}.language-switch button:last-child{border-right:0}.language-switch button.active{color:#fff;background:#0f766e}.inline-filters input{width:142px;padding:0 10px}.audit-filters input{width:156px}.inline-filters label,.report-options label{color:#52615c;gap:5px;font-size:12px;font-weight:700;display:grid}.icon-button,.ghost-button,.secondary-button,.primary-button{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:36px;font-weight:800;display:inline-flex}.icon-button{color:#23312e;background:#fff;border:1px solid #d7dedb;width:38px}.ghost-button,.secondary-button{color:#23312e;background:#fff;border:1px solid #d7dedb;padding:0 12px}.primary-button{color:#fff;background:#0f766e;border:0;width:100%;padding:0 16px}.secondary-button:hover,.ghost-button:hover,.icon-button:hover{background:#f7faf8;border-color:#9db1aa}.status-row{color:#65736f;flex-wrap:wrap;gap:8px;margin:6px 0 18px;font-size:13px;display:flex}.status-row span{overflow-wrap:anywhere;border-right:1px solid #d7dedb;max-width:100%;padding-right:10px}.status-row span:last-child{border-right:0}.view-stack{gap:18px;display:grid}.view-header{background:#fff;border:1px solid #dde4e1;border-radius:8px;justify-content:space-between;align-items:flex-start;gap:18px;padding:16px;display:flex}.view-header>div:first-child{flex:220px;align-items:center;gap:10px;min-width:0;display:flex}.view-header h1{color:#17211f;overflow-wrap:anywhere;margin:0;font-size:22px;line-height:1.15}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;display:grid}.metric-card{color:#0f766e;background:#fff;border:1px solid #dde4e1;border-radius:8px;align-items:center;gap:12px;min-height:88px;padding:14px;display:flex}.metric-card.interactive{text-align:left;width:100%}.metric-card.interactive:hover{background:#f8faf9;border-color:#9db1aa}.metric-card div{gap:4px;display:grid}.metric-card span{color:#52615c;font-size:12px;font-weight:800}.metric-card strong{color:#17211f;font-size:26px;line-height:1}.metric-card.danger{color:#be123c}.metric-card.warning{color:#b45309}.metric-card.accent{color:#4338ca}.metric-card.success{color:#15803d}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.chart-panel{background:#fff;border:1px solid #dde4e1;border-radius:8px;min-width:0;min-height:348px;padding:14px}.chart-panel.wide{grid-column:span 1}.chart-panel h2{align-items:center;gap:8px;min-height:26px;margin:0 0 12px;font-size:15px;display:flex}.dashboard-ops-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.compact-list,.rule-list,.timeline-list{gap:8px;display:grid}.compact-list-item{color:#24312e;text-align:left;background:#fff;border:1px solid #e2e8e5;border-radius:8px;gap:4px;width:100%;min-width:0;padding:10px;display:grid}.compact-list-item:hover{background:#fbfdfc;border-color:#b6c7c1}.compact-list-item.unread{background:#f2faf7;border-color:#b7d7c8}.compact-list-item.danger{background:#fff7f8;border-color:#f1b8c4}.compact-list-item.warning{background:#fffaf1;border-color:#f3d29b}.compact-list-item strong,.compact-list-item span,.compact-list-item small{overflow-wrap:anywhere}.compact-list-item strong{color:#17211f}.compact-list-item span,.compact-list-item small{color:#52615c;font-size:12px}.queue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.queue-card{color:#17211f;text-align:left;background:#f8faf9;border:1px solid #dde4e1;border-radius:8px;gap:4px;min-height:76px;padding:10px;display:grid}.queue-card strong{font-size:24px}.queue-card span{color:#52615c;font-size:12px}.rule-list article,.timeline-list article{background:#fff;border:1px solid #e2e8e5;border-radius:8px;gap:4px;padding:9px;display:grid}.timeline-list article{grid-template-columns:22px minmax(0,1fr)}.rule-list strong,.timeline-list strong{color:#17211f;font-size:13px}.rule-list span,.timeline-list span,.timeline-list small{color:#52615c;overflow-wrap:anywhere;font-size:12px}.timeline-panel{gap:10px;margin-top:6px;display:grid}.timeline-panel h3{color:#17211f;margin:0;font-size:14px}.table-wrap{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #dde4e1;border-radius:8px;max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:1080px}th,td{text-align:left;vertical-align:middle;overflow-wrap:anywhere;border-bottom:1px solid #e7ecea;padding:12px 14px}th{color:#52615c;text-transform:uppercase;background:#f8faf9;font-size:12px}td{color:#24312e;font-size:14px}td code{color:#3d4650;text-overflow:ellipsis;white-space:nowrap;max-width:460px;font-size:12px;display:inline-block;overflow:hidden}tr:last-child td{border-bottom:0}.empty-cell{color:#65736f;text-align:center;height:120px}.empty-cell svg{vertical-align:middle;margin-right:6px}.status-badge{white-space:nowrap;border-radius:999px;align-items:center;min-height:24px;padding:0 9px;font-size:12px;font-weight:800;display:inline-flex}.status-badge.neutral{color:#3f4f4a;background:#eef2f1}.status-badge.success{color:#166534;background:#dcfce7}.status-badge.warning{color:#92400e;background:#fef3c7}.status-badge.danger{color:#be123c;background:#ffe4e6}.status-badge.accent{color:#4338ca;background:#e0e7ff}.notice{border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:10px 12px;font-size:14px;font-weight:700;display:flex}.notice.error{color:#9f1239;background:#ffe4e6}.notice.warning{color:#92400e;background:#fef3c7}.notice.success{color:#166534;background:#dcfce7}.notice.compact{align-items:flex-start;min-height:0}.management-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;display:grid}.management-panel{background:#fff;border:1px solid #dde4e1;border-radius:8px;align-content:start;gap:14px;min-width:0;padding:14px;display:grid}.management-panel h2{align-items:center;gap:8px;margin:0;font-size:15px;display:flex}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.form-grid label{color:#52615c;gap:5px;min-width:0;font-size:12px;font-weight:800;display:grid}.form-grid input,.form-grid select,td select{color:#17211f;background:#fff;border:1px solid #d7dedb;border-radius:8px;min-height:36px;padding:0 10px}.textarea-label{color:#52615c;gap:6px;font-size:12px;font-weight:800;display:grid}.textarea-label textarea{resize:vertical;color:#17211f;width:100%;min-height:170px;font:inherit;border:1px solid #d7dedb;border-radius:8px;padding:10px}.directory-filters input{width:170px}.source-list{gap:10px;display:grid}.source-list article{border-bottom:1px solid #e7ecea;gap:3px;padding-bottom:10px;display:grid}.source-list article:last-child{border-bottom:0;padding-bottom:0}.source-list strong{color:#17211f;font-size:14px}.source-list span,.source-list small,.muted-text{color:#65736f;font-size:12px}.row-actions{align-items:center;gap:6px;display:flex}.compact-action{min-height:32px;padding:0 10px;font-size:12px}.compact-textarea textarea{min-height:84px}.structure-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.structure-summary div{background:#f8faf9;border:1px solid #e2e8e5;border-radius:8px;gap:4px;min-height:78px;padding:12px;display:grid}.structure-summary span{color:#52615c;font-size:12px;font-weight:800}.structure-summary strong{color:#17211f;font-size:24px;line-height:1}.structure-name{gap:2px;min-width:150px;display:grid}.structure-name strong{color:#17211f;font-size:13px}.structure-name small{color:#65736f;text-transform:uppercase;font-size:11px;font-weight:800}.structure-name span{color:#52615c;max-width:260px;font-size:12px;line-height:1.35}.nested-list{gap:8px;min-width:360px;display:grid}.nested-row{grid-template-columns:minmax(145px,1fr) minmax(96px,auto) 38px 38px;align-items:center;gap:6px;display:grid}.nested-row select{min-width:138px}.compact-form{border-top:1px solid #e7ecea;grid-template-columns:minmax(78px,.7fr) minmax(100px,1fr) minmax(100px,1fr) 38px;align-items:center;padding-top:8px}.member-compact-form{grid-template-columns:minmax(150px,1fr) minmax(142px,auto) 38px}.sector-membership-list{gap:8px;min-width:320px;display:grid}.sector-membership-row{grid-template-columns:minmax(112px,1fr) minmax(142px,auto) 38px;align-items:center;gap:6px;display:grid}.sector-membership-name{gap:2px;display:grid}.sector-membership-name strong{color:#17211f;font-size:13px}.sector-membership-name small{color:#65736f;text-transform:uppercase;font-size:11px;font-weight:800}.structure-table{overflow-x:hidden}.structure-table table{table-layout:fixed;min-width:0}.structure-table th,.structure-table td{vertical-align:top;padding:10px}.structure-table th:first-child,.structure-table td:first-child{width:15%}.structure-table th:nth-child(2),.structure-table td:nth-child(2){width:8%}.structure-table th:nth-child(3),.structure-table td:nth-child(3),.structure-table th:nth-child(4),.structure-table td:nth-child(4){width:22%}.structure-table th:nth-child(5),.structure-table td:nth-child(5){width:24%}.structure-table th:nth-child(6),.structure-table td:nth-child(6){width:9%}.structure-table .structure-name{min-width:0}.structure-table .structure-name strong,.structure-table .structure-name small,.structure-table .structure-name span{overflow-wrap:anywhere}.structure-table .structure-name span{max-width:none}.structure-table .nested-list{gap:6px;min-width:0}.structure-table .nested-row{grid-template-columns:minmax(0,1fr) minmax(84px,auto) 34px 34px;gap:5px}.structure-table .nested-row.member-row{grid-template-columns:minmax(0,1fr) minmax(104px,auto) 34px}.structure-table .nested-row.group-row{grid-template-columns:minmax(0,1fr) minmax(84px,auto) 34px 34px}.structure-table .nested-row select{width:100%;min-width:0;padding:0 8px}.structure-table .compact-form{grid-template-columns:minmax(56px,.7fr) minmax(0,1fr) minmax(0,1fr) 34px;gap:5px}.structure-table .member-compact-form{grid-template-columns:minmax(0,1fr) minmax(104px,auto) 34px}.structure-table .compact-form input,.structure-table .compact-form select{min-height:34px;padding:0 8px}.structure-table .icon-button{width:34px;min-height:34px}.group-box{background:#f8faf9;border:1px solid #e2e8e5;border-radius:8px;gap:6px;padding:8px;display:grid}.group-members{gap:5px;display:grid}.group-box .sector-membership-row{grid-template-columns:minmax(0,1fr) 34px}.group-member-form{border-top:1px solid #e7ecea;grid-template-columns:minmax(0,1fr) 34px;padding-top:6px}.app-context{color:#65736f;flex-wrap:wrap;gap:8px;min-width:0;font-size:13px;font-weight:800;display:flex}.app-context span{text-overflow:ellipsis;white-space:nowrap;max-width:240px;overflow:hidden}.app-tabs{flex-wrap:wrap;gap:8px;max-width:100%;display:flex}.app-tabs button{color:#23312e;white-space:nowrap;background:#fff;border:1px solid #d7dedb;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:0 12px;font-weight:900;display:inline-flex}.app-tabs button.active{color:#0f3f39;background:#e7f3ee;border-color:#0f766e}.app-panel{background:#fff;border:1px solid #dde4e1;border-radius:8px;align-content:start;gap:14px;min-width:0;padding:14px;display:grid}.app-panel h2,.panel-toolbar h2{color:#17211f;overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;margin:0;font-size:15px;display:flex}.app-split{grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);gap:14px;display:grid}.panel-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.panel-toolbar input,.panel-toolbar select,.inline-action-form input,.inline-action-form select{color:#17211f;background:#fff;border:1px solid #d7dedb;border-radius:8px;min-height:36px;padding:0 10px}.app-list,.activity-list{gap:10px;display:grid}.app-list-item,.app-row,.activity-list article,.directory-card{color:#24312e;text-align:left;background:#fff;border:1px solid #e2e8e5;border-radius:8px;gap:5px;min-width:0;padding:12px;display:grid}.app-list-item{width:100%}.app-list-item:hover{background:#fbfdfc;border-color:#b6c7c1}.app-list-item.active{background:#f2faf7;border-color:#0f766e}.app-list-item strong,.app-row strong,.directory-card strong,.activity-list strong{color:#17211f;overflow-wrap:anywhere}.app-list-item span,.app-row span,.directory-card span,.activity-list span,.activity-list a{color:#52615c;overflow-wrap:anywhere;font-size:13px}.app-description{color:#33413d;margin:0;line-height:1.55}.app-meta{color:#65736f;flex-wrap:wrap;gap:10px;font-size:13px;display:flex}.app-meta span{align-items:center;gap:5px;display:inline-flex}.tickets-workspace{align-items:start}.ticket-detail-panel{min-height:420px}.ticket-badges{flex-wrap:wrap;gap:6px;display:flex}.ticket-edit-form{gap:12px;display:grid}.ticket-edit-form .secondary-button{justify-self:start}.work-now-active{color:#17342e;background:#f2faf7;border:1px solid #b7d7c8;border-radius:8px;gap:5px;padding:12px;display:grid}.work-now-active strong{color:#0f3f39}.work-now-active span{color:#52615c;font-size:13px}.inline-action-form{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.file-picker{color:#17211f;background:#fff;border:1px solid #d7dedb;border-radius:8px;gap:4px;min-height:42px;padding:8px 10px;display:grid}.file-picker input{border:0;min-height:auto;padding:0}.file-picker span{font-size:12px;font-weight:700}.file-picker small{color:#52615c;overflow-wrap:anywhere}.form-error{color:#b42318;font-size:13px}.link-button{color:#0f766e;font:inherit;cursor:pointer;background:0 0;border:0;justify-self:start;align-items:center;gap:6px;padding:0;font-size:13px;font-weight:700;display:inline-flex}.link-button:hover{color:#115e59;text-decoration:underline}.ticket-action-panel{background:#f8faf9;border:1px solid #e2e8e5;border-radius:8px;gap:10px;padding:12px;display:grid}.ticket-action-panel h3{color:#17211f;margin:0;font-size:14px}.ticket-action-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;display:grid}.ticket-action-grid .secondary-button,.ticket-action-panel .secondary-button{width:100%}.assignment-list{gap:8px;display:grid}.assignment-list>strong{color:#17211f;font-size:13px}.assignment-list article{background:#fff;border:1px solid #e2e8e5;border-radius:8px;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:8px;padding:8px;display:grid}.assignment-list span{color:#24312e;gap:2px;font-size:13px;font-weight:800;display:grid}.assignment-list small{color:#65736f;font-size:11px;font-weight:700}.directory-card-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.danger-action{color:#be123c}.modal-backdrop{z-index:50;background:#0f171575;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-panel{background:#fff;border:1px solid #d7dedb;border-radius:8px;gap:16px;width:min(620px,100%);min-width:0;max-height:calc(100vh - 40px);padding:16px;display:grid;overflow:auto;box-shadow:0 18px 48px #0f171538}.modal-header{border-bottom:1px solid #e7ecea;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;display:flex}.modal-header>div{color:#0f766e;align-items:center;gap:8px;min-width:0;display:flex}.modal-header h2{color:#17211f;margin:0;font-size:18px}.modal-form{gap:14px;display:grid}.modal-form label{color:#52615c;gap:6px;font-size:12px;font-weight:800;display:grid}.modal-form input,.modal-form textarea{color:#17211f;min-height:38px;font:inherit;background:#fff;border:1px solid #d7dedb;border-radius:8px;padding:0 10px}.modal-form textarea{resize:vertical;min-height:92px;padding:10px}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.modal-actions .primary-button,.modal-actions .secondary-button{width:auto;min-width:118px}.modal-user-target{background:#f8faf9;border:1px solid #e2e8e5;border-radius:8px;gap:3px;padding:10px 12px;display:grid}.modal-user-target strong{color:#17211f;font-size:14px}.modal-user-target span{color:#65736f;font-size:12px;font-weight:800}.directory-detail{overflow-wrap:anywhere;color:#33413d;max-width:320px;font-size:12px;line-height:1.45;display:block}.login-page{background:#f4f6f8;place-items:center;min-height:100vh;padding:24px;display:grid}.login-panel{background:#fff;border:1px solid #dde4e1;border-radius:8px;gap:16px;width:min(420px,100%);padding:24px;display:grid}.login-brand{color:#0f766e;align-items:center;gap:12px;padding-bottom:8px;display:flex}.login-brand strong{color:#17211f;font-size:20px;display:block}.login-brand span{color:#65736f;font-size:13px}.login-form,.recovery-form{gap:14px;display:grid}.recovery-form{border-top:1px solid #dde4e1;padding-top:16px}.login-panel label{color:#52615c;gap:6px;font-size:13px;font-weight:800;display:grid}.login-panel input{border:1px solid #cfd8d4;border-radius:8px;min-height:42px;padding:0 12px}.report-layout{grid-template-columns:280px minmax(0,1fr);gap:14px;display:grid}.report-options,.report-preview{background:#fff;border:1px solid #dde4e1;border-radius:8px;min-width:0}.report-options{align-content:start;gap:14px;padding:14px;display:grid}.report-options select{width:100%;padding:0 10px}.checkbox-row{grid-template-columns:18px 1fr;align-items:center;color:#24312e!important;gap:8px!important;font-size:14px!important;display:flex!important}.checkbox-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;display:grid}.checkbox-row input{width:16px;height:16px}.report-preview{color:#17211f;white-space:pre-wrap;min-height:460px;margin:0;padding:16px;font-size:13px;line-height:1.65;overflow:auto}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1180px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.workspace{padding:16px 18px 28px}.chart-grid,.dashboard-ops-grid{grid-template-columns:1fr}table{min-width:920px}.structure-table{background:0 0;border:0;overflow:visible}.structure-table table,.structure-table thead,.structure-table tbody,.structure-table tr,.structure-table th,.structure-table td{width:100%;min-width:0;display:block}.structure-table thead{display:none}.structure-table tbody{gap:12px;display:grid}.structure-table tr{background:#fff;border:1px solid #dde4e1;border-radius:8px;gap:10px;padding:12px;display:grid}.structure-table td{border-bottom:0;gap:6px;padding:0;display:grid}.structure-table th:nth-child(n),.structure-table td:nth-child(n){width:100%}.structure-table td:before{content:attr(data-label);color:#65736f;text-transform:uppercase;font-size:11px;font-weight:800}.structure-table .empty-cell{place-items:center;min-height:120px}.structure-table .empty-cell:before{display:none}}@media (width<=1024px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:20;height:auto;min-height:auto;padding:12px;position:sticky}.nav-list{grid-template-columns:repeat(auto-fit,minmax(136px,1fr));margin-top:12px}.brand{padding:0 4px 12px}.brand span,.sidebar-profile span{max-width:none}.sidebar-footer{margin-top:12px;padding:12px 4px 0}.workspace{padding:14px}.view-header,.management-grid,.structure-summary,.app-split,.report-layout{grid-template-columns:1fr;display:grid}.church-control,.church-control select{width:100%;min-width:0}.metrics-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.view-actions,.inline-filters{width:100%}.topbar-actions{display:contents}.inline-filters label{flex:170px}.inline-filters input,.inline-filters select{width:100%}.structure-summary{grid-template-columns:repeat(3,minmax(120px,1fr))}.report-layout{grid-template-columns:1fr}}@media (width<=640px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{min-height:100svh;padding-top:74px;padding-bottom:58px}.sidebar{background:0 0;padding:0;position:static}.brand{display:none}.nav-list{z-index:50;background:#23312e;border-bottom:1px solid #ffffff1f;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:8px 8px 9px;display:grid;position:fixed;top:0;left:0;right:0;overflow:visible;box-shadow:0 8px 22px #0f171529}.nav-item{border:1px solid #ffffff1a;justify-content:center;width:100%;min-width:0;min-height:26px;padding:0 3px}.nav-item svg{display:none}.nav-item span{text-align:center;white-space:normal;font-size:9.5px;line-height:1.15}.sidebar-footer{z-index:45;background:#23312e;border:1px solid #ffffff24;border-radius:8px;grid-template-columns:minmax(0,1fr) 38px;align-items:center;margin-top:0;padding:6px;display:grid;position:fixed;bottom:8px;left:10px;right:10px;box-shadow:0 10px 28px #0f17153d}.sidebar-profile{background:0 0;border:0;min-height:34px;padding:0 8px}.sidebar-profile svg{width:16px;height:16px}.sidebar-profile strong{font-size:12px}.sidebar-profile span{display:none}.sidebar-signout{justify-content:center;width:38px;min-height:34px;padding:0}.sidebar-signout span{display:none}.workspace{padding:10px 12px 12px}.topbar{min-height:48px;box-shadow:none;grid-template-columns:minmax(0,1fr) minmax(112px,auto) 42px;gap:8px;padding:0 0 8px;position:static}.church-control{width:100%}.topbar-actions{display:contents}.language-switch{width:100%}.language-switch button{flex:1 1 0}.status-row{gap:6px;display:grid}.status-row span{border-right:0;padding-right:0}.view-header{padding:12px}.view-header>div:first-child{min-width:0}.view-header h1{font-size:20px}.topbar-actions,.view-actions,.app-tabs,.inline-filters{align-items:stretch}.app-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-bottom:0;display:grid;overflow:visible}.app-tabs button{white-space:normal;justify-content:center;gap:5px;width:100%;min-width:0;min-height:36px;padding:0 6px;font-size:11px}.app-tabs button svg{width:15px;height:15px}.app-tabs button,.inline-action-form,.inline-filters label,.inline-filters input,.inline-filters select,.modal-actions .primary-button,.modal-actions .secondary-button,.secondary-button{width:100%}.inline-action-form,.compact-form,.member-compact-form,.nested-row,.sector-membership-row{grid-template-columns:1fr}.nested-list,.sector-membership-list{min-width:0}.row-actions{flex-wrap:wrap}.structure-table tr{padding:10px}.structure-table .nested-row,.structure-table .nested-row.member-row,.structure-table .compact-form,.structure-table .member-compact-form{grid-template-columns:minmax(0,1fr)}.structure-table .row-actions,.structure-table .nested-row{align-items:start}.structure-summary{grid-template-columns:1fr}.metric-card{gap:8px;min-height:72px;padding:10px}.queue-grid{grid-template-columns:1fr}.metric-card svg{flex:none;width:18px;height:18px}.metric-card span{font-size:11px;line-height:1.2}.metric-card strong{font-size:22px}.chart-panel{min-height:300px;padding:12px}.modal-backdrop{align-items:end;padding:12px}.modal-panel{max-height:calc(100vh - 24px)}.modal-actions{grid-template-columns:1fr;display:grid}.form-grid{grid-template-columns:1fr;width:100%}.icon-button{width:42px}table{min-width:760px}}
