.communities-dialog{width:min(1060px,calc(100vw - 32px));max-width:none;height:min(850px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #c5d9d0;border-radius:12px;color:#163c45;background:#f8fbfa;overflow:hidden}
.communities-dialog[open]{display:flex;flex-direction:column}.communities-dialog::backdrop{background:#123b3c70}
.communities-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #d2e2d9;background:#fff;flex-shrink:0}
.communities-head small{color:#57756b;letter-spacing:.09em;font-size:11px}.communities-head h2{font-size:24px;line-height:1.2;margin:5px 0 0}
.communities-dialog button,.communities-entry button{min-height:42px;padding:9px 13px;border:1px solid #90b7a5;border-radius:5px;background:#fff;color:#16604e;cursor:pointer;font:inherit}
.communities-dialog button:hover,.communities-entry button:hover{background:#e5f2ed}.communities-dialog button:disabled{opacity:.5;cursor:default}
.communities-head>button{flex-shrink:0}.communities-tabs{display:flex;gap:6px;padding:10px 24px;border-bottom:1px solid #d2e2d9;flex-shrink:0}
.communities-tabs button{border:0;border-radius:4px;background:transparent}.communities-tabs button[aria-selected=true]{background:#16604e;color:white}
.communities-body{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;flex:1;padding:20px 24px;line-height:1.5}
.communities-body p{margin:0 0 12px}.communities-body h3{font-size:17px;margin:0 0 8px}.communities-scope{font-weight:600}.communities-lead{font-size:17px}
.communities-note{color:#536a63;font-size:13px}.communities-count{font-weight:600;font-size:13px;margin-top:16px!important}
.communities-layers{border:1px solid #c6dbd1;border-radius:6px;background:#fff;margin:14px 0}
.communities-layers summary{padding:12px;cursor:pointer;font-weight:600}.communities-layers label{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-top:1px solid #e0ebe5;cursor:pointer}
.communities-layers input{accent-color:#16604e;width:18px;height:18px}.communities-layers small{margin-left:auto;font-size:12px;color:#576e64}
.communities-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0 20px}.communities-actions button{background:#16604e;color:white}
.communities-actions button:hover{background:#237660}.communities-dialog a{color:#16604e;font-size:13px}
.communities-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.communities-filters input,.communities-filters select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #a7c4b7;border-radius:5px;background:white;color:#163c45;font-size:15px;box-sizing:border-box}
.communities-records{display:grid;grid-template-columns:1fr 1fr;gap:14px}.community-record{padding:16px;border:1px solid #d0e0d7;border-radius:7px;background:white;margin-bottom:12px;min-width:0;overflow-wrap:anywhere}
.communities-records .community-record{margin:0}.community-record-title{display:flex;align-items:center;gap:10px}.community-record-title h3{margin:0 0 5px}.community-record-title i{flex-shrink:0}
.community-record>small{display:block;font-size:12px;color:#58766b;margin-bottom:10px}.community-relation{border-left:3px solid #54ae91;padding-left:10px;margin:10px 0 12px;font-size:13px}
.community-relation span{display:block;margin:3px 0}.communities-empty{grid-column:1/-1;padding:22px;background:#edf4f0;border-radius:6px}
.local-preview-badge{font-size:11px;color:#16604e;border:1px solid #9bc5b3;background:#edf6f1;padding:5px 8px;border-radius:4px;white-space:nowrap}
.explorer-layer-choices .communities-menu-link{margin:8px 10px;min-height:40px;border:1px solid #9fbeaf;border-radius:4px;background:#f0f7f3;color:#16604e;padding:8px 12px;cursor:pointer}
@media(max-width:650px){.communities-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:8px}.communities-head{padding:14px 12px;align-items:flex-start}.communities-head h2{font-size:19px}.communities-head>button{font-size:12px;padding:8px;min-height:40px}.communities-head small{font-size:9px}.communities-tabs{padding:8px;gap:2px}.communities-tabs button{font-size:12px;padding:7px 8px;flex:1}.communities-body{padding:14px 12px}.communities-filters,.communities-records{grid-template-columns:1fr}.communities-layers small{margin-left:28px;width:100%}.local-preview-badge{display:none}.communities-actions a{font-size:12px}}
