@layer components{.terpChatShell[data-chat-mode=public]{--chat-blue:var(--ts-blue);--chat-blue-dim:var(--ts-blue-dim);--chat-blue-glow:var(--ts-blue-glow);--chat-blue-text:var(--ts-blue-text);--chat-measure:720px;isolation:isolate;background:var(--ts-bg-canvas);width:100%;min-height:0;display:flex;position:relative;overflow:hidden}.terpChatShell[data-chat-mode=public]:before{content:none}@media (min-width:1024px){.terpChatShell[data-chat-mode=public]{--chat-measure:1160px;--chat-gutter:32px;grid-template-columns:272px minmax(0,1fr);width:100%;display:grid}}:where([data-chat-mode=public]) .terpChatAside{border-right:1px solid var(--ts-border);background:var(--ts-bg-canvas);flex-direction:column;display:flex}:where([data-chat-mode=public]) .terpChatAsideHead{background:var(--ts-bg-elevated);border-bottom:1px solid var(--ts-border);flex-shrink:0;padding:20px 18px 16px}:where([data-chat-mode=public]) .terpChatEyebrow{font-size:var(--ts-type-floor-badge);color:var(--ts-text-muted);font-family:var(--ts-font-body);letter-spacing:0;text-transform:none;align-items:center;gap:8px;margin:0 0 8px;font-weight:600;display:flex}:where([data-chat-mode=public]) .terpChatBrand{font-family:var(--ts-font-display);font-size:var(--ts-type-step-1);color:var(--ts-text-primary);letter-spacing:-.02em;margin:0;font-weight:700;line-height:1.15}:where([data-chat-mode=public]) .terpChatTagline{font-size:var(--ts-type-step--1);color:var(--ts-text-muted);max-width:230px;margin:6px 0 0;line-height:1.4}:where([data-chat-mode=public]) .terpChatRooms{flex-direction:column;flex:1;gap:2px;padding:12px 10px;display:flex;overflow-y:auto}:where([data-chat-mode=public]) .terpChatRooms button{border-radius:var(--ts-radius-md);text-align:left;cursor:pointer;width:100%;min-height:62px;color:var(--ts-text-muted);transition:background .14s var(--ts-ease), color .14s var(--ts-ease), border-color .14s var(--ts-ease);font-size:var(--ts-type-step--1);background:0 0;border:none;border-left:2px solid #0000;align-items:center;gap:10px;padding:11px 12px;display:flex;position:relative}:where([data-chat-mode=public]) .terpChatRooms button:hover{color:var(--ts-text-body);border-left-color:var(--ts-border-hover);background:var(--ts-bg-hover)}:where([data-chat-mode=public]) .terpChatRooms button[data-active=true]{background:var(--ts-bg-hover);color:var(--ts-text-primary);border-left-color:var(--chat-blue);box-shadow:inset 2px 0 0 var(--chat-blue)}:where([data-chat-mode=public]) .terpChatRoomRail{display:none}:where([data-chat-mode=public]) .terpChatRoomText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}:where([data-chat-mode=public]) .terpChatRoomLabel{font-size:var(--ts-type-step-0);color:inherit;white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}:where([data-chat-mode=public]) .terpChatRoomPreview{min-height:1.3em;color:var(--ts-text-faint);font-size:var(--ts-type-step--1);text-overflow:ellipsis;white-space:nowrap;line-height:1.3;display:block;overflow:hidden}:where([data-chat-mode=public]) .roomUnreadBadge{background:var(--ts-accent);min-width:20px;height:20px;color:var(--ts-accent-text);font-family:var(--ts-font-mono);font-size:var(--ts-type-floor-badge);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;padding:0 6px;font-weight:700;line-height:1;display:inline-flex}:where([data-chat-mode=public]) .terpChatAsideFoot{font-size:var(--ts-type-step--1);color:var(--ts-text-faint);background:var(--ts-bg-canvas);border-top:1px solid var(--ts-border);flex-shrink:0;align-items:center;gap:8px;padding:14px 18px;display:flex}:where([data-chat-mode=public]) .terpChatHeader{border-bottom:1px solid var(--ts-border);background:var(--ts-bg-elevated);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:0 clamp(20px,4vw,72px);display:flex}@media (max-width:1023px){:where([data-chat-mode=public]) .terpChatHeader{display:none}}:where([data-chat-mode=public]) .terpChatHeaderMain{width:min(var(--chat-measure), 100%);align-items:center;gap:12px;margin-inline:auto;display:flex}:where([data-chat-mode=public]) .terpChatHeaderIcon{border:1px solid var(--chat-blue-dim);border-radius:var(--ts-radius-sm);width:30px;height:30px;color:var(--chat-blue);flex:none;place-items:center;display:grid}:where([data-chat-mode=public]) .terpChatChannel{font-family:var(--ts-font-display);font-size:var(--ts-type-step-0);color:var(--ts-text-primary);letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}:where([data-chat-mode=public]) .terpChatHeaderDivider{background:var(--ts-border-strong);flex:none;width:1px;height:16px;display:block}:where([data-chat-mode=public]) .terpChatHeaderNote{font-family:var(--ts-font-mono);font-size:var(--ts-type-floor-badge);color:var(--ts-text-muted);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}:where([data-chat-mode=public]) .terpChatToolbar{width:min(var(--chat-measure), 100%);border-bottom:1px solid var(--ts-border);background:var(--ts-bg-canvas);flex-shrink:0;align-items:center;gap:0;min-height:44px;margin-inline:auto;padding:0 clamp(16px,3vw,48px);display:flex}:where([data-chat-mode=public]) .terpChatToolbar button{height:44px;min-height:44px;font-family:var(--ts-font-body);font-size:var(--ts-type-floor-badge);letter-spacing:0;text-transform:none;color:var(--ts-text-faint);cursor:pointer;transition:all .14s var(--ts-ease-out);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;min-width:44px;padding:0 12px;font-weight:600}:where([data-chat-mode=public]) .terpChatToolbar button:hover{background:var(--ts-bg-hover);color:var(--ts-text-muted)}:where([data-chat-mode=public]) .terpChatToolbar button[data-active=true]{border-bottom-color:var(--ts-accent);color:var(--ts-text-primary);background:0 0}:where([data-chat-mode=public]) .terpChatMobileRooms{z-index:20;background:var(--ts-bg-elevated);scrollbar-width:none;border-bottom:0;flex-shrink:0;align-items:center;gap:8px;padding:10px 16px 0;display:flex;position:relative;overflow:visible}:where([data-chat-mode=public]) .terpChatMobileRooms::-webkit-scrollbar{display:none}@media (min-width:1024px){:where([data-chat-mode=public]) .terpChatMobileRooms{display:none}}:where([data-chat-mode=public]) .terpChatMobileRooms>button{border-radius:var(--ts-radius-md);min-height:44px;color:var(--ts-text-muted);font-family:var(--ts-font-body);font-size:var(--ts-type-step-0);letter-spacing:-.01em;white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:2px 2px 6px;font-weight:700;display:inline-flex}:where([data-chat-mode=public]) .terpChatMobileRooms>button span{color:var(--ts-text-primary)}:where([data-chat-mode=public]) .terpChatMobileRooms>button:hover,:where([data-chat-mode=public]) .terpChatMobileRooms>button[aria-expanded=true]{color:var(--ts-text-body)}:where([data-chat-mode=public]) .terpChatMobileRoomMenu{z-index:30;border:1px solid var(--ts-border);border-radius:var(--ts-radius-lg);background:var(--ts-bg-elevated);box-shadow:var(--ts-shadow-md);flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);left:12px;right:12px}:where([data-chat-mode=public]) .terpChatMobileRoomCopy{text-align:left;flex-direction:column;flex:1;min-width:0;display:flex}:where([data-chat-mode=public]) .terpChatMobileRoomMenu button{border-radius:var(--ts-radius-md);width:100%;min-height:44px;color:var(--ts-text-body);font-family:var(--ts-font-body);font-size:var(--ts-type-step--1);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:8px 10px;font-weight:600;display:flex}:where([data-chat-mode=public]) .terpChatMobileRoomMenu button:hover,:where([data-chat-mode=public]) .terpChatMobileRoomMenu button[data-active=true]{background:var(--ts-bg-hover);color:var(--ts-text-primary)}:where([data-chat-mode=public]) .terpChatMobileRoomMenu button:focus-visible{outline:1px solid var(--ts-accent);outline-offset:-1px}:where([data-chat-mode=public]) .terpChatMessageList{min-height:0;width:min(var(--chat-measure), 100%);background:var(--ts-bg-canvas);flex-direction:column;flex:auto;margin-inline:auto;padding:8px clamp(16px,3vw,40px) 28px;display:flex;position:relative;overflow-y:auto}:where([data-chat-mode=public]) .chatDateDivider{font-family:var(--ts-font-body);font-size:var(--ts-type-floor-badge);letter-spacing:.04em;text-transform:none;color:var(--ts-text-faint);justify-content:center;align-items:center;gap:14px;margin:22px 4px 8px;padding:0 8px;font-weight:600;display:flex}:where([data-chat-mode=public]) .chatDateDivider:first-child{margin-top:6px}:where([data-chat-mode=public]) .chatDateDivider:before,:where([data-chat-mode=public]) .chatDateDivider:after{content:"";background:var(--ts-border);flex:1;height:1px}:where([data-chat-mode=public]) .terpChatMsg[data-pending=true]{opacity:.68}:where([data-chat-mode=public]) .terpChatMsg[data-pending=true] .terpChatMsgMeta:after{content:"Sending…";color:var(--ts-text-faint);font-size:var(--ts-type-floor-badge)}:where([data-chat-mode=public]) .terpChatMsgRow{grid-template-columns:32px minmax(0,1fr);align-items:start;column-gap:12px;width:100%;min-width:0;display:grid}:where([data-chat-mode=public]) .terpChatMsg{border-radius:var(--ts-radius-md);transition:background .12s var(--ts-ease);content-visibility:auto;contain-intrinsic-size:0 64px;flex-shrink:0;gap:12px;padding:1px 8px;display:flex;position:relative}:where([data-chat-mode=public]) .terpChatMsg:hover,:where([data-chat-mode=public]) .terpChatMsg:focus-within,:where([data-chat-mode=public]) .terpChatMsg[data-active=true]{background:var(--ts-bg-hover);content-visibility:visible;z-index:1}:where([data-chat-mode=public]) .terpChatMsg[data-group=first]{padding-top:14px}:where([data-chat-mode=public]) .terpChatMsg[data-group=last]{padding-bottom:4px}:where([data-chat-mode=public]) .terpChatMsg:not([data-group=first]) .terpChatMsgAvatar{visibility:hidden}:where([data-chat-mode=public]) .terpChatMsg:not([data-group=first]) .terpChatMsgMeta{display:none}:where([data-chat-mode=public]) .terpChatMsg:focus-visible{background:var(--ts-bg-hover);outline:1px solid var(--ts-border-strong);outline-offset:0;box-shadow:none}:where([data-chat-mode=public]) .terpChatMsgMenuBtn{width:44px;height:44px;color:var(--ts-text-faint);cursor:pointer;z-index:5;font-size:var(--ts-type-floor-badge);letter-spacing:1px;background:0 0;border:none;justify-content:center;align-items:center;display:none;position:absolute;top:4px;right:2px}@media (hover:hover) and (pointer:fine){:where([data-chat-mode=public]) .terpChatMsg:hover .terpChatMsgMenuBtn,:where([data-chat-mode=public]) .terpChatMsg:focus-within .terpChatMsgMenuBtn,:where([data-chat-mode=public]) .terpChatMsg[data-active=true] .terpChatMsgMenuBtn{display:flex}}:where([data-chat-mode=public]) .terpChatMsgActions{border-radius:var(--ts-radius-md);border:1px solid var(--ts-border);background:var(--ts-bg-elevated);opacity:0;pointer-events:none;max-width:calc(100% - 16px);transition:opacity .14s var(--ts-ease), transform .14s var(--ts-ease);box-shadow:var(--ts-shadow-sm);z-index:20;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:1px;padding:2px 3px;display:flex;position:absolute;top:36px;right:8px;transform:translateY(2px)}:where([data-chat-mode=public]) .terpChatMsg:not([data-group=first]) .terpChatMsgActions{top:2px}:where([data-chat-mode=public]) .terpChatMsg:hover .terpChatMsgActions,:where([data-chat-mode=public]) .terpChatMsg:focus-within .terpChatMsgActions,:where([data-chat-mode=public]) .terpChatMsg[data-active=true] .terpChatMsgActions{opacity:1;pointer-events:auto;transform:translateY(0)}@media (pointer:coarse){:where([data-chat-mode=public]) .terpChatMsg:hover:not(:focus-within):not([data-active=true]),:where([data-chat-mode=public]) .terpChatMsg:focus-within:not([data-active=true]){content-visibility:auto}:where([data-chat-mode=public]) .terpChatMsgActions:not(.terpChatMsgActions--sheet){display:none}}:where([data-chat-mode=public]) .terpChatMsgActionBtn{border-radius:var(--ts-radius-sm);color:var(--ts-text-muted);cursor:pointer;transition:background .1s var(--ts-ease), color .1s var(--ts-ease);width:44px;min-width:44px;height:44px;min-height:44px;font-size:var(--ts-type-floor-badge);background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}:where([data-chat-mode=public]) .terpChatMsgActionBtn:hover{background:var(--ts-accent-dim);color:var(--ts-text-primary)}:where([data-chat-mode=public]) .terpChatMsgAvatar{border-radius:var(--ts-radius-pill);width:32px;height:32px;box-shadow:none;border:0;flex-shrink:0;margin-top:1px;overflow:hidden}:where([data-chat-mode=public]) .terpChatMsgAvatar:after{display:none}:where([data-chat-mode=public]) .terpChatMsg:hover .terpChatMsgAvatar{border-color:#0000}:where([data-chat-mode=public]) .terpChatMsgAvatar img{object-fit:cover;width:100%;height:100%}:where([data-chat-mode=public]) .terpChatMsgBubble{max-width:100%;color:var(--ts-text-body);font-size:var(--ts-type-step-0);word-wrap:break-word;box-shadow:none;background:0 0;border:0;border-radius:0;padding:0;line-height:1.55}:where([data-chat-mode=public]) .terpChatMsgBubble[data-bot=true]{background:0 0;border:0}:where([data-chat-mode=public]) .terpChatMsgBubble[data-bot=true] [data-terpchat-name=true]{color:var(--ts-text-primary)}:where([data-chat-mode=public]) .terpChatMsgMeta{align-items:baseline;gap:8px;min-height:0;margin:0 0 2px;display:flex}:where([data-chat-mode=public]) .terpChatMsgMeta [data-terpchat-name=true]{color:var(--ts-text-primary);font-size:var(--ts-type-step--1);letter-spacing:0;font-weight:700}:where([data-chat-mode=public]) .terpChatMsgMeta time{font-family:var(--ts-font-mono);font-size:var(--ts-type-floor-badge);color:var(--ts-text-faint)}:where([data-chat-mode=public]) .terpChatMsgBody{color:var(--ts-text-primary);font-size:var(--ts-type-step-0);word-wrap:break-word;margin:0;line-height:1.55;display:block}:where([data-chat-mode=public]) .terpChatMsgBody a{color:var(--ts-accent);text-underline-offset:2px;text-decoration:underline}:where([data-chat-mode=public]) .terpChatMsgBody a:hover{color:var(--ts-text-primary)}:where([data-chat-mode=public]) .terpChatBotBrief{border:1px solid var(--ts-border);border-radius:var(--ts-radius-lg);background:var(--ts-surface);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin:0;padding:10px 12px;display:grid}:where([data-chat-mode=public]) .terpChatBotBrief__title{font-family:var(--ts-font-body);font-size:var(--ts-type-step--1);color:var(--ts-text-primary);grid-column:1;margin:0;font-weight:700}:where([data-chat-mode=public]) .terpChatBotBrief__list{flex-wrap:wrap;grid-column:1;gap:2px 12px;margin:0;padding:0;list-style:none;display:flex}:where([data-chat-mode=public]) .terpChatBotBrief__item{color:var(--ts-text-muted);font-size:var(--ts-type-floor-badge);padding-left:0}:where([data-chat-mode=public]) .terpChatBotBrief__item:before{display:none}:where([data-chat-mode=public]) .terpChatBotBrief__actions{grid-area:1/2;place-self:center end;margin:0}:where([data-chat-mode=public]) .terpChatBotBrief__cta{min-height:44px;color:var(--ts-accent);font-size:var(--ts-type-floor-badge);white-space:nowrap;cursor:pointer;transition:color .14s var(--ts-ease-out);background:0 0;border:0;border-radius:0;align-items:center;gap:4px;padding:0;font-weight:600;text-decoration:none;display:inline-flex}:where([data-chat-mode=public]) .terpChatBotBrief__cta:hover{color:var(--ts-text-primary);background:0 0}:where([data-chat-mode=public]) .terpChatThreadToggle{border-radius:var(--ts-radius-sm);color:var(--ts-accent);font-family:var(--ts-font-mono);font-size:var(--ts-type-floor-badge);cursor:pointer;transition:all .14s var(--ts-ease-out);background:0 0;border:1.5px solid #0000;align-items:center;gap:6px;min-height:44px;margin-top:6px;padding:3px 10px;font-weight:700;display:inline-flex}:where([data-chat-mode=public]) .terpChatThreadToggle:hover{background:var(--ts-accent-dim);border-color:var(--ts-accent-dim)}:where([data-chat-mode=public]) .terpChatReactionPill{border-radius:var(--ts-radius-pill);border:1px solid var(--ts-border);background:var(--ts-surface);font-size:var(--ts-type-step--1);cursor:pointer;transition:all .14s var(--ts-ease-out);color:var(--ts-text-body);align-items:center;gap:5px;min-height:44px;padding:3px 10px;display:inline-flex}:where([data-chat-mode=public]) .terpChatReactionPill:hover{background:var(--ts-surface-hover);border-color:var(--ts-border-hover)}:where([data-chat-mode=public]) .terpChatComposer{width:min(var(--chat-measure), 100%);padding:12px clamp(16px, 3vw, 40px) calc(12px + var(--chat-safe-bottom,env(safe-area-inset-bottom)));border-top:1px solid var(--ts-border);background:var(--ts-bg-elevated);flex-shrink:0;align-items:flex-end;gap:8px;margin-inline:auto;display:flex;position:relative}:where([data-chat-mode=public]) .terpChatComposerBody{flex-direction:column;flex:auto;gap:8px;width:100%;min-width:0;display:flex}:where([data-chat-mode=public]) .terpChatComposerControls{align-items:flex-end;gap:10px;width:100%;min-width:0;display:flex}:where([data-chat-mode=public]) .terpChatComposer input,:where([data-chat-mode=public]) .terpChatComposer textarea{resize:none;background:var(--ts-bg-input);min-height:44px;max-height:160px;color:var(--ts-text-primary);transition:border-color .18s var(--ts-ease-out), box-shadow .18s var(--ts-ease-out), background .18s var(--ts-ease-out);border-radius:var(--ts-radius-lg);border:1px solid var(--ts-border);outline:none;flex:1;padding:10px 18px;font-size:1rem;line-height:1.4}:where([data-chat-mode=public]) .terpChatInputWrap{flex:auto;min-width:0;position:relative}:where([data-chat-mode=public]) .terpChatInputMirror{display:none}:where([data-chat-mode=public]) .terpChatInput{flex:auto;width:100%;min-width:0}@media (min-width:768px){:where([data-chat-mode=public]) .terpChatComposer input,:where([data-chat-mode=public]) .terpChatComposer textarea{font-size:var(--ts-type-step--1)}}:where([data-chat-mode=public]) .terpChatComposer input::placeholder,:where([data-chat-mode=public]) .terpChatComposer textarea::placeholder{color:var(--ts-text-faint)}:where([data-chat-mode=public]) .terpChatComposer input:focus,:where([data-chat-mode=public]) .terpChatComposer textarea:focus{border-color:var(--ts-accent);background:var(--ts-bg-hover);box-shadow:0 0 0 2px var(--ts-accent-dim)}:where([data-chat-mode=public]) .terpChatSendBtn{background:var(--ts-accent);width:44px;height:44px;color:var(--ts-accent-text);cursor:pointer;border-radius:var(--ts-radius-lg);transition:background .14s var(--ts-ease-out);border:none;flex-shrink:0;justify-content:center;align-items:center;display:flex}:where([data-chat-mode=public]) .terpChatSendBtn:hover:not(:disabled){box-shadow:none;background:var(--ts-accent);transform:none}:where([data-chat-mode=public]) .terpChatSendBtn:active:not(:disabled){transform:translateY(0)}:where([data-chat-mode=public]) .terpChatSendBtn:disabled{opacity:.35;cursor:not-allowed}:where([data-chat-mode=public]) .terpChatComposer__attach,:where([data-chat-mode=public]) .terpChatComposer__emoji .terpChatSendBtn{border:1px solid var(--ts-border);background:var(--ts-bg-hover);color:var(--ts-text-body)}:where([data-chat-mode=public]) .terpChatGuestPrompt{width:min(var(--chat-measure), 100%);border-radius:var(--ts-radius-lg);background:var(--ts-accent);min-height:44px;color:var(--ts-accent-text);font-size:var(--ts-type-step-0);border:0;justify-content:center;align-items:center;margin-inline:auto;padding:10px 16px;font-weight:700;text-decoration:none;display:flex}:where([data-chat-mode=public]) .terpChatGuestPrompt__link{border:1px solid var(--ts-border-hover);border-radius:var(--ts-radius-md);color:var(--ts-accent);font-size:var(--ts-type-step--1);transition:all .14s var(--ts-ease-out);flex-shrink:0;padding:7px 10px;font-weight:700;text-decoration:none}:where([data-chat-mode=public]) .terpChatGuestPrompt__link:hover{border-color:var(--ts-accent);background:var(--ts-accent-dim)}:where([data-chat-mode=public]) .chatTypingIndicator{font-family:var(--ts-font-mono);font-size:var(--ts-type-floor-badge);color:var(--ts-text-muted);flex-shrink:0;align-items:center;gap:8px;min-height:22px;padding:4px 20px 0;font-style:italic;display:flex}:where([data-chat-mode=public]) .chatTypingDots{align-items:center;gap:3px;display:inline-flex}:where([data-chat-mode=public]) .chatTypingDots span{background:var(--ts-text-muted);border-radius:50%;width:4px;height:4px;animation:1.4s ease-in-out infinite chatTypingPulse}:where([data-chat-mode=public]) .chatTypingDots span:nth-child(2){animation-delay:.2s}:where([data-chat-mode=public]) .chatTypingDots span:nth-child(3){animation-delay:.4s}@media (prefers-reduced-motion:reduce){:where([data-chat-mode=public]) .terpChatMsg[data-group=first]{animation:none}:where([data-chat-mode=public]) .chatTypingIndicator{opacity:.7;animation:none}:where([data-chat-mode=public]) .chatTypingDots span{animation:none}}:where([data-chat-mode=public]) .terpChatEmpty{text-align:center;color:var(--ts-text-muted);border:1px solid var(--ts-border);border-radius:var(--ts-radius-lg);background:var(--ts-bg-base);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;margin:24px clamp(20px,4vw,72px);padding:48px 24px;display:flex}:where([data-chat-mode=public]) .msgEditForm{flex-direction:column;gap:10px;margin-top:4px;display:flex}:where([data-chat-mode=public]) .msgEditTextarea{resize:vertical;border-radius:var(--ts-radius-md);border:1.5px solid var(--ts-border);background:var(--ts-bg-input);width:100%;min-height:80px;font-size:var(--ts-type-step--1);color:var(--ts-text-primary);transition:border-color .18s var(--ts-ease-out), box-shadow .18s var(--ts-ease-out);outline:none;padding:10px 14px;line-height:1.5}:where([data-chat-mode=public]) .msgEditTextarea:focus{border-color:var(--ts-accent-dim);box-shadow:0 0 0 3px var(--ts-accent-dim)}:where([data-chat-mode=public]) .msgEditActions{justify-content:flex-end;gap:8px;display:flex}:where([data-chat-mode=public]) .mentionDropdown{z-index:30;border-radius:var(--ts-radius-lg);border:1px solid var(--ts-border);background:var(--ts-bg-elevated);box-shadow:var(--ts-shadow-md);position:absolute;bottom:calc(100% + 8px);left:16px;right:16px;overflow:hidden}:where([data-chat-mode=public]) .mentionItem{text-align:left;width:100%;font-size:var(--ts-type-step--1);color:var(--ts-text-body);cursor:pointer;transition:background .1s var(--ts-ease);background:0 0;border:none;align-items:center;gap:8px;min-height:44px;padding:8px 12px;display:flex}:where([data-chat-mode=public]) .mentionItem:hover,:where([data-chat-mode=public]) .mentionItem[data-selected=true]{background:var(--ts-bg-hover);color:var(--ts-text-primary)}:where([data-chat-mode=public]) .unfurlCard{border-radius:var(--ts-radius-md);border:1px solid var(--ts-border);background:var(--ts-surface);font-size:var(--ts-type-floor-badge);color:var(--ts-text-muted);transition:all .14s var(--ts-ease-out);align-items:center;gap:8px;min-height:44px;padding:6px 12px;text-decoration:none;display:inline-flex}:where([data-chat-mode=public]) .unfurlCard:hover{border-color:var(--ts-border-hover);background:var(--ts-surface-hover)}:where([data-chat-mode=public]) .unfurlCard__name{color:var(--ts-text-body);font-weight:600}:where([data-chat-mode=public]) .unfurlCard__price{font-family:var(--ts-font-mono);color:var(--ts-accent);font-weight:700}:where([data-chat-mode=public]) .terpChatProfileEditBtn{border-radius:var(--ts-radius-md);border:1.5px solid var(--ts-border);font-size:var(--ts-type-step--1);color:var(--ts-text-muted);cursor:pointer;transition:all .14s var(--ts-ease-out);background:0 0;justify-content:center;align-items:center;min-height:44px;padding:8px 16px;font-weight:600;display:inline-flex}:where([data-chat-mode=public]) .terpChatProfileEditBtn:hover{border-color:var(--ts-border-hover);background:var(--ts-bg-hover);color:var(--ts-text-body)}:where([data-chat-mode=public]) .terpChatProfileBlockBtn{border-radius:var(--ts-radius-md);border:1.5px solid var(--ts-red-dim);background:var(--ts-red-dim);width:100%;font-size:var(--ts-type-step--1);color:var(--ts-red);cursor:pointer;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;font-weight:600;display:inline-flex}:where([data-chat-mode=public]) .terpChatProfileBlockBtn:hover{background:var(--ts-red-dim);border-color:var(--ts-red)}:where([data-chat-mode=public]) .terpChatPanel{background:var(--ts-bg-elevated)}:where([data-chat-mode=public]) .terpChatProfileAvatar{border-radius:var(--ts-radius-xl);border:1px solid var(--ts-border);box-shadow:var(--ts-shadow-sm)}@media (max-width:1023px){.terpChatShell[data-chat-mode=public]{flex-direction:column;width:100%;display:flex}:where([data-chat-mode=public]) .terpChatAside{display:none}:where([data-chat-mode=public]) .terpChatAside[data-open=true]{z-index:40;width:280px;display:flex;position:fixed;top:0;bottom:0;left:0}:where([data-chat-mode=public]) .terpChatMsgBubble{max-width:100%}}:where([data-chat-mode=public]) .chatStatusState{width:min(var(--chat-measure), 100%);border:1px solid var(--ts-border);border-radius:var(--ts-radius-lg);background:var(--ts-bg-elevated);align-items:center;gap:12px;margin:auto;padding:16px;display:flex}:where([data-chat-mode=public]) .chatStatusState__title{color:var(--ts-text-primary);margin:0;font-weight:700}:where([data-chat-mode=public]) .chatStatusState__copy{color:var(--ts-text-muted);font-size:var(--ts-type-step--1);margin:3px 0 0}:where([data-chat-mode=public]) .chatStatusState__action{border:1px solid var(--ts-border-strong);border-radius:var(--ts-radius-md);background:var(--ts-bg-hover);color:var(--ts-text-primary);font-size:var(--ts-type-floor-badge);cursor:pointer;align-items:center;gap:6px;min-height:44px;margin-left:auto;padding:8px 12px;font-weight:700;display:inline-flex}:where([data-chat-mode=public]) .chatStatusState__action:hover{border-color:var(--ts-accent);color:var(--ts-accent)}:where([data-chat-mode=public]) .communityEmptyState__icon{border:1px solid var(--ts-border-strong);border-radius:var(--ts-radius-lg);background:var(--ts-bg-elevated);width:40px;height:40px;color:var(--ts-accent);place-items:center;display:grid}@media (max-width:640px){:where([data-chat-mode=public]) .chatStatusState{flex-wrap:wrap;align-items:flex-start}}@media (min-width:1024px){:where([data-chat-mode=public]) .terpChatHeader{padding-inline:0}:where([data-chat-mode=public]) .terpChatHeaderMain,:where([data-chat-mode=public]) .terpChatToolbar,:where([data-chat-mode=public]) .terpChatMessageList,:where([data-chat-mode=public]) .terpChatComposer{padding-inline:var(--chat-gutter)}:where([data-chat-mode=public]) .terpChatMsg{padding-inline:0}:where([data-chat-mode=public]) .terpChatMsgBody{max-width:72ch}}@media (max-width:1023px){:where([data-chat-mode=public]) .terpChatToolbar{background:var(--ts-bg-canvas);gap:2px;min-height:44px;padding-inline:10px}:where([data-chat-mode=public]) .terpChatToolbar[data-single=true],:where([data-chat-mode=public]) .terpChatToolbar__view,:where([data-chat-mode=public]) .terpChatToolbar__sound{display:none}:where([data-chat-mode=public]) .terpChatMessageList{background:var(--ts-bg-canvas);gap:0;padding:4px 12px 24px}:where([data-chat-mode=public]) .chatDateDivider{margin:20px 2px 6px}:where([data-chat-mode=public]) .terpChatMsg{padding:1px 8px 1px 2px}:where([data-chat-mode=public]) .terpChatMsg[data-group=first]{padding-top:14px}:where([data-chat-mode=public]) .terpChatMsg[data-group=last]{padding-bottom:2px}:where([data-chat-mode=public]) .terpChatComposer{padding:10px 12px calc(12px + var(--chat-safe-bottom,env(safe-area-inset-bottom)));background:var(--ts-bg-elevated)}:where([data-chat-mode=public]) .terpChatComposerControls{gap:8px}:where([data-chat-mode=public]) .terpChatComposer .terpChatInput{border-radius:var(--ts-radius-lg);min-height:44px;padding:9px 12px;line-height:1.35}:where([data-chat-mode=public]) .terpChatComposer textarea:placeholder-shown{z-index:1;white-space:nowrap;background:0 0;position:relative;overflow:hidden}:where([data-chat-mode=public]) .terpChatComposer textarea:placeholder-shown::placeholder{color:#0000}:where([data-chat-mode=public]) .terpChatComposer textarea:placeholder-shown+.terpChatInputMirror{z-index:0;box-sizing:border-box;border-radius:var(--ts-radius-lg);background:var(--ts-bg-input);width:calc(100% - 2px);height:calc(100% - 2px);color:var(--ts-text-faint);white-space:normal;pointer-events:none;-webkit-line-clamp:1;-webkit-box-orient:vertical;padding:9px 12px;font-size:1rem;line-height:1.35;display:-webkit-box;position:absolute;top:1px;left:1px;overflow:hidden}:where([data-chat-mode=public]) .terpChatComposer textarea:focus:placeholder-shown+.terpChatInputMirror{background:var(--ts-bg-hover)}@media (min-width:768px){:where([data-chat-mode=public]) .terpChatComposer textarea:placeholder-shown+.terpChatInputMirror{font-size:var(--ts-type-step--1)}}:where([data-chat-mode=public]) .terpChatComposer .terpChatSendBtn{width:44px;height:44px}:where([data-chat-mode=public]) .terpChatComposer__emoji{display:none}}:where([data-chat-mode=public]) .terpChatMsgBubble,:where([data-chat-mode=public]) .terpChatMsgBody{min-width:0}:where([data-chat-mode=public]) .terpChatConnection{z-index:5;border:1px solid var(--ts-border);border-radius:var(--ts-radius-pill);background:var(--ts-bg-elevated);min-height:28px;color:var(--ts-gold);font-size:var(--ts-type-floor-badge);pointer-events:none;align-items:center;gap:8px;padding:2px 10px;font-weight:700;display:inline-flex;position:absolute;top:auto;bottom:12px;left:50%;transform:translate(-50%)}:where([data-chat-mode=public]) .terpChatConnection__dot{border-radius:var(--ts-radius-pill);background:var(--ts-gold);width:8px;height:8px}:where([data-chat-mode=public]) .terpChatConnection button{min-height:44px;color:var(--ts-text-primary);font-size:var(--ts-type-floor-badge);cursor:pointer;pointer-events:auto;background:0 0;border:0;padding:0 8px;font-weight:700}:where([data-chat-mode=public]) .terpChatSheetBackdrop{z-index:var(--z-modal);background:var(--ts-overlay-bg);border:0;position:fixed;inset:0}:where([data-chat-mode=public]) .terpChatSheet{z-index:var(--z-modal);overscroll-behavior:contain;border:1px solid var(--ts-border);border-radius:var(--ts-radius-xl) var(--ts-radius-xl) 0 0;background:var(--ts-bg-elevated);max-height:70dvh;width:min(var(--chat-measure,720px), 100%);padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-bottom:0;flex-direction:column;gap:8px;margin:0 auto;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-y:auto}:where([data-chat-mode=public]) .terpChatSheetClose{min-width:44px;min-height:44px;color:var(--ts-text-body);cursor:pointer;background:0 0;border:0;flex-shrink:0;justify-content:center;align-self:flex-end;align-items:center;scroll-margin-block:5px;display:flex}:where([data-chat-mode=public]) .terpChatModal{z-index:var(--z-modal);overflow-wrap:anywhere;overscroll-behavior:contain;width:calc(100% - 32px);max-width:28rem;max-height:calc(100dvh - 32px);position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}:where([data-chat-mode=public]) .terpChatModal--compact{max-width:24rem}:where([data-chat-mode=public]) .terpChatModal button{min-height:44px}:where([data-chat-mode=public]) .terpChatSheet__signin,:where([data-chat-mode=public]) .terpChatSheet__action{border:1px solid var(--ts-border);border-radius:var(--ts-radius-lg);background:var(--ts-bg-hover);min-height:44px;color:var(--ts-text-primary);font-size:var(--ts-type-step-0);cursor:pointer;justify-content:center;align-items:center;padding:0 16px;font-weight:700;text-decoration:none;display:flex}:where([data-chat-mode=public]) .terpChatSheet__signin{background:var(--ts-accent);color:var(--ts-accent-text);border:0}:where([data-chat-mode=public]) .terpChatMsgActions--sheet{opacity:1;pointer-events:auto;width:100%;max-width:100%;box-shadow:none;background:0 0;border:0;flex-wrap:wrap;justify-content:flex-start;padding:0;display:flex;position:static;transform:none}:where([data-chat-mode=public]) .terpChatSheetEmojis{display:contents}:where([data-chat-mode=public]) .terpChatMsgActions--sheet .terpChatSheetEmojis{flex-wrap:wrap;gap:4px;display:flex}:where([data-chat-mode=public]) .terpChatMsgActions--sheet .terpChatMsgActionBtn{gap:8px;width:auto;min-width:44px;min-height:44px;padding:0 12px}:where([data-chat-mode=public]) .terpChatRoleBadge{border-radius:var(--ts-radius-pill);font-size:var(--ts-type-floor-badge);letter-spacing:0;text-transform:none;background:var(--ts-bg-hover);color:var(--ts-text-muted);align-items:center;margin-left:6px;padding:0 6px;font-weight:700;display:inline-flex}:where([data-chat-mode=public]) .terpChatMsg[data-role=team]{background:0 0}:where([data-chat-mode=public]) .terpChatMsg[data-role=bot]{background:0 0;margin-top:8px}:where([data-chat-mode=public]) .terpChatMsgName{align-items:center;min-height:0;line-height:1.25;display:inline-flex;position:relative}:where([data-chat-mode=public]) .terpChatMsgName:before{content:"";height:44px;position:absolute;top:50%;left:-4px;right:-4px;transform:translateY(-50%)}:where([data-chat-mode=public]) .terpChatSkeleton{background:var(--ts-border-strong)}:where([data-chat-mode=public]) .terpChatSkeletonRow{margin-top:0}}
