
.chat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;padding:0 .25rem;border-radius:1rem;background:#9e4035;color:#fff;font-size:.72rem;font-weight:700}
.chat-badge[hidden]{display:none}
.chat-reminder{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;margin:1rem auto;padding:1rem 1.25rem;width:min(92%,900px);background:#e7f3e9;color:#173f32;border:1px solid #a8c9ae;border-inline-start:5px solid #275b42;border-radius:.75rem}
.chat-reminder strong{font-size:1.12rem}
.chat-reminder p{margin:.2rem 0 0}
.chat-reminder .btn{text-decoration:none}
.chat-reminder a,.chat-bubble a{text-decoration:underline}
.chat-layout{display:grid;gap:1rem;min-width:0}
.chat-layout-admin{grid-template-columns:minmax(180px,1fr) minmax(0,3fr)}
.chat-layout section,.chat-layout aside{min-width:0}
.chat-inbox #chat-accounts{display:grid;gap:.35rem;margin-top:.6rem;max-height:55vh;overflow:auto}
.chat-inbox button{text-align:left;justify-content:space-between}
.chat-inbox button[aria-pressed=true]{background:#dcebdc}
.chat-messages{height:clamp(16rem,48vh,36rem);overflow:auto;padding:.8rem;background:#f2f5ef;border-radius:.65rem;margin:.65rem 0;display:flex;flex-direction:column;gap:.65rem}
.chat-bubble{flex:none;align-self:flex-start;max-width:88%;background:#fff;border-radius:.85rem;padding:.65rem .85rem;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-mine{align-self:flex-end;background:#d9edda}
.chat-bubble small{display:block;margin-top:.3rem;text-align:right;color:#455b50}
.chat-bubble img{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:.5rem}
.chat-read{color:#075bad;font-weight:700}
.chat-thread textarea,.chat-inbox input{width:100%}
.chat-thread form label{display:block;margin:.6rem 0}
@media(max-width:680px){.chat-layout-admin{grid-template-columns:minmax(0,1fr)}.chat-inbox #chat-accounts{max-height:11rem}.chat-messages{height:43vh}}
@media print{.chat-reminder,.chat-badge{display:none!important}}

#account-nav:has(.chat-bell){display:flex;align-items:center;gap:.45rem}
.chat-bell.btn{position:relative;flex:none;display:inline-grid;place-items:center;min-width:42px;min-height:42px;padding:.45rem;border-radius:50%}
.chat-bell .chat-badge{position:absolute;top:-.3rem;right:-.3rem}
.chat-device-controls{margin:0 0 1rem;align-items:center}
[data-chat-push-test][hidden]{display:none}
.account-popover [data-chat-push-status]{display:block;margin:.25rem 0}

#account-nav > :is(.account-menu,.chat-notifications){position:relative;border:0;margin:0;padding:0}
#account-nav .account-menu>summary,#account-nav .chat-bell{box-sizing:border-box;height:48px;margin:0}
#account-nav .chat-bell{width:48px;padding:0;list-style:none}
.chat-bell::-webkit-details-marker{display:none}
.account-chevron{display:block;flex:none}
.chat-popover h2{font-size:1rem;margin:.3rem .5rem}
.chat-popover p{margin:0;padding:.5rem}
.chat-popover.account-popover{right:0;width:min(280px,72vw)}
.chat-device-settings{margin:0 0 1rem;padding:0;border:0}
.chat-device-settings>summary{cursor:pointer;font-weight:600}
.chat-device-settings .chat-device-controls{margin:.55rem 0 0}
@media(max-width:600px){#account-nav:has(.chat-bell){position:relative}.chat-popover.account-popover{width:min(280px,calc(100vw - 28px));right:0}#account-nav>.chat-notifications{position:static}}
