/* Wedding-themed private messaging. Mobile footer remains hidden in wedding-theme.css. */
.ml-chat-page{padding-top:32px;padding-bottom:70px}.ml-chat-title{margin-bottom:24px}.ml-chat-title h1{margin:4px 0 10px;font-size:clamp(1.8rem,3.2vw,2.65rem);color:#451f34}.ml-chat-title p{max-width:680px;line-height:1.7}
.ml-chat-layout{display:grid;grid-template-columns:minmax(225px,320px) minmax(0,1fr);gap:18px;align-items:stretch;min-height:490px}
.ml-chat-sidebar,.ml-chat-main{border-radius:23px;padding:18px;box-shadow:0 16px 36px #7d3f5220;min-width:0;border:1px solid #ecd3dc;background:linear-gradient(147deg,#fff,#fff8fc)}
.ml-chat-sidebar h2{font-size:1.1rem;margin:4px 0 18px;color:#65314b}.ml-chat-sidebar a{text-decoration:none}
.ml-chat-peer{display:flex;align-items:center;gap:11px;padding:11px 10px;margin:5px 0;border-radius:14px;color:#502739;border:1px solid transparent}
.ml-chat-peer:hover,.ml-chat-peer.is-selected{background:#fff0f5;border-color:#eebdcc}.ml-chat-peer-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#fff4f6,#dfb1c6);color:#8a2b5d;font-size:1.2rem;box-shadow:0 4px 12px #772b4033}
.ml-chat-peer-details{display:grid;gap:5px;min-width:0}.ml-chat-peer-details strong{font-size:.99rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-chat-peer-details small{color:#765b68;display:flex;gap:6px;align-items:center;font-size:.8rem}
.ml-chat-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#a6a4a8;box-shadow:inset 0 0 0 1px #ccc;flex:none}.ml-chat-dot.is-online{background:#20aa6d;box-shadow:0 0 0 3px #d9f6e8}
.ml-chat-main{display:flex;flex-direction:column;min-height:480px;padding:0;overflow:hidden}.ml-chat-conversation-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #efdae3;background:linear-gradient(110deg,#fff5f7,#fffdfb)}
.ml-chat-conversation-head strong{font-size:1.1rem;color:#50233a}.ml-chat-presence{display:flex;align-items:center;gap:7px;color:#715c68;font-size:.88rem;margin-top:6px}.ml-chat-messages{flex:1;height:360px;max-height:57vh;overflow-y:auto;padding:22px 20px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;background:linear-gradient(#fffdfc,#fff8fa)}
.ml-chat-bubble{max-width:min(80%,530px);border-radius:18px;padding:11px 15px;box-shadow:0 4px 15px #56223c18;overflow-wrap:anywhere;white-space:normal}.ml-chat-bubble.is-own{align-self:flex-end;background:linear-gradient(135deg,#822a54,#af3e73);color:#fff;border-bottom-right-radius:6px}.ml-chat-bubble.is-other{align-self:flex-start;background:#fff;border:1px solid #efcfdb;color:#382235;border-bottom-left-radius:6px}
.ml-chat-text{font-size:1rem;line-height:1.55;white-space:pre-wrap}.ml-chat-bubble small{display:block;margin-top:7px;font-size:.69rem;opacity:.75}.ml-chat-error{color:#9b153b;background:#ffe8ee;padding:10px 16px;margin:0;font-size:.92rem}.ml-chat-form{border-top:1px solid #efdae3;padding:14px 19px;background:#fff}.ml-chat-form label{font-size:.95rem;font-weight:700;color:#532638}.ml-chat-compose{display:flex;align-items:stretch;gap:11px;margin:7px 0}.ml-chat-compose textarea{min-height:70px;max-height:185px;width:100%;flex:1;resize:vertical;border:1px solid #d9b6c5;border-radius:13px;padding:12px;font-size:1rem;background:#fff;color:#321e2d}.ml-chat-compose button{min-width:84px;border-radius:13px;box-shadow:0 5px 14px #7f295348}.ml-chat-form small{font-size:.8rem;color:#74616b}.ml-chat-report{padding:0 19px 14px;background:#fff;font-size:.86rem}.ml-chat-report a{color:#7b3c5c}.ml-chat-empty{padding:50px 24px;text-align:center;margin:auto;max-width:500px;color:#4c2940}.ml-chat-empty p{line-height:1.7}
.ml-chat-muted{color:#785969;font-size:.95rem;text-align:center;margin:auto}.ml-chat-cta{display:inline-flex;align-items:center;gap:6px;margin:8px 0}.ml-chat-unread{display:inline-block;background:#a72e62;color:#fff;border-radius:999px;font-size:.7rem;padding:1px 6px;margin-left:3px}
@media(max-width:800px){.ml-chat-layout{grid-template-columns:1fr}.ml-chat-sidebar{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:12px}.ml-chat-sidebar h2{flex:none;margin:0 12px 0 2px;white-space:nowrap}.ml-chat-peer{flex:none;min-width:160px}.ml-chat-main{min-height:450px}}
@media(max-width:640px){.ml-chat-page{padding:20px 11px 100px}.ml-chat-layout{gap:11px}.ml-chat-sidebar h2{display:none}.ml-chat-peer{min-width:150px}.ml-chat-conversation-head{padding:13px}.ml-chat-messages{height:50vh;min-height:280px;max-height:54vh;padding:14px 10px}.ml-chat-bubble{max-width:91%}.ml-chat-form{padding:11px}.ml-chat-compose{gap:6px}.ml-chat-compose button{min-width:66px}.ml-chat-report{padding:0 11px 12px}.ml-chat-title p{font-size:.93rem}}

.ml-chat-profile-status{display:inline-flex;margin-left:8px;vertical-align:middle}
@media(max-width:640px){.has-mobile-nav .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.has-mobile-nav .mobile-nav a{font-size:10.4px;padding-inline:1px}}

.ml-chat-report details{padding:7px 0}.ml-chat-report summary{cursor:pointer;font-weight:600;color:#7b3559}.ml-chat-moderation{padding:12px 4px 4px;display:grid;gap:14px}.ml-chat-moderation .form{max-width:440px}.ml-chat-moderation textarea{width:100%;padding:10px;border:1px solid #dfbdca;border-radius:10px;font-size:1rem}.ml-chat-moderation button{justify-self:start}
