/* Messaging: quiet colors, readable content and a stable composition. */
.conversation{--chat-ink:#214858;--chat-muted:#617b89;--chat-line:#e0e9ed;--chat-accent:#176e7e;max-width:1120px;margin:0 auto 28px;border-color:#dce6ea;border-radius:22px;box-shadow:0 14px 44px #244e6008;background:#fff;font-family:Arial,Helvetica,sans-serif}
.conversation .conversation-title{padding:30px 32px;gap:24px;border-color:var(--chat-line);background:#fff}
.conversation .conversation-title .account-eyebrow{font-size:9px;letter-spacing:1.8px;color:#69909d;margin-bottom:12px;font-weight:600}
.conversation .conversation-title h1{font:36px/1.18 Georgia,serif;letter-spacing:-.8px;color:var(--chat-ink);margin:0}
.conversation .conversation-title p{font-size:13px;line-height:1.8;color:var(--chat-muted);margin:11px 0 0}
.chat-title-emblem{display:grid;place-items:center;width:52px;height:52px;border:1px solid #dbe9ec;border-radius:16px;background:#f1f7f8;color:#3c8190;flex-shrink:0}
.conversation .chat-workspace{grid-template-columns:290px minmax(0,1fr);background:#fff;min-height:540px}
.conversation .chat-contacts{background:#fcfdfd;border-color:var(--chat-line);min-width:0;display:flex;flex-direction:column}
.conversation .chat-list-heading{padding:25px 22px 17px;font-size:12px;letter-spacing:0;color:#456673;font-weight:600}
.conversation .chat-list-heading>span{background:#eff4f5;border:1px solid #e5edef;padding:3px 7px;color:#78919a;border-radius:6px;font-size:10px}
.chat-search-field{position:relative;margin:0 16px 18px;color:#8da2ac}
.chat-search-field>svg{position:absolute;left:13px;top:14px;pointer-events:none}
.conversation .chat-search-field>input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:12px 12px 12px 38px;border:1px solid #e1eaed;border-radius:10px;background:#f5f8f9;color:#31576a;font:12px/1.5 Arial,sans-serif}
.conversation .chat-search-field>input::placeholder{color:#8a9ea8}
.conversation .chat-contact-list{gap:6px;padding:0 11px 17px;max-height:425px;scrollbar-width:thin;scrollbar-color:#d4e2e7 transparent}
.conversation .chat-contact{position:relative;gap:12px;width:100%;min-height:94px;padding:15px 12px;border-radius:12px;border-color:transparent;transition:background .15s,border-color .15s}
.conversation .chat-contact:hover{background:#f1f6f7}
.conversation .chat-contact[aria-pressed=true]{background:#eaf3f5;border-color:#d4e7eb}
.conversation .chat-contact[aria-pressed=true]:before{content:'';position:absolute;left:-1px;top:24px;bottom:24px;width:3px;border-radius:4px;background:#33899b}
.conversation .chat-avatar{position:relative;width:43px;height:43px;border:1px solid #d6e7eb;border-radius:14px;background:#eaf2f5;color:#397589;font:600 13px/1 Arial,sans-serif;letter-spacing:.5px}
.conversation .chat-contact:nth-child(3n+2) .chat-avatar{background:#eef4ee;border-color:#dfe9dc;color:#638167}
.conversation .chat-contact:nth-child(3n+3) .chat-avatar{background:#f6f1e9;border-color:#eae1d5;color:#948163}
.chat-avatar-status{position:absolute;right:-3px;bottom:-3px;width:10px;height:10px;border-radius:50%;border:2px solid #fcfdfd;background:#b4c2c8}
.chat-avatar-status.is-online{background:#51a580}
.conversation .chat-contact-copy{flex:1;min-width:0;display:block}
.chat-contact-heading{display:flex;align-items:baseline;gap:8px;justify-content:space-between;min-width:0}
.conversation .chat-contact-copy strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:600 13px/1.5 Arial,sans-serif;color:#325765;display:block}
.chat-contact-heading time{font-size:9px;color:#71838e;white-space:nowrap;flex-shrink:0}
.chat-preview{display:block;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#647e8c;font-size:11px;line-height:1.6}
.conversation .chat-contact-copy small{font-size:9px;line-height:1.6;color:#6f8490;margin-top:5px}
.chat-list-note{font:10px/1.8 Arial,sans-serif;color:#91a3ab;padding:18px 22px 20px;margin:auto 0 0;border-top:1px solid #eef2f4}
.chat-search-empty{padding:15px 22px;margin:0;color:#8399a4;font-size:12px;line-height:1.8}
.conversation [hidden]{display:none!important}
.conversation .chat-room{grid-template-rows:auto minmax(320px,440px) auto;background:#f6f9fa}
.conversation .chat-person{padding:21px 28px;gap:12px;border-color:var(--chat-line);min-height:86px;box-sizing:border-box;background:#fff}
.conversation .chat-person-copy{flex:1;min-width:0}
.conversation .chat-person h2{font:600 15px/1.5 Arial,sans-serif;letter-spacing:0;margin:0 0 4px;overflow-wrap:anywhere}
.conversation .chat-person-copy>span{font:11px/1.5 Arial,sans-serif;color:#8a9ca6}
.conversation .chat-presence{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font:10px/1.5 Arial,sans-serif;white-space:nowrap;color:#889da7;padding:6px 9px;background:#f5f8f9;border:1px solid #e7eef0;border-radius:7px}
.conversation .chat-presence>i{display:block;width:5px;height:5px;border-radius:50%;background:#aebdc5}
.conversation .chat-presence.is-online{color:#49826d;background:#f0f8f3;border-color:#e0eee5;font-weight:400}
.conversation .chat-presence.is-online>i{background:#64a78a}
.conversation .chat-thread{padding:27px 28px 30px;gap:13px;background:#f5f8fa;scrollbar-color:#d2dfe5 transparent;overscroll-behavior:contain}
.chat-day{display:flex;justify-content:center;align-self:stretch;margin:6px 0 15px;pointer-events:none}
.chat-day>span{padding:5px 12px;border:1px solid #e3ebef;border-radius:7px;background:#ffffffbf;color:#8ca0aa;font:10px/1.6 Arial,sans-serif}
.conversation .chat-bubble{max-width:min(84%,430px);padding:12px 16px 9px;border-color:#e1e9ed;border-radius:14px 14px 14px 4px;background:#fff;color:#395b6b;box-shadow:0 2px 4px #35556803}
.conversation .chat-bubble.is-mine{background:#e1f0f3;border-color:#d4e8ec;color:#285869;border-radius:14px 14px 4px 14px}
.conversation .chat-bubble.is-grouped{margin-top:-7px}
.conversation .chat-message-author{display:block;font-size:9px;font-weight:600;opacity:1;color:#8b9ca6;margin-bottom:5px}
.conversation .chat-bubble.is-mine .chat-message-author{color:#759ca9}
.conversation .chat-bubble p{font:14px/1.75 Arial,sans-serif;margin:0 0 5px;color:inherit!important}
.conversation .chat-bubble time{font-size:9px;line-height:1.7;color:#8a9ea9;opacity:1}
.conversation .chat-bubble.is-mine time{color:#79a0ae}
.chat-empty-symbol{display:grid;place-items:center;width:72px;height:72px;border:1px solid #d9e8ec;border-radius:24px;background:#edf5f7;color:#73a2b2;box-shadow:0 8px 22px #357a9405;margin:0 auto 22px}
.conversation .chat-start{max-width:320px;color:#90a9b1}
.conversation .chat-start h3{font:26px/1.35 Georgia,serif;letter-spacing:-.4px;color:#527a8c;margin:0 0 14px}
.conversation .chat-start p{font:12px/1.9 Arial,sans-serif;color:#708692;margin:0}
.conversation .chat-empty{min-height:340px;box-sizing:border-box;padding:46px 25px 50px;background:#f9fbfc}
.conversation .chat-empty h2{font:29px/1.35 Georgia,serif;letter-spacing:-.4px;margin:0 0 16px}
.conversation .chat-empty p{font:13px/1.9 Arial,sans-serif;color:#657f8d;max-width:400px}
.conversation .chat-empty>.button{font-size:12px;margin-top:26px}
.conversation form[data-chat-compose]{align-items:start;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:19px 25px 17px;border-color:var(--chat-line);background:white}
.conversation .chat-input-field{min-width:0;position:relative}
.conversation form[data-chat-compose] textarea{min-height:48px;height:48px;max-height:136px;resize:none;padding:13px 16px;background:#f9fbfc;border:1px solid #dce7ec;border-radius:12px;font:14px/1.55 Arial,sans-serif;color:#365d70;overflow-y:auto;scrollbar-width:thin}
.conversation form[data-chat-compose] textarea::placeholder{color:#738793}
.conversation form[data-chat-compose] textarea:focus{border-color:#91becb;background:#fff;outline:3px solid #4e9db215;outline-offset:1px}
.conversation form[data-chat-compose]>.chat-send{min-height:48px;margin:0;padding:13px 17px;gap:8px;border-radius:12px;background:#24768b;border-color:#24768b;font-size:12px;box-shadow:0 3px 8px #24768b14;transition:background .15s}
.conversation form[data-chat-compose]>.chat-send:hover{background:#1d6378;border-color:#1d6378}
.conversation .chat-keyboard-hint{display:block;margin:9px 0 0 2px;font-size:9px;color:#6c8492;line-height:1.6}
.conversation [data-chat-status]{font:12px/1.7 Arial,sans-serif;color:#9a594d;margin:0;background:#fcf5f1;border-radius:8px;padding:9px 12px}
.conversation [data-chat-status]:empty{display:none}
.conversation .chat-settings{border-top:1px solid var(--chat-line);padding:0 26px;background:#fff}
.conversation .chat-settings>summary{display:flex;align-items:center;gap:9px;min-height:49px;cursor:pointer;list-style:none;color:#829aa6;font:11px/1.7 Arial,sans-serif}
.conversation .chat-settings>summary::-webkit-details-marker{display:none}
.conversation .chat-settings>summary>svg:last-child{margin-left:auto;transition:transform .15s}
.conversation .chat-settings[open]>summary>svg:last-child{transform:rotate(90deg)}
.conversation .chat-invite{border:0;padding:0 0 20px;color:#657f8d;gap:12px;font-size:11px}
.conversation .chat-invite>span:first-child{flex-basis:100%}
.conversation .chat-invite strong{background:#f2f7f8;border:1px dashed #c6dce3;padding:9px 13px;color:#648b9d;font-size:13px;letter-spacing:2px;border-radius:8px}
.conversation .chat-invite .text-link{font-size:11px;min-height:42px;border:0;background:none;cursor:pointer;color:#4c8599}
.conversation .chat-settings form[data-link-tutor]{max-width:420px;margin:3px 0 20px;display:grid;grid-template-columns:1fr auto;gap:10px}
.conversation [data-link-tutor]>label{grid-column:1/-1;font-size:11px;color:#698999}
.conversation [data-link-tutor]>input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #d3e2e8;border-radius:9px;font:12px Arial,sans-serif;color:#426a7b}
.conversation [data-link-tutor]>.button{font-size:11px;border-radius:9px;margin:0;padding:10px 14px;min-height:44px}
.conversation [data-link-status]{grid-column:1/-1;font-size:11px;color:#68899b}
.conversation .chat-connection-note{padding:11px 26px;gap:7px;border-color:#edf2f4;background:#fcfdfd;font:9px/1.8 Arial,sans-serif;color:#6a808d}
.conversation .chat-mobile-back{display:none}
.conversation .chat-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.conversation :is(input,summary,button):focus-visible{outline:3px solid #59a2b35c;outline-offset:3px}
@media(min-width:641px) and (max-width:900px){.conversation .chat-workspace{grid-template-columns:235px minmax(0,1fr)}.conversation .chat-list-heading{padding-inline:18px}.conversation .chat-search-field{margin-inline:12px}.conversation .chat-contact{padding-inline:10px;gap:9px}.conversation .chat-avatar{width:37px;height:37px;font-size:12px;border-radius:12px}.conversation .chat-person{padding:19px 20px;flex-wrap:wrap}.conversation .chat-person .chat-presence{margin-left:auto}.conversation .chat-contact-copy strong{font-size:12px}.conversation .chat-thread{padding-inline:21px}.conversation form[data-chat-compose]>.chat-send span{display:none}.conversation .chat-bubble{max-width:92%}}
@media(max-width:640px){.conversation{border-radius:17px;margin-bottom:22px}.conversation .conversation-title{padding:25px 22px;gap:12px}.conversation .conversation-title .account-eyebrow{font-size:8px;line-height:1.8;letter-spacing:1.2px;max-width:230px}.conversation .conversation-title h1{font-size:32px}.conversation .conversation-title p{font-size:12px;max-width:260px;margin-top:10px}.chat-title-emblem{width:43px;height:43px;border-radius:13px}.conversation .chat-workspace{display:block;min-height:0}.conversation .chat-contacts{border:0;background:#fff;min-height:370px}.conversation .chat-list-heading{padding:22px 21px 17px}.conversation .chat-search-field{margin:0 17px 15px}.conversation .chat-search-field>input{font-size:16px;min-height:47px;padding-block:11px}.chat-search-field>svg{top:15px}.conversation .chat-contact-list{flex-direction:column;overflow-y:auto;overflow-x:hidden;max-height:450px;padding:0 12px 20px;gap:6px}.conversation .chat-contact{flex:0 0 auto;max-width:none;width:100%;min-height:88px;padding:13px 12px;gap:12px}.conversation .chat-avatar{width:42px;height:42px;font-size:12px;border-radius:13px}.conversation .chat-contact-copy strong{font-size:13px}.conversation .chat-contact-copy small{font-size:9px}.conversation .chat-preview{font-size:11px}.conversation .chat-list-note{font-size:10px;padding:16px 22px}.conversation[data-mobile-view=list] .chat-room{display:none}.conversation[data-mobile-view=room] .chat-contacts{display:none}.conversation[data-mobile-view=room] .chat-room{display:grid}.conversation .chat-room{grid-template-rows:auto minmax(280px,48dvh) auto;min-height:0}.conversation .chat-person{padding:17px 16px;gap:10px;min-height:83px;flex-wrap:wrap}.conversation .chat-mobile-back{display:grid;place-items:center;flex-shrink:0;width:31px;height:40px;padding:0;margin:0 1px 0 -4px;border:0;border-radius:8px;background:transparent;color:#638a9b;cursor:pointer}.conversation .chat-person .chat-avatar{width:35px;height:35px;font-size:11px;border-radius:11px}.conversation .chat-person h2{font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation .chat-person-copy>span{font-size:10px}.conversation .chat-person .chat-presence{font-size:9px;padding:5px 7px;gap:4px;margin-left:auto}.conversation .chat-person-copy{min-width:80px}.conversation .chat-thread{padding:23px 18px;gap:12px}.conversation .chat-bubble{max-width:90%;padding:11px 14px 8px}.conversation .chat-bubble p{font-size:13px;line-height:1.75}.conversation .chat-day{margin-bottom:12px}.conversation .chat-day>span{font-size:9px}.conversation .chat-start h3{font-size:25px}.conversation .chat-start p{font-size:11px}.conversation .chat-empty-symbol{width:63px;height:63px;border-radius:21px;margin-bottom:20px}.conversation form[data-chat-compose]{padding:16px;gap:9px;grid-template-columns:minmax(0,1fr) 45px}.conversation form[data-chat-compose] textarea{font-size:16px;min-height:48px;height:48px;padding:12px 14px;line-height:1.5}.conversation form[data-chat-compose]>.chat-send{width:45px;min-height:48px;padding:0;margin:0;border-radius:12px}.conversation form[data-chat-compose]>.chat-send span{display:none}.conversation .chat-keyboard-hint{display:none}.conversation .chat-settings{padding-inline:20px}.conversation .chat-settings>summary{font-size:10px;min-height:48px}.conversation .chat-connection-note{padding:11px 20px;font-size:8px}.conversation .chat-empty{min-height:330px;padding:35px 22px}.conversation .chat-empty h2{font-size:26px}.conversation .chat-empty p{font-size:12px}.conversation .chat-settings form[data-link-tutor]{grid-template-columns:1fr}.conversation [data-link-tutor]>.button{justify-self:start}.conversation .chat-invite{font-size:10px}}
@media(prefers-reduced-motion:reduce){.conversation *{transition:none!important;scroll-behavior:auto!important}}

.conversation .chat-contact[hidden]{display:none}
@media(max-width:640px){
 .app-shell:has(.conversation[data-mobile-view=room]) .bottom-nav{position:static;margin-inline:auto}
 .conversation[data-mobile-view=room] [data-chat-compose]{scroll-margin-bottom:1rem}
}
