/* Reference-led messaging shell: one rail, one conversation, one composer. */
:root{--rail:92px;--bg:#222222;--sidebar:#141414;--bubble:#303030;--surface:#292929;--surface-hover:#343434;--line:#383838;--line-soft:#2c2c2c;--text:#eeeee9;--muted:#a0a09c;--faint:#878783;--user-bg:#eeeee8;--user-ink:#252525}
[data-theme=light]{--bg:#fbfbf8;--sidebar:#eeeeea;--bubble:#e9e9e4;--surface:#e4e4df;--surface-hover:#dcdcd7;--line:#d8d8d2;--line-soft:#e0e0da;--text:#252525;--muted:#656561;--faint:#73736e;--user-bg:#343834;--user-ink:#fff}
body{padding:12px;background:var(--sidebar);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.messenger,.messenger.thread-open{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);height:calc(100dvh - 24px);border:1px solid var(--line-soft);border-radius:28px;overflow:hidden;background:var(--bg);max-width:1800px}
.messenger .sidebar,.messenger.thread-open .sidebar{display:flex;position:relative;inset:auto;width:auto;transform:none;flex-direction:column;padding:0 10px;border-right:1px solid var(--line-soft);min-height:0}
.sidebar-header{height:76px;min-height:76px;padding:0;justify-content:center}.team-menu-button{width:44px;height:44px;border-radius:50%;color:var(--muted)}.team-menu-button svg{width:20px}
.conversation-list{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:4px 0 12px;overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:none}
.conversation-list::-webkit-scrollbar{display:none}
.conversation-row{display:flex;align-items:center;justify-content:center;width:100%;min-height:68px;padding:8px;margin:0;border-radius:17px;gap:0;flex-shrink:0}
.conversation-row .avatar{width:52px;height:52px}.conversation-row.active{background:var(--surface)}.conversation-row:hover{background:var(--surface)}
.row-copy,.profile-copy,.message-meta,.header-state,.header-person>p{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.rail-status{position:absolute;width:6px;height:6px;right:8px;bottom:8px;border-radius:50%;background:var(--accent);border:1px solid var(--sidebar)}.rail-status.working{background:var(--green)}
.sidebar-footer{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:auto;padding:16px 0 18px;flex-shrink:0}.rail-add{width:44px;height:44px;border-radius:50%}.rail-add svg{width:23px;height:23px}
.profile-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:50%}.profile-avatar{width:42px;height:42px;border:0;background:var(--surface);color:var(--muted);font-size:12px;font-weight:500}.profile-button #profile-more{display:none}
.messenger .conversation,.messenger:not(.thread-open) .conversation,.messenger.thread-open .conversation{display:flex;position:relative;min-width:0;min-height:0;width:auto;inset:auto;transform:none;background:var(--bg)}
.conversation-header{height:76px;min-height:76px;padding:0 30px;gap:12px;background:var(--bg);border-bottom:1px solid var(--line-soft)}.conversation-header .avatar{width:36px;height:36px}.header-person{min-width:0;flex:1}.header-person h2{font-size:20px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.3px}.header-actions{display:flex;gap:0}.header-actions>.icon-button{width:40px;height:40px;border-radius:50%}.mobile-back{display:none!important}
.message-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#50504e transparent}.message-feed{width:100%;max-width:900px;min-height:100%;padding:30px 42px 24px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.message-group{position:relative;gap:9px;align-items:flex-start}.message-group.user{align-items:flex-end;margin:8px 0}
.bubble{max-width:min(92%,65ch);border-radius:24px;padding:15px 20px;font-size:18px;line-height:1.5;letter-spacing:-.18px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bubble);color:var(--text)}.user .bubble{max-width:min(84%,58ch);border-radius:24px;background:var(--user-bg);color:var(--user-ink)}
.date-separator{font-size:12px;color:var(--faint);margin:4px 0 18px}.message-event{font-size:13px;line-height:1.6;margin:10px auto;padding:9px 0;gap:9px}.message-event svg{width:17px;height:17px}.event-label{font-weight:400}
.approval-card{width:min(560px,94%);border:0;background:var(--bubble);border-radius:24px}.approval-body{padding:21px}.approval-card h3{font-size:18px;font-weight:500}.approval-card p{font-size:14px;line-height:1.6}.approval-eyebrow{font-size:10px;letter-spacing:.02em;color:var(--muted)}.approval-actions{padding:12px 18px;border-color:var(--line)}.approval-actions .button{min-height:38px;border-radius:20px;padding:8px 16px;font-size:13px}.file-preview{border-radius:12px}.job-activity{margin-top:15px}.job-activity summary{font-size:13px;color:var(--muted)}
.compose-area{flex-shrink:0;width:100%;max-width:900px;margin:0 auto;padding:16px 32px 24px;background:var(--bg)}.composer{display:flex;align-items:flex-end;gap:12px;border:1px solid var(--line);border-radius:30px;padding:9px;background:transparent;min-height:62px}.composer:focus-within{border-color:var(--faint)}.composer textarea{font:17px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:40px;padding:8px 0;max-height:160px;min-width:0}.attach-button{width:40px;height:40px;border-radius:50%;background:var(--surface);color:var(--muted)}.attach-button svg{width:24px;height:24px}.send-button{width:40px;height:40px;border-radius:50%;margin:0;background:var(--user-bg);color:var(--user-ink)}.send-button svg{width:21px;height:21px}.send-button:disabled{opacity:.42}
.composer-caption{display:none;font-size:11px;line-height:1.5;padding:9px 5px 0}.composer-caption.has-status{display:block}.composer-caption>span:last-child{display:none}.pending-request{font-size:11px;line-height:1.45;padding:0 4px 12px}.pending-request button{min-height:36px}
.explore-welcome{display:block;max-width:none;width:100%;margin:0;padding:0;text-align:left}.intro-message .bubble{max-width:92%}.example-prompts{display:grid;max-width:560px;gap:0;margin:28px 0 0;text-align:left}.suggested-label{font-size:12px;color:var(--faint);padding:0 3px 8px}.example-prompts .prompt-button{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0;width:100%;background:none;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;padding:15px 3px;text-align:left;font-size:15px;line-height:1.5;color:var(--muted)}.example-prompts .prompt-button:hover{color:var(--text)}.example-prompts .prompt-button svg{width:15px;height:15px;flex-shrink:0}.explore-welcome .explore-caption{margin:23px 0 0;color:var(--faint);font-size:11px;line-height:1.5;text-align:left;max-width:none}
.team-menu,.conversation-menu{position:fixed;inset:auto;margin:0;padding:15px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 15px 45px #0004;font-family:inherit;max-height:calc(100dvh - 100px);overflow:auto}
.team-menu{top:80px;left:18px;width:min(320px,calc(100vw - 36px))}.team-menu::backdrop,.conversation-menu::backdrop{background:transparent}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding-left:7px}.menu-heading strong{font-size:16px;font-weight:500}.menu-heading button{font-size:24px;width:34px;height:34px}.team-menu .workspace-button{width:100%;margin:0 0 14px;border:0;background:var(--surface-hover);font-size:13px;min-height:44px}.team-menu .search-box{margin:0 0 18px;height:44px;background:var(--bg);border-radius:11px}.team-menu .search-box input{font-size:16px}.team-menu .search-box kbd{display:none}.team-menu .list-heading{padding:0 5px;margin:0 0 10px}.team-menu .list-heading h1{font-size:13px;color:var(--muted)}.team-menu .filters{margin:0 0 8px;gap:4px}.team-menu .filters button{font-size:12px;min-height:38px;flex:1;justify-content:center}.team-menu .filters button.selected{background:var(--bg)}.team-menu .invite-row{width:100%;padding:12px 6px;font-size:13px}.menu-footer .install-app{width:100%;text-align:left;padding:12px 6px;font-size:13px;margin:0}.team-menu .preview-label{border-top:1px solid var(--line);padding-top:13px;margin-top:8px;font-size:10px;line-height:1.5;color:var(--faint);text-align:center}
.conversation-menu{top:79px;right:24px;width:228px;padding:8px}.conversation-menu>button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px;border-radius:12px;text-align:left;font-size:14px;color:var(--text)}.conversation-menu>button:hover{background:var(--surface-hover)}.conversation-menu svg{width:19px;height:19px;color:var(--muted)}
.messenger.details-open{grid-template-columns:var(--rail) minmax(0,1fr) 285px}.empty-list{font-size:11px;padding:18px 3px;overflow-wrap:anywhere}.thread-welcome{padding:45px 10px}.thread-welcome .avatar.big{width:80px;height:80px}
@media(max-width:1000px){.messenger.details-open{grid-template-columns:var(--rail) minmax(0,1fr)}.messenger .details-panel{position:absolute;right:12px;top:88px;bottom:20px;z-index:5;width:min(310px,calc(100vw - 92px));border:1px solid var(--line);border-radius:20px;background:var(--sidebar)}}
@media(max-width:760px){:root{--rail:70px}body{padding:0}.messenger,.messenger.thread-open,.messenger.details-open{height:100dvh;grid-template-columns:var(--rail) minmax(0,1fr);border:0;border-radius:0}.messenger .sidebar,.messenger.thread-open .sidebar{padding:0 7px}.sidebar-header{height:66px;min-height:66px}.conversation-list{gap:6px;padding:4px 0 9px}.conversation-row{min-height:58px;padding:6px;border-radius:15px}.conversation-row .avatar{width:44px;height:44px}.rail-status{right:4px;bottom:6px}.sidebar-footer{padding:12px 0 max(14px,env(safe-area-inset-bottom));gap:9px}.profile-avatar{width:38px;height:38px}.conversation-header{height:66px;min-height:66px;padding:0 16px;gap:10px}.conversation-header .avatar{width:31px;height:31px}.header-person h2{font-size:17px;letter-spacing:-.2px}.header-actions>.icon-button{width:34px;height:38px}.message-feed{padding:24px 17px 20px;gap:12px}.bubble{font-size:16px;line-height:1.5;padding:13px 16px;border-radius:22px;max-width:96%}.user .bubble{max-width:93%;border-radius:22px}.date-separator{font-size:10px;margin-bottom:13px}.message-event{font-size:11px;line-height:1.6;flex-wrap:wrap;gap:5px;margin:8px auto}.message-event svg{width:15px;height:15px}.compose-area{padding:12px 13px max(15px,env(safe-area-inset-bottom))}.composer{padding:7px;gap:9px;min-height:54px;border-radius:28px}.composer textarea{font-size:16px;min-height:36px;padding:6px 0;line-height:1.45}.attach-button,.send-button{width:36px;height:36px}.attach-button svg{width:22px;height:22px}.send-button svg{width:19px;height:19px}.approval-card{width:100%;border-radius:22px}.approval-body{padding:17px}.approval-card h3{font-size:16px}.approval-card p{font-size:13px}.approval-actions{padding:10px 12px;gap:5px;flex-wrap:wrap}.approval-actions .button{min-height:36px;padding:8px 12px;font-size:12px}.file-preview{padding:10px;margin-top:12px}.file-copy strong{font-size:11px}.file-copy span{font-size:10px}.intro-message .bubble{max-width:100%}.example-prompts{margin-top:24px}.example-prompts .prompt-button{font-size:14px;padding:13px 1px}.explore-welcome .explore-caption{font-size:10px;margin-top:20px}.team-menu{top:64px;left:10px;width:min(318px,calc(100vw - 20px))}.conversation-menu{top:62px;right:10px}.pending-request{font-size:10px;gap:6px}.pending-request button{font-size:11px}.messenger .details-panel{top:70px;right:8px;bottom:12px}}
@media(max-width:360px){:root{--rail:60px}.messenger .sidebar,.messenger.thread-open .sidebar{padding-inline:5px}.conversation-row{min-height:53px;padding:5px}.conversation-row .avatar{width:40px;height:40px}.conversation-header{padding-inline:10px;gap:7px}.conversation-header .avatar{width:28px;height:28px}.header-person h2{font-size:16px}.message-feed{padding-inline:12px}.bubble{font-size:15px;padding:12px 14px}.compose-area{padding-inline:10px}.composer{gap:7px}.example-prompts .prompt-button{font-size:13px}}
.sample-label{font-size:10px;letter-spacing:.01em;color:var(--faint);flex-shrink:0;font-weight:400}@media(max-width:360px){.sample-label{font-size:9px}.conversation-header{gap:6px}}
