.team-chat,.whatsapp-box {min-width:0}
.chat-stream {height:260px;overflow-y:auto;overflow-x:hidden;padding:2px 4px 10px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#40534e transparent}
.chat-stream:focus-visible {outline:1px solid var(--mint);outline-offset:3px;border-radius:8px}
.chat-empty {min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;color:var(--muted);font-size:.78rem}
.chat-empty small {font-size:.7rem;color:#91a9a0}
.chat-day {display:flex;justify-content:center;margin:10px 0 13px}
.chat-day span {padding:3px 9px;border-radius:12px;background:#24332f;color:var(--muted);font-size:.63rem}
.chat-message {display:flex;justify-content:flex-start;margin:0 0 9px;min-width:0}
.chat-message.is-own {justify-content:flex-end}
.chat-bubble {max-width:88%;min-width:64px;padding:9px 11px 6px;border:1px solid #30443d;border-radius:12px 12px 12px 3px;background:#1f2b28;box-shadow:0 1px 2px #0002}
.is-own .chat-bubble {background:#254239;border-color:#36594b;border-radius:12px 12px 3px 12px}
.chat-author {display:block;font-size:.67rem;line-height:1.3;font-weight:600;overflow-wrap:anywhere;margin-bottom:4px}
.chat-admin-actions {display:flex;justify-content:flex-end;margin-bottom:8px}
.chat-admin-actions button {font-size:.7rem;min-height:32px;padding:5px 10px}
.chat-message-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.chat-message-heading .chat-author {min-width:0}
.chat-delete {display:grid;place-items:center;flex:0 0 28px;width:28px;min-height:28px;padding:5px;margin:-4px -5px 2px 0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted)}
.chat-delete svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chat-delete:hover,.chat-delete:focus-visible {color:#ffaaa5;background:#71383344;border-color:#a6534c}
.chat-bubble p {margin:0;font-size:.8rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;color:var(--text)}
.chat-bubble time {display:block;text-align:right;margin:4px 0 0;color:#a3bcb1;font-size:.59rem;font-variant-numeric:tabular-nums}
.chat-new-messages {display:block;margin:0 auto 8px;padding:5px 10px;min-height:28px;border-color:#3c6756;border-radius:14px;background:#294b3e;color:var(--mint);font-size:.68rem}
.message-composer {margin:0;padding-top:12px;border-top:1px solid var(--line)}
.message-input-row {display:flex;align-items:flex-end;gap:8px;min-width:0}
.message-input-row textarea {display:block;flex:1;min-width:0;width:0;min-height:40px;max-height:110px;height:40px;resize:none;border:1px solid #365047;border-radius:12px;padding:10px 12px;background:#101b18;color:var(--text);font:inherit;font-size:.78rem;line-height:1.4;scrollbar-width:thin;scrollbar-color:#40534e transparent}
.message-input-row textarea::placeholder {color:#89a499}
.message-send {display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #559779;border-radius:50%;background:var(--mint);color:#102a1e}
.message-send svg {display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.message-send:disabled {opacity:.4;cursor:default}
.message-send:not(:disabled):hover {background:#b6f4d6}
.communication-notice {font-size:.68rem;line-height:1.5;color:var(--mint);margin:7px 1px 0;overflow-wrap:anywhere}
.communication-notice:empty {display:none}
.communication-notice.error {color:#efb5a9}
.communication-announcement {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.whatsapp-target {display:flex;flex-wrap:wrap;gap:5px 9px;align-items:baseline;margin:0 0 12px;font-size:.7rem}
.whatsapp-target>span {color:var(--muted)}
.whatsapp-target>strong {font-weight:500;min-width:0;color:var(--mint);overflow-wrap:anywhere}
.whatsapp-availability {font-size:.72rem;line-height:1.5;color:#e2bd8b;margin:0 0 12px}
.whatsapp-deliveries {display:grid;gap:8px;margin-bottom:12px;max-height:190px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#40534e transparent}
.whatsapp-deliveries:empty {display:none}
.whatsapp-delivery {padding:9px 10px;background:#172621;border:1px solid #2d473b;border-radius:9px;min-width:0}
.whatsapp-delivery>p {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px;font-size:.74rem;line-height:1.4;color:var(--text)}
.whatsapp-delivery>div {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;font-size:.63rem}
.whatsapp-delivery-state {color:var(--mint)}
.whatsapp-delivery-state.needs-attention {color:#edbd9e}
.whatsapp-delivery time {color:var(--muted);font-variant-numeric:tabular-nums}
.whatsapp-delivery-detail {display:block;font-size:.65rem;line-height:1.4;margin-top:5px;color:#e4baa1;overflow-wrap:anywhere}
@media(max-width:680px) {.chat-stream {height:240px}.chat-bubble {max-width:92%}.message-input-row textarea {font-size:16px}}

.support-actions{display:flex;gap:8px;margin-top:10px}.support-actions button{flex:1;min-width:0}.dashboard-support textarea{width:100%;resize:vertical;min-height:65px;font:inherit;font-size:.8rem}.registration-card{width:min(100%,620px);max-width:620px!important}.registration-card .login-logo{max-width:360px;margin-bottom:26px}.registration-card h1{font-size:1.35rem;margin:0 0 8px}.registration-card>p{font-size:.8rem;color:var(--muted);margin-bottom:20px}.registration-card textarea{width:100%;font:inherit}.registration-card .form-grid{gap:12px}.registration-card .form-stack{gap:14px}.registration-card #registration-back,.login-register{margin-top:15px!important;width:100%}.registration-request{border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.registration-request summary{cursor:pointer;padding:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.registration-request summary small{margin-left:auto;color:var(--muted)}.registration-review{padding:0 16px 16px}.registration-note{white-space:pre-wrap;overflow-wrap:anywhere}.registration-review p{font-size:.8rem}#registration-requests{margin-top:22px}

.registration-section{min-width:0;margin:0;padding:18px;border:1px solid var(--line);border-radius:12px;text-align:left}.registration-section legend{padding:0 8px;font-size:.9rem;font-weight:700;color:var(--text)}.registration-section>p{font-size:.76rem;color:var(--muted);line-height:1.5;margin:0 0 12px}.registration-section>p:last-child{margin:12px 0 0}.registration-section>.form-grid+label{display:block;margin-top:14px}.registration-section input,.registration-section textarea{min-width:0;width:100%;box-sizing:border-box}.registration-section .full{grid-column:1/-1}
@media(max-width:540px){.registration-section{padding:14px 12px}.registration-section .form-grid{grid-template-columns:1fr}}

.portal-access-test{min-width:0}.portal-access-test .form-notice{max-width:32rem;font-size:.75rem;line-height:1.5;margin:8px 0 0;white-space:normal;overflow-wrap:anywhere}.admin-user-actions>.portal-access-test{flex-basis:100%}.portal-access-test [hidden]{display:none}
