.sidebar{width:220px;min-width:220px;background:var(--color-sidebar-bg);display:flex;flex-direction:column;height:100vh;overflow-y:auto;overflow-x:hidden}.sidebar-logo{background:var(--color-sidebar-logo-bg, transparent);padding:14px 14px 12px;margin:12px 12px 6px;border-radius:8px}.sidebar-parish-wrap{padding:6px 16px 12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:8px}.sidebar-org{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:.6px;font-weight:700;margin-bottom:4px}.sidebar-logo-img{max-height:var(--sidebar-logo-size, 44px);max-width:100%;display:block;margin:0 auto}.sidebar-parish{font-size:13px;color:#f1f5f9;font-weight:600}.sidebar-parish-select{width:100%;font-size:13px;font-weight:600;color:#f1f5f9;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:6px 8px;cursor:pointer}.sidebar-parish-select option{color:#1e293b}@keyframes parish-flash{0%,to{box-shadow:0 0 #f59e0b00;border-color:#ffffff1f;background:#ffffff0f}20%{box-shadow:0 0 0 4px #f59e0b8c;border-color:#f59e0b;background:#f59e0b2e}60%{box-shadow:0 0 #f59e0b00;border-color:#f59e0b;background:#f59e0b1a}}.sidebar-parish-select.flash{animation:parish-flash 1.6s ease-out 2}.sidebar-section{font-size:10px;color:var(--color-sidebar-section);text-transform:uppercase;letter-spacing:.7px;font-weight:700;padding:12px 16px 4px}.sidebar-link{display:flex;align-items:center;gap:8px;padding:9px 16px;color:var(--color-sidebar-txt);font-size:13px;font-weight:500;transition:background .15s,color .15s;border-radius:0}.sidebar-link:hover{background:#ffffff14;color:var(--color-sidebar-txt-hover)}.sidebar-link.active{background:#e8a02026;color:var(--color-brand);font-weight:600}.sidebar-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:18px;padding:0 6px;background:var(--color-brand, #f59e0b);color:#fff;font-size:11px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;border-radius:999px}.sidebar-icon{font-size:14px;width:18px;text-align:center;flex-shrink:0}.sidebar-footer{margin-top:auto;padding:12px 16px 16px;border-top:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;gap:10px}.mode-toggle-label{font-size:10px;color:var(--color-sidebar-section);text-transform:uppercase;letter-spacing:.6px;font-weight:700;margin-bottom:6px}.mode-toggle-pills{display:flex;background:#0a0f1e;border-radius:20px;padding:3px;gap:2px}.mode-pill{flex:1;padding:5px 0;border-radius:18px;border:none;font-size:11px;font-weight:600;background:transparent;color:#64748b;transition:background .15s,color .15s}.mode-pill.active{background:var(--color-brand);color:#fff}.sidebar-user{padding-top:2px}.sidebar-user-name{font-size:12px;color:#f1f5f9;font-weight:600}.sidebar-user-role{font-size:11px;color:#64748b}.sidebar-user-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.sidebar-link-btn{background:#ffffff0f;color:#f1f5f9;border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:4px 8px;font-size:11px;font-weight:600;cursor:pointer}.sidebar-link-btn:hover{background:#ffffff1f}.sidebar-impersonating{margin-top:8px;padding:6px 8px;border-radius:4px;background:#e8a0202e;color:#fde68a;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:6px}.impersonate-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.impersonate-modal{background:#fff;width:min(480px,92vw);max-height:80vh;border-radius:8px;display:flex;flex-direction:column;box-shadow:0 12px 40px #00000040}.impersonate-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e2e8f0;color:#1e293b}.impersonate-x{background:none;border:none;font-size:20px;cursor:pointer;color:#64748b}.impersonate-search{margin:12px 16px 0;padding:8px 10px;font-size:14px;border:1px solid #cbd5e1;border-radius:6px}.impersonate-err{margin:8px 16px 0;color:#b91c1c;font-size:12px}.impersonate-list{overflow-y:auto;padding:8px 0}.impersonate-empty{padding:12px 16px;color:#64748b;font-size:13px}.impersonate-row{display:block;width:100%;text-align:left;padding:8px 16px;background:none;border:none;cursor:pointer;border-bottom:1px solid #f1f5f9}.impersonate-row:hover{background:#f8fafc}.impersonate-name{font-weight:600;color:#1e293b;font-size:13px}.impersonate-meta{color:#64748b;font-size:11px;margin-top:2px}.sidebar-mobile-bar{display:none}.sidebar-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:998}@media (max-width: 900px){.sidebar-mobile-bar{display:flex;align-items:center;gap:12px;position:fixed;top:0;left:0;right:0;height:52px;padding:0 12px;background:var(--color-sidebar-bg);color:#f1f5f9;z-index:997;box-shadow:0 1px #ffffff0f,0 2px 6px #0000002e}.sidebar-mobile-toggle{background:#ffffff0f;color:#f1f5f9;border:1px solid rgba(255,255,255,.12);border-radius:6px;font-size:18px;line-height:1;padding:6px 10px;cursor:pointer;flex-shrink:0}.sidebar-mobile-toggle:hover{background:#ffffff1f}.sidebar-mobile-title{flex:1;min-width:0;font-size:13px;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-mobile-title img{max-height:32px;max-width:100%;display:block}.sidebar-mobile-unread{background:var(--color-brand, #f59e0b);color:#fff;border:none;border-radius:999px;font-size:11px;font-weight:700;padding:4px 10px;cursor:pointer;flex-shrink:0}.sidebar{position:fixed;top:0;left:0;bottom:0;width:280px;min-width:280px;height:100vh;transform:translate(-100%);transition:transform .22s ease-out;z-index:999;box-shadow:4px 0 16px #0000002e}.sidebar.sidebar--open{transform:translate(0)}.sidebar-backdrop{display:block}}@media (max-width: 900px){.app-main{padding-top:52px}}.carlo-fab{position:fixed;z-index:2147483000;width:48px;height:48px;border-radius:50%;border:none;cursor:grab;background:var(--color-brand, #1e3a8a);color:#fff;box-shadow:0 6px 18px #0f172a47,0 0 0 2px #ffffffd9;display:inline-flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none;transition:transform .12s,box-shadow .12s}.carlo-fab:hover{transform:scale(1.06);box-shadow:0 8px 22px #0f172a57,0 0 0 2px #fffffff2}.carlo-fab:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.carlo-fab.dragging{cursor:grabbing;transform:scale(1.02)}.carlo-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483001;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:16px}.carlo-modal{background:#fff;color:#0f172a;border-radius:12px;width:min(640px,100%);max-height:92vh;overflow:auto;box-shadow:0 20px 60px #0000004d;font-size:14px}.carlo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 6px}.carlo-head h2{margin:0;font-size:18px;display:flex;align-items:center;gap:8px}.carlo-sub{color:#64748b;font-size:13px;margin:4px 0 0}.carlo-x{border:none;background:transparent;font-size:20px;line-height:1;cursor:pointer;color:#475569;padding:4px;border-radius:6px}.carlo-x:hover{background:#f1f5f9}.carlo-body{padding:8px 20px 12px;display:flex;flex-direction:column;gap:14px}.carlo-field label{display:block;font-weight:600;font-size:13px;margin-bottom:6px}.carlo-field input,.carlo-field select,.carlo-field textarea{width:100%;box-sizing:border-box;font:inherit;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.carlo-field textarea{min-height:96px;resize:vertical}.carlo-field input:focus,.carlo-field select:focus,.carlo-field textarea:focus{outline:2px solid #93c5fd;border-color:#60a5fa}.carlo-count{text-align:right;font-size:11px;color:#94a3b8;margin-top:3px}.carlo-attach{border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px}.carlo-attach-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.carlo-attach-head strong{font-size:14px}.carlo-attach-head .opt{color:#64748b;font-weight:400;margin-left:6px}.carlo-attach p{margin:4px 0 10px;color:#64748b;font-size:12px}.carlo-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.carlo-btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:500;padding:7px 12px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;cursor:pointer}.carlo-btn:hover{background:#f1f5f9}.carlo-btn:disabled{opacity:.55;cursor:default}.carlo-btn.primary{background:var(--color-brand, #1e3a8a);border-color:var(--color-brand, #1e3a8a);color:#fff}.carlo-btn.primary:hover{filter:brightness(1.08);background:var(--color-brand, #1e3a8a)}.carlo-thumb{height:44px;width:auto;max-width:96px;border:1px solid #e2e8f0;border-radius:6px;object-fit:cover;background:#f8fafc}.carlo-switch{position:relative;width:38px;height:22px;border-radius:11px;background:#cbd5e1;border:none;cursor:pointer;padding:0}.carlo-switch[data-on="1"]{background:var(--color-brand, #1e3a8a)}.carlo-switch>span{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px #00000040}.carlo-switch[data-on="1"]>span{left:18px}.carlo-foot{display:flex;gap:10px;padding:12px 20px 18px;border-top:1px solid #e2e8f0}.carlo-foot .carlo-btn{flex:1;justify-content:center;padding:11px 14px;font-size:15px}.carlo-notice{padding:10px 12px;border-radius:8px;font-size:13px}.carlo-notice.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.carlo-notice.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.carlo-notice.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}.carlo-fine{font-size:11px;color:#94a3b8}.carlo-fine button{font:inherit;color:#64748b;background:none;border:none;padding:0;cursor:pointer;text-decoration:underline}.carlo-anno{background:#fff;border-radius:12px;width:min(920px,100%);max-height:94vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #00000059}.carlo-anno-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 8px}.carlo-anno-head h3{margin:0;font-size:16px}.carlo-anno-tools{display:flex;gap:10px;align-items:center;padding:0 18px 10px;flex-wrap:wrap}.carlo-tool-group{display:inline-flex;gap:4px;border:1px solid #e2e8f0;border-radius:8px;padding:4px}.carlo-tool{width:32px;height:32px;border-radius:6px;border:none;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#0f172a}.carlo-tool[data-on="1"]{background:var(--color-brand, #1e3a8a);color:#fff}.carlo-swatch{width:26px;height:26px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0}.carlo-swatch[data-on="1"]{border-color:#0f172a;box-shadow:0 0 0 2px #fff inset}.carlo-anno-canvas{flex:1;overflow:auto;padding:0 18px;display:flex;justify-content:center;background:#f8fafc}.carlo-anno-canvas canvas{max-width:100%;height:auto;border:1px solid #e2e8f0;background:#fff;cursor:crosshair;touch-action:none}.carlo-anno-foot{display:flex;gap:10px;padding:12px 18px 16px}.carlo-anno-foot .carlo-btn{flex:1;justify-content:center}.carlo-crash{margin:24px;padding:20px 22px;border:1px solid #fecaca;background:#fef2f2;border-radius:12px;color:#7f1d1d}.carlo-crash h2{margin:0 0 6px;font-size:17px}.carlo-crash pre{white-space:pre-wrap;font-size:12px;background:#fff;border:1px solid #fecaca;border-radius:8px;padding:10px;max-height:180px;overflow:auto}.carlo-side{display:flex;align-items:center;gap:8px}.carlo-table{border-collapse:collapse}.carlo-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#64748b;padding:8px 10px;border-bottom:1px solid #e2e8f0}.carlo-table td{padding:8px 10px;border-bottom:1px solid #f1f5f9;vertical-align:top}.carlo-table tbody tr:hover{background:#f8fafc}.app-shell{display:flex;height:100vh;overflow:hidden}.app-main{flex:1;overflow-y:auto;background:var(--color-bg);display:flex;flex-direction:column}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-brand: #e8a020;--color-brand-dark: #c88010;--color-sidebar-bg: #0f172a;--color-sidebar-txt: #cbd5e1;--color-sidebar-txt-hover: #ffffff;--color-sidebar-section: #94a3b8;--color-sidebar-logo-bg: #ffffff;--sidebar-logo-size: 44px;--color-bg: #f1f5f9;--color-surface: #ffffff;--color-border: #e2e8f0;--color-text: #1e293b;--color-text-muted: #64748b;--color-primary: #6366f1;--color-danger: #dc2626;--color-success: #22c55e;--radius: 8px;--shadow-sm: 0 1px 3px rgba(0,0,0,.08);--shadow-md: 0 4px 12px rgba(0,0,0,.1);--font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size-base: 14px}body{font-family:var(--font-family-base);font-size:var(--font-size-base);color:var(--color-text);background:var(--color-bg);height:100vh;width:100%;overflow:hidden}#root{height:100vh;width:100%;display:flex}.app-shell{width:100%}a{color:inherit;text-decoration:none}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:14px;border:1px solid var(--color-border);border-radius:var(--radius);padding:8px 12px;outline:none;width:100%;background:var(--color-surface);color:var(--color-text)}input:focus,select:focus,textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #6366f126}input[type=radio],input[type=checkbox]{width:auto;border:none;padding:0;border-radius:0;box-shadow:none;accent-color:var(--color-primary)}input[type=radio]:focus,input[type=checkbox]:focus{box-shadow:none}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
