/* Compact messenger. Colors follow Settings > Appearance. */
.tg-membership-bar{flex:none;border-bottom:1px solid var(--cc-line,var(--line));padding:7px 18px;background:var(--cc-bg,var(--surface));font-size:12px;line-height:1.45;color:var(--cc-ink,var(--ink))}.tg-membership-counts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tg-membership-counts>span,.tg-membership-help{color:var(--cc-muted,var(--muted))}.tg-membership-sharing{color:var(--cc-muted,var(--muted));font-size:11px;line-height:1.45;margin:4px 0}.tg-membership-self{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px}.tg-membership-self>span{flex:1 1 180px}.tg-membership-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tg-membership-join,.tg-membership-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border-radius:6px;padding:4px 9px;font:inherit;font-weight:600;white-space:nowrap;text-decoration:none}.tg-membership-join{background:var(--cc-green,var(--accent));border:1px solid var(--cc-green,var(--accent));color:var(--on-button,#fff)}.tg-membership-link{border:1px solid var(--cc-line,var(--line));background:transparent;color:var(--cc-green,var(--accent));cursor:pointer}.tg-membership-dialog{max-width:540px;font-size:13px}.tg-membership-dialog .tg-membership-sharing,.tg-membership-dialog .tg-membership-help{font-size:12px;margin:12px 0}.tg-membership-dialog .tg-membership-self{padding:10px;border:1px solid var(--cc-line,var(--line));border-radius:8px;display:block}.tg-membership-dialog .tg-membership-self .tg-membership-actions{margin-top:8px}.tg-membership-details{margin:16px 0}.tg-membership-details h3{font-size:13px;margin:0 0 8px}.tg-membership-details ul{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}.tg-membership-details li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--cc-line,var(--line));overflow-wrap:anywhere}.tg-membership-details small{max-width:60%;color:var(--cc-muted,var(--muted));text-align:right}.tg-membership-help{font-size:12px;margin:4px 0}@media(max-width:700px){.tg-membership-bar{padding:7px 12px}.tg-membership-counts{gap:3px 8px}.tg-membership-counts>span{flex-basis:100%}.tg-membership-sharing{font-size:10px}.tg-membership-details li{display:block}.tg-membership-details small{display:block;max-width:none;text-align:left;margin-top:3px}}
.tw-channel-kind{margin-left:7px;font-size:10px;font-weight:500;color:var(--cc-muted,var(--muted))}.tw-channel-description{max-width:42ch;margin:3px 0 0;color:var(--cc-muted,var(--muted));font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.phone-contact{position:relative}
.phone-contact:has(>.contact-phone-button:not([hidden]))>.cc-teammate{padding-right:47px!important}
.phone-contact:has(>.contact-phone-button:not([hidden])) .cc-person-time{display:none}
.contact-phone-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:7px;border:1px solid var(--cc-line,var(--line));border-radius:50%;background:var(--cc-bg,var(--surface));color:var(--cc-green,var(--accent));cursor:pointer;flex:none}
.contact-phone-button .ico{width:19px;height:19px}
.contact-phone-button:hover{background:var(--cc-mint,var(--surface2))}
.contact-phone-button:focus-visible{outline:2px solid var(--cc-green,var(--accent));outline-offset:2px}
.contact-phone-button[hidden]{display:none!important}
.phone-contact>.contact-phone-button{position:absolute;right:7px;top:50%;transform:translateY(-50%)}
.phone-user-action{display:flex;justify-content:flex-end;align-items:center}
#usersView.tw-reference .cc-u-row:has(.phone-user-action){grid-template-columns:minmax(180px,1.2fr) minmax(120px,1fr) minmax(140px,1fr) 40px}
@media(max-width:700px){#usersView.tw-reference .cc-u-row:has(.phone-user-action){grid-template-columns:minmax(0,1fr) auto}.phone-user-action{grid-column:2;grid-row:1/3}}
body:has(#tasksView.tw-reference-chat.active) #opFab{left:auto!important;right:12px!important;bottom:86px!important;transform:scale(.32)!important;transform-origin:bottom right}
body:has(#tasksView.tw-reference-chat.active) #opFab .op-bubble{display:none}
@media(min-width:900px){body:has(#tasksView.tw-reference-chat.active) #tbCrumb,body:has(#tasksView.tw-reference-chat.active) #testlogicWorkspaceLink{flex-shrink:0}body:has(#tasksView.tw-reference-chat.active) #topbar .searchbox{min-width:0;flex:1 1 360px;max-width:570px}}
:is(#tasksView,#boardsView,#galleryView,#teamsView,#usersView).tw-reference>.pg-tabs.cc-tabs{min-height:48px;gap:26px;padding:0 20px}
:is(#tasksView,#boardsView,#galleryView,#teamsView,#usersView).tw-reference>.pg-tabs.cc-tabs button{min-height:48px}
:is(#tasksView,#boardsView,#galleryView,#teamsView,#usersView).tw-reference>.cc-pagehead{min-height:48px;padding:4px 16px 4px 8px}
#tasksView.tw-reference>.cc-pagehead .cc-btn{min-height:36px;padding:7px 12px}
#tasksView.tw-reference-chat>.cc-workspace{grid-template-columns:clamp(248px,21%,280px) minmax(0,1fr)}
#tasksView.tw-reference-chat .cc-contacts{padding:12px 8px;background:var(--cc-surface)}
#tasksView.tw-reference-chat .cc-list-title{padding:0 8px 10px;font-size:20px}
#tasksView.tw-reference-chat .cc-search{min-height:40px;margin:0 4px 10px;padding:8px 11px;border-radius:10px;background:var(--cc-bg)}
#tasksView.tw-reference-chat .cc-search input{font-size:14px;min-width:0}
#tasksView.tw-reference-chat .cc-person{gap:10px;min-height:66px;padding:9px 8px;margin:0 0 3px;border-radius:10px;width:100%}
#tasksView.tw-reference-chat .cc-person .cc-avatar{width:42px;height:42px;font-size:15px}
#tasksView.tw-reference-chat .cc-person-body{flex:1;min-width:0}
#tasksView.tw-reference-chat .cc-person-name{font-size:15px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tasksView.tw-reference-chat .cc-person-message{font-size:13px;line-height:1.45;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tasksView.tw-reference-chat .cc-person-time{font-size:10px}
#tasksView.tw-reference-chat .cc-chat{min-width:0}
#tasksView.tw-reference-chat .cc-chathead{min-height:62px;padding:8px 18px}
#tasksView.tw-reference-chat .cc-chathead>.cc-flex{gap:12px}
#tasksView.tw-reference-chat .cc-chathead .cc-avatar{width:44px;height:44px;font-size:16px}
#tasksView.tw-reference-chat .cc-chathead h2{font-size:19px;line-height:1.3}
#tasksView.tw-reference-chat .cc-chathead small{font-size:13px;line-height:1.4;margin-top:3px}
#tasksView.tw-reference-chat .cc-thread{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
#tasksView.tw-reference-chat .cc-thread>.cc-messages{min-height:0;padding:18px 24px;gap:14px;background:var(--cc-bg)}
#tasksView.tw-reference-chat .cc-thread .cc-message-author{font-size:12px;gap:12px;margin-bottom:5px}
#tasksView.tw-reference-chat .cc-message{max-width:82%;min-width:0}
#tasksView.tw-reference-chat .cc-message .cc-bubble{font-size:16px;line-height:1.5;padding:10px 14px;border-radius:14px;overflow-wrap:anywhere}
#tasksView.tw-reference-chat .cc-message:has(.chat-picture){width:fit-content;max-width:min(82%,390px)}
.chat-attachments:has(.chat-picture){width:fit-content;max-width:100%}
.chat-picture{width:fit-content;max-width:100%}
#tasksView.tw-reference-chat .cc-compose-wrap{flex:0 0 auto;max-height:55%;padding:10px 16px;background:var(--cc-surface)}
#tasksView.tw-reference-chat .cc-chat .chat-composer-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;gap:8px;align-items:end;flex:none;min-height:44px}
#tasksView.tw-reference-chat .chat-composer-row .conv-box{min-width:0;margin:0;border:1px solid var(--cc-line);background:var(--cc-bg);border-radius:12px;padding:8px 12px}
#tasksView.tw-reference-chat .chat-composer-row .conv-box textarea{display:block;width:100%;padding:0;min-height:28px;max-height:120px;font-size:16px;line-height:28px;border:0;outline:0;resize:none;background:transparent;color:var(--cc-ink)}
#tasksView.tw-reference-chat .chat-composer-row .conv-foot{display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0;min-height:44px}
#tasksView.tw-reference-chat .chat-composer-row .cc-send{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%}
#tasksView.tw-reference-chat .chat-composer-row .cc-send .cc-icon{width:23px;height:23px}
#tasksView.tw-reference-chat .chat-composer-row .conv-err{grid-column:1/-1;font-size:13px;padding:4px 0}
#tasksView.tw-reference-chat .chat-composer-row .cc-task-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 0 10px}
#tasksView.tw-reference-chat .chat-composer-row .cc-task-fields .cc-field:first-of-type{grid-column:1/-1}
#tasksView.tw-reference-chat .chat-composer-row .cc-input{font-size:14px;min-height:38px;padding:8px 10px}
#tasksView.tw-reference-chat [hidden]{display:none!important}
.chat-list-filters{display:flex;gap:5px;margin:0 4px 12px}.chat-list-filters button{font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--cc-line);border-radius:18px;background:transparent;color:var(--cc-muted);cursor:pointer}.chat-list-filters button[aria-pressed=true]{background:var(--cc-mint);color:var(--cc-green);border-color:var(--cc-green)}
.chat-tool{display:inline-grid;place-items:center;flex:none;width:36px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--cc-muted);cursor:pointer;padding:6px}.chat-tool:hover{background:var(--cc-soft);color:var(--cc-ink)}.chat-tool:focus-visible,.chat-task-toggle:focus-visible{outline:2px solid var(--cc-green);outline-offset:2px}.chat-tool:disabled{opacity:.4;cursor:not-allowed}.chat-tool .cc-icon{width:23px;height:23px}
.chat-header-actions,.chat-media-tools{display:flex;align-items:center;gap:2px}.chat-task-toggle{display:flex;align-items:center;gap:5px;font:inherit;font-size:13px;white-space:nowrap;min-height:40px;padding:6px 9px;border:1px solid var(--cc-line);border-radius:8px;background:transparent;color:var(--cc-ink);cursor:pointer}.chat-task-toggle .cc-icon{width:16px;height:16px}.chat-task-head{display:flex;justify-content:space-between;align-items:center;grid-column:1/-1}
.chat-attachment-tray{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;max-height:96px;padding:0 0 4px}.chat-pending{display:flex;align-items:center;gap:8px;min-width:170px;max-width:250px;border:1px solid var(--cc-line);border-radius:9px;padding:7px;background:var(--cc-bg);color:var(--cc-ink)}.chat-pending>img{width:42px;height:42px;border-radius:5px;object-fit:cover}.chat-pending>span{min-width:0;flex:1}.chat-pending b,.chat-pending small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chat-pending small{color:var(--cc-muted);margin-top:3px}.chat-pending button{border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer}.chat-pending.has-error{border-color:var(--danger,#e15b64)}.chat-dragging{outline:2px dashed var(--cc-green);outline-offset:-5px}
.chat-attachments:empty{display:none}.chat-attachments{display:grid;gap:8px;margin-top:6px}.chat-file{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;max-width:340px;padding:7px 0}.chat-file>span{min-width:0;flex:1}.chat-file b{font-size:14px;overflow-wrap:anywhere}.chat-file small{display:block;font-size:12px;opacity:.75;margin-top:3px}.chat-picture{display:block;color:inherit;text-decoration:none}.chat-picture img{display:block;max-width:min(100%,360px);max-height:320px;border-radius:8px;object-fit:contain}.chat-picture span{display:block;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.chat-video-file video{display:block;max-width:100%;width:360px;max-height:300px;border-radius:8px;background:#000}.chat-video-file a,.chat-round-message figcaption{font-size:12px;color:inherit}.chat-round-message{margin:0}.chat-round-message video{display:block;width:220px;height:220px;max-width:100%;border-radius:50%;object-fit:cover;background:#000}.chat-round-message figcaption{padding:6px 0;text-align:center}.chat-round-message a{color:inherit}
.chat-emoji-picker{position:fixed;z-index:100105;height:292px;box-sizing:border-box;padding:12px;background:var(--cc-surface,var(--surface));color:var(--cc-ink,var(--ink));border:1px solid var(--cc-line,var(--line));border-radius:14px;box-shadow:var(--shadow-pop,0 10px 40px #0005);font:inherit;font-size:14px}.chat-emoji-head{display:flex;align-items:center;justify-content:space-between}.chat-emoji-head button{background:none;border:0;color:inherit;font-size:22px;cursor:pointer}.chat-emoji-categories{display:flex;gap:5px;padding:8px 0;border-bottom:1px solid var(--cc-line)}.chat-emoji-categories button,.chat-emoji-grid button{font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;background:transparent;border:0;cursor:pointer;border-radius:8px;color:inherit}.chat-emoji-categories button{font-size:23px;width:40px;height:36px}.chat-emoji-categories button[aria-selected=true]{background:var(--cc-mint)}.chat-emoji-label{font-size:12px;color:var(--cc-muted);padding:8px 2px 4px}.chat-emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.chat-emoji-grid button{font-size:27px;height:40px}.chat-emoji-grid button:hover{background:var(--cc-soft)}
.chat-recorder{width:min(380px,calc(100vw - 30px));padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 20px 80px #0006}.chat-recorder::backdrop{background:#0009}.chat-recorder-head{display:flex;align-items:center;justify-content:space-between;font-size:18px}.chat-recorder-head button{font-size:24px;background:transparent;color:inherit;border:0;cursor:pointer}.chat-camera{display:block;width:260px;height:260px;max-width:100%;margin:16px auto;border-radius:50%;object-fit:cover;background:#000}.chat-record-status{text-align:center;font-size:15px}.chat-recorder p{text-align:center;color:var(--muted);font-size:12px;margin:8px 0 16px}.chat-record-actions{display:flex;justify-content:flex-end;gap:8px}.chat-send-spinner{width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:chat-spin .8s linear infinite}@keyframes chat-spin{to{transform:rotate(360deg)}}
.chat-emoji-picker .chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.chat-emoji-picker .chat-emoji-grid button{width:100%;min-width:0;padding:0;overflow:hidden}.chat-emoji-picker .chat-emoji-categories button{min-width:0;padding:0}
@media(max-width:1000px){#tasksView.tw-reference-chat>.cc-workspace{grid-template-columns:248px minmax(0,1fr)}#tasksView.tw-reference-chat .cc-thread>.cc-messages{padding:16px}.chat-task-toggle span{display:none}.chat-task-toggle{padding:6px}.chat-task-toggle .cc-icon{width:20px;height:20px}}
@media(max-width:700px){#tasksView.tw-reference-chat>.cc-pagehead{display:flex;justify-content:flex-end;grid-column:1/-1;grid-row:1;min-height:42px;padding:3px 12px}#tasksView.tw-reference-chat>.cc-pagehead .cc-btn{min-height:34px;font-size:12px}#tasksView.tw-reference-chat>.pg-tabs.cc-tabs{grid-column:1/-1;grid-row:2}#tasksView.tw-reference-chat>.cc-workspace{grid-area:3/1/4/-1;grid-template-columns:minmax(0,1fr)}#tasksView.tw-reference-chat{grid-template-rows:auto auto minmax(0,1fr)}#tasksView.tw-reference-chat .cc-message{max-width:94%}#tasksView.tw-reference-chat .cc-compose-wrap{padding:8px;max-height:60%}#tasksView.tw-reference-chat .cc-chat .chat-composer-row{grid-template-columns:30px minmax(0,1fr) auto;gap:4px}#tasksView.tw-reference-chat .chat-media-tools{grid-column:2;grid-row:3;justify-content:flex-end}#tasksView.tw-reference-chat .chat-composer-row .conv-foot{grid-column:3;grid-row:2/4;align-self:center}#tasksView.tw-reference-chat .chat-composer-row>.chat-attach{grid-row:2;align-self:center}#tasksView.tw-reference-chat .chat-composer-row>.conv-box{grid-row:2}#tasksView.tw-reference-chat .chat-composer-row .cc-task-fields{grid-template-columns:1fr}.chat-round-message video{width:190px;height:190px}}
