.messages-page{padding-top:30px;padding-bottom:35px}.messages-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.messages-title .eyebrow{font-size:8px;letter-spacing:1.8px;color:#8f9e7f}.messages-title h1{font-family:var(--serif);font-size:31px;font-weight:400;letter-spacing:-.8px;margin-top:7px}.messages-title p{font-size:11px;color:#9ba38e;margin-top:4px}.messages-title>.back-link{margin:0;font-size:11px}.messenger{display:grid;grid-template-columns:310px minmax(0,1fr);height:calc(100dvh - 300px);min-height:530px;max-height:850px;background:#fffefa;border:1px solid #e0e6d5;border-radius:12px;overflow:hidden}.inbox-panel{border-right:1px solid #e0e6d5;background:#fafbf5;display:flex;flex-direction:column;min-height:0}.inbox-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 20px 18px}.inbox-heading h2{font-size:14px;font-weight:600}.new-chat{border:0;background:#e8eedf;border-radius:7px;padding:7px;color:#69825c;display:flex;align-items:center;justify-content:center}.new-chat svg{width:17px;height:17px}.inbox-search{margin:0 19px;display:flex;gap:9px;align-items:center;border:1px solid #e1e7d7;background:#fffefa;border-radius:7px;padding:10px 12px;color:#98a589}.inbox-search svg{width:15px;height:15px}.inbox-search input{min-width:0;width:100%;font-size:10px;border:0;background:none;box-shadow:none!important;color:#667c58}.inbox-filters{display:flex;gap:8px;margin:14px 19px 17px}.inbox-filters button{background:none;border:1px solid transparent;padding:5px 11px;border-radius:20px;font-size:10px;color:#9ca58e}.inbox-filters button.active{background:#e6eddd;color:#607d4c;border-color:#dbe5cf}.conversation-list{flex:1;overflow-y:auto;min-height:0;padding:0 9px}.conversation-row{width:100%;border:0;border-radius:8px;background:none;display:flex;align-items:center;gap:11px;padding:14px 11px;text-align:left;margin-bottom:4px;min-width:0}.conversation-row:hover{background:#f0f4e9}.conversation-row.selected{background:#e9efdf}.conversation-row .reader-avatar{height:39px;width:39px;font-size:18px}.conversation-copy{min-width:0;flex:1}.conversation-copy>span{display:flex;align-items:center;gap:8px;justify-content:space-between}.conversation-copy strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-copy small{font-size:8px;color:#a0aa91;white-space:nowrap}.conversation-copy em{font-size:10px;color:#9aa78a;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;flex:1;line-height:1.8;margin-top:3px}.unread-pill,.rail-unread{background:var(--orange);color:white;border-radius:20px;min-width:16px;height:16px;padding:0 4px;text-align:center;font-size:9px;font-weight:400;line-height:16px}.rail-unread{margin-left:auto}.inbox-footer{display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid #e6ebdc;padding:15px;font-size:9px;color:#acb59c}.inbox-footer svg{height:12px;width:12px}.inbox-empty{padding:43px 20px;text-align:center;color:#acb69b}.inbox-empty>svg{height:29px;width:29px}.inbox-empty p{font-size:11px;line-height:1.8;margin:15px 0}.inbox-empty>.btn{font-size:10px;background:#f3f7eb;color:#8a9d76}.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:#fdfefa}.chat-empty{margin:auto;text-align:center;padding:40px 20px}.chat-empty-icon{display:flex;align-items:center;justify-content:center;width:79px;height:79px;border-radius:50%;background:#e8efdf;color:#91a578;margin:0 auto 28px;transform:rotate(-8deg);border:1px solid #dce5d0;box-shadow:0 0 0 11px #f4f7ee}.chat-empty-icon svg{width:33px;height:33px}.chat-empty>.eyebrow{justify-content:center;font-size:8px;letter-spacing:2px;color:#a1ad8e;margin-bottom:15px}.chat-empty h2{font-family:var(--serif);font-size:35px;font-weight:400;letter-spacing:-.8px;line-height:1.3;color:#4d6c3e}.chat-empty p{font-size:12px;color:#a0ad8d;line-height:1.9;margin:16px 0 24px}.chat-empty .btn{font-size:11px}.chat-header{display:flex;align-items:center;padding:18px 24px;gap:12px;border-bottom:1px solid #e6ebdc;background:#fffefa}.chat-person{display:flex;align-items:center;gap:12px}.chat-person strong{font-size:12px;font-weight:600}.chat-person small{display:block;font-size:10px;color:#a1ad90;margin-top:2px}.chat-header-actions{display:flex;gap:8px;align-items:center;margin-left:auto;color:#97a787}.chat-header-actions svg{height:16px;width:16px}.chat-back{display:none}.chat-privacy{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 18px;font-size:9px;color:#a5b096;background:#f5f8ef;border-bottom:1px solid #edf0e5}.chat-privacy svg{height:12px;width:12px;flex-shrink:0}.chat-privacy.demo-chat{background:#fbf6e9;color:#ad9e76;border-color:#f1ebdc}.chat-connection{font-size:10px;color:#ac8a5f;background:#fcf4e4;text-align:center;padding:8px}.chat-connection button{border:0;background:none;color:#8b986d;font-size:10px;text-decoration:underline}.message-history{flex:1;min-height:0;overflow-y:auto;padding:23px 28px;background:radial-gradient(ellipse at top,#f8faf3,#fdfefa 75%);scrollbar-width:thin;scrollbar-color:#d5dfc8 transparent}.message-date{display:flex;justify-content:center;align-items:center;gap:12px;font-size:9px;color:#b0b99e;margin:5px 0 24px}.message-date:before,.message-date:after{content:'';height:1px;width:42px;background:#e7eddf}.message-row{display:flex;align-items:flex-end;gap:8px;max-width:83%;margin-bottom:18px}.message-row>div{max-width:100%;min-width:0}.message-row.outgoing{margin-left:auto;justify-content:flex-end}.message-row.incoming .message-avatar{width:27px;height:27px;font-size:13px;margin-bottom:21px}.message-bubble{padding:12px 16px;background:#edf3e4;color:#668054;font-size:12px;line-height:1.8;border:1px solid #e2ebd7;border-radius:11px 11px 2px 11px;overflow-wrap:anywhere;white-space:pre-wrap}.incoming .message-bubble{background:#fffefa;border-color:#e5eadc;color:#839571;border-radius:11px 11px 11px 2px}.message-meta{display:flex;align-items:center;gap:8px;color:#b2bba5;font-size:8px;margin-top:5px}.message-meta span{display:flex;align-items:center;gap:3px}.message-meta svg{width:9px;height:9px}.outgoing .message-meta{justify-content:flex-end}.conversation-begin{text-align:center;padding:44px 20px 40px;color:#a2b18e}.conversation-begin>.reader-avatar{margin-bottom:17px}.conversation-begin h2{font-family:var(--serif);font-size:26px;font-weight:400;color:#6c8958}.conversation-begin p{font-size:11px;color:#a8b49a;margin-top:4px}.conversation-begin>span:last-child{display:block;font-size:11px;margin-top:17px;color:#a8b698}.older-messages{display:block;margin:0 auto 24px;border:1px solid #e1e8d7;background:#fffefa;border-radius:18px;padding:6px 13px;font-size:9px;color:#9cab89}.message-compose{position:relative;padding:17px 24px 13px;border-top:1px solid #e6ecdd;background:#fffefa}.message-input-row{display:flex;align-items:center;gap:12px;border:1px solid #dfe8d3;border-radius:10px;background:#fafcf5;padding:8px 10px}.message-input-row textarea{flex:1;min-width:0;max-height:130px;min-height:28px;resize:vertical;background:none;border:0!important;box-shadow:none!important;outline:none;font-size:12px;padding:4px 0;line-height:1.7;color:#70865e}.message-input-row textarea::placeholder{color:#b1bba0}.emoji-button{border:0;background:none;font-size:24px;line-height:1;color:#a6b691;width:25px;flex-shrink:0}.message-send{background:var(--pine);color:white;border:0;width:33px;height:33px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:8px}.message-send svg{height:16px;width:16px}.message-compose-help{display:flex;justify-content:space-between;gap:15px;font-size:8px;color:#b5bea6;margin:8px 3px 0}.chat-send-error{font-size:10px;color:#b28569;line-height:1.7;padding:8px 2px 0}.emoji-tray{position:absolute;bottom:calc(100% - 8px);left:25px;display:flex;gap:5px;padding:9px;background:#fffefa;border:1px solid #e0e8d3;border-radius:9px;box-shadow:0 6px 15px #20371f10;z-index:4}.emoji-tray button{border:0;background:none;padding:4px;font-size:21px}.people-search{width:100%;margin:15px 0}.people-search input{font-size:11px}.chat-people{max-height:380px;overflow-y:auto}.chat-recipient{display:flex;align-items:center;gap:12px;padding:14px 2px;border:0;background:none;width:100%;text-align:left;border-bottom:1px solid #e7ecde}.chat-recipient strong{font-size:12px;display:block}.chat-recipient small{font-size:10px;color:#a2b18e;display:block;margin-top:2px}.chat-recipient>svg{margin-left:auto;color:#a7b694;width:14px;height:14px}.profile-avatar-row>div{display:flex;gap:9px;align-items:center}.inbox-button .count-dot{top:-2px;right:-3px}.header-actions{gap:12px}body:has(.messages-page){background:#f7f7f2}
@media(max-width:1100px){.header nav{gap:14px}.header-inner{gap:20px}.header-actions{gap:10px}.header nav a{font-size:11px}.messenger{grid-template-columns:270px minmax(0,1fr)}.message-history{padding:21px}.chat-header{padding:17px 20px}.message-compose{padding-left:20px;padding-right:20px}.message-row{max-width:88%}}
@media(max-width:820px){.messages-page{padding-top:23px}.messages-title h1{font-size:29px}.messenger{grid-template-columns:235px minmax(0,1fr);height:calc(100dvh - 310px);min-height:520px}.inbox-heading{padding:20px 15px 16px}.inbox-heading h2{font-size:13px}.inbox-search{margin:0 13px;padding:9px}.inbox-filters{margin:13px 13px 15px}.conversation-list{padding:0 5px}.conversation-row{padding:13px 8px;gap:9px}.conversation-row .reader-avatar{width:33px;height:33px;font-size:16px}.conversation-copy strong{font-size:10px}.conversation-copy small{font-size:7px}.conversation-copy em{font-size:9px}.chat-header{padding:16px}.chat-person{gap:9px}.chat-person>.reader-avatar{height:34px;width:34px;font-size:17px}.chat-person strong{font-size:11px}.chat-person small{font-size:9px}.chat-header-actions{gap:0}.message-history{padding:18px 16px}.message-compose{padding:14px 16px 11px}.message-bubble{font-size:11px;padding:11px 13px}.chat-privacy{font-size:8px}.chat-empty h2{font-size:29px}.chat-empty p{font-size:10px}.chat-empty>.eyebrow{font-size:7px}.header nav{gap:25px}}
@media(max-width:650px){.messages-page{padding:20px 15px 25px}.messages-title{margin-bottom:17px}.messages-title>.back-link{font-size:9px;margin-top:10px}.messages-title h1{font-size:29px}.messages-title p{font-size:10px}.messages-title .eyebrow{font-size:7px}.messenger{display:block;height:calc(100dvh - 285px);min-height:500px}.messenger.has-active .inbox-panel{display:none}.messenger:not(.has-active) .chat-panel{display:none}.inbox-panel{height:100%;border-right:0}.inbox-heading{padding:20px}.inbox-heading h2{font-size:15px}.inbox-search{margin:0 20px;padding:11px 12px}.inbox-search input{font-size:11px}.inbox-filters{margin:14px 20px 18px}.conversation-list{padding:0 10px}.conversation-row{padding:15px 12px;gap:12px}.conversation-row .reader-avatar{width:43px;height:43px;font-size:20px}.conversation-copy strong{font-size:12px}.conversation-copy small{font-size:9px}.conversation-copy em{font-size:11px}.chat-panel{height:100%}.chat-header{padding:15px 13px;gap:10px}.chat-back{display:flex;align-items:center;justify-content:center;color:#9aaa86;width:21px;flex-shrink:0}.chat-back svg{height:18px;width:18px}.chat-person strong{font-size:12px}.chat-person small{font-size:9px}.chat-header-actions .icon-button{width:28px}.chat-privacy{font-size:8px;padding:9px 10px}.message-history{padding:18px 13px}.message-bubble{font-size:12px;padding:10px 13px}.message-row{max-width:89%}.message-compose{padding:12px 12px 10px}.message-input-row{gap:8px;padding:8px}.message-input-row textarea{font-size:12px}.message-compose-help{font-size:7px}.emoji-tray{left:15px;gap:2px}.emoji-tray button{font-size:20px;padding:3px}.header-actions{gap:6px}.header-actions .inbox-button{display:inline-flex!important}.header nav{gap:18px}.header nav a{font-size:10px}.header-actions .btn{padding:7px 8px}.profile-avatar-row>div{gap:6px}.profile-avatar-row .follow-btn{padding:7px 10px;font-size:10px}.profile-avatar-row .btn{font-size:9px;padding:7px 9px}}
@media(max-width:380px){.header-actions .btn{display:none}.messages-title>.back-link{font-size:8px}.chat-person small{font-size:8px}.message-compose-help>span:first-child{font-size:6px}}

/* Group conversations share the existing messenger layout and color tokens. */
.inbox-new-actions{display:flex;gap:7px}.group-chat-avatar{background:var(--sage);color:var(--pine);border:1px solid var(--line);flex-shrink:0}.group-chat-avatar svg{width:21px;height:21px}.group-chat-avatar.large svg{width:32px;height:32px}.conversation-kind{display:inline-block;font-size:8px;font-weight:500;color:var(--muted);margin-left:6px}.group-person{border:0;background:transparent;text-align:left;padding:0;color:inherit;cursor:pointer;min-width:0}.group-person>span:last-child{min-width:0}.group-person strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:300px}.message-sender{display:block;margin:0 2px 4px;color:var(--muted);font-size:10px;font-weight:600}.group-selected{display:flex;gap:7px;flex-wrap:wrap;max-height:100px;overflow-y:auto}.group-person-chip{border:1px solid var(--line);background:var(--sage);color:var(--ink);border-radius:18px;padding:6px 10px;font:inherit;font-size:11px;cursor:pointer}.group-people{max-height:245px;margin-bottom:12px}.group-recipient{padding:11px 9px;border-radius:8px;cursor:pointer;gap:12px}.group-recipient:has(input:checked){background:var(--sage)}.group-recipient>span:not(.reader-avatar){flex:1;min-width:0}.group-recipient input{accent-color:var(--pine);width:18px;height:18px;flex:none}.group-form-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:14px;border-top:1px solid var(--line)}.group-form-footer small{font-size:11px;color:var(--muted)}.group-form-footer .btn:disabled{opacity:.45;cursor:default}.group-info-summary{display:flex;align-items:center;gap:18px;margin:16px 0 24px}.group-info-summary h3{font:25px var(--serif);overflow-wrap:anywhere;margin:0 0 6px}.group-info-summary p{font-size:11px;color:var(--muted);margin:0}.group-rename{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:25px}.group-rename .field{flex:1;min-width:170px;margin-bottom:0}.group-rename .btn{margin-bottom:1px}.group-rename .form-error{flex-basis:100%}.group-member-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.group-member-heading h3{font:22px var(--serif);margin:0}.group-member-list{max-height:285px;overflow-y:auto;margin-bottom:15px}.group-member-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.group-member-row>a{display:flex;gap:12px;align-items:center;flex:1;min-width:0}.group-member-row strong{display:block;font-size:12px}.group-member-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.group-remove{background:transparent;border:1px solid var(--line);border-radius:6px;padding:6px 9px;font:inherit;font-size:10px;color:var(--muted);cursor:pointer}.group-remove:hover{color:var(--orange);border-color:var(--orange)}.group-leave{margin-top:15px;color:var(--orange)}.group-dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}html[data-theme="dark"] .group-chat-avatar{background:#293f2c;color:#d5e4c9}@media(max-width:650px){.group-person strong{max-width:180px}.group-info-summary h3{font-size:22px}.group-form-footer{align-items:flex-start}.group-form-footer .btn{font-size:12px}.group-member-heading .btn{font-size:11px}.group-people{max-height:220px}}
