.messages-page{max-width:1440px;margin:0 auto;padding:28px 36px 32px}.msg-page-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.msg-page-top h1{font-size:2rem;letter-spacing:-.06em;margin:5px 0 0}.msg-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:620px;height:calc(100dvh - 210px);max-height:900px;border:1px solid #e5e9ec;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 12px 44px #1b2b3510}.msg-sidebar{display:flex;flex-direction:column;border-right:1px solid #e8ecef;min-height:0}.msg-sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 16px}.msg-sidebar-title h2{font-size:1.15rem;margin:0;letter-spacing:-.035em}.msg-sidebar-title>div{display:flex;gap:4px}.msg-tabs{display:flex;gap:5px;padding:0 18px 14px}.msg-tabs button{font:inherit;font-size:.87rem;font-weight:650;border:0;border-radius:9px;background:transparent;color:#69747c;padding:9px 10px;cursor:pointer}.msg-tabs button.active{background:#f7edf0;color:var(--brand, #982d43)}.msg-tabs button span:not(:empty){display:inline-flex;margin-left:6px;background:var(--brand, #982d43);color:white;padding:1px 6px;border-radius:10px;font-size:.75rem}.msg-search{display:flex;gap:9px;align-items:center;background:#f4f6f7;border-radius:10px;padding:10px 12px;margin:0 18px 16px;color:#8b959e}.msg-search input{border:0;background:transparent;min-width:0;width:100%;font:inherit;font-size:.9rem;outline:0}.msg-search .icon{width:17px;height:17px;flex-shrink:0}.msg-thread-list{overflow-y:auto;flex:1;min-height:0;padding:0 8px 12px;scrollbar-width:thin}.msg-thread{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;text-align:left;border:0;border-radius:12px;background:transparent;font:inherit;cursor:pointer}.msg-thread:hover{background:#f7f8f9}.msg-thread.selected{background:#f7edf0}.msg-thread-avatar{flex-shrink:0}.msg-thread .avatar{width:46px;height:46px;background:#f1e9ed;color:#982d43}.msg-thread .avatar .icon{width:22px;height:22px}.msg-thread-copy{flex:1;min-width:0}.msg-thread-top,.msg-thread-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.msg-thread-top strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.92rem;font-weight:650}.msg-thread-top small{font-size:.75rem;color:#879097;white-space:nowrap}.msg-thread-bottom{margin-top:5px}.msg-thread-bottom>span{font-size:.83rem;color:#7d858c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-unread{background:var(--brand, #982d43);color:#fff;font-size:.7rem;min-width:19px;height:19px;border-radius:10px;display:grid;place-items:center;padding:0 4px}.msg-update-status{padding:12px 20px;color:#92999f;font-size:.75rem;border-top:1px solid #f0f2f4}.msg-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:linear-gradient(#fff,#fcfcfd)}.msg-conversation-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eceff1;padding:17px 24px;min-height:83px}.msg-conversation-header>.avatar{width:44px;height:44px}.msg-header-identity{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.msg-header-identity strong{font-size:.97rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-header-identity>span{font-size:.78rem;color:#8b949b}.msg-call-actions{display:flex;align-items:center;gap:9px}.msg-call-actions .icon-button{background:#f7f8f9;width:38px;height:38px}.msg-mobile-back{display:none!important}.msg-history{flex:1;min-height:120px;overflow-y:auto;overscroll-behavior:contain;padding:24px;scrollbar-width:thin;display:flex;flex-direction:column;gap:18px}.msg-message{display:flex;align-items:flex-end;gap:9px;max-width:88%}.msg-message.mine{align-self:flex-end;justify-content:flex-end}.msg-message.theirs{align-self:flex-start}.msg-message>.avatar{width:30px;height:30px;font-size:.75rem;flex-shrink:0;margin-bottom:20px}.msg-bubble-group{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.mine .msg-bubble-group{align-items:flex-end}.msg-bubble{padding:11px 15px;background:#f0f3f5;color:#202124;border-radius:17px 17px 17px 4px;line-height:1.6;font-size:.94rem;white-space:pre-wrap;overflow-wrap:anywhere}.mine .msg-bubble{background:var(--brand, #982d43);color:#fff;border-radius:17px 17px 4px 17px}.msg-bubble-group time{font-size:.69rem;color:#969fa5;padding:0 3px}.msg-sender-name{font-size:.73rem;color:#84909a;padding-left:2px}.msg-compose{position:relative;padding:16px 22px 11px;border-top:1px solid #edf0f2;background:#fff}.msg-composer-row{display:flex;align-items:flex-end;gap:10px;background:#f6f7f8;border:1px solid #e9edf0;border-radius:15px;padding:8px}.msg-composer-row textarea{font:inherit;resize:none;border:0;outline:0;background:transparent;flex:1;min-width:0;max-height:130px;line-height:1.55;min-height:37px;padding:7px 3px;font-size:.94rem}.msg-emoji-toggle{font-size:1.3rem;flex-shrink:0;line-height:1}.msg-send{min-height:37px;padding:8px 12px;border-radius:10px;gap:7px}.msg-send .icon{width:17px;height:17px}.msg-compose-hint{font-size:.69rem;color:#a1a7ac;padding:7px 6px 0}.msg-emoji-picker{position:absolute;bottom:calc(100% - 4px);left:22px;width:320px;max-width:calc(100vw - 50px);padding:17px;border:1px solid #e8ecef;border-radius:14px;background:#fff;box-shadow:0 8px 30px #263b4b19;z-index:5}.msg-emoji-picker>div:first-child{font-size:.65rem;letter-spacing:.08em;color:#8c959e;margin-bottom:12px}.msg-emoji-picker>div:last-child{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.msg-emoji-picker button{border:0;background:transparent;border-radius:8px;font-size:1.5rem;min-height:44px;cursor:pointer}.msg-emoji-picker button:hover{background:#f7edf0}.msg-history-more{align-self:center;background:#fff;border:1px solid #e6eaee;color:#78838c;border-radius:18px;padding:8px 14px;font:inherit;font-size:.78rem;cursor:pointer}.msg-inline-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;color:#9aa2a9;font-size:.9rem}.msg-inline-empty>span{font-size:2rem;margin-bottom:12px}.msg-empty-conversation{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:40px;text-align:center}.msg-empty-conversation h2{font-size:1.5rem;letter-spacing:-.045em;margin:28px 0 12px;color:#202124}.msg-empty-conversation p{max-width:360px;color:#8b959b;line-height:1.8;font-size:.93rem;margin-bottom:22px}.msg-empty-illustration{display:flex;align-items:center;gap:12px;transform:rotate(-5deg)}.msg-empty-illustration span{font-size:2.6rem;display:grid;place-items:center;background:#f5f5f7;border:1px solid #e6e6eb;border-radius:20px;width:80px;height:80px;box-shadow:0 8px 20px #e7ab8514}.msg-empty-illustration span:nth-child(2){transform:translateY(-12px) rotate(12deg);background:#f5f5f7;border-color:#e6e6eb}.msg-no-threads{text-align:center;padding:45px 20px;color:#99a1a8}.msg-no-threads>span{font-size:2rem}.msg-no-threads h3{font-size:1rem;font-weight:600;color:#63717a;margin:18px 0 9px}.msg-no-threads p{font-size:.87rem;line-height:1.7;margin-bottom:20px}.msg-alert{margin:8px 12px 16px;padding:12px;background:#f7edf0;color:#982d43;border-radius:9px;font-size:.8rem;line-height:1.6}.msg-people{padding:0 10px}.msg-section-label{font-size:.66rem;font-weight:700;color:#a1a8ad;letter-spacing:.09em;margin:22px 2px 12px}.msg-section-label:first-child{margin-top:7px}.msg-person-card{display:flex;gap:11px;padding:10px 0;align-items:center}.msg-person-card>.avatar{width:37px;height:37px;font-size:.86rem}.msg-person-card>div{flex:1;min-width:0}.msg-person-card strong{font-size:.88rem;display:block}.msg-person-actions{display:flex;align-items:center;gap:13px;margin-top:7px}.msg-person-actions .text-button{font-size:.76rem}.msg-person-actions .button{font-size:.74rem;min-height:30px;padding:5px 12px}.msg-friend-label{font-size:.72rem;color:#676870;display:flex;align-items:center;gap:3px}.msg-friend-label .icon{width:13px;height:13px}.msg-help{font-size:.78rem;color:#8b949b;line-height:1.7;margin:8px 0}.msg-invite-card{border:1px solid #ebe9e2;background:#f5f5f7;border-radius:12px;padding:14px;margin:10px 0}.msg-dining-emoji{font-size:1.5rem;display:block;margin-bottom:10px}.msg-invite-card>strong{font-size:.9rem}.msg-invite-card>p{font-size:.78rem;color:#8a8c86;line-height:1.5;margin-top:6px}.msg-contact-results{max-height:360px;overflow-y:auto;padding:0 5px}.msg-contact-choice{border:0;background:transparent;display:flex;align-items:center;gap:12px;width:100%;padding:13px 5px;text-align:left;cursor:pointer;border-bottom:1px solid #f0f2f3}.msg-contact-choice>span:not(.avatar){flex:1;display:flex;flex-direction:column;gap:5px}.msg-contact-choice strong{font-size:.93rem;font-weight:600}.msg-contact-choice small{font-size:.77rem;color:#929ba2}.msg-contact-choice>.icon{color:var(--brand, #982d43);width:18px;height:18px}.msg-dialog{max-width:540px;width:calc(100% - 36px);padding:32px}.msg-dialog h2{letter-spacing:-.045em;margin:8px 0 22px}.msg-dialog .msg-search{margin:0 0 14px}.msg-modal-close{position:absolute;right:13px;top:13px}.msg-dialog fieldset{border:1px solid #e5e9ec;border-radius:12px;padding:14px}.msg-dialog legend{font-size:.8rem;font-weight:600;padding:0 6px}.msg-friend-checks{display:grid;gap:9px;max-height:210px;overflow-y:auto}.msg-friend-checks label{display:flex;gap:10px;align-items:center;font-size:.87rem}.msg-friend-checks input{width:16px}.msg-friend-checks .avatar{width:28px;height:28px;font-size:.7rem}.msg-split-options{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.msg-split-options label{display:flex;gap:7px;font-size:.85rem;align-items:center}.msg-split-options input{width:auto}.msg-custom-shares{display:grid;gap:10px}.msg-custom-shares label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.86rem}.msg-custom-shares input{max-width:140px}.msg-expense-region{max-height:220px;overflow-y:auto;padding:10px 20px 0;background:#f5f5f7;border-bottom:1px solid #f1ece3}.msg-expense{border:1px solid #e8e4db;border-radius:10px;padding:11px 14px;margin:0 0 10px;background:#fff}.msg-expense summary{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.85rem;cursor:pointer;list-style:none}.msg-expense summary>span:last-child{font-weight:650;color:#982d43;white-space:nowrap}.msg-expense summary strong{font-size:.84rem;font-weight:600}.msg-share-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;border-top:1px solid #f0f1ed;padding:10px 0;font-size:.77rem}.msg-share-row strong{font-size:.8rem;font-weight:600}.msg-share-row small{font-size:.69rem;color:#969e9d}.msg-share-row .text-button{grid-column:1/-1;text-align:right;font-size:.74rem}.msg-share-status{font-size:.68rem;padding:4px 7px;border-radius:6px;background:#faf0e2;color:#aa7b3c;white-space:nowrap}.msg-share-status.sent{background:#edf1fc;color:#6c7aab}.msg-share-status.received{background:#f1f1f4;color:#676870}.msg-signed-out{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.msg-welcome-mark{background:#f7edf0;color:#982d43;border-radius:24px;width:86px;height:86px;display:grid;place-items:center;margin-bottom:26px}.msg-welcome-mark .icon{width:37px;height:37px}.msg-signed-out h1{font-size:2.2rem;letter-spacing:-.055em;margin:12px 0 16px}.msg-signed-out>p{max-width:480px;color:#879198;line-height:1.85;margin:0 0 25px}.msg-call-dialog{border:0;border-radius:24px;background:#202124;color:#fff;width:460px;max-width:calc(100vw - 30px);padding:24px;box-shadow:0 24px 90px #152c4250;overflow:hidden}.msg-call-dialog::backdrop{background:#101e2b99;backdrop-filter:blur(8px)}.msg-call-top{display:flex;justify-content:space-between;gap:10px;color:#c2d0ce;font-size:.79rem}.msg-call-private{display:flex;gap:5px;align-items:center;font-size:.65rem;color:#99b1ad}.msg-call-private .icon{width:12px;height:12px}.msg-call-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:310px;padding:35px 0 20px}.msg-call-avatar>.avatar{width:104px;height:104px;font-size:2.5rem;background:#e7e3e6;color:#71535e;box-shadow:0 0 0 13px #ffffff06,0 0 0 26px #ffffff03}.msg-call-person{text-align:center;margin-top:28px;z-index:2}.msg-call-person h2{font-size:1.6rem;letter-spacing:-.04em;color:#fff;margin:0 0 12px}.msg-call-person p{font-size:.86rem;color:#adbfbb;margin:0}.msg-call-person .msg-call-duration{font-variant-numeric:tabular-nums;margin-top:9px;color:#d7e7dc}.msg-call-controls{display:flex;justify-content:center;gap:18px;padding:18px 0}.msg-call-control{border:0;width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#ffffff13;color:#fff;cursor:pointer}.msg-call-control .icon{width:24px;height:24px}.msg-call-control.end{background:#e65d59}.msg-call-control.end .icon{transform:rotate(135deg)}.msg-call-control.accept{background:#982d43}.msg-call-control.off{background:#d7dfe0;color:#53676c}.msg-call-footnote{font-size:.66rem;color:#8eaaa3;text-align:center;margin:10px 0 0;line-height:1.6}.msg-call-stage video{display:none}.msg-call-stage video.audio-only{position:absolute;width:1px;height:1px;opacity:0;display:block;pointer-events:none}.video-call .msg-call-stage{min-height:340px}.video-call.is-connected .msg-call-avatar{display:none}.video-call.is-connected #gm-call-remote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:13px;display:block}.video-call #gm-call-local{display:block;position:absolute;right:4px;top:10px;width:100px;height:76px;object-fit:cover;border-radius:10px;background:#202124;transform:scaleX(-1);z-index:3}.video-call.is-connected .msg-call-person{position:absolute;bottom:10px;left:14px;right:14px;text-align:left;background:#20212490;padding:12px;border-radius:9px}.video-call.is-connected .msg-call-person h2{font-size:1.05rem;margin:0 0 5px}.video-call.is-connected .msg-call-person p{font-size:.76rem}.msg-tap-audio{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4}.msg-call-dialog button:focus-visible,.msg-workspace button:focus-visible{outline:3px solid #e6b8a7;outline-offset:3px}[hidden]{display:none!important}@media(max-width:1000px){.messages-page{padding:24px}.msg-workspace{grid-template-columns:285px minmax(0,1fr)}.msg-conversation-header{padding:16px}.msg-history{padding:18px}.msg-compose{padding:13px 15px 9px}}@media(max-width:720px){.messages-page{padding:0 0 70px}.msg-page-top{padding:20px 18px 16px;margin:0}.msg-page-top h1{font-size:1.65rem}.msg-page-top>.text-button{font-size:.76rem}.msg-page-top .eyebrow{font-size:.6rem}.msg-workspace{display:flex;border-radius:0;border-left:0;border-right:0;min-height:500px;height:calc(100dvh - 220px);max-height:none;box-shadow:none}.msg-sidebar{width:100%;border:0}.msg-conversation{display:none;width:100%}.msg-workspace.has-selection .msg-sidebar{display:none}.msg-workspace.has-selection .msg-conversation{display:flex}.msg-mobile-back{display:inline-flex!important;width:30px!important;margin-left:-8px}.msg-conversation-header{gap:9px;padding:12px 14px;min-height:70px}.msg-conversation-header>.avatar{width:35px;height:35px;font-size:.83rem}.msg-header-identity strong{font-size:.9rem}.msg-header-identity>span{font-size:.69rem}.msg-call-actions{gap:5px}.msg-call-actions .icon-button{width:32px;height:32px}.msg-call-actions .button{padding:7px 9px;font-size:.7rem;min-height:32px}.msg-call-actions .button .icon{width:14px;height:14px}.msg-history{padding:18px 12px;gap:17px}.msg-message{max-width:92%}.msg-bubble{font-size:.9rem;padding:9px 13px}.msg-compose{padding:10px 10px 7px}.msg-composer-row{gap:5px;padding:6px}.msg-send span{display:none}.msg-send{padding:9px;min-width:35px}.msg-compose-hint{font-size:.62rem}.msg-thread{padding:15px 13px}.msg-thread .avatar{width:49px;height:49px}.msg-thread-top strong{font-size:.98rem}.msg-thread-bottom>span{font-size:.87rem}.msg-dialog{padding:28px 22px}.msg-dialog h2{font-size:1.5rem}.msg-expense-region{padding:8px 10px 0;max-height:170px}.msg-expense{padding:9px 11px}.msg-empty-conversation{padding:35px 20px}.msg-signed-out{padding:50px 24px;min-height:68vh}.msg-signed-out h1{font-size:1.8rem}.msg-call-dialog{padding:22px 18px}.msg-call-stage{min-height:280px}}
.msg-bubble a{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.msg-share-preview{display:flex;gap:12px;border:1px solid #e6e6eb;border-radius:12px;background:#fff;overflow:hidden;max-width:340px;width:100%;color:#202124;text-decoration:none}.msg-share-preview>img{width:88px;min-height:94px;object-fit:cover;flex-shrink:0}.msg-share-preview>span{display:flex;min-width:0;flex-direction:column;gap:5px;padding:13px 12px 13px 0}.msg-share-preview>span:first-child{padding-left:14px}.msg-share-preview small{font-size:.64rem;color:#982d43}.msg-share-preview strong{font-size:.86rem;line-height:1.5}.msg-share-preview span>span{font-size:.75rem;color:#85868e;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Keep typing controls in the viewport; only history scrolls. */
.messages-page:not(.msg-signed-out){height:calc(100dvh - 76px);display:flex;flex-direction:column;min-height:0;padding:12px 24px 16px;overflow:hidden}.msg-page-top{flex-shrink:0;margin-bottom:12px}.msg-workspace{flex:1;min-height:0!important;height:auto!important;max-height:none!important}.msg-history{min-height:0!important}.msg-conversation-header,.msg-compose,.msg-tabs,.msg-search,.msg-sidebar-title{flex-shrink:0}.chat-file-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.chat-file-tools .text-button{display:inline-flex;gap:6px;align-items:center;font-size:13px;cursor:pointer}.chat-file-tools .fineprint{font-size:10px;line-height:1.5;color:#8c8491}.chat-pending-chip{display:inline-flex;gap:7px;align-items:center;background:#f8edf2;border-radius:8px;padding:6px 9px;font-size:12px;margin:0 7px 8px 0}.chat-pending-chip button{border:0;background:transparent;font-size:18px}.chat-photo,.chat-video{max-width:min(320px,68vw);max-height:340px;border-radius:12px;object-fit:contain;background:#f2f0f4}.chat-video-load,.chat-location-card{display:block;max-width:320px;padding:18px;border:1px solid #e4d9e2;border-radius:12px;background:#fff;color:#982d43;text-decoration:none;font:inherit;cursor:pointer}.chat-location-card small{display:block;margin-top:7px}.chat-expired{font-size:12px;color:#918697;font-style:italic;padding:10px}.msg-compose [hidden]{display:none!important}@media(max-width:720px){.messages-page:not(.msg-signed-out){height:calc(100dvh - 64px);padding:8px 8px 10px}.msg-page-top{margin-bottom:7px}.msg-page-top h1{font-size:23px}.msg-workspace{min-height:0!important}.msg-compose{padding:9px 10px 5px}.msg-history{padding:14px}.chat-file-tools{gap:10px}.chat-file-tools .fineprint{flex-basis:100%}.msg-conversation-header{padding:10px 12px;min-height:65px}}
