/* This stylesheet is isolated to the companion and its explicit entry points. */
.chat-companion{height:100dvh;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--panel,#fff);color:var(--ink,#203d4b)}
.chat-companion-bar{height:42px;min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 10px;background:var(--brand,#00a79f);color:#fff;font-size:14px}
.chat-companion-actions{display:flex;align-items:center;gap:4px}.chat-companion-actions>button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #ffffff50;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.chat-companion-actions>button[aria-pressed=true]{background:#fff;color:#008e88}
.chat-companion>.messenger-v2{flex:1;min-height:0;height:auto}.chat-companion-error{padding:8px 12px;background:var(--panel,#fff);border-bottom:1px solid var(--line);color:#bd3838;font-size:13px}
.chat-companion-wait{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}.chat-companion-wait p{margin:0;color:var(--muted,#6c7d84)}
.chat-companion--compact .messenger-v2{display:grid;grid-template-columns:46px minmax(0,1fr)}
.chat-companion--compact .messenger-v2>.conversation{display:none}
.chat-companion--compact .messenger-v2--selected{grid-template-columns:minmax(0,1fr)}
.chat-companion--compact .messenger-v2--selected>.messenger-folder-rail,.chat-companion--compact .messenger-v2--selected>.dialog-sidebar{display:none}
.chat-companion--compact .messenger-v2--selected>.conversation{display:flex;min-width:0}
.chat-companion--compact .messenger-back{display:flex}
.chat-companion--compact .messenger-folder-rail{position:static;flex-direction:column;align-items:stretch;width:46px;height:auto;min-width:0;padding:6px 2px;overflow-x:hidden;overflow-y:auto;border-radius:0}.chat-companion--compact .messenger-folder-rail button{min-width:0;width:42px;min-height:54px;flex-direction:column;gap:3px;padding:4px 1px;font-size:9px;border-radius:8px;white-space:normal}.chat-companion--compact .messenger-folder-rail svg{display:block;width:20px;height:20px}.chat-companion--compact .messenger-folder-rail button span{max-width:42px}
.chat-companion--compact .messenger-v2 .conversation__header{padding:5px 6px;gap:3px}
.chat-companion--compact .messenger-v2 .conversation-person{height:44px;padding-right:3px;gap:6px}
.chat-companion--compact .messenger-v2 .conversation-person h1{font-size:14px}.chat-companion--compact .messenger-v2 .conversation-person .avatar{width:34px;height:34px}
.chat-companion--compact .conversation-controls .icon-button{width:30px}
.chat-companion--compact .messenger-v2 .message-list--conversation{padding:8px}.chat-companion--compact .messenger-v2 .message{max-width:94%}
.chat-companion--compact .messenger-v2 .composer{padding:7px;gap:5px}.chat-companion--compact .messenger-v2 .rich-editor__toolbar{max-width:calc(100vw - 24px)}
.chat-detach-menu{position:fixed;z-index:12000;min-width:260px;padding:6px;border:1px solid var(--line,#d5e5e8);border-radius:12px;background:var(--panel,#fff);box-shadow:0 12px 36px #14343c30;color:var(--ink,#203d4b)}
.chat-detach-menu button{display:block;width:100%;border:0;background:transparent;padding:10px;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:7px}.chat-detach-menu button:hover{background:#00a79f18}
.topline--clips .menu-item--chat.menu-item--chat-detached{border-radius:24px;overflow:hidden}
.topline--clips .menu-item--chat>.chat-detached-placeholder{display:block;box-sizing:border-box;width:100%;height:44px;margin:0;padding:0;border:0;border-radius:24px;background:#aaa;cursor:default;box-shadow:none}
.topline--clips .menu-item--chat>.chat-detached-placeholder:focus-visible{outline:2px solid var(--ink,#203d4b);outline-offset:-9px}
html[data-theme='dark'] .topline--clips .menu-item--chat>.chat-detached-placeholder{background:#505050}
.chat-detach-notice{position:fixed;right:16px;bottom:16px;z-index:12001;max-width:380px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff);color:var(--ink);box-shadow:0 4px 20px #14343c25}
