/* Group-only charcoal glass. Private chats keep their existing SMS palette. */
.group-back-icon{display:none}
.group-avatars{display:flex;align-items:center;flex:none;isolation:isolate}
.bot-badge{--bot-color:#f5f5f7;display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--bot-color);color:#1b1b1e;overflow:hidden}
.bot-tone-1{--bot-color:#ffad38}.bot-tone-2{--bot-color:#63d6b1}.bot-tone-3{--bot-color:#f288bb}.bot-tone-4{--bot-color:#b7a5f1}.bot-tone-5{--bot-color:#aebbd0}
.bot-badge svg{width:73%;height:73%;display:block}
.bot-shell{fill:none;stroke:currentColor;stroke-width:1.15;opacity:.55}
.bot-eyes{stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none}
.team-item-icon .bot-badge{width:28px;height:28px}
.avatar-extra{color:var(--soft);font-size:13px;font-weight:780;line-height:1;white-space:nowrap;padding-inline:2px}
.group-conversation{color-scheme:dark;--page:#141414;--sheet:#232325;--surface:#171718;--ink:#f5f5f7;--soft:#aaaab0;--border:#3d3d41;--mine:#2d4254;--accent:#d2e9fc;--send:#f1f4f7;--on:#18181b;--focus:#9cc7ed;--fail:#ffb4a8;--incoming:#232324;--incoming-ink:#f3f3f5;--sms:#2a435a;--sms-ink:#fff;--dots:#b5b5bc;background:#141414}
.group-conversation .app{background:#141414;border-color:#29292b}
.group-conversation .top{position:relative;z-index:2;display:grid;grid-template-columns:43px minmax(0,1fr) 43px;padding:calc(10px + env(safe-area-inset-top)) clamp(10px,3.2vw,19px) 8px;gap:8px;border:0;background:#141414}
.group-conversation .team-toggle,.group-conversation .group-more,.group-conversation .identity,.jump-latest{background:linear-gradient(160deg,#343436dc,#222224e0);border:1px solid #4a4a4d;box-shadow:inset 0 1px 0 #ffffff12,0 4px 16px #0002;color:var(--ink)}
.group-conversation .team-toggle,.group-more,.jump-latest{width:43px;height:43px;padding:0;border-radius:50%;display:grid;place-items:center}
.group-conversation .team-toggle svg:not(.group-back-icon){display:none}
.group-conversation .group-back-icon{display:block;stroke-width:2}
.group-more svg,.jump-latest svg{width:20px;height:20px}
.group-more svg{stroke:currentColor;fill:currentColor}
.group-conversation .identity{height:43px;justify-content:flex-start;position:relative;gap:8px;border-radius:999px;padding:0 10px;overflow:hidden}
.group-info{position:absolute;inset:0;z-index:1;background:none;border:0;border-radius:inherit}
.group-info:focus-visible{outline-offset:-3px}
.group-conversation .person{gap:0;flex:1}
.group-conversation .person strong{font-size:15px;line-height:1.15;font-weight:670}
.group-conversation .person span{font-size:10px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.group-conversation .group-avatars .bot-badge{border:2px solid #29292b;width:29px;height:29px}
.group-conversation .group-avatars .bot-badge+.bot-badge{margin-inline-start:-9px}
.group-conversation .group-avatars .avatar-extra{margin-inline-start:-2px}
.group-conversation .feed{background:#141414;padding:12px clamp(12px,4vw,26px) 16px}
.group-conversation .messages{gap:15px}
.group-conversation .message{gap:4px}
.group-conversation .group-speaker{grid-template-columns:27px minmax(0,1fr);column-gap:9px;justify-items:start}
.group-speaker>.bot-badge{grid-column:1;grid-row:2;align-self:end;width:25px;height:25px}
.group-speaker>.speaker{grid-column:2;grid-row:1;padding:0 10px;color:var(--soft);font-size:12px;font-weight:540}
.group-speaker>.bubble{grid-column:2;grid-row:2;min-inline-size:0}
.group-conversation .group-work-row{padding-inline-start:36px}
.group-conversation .bubble{font-size:16px;line-height:1.48;border-radius:20px;padding:11px 14px;max-width:min(97%,520px)}
.group-conversation .mine .bubble{border-radius:19px;max-width:min(87%,505px)}
.group-conversation .mine>.speaker{color:#b3d4ef}
.group-conversation .bottom{position:relative;z-index:2;padding-top:8px;background:#141414;border-color:#2b2b2d}
.group-conversation .tools{gap:8px}
.group-conversation #hint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-conversation #work-link{flex:none}
.group-conversation .composer{background:#242426;border-color:#424245;border-radius:28px;padding:4px 5px 4px 13px}
.group-conversation .composer:focus-within{border-color:#7a9dbb}
.group-conversation .at-button{background:#2e2e30;color:#e1e7ec;border-color:#454548}
.group-conversation .at-button[aria-pressed=true]{background:#3a5267;border-color:#84a7c4}
.group-conversation .file-row a,.group-conversation .file-row button{background:#2c3034;border-color:#45494d}
.group-conversation .discussion-card{color:var(--soft);padding-inline-start:36px}
.group-empty{text-align:center;padding:clamp(50px,13vh,110px) 10px 12px;max-width:410px;margin:auto}
.group-empty .group-avatars{justify-content:center}
.group-conversation .group-empty .bot-badge{width:49px;height:49px;border:3px solid #141414}
.group-conversation .group-empty .bot-badge+.bot-badge{margin-inline-start:-13px}
.group-empty h1{font-size:26px;font-weight:680;letter-spacing:-.035em;line-height:1.15;margin:17px 0 8px;overflow-wrap:anywhere}
.group-empty p{font-size:14px;line-height:1.45;color:var(--soft);margin:0}
.jump-latest{width:34px;height:34px;position:absolute;z-index:3;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);border:1px solid #4a4a4d;color:var(--ink)}
.jump-latest svg{stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.group-home{display:grid;grid-template-columns:32px 1fr;gap:9px;text-decoration:none;color:inherit;background:var(--sheet);border:1px solid var(--border);border-radius:12px;padding:7px 9px}
.group-menu .team-list strong{font-size:14px;line-height:1.5}
.group-menu .team-list :is(button,a)>span{color:var(--accent);text-align:center}
@media(max-width:390px){.group-conversation .top{grid-template-columns:39px minmax(0,1fr) 39px;gap:7px}.group-conversation .team-toggle,.group-more{width:39px;height:39px}.group-conversation .identity{height:39px;gap:6px;padding-inline:7px}.group-conversation .group-avatars .bot-badge{width:27px;height:27px}.group-conversation .person strong{font-size:14px}}
@media(max-width:340px){.group-conversation .person span{display:none}.group-conversation .identity{gap:5px}.group-conversation .group-avatars .bot-badge{width:24px;height:24px}.group-conversation .bubble{padding:9px 11px;font-size:15px}}
@media(prefers-reduced-transparency:reduce){.group-conversation :is(.team-toggle,.group-more,.identity,.jump-latest){background:#28282a;box-shadow:none}}

/* The dots remain a stable DOM node while poll responses update the timeline. */
.group-conversation .group-typing-row{margin-top:14px}
.group-conversation .group-typing-row:not(.group-speaker){padding-inline-start:36px}
.group-conversation .group-typing-row .typing{padding:0;width:63px;height:37px;border-radius:999px}

.image-bubble{max-width:min(88%,380px)}
.image-bubble .chat-image{display:block;max-inline-size:100%;margin-top:7px;border-radius:13px;overflow:hidden}
.chat-image img{display:block;inline-size:min(320px,100%);max-inline-size:100%;block-size:auto;background:var(--sheet)}
.bot-image-status{display:flex;align-items:center;gap:9px}
.bot-image-spinner{width:14px;height:14px;border:2px solid transparent;border-inline-start-color:currentColor;border-bottom-color:currentColor;border-radius:50%;animation:bot-image-spin .9s linear infinite;opacity:.62}
@keyframes bot-image-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.bot-image-spinner{animation:none}}

/* Estimated image progress uses the Bot's neutral bubble in both themes. */
.bot-image-status:has(.bot-image-meter){display:grid;gap:8px;min-inline-size:min(216px,55vw);padding-block:11px}
.bot-image-status-head{display:flex;align-items:center;gap:8px;min-inline-size:0}
.bot-image-status-head>.bot-image-spinner{flex:none}
.bot-image-percent{margin-inline-start:auto;padding-inline-start:8px;font-size:.72em;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.75}
.bot-image-meter{height:5px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}
.bot-image-meter-fill{display:block;inline-size:var(--image-progress,4%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#4384b0,#73b7e2);transition:inline-size .65s cubic-bezier(.16,.7,.24,1)}
.bot-image-done{display:inline-block;margin-inline-start:8px;vertical-align:baseline;font-size:.73em;font-variant-numeric:tabular-nums;color:inherit;opacity:.68;animation:bot-image-done .28s ease-out both}
@keyframes bot-image-done{from{opacity:0;transform:translateY(2px)}to{opacity:.68;transform:none}}
@media(prefers-reduced-motion:reduce){.bot-image-meter-fill{transition:none}.bot-image-done{animation:none}}
