/* Shared, compact creation flow for groups and private broadcast lists. */
body.communityPage #communityCreate[open]{display:flex;flex-direction:column;position:fixed;inset:calc(var(--vobix-menu-top,0px) + var(--vobix-safe-top,0px) + 8px) 0 auto;margin:0 auto;padding:0!important;width:min(500px,calc(100vw - 24px));height:calc(var(--vobix-menu-height,100dvh) - var(--vobix-safe-top,0px) - var(--vobix-menu-safe-bottom,0px) - 16px);max-height:780px!important;max-width:100vw;overflow:hidden;border-radius:24px;background:#fff!important;color:#173c55!important;box-sizing:border-box}
#communityCreate .communityCreateHeader{display:flex;align-items:center;gap:12px;flex:none;padding:14px 16px;border-bottom:1px solid #e8eef3;background:#fff}
#communityCreate .communityCreateHeader button{width:44px;height:44px;border:0;border-radius:50%;background:#eef6fb;color:#1477b7;font-size:25px;flex:none}
#communityCreate .communityCreateHeader h2{font-size:21px;margin:0;line-height:1.2;text-align:left}
#communityCreate .communityCreateHeader p{font-size:13px;color:#708496;margin:5px 0 0}
#communityCreateForm{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;margin:0}
#communityCreate .communityCreateBody{min-height:0;flex:1;overflow:auto;padding:12px 18px;overscroll-behavior:contain}
#communityCreate [hidden]{display:none!important}
#communityCreate .communityContactSearch{position:sticky;top:-12px;z-index:2;background:#fff;padding:0 0 6px}
#communityCreate #contactFilter{margin:0;background:#f0f5f9!important;border:0!important;border-radius:14px;height:46px;font-size:16px;color:#173c55!important}
#communityCreate .communityContacts{max-height:none;overflow:visible}
#communityCreate .directoryHeading{font-size:12px;font-weight:600;color:#728397;margin:15px 0 6px}
#communityCreate .communityContact{display:flex!important;align-items:center;gap:12px;min-height:72px;padding:10px 0;border:0;border-bottom:1px solid #eef2f5;cursor:pointer}
#communityCreate .communityContact:has(input:checked){background:#f2f9ff}
#communityCreate .communityContact input{width:23px!important;height:23px;margin:0!important;flex:none;accent-color:#0786d9}
.communityPersonAvatar{display:block;flex:none;width:46px;height:46px;position:relative;border-radius:50%;overflow:hidden}
.communityPersonName,.communityMemberName{flex:1;min-width:0;overflow-wrap:anywhere}
.communityPersonName b{font-size:16px;font-weight:600;display:block;color:#163d56}
.communityPersonName small{display:block;color:#7c8c99;font-size:12px;margin-top:4px}
#communityCreate .communityTextButton,.communityTextButton{background:none!important;border:0!important;color:#087cce!important;font-size:14px;min-height:44px;padding:6px 8px;cursor:pointer}
#communityCreate .contactFindButton{margin:12px 0;width:100%;background:#edf7fe!important;color:#0875bd!important;box-shadow:none!important}
#communityCreate .communitySelected{display:flex;gap:12px;overflow:auto;padding:10px 0;max-height:98px;scrollbar-width:thin}
#communityCreate .communitySelectedPerson{background:none!important;color:#40566a!important;border:0;padding:0;flex:none;width:56px;position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px}
.communitySelectedPerson>span:last-of-type{max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.communitySelectedPerson i{font:normal 14px system-ui;position:absolute;top:30px;right:2px;width:19px;height:19px;border-radius:50%;background:#e9f1f8;border:2px solid #fff;color:#345;display:grid;place-items:center}
body.communityPage #communityCreate .communityCreateFooter{flex:none;position:static;z-index:3;margin:0;padding:12px 18px;border-top:1px solid #e4edf5;background:#fff}
.communityCreateFooter>div{display:flex;gap:12px;align-items:center;justify-content:space-between}
#communityCreate #contactSelection{font-size:13px;color:#6e8392;margin:0;line-height:1.4}
#communityCreate #communityCreateStatus{font-size:13px;line-height:1.4;margin:0 0 8px;color:#3a69a6;max-height:60px;overflow:auto}
#communityCreate #communityCreateStatus:empty{display:none}
#communityCreate #createCommunitySubmit{border-radius:24px!important;min-height:48px;min-width:128px;padding:10px 17px!important;background:#0787df!important;color:#fff!important;box-shadow:none!important;font-size:15px;white-space:nowrap}
#communityCreate button:disabled{opacity:.5;cursor:default}
#communityCreate #createNameFields{margin:0;padding:24px 24px 16px;border:0}
.communityPicture{width:62px;height:62px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:20px;background:linear-gradient(145deg,#e6f7ff,#d3eaff);color:#1680c6}
.communityPicture svg{width:55%;height:55%}
.communityPicture img{width:100%;height:100%;object-fit:cover}
#communityCreate .communityPhotoChoice{width:130px;margin:0 auto 14px;position:relative;text-align:center;font-size:14px;color:#0781cf;cursor:pointer;line-height:1.4}
#communityCreate .communityPhotoChoice .communityPicture{width:104px;height:104px;border-radius:50%;margin:0 auto 9px}
#communityCreate .communityPhotoChoice input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;margin:0}
#communityCreate #removeCommunityPhoto{display:block;margin:-6px auto 12px}
#communityCreate #communityNameLabel{font-size:13px;color:#728397;margin:16px 0 0}
#communityCreate #communityName{background:#f2f7fb!important;color:#173c55!important;border:1px solid #dbe8f0!important;margin:7px 0 18px;font-size:18px}
#communityCreate #groupKindFields summary{font-size:13px;color:#738896;cursor:pointer}
#communityCreate #groupKind{font-size:15px;background:#f6f9fc!important}
#communityCreate #communityCreateSummary{font-size:13px;margin-top:20px;line-height:1.5}
.communitySrOnly{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden}
body.communityPage :is(#groupList,#broadcastList) .communityCard{display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;grid-template-areas:"avatar title action" "avatar meta action"!important;column-gap:12px;align-items:center;padding:16px!important;min-height:92px}
body.communityPage :is(#groupList,#broadcastList) .communityCard::before{display:none!important}
body.communityPage :is(#groupList,#broadcastList) .communityPicture{grid-area:avatar;width:54px;height:54px;border-radius:18px}
body.communityPage :is(#groupList,#broadcastList) .communityCard h3{grid-area:title;margin:0;font-size:16px;overflow-wrap:anywhere}
body.communityPage :is(#groupList,#broadcastList) .communityCard p{grid-area:meta;margin:4px 0 0;font-size:12px}
body.communityPage :is(#groupList,#broadcastList) .communityCard button{grid-area:action;margin:0;min-height:44px;font-size:13px;padding:8px 12px!important;border-radius:20px!important}
.communityRoomHeading{display:flex;align-items:center;gap:14px;margin-bottom:18px}.communityRoomHeading>div{flex:1;min-width:0}.communityRoomHeading h2{margin:0;overflow-wrap:anywhere}.communityRoomHeading p{font-size:13px;color:#708396;margin:5px 0 0}
#groupRoom>.communitySectionTitle{justify-content:flex-start!important;text-align:left!important}#groupName{flex:1;min-width:0}
.communityRecipientStrip{display:flex;gap:16px;overflow:auto;margin:14px 0 20px;padding:4px 0 8px}.communityRecipient{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;max-width:78px;text-align:center;overflow-wrap:anywhere}
body.communityPage #broadcastsSection:has(#broadcastRoom:not([hidden]))>#broadcastList,body.communityPage #broadcastsSection:has(#broadcastRoom:not([hidden]))>.communitySectionTitle,body.communityPage #broadcastsSection:has(#broadcastRoom:not([hidden]))>.phaseNote{display:none}
#broadcastForm textarea{border-radius:18px!important;background:#f3f8fc!important;color:#183d54!important;border:1px solid #d8e8f3!important;min-height:110px}
#broadcastResults{font-size:14px;overflow-wrap:anywhere}#broadcastResults p{padding:6px 0;margin:0}
#communityCreate :focus-visible{outline:3px solid #138dd9;outline-offset:2px}
@media(max-width:540px){body.communityPage #communityCreate[open]{width:100vw;max-height:none!important;border-radius:0;top:var(--vobix-menu-top,0px);height:var(--vobix-menu-height,100dvh);padding:var(--vobix-safe-top,0px) 0 var(--vobix-menu-safe-bottom,0px)!important;border:0}}
html.vobixMenuKeyboardOpen body.communityPage #communityCreate[open]{padding-bottom:0!important}
@media(max-height:500px){#communityCreate .communityCreateHeader{padding:6px 14px}#communityCreate .communityCreateHeader p{display:none}#communityCreate .communityPhotoChoice{float:left;width:90px;margin:0 14px 8px 0}#communityCreate .communityPhotoChoice .communityPicture{width:64px;height:64px}#communityCreate #createNameFields{padding:12px 18px}#communityCreate #communityCreateSummary{clear:both}#communityCreate .communityCreateFooter{padding:8px 16px!important}}
.communityConfirm{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #d9e7f4;border-radius:22px;background:#fff;color:#17232c;box-shadow:0 24px 80px #07274833;font:16px/1.5 system-ui}
.communityConfirm::backdrop{background:#071b3470;backdrop-filter:blur(4px)}
.communityConfirm h2{font-size:20px;margin:0 0 12px;color:#17232c}
.communityConfirm p{margin:0 0 24px;color:#344654;overflow-wrap:anywhere}
.communityConfirm form{display:flex;flex-wrap:wrap;gap:12px}
.communityConfirm button{flex:1;min-width:100px;min-height:48px;padding:12px 16px;border:1px solid #c7def3;border-radius:12px;font:600 16px system-ui;cursor:pointer}
.communityConfirm button[value=cancel]{background:#edf5ff;color:#164f85}
.communityConfirm button[value=accept]{background:#0874d1;color:#fff}
.communityConfirm button:focus-visible{outline:3px solid #82bfff;outline-offset:3px}
