#communityPanel[hidden]{display:none!important}#communityPanel{position:fixed;inset:0;z-index:100020;background:rgba(4,10,20,.85);display:grid;place-items:center;color:#e8f0ff;font:15px Arial,sans-serif}#communityPanel .community-window{width:min(1200px,94vw);height:90vh;overflow:auto;background:#101d30;border:1px solid #34506b;border-radius:18px;padding:28px}#communityPanel header,#communityPanel nav,.community-pages{display:flex;align-items:center;justify-content:space-between;gap:16px}#communityPanel nav{justify-content:flex-start;margin:20px 0;flex-wrap:wrap}#communityPanel h1{font-size:30px;margin:6px 0}#communityPanel h2{font-size:20px;color:#e8f0ff}#communityPanel small{color:#7fdccc;letter-spacing:1px}#communityPanel article{background:#17283e;border:1px solid #30455e;padding:20px;border-radius:12px;margin-bottom:16px}#communityPanel p{color:#aebed0;line-height:1.6}#communityPanel button,#communityPanel select{background:#223b56;color:#fff;border:1px solid #456580;border-radius:8px;padding:9px 13px}#communityPanel button:disabled{opacity:.4}#communityPanel button:focus-visible,#communityPanel select:focus-visible{outline:2px solid #80ead7}.community-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.community-kpis strong{display:block;font-size:27px;margin-top:10px}.community-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.community-bar{margin:14px 0}.community-bar div{display:flex;justify-content:space-between;gap:12px}.community-bar progress{width:100%;height:12px;accent-color:#6ce0c7}.community-table{overflow:auto;margin:15px 0}#communityPanel table{width:100%;border-collapse:collapse;white-space:nowrap}#communityPanel th,#communityPanel td{text-align:left;padding:12px;border-bottom:1px solid #30455e}#communityPanel th{color:#7fdccc}@media(max-width:800px){.community-grid{grid-template-columns:1fr}.community-kpis{grid-template-columns:repeat(2,1fr)}}


/* Community appearance is isolated from the framework menu. */
#communityPanel{--community-accent:#6ce0c7;--community-base:16,29,48;--community-card:#17283e;--community-border:#30455e;--community-opacity:.96;--community-radius:16px;display:block;font-family:system-ui,sans-serif}
#communityPanel *{box-sizing:border-box}
#communityPanel .community-window{position:absolute;display:flex;flex-direction:column;overflow:hidden;padding:24px;background:rgba(var(--community-base),var(--community-opacity));border-color:var(--community-border);border-radius:var(--community-radius);box-shadow:0 24px 90px #0009;max-width:none;max-height:none}
#communityPanel .community-window[data-background=gradient]{background-image:radial-gradient(ellipse at top right,color-mix(in srgb,var(--community-accent) 15%,transparent),transparent 65%)}
#communityPanel .community-window[data-background=grid]{background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:28px 28px}
#communityPanel .community-window[data-background=csrp]{background-image:linear-gradient(#101d30d9,#101d30ef),url('../images/csrp-home-logo-v4.png');background-size:cover,65%;background-position:center;background-repeat:no-repeat}
#communityPanel .community-window[data-background=police]{background-image:linear-gradient(#101d30dd,#101d30ed),url('../images/supervisor-backgrounds/police-v2.png');background-size:cover;background-position:center}
#communityPanel .community-window[data-background=sheriff]{background-image:linear-gradient(#101d30dd,#101d30ed),url('../images/supervisor-backgrounds/sheriff-v2.png');background-size:cover;background-position:center}
#communityPanel header{flex-shrink:0;padding-bottom:18px;border-bottom:1px solid var(--community-border);flex-wrap:wrap}
#communityPanel .community-brand{display:flex;align-items:center;gap:16px;cursor:grab;touch-action:none;user-select:none;min-width:0}
#communityPanel .community-brand:active{cursor:grabbing}
#communityPanel .community-brand img{width:76px;height:76px;object-fit:contain;flex-shrink:0}
#communityPanel .community-brand h1{font-size:1.9em;line-height:1.15;margin:6px 0;color:#eef6ff}
#communityPanel .community-brand span{font-size:.85em;color:#aebed0}
#communityPanel .community-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#communityPanel nav{flex-shrink:0;margin:16px 0;justify-content:space-between}
#communityPanel main{overflow:auto;min-height:0;flex:1;padding-right:8px;scrollbar-width:thin;scrollbar-color:var(--community-accent) transparent}
#communityPanel article{background:var(--community-card);border-color:var(--community-border);border-radius:var(--community-radius);padding:18px}
#communityPanel .community-profile{border-left:3px solid var(--community-accent)}
#communityPanel h2{font-size:1.2em;margin:0 0 12px;font-weight:650}
#communityPanel p{font-size:.9em;margin:8px 0}
#communityPanel small,#communityPanel th{color:var(--community-accent)}
#communityPanel button,#communityPanel select,#communityPanel input{font:inherit;color:#eef6ff;background:var(--community-card);border:1px solid var(--community-border);border-radius:8px}
#communityPanel button{cursor:pointer}
#communityPanel button:hover{border-color:var(--community-accent)}
#communityPanel button:focus-visible,#communityPanel select:focus-visible,#communityPanel input:focus-visible,#communityPanel .community-brand:focus-visible{outline:2px solid var(--community-accent);outline-offset:3px}
#communityPanel progress,#communityPanel input{accent-color:var(--community-accent)}
#communityPanel .community-kpis strong{font-size:1.85em}
#communityPanel .community-kpis small{font-size:.7em}
#communityPanel .community-settings[hidden]{display:none!important}
#communityPanel .community-settings{flex-shrink:0;max-height:55%;overflow:auto;background:var(--community-card);border:1px solid var(--community-border);border-radius:var(--community-radius);padding:20px;margin-bottom:18px}
#communityPanel .community-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:16px 0}
#communityPanel .community-settings label{display:flex;flex-direction:column;gap:8px;font-size:.9em}
#communityPanel .community-settings input[type=color]{width:100%;height:38px;padding:4px}
#communityPanel .community-settings input[type=range]{width:100%}
#communityPanel .community-settings .community-check{flex-direction:row;align-items:center}
#communityPanel .community-resize{position:absolute;right:3px;bottom:3px;font-size:22px;padding:0 7px;background:transparent;border:0;cursor:nwse-resize;touch-action:none;color:var(--community-accent)}
#communityPanel .community-compact article{padding:12px;margin-bottom:10px}
#communityPanel .community-compact th,#communityPanel .community-compact td{padding:8px}
#communityPanel .community-compact .community-kpis,#communityPanel .community-compact .community-grid{gap:10px}
@media(max-width:800px){#communityPanel .community-window{padding:16px}#communityPanel .community-brand img{width:48px;height:48px}#communityPanel .community-brand h1{font-size:1.45em}#communityPanel .community-brand span{display:none}}

