/* Team chat: a quiet conversation surface for the busy collector workspace. */
.tc-root{color-scheme:light}html[data-theme="dark"] .tc-root{color-scheme:dark}
#topNavChatBtn{position:relative;display:none;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;padding:0;border:1px solid #dfd7d2;border-radius:50%;background:#f8f7f3;color:#79595d;cursor:pointer}
#topNavChatBtn.is-ready{display:flex!important}#topNavChatBtn:hover{color:#7b1818;background:#f4e9e7}#topNavChatBtn svg{width:16px;height:16px}
#chatBadge{position:absolute;right:-5px;top:-5px;min-width:17px;padding:2px 4px;border-radius:10px;background:#675650;color:#faf6f3;font-size:9px;font-weight:700;line-height:13px;border:2px solid #f8f7f3}#chatBadge.is-mention{background:#8d2735}
.tc-root{--tc-bg:#faf8f5;--tc-panel:#f2eeea;--tc-ink:#292322;--tc-muted:#776a65;--tc-line:#e4ddd6;--tc-accent:#7b222d;--tc-tint:#f1e1df;--tc-bubble:#ede8e2;--tc-own:#7b222d;--tc-own-ink:#fff4f1;--tc-online:#277652;--tc-field:#ece5de;position:fixed;z-index:830;inset:0;pointer-events:none;font-family:'DM Sans',system-ui,sans-serif;color:var(--tc-ink);font-size:14px;line-height:1.5}
.tc-root[hidden],.tc-root [hidden]{display:none!important}.tc-scrim{position:absolute;inset:0;background:rgba(26,17,18,.18);opacity:0;transition:opacity .22s;pointer-events:none}
.tc-drawer{position:absolute;right:16px;top:74px;bottom:16px;width:420px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;overflow:hidden;background:var(--tc-bg);border:1px solid var(--tc-line);border-radius:22px;box-shadow:0 24px 70px rgba(39,20,22,.2),0 2px 8px rgba(39,20,22,.08);transform:translateX(calc(100% + 32px));transition:transform .24s cubic-bezier(.22,1,.36,1);pointer-events:none}
.tc-root.is-open .tc-drawer{transform:translateX(0);pointer-events:auto}.tc-root.is-open .tc-scrim{opacity:1;pointer-events:auto}
.tc-head{display:flex;align-items:center;gap:12px;padding:22px 22px 17px;border-bottom:1px solid var(--tc-line);flex-shrink:0}.tc-room-mark{width:40px;height:40px;border-radius:13px;background:var(--tc-tint);color:var(--tc-accent);display:grid;place-items:center}.tc-room-mark svg{width:21px;height:21px}.tc-title{font-size:19px;letter-spacing:-.5px;line-height:1.3;margin:0;font-weight:700}.tc-sub{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--tc-muted);margin:3px 0 0}.tc-close{margin-left:auto}
.tc-root button{font:inherit;cursor:pointer}.tc-icon{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;color:var(--tc-muted);background:transparent}.tc-icon:hover{background:var(--tc-panel);color:var(--tc-ink)}.tc-icon svg{width:18px;height:18px}
.tc-root button:focus-visible,.tc-root textarea:focus-visible{outline:2px solid var(--tc-accent);outline-offset:3px}.tc-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 22px;font-size:12px;border-bottom:1px solid var(--tc-line);flex-shrink:0}.tc-members-toggle{border:0;background:transparent;padding:3px 0;color:var(--tc-muted);display:flex;align-items:center;gap:7px}.tc-dot{width:6px;height:6px;border-radius:50%;background:var(--tc-online);display:inline-block;flex-shrink:0}.tc-status{font-size:11px;color:var(--tc-muted)}.tc-status.is-error{color:var(--tc-accent)}
.tc-timeline{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px 20px 20px;overflow-anchor:none}.tc-earlier{display:block;margin:8px auto 18px;border:0;background:transparent;color:var(--tc-muted);font-size:11px!important;padding:7px 12px}.tc-earlier:hover{color:var(--tc-accent)}.tc-day{display:flex;align-items:center;gap:12px;margin:21px 0;color:var(--tc-muted);font-size:10px;letter-spacing:.04em}.tc-day:before,.tc-day:after{content:'';height:1px;background:var(--tc-line);flex:1}.tc-unread{margin:18px 0;text-align:center;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--tc-accent)}
.tc-msg{display:flex;align-items:flex-end;gap:8px;margin-top:15px}.tc-msg.is-grouped{margin-top:4px}.tc-avatar{width:27px;height:27px;flex-shrink:0;border-radius:9px;background:var(--tc-tint);color:var(--tc-accent);display:grid;place-items:center;font-size:10px;font-weight:700}.tc-msg.is-grouped .tc-avatar{visibility:hidden}.tc-msg-content{max-width:84%;min-width:0}.tc-author{font-size:11px;font-weight:600;margin:0 0 4px 3px;color:var(--tc-muted)}.tc-bubble{padding:10px 13px;border-radius:15px 15px 15px 4px;background:var(--tc-bubble);font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.tc-time{font-size:9px;color:var(--tc-muted);margin:4px 3px 0;display:block}.tc-msg.is-own{justify-content:flex-end}.tc-msg.is-own .tc-avatar{display:none}.tc-msg.is-own .tc-bubble{background:var(--tc-own);color:var(--tc-own-ink);border-radius:15px 15px 4px 15px}.tc-msg.is-own .tc-time{text-align:right}.tc-mention{font-weight:700;color:var(--tc-accent);background:var(--tc-tint);border-radius:4px;padding:1px 3px}.is-own .tc-mention{color:inherit;background:rgba(255,244,241,.16)}.tc-mention.is-me{text-decoration:underline;text-underline-offset:3px}
.tc-empty{padding:55px 15px 40px;text-align:center}.tc-empty .tc-room-mark{margin:0 auto 18px;width:52px;height:52px;border-radius:17px}.tc-empty h3{font-size:20px;letter-spacing:-.6px;margin:0 0 8px}.tc-empty p{font-size:13px;color:var(--tc-muted);max-width:260px;margin:0 auto;line-height:1.7}.tc-jump{position:absolute;bottom:151px;left:50%;transform:translateX(-50%);border:1px solid var(--tc-line);border-radius:22px;background:var(--tc-bg);color:var(--tc-accent);font-size:12px!important;padding:8px 15px;box-shadow:0 3px 12px rgba(30,20,20,.1);white-space:nowrap}
.tc-compose{position:relative;padding:12px 18px 14px;border-top:1px solid var(--tc-line);background:var(--tc-bg);flex-shrink:0}.tc-editor-wrap{border:1px solid var(--tc-line);border-radius:15px;background:var(--tc-panel);padding:10px 10px 8px}.tc-editor-wrap:focus-within{border-color:var(--tc-accent)}.tc-editor{display:block;width:100%;min-height:44px;max-height:130px;resize:none;border:0;background:transparent;color:var(--tc-ink);font:inherit;font-size:13px;line-height:1.6;padding:0 3px;outline:none!important;box-sizing:border-box}.tc-editor::placeholder{color:var(--tc-muted)}.tc-compose-row{display:flex;align-items:center;gap:8px}.tc-file-input{display:none!important}.tc-attach-btn svg{width:17px;height:17px}.tc-hint{font-size:10px;color:var(--tc-muted);flex:1}.tc-send{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:10px;background:var(--tc-accent);color:#faf4f1}.tc-send svg{width:16px;height:16px}.tc-send:disabled{opacity:.4;cursor:default}.tc-counter{font-size:10px;color:var(--tc-muted)}.tc-feedback{font-size:11px;color:var(--tc-accent);margin:6px 2px 0;min-height:0}.tc-footer-note{font-size:9px;letter-spacing:.02em;color:var(--tc-muted);text-align:center;margin:8px 0 0}
.tc-picker{position:absolute;left:18px;right:18px;bottom:calc(100% - 3px);border:1px solid var(--tc-line);border-radius:14px;background:var(--tc-bg);padding:5px;box-shadow:0 -8px 25px rgba(30,20,20,.1);max-height:275px;overflow:auto}.tc-pick{width:100%;display:flex;align-items:center;gap:9px;text-align:left;border:0;border-radius:9px;background:transparent;color:var(--tc-ink);padding:9px}.tc-pick.is-selected,.tc-pick:hover{background:var(--tc-panel)}.tc-pick small{margin-left:auto;color:var(--tc-muted);font-size:10px}.tc-members{position:absolute;inset:124px 0 0;background:var(--tc-bg);z-index:2;overflow:auto;padding:12px 18px}.tc-member-heading{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--tc-muted);padding:15px 9px 6px}.tc-member{width:100%;display:flex;gap:10px;align-items:center;text-align:left;border:0;border-radius:12px;background:transparent;color:var(--tc-ink);padding:10px 8px}.tc-member:hover{background:var(--tc-panel)}.tc-member-text{flex:1;min-width:0}.tc-member-name{font-size:13px;font-weight:600}.tc-member small{display:block;font-size:11px;color:var(--tc-muted)}.tc-member .tc-dot.is-offline{background:var(--tc-muted);opacity:.5}
.tc-skeleton{padding:30px 0}.tc-skeleton i{display:block;height:45px;width:75%;margin-bottom:20px;border-radius:14px;background:var(--tc-panel)}.tc-skeleton i:nth-child(2){margin-left:auto;width:60%}
html[data-theme="dark"] .tc-root{--tc-bg:#211d1f;--tc-panel:#2b2528;--tc-ink:#f1e8e3;--tc-muted:#b8a7a4;--tc-line:#413539;--tc-accent:#edacb7;--tc-tint:#432e35;--tc-bubble:#322a2e;--tc-own:#673440;--tc-own-ink:#fff0f0;--tc-online:#82cba5;--tc-field:#191516}html[data-theme="dark"] .tc-send{color:#302026}html[data-theme="dark"] #topNavChatBtn{background:#2c2427;color:#edacb7;border-color:#67434b}html[data-theme="dark"] #chatBadge{border-color:#2c2427;background:#be7f8b;color:#251b1e}html[data-theme="dark"] #chatBadge.is-mention{background:#f1b6bf}
@media(max-width:639px){#topNavChatBtn{width:44px;height:44px;min-width:44px;min-height:44px}.tc-drawer{inset:0;width:100%;max-width:none;border:0;border-radius:0}.tc-head{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:14px}.tc-compose{padding-bottom:max(12px,env(safe-area-inset-bottom))}.tc-timeline{padding-left:16px;padding-right:16px}.tc-hint{font-size:9px}.tc-members{top:117px}.tc-root.is-open{height:100dvh}.tc-editor{font-size:16px}.tc-scrim{background:rgba(26,17,18,.3)}}
@media(prefers-reduced-motion:reduce){.tc-drawer,.tc-scrim{transition:none}}

@media(max-width:639px){.tc-root .tc-icon{width:44px;height:44px}.tc-root .tc-send{width:40px;height:40px}.tc-root .tc-pick{min-height:44px}.tc-root .tc-members-toggle{min-height:36px}}

.tc-root *{box-sizing:border-box}.tc-root .tc-head{height:auto}.tc-root .tc-members{position:relative;inset:auto;flex:1;min-height:0}.tc-root.is-members .tc-timeline,.tc-root.is-members .tc-compose,.tc-root.is-members .tc-jump{display:none}

/* Fit the composer and picker to the usable screen, including the phone keyboard. */
.tc-root .tc-jump{bottom:calc(var(--tc-compose-height,139px) + 12px)}
.tc-root .tc-picker{max-height:min(275px,var(--tc-picker-height,275px));overscroll-behavior:contain}
.tc-pick>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.tc-pick small{flex-shrink:0}
@media(max-width:639px),(max-width:950px) and (max-height:500px){
  .tc-root.is-open{height:100dvh}
  .tc-root .tc-drawer{inset:0;width:100%;max-width:none;border:0;border-radius:0}
  .tc-root .tc-head{gap:8px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}
  .tc-head>div:nth-child(2){min-width:0;flex:1}.tc-head .tc-room-mark{width:36px;height:36px;flex-shrink:0}
  .tc-root .tc-title{font-size:18px}.tc-root .tc-sub{font-size:10px;letter-spacing:.04em}
  .tc-root .tc-toolbar{padding:4px 16px}.tc-root .tc-members-toggle{min-height:44px}
  .tc-root .tc-icon,.tc-root .tc-send{width:44px;height:44px;min-width:44px;flex-shrink:0}
  .tc-root .tc-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}
  .tc-root .tc-editor{font-size:16px;max-height:min(110px,25dvh)}
  .tc-root .tc-bubble{font-size:14px}.tc-root .tc-time{font-size:10px}
  .tc-root .tc-hint{font-size:10px;min-width:0}.tc-root .tc-footer-note{font-size:10px}
  .tc-root .tc-timeline{padding-left:12px;padding-right:12px}
  .tc-root .tc-picker{left:12px;right:12px}
}
@media(max-width:420px){.tc-root .tc-compose-row{gap:4px}.tc-root .tc-hint{display:none}}
@media(max-width:950px) and (max-height:500px){
  .tc-root .tc-head{padding-top:4px;padding-bottom:4px}.tc-root .tc-room-mark,.tc-root .tc-sub,.tc-root .tc-footer-note{display:none}
  .tc-root .tc-toolbar{padding-top:0;padding-bottom:0}.tc-root .tc-editor{min-height:26px;max-height:65px}
}

/* Dedicated Chat view. It mounts the same conversation rather than creating a second client. */
#view-chat{width:100%;padding:12px 20px 0;box-sizing:border-box;max-width:1440px}
#chatPageMount{width:100%;min-width:0}
.tc-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;padding:1px 4px;border-radius:8px;background:#7b222d;color:#faf4f1;font-size:9px;line-height:14px;margin-left:5px}.tc-nav-badge[hidden]{display:none}
.tc-root .tc-expand{margin-left:auto}.tc-root .tc-expand+.tc-close{margin-left:0}
.tc-root.is-page{position:relative;inset:auto;display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100%;height:calc(100dvh - 110px);min-height:260px;margin:0 auto;border:1px solid var(--tc-line);border-radius:20px;overflow:hidden;pointer-events:auto;z-index:1;background:var(--tc-bg)}
.tc-root.is-page .tc-scrim{display:none}
.tc-root.is-page .tc-drawer{position:relative;grid-column:2;grid-row:1;inset:auto;transform:none;width:100%;max-width:none;height:100%;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;transition:none}
.tc-page-rail{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:30px 18px 22px;background:var(--tc-panel);border-right:1px solid var(--tc-line)}
.tc-rail-eyebrow{font-size:9px;letter-spacing:.13em;font-weight:600;color:var(--tc-muted)}
.tc-page-rail h1{margin:7px 0 0;font-size:32px;line-height:1.2;letter-spacing:-1.2px;font-weight:700}
.tc-rail-intro{font-size:12px;line-height:1.7;color:var(--tc-muted);margin:12px 0 32px;max-width:175px}
.tc-rail-label{font-size:9px;letter-spacing:.1em;color:var(--tc-muted);font-weight:600;margin:0 10px 10px}
.tc-root .tc-room-active{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:12px;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-bg);color:var(--tc-ink);font-size:13px;font-weight:600;box-shadow:0 2px 5px rgba(35,20,20,.03)}
.tc-room-active small{display:block;color:var(--tc-muted);font-size:10px;font-weight:400;margin-top:3px}.tc-room-symbol{font-size:22px;font-weight:400;color:var(--tc-accent)}
.tc-rail-footer{font-size:10px;color:var(--tc-muted);margin-top:auto;padding-top:30px;line-height:1.7}.tc-rail-footer .tc-dot{margin-right:5px}.tc-rail-footer p{margin:8px 0 0;font-size:11px;line-height:1.8}
.tc-root.is-page .tc-head{padding:20px 28px 16px}.tc-root.is-page .tc-toolbar{padding-left:28px;padding-right:28px}
.tc-root.is-page .tc-timeline{padding-left:max(28px,calc((100% - 760px)/2));padding-right:max(28px,calc((100% - 760px)/2))}
.tc-root.is-page .tc-compose{padding-left:max(24px,calc((100% - 780px)/2));padding-right:max(24px,calc((100% - 780px)/2))}
.tc-root.is-page .tc-bubble{font-size:14px}.tc-root.is-page .tc-msg-content{max-width:min(84%,580px)}
.tc-root.is-page .tc-editor{min-height:44px;font-size:14px}.tc-root.is-page .tc-picker{left:24px;right:24px;max-width:730px;margin:auto}
.tc-root.is-page .tc-jump{left:50%}
#tcTitle:focus{outline:none}
.tc-root.is-page .tc-close svg{display:none}.tc-root.is-page .tc-close:before{content:'←';font-size:23px;line-height:1}
html[data-theme="dark"] .tc-nav-badge{background:#edacb7;color:#302026}
@media(min-width:768px){body.viewing-chat #mainContentWrap{padding-bottom:0!important}.tc-root.is-page.is-members .tc-members{grid-column:auto}}
@media(max-width:767px),(max-width:950px) and (max-height:500px){
  #view-chat{padding:0;min-height:0}body.viewing-chat{overflow:hidden!important}
  body.viewing-chat #mobileBottomNav,body.viewing-chat #topNav,body.viewing-chat #global-header-container{display:none!important}
  .tc-root.is-page{position:fixed;inset:0;display:block;height:100dvh;min-height:0;border:0;border-radius:0;z-index:830}
  .tc-root.is-page .tc-page-rail{display:none}.tc-root.is-page .tc-drawer{inset:0;position:absolute;height:100%;width:100%}
  .tc-root.is-page .tc-head{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}
  .tc-root.is-page .tc-toolbar{padding:4px 16px}.tc-root.is-page .tc-timeline{padding:8px 12px 20px}
  .tc-root.is-page .tc-compose{padding:10px 12px max(10px,env(safe-area-inset-bottom))}
  .tc-root.is-page .tc-editor{font-size:16px}.tc-root.is-page .tc-picker{left:12px;right:12px}
  .tc-root.is-page .tc-send,.tc-root.is-page .tc-icon{width:44px;height:44px;min-width:44px}
  .tc-root.is-page .tc-expand{display:none}.tc-root.is-page .tc-close{margin-left:auto;width:44px;height:44px}
  .tc-root.is-page .tc-jump{left:50%}.tc-root.is-page .tc-close svg{display:none}
  .tc-root.is-page .tc-close:before{content:'←';font-size:24px;line-height:1}
  .tc-root.is-page .tc-close{order:-1;margin-left:0}.tc-root.is-page .tc-head>.tc-room-mark{display:none}
}
@media(max-width:950px) and (max-height:500px){.tc-root.is-page .tc-head{padding-top:4px;padding-bottom:4px}.tc-root.is-page .tc-toolbar{padding-top:0;padding-bottom:0}.tc-root.is-page .tc-editor{min-height:26px}}

/* Replies keep attribution attached to the original message, outside editable text. */
.tc-msg-meta{display:flex;align-items:center;gap:10px;min-height:28px;padding:0 3px}.is-own .tc-msg-meta{justify-content:flex-end}
.tc-msg-meta .tc-time{margin:0}.tc-root .tc-reply-action{border:0;background:transparent;color:var(--tc-muted);font-size:10px;padding:5px 7px;border-radius:6px;min-height:28px}
.tc-reply-action:hover{background:var(--tc-panel);color:var(--tc-accent)}
.tc-root .tc-quote{display:block;width:100%;border:1px solid var(--tc-line);border-radius:7px;background:var(--tc-bg);color:var(--tc-ink);padding:8px 10px;margin-bottom:8px;text-align:left;white-space:normal;line-height:1.5}
.tc-quote strong{display:block;font-size:11px;font-weight:600;color:var(--tc-accent);overflow-wrap:anywhere}.tc-quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;overflow-wrap:anywhere;margin-top:2px}
.tc-root .is-own .tc-quote{background:rgba(255,244,241,.1);border-color:rgba(255,244,241,.25);color:inherit}.is-own .tc-quote strong{color:inherit}
.tc-root .tc-quote:disabled{cursor:default;opacity:.8}
.tc-reply-preview{display:flex;align-items:center;gap:10px;margin:0 0 9px;padding:8px 10px;background:var(--tc-tint);border-radius:10px}
.tc-reply-preview>div{min-width:0;flex:1}.tc-reply-preview strong{display:block;font-size:11px;color:var(--tc-accent)}.tc-reply-preview p{font-size:12px;color:var(--tc-muted);margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-reply-preview .tc-icon{flex-shrink:0;font-size:22px}.tc-msg.tc-highlight .tc-bubble{outline:2px solid var(--tc-accent);outline-offset:3px}
.tc-original{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(28,18,22,.38);pointer-events:auto}
.tc-original-card{display:flex;flex-direction:column;min-width:0;width:480px;max-width:100%;max-height:100%;padding:20px;background:var(--tc-bg);color:var(--tc-ink);border:1px solid var(--tc-line);border-radius:16px;box-shadow:0 18px 50px rgba(25,15,20,.24)}
.tc-original-card>header{display:flex;align-items:center;gap:12px;justify-content:space-between;height:auto;padding:0 0 12px;border-bottom:1px solid var(--tc-line);background:transparent;flex-shrink:0}
.tc-original-card h3{font:inherit;font-weight:700;font-size:16px;margin:0}.tc-original-card .tc-author{margin:14px 0 9px;flex-shrink:0}.tc-original-body{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;min-height:0;overscroll-behavior:contain}
.tc-root .tc-original-reply{margin-top:16px;padding:10px 14px;border:1px solid var(--tc-line);border-radius:9px;background:var(--tc-tint);color:var(--tc-accent);font-size:12px;min-height:44px;flex-shrink:0}
@media(max-width:767px),(max-width:950px) and (max-height:500px){.tc-root .tc-reply-action{min-height:44px;padding:9px 12px;font-size:11px}.tc-msg-meta{min-height:44px}.tc-root .tc-reply-preview .tc-icon{width:44px;height:44px}.tc-original-card{padding:16px}.tc-original-card .tc-icon{width:44px;height:44px}}

/* ── Image paste, emoji and lightbox (v2.6.715) ───────────────────────────── */
.tc-root.is-dropping .tc-compose{outline:2px dashed var(--tc-accent);outline-offset:-6px}
.tc-attach{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 10px}
.tc-chip{position:relative;display:flex;align-items:center;gap:6px;padding:4px 6px 4px 4px;border:1px solid var(--tc-line);border-radius:10px;background:var(--tc-panel)}
.tc-chip.is-error{border-color:#c2566a}
.tc-chip img{width:34px;height:34px;object-fit:cover;border-radius:7px;display:block}
.tc-chip-size,.tc-chip-err{font-size:10px;color:var(--tc-muted);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-chip-err{color:#c2566a}
.tc-chip-spin{width:13px;height:13px;border:2px solid var(--tc-line);border-top-color:var(--tc-accent);border-radius:50%;animation:tcspin .7s linear infinite}
@keyframes tcspin{to{transform:rotate(360deg)}}
.tc-chip-x{border:0;background:transparent;color:var(--tc-muted);font-size:15px;line-height:1;cursor:pointer;padding:2px 4px;border-radius:6px}
.tc-chip-x:hover{color:var(--tc-accent);background:var(--tc-tint)}

.tc-shots{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.tc-shots.is-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tc-shot{padding:0;border:1px solid var(--tc-line);border-radius:11px;overflow:hidden;background:var(--tc-panel);cursor:zoom-in;display:block;max-width:320px;width:100%}
.tc-shots.is-grid .tc-shot{max-width:none}
.tc-shot img{display:block;width:100%;height:100%;object-fit:cover}
.tc-shot:hover{border-color:var(--tc-accent)}

.tc-jumbo{display:flex;gap:6px;align-items:center;line-height:1}
.tc-jumbo-img{width:52px;height:52px;display:block}

.tc-emoji-btn svg{width:16px;height:16px}
.tc-emoji-panel{position:absolute;bottom:58px;left:14px;right:14px;max-width:330px;z-index:20;padding:10px;border:1px solid var(--tc-line);border-radius:13px;background:var(--tc-panel);box-shadow:0 18px 44px rgba(26,17,18,.22)}
.tc-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;max-height:190px;overflow:auto}
.tc-emoji-cell{border:0;background:transparent;font-size:19px;line-height:1;padding:5px 0;border-radius:7px;cursor:pointer}
.tc-emoji-cell:hover,.tc-emoji-cell:focus-visible{background:var(--tc-tint);outline:none}
.tc-emoji-note{margin:8px 2px 0;font-size:10px;color:var(--tc-muted)}

.tc-lightbox{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(18,12,13,.82);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.tc-lightbox img{max-width:100%;max-height:100%;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.tc-lightbox-x{position:absolute;top:16px;right:20px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.4);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.tc-lightbox-x:hover{background:rgba(0,0,0,.65)}

html[data-theme="dark"] .tc-emoji-panel{box-shadow:0 18px 44px rgba(0,0,0,.5)}
html[data-theme="dark"] .tc-chip-x:hover{color:var(--tc-accent)}

@media(max-width:639px){
  .tc-emoji-panel{left:10px;right:10px;max-width:none;bottom:66px}
  .tc-emoji-grid{grid-template-columns:repeat(7,1fr)}
  .tc-emoji-cell{padding:9px 0;font-size:21px}
  .tc-chip-x{min-width:32px;min-height:32px}
  .tc-jumbo-img{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){.tc-chip-spin{animation-duration:2s}}

/* ── File sharing (v2.6.715) ──────────────────────────────────────────────── */
.tc-chip-doc{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:var(--tc-tint);color:var(--tc-accent);font-size:9px;font-weight:800;letter-spacing:.02em}
.tc-chip-name{font-size:11px;color:var(--tc-ink);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-files{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.tc-file{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--tc-line);border-radius:11px;background:var(--tc-panel);text-decoration:none;max-width:320px}
.tc-file:hover{border-color:var(--tc-accent);background:var(--tc-tint)}
.tc-file-ext{flex:0 0 auto;display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--tc-tint);color:var(--tc-accent);font-size:9px;font-weight:800}
.tc-file-meta{min-width:0;display:flex;flex-direction:column;gap:1px}
.tc-file-name{font-size:12.5px;color:var(--tc-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-file-size{font-size:10.5px;color:var(--tc-muted)}
@media(max-width:639px){.tc-file{max-width:none;padding:11px 12px}.tc-chip-name{max-width:96px}}

/* ── Full-page chat: roomier, WhatsApp-Web proportions (2026-10-30, Mido request).
   Desktop only — the compact phone/short-screen overrides above stay as they are, so this
   is guarded on both axes rather than width alone. ── */
@media(min-width:768px) and (min-height:501px){
  .tc-root.is-page{grid-template-columns:clamp(240px,23%,320px) minmax(0,1fr);height:calc(100dvh - 86px)}
  body.viewing-chat #mainContentWrap{padding-top:10px!important}
  .tc-root.is-page .tc-page-rail{padding:34px 24px 26px}
  .tc-root.is-page .tc-rail-intro{max-width:220px;margin-bottom:34px}
  .tc-root.is-page .tc-head{padding:20px 32px 18px;gap:14px}
  .tc-root.is-page .tc-room-mark{width:46px;height:46px;border-radius:15px}
  .tc-root.is-page .tc-room-mark svg{width:23px;height:23px}
  .tc-root.is-page .tc-title{font-size:20px}
  .tc-root.is-page .tc-toolbar{padding:11px 32px}

  /* The conversation sits on a tinted field so incoming bubbles can read as raised cards,
     the way WhatsApp separates the thread from the chrome around it. */
  .tc-root.is-page .tc-timeline{background:var(--tc-field);padding:20px max(44px,calc((100% - 1060px)/2)) 32px}
  .tc-root.is-page .tc-msg:not(.is-own) .tc-bubble{background:var(--tc-bg);box-shadow:0 1px 2px rgba(39,20,22,.08)}
  .tc-root.is-page .tc-msg{gap:10px;margin-top:16px}
  .tc-root.is-page .tc-msg.is-grouped{margin-top:5px}
  .tc-root.is-page .tc-avatar{width:33px;height:33px;border-radius:11px;font-size:11px}
  .tc-root.is-page .tc-msg-content{max-width:min(74%,660px)}
  .tc-root.is-page .tc-author{font-size:12px;margin-bottom:5px}
  .tc-root.is-page .tc-bubble{font-size:13px;line-height:1.5;padding:9px 13px;border-radius:14px 14px 14px 5px}
  .tc-root.is-page .tc-msg.is-own .tc-bubble{border-radius:14px 14px 5px 14px}
  .tc-root.is-page .tc-time{font-size:10px}
  .tc-root.is-page .tc-day{margin:28px 0}
  .tc-root.is-page .tc-shot img,.tc-root.is-page .tc-file{max-width:360px}

  .tc-root.is-page .tc-compose{padding:16px max(40px,calc((100% - 1080px)/2)) 18px}
  .tc-root.is-page .tc-editor-wrap{border-radius:18px;padding:13px 14px 10px}
  .tc-root.is-page .tc-editor{min-height:26px;font-size:14.5px}
  .tc-root.is-page .tc-send{width:38px;height:38px;border-radius:12px}
  .tc-root.is-page .tc-send svg{width:17px;height:17px}
  .tc-root.is-page .tc-icon{width:36px;height:36px}
  .tc-root.is-page .tc-reply-action{font-size:11px;padding:5px 9px}
  .tc-root.is-page .tc-hint{font-size:11px}
  .tc-root.is-page .tc-picker{max-width:820px}

  /* Dark inverts the relationship: there the field is the darkest surface and the bubble lifts off it. */
  html[data-theme="dark"] .tc-root.is-page .tc-msg:not(.is-own) .tc-bubble{background:var(--tc-bubble);box-shadow:0 1px 2px rgba(0,0,0,.28)}
}

/* Conversation-first desktop layout: reclaim chrome, keep readable messages. */
@media(min-width:768px) and (min-height:501px){
  #view-chat{max-width:none;padding:0 12px}
  body.viewing-chat #mainContentWrap{padding-top:0!important}
  .tc-root.is-page{grid-template-columns:190px minmax(0,1fr);border-radius:14px}
  .tc-root.is-page .tc-page-rail{padding:22px 16px}
  .tc-root.is-page .tc-page-rail h1{font-size:25px}
  .tc-root.is-page .tc-rail-intro,.tc-root.is-page .tc-rail-footer p{display:none}
  .tc-root.is-page .tc-rail-label{margin-top:26px}
  .tc-root.is-page .tc-head{padding:10px 24px;gap:10px;border-bottom:0}
  .tc-root.is-page .tc-room-mark{width:34px;height:34px;border-radius:11px}
  .tc-root.is-page .tc-title{font-size:17px}
  .tc-root.is-page .tc-sub{display:none}
  .tc-root.is-page .tc-toolbar{padding:0 24px 8px}
  .tc-root.is-page .tc-timeline{padding:12px max(28px,calc((100% - 1160px)/2)) 24px}
  .tc-root.is-page .tc-compose{padding:10px max(24px,calc((100% - 1180px)/2))}
  .tc-root.is-page .tc-editor-wrap{padding:8px 10px;border-radius:13px}
  .tc-root.is-page .tc-editor{min-height:25px}
  .tc-root.is-page .tc-footer-note{display:none}
  .tc-root.is-page .tc-day{margin:16px 0}
}
@media(min-width:768px) and (max-width:1050px) and (min-height:501px){
  .tc-root.is-page{grid-template-columns:150px minmax(0,1fr)}
  .tc-root.is-page .tc-page-rail{padding:18px 12px}
}

/* Private groups and live colleague directory, shared by page and quick drawer. */
.tc-conversations-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 0 8px}
.tc-root .tc-conversations-heading .tc-rail-label{margin:0}
.tc-new-group{border:1px solid var(--tc-line);border-radius:8px;background:var(--tc-bg);color:var(--tc-accent);width:30px;height:30px;font-size:20px;cursor:pointer}
.tc-room-list{display:flex;flex-direction:column;gap:6px;max-height:38%;overflow:auto;overscroll-behavior:contain;flex-shrink:0}
.tc-root .tc-room-active{padding:10px 9px;border-color:transparent;background:transparent;box-shadow:none;min-height:56px;gap:8px}
.tc-root .tc-room-active:hover{background:var(--tc-bg)}
.tc-root .tc-room-active.is-current{background:var(--tc-bg);border-color:var(--tc-line)}
.tc-room-name{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.35}
.tc-root .tc-room-symbol{font-size:19px;flex-shrink:0}
.tc-room-unread{font-size:10px;background:var(--tc-accent);color:var(--tc-own-ink);border-radius:12px;padding:2px 5px;min-width:19px;text-align:center}
.tc-online-heading{display:flex;align-items:center;justify-content:space-between;color:var(--tc-muted);font-size:10px;letter-spacing:.09em;font-weight:700;margin:24px 0 8px}
.tc-online-heading span{letter-spacing:0;font-weight:500}
.tc-online-list{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
.tc-online-person{display:flex;align-items:center;gap:8px;padding:9px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.tc-online-empty{font-size:11px;line-height:1.5;color:var(--tc-muted)}
.tc-conversations{display:none!important}.tc-root:not(.is-page) .tc-conversations{display:grid!important}
.tc-manage-group{margin-left:auto}.tc-manage-group:not([hidden])~.tc-close{margin-left:0}
.tc-rail-close{display:none!important}
.tc-group-editor{position:absolute;inset:0;z-index:30;padding:18px;display:flex;align-items:center;justify-content:center;background:rgba(28,18,22,.48);pointer-events:auto}
.tc-group-card{display:flex;flex-direction:column;width:440px;max-width:100%;max-height:100%;background:var(--tc-bg);border:1px solid var(--tc-line);border-radius:16px;padding:20px;color:var(--tc-ink);box-shadow:0 14px 44px rgba(25,15,20,.2)}
.tc-root .tc-group-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:auto;min-height:36px;padding:0;border:0;background:transparent;flex-shrink:0}
.tc-group-card h3{font:inherit;font-size:17px;font-weight:700;margin:0}
.tc-group-label{display:block;margin:16px 0 6px;font-size:12px;font-weight:600}
.tc-root .tc-group-card>input{font:inherit;font-size:14px;background:var(--tc-panel);color:var(--tc-ink);border:1px solid var(--tc-line);border-radius:9px;padding:10px 12px;width:100%;min-height:42px;flex-shrink:0}
.tc-group-note{font-size:11px;color:var(--tc-muted);line-height:1.6;margin:10px 0}
.tc-group-members{overflow:auto;min-height:60px;max-height:260px;overscroll-behavior:contain}
.tc-group-person{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px;border-radius:8px;font-size:13px;cursor:pointer}
.tc-group-person:hover{background:var(--tc-panel)}
.tc-group-person input{accent-color:var(--tc-accent);width:16px;height:16px;flex-shrink:0}
.tc-group-person small{display:block;font-size:11px;color:var(--tc-muted);margin-top:2px}
.tc-group-feedback{font-size:12px;line-height:1.5;color:var(--tc-accent);margin:10px 0;flex-shrink:0}
.tc-group-save{min-height:42px;border:0;border-radius:9px;color:var(--tc-own-ink);background:var(--tc-accent);font:inherit;font-weight:600;flex-shrink:0;cursor:pointer}
.tc-group-save:disabled{opacity:.5;cursor:wait}
.tc-root:not(.is-page).is-rail .tc-page-rail{display:flex!important;position:absolute;inset:74px 16px 16px auto;width:290px;max-width:calc(100vw - 32px);z-index:12;border:1px solid var(--tc-line);border-radius:18px;padding:20px;pointer-events:auto}
.tc-root:not(.is-page).is-rail .tc-rail-close{display:grid!important;position:absolute;right:12px;top:14px}
@media(max-width:767px),(max-width:950px) and (max-height:500px){
 .tc-root.is-page .tc-conversations{display:grid!important}
 .tc-root.is-page.is-rail .tc-page-rail,.tc-root:not(.is-page).is-rail .tc-page-rail{display:flex!important;position:absolute;inset:0 auto 0 0;width:min(310px,90%);height:100%;z-index:12;padding:22px 18px;border-radius:0;box-shadow:12px 0 30px rgba(25,15,20,.25);pointer-events:auto}
 .tc-root.is-rail .tc-rail-close{display:grid!important;position:absolute;right:12px;top:14px}
 .tc-root .tc-group-card>input{font-size:16px}
 .tc-group-card{padding:16px}.tc-group-editor{padding:10px}
 .tc-group-members{max-height:32dvh}.tc-group-person,.tc-group-save,.tc-new-group{min-height:44px}
 .tc-root.is-page .tc-title{font-size:16px;overflow-wrap:anywhere}
 .tc-root .tc-conversations{order:-2}
}


/* ── Message formatting (2026-10-31) ───────────────────────────────────────── */
.tc-bubble strong{font-weight:700}
.tc-bubble em{font-style:italic}
.tc-bubble s{opacity:.72}
.tc-bubble code{font-family:ui-monospace,'DM Mono',Menlo,Consolas,monospace;font-size:.88em;
  background:rgba(123,34,45,.09);border-radius:5px;padding:1px 5px;white-space:pre-wrap}
.is-own .tc-bubble code{background:rgba(255,244,241,.18)}
html[data-theme="dark"] .tc-bubble code{background:rgba(237,172,183,.16)}
/* The bubble is white-space:pre-wrap, so a list must not also inherit indentation from it. */
.tc-bubble .tc-list{margin:4px 0 4px 2px;padding-left:18px;white-space:normal}
.tc-bubble .tc-list li{margin:2px 0}
.tc-bubble .tc-list li::marker{color:var(--tc-muted)}
.is-own .tc-bubble .tc-list li::marker{color:inherit;opacity:.7}

/* ── Reactions ─────────────────────────────────────────────────────────────── */
.tc-reacts{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:5px 0 0 2px}
.is-own .tc-reacts{justify-content:flex-end;margin-right:2px}
.tc-react{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--tc-line,#e4ddd6);
  background:var(--tc-bg,#faf8f5);border-radius:999px;padding:2px 8px;cursor:pointer;line-height:1.5;
  font-size:11px;color:var(--tc-muted,#776a65);transition:border-color .14s,background .14s}
.tc-react:hover{border-color:var(--tc-accent)}
.tc-react.is-mine{border-color:var(--tc-accent);background:var(--tc-tint);color:var(--tc-accent);font-weight:700}
.tc-react-e{font-size:13px;line-height:1}
.tc-react-n{font-variant-numeric:tabular-nums}
/* The add button stays out of the way until the message is hovered or it has focus, so a quiet
   thread is not a wall of grey circles. It is always present for keyboard and touch users. */
.tc-react-add{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid transparent;
  background:transparent;color:var(--tc-muted);cursor:pointer;opacity:0;transition:opacity .14s,color .14s,border-color .14s}
.tc-react-add svg{width:14px;height:14px}
.tc-msg:hover .tc-react-add,.tc-react-add:focus-visible{opacity:1}
.tc-react-add:hover{color:var(--tc-accent);border-color:var(--tc-line)}
.tc-reacts.is-empty{margin-top:2px}
@media(hover:none){.tc-react-add{opacity:1}}
/* The picker is appended to document.body so that position:fixed resolves against the viewport
   (an ancestor inside .tc-root carries a transform, which would otherwise become its containing
   block). That puts it OUTSIDE .tc-root, where the --tc-* tokens are declared — so it must carry
   its own colours. Using var(--tc-bg) here resolved to nothing and the popover rendered with no
   background at all. These values mirror the chat palette rather than inventing new ones. */
.tc-react-picker{
  --p-surface:#ffffff;
  --p-line:#e0d8d1;
  --p-hover:#f2eeea;
  --p-shadow:0 12px 34px rgba(39,20,22,.20), 0 2px 8px rgba(39,20,22,.10);
  position:fixed;z-index:900;display:flex;gap:2px;padding:5px;
  background:var(--p-surface);border:1px solid var(--p-line);border-radius:999px;
  box-shadow:var(--p-shadow);
  /* Opaque by design: it floats over message text, which must not show through. */
  -webkit-backdrop-filter:none;backdrop-filter:none;
  animation:tcPickerIn .13s ease-out}
@keyframes tcPickerIn{from{opacity:0;transform:translateY(4px) scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.tc-react-picker{animation:none}}
html[data-theme="dark"] .tc-react-picker{
  --p-surface:#2f282b;
  --p-line:#4a3d42;
  --p-hover:#3d3338;
  --p-shadow:0 12px 34px rgba(0,0,0,.52), 0 2px 8px rgba(0,0,0,.34);
}
.tc-react-picker button{border:0;background:transparent;border-radius:50%;width:32px;height:32px;
  font-size:17px;line-height:1;cursor:pointer;transition:background .12s,transform .12s;
  display:grid;place-items:center;padding:0}
.tc-react-picker button:hover{background:var(--p-hover);transform:scale(1.12)}
.tc-react-picker button:focus-visible{outline:2px solid #7b222d;outline-offset:-2px}
html[data-theme="dark"] .tc-react-picker button:focus-visible{outline-color:#edacb7}
@media(max-width:639px){
  .tc-react{min-height:28px;font-size:12px}
  .tc-react-picker button{width:40px;height:40px;font-size:20px}
}

/* ── Formatting toolbar + the blocks it produces (2026-10-31) ──────────────── */
.tc-toolbar{display:flex;align-items:center;gap:1px;flex-wrap:nowrap;overflow-x:auto;
  scrollbar-width:none;margin:-2px -2px 6px;padding:0 2px 5px;border-bottom:1px solid var(--tc-line)}
.tc-toolbar::-webkit-scrollbar{display:none}
.tc-tb-btn{display:grid;place-items:center;width:28px;height:28px;flex:0 0 auto;border:0;
  border-radius:7px;background:transparent;color:var(--tc-muted);cursor:pointer;
  transition:background .12s,color .12s}
.tc-tb-btn svg{width:16px;height:16px}
.tc-tb-btn:hover{background:var(--tc-tint);color:var(--tc-accent)}
.tc-tb-btn:active{transform:scale(.94)}
.tc-tb-sep{flex:0 0 auto;width:1px;height:16px;background:var(--tc-line);margin:0 5px}
@media(max-width:639px){.tc-tb-btn{width:34px;height:34px}.tc-tb-btn svg{width:17px;height:17px}}

.tc-bubble a{color:inherit;text-decoration:underline;text-underline-offset:2px;
  text-decoration-thickness:1px;word-break:break-word}
.tc-bubble a:hover{text-decoration-thickness:2px}
.tc-msg:not(.is-own) .tc-bubble a{color:var(--tc-accent)}

.tc-bubble .tc-quote-block{margin:4px 0;padding:2px 0 2px 10px;border-left:3px solid var(--tc-accent);
  opacity:.9;white-space:pre-wrap}
.is-own .tc-bubble .tc-quote-block{border-left-color:rgba(255,244,241,.55)}
.tc-bubble .tc-pre{margin:5px 0;padding:9px 11px;border-radius:10px;overflow-x:auto;
  background:rgba(123,34,45,.09);white-space:pre}
.is-own .tc-bubble .tc-pre{background:rgba(255,244,241,.16)}
html[data-theme="dark"] .tc-bubble .tc-pre{background:rgba(237,172,183,.14)}
.tc-bubble .tc-pre code{background:none;padding:0;font-size:.86em;white-space:pre}

/* ── Maximum chat area (2026-11-10, Mido request) ──────────────────────────────
   Desktop full-page chat only: same guard as the layout passes above, so the phone/short-landscape
   full-bleed layout and the floating quick-reply drawer are untouched. Colours are not changed, so
   there is no light/dark token pair to collapse; this only removes frame, margin and padding.
   - body.viewing-chat .app-container: the page shell caps content at 1360px (1432px >=1921px) with
     24px margins. Management already lifts the same cap the same way.
   - Height is "viewport minus the fixed 52px top bar". !important because team-chat.js sets an inline
     pixel height (innerHeight - top - 20) on every resize; scoped to this desktop guard so the phone
     path (visualViewport height) is untouched.
   - .tc-toolbar is used by BOTH the status row and the formatting row, so each is targeted
     separately here (.tc-drawer>.tc-toolbar vs #tcToolbar). */
@media(min-width:768px) and (min-height:501px){
  body.viewing-chat .app-container{max-width:none;width:100%;margin-left:0;margin-right:0}
  #view-chat{padding:0}
  .tc-root.is-page{height:calc(100dvh - 52px)!important;border:0;border-radius:0;grid-template-columns:176px minmax(0,1fr)}
  .tc-root.is-page .tc-page-rail{padding:16px 12px 14px}
  .tc-root.is-page .tc-page-rail h1{font-size:22px}
  .tc-root.is-page .tc-rail-label{margin-top:16px}
  .tc-root.is-page .tc-head{padding:6px 16px;gap:10px}
  .tc-root.is-page .tc-room-mark{width:30px;height:30px;border-radius:10px}
  .tc-root.is-page .tc-room-mark svg{width:17px;height:17px}
  .tc-root.is-page .tc-title{font-size:16px}
  .tc-root.is-page .tc-drawer>.tc-toolbar{padding:0 16px 4px;margin:0;min-height:0}
  .tc-root.is-page .tc-timeline{padding:8px clamp(14px,2vw,32px) 14px}
  .tc-root.is-page .tc-compose{padding:8px clamp(14px,2vw,32px) 10px}
  .tc-root.is-page .tc-msg-content{max-width:min(72%,720px)}
  .tc-root.is-page .tc-editor-wrap{padding:6px 10px}
  .tc-root.is-page #tcToolbar{margin:0 0 4px;padding:0 0 4px}
  .tc-root.is-page .tc-tb-btn{width:26px;height:26px}
  .tc-root.is-page .tc-compose-row .tc-icon{width:30px;height:30px}
  .tc-root.is-page .tc-send{width:34px;height:34px}
  .tc-root.is-page .tc-feedback:empty{margin:0}
}
@media(min-width:768px) and (max-width:1050px) and (min-height:501px){
  .tc-root.is-page{grid-template-columns:144px minmax(0,1fr)}
  .tc-root.is-page .tc-page-rail{padding:14px 10px}
}


/* ── Collapsible conversation rail (2026-11-10) ───────────────────────────────
   Desktop full-page chat only. Expanded is the default; the choice is remembered (localStorage
   tcRailCollapsed). Collapsed = 56px strip: each conversation is its symbol plus an unread count; the
   name stays in the DOM (visually hidden + title tooltip) so assistive tech still reads it. */
.tc-rail-toggle{display:none}
@media(min-width:768px) and (min-height:501px){
  .tc-root.is-page .tc-page-rail{position:relative}
  .tc-root.is-page .tc-rail-toggle{display:grid;place-items:center;position:absolute;top:10px;right:8px;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--tc-muted);cursor:pointer;z-index:2}
  .tc-root.is-page .tc-rail-toggle:hover{background:var(--tc-bg);color:var(--tc-accent)}
  .tc-root.is-page .tc-rail-toggle svg{width:18px;height:18px;transition:transform .16s}
  .tc-root.is-page.is-rail-collapsed{grid-template-columns:56px minmax(0,1fr)}
  .tc-root.is-page.is-rail-collapsed .tc-page-rail{padding:10px 6px;align-items:center}
  .tc-root.is-page.is-rail-collapsed .tc-rail-toggle{position:static;margin:0 0 12px}
  .tc-root.is-page.is-rail-collapsed .tc-rail-toggle svg{transform:rotate(180deg)}
  .tc-root.is-page.is-rail-collapsed .tc-rail-eyebrow,
  .tc-root.is-page.is-rail-collapsed .tc-page-rail h1,
  .tc-root.is-page.is-rail-collapsed .tc-rail-intro,
  .tc-root.is-page.is-rail-collapsed .tc-conversations-heading .tc-rail-label,
  .tc-root.is-page.is-rail-collapsed .tc-online-heading,
  .tc-root.is-page.is-rail-collapsed .tc-online-list{display:none}
  .tc-root.is-page.is-rail-collapsed .tc-conversations-heading{margin:0 0 8px;justify-content:center}
  .tc-root.is-page.is-rail-collapsed .tc-room-list{width:100%;align-items:center;gap:4px;overflow-x:hidden}
  .tc-root.is-page.is-rail-collapsed .tc-room-active{position:relative;justify-content:center;width:100%;min-height:44px;padding:0;gap:0}
  .tc-root.is-page.is-rail-collapsed .tc-room-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tc-root.is-page.is-rail-collapsed .tc-room-unread{position:absolute;top:2px;right:0;min-width:16px;font-size:9px;line-height:14px;padding:1px 4px;box-shadow:0 0 0 2px var(--tc-panel)}
}


/* ── Status in the header, members from the sidebar (2026-11-10, Mido request) ──
   Desktop full-page chat only. team-chat.js docks #tcStatus into .tc-head there (dockStatus), so the
   whole status row under the header is hidden: about 27px more for messages. The member list opens from
   the sidebar's ONLINE heading instead of the old "N online" toggle. */
@media(min-width:768px) and (min-height:501px){
  .tc-root.is-page .tc-drawer>.tc-toolbar{display:none}
  .tc-root.is-page .tc-head>.tc-status{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap;padding-right:6px}
  .tc-root.is-page .tc-head>.tc-status::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--tc-online);flex-shrink:0}
  .tc-root.is-page .tc-head>.tc-status.is-error::before{background:var(--tc-accent)}
  .tc-root.is-page .tc-head .tc-expand,.tc-root.is-page .tc-head .tc-manage-group{margin-left:0}
  .tc-root.is-page .tc-online-heading{display:flex;align-items:center;gap:8px;cursor:pointer;border-radius:8px;padding:6px;margin-left:-6px;margin-right:-6px}
  .tc-root.is-page .tc-online-heading>span{margin-left:auto}
  .tc-root.is-page .tc-online-heading::after{content:'›';font-size:15px;line-height:1;letter-spacing:0;font-weight:400}
  .tc-root.is-page .tc-online-heading:hover{background:var(--tc-bg);color:var(--tc-ink)}
  .tc-root.is-page .tc-online-heading:focus-visible{outline:2px solid var(--tc-accent);outline-offset:1px}
}


/* ── Search (2026-11-10) ───────────────────────────────────────────────────────
   One panel, three presentations: docked third column (desktop page >=1100px wide), overlay on the right
   (narrower desktop page), full-screen (phone), and a floating panel over the quick-reply drawer.
   The match bar (#tcSearchNav) shows only while the panel is closed on an overlay layout. */
.tc-search{position:absolute;z-index:14;display:flex;flex-direction:column;min-height:0;background:var(--tc-bg);color:var(--tc-ink);pointer-events:auto;border:1px solid var(--tc-line)}
.tc-root.is-page .tc-search{top:0;right:0;bottom:0;width:340px;max-width:100%;border:0;border-left:1px solid var(--tc-line)}
.tc-root:not(.is-page) .tc-search{right:16px;top:74px;bottom:16px;width:420px;max-width:calc(100vw - 32px);border-radius:22px;box-shadow:0 24px 70px rgba(39,20,22,.2),0 2px 8px rgba(39,20,22,.08)}
.tc-search-head{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--tc-line);flex-shrink:0}
.tc-search-field{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:38px;padding:0 6px 0 12px;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-panel);color:var(--tc-muted)}
.tc-search-field:focus-within{border-color:var(--tc-accent)}
.tc-search-field>svg{width:16px;height:16px;flex-shrink:0}
.tc-search-input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--tc-ink);font:inherit;font-size:14px;outline:none!important;-webkit-appearance:none;appearance:none}
.tc-search-input::-webkit-search-cancel-button{display:none}
.tc-search-input::placeholder{color:var(--tc-muted)}
.tc-root .tc-search-clear{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--tc-muted);font-size:18px;line-height:1;cursor:pointer}
.tc-root .tc-search-clear:hover{background:var(--tc-tint);color:var(--tc-accent)}
.tc-search-meta{margin:0;padding:8px 16px;font-size:11px;letter-spacing:.04em;color:var(--tc-muted);flex-shrink:0;min-height:30px}
.tc-search-results{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 6px 10px}
.tc-sr-empty{margin:0;padding:22px 14px;font-size:13px;line-height:1.6;color:var(--tc-muted);text-align:center}
.tc-root .tc-sr{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:11px;background:transparent;color:var(--tc-ink);cursor:pointer}
.tc-root .tc-sr:hover,.tc-root .tc-sr:focus-visible{background:var(--tc-panel)}
.tc-root .tc-sr.is-current{background:var(--tc-tint)}
.tc-sr-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tc-sr-name{font-size:12.5px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tc-sr-date{font-size:11px;color:var(--tc-muted);flex-shrink:0}
.tc-sr-snip{font-size:13px;line-height:1.45;color:var(--tc-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.tc-sr-snip mark{background:transparent;color:var(--tc-accent);font-weight:700}
.tc-root .tc-sr-more{display:block;margin:6px auto 4px;padding:8px 14px;border:1px solid var(--tc-line);border-radius:10px;background:var(--tc-bg);color:var(--tc-accent);font-size:12px;cursor:pointer}
.tc-root .tc-sr-more:disabled{opacity:.6;cursor:default}
.tc-hit{background:rgba(255,205,60,.55);color:inherit;border-radius:3px;padding:0 1px}
.is-own .tc-hit{background:rgba(255,226,120,.92);color:#2b1a1c}
html[data-theme="dark"] .tc-hit{background:rgba(255,205,60,.38)}
html[data-theme="dark"] .is-own .tc-hit{background:rgba(255,226,120,.85);color:#2b1a1c}
.tc-search-nav{position:absolute;z-index:7;top:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:3px 6px;border:1px solid var(--tc-line);border-radius:999px;background:var(--tc-bg);box-shadow:0 4px 16px rgba(30,20,20,.14)}
.tc-search-pos{min-width:62px;text-align:center;font-size:12px;color:var(--tc-muted);font-variant-numeric:tabular-nums}
.tc-search-nav .tc-icon:disabled{opacity:.35;cursor:default}
.tc-search-btn[aria-expanded="true"]{color:var(--tc-accent);background:var(--tc-tint)}
@media(min-width:1100px) and (min-height:501px){
  .tc-root.is-page.is-searching{grid-template-columns:176px minmax(0,1fr) 340px}
  .tc-root.is-page.is-searching.is-rail-collapsed{grid-template-columns:56px minmax(0,1fr) 340px}
  .tc-root.is-page .tc-search{position:relative;grid-column:3;grid-row:1;top:auto;right:auto;bottom:auto;width:auto;z-index:1}
  .tc-root.is-page .tc-search-nav{display:none}
}
@media(max-width:767px),(max-width:950px) and (max-height:500px){
  .tc-root.is-page .tc-search,.tc-root:not(.is-page) .tc-search{top:0;right:0;bottom:0;left:0;width:auto;max-width:none;border:0;border-radius:0;box-shadow:none}
  .tc-search-head{padding:8px 8px;padding-top:max(8px,env(safe-area-inset-top))}
  .tc-search-field{height:44px}
  .tc-search-input{font-size:16px}
  .tc-root .tc-sr{min-height:56px}
  .tc-root .tc-search-clear{width:36px;height:36px}
  .tc-search-nav{top:max(8px,env(safe-area-inset-top))}
}
@media(prefers-reduced-motion:reduce){.tc-search,.tc-search-nav{transition:none}}


/* ── Edit your own message (2026-11-11) ───────────────────────────────────────── */
.tc-edited{font-size:10px;font-style:italic;color:var(--tc-muted);letter-spacing:.01em}
.is-own .tc-edited{color:var(--tc-muted)}
.tc-root.is-editing .tc-reply-preview{background:var(--tc-tint);box-shadow:inset 3px 0 0 var(--tc-accent)}
.tc-root.is-editing .tc-editor-wrap{border-color:var(--tc-accent)}
.tc-root.is-editing #tcReplyName::before{content:'\270E\A0';font-style:normal}

/* Message controls: avatar aligned with author, reply/edit disclosed inside the bubble,
   reactions alongside incoming bubbles. Scope avatar rule to messages, not member pickers. */
.tc-root .tc-msg{align-items:flex-start}
.tc-message-row{display:flex;align-items:center;gap:6px;min-width:0}
.tc-message-main{position:relative;min-width:0;max-width:100%}
.tc-message-main>.tc-bubble{padding-right:36px}
.tc-bubble::after{content:'';display:block;clear:both}
.tc-bubble-meta{float:right;display:inline-flex;align-items:baseline;gap:5px;margin:6px 0 -1px 10px;color:var(--tc-muted);font-size:9px;line-height:1;white-space:nowrap}
.tc-bubble-meta .tc-time{display:inline;margin:0;color:inherit;font-size:inherit;line-height:inherit}
.tc-bubble-meta .tc-edited{color:inherit;font-size:inherit;line-height:inherit}
.is-own .tc-bubble-meta{color:var(--tc-own-ink);opacity:.72}
.tc-msg:not(.is-own) .tc-message-row>.tc-message-main{flex:1 1 auto}
.tc-msg:not(.is-own) .tc-message-row>.tc-reacts{flex:0 0 auto;max-width:76px;margin:0;align-self:center}
.tc-msg:not(.is-own) .tc-message-row>.tc-reacts.is-empty{max-width:32px;margin:0}
.tc-msg:not(.is-own) .tc-message-row>.tc-reacts .tc-react-add{opacity:1}
.tc-root .tc-msg-meta{min-height:20px;gap:6px}
.tc-message-menu{position:absolute;right:3px;top:3px;z-index:2;color:var(--tc-muted);white-space:normal}
.tc-message-menu[open]{z-index:8}
.tc-message-menu>summary{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;cursor:pointer;list-style:none;opacity:0;transition:opacity .12s}
.tc-message-menu>summary::-webkit-details-marker{display:none}
.tc-msg:hover .tc-message-menu>summary,.tc-msg:focus-within .tc-message-menu>summary,.tc-message-menu[open]>summary{opacity:1}
.tc-message-menu>summary:hover,.tc-message-menu[open]>summary{background:var(--tc-panel);color:var(--tc-ink)}
.tc-message-menu>summary:focus-visible{outline:2px solid var(--tc-accent);outline-offset:1px}
.is-own .tc-message-menu>summary{color:var(--tc-own-ink)}
.tc-message-options{position:absolute;right:0;top:30px;min-width:128px;padding:5px;background:var(--tc-bg);border:1px solid var(--tc-line);border-radius:10px;box-shadow:0 5px 18px rgba(30,20,24,.16);color:var(--tc-ink)}
.tc-message-menu.opens-up .tc-message-options{top:auto;bottom:30px}
.tc-message-options button{display:block;width:100%;min-height:36px;padding:7px 12px;border:0;border-radius:6px;text-align:left;background:transparent;color:inherit;font-size:13px}
.tc-message-options button:hover,.tc-message-options button:focus-visible{background:var(--tc-panel)}
@media(hover:none),(pointer:coarse){.tc-message-menu>summary{opacity:1;width:36px;height:36px}.tc-message-options{top:38px}.tc-message-menu.opens-up .tc-message-options{top:auto;bottom:38px}.tc-message-options button{min-height:44px}.tc-message-main>.tc-bubble{padding-right:42px}.tc-msg:not(.is-own) .tc-message-row>.tc-reacts{max-width:60px}}
