.team-badge{display:inline-block;background:#a85270;color:white!important;border-radius:12px;font-size:12px;line-height:20px;padding:0 7px;min-width:20px;text-align:center}.team-badge[hidden]{display:none}#teamNav{gap:10px}#teamNav>span:first-of-type{flex:1;min-width:0}#teamNav #teamBadge{flex:none;margin-left:auto}.team-app{display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid #e4dbd4;border-radius:14px;overflow:hidden;background:#fff;height:calc(100dvh - 205px);min-height:440px;max-height:900px}.team-sidebar{overflow:auto;background:#faf7f3;border-right:1px solid #e4dbd4}.team-sidebar-title{font-size:13px;font-weight:600;padding:10px 12px}.team-room{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0!important;border-bottom:1px solid #eee6e0!important;border-radius:0!important;padding:8px 12px!important;text-align:left;background:transparent;line-height:1.3;font-size:13px!important}.team-room small{display:block;font-size:11px;color:#8b8076;margin-top:2px}.team-room.selected{background:#f3e7ed;color:#a85270}.team-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.team-room-header{display:flex;gap:8px;align-items:center;padding:6px 10px;border-bottom:1px solid #eee6e0;flex-shrink:0}.team-room-header b{flex:1;overflow-wrap:anywhere}.team-room-header button,.team-request-status button,.team-compose-options button,.team-push-actions button{font-size:14px!important;padding:7px 12px!important;min-height:36px}.team-room-header #teamBack{display:none}#teamError:not(:empty){padding:8px 14px;color:#9b3d5b;background:#fcf0f4;font-size:14px;overflow-wrap:anywhere;flex-shrink:0}.team-messages{flex:1;overflow:auto;overscroll-behavior:contain;min-height:80px;padding:8px 10px;background:#fcfaf7;display:flex;flex-direction:column;gap:5px}.team-message{max-width:85%;align-self:flex-start;padding:5px 8px;background:#fff;border:1px solid #e9e0d8;border-radius:12px;flex-shrink:0;min-width:140px;overflow-wrap:anywhere}.team-message.mine{align-self:flex-end;background:#f5eaf0}.team-message.urgent{border:2px solid #b14c6d}.team-message-head{display:flex;gap:7px;align-items:center;font-size:12px;line-height:1.2}.team-message-head b{flex:1;font-size:12px;font-weight:600}.team-message-head time{white-space:nowrap;font-size:10px;color:#8b8076}.team-text{white-space:pre-wrap;line-height:1.35;margin-top:2px;font-size:14px}.team-urgent{font-size:12px;color:#aa3355}.team-request-status{border-top:1px solid #e4dbd4;margin-top:4px;padding-top:4px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}.team-request-status button{background:#fff}.team-read{display:block;font-size:10px;color:#877a71;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-files{display:flex;flex-direction:column;gap:5px;margin-top:4px}.team-photo{display:block}.team-photo img{display:block;max-height:200px;max-width:100%;border-radius:6px}.team-document{font-size:14px}.team-older{align-self:center;font-size:13px!important;padding:4px 12px!important;margin:5px}.team-composer{padding:6px 10px;border-top:1px solid #e4dbd4;flex-shrink:0;margin:0!important}.team-text-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.team-composer textarea{margin:0!important;font-size:16px;min-height:40px;padding:7px 9px!important;resize:vertical;max-height:180px}.team-compose-options{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:5px}.team-compose-options label{display:flex;align-items:center;gap:6px;font-size:14px;margin:0;white-space:nowrap}.team-compose-options input[type=checkbox]{width:18px;height:18px;margin:0}.team-compose-options button{margin-left:auto}.team-composer small{display:block;font-size:11px;line-height:1.3;color:#8a7f76;margin-top:6px}.team-file-button{cursor:pointer;color:#a85270;position:relative}.team-file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.team-attachments{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}.team-attachments span{padding:3px 6px;background:#f3eee7;border-radius:6px;max-width:100%;overflow-wrap:anywhere}.team-attachments button{font-size:13px;padding:0 5px;min-height:24px;border:0}.team-empty{font-size:14px;color:#8c8077;text-align:center;margin:auto;padding:25px;line-height:1.6}#teamPushPanel{padding:12px 16px;background:#f4eee6;max-height:40%;overflow:auto;flex-shrink:0;font-size:13px;line-height:1.4}#teamPushPanel p{margin:6px 0}#teamPushPanel small{font-size:11px}.team-push-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.team-page .heading{margin-bottom:6px}
@media(max-width:760px){.team-app{grid-template-columns:1fr;height:calc(100dvh - 135px);min-height:360px;border-radius:10px}.team-sidebar{border:0}.team-conversation{display:none}.team-app.room-open .team-sidebar{display:none}.team-app.room-open .team-conversation{display:flex}.team-room-header #teamBack{display:block}.team-room{padding:9px 12px!important}.team-message{max-width:96%;padding:4px 7px}.team-messages{padding:6px;gap:4px}.team-message-head{gap:6px;font-size:11px}.team-message-head b{font-size:11px}.team-composer{padding:5px 7px}.team-compose-options{gap:5px}.team-compose-options label{font-size:11px}.team-compose-options button{font-size:12px!important;padding:5px 8px!important;min-height:32px}#teamPushPanel{max-height:50%}.team-room-header{padding:5px 7px}.team-room-header b{font-size:13px}.team-room-header button{font-size:11px!important;padding:5px 7px!important;min-height:32px}}
.team-reference{display:block;width:100%;text-align:left!important;background:#fff!important;border:1px solid #dccbc0!important;border-radius:8px!important;padding:5px 7px!important;margin-top:4px!important;font-size:13px!important;line-height:1.35!important;white-space:normal!important}.team-reference b,.team-reference small,.team-reference span{display:block}.team-reference small{font-size:12px;color:#81766e;margin-top:3px}.team-reference span{font-size:12px;color:#a85270;margin-top:4px}.team-reference.unavailable{font-size:12px!important;color:#81766e}.team-compose-options #teamAttach{margin-left:0;background:#f5eee7}.team-compose-options #teamSend{margin-left:auto}.team-compose-options #teamFile[hidden]{display:none!important}
dialog.team-picker{position:fixed!important;inset:0!important;margin:auto!important;width:min(560px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:85dvh!important;height:fit-content!important;padding:0!important;border:1px solid #e4dbd4!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box;overflow:auto!important;z-index:10020}dialog.team-picker::backdrop{background:#0006}.team-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #eee6e0}.team-picker-heading h2{font-size:20px!important;margin:0!important}.team-picker-heading button{font-size:22px!important;min-height:36px;padding:2px 10px!important}.team-picker-body{padding:16px 18px;font-size:15px}.team-picker-body label{display:block;font-size:14px;margin:0 0 12px}.team-picker-body input,.team-picker-body select,.team-picker-body textarea{width:100%;box-sizing:border-box;margin-top:5px!important;font-size:16px!important;padding:9px 10px!important}.team-picker-options{display:flex;gap:8px;flex-wrap:wrap}.team-picker-options button,.team-picker-body button{font-size:14px!important;padding:8px 12px!important;min-height:40px;line-height:1.35;white-space:normal}.team-picker-hint{font-size:12px;color:#81766e;line-height:1.4;margin:8px 0 12px}.team-picker-results{max-height:45dvh;overflow:auto;overscroll-behavior:contain}.team-picker-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eee6e0;border-radius:0;padding:10px 4px!important;background:white}.team-picker-results button:hover{background:#faf5f0}.team-picker-results small,.team-share-preview small{display:block;font-size:12px;color:#81766e;margin-top:3px}.team-share-preview{padding:10px;background:#f5eee7;border-radius:8px}.team-share-error{color:#a23f5f;font-size:14px}

.team-message-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:2px;min-height:22px}.team-message-footer .team-read{margin-right:auto;max-width:65%}.team-reactions{display:flex;gap:4px;flex-shrink:0}.team-reaction{display:flex;align-items:center;border-radius:6px;background:#f8f4ef}.team-reaction.selected{background:#ead6e1;outline:1px solid #d7afc1}.team-reaction button{font-size:13px!important;line-height:20px!important;min-height:22px!important;padding:0 4px!important;background:transparent!important;border:0!important;border-radius:6px!important;margin:0!important}.team-reaction button[data-reaction-people]{font-size:11px!important;padding-left:0!important}.team-message-head .team-reply-button{font-size:17px!important;line-height:20px!important;min-height:24px!important;min-width:25px;padding:0 4px!important;margin:0!important;border:0!important;background:transparent!important;color:#9f6279}.team-quote{display:block;width:100%;border:0!important;border-left:3px solid #ba7791!important;border-radius:4px!important;padding:4px 7px!important;margin:4px 0!important;text-align:left!important;background:#f0e8e5!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important}.team-quote b,.team-quote span{display:block}.team-quote b{font-size:11px;color:#9a4766;margin-bottom:1px}.team-quote span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.team-reply-preview{display:flex;align-items:center;gap:8px;border-left:3px solid #b16483;background:#f4eaf0;padding:4px 7px;margin-bottom:4px;font-size:12px;line-height:1.25}.team-reply-preview div{min-width:0;flex:1}.team-reply-preview b,.team-reply-preview span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.team-reply-preview b{font-size:11px;color:#9a4766}.team-reply-preview button{min-height:26px!important;font-size:18px!important;padding:0 5px!important;border:0;background:transparent}.team-reply-preview[hidden],#teamLatest[hidden],#teamUrgentHint[hidden]{display:none!important}.team-latest{font-size:12px!important;line-height:1.3;padding:5px 10px!important;border:0!important;border-bottom:1px solid #eadbd6!important;background:#f5e8ee!important;border-radius:0!important;margin:0!important;min-height:28px;flex-shrink:0}.team-highlight{animation:team-highlight 2.2s ease-out}@keyframes team-highlight{0%,35%{box-shadow:0 0 0 2px #bb6d8a;background:#f4dce8}100%{box-shadow:0 0 0 0 transparent}}.team-text:empty{display:none}.team-app button:focus-visible{outline:2px solid #aa5877;outline-offset:1px}
@media(max-width:760px){.team-photo img{max-height:140px}.team-reference small{font-size:11px}.team-reactions{gap:3px}.team-compose-options input[type=checkbox]{width:16px;height:16px}.team-composer textarea{max-height:112px}.team-room-header #teamBack{min-width:30px}}

/* Photos stay inside the installed app; the close control remains outside the image. */
.team-files button.team-photo{border:0!important;background:transparent!important;padding:0!important;margin:0!important;min-height:0!important;text-align:left;cursor:zoom-in}
dialog.team-picker.team-photo-viewer{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#181516!important;color:#fff;overflow:hidden!important;box-sizing:border-box}
dialog.team-photo-viewer[open]{display:flex;flex-direction:column}
.team-photo-viewer .team-picker-heading{flex-shrink:0;gap:12px;border-bottom:1px solid #ffffff30;padding:calc(10px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 10px calc(12px + env(safe-area-inset-left,0px))}
.team-photo-viewer .team-picker-heading h2{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px!important;color:#fff}
.team-photo-viewer .team-picker-heading button{flex-shrink:0;background:#fff!important;color:#312b2e!important;border:1px solid #fff!important;min-height:44px;padding:8px 14px!important;font-size:16px!important;border-radius:8px}
.team-photo-viewer .team-picker-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain}
.team-photo-viewer .team-picker-body img{display:block;width:100%;height:100%;object-fit:contain}
.team-photo-viewer .team-picker-body img[hidden],.team-photo-viewer .team-picker-body p[hidden]{display:none}
.team-photo-viewer .team-picker-body p{font-size:15px;line-height:1.4;text-align:center;padding:20px;color:#fff}
