/* Hometown Community Hub 9.7.6 — Community Pages, Messenger 2.0, Alerts */
body.hcm972-messenger-page .mainwrap main.content{padding-top:0!important;padding-bottom:0!important;max-width:none!important}
body.hcm972-messenger-page .hcm976-messenger{
  flex:1 1 auto;min-height:0;display:grid;grid-template-columns:340px minmax(0,1fr);
  overflow:hidden;background:#0e1916;color:#eef8f2;border:1px solid #27443a;border-radius:16px;
  box-shadow:0 18px 60px #030b0826;margin:8px 14px 14px;
}
body.hcm972-messenger-page .hcm976-messenger :is(button,input){font:inherit}
body.hcm972-messenger-page .hcm976-chat-inbox,
body.hcm972-messenger-page .hcm976-chat-stage{display:flex!important;flex-direction:column;min-height:0!important;height:100%!important;
  max-height:none!important;margin:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.hcm976-chat-inbox{background:#13231e!important;border-right:1px solid #29473b!important}
.hcm976-chat-stage{background:#0d1b17!important}
.hcm976-overline{display:block;color:#8fc8aa;font-size:10px;letter-spacing:2.1px;font-weight:800}
.hcm976-inbox-head{display:flex;align-items:center;justify-content:space-between;padding:24px 20px 12px;gap:12px;flex:none}
.hcm976-inbox-head h2{font-size:30px;color:#f4fcf6;margin:4px 0 0}
.hcm976-compose-new{display:grid;place-items:center;width:42px;height:42px;background:#216b51;color:white!important;border-radius:13px;font-size:26px}
.hcm976-chat-search{display:flex;align-items:center;gap:9px;margin:0 14px 14px!important;padding:0 13px;background:#1b3027;border:1px solid #36594a;border-radius:12px;color:#a7c9b8;flex:none;font-size:23px}
.hcm976-chat-search input,.hcm976-chat-search #hub7-chat-search{padding:12px 0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#eaf7ef!important;min-height:40px;width:100%;font-size:14px!important}
.hcm976-chat-search input::placeholder{color:#a4b8aa}
.hcm976-inbox-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 9px 20px}
.hcm976-peer-row{display:flex;align-items:center;gap:12px;padding:13px 11px;border-radius:13px;text-decoration:none;color:#edf8f1!important;transition:background .15s}
.hcm976-peer-row:hover{background:#214032}.hcm976-peer-row.selected{background:#285c47;box-shadow:inset 3px 0 #93dbb0}
.hcm976-peer-row .avatar{width:46px;height:46px;min-width:46px;object-fit:cover;font-size:15px}
.hcm976-peer-info{display:flex;flex-direction:column;min-width:0;gap:5px;flex:1}
.hcm976-peer-info strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcm976-peer-info small{font-size:12px;color:#aac1b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcm976-peer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;color:#a0b9a8;font-size:10px;white-space:nowrap}
.hcm976-peer-meta b{background:#74d39e;color:#102c1f;border-radius:99px;padding:2px 7px;font-size:11px}
.hcm976-inbox-empty{padding:22px;color:#b5cbbc}.hcm976-inbox-empty a{color:#8fe6b3}
.hcm976-chat-head{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #2e493c;background:#12251d;min-height:78px}
.hcm976-chat-head .avatar{width:45px;height:45px;min-width:45px}
.hcm976-chat-identity{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.hcm976-chat-identity strong{color:#f5fff8;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcm976-chat-identity small{font-size:11px;color:#a8c1b2}
.hcm976-mobile-back{display:none;color:#bdeecb;font-size:27px}
.hcm976-pin-form{margin:0!important}.hcm976-pin-form button{color:#c6e9d2!important;background:#233e31!important;border:1px solid #3c614d!important;border-radius:10px;padding:9px 12px;font-size:12px!important}
.hcm976-chat-stage>.hcm976-message-history{flex:1 1 auto!important;min-height:0!important;height:0!important;overflow-y:auto!important;overflow-x:hidden;
  display:flex!important;flex-direction:column!important;gap:5px;padding:24px clamp(15px,4vw,55px)!important;
  background:radial-gradient(ellipse at top,#143027 0%,#0e1d19 62%)!important;overscroll-behavior:contain}
.hcm976-day{display:flex;justify-content:center;margin:16px 0 20px;flex-shrink:0}
.hcm976-day span{background:#274438;color:#c8e2d0;border:1px solid #375747;border-radius:999px;padding:6px 14px;font-size:11px;font-weight:700}
.hcm976-chat-stage .bubblemsg{flex:0 0 auto!important;max-width:min(78%,540px)!important;width:max-content!important;margin:3px 0 4px!important;
  border-radius:17px 17px 17px 5px!important;padding:11px 13px 7px!important;background:#253c31!important;
  color:#f0f7f1!important;box-shadow:0 6px 18px #0002;align-self:flex-start!important;overflow-wrap:anywhere}
.hcm976-chat-stage .bubblemsg.mine{align-self:flex-end!important;border-radius:17px 17px 5px 17px!important;background:#18684e!important;color:#fff!important}
.hcm976-message-copy{white-space:pre-wrap;font-size:14px;line-height:1.48}
.hcm976-message-image{display:block;max-width:300px;margin:3px 0 6px}.hcm976-message-image img{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:12px}
.hcm976-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:5px;min-height:18px}
.hcm976-message-meta small{color:#d1e6d7;font-size:10px;opacity:.85}
.hcm976-react-form{margin:0!important;display:inline-flex!important}
.hcm976-react-form button{background:transparent!important;border:0!important;padding:1px 2px!important;color:#e4ffdc!important;font-size:11px!important;line-height:1.3!important}
.hcm976-typing{padding:5px 19px;color:#a3d9b5;background:#12251d}
.hcm976-chat-stage>.hcm976-message-composer{flex:0 0 auto!important;display:flex!important;align-items:center;gap:11px;padding:13px 18px!important;margin:0!important;
  background:#15291f!important;border-top:1px solid #305344!important;min-height:78px;z-index:2}
.hcm976-message-composer input[name="body"]{background:#203c30!important;color:#effbf2!important;border:1px solid #456552!important;
  height:48px!important;min-height:48px!important;border-radius:22px!important;flex:1!important;padding:0 17px!important;font-size:16px!important;margin:0!important;width:auto!important}
.hcm976-message-composer input[name="body"]::placeholder{color:#a6bdaf}
.hcm976-message-composer>button.primary{background:#2a9770!important;color:white!important;display:grid;place-items:center;
  width:48px;height:48px;border:0!important;border-radius:50%!important;padding:0!important;font-size:19px!important;flex:none}
.hcm976-attach{display:grid!important;place-items:center;width:44px;height:44px;flex:none;margin:0!important;border-radius:50%;background:#294c3c;color:#cef4d9!important;cursor:pointer;font-size:28px!important}
.hcm976-attach input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.hcm976-attach:focus-within{outline:2px solid #a9ebbc}
.hcm976-attach.is-selected{background:#267c55}
.hcm976-empty-chat{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:35px;color:#c8e0d0}
.hcm976-empty-chat>span{font-size:50px;color:#87d6a8}.hcm976-empty-chat h2{color:#fff;font-size:24px}.hcm976-empty-chat p{max-width:270px}
.hcm976-empty-chat a{background:#278b68;color:white;border-radius:12px;padding:11px 18px;font-weight:800}
body.hcm972-messenger-page .mainwrap>footer{display:none!important}
/* Community Pages 2.0 */
.hcm976-group-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #375046;margin-bottom:16px}
.hcm976-group-tabs a{font-size:13px;font-weight:800;color:var(--hcm-text,#d8e9dc);padding:10px 15px;border-radius:9px;border:1px solid #486556;background:rgba(57,103,78,.13)}
.hcm976-group-tabs a:hover{background:#28513b;color:white}
.hcm976-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.hcm976-section-head h2{font-size:21px}.hcm976-section-head span{font-size:12px;color:var(--muted,#99aca0)}
.hcm976-group-members,.hcm976-group-photos,.hcm976-group-about{padding:20px;margin:14px 0;border:1px solid #3d5848;border-radius:15px;background:rgba(64,101,81,.08);scroll-margin-top:90px}
.hcm976-member-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}.hcm976-member-row a{min-width:90px;max-width:120px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:10px 4px;border-radius:12px;color:inherit;font-size:11px}
.hcm976-member-row a:hover{background:#345742}.hcm976-member-row .avatar{width:42px;height:42px}
.hcm976-member-row span{overflow-wrap:anywhere}
.hcm976-photos-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.hcm976-photos-grid a{display:block;aspect-ratio:1;background:#264339;overflow:hidden;border-radius:10px}.hcm976-photos-grid img{height:100%;width:100%;object-fit:cover}
.hcm976-community-card{overflow:hidden;padding:0 0 20px!important}.hcm976-community-card>:not(.hcm976-card-cover){margin-left:18px;margin-right:18px}
.hcm976-card-cover{display:block;height:145px;margin:0 0 15px!important;overflow:hidden;background:linear-gradient(130deg,#174637,#458066)}
.hcm976-card-cover img{display:block;width:100%;height:100%;object-fit:cover}.hcm976-cover-default{display:grid;place-items:center;font-size:55px;color:#d2f5d6}
/* Alerts */
.hcm976-alerts{max-width:1000px;margin:auto}.hcm976-alerts-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 28px}.hcm976-alerts-head h1{margin:8px 0}.hcm976-alerts-head p{color:var(--muted,#a5b8aa)}
.hcm976-alert-list{display:grid;gap:14px}.hcm976-alert{padding:22px;border:1px solid #4a654f;border-left:5px solid #53a27b;border-radius:15px;background:#203c2e;color:#eaf8f0;scroll-margin-top:90px}
.hcm976-alert-important{border-left-color:#f1be55}.hcm976-alert-emergency{border-left-color:#ef716d;background:#352b2b}
.hcm976-alert-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px}.hcm976-alert-type{font-weight:800;text-transform:uppercase;letter-spacing:.9px;color:#b1e5c5}
.hcm976-alert-important .hcm976-alert-type{color:#ffe4a0}.hcm976-alert-emergency .hcm976-alert-type{color:#ffc4c3}
.hcm976-alert-heading time{color:#b3c5b9}.hcm976-alert h2{margin:14px 0 7px;font-size:21px;color:#fff}.hcm976-alert p{line-height:1.65}.hcm976-alert small{color:#b8c9c0}
/* Light theme parity */
html[data-theme="light"] .hcm976-group-tabs a{color:#28513e;border-color:#d1e2d7}
html[data-theme="light"] .hcm976-group-members,html[data-theme="light"] .hcm976-group-photos,html[data-theme="light"] .hcm976-group-about{background:#f5faf6;border-color:#d2e2d7;color:#254938}
html[data-theme="light"] .hcm976-alert{background:#f5faf6;border-color:#c4dbc9;border-left-color:#328f68;color:#244736}
html[data-theme="light"] .hcm976-alert-important{border-left-color:#d79724}
html[data-theme="light"] .hcm976-alert-emergency{background:#fff6f6;border-left-color:#d34f4b}
html[data-theme="light"] .hcm976-alert h2{color:#18382d}
html[data-theme="light"] .hcm976-alert-heading time,html[data-theme="light"] .hcm976-alert small{color:#5c7164}
html[data-theme="light"] .hcm976-alert-type{color:#286347}
html[data-theme="light"] .hcm976-alert-important .hcm976-alert-type{color:#856314}
html[data-theme="light"] .hcm976-alert-emergency .hcm976-alert-type{color:#a83e3a}
@media(max-width:950px){
 body.hcm972-messenger-page .hcm976-messenger{grid-template-columns:minmax(0,1fr);margin:0!important;border:0!important;border-radius:0!important}
 body.hcm972-messenger-page .hcm976-chat-inbox,body.hcm972-messenger-page .hcm976-chat-stage{grid-area:1/1;min-height:0!important}
 body.hcm972-messenger-page.hcm974-chat-active .hcm976-chat-inbox{display:none!important}
 body.hcm972-messenger-page.hcm974-chat-inbox .hcm976-chat-stage{display:none!important}
 body.hcm972-messenger-page .hcm976-mobile-back{display:block}
 body.hcm972-messenger-page main.content{padding:0 0 76px!important}
 .hcm976-photos-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .hcm976-chat-head{padding:9px 12px;min-height:65px}.hcm976-chat-head .avatar{width:38px;height:38px;min-width:38px}
 .hcm976-chat-stage>.hcm976-message-history{padding:16px 14px!important}
 .hcm976-chat-stage .bubblemsg{max-width:86%!important}
 .hcm976-chat-stage>.hcm976-message-composer{padding:9px 11px!important;min-height:65px}
 .hcm976-attach{width:38px;height:38px}.hcm976-message-composer>button.primary{width:44px;height:44px}
 .hcm976-message-composer input[name="body"]{height:44px!important;min-height:44px!important}
 .hcm976-pin-form button{padding:6px 8px!important}
 .hcm976-group-members,.hcm976-group-photos,.hcm976-group-about{padding:14px}
 .hcm976-alerts-head{align-items:flex-start;flex-direction:column}.hcm976-alert{padding:17px}
}
