#messages-page{display:none}.messages-mode #messages-page{display:block}.messages-mode>aside,.messages-mode>.main,.messages-mode>#broke-dashboard{display:none}.messages-mode{background:#f8f6f0;color:#303d2b}.msg-header{margin:0;height:95px;border-bottom:1px solid #deddd2;background:#fffcf8;display:flex;gap:18px;align-items:center;padding:0 max(30px,5vw)}.msg-logo{width:285px;display:block;line-height:0}.msg-logo img{width:100%}.msg-role{background:#35452c;color:white;font-size:11px;padding:6px 14px;border-radius:20px;font-weight:700;text-transform:uppercase}.msg-header nav{margin:0 0 0 auto;display:flex;gap:12px}.msg-header nav button{font-size:11px;border:1px solid #526346;padding:12px 18px;border-radius:25px;display:block;background:transparent;font-weight:600;white-space:nowrap}.msg-workspace{display:grid;grid-template-columns:350px minmax(0,1fr);max-width:1400px;height:calc(100svh - 170px);min-height:560px;margin:36px auto;border:1px solid #d4d4c8;border-radius:28px;overflow:hidden;background:#fffdf9;box-shadow:0 10px 30px #3840230f}.conversation-panel{border-right:1px solid #e3e3d9;display:flex;flex-direction:column;padding:30px 20px;min-width:0}.conversation-title{display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin-bottom:23px}.conversation-title h1{font-size:32px;margin:0;letter-spacing:-1px}.conversation-title button{border:1px solid #dedfd3;border-radius:50%;width:32px;height:32px;background:transparent;font-size:23px}.msg-search{display:flex;align-items:center;gap:10px;border:1px solid #cbcfbf;border-radius:28px;padding:10px 15px}.msg-search>span{font-size:25px}.msg-search input{width:100%;border:0;outline:0;background:transparent;font-size:11px;min-width:0}.message-filters{display:flex;gap:8px;margin:20px 0}.message-filters button{border:0;border-radius:25px;background:#f1eee5;padding:10px 15px;font-size:10px;white-space:nowrap}.message-filters button.active{background:#35482b;color:white;font-weight:600}#conversation-list{overflow-y:auto;flex:1;min-height:0}.conversation-item{border:0;border-bottom:1px solid #eeeee5;background:transparent;width:100%;padding:20px 10px;display:flex;align-items:center;gap:12px;text-align:left;border-radius:13px}.conversation-item.selected{background:#e7ebde;border-color:transparent}.chat-avatar{display:grid;place-items:center;width:53px;height:53px;border:1px solid #dadccf;border-radius:50%;background:#f3f0e6;font-size:28px;flex-shrink:0;box-shadow:0 2px 4px #32392108}.conversation-preview{flex:1;min-width:0}.conversation-preview>div{display:flex;align-items:center;gap:10px;justify-content:space-between}.conversation-preview strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-preview time{font-size:9px;color:#7b8071;flex-shrink:0}.conversation-preview p{font-size:10px;color:#7b8071;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:9px 0 0;max-width:190px}.conversation-preview b{font-size:8px;background:#3e5030;color:white;border-radius:50%;min-width:18px;height:18px;display:grid;place-items:center;margin-top:7px}.conversation-star{font-size:12px;color:#7e8d56;margin-top:7px}.msg-local-note{font-size:8px;color:#8e9582;line-height:1.8;padding:16px 10px 0;margin:0}.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;padding:25px 28px 15px;background:linear-gradient(135deg,#fffdf9,#fbfaf6)}.chat-heading{display:flex;gap:15px;align-items:center;padding:0 0 22px;border-bottom:1px solid #dedfd3}.chat-heading .chat-avatar{width:61px;height:61px;font-size:33px}.chat-person{min-width:0}.chat-person h2{font-size:23px;margin:0 0 6px;letter-spacing:-.8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-person>span{font-size:10px;color:#7e8773}.chat-person i{display:inline-block;background:#b2bb95;width:7px;height:7px;border-radius:50%;margin-right:5px}.chat-tools{display:flex;gap:10px;margin-left:auto}.chat-tools button{width:40px;height:40px;border:1px solid #e8e7de;border-radius:50%;background:#f2f0e8;font-size:24px}.chat-log{flex:1;overflow-y:auto;padding:23px 8px 15px 0;min-height:0;scroll-behavior:smooth}.chat-day{display:flex;align-items:center;gap:13px;color:#82896f;font-size:9px;margin:0 18px 25px}.chat-day:before,.chat-day:after{content:'';height:1px;background:#e2e4d8;flex:1}.chat-day>span{border-radius:20px;background:#f1eee4;padding:7px 15px}.message-row{display:flex;align-items:flex-end;gap:12px;margin-bottom:22px}.message-avatar{width:35px;height:35px;background:#f1eee5;border:1px solid #ddded2;border-radius:50%;font-size:21px;display:grid;place-items:center;margin-bottom:23px;flex-shrink:0}.message-body{max-width:76%;min-width:0}.message-bubble{background:#f0ede4;border-radius:19px;padding:13px 18px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.outgoing{justify-content:flex-end}.outgoing .message-bubble{background:linear-gradient(120deg,#3b4e2e,#303f28);color:#fffdf6}.message-time{font-size:8px;color:#929787;margin:7px 9px 0}.outgoing .message-time{text-align:right}.message-composer{display:flex;align-items:center;gap:13px;border:1px solid #cbd0bd;border-radius:35px;padding:7px 9px 7px 17px;background:#fffcf8;margin-top:5px}.message-composer>button{border:0;background:transparent;font-size:26px;flex-shrink:0}.message-composer textarea{border:0;outline:0;resize:none;min-height:26px;max-height:90px;height:26px;width:100%;background:transparent;padding:4px 5px;font-size:12px;line-height:1.5;color:#303d2b}.message-composer .message-send{width:42px;height:42px;border-radius:50%;background:#35472b;color:white;font-size:23px}.composer-caption{text-align:center;font-size:7px;line-height:1.6;color:#969d8c;margin-top:9px}.message-empty{padding:40px 20px;text-align:center;font-size:11px;line-height:1.8;color:#919981}.msg-back{display:none;border:0;background:none;font-size:30px}
@media(max-width:1500px){.msg-workspace{margin:30px;max-width:none;height:calc(100svh - 155px);grid-template-columns:330px minmax(0,1fr)}}
@media(max-width:1000px){.msg-header{height:80px;padding:0 22px;gap:12px}.msg-logo{width:220px}.msg-header nav{gap:7px}.msg-header nav button{font-size:9px;padding:10px 12px}.msg-role{font-size:8px;padding:5px 9px}.msg-workspace{grid-template-columns:280px minmax(0,1fr);margin:22px;height:calc(100svh - 124px);min-height:500px}.conversation-panel{padding:24px 14px}.conversation-title h1{font-size:28px}.message-filters{gap:5px}.message-filters button{font-size:9px;padding:9px 11px}.conversation-item{padding:17px 6px;gap:9px}.chat-avatar{width:43px;height:43px;font-size:24px}.conversation-preview strong{font-size:10px}.conversation-preview p{max-width:150px;font-size:9px}.chat-panel{padding:22px 20px 15px}.chat-heading{gap:10px}.chat-heading .chat-avatar{width:49px;height:49px;font-size:27px}.chat-person h2{font-size:18px}.chat-tools{gap:6px}.chat-tools button{width:33px;height:33px;font-size:20px}.message-bubble{font-size:11px;padding:12px 15px}.message-body{max-width:86%}}
@media(max-width:700px){.msg-header{height:70px;padding:0 16px;gap:8px}.msg-logo{width:170px}.msg-role{font-size:7px;padding:4px 7px}.msg-header nav{margin-left:auto}.msg-header nav button{font-size:8px;padding:9px 10px}.msg-header nav button:not(:first-child){display:none}.msg-workspace{height:calc(100svh - 94px);min-height:460px;margin:12px;border-radius:19px;display:block}.conversation-panel{height:100%;border:0;padding:24px 16px}.conversation-title{margin-bottom:20px}.conversation-title h1{font-size:31px}.message-filters{margin:18px 0;gap:9px}.message-filters button{font-size:11px;padding:10px 16px}.msg-search input{font-size:12px}.conversation-item{padding:20px 9px;gap:13px}.conversation-preview strong{font-size:13px}.conversation-preview time{font-size:10px}.conversation-preview p{font-size:11px;max-width:220px}.chat-avatar{width:51px;height:51px;font-size:29px}.chat-panel{display:none;height:100%;padding:18px 13px 12px}.chat-open .conversation-panel{display:none}.chat-open .chat-panel{display:flex}.msg-back{display:block;padding:0 4px 0 0}.chat-heading{gap:8px;padding-bottom:16px}.chat-heading .chat-avatar{width:43px;height:43px;font-size:26px}.chat-person h2{font-size:16px;max-width:175px}.chat-person>span{font-size:8px}.chat-tools{gap:4px}.chat-tools button{width:30px;height:30px;font-size:19px}.chat-log{padding-top:18px}.message-bubble{font-size:12px;padding:11px 14px}.message-body{max-width:85%}.message-avatar{width:27px;height:27px;font-size:17px}.message-row{gap:8px;margin-bottom:20px}.message-composer{gap:8px;padding-left:10px}.message-composer textarea{font-size:12px}.message-time{font-size:7px}.composer-caption{font-size:6px}.message-composer .message-send{width:36px;height:36px;font-size:20px}}
@media(prefers-reduced-motion:reduce){.chat-log{scroll-behavior:auto}}

.member-notification-list{max-height:60vh;overflow:auto}.member-notification{padding:15px;border:1px solid #e0e5d6;border-radius:12px;margin:12px 0}.member-notification.unread{background:#eef2e4}.member-notification small{font-size:11px;color:#6c7d56}.member-notification p{white-space:pre-wrap;overflow-wrap:anywhere}
