.chat-layout{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.chat-list,.chat-thread{padding:16px;min-width:0}.chat-contact{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin-top:10px;padding:12px;background:#103247;border:1px solid #315263;border-radius:16px}.chat-contact>span:nth-child(2){flex:1;min-width:0}.chat-contact small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px;color:#a8c4d4;font-size:12px}.chat-count{background:#00bddd;color:#052031;border-radius:20px;padding:4px 8px}.chat-heading{padding-bottom:14px;border-bottom:1px solid #315263}.chat-heading small{display:block;color:#a8c4d4;margin-top:5px}.chat-history{display:flex;flex-direction:column;gap:12px;max-height:48dvh;min-height:160px;overflow-y:auto;padding:16px 0}.chat-bubble{align-self:flex-start;max-width:88%;padding:12px 16px;border-radius:18px 18px 18px 4px;background:#173c52;overflow-wrap:anywhere}.chat-bubble.mine{align-self:flex-end;background:#075c4d;border-radius:18px 18px 4px 18px}.chat-bubble p{white-space:pre-wrap;margin:0}.chat-bubble time{font-size:11px;display:block;color:#b4d6d4;margin-top:7px}.chat-composer{display:grid;gap:8px}.chat-composer textarea{width:100%;box-sizing:border-box;resize:vertical}.chat-composer small{color:#a8c4d4;font-size:11px}
.chat-layout{display:block}.chat-thread{margin-top:8px}.chat-contact[aria-expanded="true"]{border-color:#00c8ee;background:#17475e}.chat-thread[hidden]{display:none}

.community-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.community-tabs button[aria-pressed=true]{background:#007de7;color:white}nav [data-go="messages"],nav [data-action="messages"]{position:relative}.community-badge{position:absolute;top:0;right:12%;min-width:18px;padding:2px 5px;border-radius:12px;background:#ed4364;color:white;font-size:11px;line-height:1.2}

.community-screen{max-width:900px;margin-inline:auto}.community-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px}.community-toolbar .community-tabs{flex:1;display:grid;grid-template-columns:1fr 1fr;margin:0;gap:6px;padding:5px;background:#0b2333;border:1px solid #294958;border-radius:18px}.community-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border:0;border-radius:13px;font-weight:650}.community-unread{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;box-sizing:border-box;border-radius:20px;background:#dc3151;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #102b3c}.community-unread[hidden],[data-direct-inbox][hidden]{display:none!important}.community-options{position:relative;flex-shrink:0}.community-options summary{cursor:pointer;padding:12px;min-height:44px;box-sizing:border-box;border-radius:12px;list-style:none;color:#c8e3ef}.community-options summary::-webkit-details-marker{display:none}.community-options[open]>div{position:absolute;right:0;top:100%;z-index:5;width:230px;max-width:80vw;padding:8px;background:#143448;border:1px solid #396274;border-radius:14px;box-shadow:0 12px 30px #0008}.community-options>div button{display:block;width:100%;text-align:left;margin:0;padding:12px;background:transparent;border:0}.community-heading{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #315263}.community-heading>div{flex:1;min-width:0}.community-heading h2{font-size:18px;line-height:1.35;margin:0;overflow-wrap:anywhere}.community-heading p{margin:4px 0 0;font-size:12px}.community-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:#164b63;color:#c4f4ff;font-weight:750;font-size:18px;border:1px solid #36758a}.community-group-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.community-group-actions>button{font-size:13px}.community-conversation .chat-history{min-height:210px;max-height:46dvh;padding:20px 4px}.community-empty{margin:auto;text-align:center;color:#aec7d5;padding:24px 12px;align-self:center}.community-empty>span{display:block;font-size:30px;margin-bottom:10px}.community-empty strong{display:block;color:#e5f2f8;font-size:16px}.community-empty p{font-size:13px;line-height:1.6}.community-composer{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding-top:14px;border-top:1px solid #315263}.community-composer label{margin:0;min-width:0}.community-composer textarea{width:100%;min-height:52px;max-height:150px;resize:vertical;box-sizing:border-box;margin:0;border-radius:18px}.community-composer button{min-height:52px;margin:0;border-radius:18px;padding:12px 18px}.community-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.community-inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.community-inbox-heading h2{margin:0;font-size:20px}.community-inbox-heading p{font-size:13px}.community-search{display:block;margin:16px 0;font-size:12px;color:#abc7d7}.community-search input{width:100%;box-sizing:border-box;margin-top:6px;border-radius:16px;padding:12px}.community-contact{gap:12px;padding:14px 10px;border:0;border-bottom:1px solid #294958;background:transparent;border-radius:0;margin:0}.community-contact.has-unread{background:#12384b;border-radius:14px}.community-contact-name{flex:1;min-width:0}.community-contact-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-contact-name small{margin-top:5px;max-width:none}.community-contact-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.community-contact-meta time{font-size:11px;color:#a8c4d4}.community-screen [role=status]:empty{display:none}
@media(max-width:480px){.community-toolbar{gap:4px}.community-tabs button{font-size:12px;padding:8px 5px;gap:5px}.community-toolbar>.community-options summary{padding:10px 6px}.community-heading{gap:8px}.community-heading h2{font-size:16px}.community-avatar{width:38px;height:38px;font-size:16px}.community-conversation{padding:14px!important}.community-composer{gap:7px}.community-composer button{padding:12px;font-size:13px}.community-inbox-heading>.primary{width:100%}}

.official-card{padding:20px;border-radius:18px;border:2px solid var(--official-accent);background:#0c293b;color:#f4f8fc;margin:16px 0}.official-card h2{color:var(--official-accent)}.official-card p{white-space:pre-wrap;overflow-wrap:anywhere}.official-blue{--official-accent:#56caff}.official-green{--official-accent:#65edb8}.official-orange{--official-accent:#ffd18a}.official-purple{--official-accent:#c6a4ff}
