.team-panel {position:absolute;z-index:950;top:8px;left:8px;width:min(360px,calc(100% - 16px));max-height:calc(100% - 16px);overflow:auto;background:rgba(248,250,252,.96);color:#203047;border:1px solid #b9cbd6;border-radius:8px;padding:10px;backdrop-filter:blur(12px);font-size:13px;box-shadow:0 8px 24px #0003;color-scheme:light;}
.team-panel[hidden],.team-panel [hidden],.team-unread[hidden],#teamParcelWarning[hidden]{display:none;}
.team-panel header,.team-actions,.team-panel nav {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.team-panel header {justify-content:space-between;}
.team-panel h2 {font-size:15px;margin:0;}.team-panel h3 {font-size:13px;margin:12px 0 6px;}
.team-panel button {font:inherit;min-height:36px;max-width:100%;padding:6px 9px;border:1px solid #bdccd5;border-radius:6px;background:#fff;color:#203047;cursor:pointer;white-space:normal;overflow-wrap:anywhere;}
.team-panel button:disabled{opacity:.5;cursor:wait;}.team-panel button:focus-visible {outline:2px solid #087f8c;outline-offset:2px;}
.team-panel nav{margin:10px 0;}.team-panel nav button{flex:1;}.team-panel [aria-pressed="true"]{background:#087f8c;color:#fff;}
.team-panel svg {width:17px;height:17px;vertical-align:middle;}
.team-panel input,.team-panel textarea {display:block;box-sizing:border-box;width:100%;min-height:36px;font:inherit;color:#203047;background:#fff;border:1px solid #9fb3c2;border-radius:5px;padding:7px;margin:5px 0;}
.team-panel small {display:block;line-height:1.5;margin-top:5px;color:#526579;}.team-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
.team-people button{display:block;width:100%;text-align:left;margin:4px 0;}.team-claims p {margin:5px 0;overflow-wrap:anywhere;}
.team-messages {max-height:240px;overflow:auto;overscroll-behavior:contain;border-block:1px solid #d7e0e6;}.team-messages article{padding:8px 0;border-bottom:1px solid #d7e0e6;}.team-messages time{float:right;font-size:11px;color:#526579;}.team-messages p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;}
.team-unread {position:absolute;top:0;right:0;font-size:10px;border-radius:8px;background:#be185d;color:white;padding:1px 4px;}.icon-btn:has(.team-unread){position:relative;}
#teamParcelWarning{font-size:12px;color:#9a3412;background:#fff7ed;border:1px solid #fdba74;padding:6px;}
@media(max-width:760px){.team-panel {max-height:calc(100% - 16px);}.team-panel input,.team-panel textarea{font-size:16px;min-height:40px;}.team-panel button{min-height:40px;}}
.team-chat-launcher {position:fixed;z-index:951;right:12px;bottom:calc(48px + env(safe-area-inset-bottom,0px));width:48px;height:48px;display:grid;place-items:center;border:1px solid #ffffffb3;border-radius:50%;background:#087f8c;color:#fff;box-shadow:0 3px 14px #123b4540;cursor:pointer;}
.team-chat-launcher svg {width:23px;height:23px;pointer-events:none;}
.team-chat-launcher:focus-visible,.team-chat-alert button:focus-visible {outline:3px solid #e4a53a;outline-offset:3px;}
.team-chat-launcher .team-unread {min-width:17px;line-height:17px;right:-3px;top:-3px;}
.team-chat-launcher .team-unread[hidden],.team-chat-alert[hidden] {display:none;}
.team-chat-alert {position:fixed;z-index:952;right:12px;bottom:calc(106px + env(safe-area-inset-bottom,0px));display:flex;max-width:calc(100vw - 24px);background:#fff;color:#203047;box-shadow:0 4px 20px #123b4533;border:1px solid #b9cbd6;border-radius:8px;}
.team-chat-alert button {background:transparent;color:inherit;border:0;font:inherit;font-size:13px;min-height:44px;padding:8px 12px;cursor:pointer;}
.team-chat-alert svg {width:16px;height:16px;}
.team-panel.team-chat-mode {position:fixed;left:auto;right:12px;top:auto;bottom:calc(106px + env(safe-area-inset-bottom,0px));width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 126px - env(safe-area-inset-bottom,0px));box-sizing:border-box;}
.team-chat-mode .team-share,.team-chat-mode nav {display:none;}
.team-chat-mode .team-status {margin:6px 0;font-size:11px;}
.team-chat-mode .team-messages {height:180px;max-height:25dvh;}
.team-chat-mode textarea {resize:vertical;max-height:90px;}
.team-chat-mode .team-compose button[type="submit"] {background:#087f8c;color:#fff;border-color:#087f8c;}
.team-chat-mode label {color:#203047;}
.team-chat-mode header button {width:36px;padding:4px;}
.team-chat-launcher.has-new-message {animation:team-chat-notice .7s ease-in-out 3;}
@keyframes team-chat-notice {50%{transform:translateY(-5px);box-shadow:0 4px 18px #087f8c77;}}
@media(max-width:760px){.has-team-chat .layer-fab {bottom:calc(108px + env(safe-area-inset-bottom,0px));}.team-chat-mode .team-compose button {font-size:12px;}}
@media(prefers-reduced-motion:reduce){.team-chat-launcher.has-new-message{animation:none;}}
@media(min-width:761px){.has-team-chat:has(.layer-panel:not(.closed)) .team-chat-launcher,.has-team-chat:has(.layer-panel:not(.closed)) .team-chat-alert,.has-team-chat:has(.layer-panel:not(.closed)) .team-chat-mode{right:352px;}}
@media(max-width:760px){
  .team-chat-launcher {bottom:calc(48px + env(safe-area-inset-bottom,0px) + var(--team-keyboard-offset,0px));}
  .team-chat-alert,.team-panel.team-chat-mode {bottom:calc(106px + env(safe-area-inset-bottom,0px) + var(--team-keyboard-offset,0px));}
  .team-panel.team-chat-mode {max-height:calc(var(--team-viewport-height,100dvh) - 126px - env(safe-area-inset-bottom,0px));}
}
