/* One H5 conversation appearance for inbox rows and creator private-message entries. */
#md-account-sheet.md-inbox.md-chat-open > section { background:#242530; }
#md-account-sheet.md-inbox.md-chat-open > section > header { min-height:48px; padding:0 10px; border-bottom:1px solid #ffffff0b; }
#md-account-sheet.md-inbox.md-chat-open > section > header > button { display:grid; place-items:center; width:32px; height:32px; padding:0; background:transparent; border:0; color:#b9bbc9; }
#md-account-sheet.md-chat-open .md-im-main > header { right:0; height:47px; padding:0 48px; pointer-events:none; }
#md-account-sheet.md-chat-open .md-im-main > header h3 { flex:1; min-width:0; text-align:center; font-size:14px; font-weight:500; }
#md-account-sheet.md-chat-open .md-chat-peer-avatar { display:none; }
#md-account-sheet.md-chat-open .md-im-main [data-inbox-back] { position:absolute; left:10px; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:7px; background:transparent; pointer-events:auto; }
#md-account-sheet.md-chat-open .md-im-main [data-inbox-back] svg { display:block; width:20px; height:20px; }
#md-account-sheet.md-chat-open .md-im-main [data-inbox-back]:hover { background:#ffffff0c; }
#md-account-sheet.md-chat-open .md-im-history { padding:14px 0; gap:16px; overscroll-behavior:contain; }
#md-account-sheet.md-chat-open .md-im-history article { max-width:94%; gap:8px; }
#md-account-sheet.md-chat-open .md-chat-avatar { width:28px; height:28px; margin-top:2px; }
#md-account-sheet.md-chat-open .md-chat-bubble { min-width:0; padding:8px 11px; border:0; border-radius:11px; color:#f1f1f5; background:#3b3c48; font:14px/1.55 system-ui,sans-serif; overflow-wrap:anywhere; }
#md-account-sheet.md-chat-open .is-self .md-chat-bubble { background:#168beb; color:#fff; }
#md-account-sheet.md-chat-open .md-chat-timestamp { color:#8d8f9d; font:11px/20px system-ui,sans-serif; margin:4px 0 0; }
#md-account-sheet.md-chat-open .md-chat-media-frame { max-width:144px; border-radius:8px; }
#md-account-sheet.md-chat-open .md-chat-media-frame .md-im-media { max-height:192px; border-radius:8px; }
/* A portrait preview card; playback keeps the original video visible in full. */
#md-account-sheet.md-chat-open .md-chat-video-frame { width:144px; max-width:100%; aspect-ratio:9 / 16; }
#md-account-sheet.md-chat-open .md-chat-video-frame video.md-im-media { width:100%; height:100%; max-height:none; object-fit:cover; }
#md-account-sheet.md-chat-open .md-chat-video-frame.is-playing video.md-im-media { object-fit:contain; }
#md-account-sheet.md-chat-open .md-chat-bubble:has(.md-chat-media-frame) { padding:0; background:transparent; }
#md-account-sheet.md-chat-open .md-chat-media-play svg { width:30px; height:30px; }
#md-account-sheet.md-chat-open .md-chat-quote { margin:0 0 7px; padding:6px 8px; border-left:2px solid #ffffff65; border-radius:3px; color:#f1f1f4d9; background:#00000012; font-size:12px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
#md-account-sheet.md-chat-open .md-chat-quote:has(.md-chat-quote-thumb){display:flex;align-items:center;gap:8px;max-width:220px;min-width:144px}
#md-account-sheet.md-chat-open .md-chat-quote>span{min-width:0;flex:1}
#md-account-sheet.md-chat-open .md-chat-quote[role=button]{cursor:pointer}
#md-account-sheet.md-chat-open .md-chat-quote[role=button]:hover{background:#ffffff16}
#md-account-sheet.md-chat-open .md-chat-quote[role=button]:focus-visible{outline:2px solid #fff;outline-offset:2px}
#md-account-sheet.md-chat-open .md-chat-located>.md-chat-bubble{outline:2px solid #ffe29a;outline-offset:4px}
#md-account-sheet.md-chat-open .md-chat-quote .md-chat-quote-thumb{display:block;flex:none;width:40px;height:48px;max-width:40px;object-fit:cover;border-radius:4px;background:#242530}
#md-account-sheet.md-chat-open .md-chat-bubble:has(.md-chat-quote):has(.md-chat-media-frame){padding:8px;background:#3b3c48}
#md-account-sheet.md-chat-open .is-self .md-chat-bubble:has(.md-chat-quote):has(.md-chat-media-frame){background:#168beb}
#md-account-sheet.md-chat-open #md-im-send { display:flex; align-items:center; gap:8px; height:40px; min-height:40px; box-sizing:border-box; margin-top:8px; padding:4px 7px 4px 12px; border:0; border-radius:999px; background:#3b3c48; }
#md-account-sheet.md-chat-open #md-im-send textarea { flex:1; min-width:0; min-height:30px; height:30px; padding:5px 0; border:0; border-radius:0; resize:none; background:transparent; color:#f1f1f5; font:13px/20px system-ui,sans-serif; }
#md-account-sheet.md-chat-open #md-im-send textarea::placeholder { color:#999ba8; }
#md-account-sheet.md-chat-open #md-im-send .md-im-file-label { flex:none; width:22px; height:28px; }
#md-account-sheet.md-chat-open #md-im-send .md-im-file-label svg { width:22px; height:22px; color:#c5c7d3; }
#md-account-sheet.md-chat-open #md-im-send .md-chat-emoji-toggle { flex:none; width:24px; min-width:24px; height:28px; }
#md-account-sheet.md-chat-open #md-im-send button[type=submit] { flex:none; width:26px; min-width:26px; height:26px; padding:0; border:0; border-radius:50%; background:#168beb; color:#fff; font:18px/26px system-ui,sans-serif; }
#md-account-sheet.md-chat-open .md-im-main { display:grid; grid-template-rows:minmax(0,1fr) auto auto auto; }
/* Feedback overlays the log instead of adding/removing a row above the composer. */
#md-account-sheet.md-chat-open .md-im-history { grid-area:1 / 1; overflow-anchor:none; }
#md-account-sheet.md-chat-open .md-im-main > .md-im-error {
 grid-area:1 / 1;
 align-self:end;
 z-index:3;
 max-height:40%;
 overflow:auto;
 margin:0;
 padding:8px 10px;
 border:1px solid #ffffff15;
 border-radius:8px;
 background:#292a36;
 overflow-wrap:anywhere;
}
#md-account-sheet.md-chat-open .md-im-main > .md-im-error:empty { display:none; }
@media(max-width:767px){
 #md-account-sheet.md-chat-open .md-im-main { height:min(68dvh,620px); min-height:0; max-height:none; }
 #md-account-sheet.md-chat-open .md-im-history { min-height:0; max-height:none; }
 #md-account-sheet.md-chat-open .md-account-body { overflow:hidden; }
}
